firmware: enable USB companion link, add bench query tool; verified on XIAO

Flashed the UART companion build to the SB-LoRa XIAO. With
ENABLE_USB_INTERFACE it also answers over USB, so it can be tested and
configured without an adapter. companion_query.py (stdlib only) sends
CMD_DEVICE_QUERY and got DEVICE_INFO for MeshCore v1.17.1; that frame
is now a palm-client host test.
This commit is contained in:
rich committed 2026-11-01 11:05:42 -05:00
1 parent f1bd57a434
commit e21bc642b1
6 files changed
+138 -7

No files matched your search

+4 -2
View File
@@ -15,8 +15,9 @@
- [ ] In Visor: read/write SC16IS740 scratch register (SPR, 0x07) from Palm side
### Firmware
- [ ] Apply `firmware/meshcore-xiao-nrf52-uart-companion.patch` to MeshCore, build `Xiao_nrf52_companion_radio_uart`
- [ ] Bench-test over 3.3 V USB-TTL on D6/D7 with meshcore-cli
- [x] Apply `firmware/meshcore-xiao-nrf52-uart-companion.patch` to MeshCore, build `Xiao_nrf52_companion_radio_uart` (`firmware/Makefile`, MeshCore a366955c, GCC 14 on Apple Silicon)
- [x] Flashed to the XIAO; answers `CMD_DEVICE_QUERY` over USB with DEVICE_INFO (v1.17.1)
- [ ] Bench-test the D6/D7 UART over a 3.3 V USB-TTL adapter (`firmware/tools/companion_query.py`)
- [ ] Plug stack into carrier; `CMD_DEVICE_QUERY` gets a DEVICE_INFO reply
### Palm client
@@ -54,3 +55,4 @@
- Starting Palm client development.
- macOS USB sync to the Visor works with pilot-link from desrod's repo. Fixed a race where macOS holds the Visor briefly when it appears, so pilot-link's single open attempt failed with exclusive access. The retry patch is saved in `palm-client/tools/`.
- First on-device run: VisorMesh v0.1 installed with `make install` and launches on the Visor Neo.
- Firmware builds and runs. Fixed the patch's I2C override (`-U` flags broke Wire under PlatformIO; now `build_unflags`). Pinned native GCC 14 on Apple Silicon. Enabled the USB companion link alongside the UART. The XIAO answers DEVICE_QUERY over USB, and that real frame is now a Palm host test.