# RF Configuration — Wireless M-Bus C1 (mode C, meter-to-other) ## PHY parameters (EN 13757-4, cross-checked against rtl-wmbus source) ``` Frequency: 868.95 MHz Chip/bit rate: 100 kbps NRZ (mode C is NOT 3-of-6 coded, unlike T) Deviation: +/-45 kHz nominal Preamble: alternating 01 chips Sync: 0x543D (shared T/C access code) Mode bytes: 0x54CD -> frame format A, 0x543D -> frame format B ``` Authority used: - rtl-wmbus source (`t1_c1_packet_decoder.h`): `ACCESS_CODE_T1_C1 0x543d`, `C1_MODE_A 0b010101001100`, `C1_MODE_B 0b010101000011`, trailer `0b1101` — concatenated this yields sync sequences 0x543D54CD (A) / 0x543D543D (B). - Frame lengths (over-the-air, incl. L and CRCs): - format A: `1 + L + 2*((L-10+15)/16 + 1)` - format B: `1 + L` ## SX1262 register-level configuration (firmware/main/sx126x.c) ``` Packet type: GFSK Bitrate: raw 0x002800 (32*32e6/100e3 = 10240 -> 100 kbps) Deviation: raw 0x00B852 (45e3*2^25/32e6 = 47186) Shaping: none (plain 2-FSK; may experiment with BT=0.5) RX bandwidth: 234.3 kHz DSB (code 0x0A) -- signal occupies ~190 kHz Sync word: 0x543D, 16 bits; mode bytes handled as payload so RX and TX share one configuration Preamble TX: 48 bits Preamble det: 8 bits Length mode: fixed, 255-byte capture, truncated in software using the L-field formulas above (SX1262 variable-length mode cannot express wM-Bus length semantics) CRC: radio CRC off; EN 13757 CRC-16 (poly 0x3D65, complemented) validated per block in software Whitening: off RX gain: boosted (reg 0x08AC = 0x96) TX params: default -9 dBm configured (min), ramp 40 us; PA config (0x02,0x02,0x00,0x01) = +14 dBm-optimal table, deliberately capped -- the external KCT8103L PA adds gain on top ``` ## Consequences of the fixed-255-byte RX capture RxDone fires ~ (255 - frame_len) * 80 us after the actual end of frame; the firmware reconstructs the true end-of-frame timestamp. During that tail the receiver cannot re-arm sync search, adding up to ~20 ms of dead time per frame. Acceptable for the experiment; optimization candidate (GetRxBufferStatus polling with early stop). ## TX power Configured SX1262 power is NOT radiated power: the KCT8103L PA follows. Development default is the SX1262 minimum (-9 dBm). Log lines carry `configured_tx_dbm` to keep this distinction explicit.