mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-09-14 22:30:35 -04:00
118 lines
4.9 KiB
HTML
118 lines
4.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" dir="ltr">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Connections</title>
|
|
<link rel="stylesheet" href="../styles/docs.css">
|
|
</head>
|
|
<body data-page="connections" data-locale="en">
|
|
<pre class="markdown-content"># Connections
|
|
|
|
Meshtastic supports multiple transport methods to communicate between your phone/desktop and a radio node.
|
|
|
|
## Bluetooth (BLE)
|
|
|
|
Bluetooth Low Energy is the default and most common connection method on Android.
|
|
|
|
### Pairing a Device
|
|
|
|
1. Ensure your Meshtastic radio is powered on and in pairing mode.
|
|
2. Open the app and navigate to the **Connect** tab.
|
|
3. Tap **Scan for Bluetooth devices** — nearby Meshtastic radios will appear.
|
|
4. Select your device from the list.
|
|
5. Accept the Bluetooth pairing prompt if shown.
|
|
|
|

|
|
|
|
Use the transport selector — a segmented button row below the connection card — to switch between the Bluetooth, Network, and USB transports (one is active at a time):
|
|
|
|

|
|
|
|
> 💡 **Tip:** If your device doesn't appear, check that Bluetooth and Location permissions are granted, and that the radio is not already connected to another device.
|
|
|
|
### Connection Status
|
|
|
|
Icon | State | Description |
|
|
------|-------|-------------|
|
|
🟢 | Connected | Active radio link established |
|
|
🟡 | Connecting | Handshake in progress |
|
|
🔴 | Disconnected | No active connection |
|
|
⚪ | Not configured | No device selected |
|
|
|
|
When connecting, a status indicator shows the current connection state:
|
|
|
|

|
|
|
|
If no devices are found, the app shows an empty state with instructions:
|
|
|
|

|
|
|
|
### Troubleshooting Bluetooth
|
|
|
|
- **Device not found:** Toggle Bluetooth off/on, ensure location is enabled.
|
|
- **Connection drops:** Move closer to the radio; check for interference.
|
|
- **Pairing rejected:** Forget the device in Android Bluetooth settings and retry.
|
|
|
|
## USB Serial
|
|
|
|
USB connections provide a wired alternative, useful for desktop or when Bluetooth is unavailable.
|
|
|
|
### Setup
|
|
|
|
1. Connect your radio via USB cable to your device.
|
|
2. The app will prompt for USB permission — tap **Allow**.
|
|
3. The connection is established automatically.
|
|
|
|
> ⚠️ **Note:** USB connections require OTG support on Android devices.
|
|
|
|
## TCP/IP (Network)
|
|
|
|
Some Meshtastic radios support WiFi/Ethernet connectivity, allowing TCP-based connections over your local network. Get the radio onto your network first — using the radio's own WiFi settings (via the firmware web interface or another connection) — then connect to it from the app.
|
|
|
|
### Connecting over the Network
|
|
|
|
1. Make sure the radio is on the same local network as your phone/desktop.
|
|
2. On the Connect screen, select **Network** in the transport selector.
|
|
3. Choose the radio one of two ways:
|
|
- **Scan for network devices** — toggle this on to auto-discover radios that advertise themselves on the local network (mDNS / `_meshtastic._tcp`). Discovered devices appear in the list; tap one to connect.
|
|
- **Add device manually…** — enter the radio's IP address (or hostname) and port (default: `4403`).
|
|
4. Previously-used network addresses are remembered under **Recent Network Devices** for quick reconnection (long-press to remove one).
|
|
|
|
> 💡 **Tip:** Network discovery uses mDNS, which only works when both devices are on the same subnet. On Android 17+ the app needs the local-network permission for scanning; if discovery finds nothing, add the device manually by IP.
|
|
|
|
### When to Use TCP
|
|
|
|
- Radio is on the same local network
|
|
- Testing with a simulated radio
|
|
- Environments where Bluetooth has interference issues
|
|
|
|
## Reconnection Behavior
|
|
|
|
The app reconnects to the **last selected device** on startup. You can switch transports from the Connect screen at any time.
|
|
|
|
To disconnect, tap the disconnect button on the Connect screen:
|
|
|
|

|
|
|
|
## Desktop Connections
|
|
|
|
On Desktop (Linux/macOS/Windows), the app supports:
|
|
- **Bluetooth (BLE)** — via the Kable library; works on macOS, Linux, and Windows
|
|
- **USB Serial** — primary wired connection method
|
|
- **TCP/IP** — for network-connected radios
|
|
|
|
See [Desktop App](desktop) for platform-specific details and keyboard shortcuts.
|
|
|
|
## Related Topics
|
|
|
|
- [Getting Started](onboarding) — first-launch setup and permissions
|
|
- [Settings — Radio & User](settings-radio-user) — Bluetooth and network configuration
|
|
- [Desktop App](desktop) — desktop-specific connection details
|
|
- [Supported devices](https://meshtastic.org/docs/hardware/devices) — full list of compatible radios on meshtastic.org
|
|
|
|
---
|
|
|
|
</pre>
|
|
</body>
|
|
</html> |