Author: Jim Ancona

  • M17 WPSD fork now supports SMS

    In July 2025, G4KLX removed M17 from MMDVMHost and M17 was removed from WPSD. The M17 Project responded by creating forks of the code that kept M17 working, but those forks had fallen behind upstream. Working with Claude Code, I (Jim Ancona N1ADJ) brought the underlying code up to date. With these updates, the M17 Project forks of MMDVMHost and M17Gateway are now current with the upstream repositories. In addition, M17 packet mode (SMS) works from end to end: radio, hotspot, gateway, reflector and dashboard. WPSD users will see the changes with their next nightly update or they can trigger a manual update to get them sooner.

    MMDVMHost Branches

    Earlier this year, upstream started to add MQTT functionality to MMDVMHost. Those changes broke backwards compatibility, so the last compatible release is tagged as v1.0. Dashboard software like WPSD and Pi-Star hasn’t moved to the MQTT release yet. The M17 Project’s MMDVMHost has these branches:

    • v1.0: G4KLX’s last release before the move to MQTT, with M17 restored. It still talks to dashboards through log files, which is what WPSD uses. It also includes a set of bug and security fixes backported from G4KLX’s current code.
    • master: G4KLX’s current code, with M17 restored. This is the version with MQTT (next section).
    • archived-master: The fork’s previous code. We don’t plan to modify this branch. If you cloned the repo before October 2026 you should review the README.

    Each branch is G4KLX’s code plus a small set of M17 commits. That makes future upstream updates straightforward and easy to review.

    The M17 WPSD fork now uses the v1.0 branch. If you’re running a custom hotspot or repeater setup and want to try the MQTT approach, master is the branch to use. On master, MMDVMHost publishes its status and activity as JSON over MQTT instead of writing log files for dashboards to parse. M17-related messages are documented in the repository’s schema.json. They include:

    • M17: voice and data activity including callsigns, source (RF/network), action (start/end/lost…), type (voice, data or packet), duration, ber, and rssi with min/max/average.
    • M17Packet (new): one message per packet, with protocol, length, and text for SMS or data (hex) for anything else.

    M17 Packet Mode (SMS)

    M17 packet mode allows sending SMS messages and other data over the air with M17. It’s been in the M17 spec and supported in other software for a while, but now it’s available in MMDVMHost-based software like WPSD.

    The new code:

    • receives and decodes M17 packet transmissions, including SMS
    • repeats them on repeaters and duplex hotspots
    • forwards them to reflectors on the network
    • transmits packets received from the network

    You need SMS-capable radio firmware to use this. The OpenRTX developers are working on it, so keep an eye out for a release.

    M17Gateway

    M17Gateway, the component that communicates with M17 reflectors like mrefd, got some updates as well:

    • Packet support: carries packets (M17P) between the hotspot and reflectors that support it, and ECHO returns packets as well as voice.
    • Reflector protocol update: We now support both legacy and current releases of mrefd along with urfd and other reflectors that support the M17 INet spec. (Thanks to Tom, N7TAE for his help with the design!)
    • Voice announcements: give the full reflector name and module letter for all reflectors.

    WPSD

    The updates to M17 are live now. New binaries arrive through WPSD’s normal nightly update, and the dashboard will show SMS in the last heard list. The binaries are now built automatically with GitHub Actions from the M17 Project repositories, so future fixes will reach users quickly and easily.

    One caveat: SMS also needs modem firmware with M17 packet support. For MMDVM_HS_Hat, Dual Hat, generic GPIO and MMDVM repeater boards, you will need to update the firmware with WPSD’s firmware updater, unless you’ve already done that using m17-hotspot-installer. Other hotspot boards (ZUMspot, Nano hotSPOT, NanoDV, SkyBridge…) don’t have packet-capable firmware yet.

    Another known limitation: ADF7021 hotspot boards (ZUMspot, MMDVM_HS_Hat, the dual hats…) can only listen for one mode at a time. With multiple modes enabled, they take turns, so they hear M17 only part of the time. M17 voice can recover from a late start, but a short SMS can be lost completely. So our recommendation is that for reliable SMS you only enable M17. Full MMDVM repeater boards don’t have this problem.

    The code is on GitHub in the M17-Project organization:

    I’ve tested the v1.0 branch on M17 and DMR, but the community can help a lot by trying different branches, modes and hardware. If something doesn’t work or you have questions, we’d like to hear about them on the M17 Discord or by creating an issue in the corresponding GitHub repository.

    Acknowledgements

    Thanks to the developers and projects that this work builds on, including:

    • G4KLX for MMDVMHost and M17Gateway
    • CA6JAU for the MMDVM_HS firmware
    • W0CHP and the WPSD developers
    • The OpenRTX developers
    • KD0OSS for the original packet work, which the firmware support builds on
    • Ember for the backported MMDVMHost fixes
  • The Next Version of the M17 Specification

    Over a year ago discussions about possible improvements to the M17 Specifications started in the M17 Discord and moved to several Github issues. The goals were to:

    • Allow for expansion: The existing V2 specification has no room for new payload definitions or additional kinds of META content.
    • Make the spec easier to implement and understand.
    • Remove features that haven’t been adopted.

    The changes include:

    • A redesign of the TYPE field, putting the various subfields into byte-aligned nibbles. The Payload Contents becomes a 4-bit selector allowing for existing modes (Data, 3200 bps Codec2 Voice and Packet), a reserved version detection pattern, so V3-aware software can properly decode V2 traffic and a bunch of values available for future expansion, e.g. new codec or streaming data modes.
    • Decoupling the META contents into its own 4-bit field, separating it from encryption subtype and allowing room for new kinds of META content.
    • Improve the META Text Data by changing to a different control byte which increases the length of a message from 52 to 195 bytes.
    • Dropping 1600 bps Codec2 Voice+Data mode. This mode has never seen any significant uptake, so removing it simplifies the spec.

    So the proposed V3 meets the goals set out for it, but are there any downsides? There is one big one: Compatibility. V2 to V3 is forward-compatible, that is, V3 radios, hotspots, repeaters and reflectors will be able to receive transmissions from V2 devices and software. But it’s not backward-compatible, so V2 devices won’t recognize V3 transmissions, in fact they’ll misparse them. What happens then depends on the contents of the V3 data and the parsing code, but it’s likely to vary depending on the details of both. So the behavior of a V2 radio when receiving V3 is effectively undefined. (There may even be a case where it works!) Indeed, that’s why it’s called V3 – the major version change indicates that it’s not compatible. A lot of thought has gone into mitigating this problem. If we could update hotspots, repeaters and reflectors before radios are updated it’s possible to reduce many of the interoperability problems. But fundamentally, a radio running V2 firmware won’t be able to receive a V3 transmission. Even if the network infrastructure can translate between formats, there’s no way for RF infrastructure (repeaters, hotspots) to do the same. Devices running V3 will still receive V2 transmissions, but if they transmit using V3, any un-upgraded devices won’t hear them. So there needs to be a “flag day” when all the devices in an area switch from V2 to V3. That’s not too bad if it’s just a radio or two and a hotspot, but it would be harder to coordinate in areas with M17 repeaters.

    I’ve been concerned that a breaking change might cause problems for the M17 community. So, working with an AI, I came up with a proposal for a backward-compatible change to V2 that accomplishes many (but not all) of the goals of V3. It keeps the layout of the TYPE field in the current spec, but repurposes reserved bits as escapes to allow for expansion.

    The idea behind this approach is that the existing spec has some reserved values and bits that can be repurposed to allow for new functionality. Specifically, Data Type (bits 1-2 in the TYPE field, see Table 3.4 in the spec) has the 002 value reserved and Encryption Subtype (bits 5-6 in TYPE, see Table 3.8 in the spec) has the 112 value reserved. So those reserved values can be used as escapes, telling software that is aware of the new spec to look for a new payload (in the case of Data Type) or META type (in the case of Encryption Subtype). On the other hand, software that isn’t aware sees a Reserved value and should ignore it – we plan to audit existing implementations to confirm this.

    BitsFieldRule
    0Packet/StreamUnchanged
    1-2Data Type01 = Data, 10 = Voice (Codec2 3200); 00 = escape: payload type in bits 12-15; 11 = Voice+Data (deprecated)
    3-4Encryption TypeUnchanged
    5-6Encryption SubtypeUnchanged when encrypted. Unencrypted: 00/01/10 = Text/GNSS/ECD (unchanged); 11 = escape: META is self-typed (first META byte = type ID)
    7-10CANUnchanged
    11SignedUnchanged
    12-15Extended Payload TypePayload type ID when Data Type = 00; otherwise 0000

    The new Extended Payload Type is stored in bits 12-15 of TYPE, which had been Reserved. So we now have 15 values available for identifying new payloads, with value 00002 reserved. As in the proposed V3, the new payloads can be used for new codecs, data modes or whatever we can come up with.

    The existing spec defines three uses of the 14 byte META field: Text Data (002), GNSS Data (012), and Extended Callsign Data (102). (These are only available when encryption is not being used because META contains encryption-related data in that case.) In order to provide for additional uses of the META field, we use the previously-reserved 112 value as an escape. In this case, it indicates that the META area is self-typed: the first byte of the 14 byte META area defines its type, allowing for up to 255 new types (with value 002 reserved as a sentinel).

    The V3 spec changes META Text Data to allow for up to 195 byte messages. With this approach, the old Text Data would be unchanged for compatibility, but we can define a new Long Text Data type with similar functionality.

    So what are the benefits of doing it this way? We get the same capabilities that V3 offers (new payloads/codecs, META types) but with backward compatibility. All existing features are identical, so radios and infrastructure will continue to work as they always have. New features should fail safe on old radios, i.e. the radio should just stay mute when it sees additional features.

    This new proposal is still Version 2 of the M17 protocol. There’s no need for any version signaling because all existing cases are bit-for-bit the same – only new functionality uses previously-reserved values and fields, which older software already knows to ignore.

    How about downsides?

    • We lose the benefits of V3’s cleanup of TYPE. Fields continue to be non-nibble-aligned, with conditional fields, escapes and dual-meaning subtype bits.
    • New extended META payloads lose one byte from 14 down to 13, because the extended META type is stored in META itself.
    • Legacy formats (Voice+Data, the three original META types) live alongside new ones, so there are two code paths to maintain. We can deprecate things like Voice+Data, but code still needs to be able to deal with them.
    • We’re assuming old code will ignore transmissions that repurpose the reserved values and fields. We need to audit the existing code to verify that’s the case and fix it if it isn’t.

    So I see the trade-off as backward compatibility (old infrastructure continues to work, no “flag day” for switching to V3) versus a cleaner spec and simpler code for the future. I think either choice is reasonable, but overall I’d choose compatibility. But it’s not up to me! Interested members of the M17 community are encouraged to comment on the Github issue and let us know what you think, so we can make a choice that works for all of us.

  • m17-gateway now supports three hardware platforms including SX1255 HAT

    I’m happy to announce release 0.5.0 of my M17 Go tools project at github.com/jancona/m17 with some significant updates!

    Three hardware platforms, full M17 feature support

    m17-gateway now supports three different modem/hardware platforms:

    • CC1200 Pi HAT — the original supported hardware
    • SX1255 Pi HAT — newly supported this month
    • MMDVM-compatible hotspots and modems — for those who already have MMDVM hardware

    All three give you the full M17 feature set, including voice, SMS messaging, and GNSS-based station position mapping — features that many other M17 hotspot platforms don’t support.

    Both the SX1255 and MMDVM platforms support full duplex operation, which means they can be used as full M17 repeaters — not just hotspots. If you’ve been thinking about putting up an M17 repeater, this is a viable path.

    Getting started

    The easiest way to get a working hotspot is DK1MI’s installer script, which sets up m17-gateway along with a web dashboard. If you just want the gateway itself, pre-built .deb packages for arm64 are on the releases page, or you can build it yourself from the instructions in the README.

    Also in the project: an experimental messaging bridge

    There’s also a new and very experimental tool called m17-bridge that connects M17 SMS traffic to Discord, IRC, and APRS. It’s not ready for production use yet, but in the next month or two I plan to stand up a public example node so folks can experiment with it. Stay tuned!

    Latest release is v0.5.1. Full source, docs, and binaries at: https://github.com/jancona/m17