Commit Graph
101 Commits
Author SHA1 Message Date
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 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 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 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 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 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 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 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 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 08d7b20a16 palm-client: Radio Stats lines fit the screen: battery, storage, noise floor and last heard each get their own line, any line too long is cut, and the noise graph takes the height the lines leave 2026-11-06 10:58:53 -05:00
rich 6e6adf780b palm-client: a contact's More lists what suits its type (Admin Console, Trace / Route, Ping, Reset Path, Block, Beam, Remove); main.c wires the new screens, menus, the beam launch codes and the inbox; Makefile builds the new modules 2026-11-05 15:02:22 -05:00
rich e47a54d189 palm-client: in a conversation, tap a #hashtag to open that channel, or join it after asking (lowercased, as MeshCore One joins them). Typing @ (or Options > Insert Mention) lists recent senders here and then the companions in the contacts, and inserts @[Name] 2026-11-05 15:02:22 -05:00
rich f3be31bd76 palm-client: beam a contact (More > Beam), yourself (Contacts > Beam My Contact) or a channel (Channel > Beam Channel) to another VisorMesh over IR, as the meshcore:// links MeshCore One shares as QR codes. A beam is received in segment 1 without globals and saved to an inbox; the app then asks to add the contact or join the channel (now, later or discard). ChannelJoin, from Add Channel, joins or opens a channel by key 2026-11-05 15:02:22 -05:00
rich 7f982b872b palm-client: Contacts > Remove Stale Contacts: removes from the radio the contacts it hasn't heard an advert from in 2 weeks, a month or 3 months, after saying how many. Kept: ones with messages on the Visor, ones never heard (added by key) and ones we're logged into 2026-11-05 15:02:22 -05:00
rich 34c99d8b0a palm-client: block a sender (a contact's More, or hold their message > Block Sender): their new messages and reactions are dropped as they sync, also in the closed-app check. A contact is blocked by key and by name (channels name senders only by name). Contacts > Blocked Senders lists them to unblock 2026-11-05 15:02:22 -05:00
rich 80f2d2781b palm-client: a repeater's "neighbors" reply in its admin console also goes on the Map for 30 minutes: a line from it to each neighbour with a position, solid for SNR 0 dB or better, grey below. Cmds lists the region commands (region, get, allowf, denyf, save) 2026-11-05 15:02:22 -05:00
rich 1fe0d00fae palm-client: Trace Path (Go menu, or a contact's More > Trace / Route): a trace through the repeaters typed as hop codes or picked with Add, out and back the same way, listing the SNR each hop heard it at and the time it took. For a contact it starts from its route, and Set Route makes the hops its route (ADD_UPDATE_CONTACT from its own record, so nothing else changes). Ping: a trace to a repeater one hop away and back 2026-11-05 15:02:22 -05:00
rich 493e2b98f2 palm-client: a DM with no ack is tried again by itself, as MeshCore One does: 4 tries on the contact's route, then the route is reset and one more goes as a flood (which brings a new route); 2 tries for a contact with no route. Only DMs sent this session; after that it stays failed for Retry. Path Details shows the try number 2026-11-05 15:01:55 -05:00
rich 7801272830 palm-client: Radio Stats (Go menu, or Stats on Node): the radio's battery, storage, uptime, queue, last signal, airtime and packet counts, read every 5 s, with a graph of its noise floor. Heard Packets (Go menu): the last 40 packets from the RX log, filtered to chat or adverts, a tap showing one in full with its repeaters. info_fmt.c shares the path text with Path Details. The resources also hold the forms and alerts for the features that follow 2026-11-05 14:50:04 -05:00
rich 50a5a486db palm-client: a fifth code segment, and Node, Settings, Font Preview and Add Channel move from vmcode2 (31.1 KB) to vmcode4, leaving vmcode2 room for the hooks the next features need. protocol2.c (vmcode5, host-tested) has the newer companion commands: trace path, stats, battery, a contact's route, plus meshcore:// share links and #hashtags in text 2026-11-05 14:43:50 -05:00
rich ee6e4d7a7b palm-client: tap and hold a message for React, Reply, Send DM and Path Details (also Options > Message Actions for the newest). Reactions use MeshCore One's format (@[Name]<emoji>\n<hash>, hash = Base32 of SHA-256(text || LE timestamp)), so MC1 and MeshMonitor show ours and we show theirs: kept in their own store, shown under the message, never chat or unread. Received messages keep their hash and, matched from the RX log push, the repeaters they came through. The emoji glyphs now go out as the emoji they show, not cp1252 quotes 2026-11-05 09:11:29 -05:00
rich 52c4101796 palm-client: over USB, don't send while CTS is off: it's off while nothing on the host reads (bridge stopped), and then SrmSend blocks 10 s whatever the CTS timeout (measured on the Neo: that was the slow reconnect). Reconnect steps skip the send; other sends wait up to 1 s for the host. Drops the CTS-timeout setting, which the USB driver ignores 2026-11-05 07:14:07 -05:00
rich 453559cd5c palm-client: a reconnect in steps is lighter on the app: reads that can't wait check what's buffered first (SrmReceiveCheck), steps 4 times a second instead of 10, its DEVICE_QUERY send waits 100 ms instead of 250 2026-11-04 09:45:55 -05:00
rich b5ce1098b3 palm-client: reconnects after a wake or a lost link run in steps on idle events (open, attach wait, DEVICE_QUERY with the reply checked without waiting), so the app stays usable while it looks for the radio; titles show "connecting"; Options > Connect and a tap on "offline" still connect in one go 2026-11-04 09:36:19 -05:00
rich f9aa7a1e93 palm-client: serial sends wait 250 ms at a time (8 tries, 2 s) instead of the 5 s CTS default, so a connect with nothing reading at the other end (bridge stopped) can't freeze the app for over a minute 2026-11-04 09:31:52 -05:00
rich ce1626410f palm-client: a command the radio doesn't answer closes the session (offline, not "online" with every command failing), with retries as after a wake; after a quiet minute a time query checks the link is still there 2026-11-04 09:24:51 -05:00
rich d2f992eafc palm-client: connection state in conversations' title too (the title is cut to make room); tapping "offline" or Options > Connect connects; a reconnect after wake that fails or is stopped is retried 2, 4 ... 256 s later (it often ran before the USB link was back and was never tried again) 2026-11-04 08:56:02 -05:00
rich acf4544f24 palm-client: Options > About VisorMesh: app version, and the radio's firmware when connected 2026-11-04 07:39:45 -05:00
rich f37f0f61c4 palm-client: conversations: an SNR that doesn't fit after a wrapped message goes in its last line's time column instead of a line of its own; "tap for earlier messages" at the top shows 40 more at a time 2026-11-04 07:39:45 -05:00
rich 03bd0e7625 palm-client: Contacts shows the route only when known (not "flood" on nearly every row), so names get the room 2026-11-04 07:39:45 -05:00
rich 2643a2b40e palm-client: wrapping doesn't split a @[Name] mention across lines (it stays one chip) unless the mention alone is longer than the line 2026-11-04 07:39:45 -05:00
rich aa3a5da9fe palm-client: one DbOpen for the three stores (in vmcode4: frees 420 bytes of vmcode2; the channel cache is now backed up too); notes on why session.c stays in segment 1 and on AppLoadPrefs loading every module's prefs 2026-11-04 07:36:27 -05:00
rich aedf6eb4c7 palm-client: a connect gives way to the user: a tap or key press stops it (before the radio answers) or skips the refresh steps left (after), instead of locking the app for up to 7 s 2026-11-04 07:23:36 -05:00
rich 73861a9f12 palm-client: closed-app checks that find no radio space out (doubling, up to an hour); a check or app session that reaches the radio restores the interval 2026-11-04 06:56:36 -05:00
rich 3edce2b5cd palm-client: the ack timeout check only scans the message store once the earliest deadline can have passed, not every poll 2026-11-04 06:56:36 -05:00
rich 745892d5f3 palm-client: reconnects download only the contacts changed since the last download (the first connect of a run is still a full refresh) 2026-11-04 06:56:36 -05:00
rich 04346a4b7c palm-client: standard Edit menu on every screen with a text field; Contacts, Serial Ports and Screenshot shortcuts move off C, P and S 2026-11-03 18:20:37 -05:00
rich 35663f62af palm-client: channel history follows the channel's key when its slot changes, and is set aside when it's left; the new-messages marker survives old messages dropping off 2026-11-03 18:20:37 -05:00
rich da92a158bb palm-client: reply waits never pass a negative timeout (it could mean wait forever) 2026-11-03 18:20:37 -05:00
rich 73430ad038 palm-client: screenshot sounds the error when the screen has no bitmap; make shots stops cleanly without the database 2026-11-03 11:50:10 -05:00
rich b9dc923e0f palm-client: screenshots (Options > Screenshot, Screenshot in 5 s; make shots)
The screen bits go into a VisorMeshShots record (shots.c, segment 1, no
globals: the delayed one runs from a procedure alarm inside whatever loop is
running, so menus and popups can be captured). make shots fetches the
database over HotSync and tools/shots.py writes PNGs to build/shots/.
2026-11-03 11:48:13 -05:00
rich 663a91d9c3 palm-client: pin channels too; pinned conversations get their own section on Home
Pins hold the conversation type and key (prefs v2; v1 DM pins carry over).
PinsGroup (segment 4) moves pinned rows into a Pinned section at the top,
channels then DMs, and drops sections left empty.
2026-11-03 11:40:05 -05:00
rich 3fd932da4f palm-client: pin DMs to the top of Home's Direct list (tap and hold: Pin/Unpin)
Pins are kept by key prefix (pins.c, segment 4, up to 8), so they work for
senders who aren't contacts; those get a Pin-only popup. Pinned DMs sort
first, most recent first among themselves; the rest keep their order.
2026-11-03 11:31:44 -05:00
rich 9cca51a8dd palm-client: tap and hold a DM on Home for Contact Info, Reset Path, Remove Contact
The contact screen's Reset Path and Remove become ContactResetPath/ContactRemove
for any contact. Unknown senders fall back to a tap. The popup now flips above
the row against the list's bottom, not the row's (it always opened below).
2026-11-03 11:23:08 -05:00
rich aa09b1800d palm-client: tap and hold a channel on Home for Mute/Unmute, Channel Scope, Leave
RowList gets an optional hold callback: the pen still (3 px) on a row for half
a second unhighlights it, and lifting calls the callback (DMs fall back to a
tap). The channel actions take a slot, with the menu versions wrapping them.
2026-11-03 11:11:30 -05:00
rich be2d287ab2 palm-client: background check opens the channel and contact lists
Without them every channel lookup failed: the alert showed 'Channel N', channel
messages sounded as private and muted channels weren't skipped.
2026-11-03 10:55:55 -05:00