Query radio on the Visor Neo got DEVICE_INFO from the XIAO via USB
cradle -> visor_bridge.py -> FTDI -> D6/D7 UART. The app's HsUd driver
sends on the Visor's HOTSYNC USB port (2), not GENERIC, so the bridge
listens on every port and replies on the one in use; stalled endpoints
are cleared instead of ending the session. The app waits after SrmOpen
and retries sends that time out while the bridge attaches. make install
stops the bridge, which would otherwise grab the Visor during HotSync.
APP_START/SELF_INFO, GET_CONTACTS/CONTACT/END_OF_CONTACTS and
SYNC_NEXT_MESSAGE with v3 contact and channel message frames, laid out
per MeshCore MyMesh.cpp. Little-endian fields are assembled byte by byte
so they decode correctly on the big-endian 68k. Builders are checked
byte-for-byte against frames the real radio accepted; SELF_INFO and the
empty contact list are real captures (key and name redacted), contact
and message frames are synthetic. companion_query.py gains --text.
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.
macOS briefly holds the Visor right after HotSync enumerates it, so
pilot-link's single USBDeviceOpen failed with kIOReturnExclusiveAccess
and the Visor reported the connection couldn't be established. The
patch retries the open for up to 2 s. pilot-xfer -l now lists the
Visor Neo's databases.
Rename pi-install.sh to cradle-install.sh, default SYNC_HOST to the
Mac mini, and look for pilot-link in ~/.local (it's no longer packaged
in Debian 13). make install now depends on all, so it works when the
build runs in Docker.
prc-tools-remix 2.3.6 + PilRC + Palm OS 3.5 SDK (pinned) in a Docker
image; make builds visormesh.prc there when the toolchain isn't local.
App has a main form whose Query button sends CMD_DEVICE_QUERY over the
Serial Manager transport. Companion framing is plain C with host tests.
make install pushes the .prc to a Pi with the USB cradle (untested).