[Bug]: Seeed XIAO nRF52840 (239a:810b) missing from USB device_filter
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
- Flash a Seeed XIAO nRF52840 Kit (
seeed_xiao_nrf52840_kit) with Meshtastic firmware. - 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.
- 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 usbshows the node as vendor0x239a, product0x810b(about 40 connect/disconnect events);permissions_managerholds no saved permission.- The
device_filter.xmlin the installed APK lists, for vendor0x239a, only products0x8029and0x4405. - Current
androidApp/src/main/res/xml/device_filter.xmlonmainhas no0x810beither.
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.