Meshtastic-Android icon indicating copy to clipboard operation
Meshtastic-Android copied to clipboard

[Bug]: Seeed XIAO nRF52840 (239a:810b) missing from USB device_filter

Open koshiro opened this issue 1 month ago • 0 comments

Summary

The Seeed XIAO nRF52840 Kit running Meshtastic enumerates over USB as 239a:810b, which is missing from device_filter.xml. Android therefore never offers "Use by default for this USB device", never auto-launches the app on USB_DEVICE_ATTACHED, and asks for USB permission again after every unplug/reboot. The app also does not reopen the serial port by itself, so the user must reconnect manually each time.

Steps to reproduce

  1. Flash a Seeed XIAO nRF52840 Kit (seeed_xiao_nrf52840_kit) with Meshtastic firmware.
  2. Connect it to an Android phone over USB OTG and select it as the USB serial device in the app. Grant the USB permission dialog.
  3. Unplug and replug the node (or let it reboot).

Expected

After the first grant, permission persists ("Use by default" checkbox shown) and the app reconnects on attach.

Actual

The permission dialog has no "Use by default" checkbox, the permission is lost after every re-enumeration, and the connection stays down until manually re-established.

Evidence

  • Node firmware 2.8.2.fad52bb (the cause is app-side: the USB ID is missing from the filter, independent of firmware)
  • Samsung Galaxy A20 (SM-A205G), Android 11, app 2.8.3 (Google Play)
  • adb shell dumpsys usb shows the node as vendor 0x239a, product 0x810b (about 40 connect/disconnect events); permissions_manager holds no saved permission.
  • The device_filter.xml in the installed APK lists, for vendor 0x239a, only products 0x8029 and 0x4405.
  • Current androidApp/src/main/res/xml/device_filter.xml on main has no 0x810b either.

Proposed fix

Add to androidApp/src/main/res/xml/device_filter.xml:

<usb-device vendor-id="9114"
    product-id="33035" /> <!-- 0x239A / 0x810B: Seeed XIAO nRF52840 Kit -->

I can open a PR if that is welcome.

Note

BLE works, but USB powers the node, so serial avoids the extra radio power draw.

koshiro avatar Oct 30 '26 19:10 koshiro