How to debug Android Bluetooth connection issues?

I have an Android phone (original Pixel running Android version 10) and a TTGO T-Beam v1.1. The phone is not showing a connection to the device.

The device was connected, then I tried to set the Wi-Fi configuration and made a typo in the password and I haven’t seen it again. I corrected the password with the CLI:

meshtastic --port /dev/ttyUSB0 --set network.wifi_psk password_without_typo

And the device is now successfully connected to Wi-Fi and I can see the meshtastic.local page on my desktop.

I have both the device and the phone connected via USB to my computer. Where do I start? Looking at the Bluetooth logs on the Android phone nothing seems particularly out to lunch:

BluetoothGatt       pid-11915    D  connect() - device: 24:62:AB:F8:49:B2, auto: false
BluetoothGatt       pid-11915    D  registerApp()
BluetoothGatt       pid-11915    D  registerApp() - UUID=689f91ce-24f3-4640-9972-14962e8b0f3b
BluetoothGatt       pid-11915    D  onClientRegistered() - status=0 clientIf=6
BluetoothGatt       pid-11915    D  onClientConnectionState() - status=133 clientIf=6 device=24:62:AB:F8:49:B2
BluetoothGatt       pid-11915    D  cancelOpen() - device: 24:62:AB:F8:49:B2
BluetoothAdapter    pid-5056     D  isLeEnabled(): ON
BluetoothAdapter    pid-5056     D  isLeEnabled(): ON
BluetoothAdapter    pid-5056     D  isLeEnabled(): ON
BluetoothAdapter    pid-5056     D  isLeEnabled(): ON
BluetoothGatt       pid-11915    D  close()
BluetoothGatt       pid-11915    D  unregisterApp() - mClientIf=6
BluetoothGatt       pid-11915    D  connect() - device: 24:62:AB:F8:49:B2, auto: true
BluetoothGatt       pid-11915    D  registerApp()
BluetoothGatt       pid-11915    D  registerApp() - UUID=deb5d6d9-f687-418e-af80-7a3675ca85d8
BluetoothGatt       pid-11915    D  onClientRegistered() - status=0 clientIf=6

24:62:AB:F8:49:B2 is the address of the node I’m trying to connect to?

Enabling wifi disables bluetooth.

1 Like

Well :person_facepalming:. Simple fix - thanks!