UMSH for MeshCore users

What carries over from MeshCore, what works differently, and what each one can do that the other can't.

If you already use MeshCore, most of UMSH will feel familiar. It started as an attempt to improve on MeshCore, and it borrows a lot from it. But the two don’t talk to each other on the air, and a number of things that MeshCore users take for granted work differently here. This page covers what’s the same, what’s different, and what you need to try it.

For a byte-by-byte protocol comparison, see Comparison with MeshCore in the specification.

What you need

  • An iPhone running iOS 18 or later, with the UMSH app from the TestFlight beta. There’s no Android app yet. A communicator (the T-Deck or T-LoRa Pager) works without a phone.
  • A supported radio. Several boards MeshCore runs on are supported, but not all of them. The hardware page has the list, and the web flasher installs UMSH from your browser.
  • Someone to talk to. UMSH is still small. You’ll need a second radio, or people near you who also run UMSH.

UMSH is a separate network

UMSH runs alongside MeshCore rather than inside it. A radio running UMSH isn’t a MeshCore radio while it does, and on UMSH you’ll have a new identity and you’ll need to rebuild your contact list. Some things, like the region plan for your area, carry over.

You can flash a radio back to MeshCore whenever you like. If you might, export your MeshCore identity and contacts from the MeshCore app before you flash.

What carries over

The ideas, mostly:

  • You’re identified by a key. Every node has its own cryptographic key pair, just like in MeshCore. There are no accounts and no directory.
  • A companion radio paired to a phone. You pair the app with a radio over Bluetooth, and the radio does the listening.
  • Repeaters, flooding, and learned routes. Your first direct message to someone floods; after that, messages between the two of you follow a route through specific repeaters. Group messages always flood.
  • Channels are shared keys. UMSH calls them groups. There are public groups you join by typing a name, and private groups you join with an invitation.
  • Regions. Repeaters can be told which regions to forward floods for.

Your identity lives in the app

In MeshCore, your identity belongs to the companion radio. In UMSH, it lives on your phone, in the app. The radio has an identity of its own, which it uses when it repeats or when someone manages it over the mesh, but your messages are sent as you.

That means you can switch to a different radio and carry on, without moving anything from the old one. The reverse is also true: your identity stays on that phone, and the app can’t move it to another one or back it up yet.

Addresses and hints

A full UMSH address is your public key, written out as 44 letters and digits. You’ll rarely type one.

Day to day, you’ll see a short tag instead, called a hint, like 9Xk2. It’s the start of the node’s address. MeshCore addresses a message with 1 byte of the key; UMSH uses 3, so two nodes being mistaken for each other is roughly 65,000 times less likely. Sometimes only the first few characters are certain; the app shows those followed by a *, as in 9Xk*.

Repeaters in a route are shown by a shorter hint, like H1*, or by name if your app knows them.

Adding contacts

The app calls contacts peers. There are a few ways to add one:

  • Scan their QR code, open a umsh: link they sent you, or paste their address.
  • Exchange in person. Two people standing together can swap contacts without typing anything. Both screens show a six-digit code. If the codes match, each of you presses Same, and your phone sends your identity only when you do.
  • Hear them on the air. A node’s advertisement carries its name and key, signed by that key, and the app’s Discover screen can ask nearby nodes to identify themselves. Nothing is added automatically; you save the ones you want.

Groups

Groups work much as MeshCore channels do, with a few differences:

  • You start with two. Everyone starts out joined to the Public group and the EMERGENCY group, described below.
  • Public groups. A MeshCore hashtag channel corresponds to what the app calls a public group: you join it by typing its name, without a #. Anyone who knows the name can join, so it isn’t private. Names are case-insensitive and limited to plain ASCII: letters, digits, spaces, and punctuation. If you type the #, it becomes part of the name, and you end up in a different group from the one you meant.
  • Private groups have a random key, shared as an invitation link or QR code.
  • Senders are named by their key. In the Public group, a message has to carry its sender’s full key or the app won’t show it. In MeshCore, a channel message carries only the name the sender typed. In most groups, anyone holding the key can still pose as another member, just as in MeshCore. The exception is EMERGENCY, below.
  • Missed messages can often be recovered. Group chat messages are numbered per sender, so the app notices a gap. If you sent to the group in the last minute, it asks the sender for what’s missing on its own; otherwise, you can tap the gap to ask. The sender only answers for about 15 minutes, and only if the app knows the sender’s full key.
  • The EMERGENCY group has stricter rules: messages are never encrypted, always carry the sender’s full key, and are always signed. You have to agree to an emergency-use prompt before your device will send to it.

Delivery and routing

