Commit Graph
87 Commits
Author SHA1 Message Date
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
rich e3a3aa376e palm-client: new-message alert lists the count per conversation; icon from meshcore-visor-hair-1.png
Checks add the messages they pulled (outside muted channels) to a pending
table in unsaved prefs, with names looked up while they have globals; the
display launch lists up to five conversations and 'N more elsewhere'.
make_icon.sh takes a PNG and thresholds the 1-bit icons instead of dithering.
2026-11-03 10:48:53 -05:00
rich 3ccbb6599f palm-client: background check tells the app is open by a feature, not SysCurAppDatabase
In the alarm launch SysCurAppDatabase names VisorMesh itself, so every check
was skipped as 'app open' (status stayed 'Not checked yet').
2026-11-03 08:56:31 -05:00
rich 297a53ac49 palm-client: exiting keeps a pending background-check alarm (the time Preferences showed) 2026-11-03 08:46:53 -05:00
rich 33867c9ffe palm-client: menus split into Go / Channel / Options, per screen
Channel menu only on Home (Add) and in a channel conversation (Add, Leave,
Mute, Scope); DMs and the other screens get Go and Options. The Contacts
list now has the menu too.
2026-11-03 08:45:07 -05:00
rich 966b0bdc1b palm-client: app icon from meshcore-visor-hair.svg (tools/make_icon.sh); background check status on Preferences
The alarm now stays set while the app is open (checks skip) and is set as
soon as the interval changes; each check records what it got to, shown as
'Last 8:11 no radio, next 8:16'.
2026-11-03 08:37:52 -05:00
rich 531697479c palm-client: check for messages while closed (alarm every 5-60 min, Preferences > Check when closed)
The alarm launch sublaunches the app with globals to connect without the
channel/contact refresh, sync queued messages and play the sound; new
messages keep the alarm for display, which shows an alert with Open.
Untested on the device.
2026-11-03 07:23:16 -05:00
rich 2eda7e1212 palm-client: fourth code segment (map, flood scopes); title status no longer leaves text behind 2026-11-02 13:12:30 -05:00
rich 6dd623f778 palm-client: glyphs for 12 common emoji, tap an emoji to see it enlarged 2026-11-02 13:07:01 -05:00
rich ae4d8453d8 palm-client: contact keys and unknown-sender prefixes in hex without StrPrintF (showed zeros) 2026-11-02 12:39:35 -05:00
rich deec3112d4 palm-client: Map screen with an OSM basemap (tools/make_map.py) and positioned nodes 2026-11-02 12:33:52 -05:00
rich f0ef46bef5 palm-client: failed marker on Home follows the newest outgoing message 2026-11-02 11:20:56 -05:00
rich 7c4473bcb5 palm-client: flood scopes (list, radio default, per-channel scope, discover from neighbouring repeaters) 2026-11-02 11:17:44 -05:00
rich 1c3c9c3b25 fonts README: where 5x8.bdf comes from 2026-11-02 10:58:33 -05:00
rich b57c51feb7 palm-client: mute channels and a larger text option (5x8 font) on a Preferences screen 2026-11-02 10:58:16 -05:00
rich 04dc47664b palm-client: interrupt-driven SB-LoRa receive (slot IRQ handler drains the SC16IS740 into a ring) 2026-11-02 10:44:19 -05:00
rich beff26b28e palm-client: notification sounds per event kind, with a Sounds screen 2026-11-02 10:38:42 -05:00
rich dbf8995433 docs/reference: Handspring SDK (HsExt.h, Springboard docs and tools) 2026-11-02 10:28:07 -05:00
rich 4c66088eff palm-client: check for an SB-LoRa module with HsCardAttrGet before bus access; shorter Node-screen errors 2026-11-02 10:25:36 -05:00
rich f877fdddb1 palm-client: don't restore the Slot link at launch (empty slot bus error reset the Visor on every launch) 2026-11-02 10:14:12 -05:00
rich ab583ff4dc palm-client: SB-LoRa transport (bus SPI, SC16IS740 driver, Slot link) with simulated-carrier tests 2026-11-02 10:03:51 -05:00
rich 80a0c90954 palm-client: bridge.sh to start, stop and check the Visor USB bridge 2026-11-02 09:55:11 -05:00
rich 4068473ad1 palm-client: admin console for repeaters and rooms (CLI, status, telemetry)
Login on a repeater opens the console (rooms: More > Admin Console). A
command line sends CLI commands (SEND_TXT_MSG with txt_type CLI); replies,
which the radio delivers as CLI-type DMs, go to the console instead of the
conversation. Status (SEND_STATUS_REQ -> 0x87) shows the repeater's
RepeaterStats: battery, uptime, queue, noise, last RSSI/SNR, packet counts,
airtime, dups and errors. Telem (SEND_TELEMETRY_REQ -> 0x8B) decodes the
Cayenne LPP readings. Cmds lists common commands and Read settings (ten
gets); items ending in ... go into the command line to finish. One request
at a time, the rest queued; no answer is reported after the radio's
estimate plus 8 s.

