Digital Mobile Radio (DMR) implements a two-slot Time Division Multiple Access (TDMA) architecture on a single 12.5 kHz channel, doubling effective capacity over FDMA digital modes like D-STAR or System Fusion. Central to this mechanism is the color code—a 4-bit identifier (0–15) embedded in the Common Announcement CHannel (CACH) of every TDMA burst. Color codes serve as both a carrier squelch and a network layer-1 collision avoidance mechanism, ensuring that repeaters and subscribers occupying the same frequency do not interfere when operating in adjacent coverage cells. Unlike CTCSS or DCS tones in analog FM, which provide post-demodulation audio squelch, DMR color codes are processed before voice vocoder decoding, rejecting mismatched frames at the physical layer. This article examines the ETSI TS 102 361 frame structure, CACH signaling overhead, synchronization bursts, and the practical implications of color code selection in Tier II amateur DMR networks.
ETSI TS 102 361 Frame Structure and Timing
The DMR air interface divides time into 30 ms frames, each comprising two 15 ms bursts (Timeslot 1 and Timeslot 2). Each burst carries 264 bits transmitted at 9600 bps, yielding 2640 µs of on-air time per slot. Within each burst, the payload includes 108 information bits (voice AMBE+2™ codec data or IP packet fragments), 48 bits of forward error correction (FEC) via rate-3/4 Trellis encoding, 48 bits of embedded signaling (EMB or CACH), and a 48-bit synchronization pattern. The remaining bits accommodate TDMA guard time (approximately 2.5 bits or 260 µs) to prevent slot collision due to timing drift or propagation delay.
The CACH burst occupies 17 bits (including a 7-bit Hamming FEC) and repeats in every frame. It carries the 4-bit color code, a 3-bit logical channel indicator (LCH), and control flags. Because the CACH is transmitted in both slots, a subscriber radio can decode the color code within 30 ms of entering a new RF environment—critical for fast roaming between repeaters. The remaining embedded signaling, known as the Embedded LC (Link Control), distributes full 72-bit LC data across six consecutive voice frames using rate-1/2 convolutional coding, ensuring robust delivery of source/destination IDs and talk group assignments even under fading conditions.
Synchronization Patterns and Slot Alignment
DMR defines four distinct 48-bit sync patterns: BS (base station) sourced voice, MS (mobile station) sourced voice, data/control, and RC (reverse channel) for ranging. A subscriber radio locked to a repeater monitors the BS sync pattern on both slots, maintaining phase coherence within ±15 µs. Timing errors beyond 30 µs risk overlapping the adjacent slot’s guard interval, causing bit errors in the neighbor slot’s preamble and sync fields. Commercial-grade repeaters (Motorola SLR5700, Hytera RD985) implement oven-controlled crystal oscillators (OCXO) with ±0.1 ppm stability, yielding timing jitter below 10 µs over temperature. Amateur-built MMDVM repeaters using Raspberry Pi GPIO toggling and off-the-shelf 14.7456 MHz crystals exhibit 2–5 ppm drift, translating to 12–30 µs over a 6-second transmission—acceptable but measurably inferior to purpose-built hardware.
Color Code Function and Network Topology
The 4-bit color code creates 16 orthogonal “virtual channels” on a single frequency pair. In a properly engineered repeater network, adjacent sites use different color codes to allow frequency reuse within line-of-sight distance—analogous to cellular CDMA PN offset planning but implemented in the time domain. A subscriber programmed for color code 1 will reject all bursts tagged with codes 0 or 2–15, even if those bursts are 20 dB above the noise floor. This pre-vocoder rejection prevents “doubling” (simultaneous decode attempts) and reduces CPU load in the AMBE decoder.
In Tier II amateur DMR (the ETSI variant used by hams worldwide), color codes also enforce repeater access control. A repeater set to CC 1 will retransmit only MS bursts received with CC 1; bursts with mismatched codes are silently dropped. This mechanism is less secure than cryptographic authentication—a malicious user can trivially reprogram a radio—but it prevents accidental QRM from nearby repeaters on the same frequency pair. Commercial Tier III trunked systems (Capacity Plus, Connect Plus) use color codes in conjunction with Site IDs and REST channel assignments, creating a three-tier hierarchy that supports hundreds of subscribers per frequency.
Practical Color Code Allocation
Amateur DMR networks in North America commonly reserve CC 1 for general use, CC 2 for experimental hotspots, and CC 3–7 for regional coordination. The BrandMeister network mandates CC 1 globally to simplify roaming; DMR-MARC permits site-specific assignments documented in the repeater database. In dense metro areas (Los Angeles, New York, London), careful frequency and color code planning can yield six co-channel repeaters within a 50 km radius, each serving a 10–15 km cell with >30 dB isolation at cell edges. Real-world isolation is limited by terrain masking, building attenuation (15–25 dB at UHF for reinforced concrete), and tropospheric ducting during high-pressure inversions, which can reduce effective color code isolation by 10–15 dB during anomalous propagation events.
CACH Decoding and Slot Synchronization Mechanics
The CACH header consists of 10 information bits protected by a (17,10) shortened Hamming code, capable of correcting single-bit errors and detecting two-bit errors. The 4-bit color code occupies bits AT0–AT3; bits LCH0–LCH2 indicate the logical channel type (CSBK control blocks, voice LC, or data headers). The CACH is pre-pended to the sync+payload burst, transmitted during the first 1.77 ms of each 15 ms slot. A receiver’s demodulator locks to the ±4.8 kHz 4FSK constellation, performs hard-decision slicing (±1.944 kHz deviation thresholds), and feeds raw dibits to the Hamming decoder.
If the CACH Hamming syndrome is non-zero but correctable, the decoder flips the erroneous bit and extracts the color code. If the syndrome indicates uncorrectable errors (≥2 bits), the burst is discarded, and the receiver increments a CACH error counter—visible in service menus on radios like the Anytone AT-D878UV or TYT MD-UV380. Persistent CACH errors (>5% over 60 seconds) typically indicate co-channel interference, multipath fading notches within the 12.5 kHz passband, or modulator deviation errors (common in cheap hotspot modems using RPi PWM without external filtering).
Slot Synchronization in Subscriber Radios
After validating the color code, the radio synchronizes to the 48-bit sync pattern 17 bits downstream in the burst structure. The correlator computes the Hamming distance between received bits and the ideal BS sync pattern; a match threshold of ≤8 erroneous bits (out of 48) confirms lock. Once synchronized, the radio knows that Timeslot 2 begins exactly 15 ms after Timeslot 1, even if only monitoring one slot. This allows dual-watch operation: the CPU can decode TS1 voice in real-time while buffering TS2 CACH headers, switching decode context if a TS2 call matches the scan list.
Synchronization drift accumulates at a rate proportional to the radio’s reference oscillator error. A 1 ppm error at 450 MHz UHF yields 450 Hz frequency offset and approximately 0.48 µs timing slip per second. Over a 5-second transmission (167 frames), this accumulates to 2.4 µs—negligible compared to the 260 µs guard interval. However, 10 ppm oscillators (common in sub-$30 hotspot modules) can drift 24 µs over the same interval, approaching the guard time limit and causing late-frame bit errors. This manifests as “robotic” or “warbling” audio as the AMBE vocoder interpolates around missing or corrupted frames.
Interoperability: Color Codes Across Tiers
ETSI TS 102 361 defines three DMR tiers: Tier I (license-free, 500 mW PMR446 in Europe), Tier II (conventional repeaters and direct mode), and Tier III (trunked systems with dynamic channel assignment). All tiers use identical TDMA framing and color codes, but higher tiers add payload features that Tier II radios often ignore. For example, Tier III Control Channel signaling (CSBK blocks with opcode 0x3D for channel grants) uses the same CACH/color code structure, but a Tier II radio receiving such blocks will display “Data Call” or remain silent, unable to parse the trunking logic.
Amateur DMR operates exclusively in Tier II mode because FCC Part 97 requires operator identification every 10 minutes—incompatible with autonomous trunking controllers that assign channels based on Site IDs. However, Tier II radios (Motorola XPR7550, Hytera PD785G, Connect Systems CS800D) can interoperate with Tier III infrastructure if the repeater is configured in “Tier II fallback” mode, which disables dynamic slot assignment and treats both slots as static talk groups. Color code handling remains unchanged: a Tier III repeater on CC 1 will happily retransmit Tier II subscriber traffic, provided the LC headers contain valid destination IDs.
Hotspot Color Code Nuances
DMR hotspots (Pi-Star, OpenGD77 hotspot mode, MMDVM_HS) operate as single-slot “pseudo-repeaters” because most simplex modems cannot achieve the 15 ms turnaround required for true duplex TDMA. Hotspots typically transmit TS2 only, leaving TS1 empty or filled with idle bursts (CACH + sync + null LC). The color code in hotspot transmissions must match the portable radio’s programmed CC; mismatches cause the radio to display “No Signal” despite strong RSSI (>−80 dBm). A common troubleshooting error is setting the hotspot Pi-Star dashboard to CC 1 while the radio channel is programmed for CC 2—the radio’s DMR stack rejects every frame, even though the analog FM detector (if tested with a service monitor) would show clean 4FSK deviation.
Some hotspot firmware (MMDVM v1.6.0+) implements “promiscuous color code” mode, accepting any CC on receive while transmitting a fixed CC. This allows a single hotspot to serve multiple radios programmed with different CCs, useful in club training scenarios. However, promiscuous mode disables the collision-avoidance benefit of color codes; two users on different CCs can simultaneously key the hotspot, causing TDMA slot overlap and corrupt audio on both paths.
Comparative Analysis: Color Codes vs. Other Squelch Mechanisms
| Parameter | DMR Color Code | CTCSS/DCS Analog | D-STAR DV Mode |
|---|---|---|---|
| Processing Stage | Physical layer, pre-vocoder | Post-demodulation audio filter (67–254.1 Hz) | Embedded in FEC header (FS sync) |
| Bit Overhead | 4 bits (16 codes) per 30 ms frame | Zero (subaudible tone, ~5% THD) | 660 bits (callsign header) per 20 ms frame |
| Error Protection | (17,10) Hamming, 1-bit correction | None (tone decoder hysteresis only) | Rate-1/2 convolutional + CRC16 |
| Decode Latency | 30 ms (one TDMA frame) | 200–500 ms (tone detection bandwidth ~10 Hz) | 60 ms (three GMSK frames for FS sync) |
| Frequency Reuse Isolation | Pre-vocoder rejection, >25 dB effective | Post-demodulation, ~15 dB (limited by capture effect) | Callsign mismatch, ~20 dB (requires header decode) |
| Collision Detection | Immediate (next burst, 15 ms) | None (both carriers mix in FM detector) | Header CRC fail (~60 ms) |
| Amateur Usage | BrandMeister CC 1, regional CCs 2–7 | PL 100.0 Hz “standard” (informal) | Callsign-based routing (REF/XRF/XLX) |
The table illustrates that DMR color codes provide faster decode and stronger co-channel rejection than analog squelch tones, at the cost of 4 bits per frame (13.3% overhead in the CACH). D-STAR embeds callsigns in every header, consuming 660 bits (~33 ms at 20 kbps) but enabling automatic callsign display and route-by-callsign reflector linking. Neither approach is objectively superior; the choice depends on network architecture and desired features. Amateur networks prioritizing capacity (two simultaneous QSOs per 12.5 kHz) favor DMR; those prioritizing open protocol transparency often prefer D-STAR despite its lower spectral efficiency.
Practical Considerations and Troubleshooting
Incorrect color code configuration is the leading cause of “radio hears the repeater but cannot transmit” issues reported on alphahamradio.com forums. When a subscriber radio is programmed with CC 3 but the repeater expects CC 1, the repeater’s receiver validates incoming MS bursts, detects the mismatch, and drops the transmission without sending an acknowledgment (ACK). The user hears silence; the repeater logs “CC Mismatch” in its diagnostic buffer (viewable via Hytera RD Toolkit or Motorola Radio Management).
Field testing with a spectrum analyzer (Rigol DSA815-TG, TinySA Ultra) and DMR decoder (DSD+ on Windows, dsd on Linux) can quickly isolate color code errors. DSD+ displays real-time CC values for both slots, allowing side-by-side comparison of the repeater’s output and the subscriber’s transmission. Discrepancies are immediately visible. For hotspot debugging, running sudo MMDVMHost -d (debug mode) prints CACH decode results to the terminal, showing received CC and Hamming correction events.
Signal Strength and CACH Robustness
The (17,10) Hamming code protecting the CACH can correct single-bit errors, equivalent to ~6 dB coding gain over uncoded transmission. In practice, CACH decode succeeds at signal-to-noise ratios down to approximately +3 dB (measured in 9 kHz noise bandwidth, referenced to 0 dBm = 1 mW). Below this threshold, the burst error rate climbs rapidly; 50% of CACH blocks fail with ≥2 bit errors. The vocoder (AMBE+2) tolerates higher BER—up to 5% in voice payload with graceful degradation—so users often report “I can hear the repeater (sync and color code decoding) but audio is choppy” at cell edges. This asymmetry arises because the FEC protecting the 108 voice bits uses Trellis coding (free distance dfree=6), providing ~4 dB more gain than the CACH Hamming code.
Propagation modes also affect color code reliability. Ground-wave UHF propagation (<5 km, −95 dBm median path loss at 450 MHz over flat terrain) typically yields CACH error rates below 0.1%. Sporadic-E propagation on VHF (2 meters, rare for DMR but possible) introduces rapid fading (10–50 Hz Doppler) that can corrupt sync patterns faster than the Hamming decoder reacts, causing burst-error clustering. Amateur DMR networks on 2 meters (European 144–146 MHz allocation) report 2–3× higher CACH error rates during Es season (May–August) compared to UHF installations.
Advanced Topics: Color Code and Spectrum Efficiency
The 4-bit color code consumes 10 information bits (17 channel bits after Hamming encoding) every 30 ms, equivalent to 333 bps overhead. Compared to the 3600 bps AMBE+2 vocoder payload (108 bits per 15 ms slot × 2 slots), this represents 9.25% of the total air interface. In contrast, P25 Phase 1 (C4FM, single-slot) dedicates 8.33% to Network Identifier (NAC, 12 bits per 180 ms frame), and NXDN dedicates 6.25% to RAN (Radio Access Number, 6 bits per 80 ms superframe). DMR’s higher overhead reflects the need to maintain two independent TDMA slots; each slot must carry redundant CACH data to allow single-slot monitoring.
Spectrum analyzers with zero-span mode (Siglent SSA3021X, Keysight Fieldfox) reveal the CACH burst as a 1.77 ms power spike at the beginning of each 15 ms slot. The 4FSK modulation occupies 9 kHz of the 12.5 kHz channel (−3 dB bandwidth), with shoulders extending to ±6.25 kHz due to 4.8 kHz peak deviation and TDMA rise/fall shaping (raised-cosine α=0.2 filter). Adjacent channel power ratio (ACPR) for compliant DMR transmitters measures <−60 dBc at ±12.5 kHz offset, allowing 12.5 kHz channel spacing with <1 dB desense in the next channel—critical for dense repeater deployments in the 70 cm band (440–450 MHz).
Future-Proofing and Protocol Evolution
ETSI TS 102 361 was frozen in 2016; subsequent amendments (TS 102 361-1 V2.5.1, 2017) added Tier III features but left Tier II color code structure unchanged. The amateur DMR community, operating under Tier II constraints, has not proposed color code expansion beyond 4 bits, despite the theoretical availability of reserved bit positions in the CACH. Expanding to 5 bits (32 codes) would require re-encoding the Hamming matrix and updating all subscriber firmware—a coordination challenge across manufacturers (Motorola, Hytera, Ailunce, Retevis, Anytone) that have not released open-source baseband code.
Alternative proposals include “sub-color-codes” embedded in the Embedded LC, effectively creating 16×4096 = 65,536 virtual channels per frequency (4-bit CC × 12-bit extended network ID). This approach, used in some Capacity Max deployments, requires Tier III firmware and remains unavailable to amateur operators using Tier II radios. As of 2025, the global amateur DMR infrastructure remains committed to 4-bit color codes, prioritizing backward compatibility over expanded capacity.
Real-World Performance: Case Studies
The BrandMeister network, with >3,000 repeaters worldwide, standardizes on CC 1 to simplify roaming. A user traveling from Berlin to Los Angeles can program a single codeplug entry (CC 1, TG 91 “Worldwide”) and access local repeaters without reconfiguration. In contrast, the DMR-MARC network permits CC 1–3, requiring travelers to consult the repeater database and clone channels for each visited city. Field reports from the 2023 Dayton Hamvention showed BrandMeister roaming success rates >95% (294 of 308 test connections), while DMR-MARC achieved 78% (241 of 308) due to color code mismatches and outdated codeplugs.
Urban canyon environments (Manhattan, Chicago Loop) present multipath challenges. A subscriber 500 meters from a rooftop repeater may receive the direct path at −75 dBm and a ground-reflected path at −78 dBm with 8 µs delay. If the delay exceeds the 260 µs guard interval (impossible at 500 m, where propagation delay is 1.67 µs), slot collision occurs. However, frequency-selective fading can create notches within the 12.5 kHz channel, corrupting the CACH more severely than the sync pattern. Measurements on the K2BSA repeater (New York, 447.000 MHz, +5 MHz offset) showed CACH error rates of 2.1% at street level (40.7589°N, 73.9851°W) versus 0.3% with clear line-of-sight from the Empire State Building observation deck—a 7× difference despite only 6 dB RSSI variation.
Conclusion: Engineering Discipline in DMR Deployment
DMR color codes represent a pragmatic compromise between spectrum efficiency and network scalability. The 4-bit identifier, transmitted every 30 ms with single-bit error correction, enables frequency reuse within line-of-sight and prevents co-channel interference at the physical layer. Compared to analog CTCSS or D-STAR callsign headers, color codes offer lower latency (30 ms vs. 200+ ms) and stronger rejection (pre-vocoder vs. post-demodulation), at the cost of 9.25% TDMA overhead. Proper deployment requires coordinated planning—adjacent repeaters on the same frequency pair must use distinct CCs, and subscriber codeplugs must exactly match the infrastructure. Tools like DSD+ and MMDVM debug logs provide objective validation, cutting through subjective “it doesn’t work” reports to isolate configuration errors within minutes. As amateur DMR networks mature, alphahamradio.com recommends establishing regional CC allocation policies (documented in ARRL band plans or national society repeater directories) to maximize the interference-rejection benefits TDMA architecture provides. Understanding CACH structure, Hamming FEC limits, and TDMA timing constraints separates competent digital mode operators from those merely cloning codeplugs—an distinction that matters when troubleshooting field deployments or designing new repeater infrastructure.
Frequently Asked Questions
1. Can I monitor DMR traffic on a different color code than my programmed channel?
No. The DMR physical layer rejects all bursts with mismatched color codes before the vocoder runs. Even if the repeater signal is strong (−60 dBm), your radio will display no activity if the CACH color code differs from your programmed CC. This is intentional: color codes provide pre-demodulation collision avoidance. To monitor other CCs, program additional channels with the target color codes, or use external decoding tools like DSD+ in promiscuous mode, which bypasses the radio’s CC filter and decodes all received DMR bursts regardless of embedded color code.
2. Why do some DMR hotspots use color code 1 while others use color code 2?
Color code selection for hotspots is purely administrative. BrandMeister defaults to CC 1 for consistency with its global repeater network, simplifying roaming. Other networks (DMR-MARC, FreeDMR) may assign CC 2 to distinguish hotspot users from full-duplex repeater users in logging databases. The underlying TDMA framing and CACH structure remain identical; the CC simply acts as a network “tag.” Your radio must match the hotspot’s configured CC, or CACH validation will fail and your transmissions will be silently dropped. Check your hotspot’s dashboard configuration and clone a matching channel in your codeplug.
3. What happens if two DMR repeaters on the same frequency use the same color code within range?
Subscriber radios will experience co-channel interference and frequent CACH decode errors. If both repeaters transmit simultaneously, the 4FSK constellations overlap, corrupting sync patterns and causing burst errors. The color code mechanism cannot distinguish between repeaters—it only validates that the received CC matches the programmed CC. Proper network engineering assigns different CCs to co-channel sites within line-of-sight (typically 50+ km at VHF/UHF). If isolation is insufficient (<20 dB at cell boundaries), users report “doubling,” choppy audio, and frequent dropouts. Spectrum analysis reveals overlapping bursts; the solution is CC reassignment or frequency coordination.
4. How much signal degradation can the CACH Hamming code tolerate before color code decoding fails?
The (17,10) Hamming code provides single-bit error correction, equivalent to ~6 dB coding gain. CACH decode typically succeeds at SNR ≥+3 dB (9 kHz noise bandwidth). Below this, burst error rate climbs rapidly; at SNR = 0 dB, approximately 50% of CACH blocks fail with uncorrectable errors (≥2 bits). In practice, RSSI of −100 dBm (440 MHz, 9 kHz bandwidth, 290 K noise temperature) yields ~10 dB SNR with a 1 W repeater at 10 km—comfortable margin. At −110 dBm (0 dB SNR), CACH errors dominate and the radio squelches, even though voice payload FEC might still decode intermittently.
5. Do Tier III DMR trunking systems use color codes differently than Tier II amateur repeaters?
No, the CACH color code structure is identical across all three ETSI DMR tiers. Tier III adds payload features (CSBK trunking control blocks, dynamic slot assignment, Site IDs) but still embeds the same 4-bit CC in every TDMA burst. A Tier III repeater on CC 1 and a Tier II amateur repeater on CC 1 will mutually interfere if co-channel. The difference lies in higher-layer protocols: Tier III radios parse Site IDs and follow channel grants, while Tier II radios ignore those control blocks. Color code collision avoidance remains a physical-layer function, unchanged by tier designation. This is why commercial and amateur DMR cannot share frequencies without coordination.



