These dmrgo docs are built from main and can describe changes that no release has yet. No release of dmrgo has these docs.

  1. DMRHub
  2. dmrgo
  3. Concepts
  4. The layer model

The layer model

On this page

This page shows how the packages of dmrgo stack, from the bits of a burst to the applications in data packets, and where the networks and the radio connect.

The stack

The packages follow the layers of ETSI TS 102 361. Each layer uses only the layers under it. A program uses the layers that its task needs.

Layer What it holds Packages
Applications The contents of data packets: IP, text messages, positions and the MOTOTRBO and Hytera services. ip, sms, shortdata, location, lip, nmea, mototrbo/ars, mototrbo/lrrp, mototrbo/tms, hytera/hdap
Services The calls and the control of one logical channel or of a site, as state machines without I/O. voice, data, csbk, bs, trunk, trunk/trunkauth, privacy
Layer 3 The information elements that PDUs carry, such as service options and channel definitions. layer3
Layer 2 Bursts, PDUs, FEC, the CACH, voice superframes and data packets. layer2, layer2/pdu, layer2/packet, layer2/framer, fec, enums, constants
Radio I/Q samples and FM audio to bursts and back, and the voice codecs. rf, vocoder, vocoder/codec2, vocoder/dvsi

The networks are beside the radio. A network carries bursts between hosts, in place of the air:

Network Packages
The MMDVM network protocol, the HomeBrew Repeater Protocol (HBRP), the MMDVMHost to DMRGateway link and OpenBridge transport/dmrd, transport/dmrd/dmrdauth, transport/dmrd/dmrdsession
Motorola IP Site Connect (IPSC) transport/ipsc, transport/ipsc/ipscauth, transport/ipsc/ipscsession
Hytera IP Multi-Site Connect transport/hytera
The serial protocol of an MMDVM modem transport/mmdvm

The package documentation gives one line for each package.

The burst connects the layers

Every path through the stack passes a 33-byte burst, a layer2.RawBurst, with a layer2.Hint beside it. The hint holds the data of the source about the burst besides its bits: the slot, the burst kind, the voice position, the data type, a sequence number, a stream ID, and the end and loss flags of a transport.

So one service machine works with every source. A voice.Receiver follows a call from an RTL-SDR, from an MMDVM modem or from a network master with the same code. The Get started steps show this: steps 3 and 5 give the same machine bursts from a file and from I/Q.

Where the layers come from

  • Layer 2 and the radio follow ETSI TS 102 361-1, the air interface. (ETSI TS 102 361-1 clauses 6, 9 and 10)
  • The voice and generic services, the CSBK services and the Full LC follow ETSI TS 102 361-2. (ETSI TS 102 361-2 clause 5)
  • Packet data and its applications follow ETSI TS 102 361-3. (ETSI TS 102 361-3 clauses 5 and 6)
  • Trunking follows ETSI TS 102 361-4. (ETSI TS 102 361-4 clauses 6.2 to 6.6)

The networks, the MOTOTRBO and Hytera services, and the vocoders are not in ETSI TS 102 361. Each package doc gives the source that it follows. ETSI coverage gives the status of each clause.

Next: I/O-free services.

Edit this page on GitHub