remote_fmt.c (builders, parsers, text) is pure C and host-tested; the
console and screen are in segment 3 (12.4 KB).
2026-11-02 07:17:03 -05:00
rich fe5064cdab palm-client: contact detail with signal history, room login, add contact by key
Contact detail (new screen, segment 3): type, route, last advert, the full
key, and every time the radio heard the node directly with SNR/RSSI.
Message, Login (rooms and repeaters, password prompt), More: Reset Path,
Remove.

Signal history comes from the radio's RX log pushes (0x88), which it
already sends for every packet: a zero-hop advert names its sender; a
flooded packet's last path hash names the repeater we heard it from.
Hearings of the same node within a minute merge. 48 entries, kept in an
unsaved preference across launches. Parser host-tested, including
transport codes and direct routes (no 'from').

Rooms: Message logs in first if needed (SEND_LOGIN, then the
LOGIN_SUCCESS/FAIL push, waiting as long as the radio estimates). Room
posts are signed messages: the author's 4-byte prefix is now parsed and
the transcript shows the author's name instead of the room's.

Add Contact (Contacts > Add): name, type and 64-hex-digit key, sent with
ADD_UPDATE_CONTACT with an unknown path, for messaging a node whose advert
hasn't been heard.
2026-11-01 21:55:52 -05:00
rich 55b77c84a7 palm-client: third code section (vmcode3); checker resolves COFF symbol sections
visormesh.def adds vmcode3 and sections.h VM_SECT3, ahead of new screens
(segment 2 is at 27 KB). check_sections.py checks every extra section, and
now maps COFF symbols' (sec N) to section names: before, it only resolved
section symbols such as .text, not named ones. sect2.py takes --sect3.
2026-11-01 21:49:29 -05:00
rich 5d0bda5b31 palm-client: line breaks in messages, alerts for DMs/mentions, a 'new' divider
Line breaks: TxtWrap only broke at spaces and the width, so a \n in a
message was drawn as a character and the text ran on. It now ends the line
at \n, \r or \r\n (host-tested), and the Home preview shows breaks as
spaces.

Alerts: a new DM, or a channel message containing @[our name], plays the
system 'confirmation' sound (it follows the Visor's sound settings), unless
that conversation is on screen. Plain channel traffic stays quiet.

Opening a conversation with unread messages draws a '-- new --' divider
before the first of them and scrolls to it instead of to the end.
2026-11-01 17:30:56 -05:00
rich c713d8ba34 palm-client: modules into segment 2 with a build check; better Unicode display
Segment 1 was back at 27 KB. Settings, Contacts, Channel, Home, Node,
convos, messages, contacts, channels, rowlist and draw move to vmcode2:
segment 1 is now 10.3 KB, segment 2 23.4 KB. tools/sect2.py adds the
VM_SECT2 static declarations.

Checked in the compiled code, the rules in sections.h were too cautious:
literals in a vmcode2 function are emitted into vmcode2, a file's static
const data and calls to unannotated functions go through the __text__
base, and taking a vmcode2 function's address (event handlers, callbacks)
gives its real address. The real traps are shared extern const tables and
-fwritable-strings (PC-relative into .data). tools/check_sections.py runs
after every link and fails the build on any PC-relative reference from
vmcode2 to outside it; python3 added to the toolchain image for it.

Unicode: characters past Latin-1 all became '?', and Windows-1252 quotes
and dashes had no glyph in the small font. Now arrows, check marks, stars,
bullets and node-type marks map to the font's UI symbols, typographic
quotes and dashes to ASCII, any emoji to a new smiley glyph, and
variation selectors / zero-width joiners are dropped.
2026-11-01 17:29:20 -05:00