184 Commits
Author SHA1 Message Date
rich fec5a03358 palm-client: release workflow: a v* tag builds and tests the app and publishes visormesh-<tag>.prc with SHA256SUMS as a release; the toolchain install moves to tools/install_toolchain.sh so CI and the Dockerfile share the pinned versions
release / palm-client (push) Successful in 3m14s
v0.1
2026-11-11 16:49:05 -05:00
rich 00feaffca5 hardware: SB-LoRa rev 2 footprints for the XIAO (flat or by its header, bottom BAT/SWD pads through solder-filled holes), the Wio (14 holes) and the LiPo pads, generated from Seeed's own KiCad files 2026-11-09 15:17:32 -05:00
rich bbfb334431 hardware: SB-LoRa rev 2 LCSC numbers for the flash (C914935), OR gate (C91874), inverters (C105251) and dual translator (C15741) 2026-11-09 15:12:25 -05:00
rich 440845684c hardware: SB-LoRa rev 2 flash pinout checked against the S29AL016J datasheet; it reads as an Am29LV160BB to Handspring's flash driver 2026-11-09 15:10:31 -05:00
rich de88c7a7a1 hardware: SB-LoRa rev 2 netlist draft: S29AL016J flash on CS0, SC16C650B UART on CS1 with OR-gated strobes (the slot can assert OE*/WE* with CS1*, the UART wants 10 ns after CS), XIAO and Wio side by side, battery and SWD pads. Plan: the flash's installer copies the app to RAM, since the transport's interrupt handler can't live on a removable module; battery sizing estimate 2026-11-09 13:46:56 -05:00
rich f33f5d18dc docs: SB-LoRa rev 2 plan: keep the flash, and replace the SC16IS740 SPI bridge with a 16550-style UART on CS1*, since the flash already needs the full bus 2026-11-09 13:38:47 -05:00
rich 4dd5e5893d docs: SB-LoRa rev 2 plan: how the app gets onto the flash (make rom, an updater .prc run from RAM, Handspring's MakeROM and Flash Manager sources as the base) 2026-11-09 13:37:25 -05:00
rich 99b66a2cf9 docs: SB-LoRa rev 2 plan: running from the module's flash leaves the app's features intact (all data is in RAM databases); note the copy-to-RAM alternative 2026-11-09 13:30:49 -05:00
rich 62d22b59dc docs: SB-LoRa rev 2 plan: the Wio's underside is bare, so it sits flush on the carrier 2026-11-09 13:18:52 -05:00
rich 189091e462 docs: SB-LoRa rev 2 plan: the Wio's 8 mm top socket comes off; it was the tallest part once the XIAO moves alongside 2026-11-09 13:18:21 -05:00
rich 460b82a214 docs: SB-LoRa rev 2 plan: the Wio mounts by its own male pins through the carrier; its unused top socket is the tallest part and may come off 2026-11-09 13:16:56 -05:00
rich 41043065f2 docs: SB-LoRa rev 2 plan: correct the battery cut-out note (rev 1 has none) 2026-11-09 13:15:26 -05:00
rich 14920abb52 docs: SB-LoRa rev 2 plan: reach the XIAO's bottom BAT and SWD pads through solder-filled plated holes in the carrier, so it can sit flat with no gap for battery wires 2026-11-09 13:15:21 -05:00
rich d1be438e63 docs: SB-LoRa rev 2 plan: the XIAO and Wio unplug from each other, so side by side needs only the XIAO's pin header dealt with; drop the stacked fallback 2026-11-09 13:13:08 -05:00
rich 2fc4aa6203 docs: SB-LoRa rev 2 plan: connector change waits on the Hirose order; the XIAO and Wio come soldered together, so side by side means separating them, with a headerless stack as the fallback 2026-11-09 13:11:08 -05:00
rich a4a70fb3eb docs: SB-LoRa rev 2 plan: XIAO and Wio side by side instead of stacked, a CS0 flash so the app loads on insertion, and a single-sided PC Card connector in place of the obsolete Hirose straddle part; lists what's still open 2026-11-09 13:08:29 -05:00
rich 0136ed96ab docs: layout fixes and New Key verified on the Neo 2026-11-08 19:42:55 -05:00
rich 52f3f09a13 docs: AGENTS.md covers the try-once check and make replay 2026-11-08 19:39:02 -05:00
rich 4b05bf25d5 palm-client: Add Channel's New Key (private channels) fills in a random key from a pool fed by what can't be predicted: the exact tick and position of every pen and key event, and the signal readings of every packet the radio reports. Samples are folded into a SHA-256 pool, a key is a hash of it, and the pool moves on after each; it's kept between launches in an unsaved preference (never in a backup). Until 256 samples have come in, New Key asks for a few seconds of stylus movement. Host-tested in tests/test_entropy.c 2026-11-08 19:38:55 -05:00
rich 2c32033292 palm-client: check_ui.py fails the build when two drawn form objects overlap (a label running into its value or a button); it reads each object's usable bit so popup lists shown by the code don't count 2026-11-08 19:35:47 -05:00
rich 18c55ef8aa palm-client: three labels no longer run into what follows them: Node's 'Firmware:' is 'Version:', Preferences' Check when closed trigger moved right (its choices are '5 min' to '1 hour' so the longest still fits), and Flood Scopes' default moved right 2026-11-08 19:35:47 -05:00
rich 6c17e25a76 palm-client: the request retry rules are in request.c (session.c supplies the link), host-tested with a scripted link in tests/test_request.c: a frame that went out is sent again only while tries allows, one that didn't go is resent up to 4 times without using up tries, one cut off part way never is. check_source.py checks that the functions that send over the air or take a queued message (messages, reactions, adverts, syncs, logins, traces) only ever use tries 1 2026-11-08 19:34:16 -05:00
rich e068a51768 palm-client: plain make builds the app again (the replay target had become the default goal) 2026-11-08 19:34:16 -05:00
rich 359908e927 palm-client: make replay runs the bridge's frame capture through the app's parsers and fails on any frame of a code the app parses that doesn't parse, to catch a firmware layout change before it reaches the Visor. The bridge captures every frame in full with --capture (bridge.sh writes $TMPDIR/visor_frames.txt); captures hold real messages and stay local 2026-11-08 19:32:00 -05:00
rich bb2fc014ab palm-client: the module can't keep waking a Visor on failing batteries. A slot power handler (SbPwr, in the copied block) stops the chip interrupting on a low-voltage shutdown, as the Springboard guide asks of modules without LOWBAT*; since the Neo's OS never reports that reason, the wake's card event handler and BgArmWake also check the battery and turn the wake off at the OS's warning level. Host-tested; untested on hardware 2026-11-08 19:27:39 -05:00
rich 6846d4d79b docs: Slot restore with an empty slot verified on the Neo; wake and bring-up plan noted 2026-11-08 19:22:23 -05:00
rich db46a0806f hardware: SB-LoRa bring-up plan (BRINGUP.md): bare-board and bench-power checks, what each SB-LoRa Test line means and what a failure points to (including the A0 mapping and the read values), moving the XIAO stack over, the Slot link, the message wake and standby current 2026-11-08 19:19:33 -05:00
rich e86b14e440 palm-client: a saved Slot link is restored at launch while the OS reports a module (checked without touching the bus), so the closed-app check and its wake use the module; with the slot empty it stays off, as before, so a launch can't reset the Visor 2026-11-08 19:18:31 -05:00
rich f53f851b0e palm-client: with the Slot link, the radio's 'message waiting' push wakes the Visor. The slot interrupt handler (SbIrq) spots the frame as it drains the FIFO and, as the Springboard guide describes, holds IRQ* (THR empty) to have the system woken, then keeps it awake 10 s for the app to sync. With Check when closed on, the app leaves a copy of the handler in system-owned memory as it closes (SbWakeArm), with the module asleep between frames; it posts a card event whose handler sets the app's alarm for now, so the closed-app check runs at once. check_sections.py checks that the copied block (SbCoreStart..SbCoreEnd) is whole and refers only to itself. The Slot link no longer reconnects after sleep. Host-tested on the simulated module; untested on hardware 2026-11-08 19:17:30 -05:00
rich 1354b6531a docs: Trace result, command retry, empty-slot SB-LoRa Test and Add Contact note verified on the Neo 2026-11-08 19:03:57 -05:00
rich 3ca184099c docs: contact login status verified on the Neo 2026-11-08 19:01:04 -05:00
rich 6056339ad8 palm-client: the contact screen's login status is 'Logging in over the mesh...' (it ran off the edge) and its status line is cut rather than running off; Serial Ports' lines too. check_ui.py now measures literals passed to a screen's own one-line helpers, and fails on a new helper that draws its text until its width is listed 2026-11-08 19:00:40 -05:00
rich 9ae5decc84 docs: Node clock and Radio Stats layout verified on the Neo 2026-11-08 18:57:19 -05:00
rich 5aa68d46ec docs: AGENTS.md describes check_source.py and the screen line tests 2026-11-08 18:53:54 -05:00
rich 19ba4b1cb2 palm-client: the screens' run-time lines are built in screen_fmt.c, and tests/test_screens.c checks them with their longest values in the large font. That found the Node clock lines running off the edge even in the small font (now 'Visor 11/8 14:02 (UTC-5:00)' and 'Radio 11/8 19:02 UTC, sys 300', a font row apart), Radio Stats lines too long for big counts (they wrap now, and the test checks they still fit above Done; errors get their own line, in hex that shows), and the contact summary and a Trace message too wide ('Room server' is 'Room'). Rows that could still be long are cut instead of running off 2026-11-08 18:53:49 -05:00
rich a79349eb76 palm-client: tools/check_source.py runs on every build and fails it on a static const inside a function in an extra code segment (garbage on the Visor), a menu item no code handles, a shortcut letter used twice on a menu bar or taken from the Edit menu, a form with no event handler, and an ID used twice in one form, menu bar or resource type 2026-11-08 18:53:49 -05:00
rich 0aaf4d9b42 docs: wrapped messages and the Add Channel note verified on the Neo 2026-11-08 18:45:43 -05:00
rich ff00ac1577 palm-client: tools/check_ui.py runs on every build and fails it when a form object or label goes past its form, an alert's buttons don't fit across it (Palm OS's layout, calibrated on the Stale Contacts alert), or a literal drawn with DrawCut would be cut. It flags the old Contact button row and Stale alert 2026-11-08 18:40:31 -05:00
rich 0357b2f838 palm-client: Add Channel's and Add Contact's notes are three lines each (both ran past the right edge), and a Font Preview line fits in the large font 2026-11-08 18:40:31 -05:00
rich eaf792faf3 palm-client: Radio Stats' and SB-LoRa Test's messages wrap onto the next line instead of being cut off at the screen's edge (new DrawWrap) 2026-11-08 18:35:53 -05:00
rich bd9d9ce951 palm-client: SB-LoRa Test (Options menu) for board bring-up: the slot's chip selects, which address mapping reaches the SC16IS740 (connector A0 = CPU A1 or A0, with what each read back), its registers after a reset, a 64-byte internal UART loopback, the slot interrupt (the same loopback through the handler) and a DEVICE_QUERY to the radio. Nothing goes over the air; the bus is only touched once the OS reports a module. Host tests cover the mapping and loopback 2026-11-08 18:18:54 -05:00
rich 8fa23f94f9 palm-client: radio commands are sent again when the frame didn't go at all (the USB host re-attaching), up to 4 times, for every command; the transports now tell nothing-sent from part-sent. Commands that are safe to repeat (clock, flood scopes, add contact, reset path) also get a second try when no reply came. Before, most commands tried once and a USB drop took the app offline 2026-11-08 18:18:54 -05:00
rich 597c5ac080 palm-client: Map Picker (tools/map_picker.py): pick any area for the Map on a world map in the browser, see each zoom's tiles and the file's estimated size, and build VisorMeshMap.pdb. OpenStreetMap data is fetched per 0.25-degree cell (retrying a busy Overpass server) and cached. Runs on macOS, Windows and Linux with only Python 3; make_map.py is split into reusable steps (its output is unchanged) 2026-11-06 12:26:41 -05:00
rich aaac4db08b docs: wider street-level map verified on the Neo 2026-11-06 12:05:57 -05:00
rich ce700f1a17 palm-client: the Map's street-level zoom covers about 40 x 31 km (the Main Line to Cherry Hill, Chester to Cheltenham; the map is now 2.0 MB), and outside it the zoom below is shown enlarged instead of blank tiles (Ardmore was blank) 2026-11-06 12:02:26 -05:00
rich f1f2c13ca3 docs: Map layer toggles verified on the Neo 2026-11-06 11:56:05 -05:00
rich c04cfc8dbf docs: repeater neighbours on the Map verified on the Neo 2026-11-06 11:28:28 -05:00
rich 585ef5a6f8 palm-client: the Map gets its own Map menu: Basemap On/Off (M) leaves the nodes on plain white, Neighbour Lines On/Off (L) hides a repeater's neighbour lines. Both are remembered with the view 2026-11-06 11:28:28 -05:00
rich dd72f956d4 docs: multi-hop Trace Path verified on the Neo 2026-11-06 11:24:25 -05:00
rich 512b2b7008 docs: repeater ping verified on the Neo 2026-11-06 11:23:15 -05:00