- DMRHub
- dmrgo
- Get started
- Next steps
Next steps
This page lists where to go after the first five steps: the concepts behind the library, the task guides, the state machines, the build targets and the reference.
What you did
- Install: you added the module and got the captures.
- Decode a burst:
layer2turned 33 bytes into a burst, with its FEC result and its PDU. - Follow a voice call: a voice.Receiver turned bursts into call events.
- Send an SMS:
smsanddataread a text and sent a confirmed reply. - Receive on a radio:
rfrecovered the bursts from I/Q samples.
Learn the concepts
- The layer model: how the packages stack, from bursts to applications, networks and the radio.
- I/O-free services: the method set that every state machine shares, and how to drive it from your own I/O and clock.
- Errors and the never-panic rule: what the library returns for bad input and how to match it.
- Allocation: where the library allocates, and how to keep TinyGo from allocating in your code.
- Tiers: the four receiver tiers of
rf, from a microcontroller to offline decoding.
Do a task
The guides each build one program on an example with recorded output. Start with these:
- Decode and re-encode captures.
- Follow calls on both slots of a bit stream.
- Clean up bursts for a hotspot.
- Rewrite and relay a voice call.
Other guides cover voice transcoding, data with retries, TCP and UDP over DMR, location, registration and text services, CSBK services, trunking, network protocols, basic privacy, and the receive and transmit sides of rf.
Look up a state machine
Each state machine has a page with its states, config, timers and errors. The machines of the steps are voice.Receiver, data.Receiver and data.Sender.
Pick a target
- PC.
- Browser, with WebAssembly.
- Microcontrollers, with TinyGo.
- C API, libdmrgo.
Reference
- The Go API on pkg.go.dev.
- The Receiver and Transmitter datasheets.
- Examples: the example programs, which run offline on captures.
- ETSI coverage: the status of each clause of ETSI TS 102 361.