When your device doesn’t have a route to someone yet, the message floods and records the repeaters it passes through. The recipient uses that record as its route back to you, and its acknowledgment carries a record of its own, so your side learns a route too.

Each repeater along a route confirms that the next hop got the packet and retries if it didn’t. In MeshCore, a packet lost at an intermediate hop stays lost until the sender tries again. As in MeshCore, a direct message shows as delivered once the recipient confirms it.

A repeater can also be set to ignore floods it heard too weakly to pass along reliably.

Routes that end in a flood

A UMSH message can follow a route through specific repeaters and then flood from the end of it. MeshCore can’t do this: each MeshCore packet either follows a path or floods, never both. UMSH can because its routing instructions are separate pieces that a packet combines freely, and the app puts this one to work:

  • Finding someone who’s moved. When the person you’re messaging might have moved since the route was learned, the message follows the known route and then floods one more hop past its end, without you doing anything. If they’ve moved a little, it still finds them, without flooding the whole mesh.
  • Reaching a distant area. You can pick the repeaters yourself, ending near the person you’re trying to reach, and choose how far the message floods once it gets there (“Then flood” in the manual path editor). It crosses the mesh without spreading, then fans out only where the person is.
  • Staying local at the far end. Where the route ends and the flood begins, the first repeater there with a default region tags the message with it, so repeaters set up only for other regions leave it alone.

Counting hops

UMSH counts every transmission as a hop. A node you hear directly is one hop away, which the app shows as Direct, and a message that went through one repeater traveled two hops. MeshCore counts only the repeaters in between, so a direct neighbor in MeshCore is “zero hops” and a MeshCore message through one repeater is “one hop”. A path MeshCore calls “two hops” is three hops in UMSH.

Flood limits count repeaters in both. A limit of 3 lets a flood pass through up to three repeaters, whether it’s a UMSH group’s maximum hops or a MeshCore repeater’s flood limit. The difference is who sets it: in UMSH the sender chooses how far each flood may go, up to 15 repeaters, and the limit travels with the message. In MeshCore each repeater applies its own limit, which defaults to 64.

Regions

Both networks use regions to keep floods from spreading farther than they need to, but UMSH puts the work on the repeaters instead of on you.

You don’t have to change your region as you travel. A message you send normally carries no region. The first repeater that floods it and has a default region adds that region, which keeps repeaters that serve only other regions from carrying it further. Wherever you go, the repeaters near you tag your traffic for that area, without you changing anything on your phone or radio. In MeshCore, a flood is only scoped if your own device scopes it, and repeaters pass that scope along unchanged. When you travel, you have to remember to change your device’s scope: repeaters that don’t serve the region it’s still set to won’t carry your messages.

Repeaters are set up for where they are. When you set up a repeater with the app, it uses your phone’s location to look up nearby regions in UMSH’s region database. It fills in the regions the repeater forwards for and its default region. You can change them before you apply.

A repeater without regions still forwards. A UMSH repeater with no regions set forwards floods from every region. A MeshCore repeater only forwards a scoped flood if it’s been configured with that region, so a repeater nobody set up drops scoped traffic.

You can also give a group a region of its own in the app, if you want its messages kept to a particular area.

Advertisements and beacons

UMSH nodes announce themselves in two ways:

  • An advertisement carries your identity: name, role, capabilities, and optionally a location. Scheduled advertisements don’t flood.
  • A beacon is nearly empty. It floods a few hops and records the route it took, which gives nodes that already know a fixed device, like a repeater, a likely way to reach it. It also shows the sender is still around.

Each has its own schedule. By default, a radio beacons every hour and advertises every four hours. The app’s own identity has a separate schedule, which is off by default and runs only while the app is open.

Repeaters and management

There’s no separate repeater firmware. Forwarding is a setting on the same firmware every device runs.

Remote management uses keys instead of passwords. A device keeps a list of its administrators’ public keys, and it ignores management requests from anyone not on the list without answering them.

To set up a repeater, open Settings in the app, tap “Set up a device…”, and choose “Set up a repeater”. The app turns on forwarding and adds your phone to the device’s Administrators list for you. After that, you can manage it over the mesh from the app, including its radio settings and the regions it forwards for. The app can suggest which regions a repeater should forward for, based on where it is.

On a computer, the umshctl command-line tool can do the same, over USB or over the mesh. It’s built from the source repository.

Radio settings

UMSH’s default radio settings are not MeshCore’s. A new UMSH device keeps its radio off until the app sets it up, or until you turn it on yourself. Its default setting is 917.5 MHz with 500 kHz bandwidth at SF10, for the United States and Canada, and pairing a new radio with the app turns it on with that setting. Elsewhere, change it to your region’s preset in the app’s radio settings right after you pair. MeshCore’s published presets are in the same list.

