Commit Graph
94 Commits
Author SHA1 Message Date
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 1ff401f6e3 docs: progress for screenshots 2026-11-03 13:02:44 -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 dafd6166ac docs: progress for pins 2026-11-03 11:41:58 -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 a11d20bfe0 AGENTS.md: workflow, build, bench and Palm OS rules for coding agents 2026-11-03 11:20:48 -05:00
rich c0f364a89c docs: progress for tap-and-hold 2026-11-03 11:17:26 -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 7b2f10343c docs: progress for the background message check 2026-11-03 11:09:24 -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 8d8cd563d1 progress: repeater admin console and contact screens verified on the Neo 2026-11-02 07:21:41 -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 49fe88728a README: palm-client and firmware descriptions are current 2026-11-01 21:48:10 -05:00
rich 3f6cf7cc1c docs: upstream issues found so far (pilot-link, PilRC/prc-tools, MeshCore)
Evidence, workaround and suggested fix for each: pilot-link's macOS USB
open race and dead debug logging, PilRC's corrupt NFNT header, the
prc-tools multi-section traps, MeshCore's radio params not retuning until
reboot, the clock persisting through contact lastmods, and stale bytes in
unused GET_CHANNEL replies. Nothing has been filed yet.
2026-11-01 21:48:04 -05:00
rich bd7a9ec4b2 progress: compose, Unicode, line breaks, alerts and new divider verified on the Neo 2026-11-01 17:38:32 -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
rich 8dd34839e0 palm-client: two-line compose field; redraw fully after the keyboard
The single-line compose field didn't scroll, so typing past its width was
blind; it's now a two-line multi-line field (Palm scrolls it to keep the
cursor visible; the transcript is 8 px shorter). Graffiti return still
sends: the form catches linefeed before the field.

Screens treated every frmUpdateEvent as new data and only redrew their own
content, so after the on-screen keyboard (frmRedrawUpdateCode) the field,
buttons and counter weren't redrawn. Conversation, Home, Contacts and Node
now redraw the form for frmRedrawUpdateCode.
2026-11-01 17:22:54 -05:00
rich 3e3edb1d4d progress: channels and wake-reconnect verified on the Neo 2026-11-01 17:19:50 -05:00
rich ac40815b4f palm-client: only start Docker when sources changed
make install hung for minutes when Docker Desktop's amd64 emulation stopped
starting containers, although the .prc was already built. Without a local
toolchain, build/visormesh.prc now depends on the sources, resources and
.def, so an up-to-date install goes straight to pilot-xfer.
2026-11-01 17:17:27 -05:00
rich 9d868898ac palm-client: add and leave channels (#hashtag and private by key)
Options > Add Channel: a #hashtag channel's key is the first 16 bytes of
SHA-256 of its UTF-8 name, '#' included (companion_protocol.md: #test ->
9cd8fcf2...); a private channel is joined with its 32-hex-digit key. It
goes in the first free slot via CMD_SET_CHANNEL and opens the new
conversation. Options > Leave Channel empties the open channel's slot
(empty name, zero secret) after asking. Creating a private channel isn't
offered: the Visor has no good randomness for a key.

SHA-256 is plain C in the second segment, host-tested against 'abc', the
documented #test key and every padding boundary. Adds VmParseHex and
VmBuildSetChannel with tests. sections.h leaves the attribute off under
clang so the editor's checker stops flagging it.
2026-11-01 16:15:57 -05:00
rich 6ebcf9a2de palm-client: reconnect after the Visor wakes from sleep
The serial/USB link doesn't survive sleep, and the session kept thinking it
was connected. Ticks stop during sleep while the clock runs on, so a clock
jump past the ticks means we slept: drop the session, reconnect quietly
(the radio queued what arrived; connect syncs it) and refresh the screen.
If the reconnect fails it's retried on the next wake.
2026-11-01 16:13:02 -05:00