Commit Graph
31 Commits
Author SHA1 Message Date
rich 9f9032c2bb palm-client: rowlist, a callback-drawn scrolling list for the new screens
Fixed-height rows drawn by a callback in a gadget area with a scroll bar;
section rows can be marked unselectable. Taps highlight like a Palm list
and report the row; the hard up/down buttons and the scroll bar page it.
Events are forwarded by the form rather than FrmSetGadgetHandler, so it
doesn't depend on Palm OS 3.5's gadget extensions.
2026-11-01 15:19:50 -05:00
rich 99978b3bc9 palm-client: text layout module (wrap, cut, age, SNR, UTF-8) and roomier chips
src/ui/text.c is plain C, tested on the host with the generated small-font
width table: word wrap (breaks long words), fit, MeshTerm-style ages, SNR
rounding, the channel 'Name: ' sender split, and UTF-8 to Latin-1/
Windows-1252 with '?' for what the Visor can't show. Name chips get 2px
side and 1px top/bottom padding; the inverted text was smeared on the Neo.
2026-11-01 15:19:04 -05:00
rich 5249d7f5e6 palm-client: write the small font's NFNT directly (PilRC's was corrupt)
Font Preview showed garbled text: the bundled PilRC's FONT compiler writes
a broken NFNT header (first/last char words missing, later fields shifted,
height lost), reproduced with a two-glyph test font. gen_font.py now builds
the NFNT itself (header, glyph strip, location and offset/width tables),
decodes it back and checks every glyph, and PilRC includes it as a DATA
resource. Resources now rebuild when the font changes.
2026-11-01 15:15:46 -05:00
rich 1bae27fe9b palm-client: small 4x6 UI font and a Font Preview screen
tools/gen_font.py builds an NFNT (app font 0x80) from X.org's public-domain
misc-fixed 4x6 BDF plus hand-drawn MeshTerm-style symbols (star, node-type
marks, ack/fail/pending, lock) in 0x80-0x9F, reusing Windows-1252's slots for
ellipsis and angle quotes. It also writes glyphs.h and a width table for host
tests. src/ui/draw.c registers the font and adds section, chip, cut and
right-align helpers. Options > Font Preview draws sample screens so the font
can be judged on the Visor's LCD before the real screens use it.
2026-11-01 15:12:23 -05:00
rich 7d1c84f35d palm-client: offer a radio reboot after changing radio settings
Reception stayed dead after switching to PhillyMesh until the XIAO was
rebooted: SET_RADIO_PARAMS saves and reports the new values, but the
receiver only retunes on a restart. After a radio change, Settings asks
to reboot the radio (CMD_REBOOT + "reboot"; no reply), waits for it and
reconnects.
2026-11-01 15:10:07 -05:00
rich 97b07747ae palm-client: stop duplicate commands and stale replies over USB
The bridge log showed each Refresh sending GET_CONTACTS twice: SrmSend
reports a timeout while the Visor's USB re-attaches but still delivers
the bytes it accepted, so resending the whole frame duplicated the
command, and the extra reply could be taken as the next request's.
TransportSend now only resends the unsent remainder, and each request
first drains input left over from earlier ones (still noting pushes).
2026-11-01 15:00:01 -05:00
rich d00d7fab26 palm-client: contacts (database + screen), command retry, PhillyMesh preset
Contacts: Refresh downloads GET_CONTACTS into a backed-up Palm database
(VisorMeshContacts), keeping the previous list if the download fails, and
sorts by name. The screen lists name with type and route, taps show
details (key prefix, last advert). Path lengths are decoded as hash size
(bits 7-6) + hop count (bits 5-0), since PhillyMesh uses 2-byte hashes.