Radios on different settings can’t hear each other, so everyone in an area has to use the same ones. Using MeshCore’s settings doesn’t let the two networks talk to each other; they just share the airtime.

Sharing a repeater with MeshCore

The SenseCAP Solar P1, XIAO nRF52840, Heltec V3, T-Beam Supreme, and XIAO ESP32S3 can forward MeshCore traffic alongside UMSH traffic, so one repeater can serve both networks, assuming both use the same LoRa parameters. It’s a setting in the app, off by default, with its own list of MeshCore regions. A repeater has only one set of radio settings, so the UMSH nodes it serves have to use the same ones as the MeshCore mesh around it.

It only carries MeshCore’s packets along; UMSH and MeshCore users still can’t message each other. MeshCore forwarding has had little testing.

What UMSH has that MeshCore doesn’t

  • Forward secrecy. When a contact opens a forward-secret session with you, your messages to each other go under it, and its keys are erased when it ends. Someone who steals a key later can’t read those messages. The app shows them in violet.

  • Much stronger cryptography. MeshCore’s encryption has several well-known weaknesses, and UMSH was designed to fix them:

    • Forgery. A MeshCore message is protected by a 2-byte check, so a forged or altered one gets accepted about once in every 65,000 tries, which someone determined can reach just by transmitting over and over. UMSH messages normally carry a 16-byte check, which puts the odds at 1 in 2128.
    • Patterns. MeshCore encrypts in a mode (AES-ECB) that turns identical stretches of text into identical encrypted bytes, so patterns in what you send can show through. UMSH’s encryption doesn’t.
    • Unprotected addressing. MeshCore’s check covers only the encrypted part of a message, not who it claims to be to or from, or what kind of packet it is. UMSH’s covers those too.
    • Replays. MeshCore’s radio firmware only remembers the last 160 or so packets it has seen, so a recorded message can be played back later and accepted again. UMSH numbers each sender’s packets, so a replayed direct message is recognized and dropped. None of this depends on the radio’s clock, so a radio with the wrong time, or none at all, works fine.
    • Key reuse. MeshCore uses the same secret to encrypt and to check a message. UMSH derives a separate key for each job.

    The comparison goes into detail.

  • Longer messages. A message too long for one packet is sent in parts, and the app can ask for any parts that went missing.

  • Replies, reactions, edits and deletions. You can reply to a specific message, react to one, edit a message you sent within the last four hours, or delete one for everyone. These work in direct conversations and in group chats.

  • Amateur radio operation. The protocol defines an authentication-only mode with compact callsign fields, for use where encryption is not allowed. However, this capability is not yet exposed in the apps.

  • IP transport. Computers on the same local network can form a UMSH mesh over IP multicast with no radio at all, and a bridge can join separate meshes over the internet if someone runs one. A radio with Wi-Fi can join either, and the app can set that up, but the phone itself can’t join over IP.

    Bridging meshes together is hard to do safely on MeshCore. A flood there carries no scope unless its sender sets one, and by default repeaters pass it along for up to 64 repeaters, so a bridge effectively merges two meshes into one: unless repeaters are set to refuse unscoped floods, every one sent on either side floods both. In UMSH, a flood carries a hop limit its sender chose, and each bridge crossing uses up two of those hops. A flood that doesn’t already carry a region gets one from the first repeater to forward it, and repeaters set up for other regions don’t pass it on, so a bridge can link places without burying each in the other’s traffic.

  • Room to grow. UMSH was designed so features can be added without everyone on the network reflashing, including features nobody has thought of yet. Packets and messages are built from labeled pieces called options, so a new feature can arrive as a new option. A device skips an optional piece it doesn’t recognize and reads the rest, and repeaters pass messages along without needing to understand what’s in them, so older devices keep working alongside newer ones. Reactions and edits are built from options. MeshCore’s message format is hard to extend this way: its messages carry no ID that a reaction or an edit could point to, and a device silently drops any kind of message it doesn’t recognize.

What MeshCore has that UMSH doesn’t

  • Room servers. UMSH defines a spec for room servers, but these have not been implemented yet.
  • Maturity. MeshCore has a large deployed network, more apps, an Android app, support for more boards, and far more real-world testing. UMSH is a technology preview; expect breaking changes and expect to reflash your radios when they land.
  • Slightly smaller packets. The protocol doesn’t require it, but the way UMSH is used today makes its packets slightly larger than MeshCore’s, mostly in exchange for much better protection against tampering.

Quick reference

In MeshCoreIn UMSH
ContactsPeers
ChannelGroup
Hashtag channel (#name)Public group, joined by its name without the #
Node hash (a3)Hint (9Xk2)
PathRoute
“Zero hops” (direct)One hop (Direct)