How FieldScout Uses the MeshCore Protocol: Under the Hood
FieldScout is a MeshCore companion app. It does not run its own mesh, change the firmware or add a server: it talks to a stock MeshCore radio over Bluetooth, using the same companion protocol the official app uses, and builds a family-preparedness layer on top.
This page is for people who already run MeshCore and want to know exactly what an app is doing to their radio before they pair it. It covers the link, the connect sequence, how messages and delivery receipts are handled, which commands FieldScout sends, the one place it puts its own bytes on the air, and what it deliberately does not do. If you are new to mesh radio, start with Mesh Radio Explained instead.
Quick answer: FieldScout speaks the MeshCore companion protocol over the Nordic UART Service, one frame per Bluetooth write. It implements about 40 companion commands (messaging, contacts, routes, telemetry, radio settings, stats, console). Its only custom over-the-air format is the family check-in: a group datagram of at most 129 bytes on a private channel, with a published spec and a plain-text copy for other apps. No account, no server, no telemetry. Your contacts, channels and identity stay on the radio, so you can switch between FieldScout and the MeshCore app freely.
Everything below describes FieldScout 1.1.5. Where something is not built, or only works under conditions, it says so.
How the App Is Layered
The mesh code is split into three layers, and each one only knows about the layer under it.
| Layer | Owns | Knows nothing about |
|---|---|---|
| Link | Scan, connect, write, notify, and staying connected | What a frame means |
| Session | The command queue, frame encoding and decoding, the connect handshake, cached radio state | The database and the screens |
| Service | Storing messages and contacts, unread counts, notifications, check-ins, the map | Bytes |
The screens call a transport interface, not MeshCore directly. That interface exists because FieldScout originally spoke Meshtastic and was moved to MeshCore in 2026 (MIT licence, and a companion protocol that is documented and readable in the firmware source). The Meshtastic code is gone; the seam stayed.
The Bluetooth Link
FieldScout uses the Nordic UART Service that MeshCore companion firmware exposes:
Service 6e400001-b5a3-f393-e0a9-e50e24dcca9e
RX 6e400002-… app → radio, write with response
TX 6e400003-… radio → app, notifications
Each write to RX is exactly one command frame and each notification on TX is exactly one response or push frame. There is no length prefix and no reassembly. The app asks for an MTU of 185. Writes are made with response, so the Bluetooth stack applies back-pressure to the command queue instead of the app guessing at pacing.
Scanning filters on the service UUID. Pairing uses the radio's own PIN, which FieldScout can change (CMD_SET_DEVICE_PIN, 0x25).
The Connect Handshake
Every time the link comes up, on first pairing and on every reconnect, the session runs the same sequence before the app reports "connected":
| # | Command | Why |
|---|---|---|
| 1 | DEVICE_QUERY 0x16 → DEVICE_INFO | Protocol version, firmware build, contact and channel capacity, path hash mode. Features the radio is too old for are hidden. |
| 2 | APP_START 0x01 → SELF_INFO | Public key, name, radio parameters, transmit power and its board maximum, sharing preferences. |
| 3 | SET_DEVICE_TIME 0x06 | Sets the radio clock from the phone. Best effort. |
| 4 | GET_BATT_AND_STORAGE 0x14 | Battery voltage and storage use. |
| 5 | GET_CONTACTS 0x04 | The full contact list, as a multi-frame reply. |
| 6 | SYNC_NEXT_MESSAGE 0x0A, repeated | Drains everything the radio stored while no app was connected. |
Step 6 is the one that matters after a dropped link. A radio keeps receiving while your phone is out of range, and those messages sit in its queue until an app asks for them. An earlier version of FieldScout reconnected at the Bluetooth level without re-running the handshake, so the queue was never collected. Now the link is not considered up until the drain has finished.
After the handshake the service layer writes any channels created while offline, and reconciles the radio's name with the name in the app (more on that below).
One Command at a Time
The companion protocol has no request ids. A reply is matched to a command by arriving next, so the session sends one command, waits for its reply, then sends the next. Each queued command carries a small function that looks at every incoming frame and answers accept, reject or ignore. Push frames (code 0x80 and up) are routed separately and never consume a reply slot.
Three rules keep that queue honest:
- The reply timer starts when the frame is written, not when it is queued. The default is 8 seconds. A command stuck behind a slow one does not time out before it has been sent.
- A command that waits more than 20 seconds in the queue is refused, not sent late. A message that leaves a minute after you tapped Send is worse than an error.
- When the link drops, everything waiting fails at once instead of each command sitting out its own timeout.
A frame the app cannot decode is passed along as "unknown" with its code, so new firmware that adds a field or a frame type does not stall the queue or stop the message drain.
Receiving Messages
The radio does not push message bodies. It pushes PUSH_MSG_WAITING (0x83), and the app answers by calling SYNC_NEXT_MESSAGE until it gets NO_MORE_MESSAGES (0x0A). FieldScout reads the v3 message frames (0x10 for direct, 0x11 for channel), which carry SNR, and still decodes the legacy 0x07 and 0x08 forms.
Two details are easy to get wrong:
- Time. A message is filed under the sender's timestamp, not the moment the app read it. After a reconnect the drain can deliver hours of traffic in a second, and stamping it all "now" scrambles the thread.
- Unknown senders. A direct message identifies its sender by the first 6 bytes of their public key. If that prefix is not in the contact cache, the message is stored under the prefix and the contact list is re-read; when the full key turns up, the thread is moved to it.
New-message alerts while the app is in the background are local notifications raised on the phone from the Bluetooth event. There is no push server and no device token. On iOS this works while the app is suspended (the bluetooth-central background mode wakes it) but not after you swipe the app away. On Android, dependable background delivery needs a foreground service, which is not shipped yet.
Sending, and What "Delivered" Means
| Message | Command | Radio's reply | Shown as |
|---|---|---|---|
| Channel | SEND_CHANNEL_TXT_MSG 0x03 | OK | Sent. A flood has no receipt. |
| Direct | SEND_TXT_MSG 0x02 | SENT, with the expected ACK code and the radio's own timeout estimate | Sending, until the ACK arrives |
| Direct, confirmed | none | PUSH_SEND_CONFIRMED 0x82 with the same ACK code | Delivered |
FieldScout waits for the receipt for the radio's estimate × 1.5 plus 5 seconds, never less than 30 seconds or more than 120. A fixed 30 seconds was marking multi-hop messages as failed while they were still on their way. If the ACK arrives late, within ten minutes, a message already marked failed is corrected to delivered.
"Delivered" means the other radio acknowledged the packet. It does not mean a person read it.
Replies That Arrive Later
Route discovery and telemetry do not fit the one-command-one-reply shape. The radio answers the command at once with SENT, and the real answer comes back over the mesh seconds later as a push frame. The session handles this with a separate wait that matches the push by the 6-byte key prefix of the contact you asked about, for a window of the radio's estimate × 1.5 plus 3 seconds, clamped to between 8 and 60 seconds.
Routes
A contact record carries a path byte: the low 6 bits are the hop count, the top 2 bits are the hash size minus one, and 0xFF means no stored route (the next message floods). "Check route" sends CMD_SEND_PATH_DISCOVERY_REQ (0x34) and shows the hops out and back with the repeater ids; "Reset route" sends CMD_RESET_PATH (0x0D).
Trace path, with SNR per hop, is not built. The path argument it needs was not something we could confirm on two radios, and we would rather leave a tool out than ship one that guesses.
Telemetry
CMD_SEND_TELEMETRY_REQ (0x27) returns Cayenne LPP, big-endian, with battery voltage on channel 1. FieldScout decodes it, caches it per contact and shows how old the reading is.
⚠️ Expect timeouts on factory settings. Telemetry sharing is off by default on every MeshCore radio, and a radio only answers a request when its base permission is granted. Path discovery rides the same request, so with defaults both "Refresh telemetry" and "Check route" get no answer. That is the firmware protecting the other person, not a fault. They turn it on in Radio Settings → Sharing.
The sharing setting is three 2-bit fields packed as (environment << 4) | (location << 2) | base, each 0 for off, 1 for contacts flagged on the radio, 2 for everyone. FieldScout sets 0 and 2. It does not write contact flags, so mode 1 is shown as chosen in the MeshCore app and left alone.
There is no "request position" command in MeshCore. Location comes in the telemetry reply, and only when the other radio shares location and its GPS is running; a saved static position is not sent. "Ask for their location" is a telemetry request, and nothing appears on the other person's device.
Contacts and Adverts
PUSH_ADVERT(0x80) carries only a public key. FieldScout re-reads that one contact withCMD_GET_CONTACT_BY_KEY(0x1E), at most once every 5 minutes per contact, which is how a renamed radio's new name reaches your chat list.PUSH_NEW_ADVERT(0x8A) carries the full record and fills the Nearby Radios list, which shows every radio yours has heard, contacts included.- Auto-add is read and written with 0x3B and 0x3A. "Replace oldest when full" spares the radio's favourites, which FieldScout does not set: its Family flag lives in the app only.
- Sharing a contact uses
CMD_SHARE_CONTACT(0x10, zero-hop), or a business cardmeshcore://<hex>made withCMD_EXPORT_CONTACTand read withCMD_IMPORT_CONTACT. - QR codes use the standard links:
meshcore://contact/add?name=…&public_key=…&type=…andmeshcore://channel/add?name=…&secret=…. A bare 64-character public key is accepted too.
One firmware detail shapes the settings code. CMD_SET_OTHER_PARAMS (0x26) rewrites four preferences in one frame: manual add, telemetry modes, advert location policy and multiple ACKs. To change one, the app has to send back the other three as last read from SELF_INFO. Those writes are run strictly one after another, because two toggles tapped in quick succession would otherwise each send the other's old value and undo it.
The Radio's Name
The name other people see is stored on the radio. If it differs from the name in the app, FieldScout does not guess: a rename made in the app while disconnected is written on the next connect; a radio renamed in another app since the last sync is adopted; and if the two have never agreed, the app asks which to keep.
Radio Settings
| Setting | Protocol | Notes |
|---|---|---|
| Frequency, bandwidth, SF, CR | SET_RADIO_PARAMS 0x0B | Frequency as uint32 kHz, bandwidth as uint32 Hz. Current values are read from SELF_INFO; there is no "get" command. |
| Path hash size | 0x3D | Sent after the RF write when a preset specifies one. |
| Transmit power | 0x0C | A signed byte, from −9 dBm to the board maximum the radio reports. Written only when you confirm. |
| GPS on or off | custom vars 0x28 / 0x29 | The switch appears only if the radio reports a gps variable. |
| Region scope | 0x3F / 0x40 | Public regions only: key = first 16 bytes of SHA-256("#" + name). Private "$" regions need a secret the app cannot derive. |
| Status and statistics | 0x14, GET_STATS 0x38 | Core, radio and packet counters (protocol v8+). Polled every 10 seconds while the screen is open. |
| Console | RUN_CLI_COMMAND 0x42 | Protocol v14+. Hidden on older firmware. |
| Restart, erase | 0x13, 0x33 | The radio does not reply; it restarts first. Erase asks twice, then forgets the radio locally. |
The frequency setting is worth a paragraph, because we got it wrong for seven months. The radio kept answering ILLEGAL_ARG, and we concluded the wire format varied between firmware versions and disabled the in-app picker. It did not vary. We had sent the frequency in Hz, then as a 32-bit float in MHz. The firmware reads two unsigned integers, kHz and Hz, and range-checks them: 910.525 MHz at 62.5 kHz is 910525 and 62500. The handler is about thirty lines of C++ in the open-source firmware. Reading it took ten minutes, and we should have done it on the first day.
Presets come from the MeshCore community list. Four that we checked against the firmware repository ship inside the app (USA/Canada, Australia narrow, New Zealand narrow, Portugal 868). The full list is fetched from the community server only when you tap to load it, because that is a third-party request and the app otherwise makes none on your behalf. You can also enter custom values, checked against the same ranges the firmware enforces.
Battery percentage is estimated from a single-cell lithium discharge curve, not a straight line: 3.78 V is about 30%, where a linear scale would say 53%. Outside 3.0 to 4.35 V (USB power, a 12 V solar pack, another chemistry) the app shows volts only and does not invent a percentage.
Channels
A channel is a name and a 16-byte key at an index. Index 0 is the public channel. FieldScout creates private channels in the lowest free slot from 1 to 7, with a randomly generated key, and shares them by QR code. A channel created with no radio connected is written on the next connect.
Writing a channel (CMD_SET_CHANNEL, 0x20) sets the name and key and nothing else. It does not touch frequency, bandwidth, spreading factor or coding rate. Two radios with the same channel and key that sit on different radio settings will never hear each other, which is the first thing to check when a family channel is silent.
The One Custom Format: Check-ins
Text is the wrong shape for "I'm safe, here is where I am". It is slow to type under stress and impossible for an app to put on a map reliably. So FieldScout sends check-ins as MeshCore group datagrams (CMD_SEND_CHANNEL_DATA, 0x3E): binary, encrypted with the channel key, flooded.
send 0x3E [channel] [0xFF = flood] [data type, u16 LE] [payload, up to 165 bytes]
recv 0x1B [snr × 4] [2 reserved] [channel] [path_len] [data type, u16 LE] [len] [payload]
A datagram carries no sender and no timestamp, so both go in the payload. Version 1, all integers little-endian:
| Offset | Size | Field | Notes |
|---|---|---|---|
| 0 | 1 | version | 1 |
| 1 | 1 | kind | 1 = check-in. Ignore unknown kinds. |
| 2 | 1 | status | 1 I'm safe · 2 Need help · 3 On my way · 4 At the meeting point |
| 3 | 1 | flags | bit 0 = location present |
| 4 | 2 | id | random, never 0 |
| 6 | 4 | sent at | Unix seconds, sender's clock |
| 10 | 6 | sender | first 6 bytes of the sender's public key |
| 16 | 4 + 4 | latitude, longitude | int32, degrees × 1,000,000. Only when flags bit 0 is set. |
| n | 1 + 0–24 | name | length byte, then UTF-8 |
| … | 0–80 | note | UTF-8, to the end of the payload |
"I'm safe" from "Basecamp" at 33.448376, −112.074036, with the note "At home, power is out", is 54 bytes:
01 01 01 01 f9 a3 c0 86 fd 6a 01 02 03 04 05 ff
b8 61 fe 01 cc e2 51 f9 08 42 61 73 65 63 61 6d
70 41 74 20 68 6f 6d 65 2c 20 70 6f 77 65 72 20
69 73 20 6f 75 74
Three design decisions sit behind that layout:
- Private channels only. A check-in can carry your location, so the app refuses to send one on the public channel and ignores any that arrive there.
- A text twin. Someone on the MeshCore app would see nothing from a datagram. FieldScout can also send one ordinary channel message per check-in, for example
CHECK-IN: I'm safe. At home, power is out [fs:a3f9]. The id pairs the two, so FieldScout shows one check-in whichever arrives first. The text never contains the location. You can turn the twin off. - The name is a claim, not proof. Anyone holding the channel key can send any name, exactly as with channel text. Check-ins are deduplicated by id and sender together so that one person cannot overwrite another's.
The data type is currently 0xFF46, inside the range MeshCore reserves for development. A permanent id has been requested through MeshCore's number allocations process, and the type will change when one is assigned. The full specification, a reference encoder and decoder in TypeScript, and tests that reproduce the example above byte for byte are public under the MIT licence at github.com/amphora-codex/fieldscout-mesh. If you write a MeshCore client, you can read and send these.
Pins and SOS Are Plain Text
Two other features put structured content on the air, and both do it as ordinary text so that any client can read them:
- Shared map pins are a channel message on a private channel you choose:
📍WP|33.448377|-112.074037|water|Spring at 32nd & Camelback. FieldScout renders it as a card and a pin; other apps show the line as written. - SOS is a message on the public channel, with coordinates if the phone can get a fix or has one from the last ten minutes, followed by a self-advert carrying the same position. It is public on purpose. It reaches radios, not emergency services, and the app says so before you send.
Staying Connected
A dropped link means missed messages, so the link layer keeps trying to get the paired radio back for as long as the app runs. How it tries differs by platform, because a retry loop on a JavaScript timer stops the moment the operating system suspends the app.
| iOS | Android | |
|---|---|---|
| After a drop | One connect request with no timeout. Core Bluetooth holds it and completes it when the radio is back in range, waking the app. | Three direct attempts of 12 seconds, then an auto-connect request the system keeps pending. |
| Gives up | Never, while the radio is paired | Never, while the radio is paired |
| Does not cover | The app being force-quit, or killed by the system and not yet reopened | Long periods in the background without a foreground service |
The link is also re-checked every time the app returns to the foreground and when Bluetooth is switched back on, and a write that fails because the radio has gone is treated as the drop it is. The app only chases a radio that has connected before; one whose first pairing failed is left alone, or it would ask for the PIN forever. And it does not touch Bluetooth at all unless a radio is paired, so someone using FieldScout for maps and guides is never asked for Bluetooth permission.
What Leaves Your Phone
Over the air, through your radio: your messages, check-ins and pins on the channels you send them to; your adverts; and telemetry, if you turned sharing on. Over the internet, for mesh: nothing, with one exception you trigger yourself, which is loading the community preset list.
There is no account, no analytics SDK, no message relay and no node map upload. Uploading what your radio hears to a public map is a useful community feature in other tools, and it is one we have chosen not to build into an app whose users include people who do not want their home plotted. Store builds of the app also never check for or download code updates: the code you install is the code that runs.
What FieldScout Does Not Do
| Not supported | Why |
|---|---|
| Flashing or updating firmware | Not part of the companion protocol. Use the MeshCore web flasher. The radio must already run companion Bluetooth firmware. |
| Repeater and room server login, remote admin | Planned, not built. |
| Trace path with per-hop SNR | Unverified on hardware, so left out. |
| USB and Wi-Fi companion links | Bluetooth only for now. |
| Tuning parameters (rx delay, airtime factor) | Expert values with no safe interface. The console reaches them on v14+ firmware. |
| Private key export | Compiled out on most boards; the radio answers "disabled". |
| Two apps connected at once | A radio takes one Bluetooth connection. |
Opening meshcore:// links from outside the app | Two apps cannot reliably share one URL scheme on iOS. Use the in-app scanner or paste box. |
Using It Alongside the MeshCore App
Contacts, channels, radio settings and your identity key live on the radio, not in either app. Disconnect one, connect the other, and nothing is lost: a channel made in FieldScout appears in the MeshCore app, and a region preset set there is what FieldScout reads on its next connect. Message history is the exception. Each app keeps its own, and a message the radio hands to one app is gone from its queue.
FieldScout is not trying to replace the official app for people who administer repeaters or tune a regional mesh. It is built for the household that owns two or three radios and wants them to do one job well when the phones stop working: reach each other, say they are safe, and find each other on a map that needs no signal.
📡 Hardware: FieldScout works with any radio running MeshCore companion Bluetooth firmware. We develop against the RAK WisMesh Pocket V2. See our mesh radio guide for what to buy, or Mesh Radio Explained for range, channels and setup.
FieldScout
Everything on this page runs in FieldScout, our free offline app: mesh messaging and family check-ins for MeshCore radios, plus offline maps, 211 field guides and an encrypted document vault. No account, no ads, no tracking.
GET FIELDSCOUT FREE →
GridWatch
Most blackouts give warning signs hours before the lights go out — weather cells, grid strain, fuel disruptions. GridWatch monitors live federal feeds — NOAA, FEMA, USGS, NERC, CISA — around the clock, tracks power outages in real time, and sends one plain-English daily brief so you hear a developing threat before it reaches your block.
SEE TODAY'S STATUS →Frequently Asked Questions
Does FieldScout work alongside the official MeshCore app?
Yes. Contacts, channels, radio settings and your identity key are stored on the radio, not in either app, so you can disconnect one and connect the other without losing anything. A radio accepts one Bluetooth connection at a time, and each app keeps its own message history.
Does FieldScout change my radio's firmware?
No. FieldScout cannot flash or update firmware, which is not part of the MeshCore companion protocol. It talks to stock MeshCore companion Bluetooth firmware. On connect it sets the radio's clock and reads its state; settings such as frequency, transmit power or name change only when you change them.
Can other MeshCore apps read FieldScout check-ins?
Yes, in two ways. Every check-in can also be sent as an ordinary channel text message, such as CHECK-IN: I'm safe, which any MeshCore app displays. The binary format is published under the MIT licence with a reference encoder and decoder at github.com/amphora-codex/fieldscout-mesh, so other clients can read and send it.
Does FieldScout send my messages or location to a server?
No. Messages, check-ins and map pins go from the phone to your radio over Bluetooth and out over LoRa. There is no account, no analytics, no message relay and no node map upload. The one mesh-related internet request is loading the community radio preset list, and only when you tap to load it.
Why do Check route and Refresh telemetry time out?
Telemetry sharing is off by default on every MeshCore radio, and a radio only answers a telemetry request when its owner has granted the base permission. Path discovery uses the same request. With factory settings neither gets an answer. The other person can turn sharing on in FieldScout under Radio Settings, Sharing.
Which radios and firmware does FieldScout support?
Any radio running MeshCore companion Bluetooth firmware. FieldScout was written against companion protocol version 14 (firmware 1.18) and is developed on the RAK WisMesh Pocket V2. It reads the protocol version when it connects and hides features an older radio cannot do, such as the console, which needs version 14.
Does FieldScout work with Meshtastic radios?
Not with Meshtastic firmware. FieldScout speaks only the MeshCore companion protocol. Many LoRa boards can run either firmware, so a Meshtastic radio can usually be reflashed with MeshCore companion firmware using the MeshCore web flasher, after which it pairs with FieldScout.