session.c keeps unread received bytes across waits; before, bytes after a
completed frame in the same read were dropped, which would lose
back-to-back frames like the contact list. Settings commands get two tries
(the Visor's USB link can drop while idle). Ports moves to an Options menu.
Local presets (tools/local-presets.json, PhillyMesh) are listed before
MeshCore's and survive gen_presets.py --fetch.
2026-11-01 14:54:53 -05:00
rich 5f268f4d0e progress: Node Settings verified on the Visor 2026-11-01 12:15:07 -05:00
rich 5a347be52d palm-client: Node Settings screen (name, radio preset/params, TX power, path hash)
Settings validates against the firmware's limits before sending anything,
then sends only what changed (SET_ADVERT_NAME, SET_RADIO_PARAMS with the
client-repeat byte passed through from DEVICE_INFO, SET_RADIO_TX_POWER,
SET_PATH_HASH_MODE), requires RESP_OK for each and names the step that
failed, then re-reads DEVICE_INFO/SELF_INFO.

The preset pop-up uses a snapshot of MeshCore's suggested presets
(api.meshcore.nz, 27 entries) in tools/meshcore-presets.json; src/presets.c
is generated from it by tools/gen_presets.py with exact decimal conversion.
Radio state moves into session.c; TX power is now signed; adds
fixed-point decimal parse/format helpers with host tests.
2026-11-01 12:03:48 -05:00
rich 87e337b6fd palm-client README: Query radio is now Connect 2026-11-01 11:57:48 -05:00
rich c9f6aaeae4 Connect screen verified on the Visor; update bridge prompt 2026-11-01 11:57:44 -05:00
rich c9183dc591 palm-client: connect screen (DEVICE_QUERY + APP_START) and session layer
session.c does request/reply over the transport: waits for the wanted
reply code, skips pushes (remembering PUSH_MSG_WAITING), maps RESP_ERR,
and retries sends while the USB bridge attaches. Connect keeps the link
open and the main form shows node name, frequency, BW/SF/CR, TX power
and firmware. Adds a DEVICE_INFO parser.

Fixes the DEVICE_INFO test fixture: it was hand-typed with two bytes
shifted, and an earlier test had been adjusted to match the typo (version
at offset 62). It's now generated from the capture file; the version is
at 60, as in MeshCore's layout.
2026-11-01 11:53:30 -05:00
rich f4bab463d1 palm-client: USB bench link works end to end
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.
2026-11-01 11:46:04 -05:00
rich 8a118e4cac palm-client: USB link to the radio via the Visor's HsUd port and a Mac bridge
The Ports screen showed the Neo's Serial Manager drivers, including
'HsUd' (USB, the GENERIC port). The app gets a Serial/USB link switch
(USB default); Query radio retries since the bridge needs a moment to
attach, and SrmSendWait is gone (it can block over USB with no host).
tools/visor_bridge.py (stdlib + libusb via ctypes) finds the GENERIC
port from the Visor's connection info and forwards bytes to the radio's
serial port, logging each companion frame. Ports shows one line per
driver so all of them fit.
2026-11-01 11:32:22 -05:00
rich 259c666ad8 palm-client: Ports diagnostics screen; make editor for clangd
The Ports screen lists Serial Manager drivers (creator, feature flags,
max baud, description) to find which one reaches the USB cradle, as a
first step toward a USB bridge for testing before the boards arrive.
make editor copies the SDK headers out of the image and writes
compile_flags.txt so the editor stops flagging Palm OS types.
2026-11-01 11:24:36 -05:00
rich 9fba1903af palm-client: protocol builders and parsers for the read-only commands
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.
2026-11-01 11:20:35 -05:00
rich 829f544479 firmware: D6/D7 UART verified with an FT232R at 115200 8N1 2026-11-01 11:15:49 -05:00
rich e21bc642b1 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.
2026-11-01 11:05:42 -05:00
rich f1bd57a434 firmware: Makefile build at pinned MeshCore, fix I2C pin override
The patch's -UPIN_WIRE_* flags undefined the new values too (PlatformIO
emits -U after all -D), breaking Wire; use build_unflags instead.
Regenerate the patch against MeshCore a366955c. On Apple Silicon, pin the
native GCC 14 toolchain since the default GCC 7.2.1 is x86_64-only.
2026-11-01 11:01:04 -05:00
rich 7d1846e3c9 progress: VisorMesh runs on the Visor Neo 2026-11-01 10:54:15 -05:00
rich decded0375 palm-client: pilot-link patch for Visor USB on macOS, verified link
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.
2026-11-01 10:52:12 -05:00
rich 5163a3cd1c palm-client: README pilot-link build needs --enable-conduits for pilot-xfer 2026-11-01 10:41:44 -05:00
rich 6ff51bea14 palm-client: install from the dev Mac over USB, drop the remote sync host
pilot-link's macOS backend talks to the cradle through IOKit (port usb:),
so make install runs pilot-xfer locally.
2026-11-01 10:37:31 -05:00
rich f1159d6f48 palm-client: install via the Debian 13 Mac mini instead of a Pi
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.
2026-11-01 10:32:20 -05:00
rich cc989cf357 palm-client: Docker toolchain, app scaffold and protocol framing
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).
2026-11-01 10:19:33 -05:00
rich a48a0ae90c design: target device is the Visor Neo with a USB cradle 2026-11-01 10:12:54 -05:00
rich 04079afe99 sb-lora: J1 is obsolete; document sourcing and drop unverified XKB substitute
Track the eBay NOS order and open questions about connector offset
variants and long-term supply in progress.md.
2026-11-01 10:08:51 -05:00
rich 3ec4770bf3 progress: SB-LoRa v0.1 ordered from JLCPCB 2026-10-30 14:48:49 -04:00
rich a9980648bf sb-lora: correct U1-U7 rotations in CPL for JLC part models
Checked in JLC's placement preview: U1, U2, U4 needed a 90 deg clockwise
turn (270) and U3, U5-U7 a 180 deg turn for pin 1 to land on the pin-1
pad. Y1 and D1 were already correct.
hw-v0.1
2026-10-30 14:23:39 -04:00
rich cf22b6dbde sb-lora: replace out-of-stock crystal with SX3B14.7456F2010F30 (C2901666)
SXT32413BA07 (C6264361) is out of stock at LCSC. Same 14.7456 MHz and
3225-4P footprint; 20 pF load vs 13 pF, so with the existing 22 pF caps
it runs a few tens of ppm high, which is irrelevant for UART timing.
2026-10-30 13:57:15 -04:00
rich b1b2171852 Initial import: SB-LoRa v0.1 hardware, MeshCore UART patch, design docs
Organize the planning-session outputs into hardware/, firmware/,
palm-client/ and docs/, with design notes and a progress tracker.
2026-10-30 13:33:31 -04:00