Files
visormesh/palm-client
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
..

Palm client

The VisorMesh app for the Visor Neo (Palm OS 3.5.2H3.0). It's written in C with prc-tools-remix (GCC 2.95 for m68k) and PilRC, against the Palm OS 3.5 SDK.

Build

make          # -> build/visormesh.prc
make test     # host-side tests for the protocol framing

If m68k-palmos-gcc isn't installed, make builds and runs the visormesh-palm Docker image (see Dockerfile) and does the build inside it. The first run takes a minute or two. The image is amd64-only, so on Apple Silicon it runs under emulation. That's fine for builds this small.

The toolchain versions and the palm-os-sdk commit are pinned in the Dockerfile.

Your editor's C checker can't see the Palm SDK headers, since they only exist inside the image. Errors like 'PalmOS.h' file not found there are expected and don't affect the build.

Code layout

File Layer
src/transport.h Byte-stream link to the radio. One implementation per transport
src/transport_srm.c Serial Manager transport (cradle serial port, or an emulator's serial port)
src/protocol.[ch] MeshCore companion framing (</> + 2-byte LE length). Pure C, so it's tested on the host
src/main.c App startup, event loop, main form
resources/visormesh.rcp PilRC forms and alerts. IDs are in src/resources.h
tests/ Host tests (make test)

The SB-LoRa transport (bus-SPI into the SC16IS740) will be a second transport_*.c behind the same interface.

Creator ID is VMsh. The database has the backup bit set, so HotSync keeps a copy.

Install on the Visor

The Visor's USB cradle is plugged into a Linux sync host: the Mac mini running Debian 13 at roberholtzer@10.3.0.150. make install builds the .prc, copies it there, and runs tools/cradle-install.sh. That script waits for you to press the HotSync button and then runs pilot-xfer -i.

make install                                   # default SYNC_HOST is the Mac mini
make install SYNC_HOST=user@host SYNC_PORT=usb:   # another host, or pilot-link via libusb

The sync host needs:

  • the kernel visor USB-serial driver. Debian 13 ships it as a module that loads when the Visor connects, and the Visor appears as /dev/ttyUSB1 during HotSync.

  • membership in the dialout group to open the tty

  • pilot-xfer, from pilot-link. Debian 13 no longer packages it, so build https://github.com/desrod/pilot-link (maintained by pilot-link's original author) into ~/.local:

    git clone https://github.com/desrod/pilot-link.git ~/src/pilot-link
    cd ~/src/pilot-link
    ./autogen.sh --prefix=$HOME/.local && make -j"$(nproc)" && make install
    
  • SSH key login from your dev machine

Not tested end to end yet.

Testing without hardware

The Visor can't be emulated on a Mac: CloudpilotEmu doesn't support Handspring devices. Use CloudpilotEmu (https://cloudpilot-emu.github.io/app) with a Palm OS 3.5 device ROM, such as a Palm IIIx or m100. The OS APIs match the Neo's. In the emulator, "Query radio" should report "No reply" or an open error, since there's no radio attached.