EN
Flash a device

How DCOM works

In short: the phone encrypts, the device transmits, the pack passes it on. Below, piece by piece, with things you can try.

Three parts

A phone and a device are a pair. The phone prepares and encrypts the message and hands it to the device over Bluetooth; the device puts it on air at 869.525 MHz. On the other side the same happens in reverse. A repeater is the same device left on a height in repeater mode.

  1. Phone

    Writes, records, shows the map. Talks to its device over Bluetooth, encrypted again at the app level.

  2. Your device

    Puts the message on the air in parts of up to 255 bytes and keeps strictly within the legal airtime.

  3. Next device

    Any member's device set to client and repeater, or a repeater on a height, checks the pack's tag and passes the message on; a repeater also keeps it for those out of range.

  4. Their device

    Hears the parts, asks again for what is missing, and hands the whole message to the phone.

  5. Their phone

    Decrypts, shows it, and answers with an acknowledgement you see as “delivered”.

A mesh with no mandatory repeaters

While members hear each other directly, nothing else is needed. When the group spreads out, a message travels through neighbours: every device in client and repeater mode and every repeater passes a pack packet on once.

To keep the air clear, forwarding waits for a delay that depends on signal quality: distant nodes forward first, near ones hear that and stay quiet. Duplicates are dropped. After four hops a packet goes no further.

Network simulatorDrag the people and the repeater. Lines show who hears whom.

Three device modes

Client
Sends and receives. Does not forward others’ packets. This is the default: less battery and less airtime.
Client and repeater
Also forwards its pack’s packets. Turn it on for a few devices when the group spreads over the terrain.
Repeater
Only forwards, and keeps the pack’s messages for 72 hours for those out of reach. For a device left on a height.

Delivery and acknowledgements

Parts
One radio packet holds 218 bytes of a message. A long message, up to 1500 bytes, is split into up to eight parts. The receiver puts them together and asks again for the lost ones.
Acknowledgements
Once a message is complete, a device answers with a short acknowledgement after a random delay. The sender sees “delivered to k of N”, counted in distinct members.
For those out of reach
A repeater keeps the pack’s encrypted messages for 72 hours. When a member is heard again, the repeater hands over what they missed.

delivered to 5 of 7

Encryption: who sees what

A pack has two keys. The content key belongs to members only: it encrypts messages, positions and voice. The relay key is also given to repeaters: with it they recognise their pack’s packets, but they have nothing to decrypt a message with. The same packet on air looks different to an outsider, a repeater and a member.

v1pack id 7A3Ftag C11E…

The version, a changing pack identifier and the tag are visible. Who sent it, to whom and what is encrypted.

ChaCha20-Poly1305
Every message is encrypted and authenticated: a packet changed by a single bit is rejected.
A changing pack identifier
Derived from the key and the current time window, so one pack cannot be followed on air.
Replay protection
A counter, a time window and a memory of recent messages stop an old packet from being played back.
Joining in person only
A new member scans a QR invitation from the screen of someone already in the pack.

Airtime and the law

DCOM works in the licence-free EU868 band, in the 869.40–869.65 MHz sub-band: up to 500 mW, but transmitting at most 10 % of the time, that is 360 seconds per hour. The firmware counts its own airtime and will not exceed the limit; this is not a setting. A higher SF reaches further and makes every packet longer.

Airtime calculator

Spreading factor (SF)
Packets
–
Time on air
–
Such messages per hour within the limit
–

Computed for a 250 kHz bandwidth, coding rate 4/5 and a 16-symbol preamble, DCOM’s settings. The default is SF9. A Latin letter takes 1 byte, a Cyrillic one 2.