LoRa & Sub-GHz / 2.4 GHz Radio
Semtech SX1280 digital twin
2.4 GHz LoRa / FLRC / GFSK long-range radio transceiver with ranging.
VendorSemtechLoRa & Sub-GHz / 2.4 GHz Radio
InterfaceSPI + BUSY/DIO1SPI Mode 0 (command-based opcode interface, up to 18 MHz)
Record Status2026-11-14rev 353af3679 (clean tree)
Driver oracle & capability record
9/9 radio acceptance criteria met (ToA formula to 1 ns, Friis link budget 0.01 dB, BUSY-pin gating, seeded PER determinism).
| Driver reference | Semtech SX128x driver, Lora-net/SWDR005 at 3d57f5ea, src/sx128x.c |
|---|---|
| Evidence standing | provisional (register and bus behavior derived from vendor datasheet or driver oracle; not yet hardware-unit verified on two physical samples). |
| Published record | accuracy/radio-twins-2026-11-14.json (SHA-256 4056386a93c2) |
Radio acceptance criteria (9/9)
| Criterion | Status |
|---|---|
| AC-1 upstream drivers between boards (every packet intact at a strong link) | Met |
| AC-2a time on air = data sheet formula (1 ns) | Met |
| AC-2b firmware SetTx-to-TxDone = 80 us + time on air (10 us + 0.1 %) | Met |
| AC-2c SX1276GetTimeOnAir within 1 ms | Met |
| AC-3 link budget (Friis 0.01 dB, dipole gains) and RSSI/SNR within quantisation | Met |
| AC-4 seeded loss inside the 99 % interval at every point | Met |
| AC-5 determinism (same seed same digests, other seed differs, zero variation = none) | Met |
| AC-6 command sent while BUSY is dropped; waiting for BUSY works | Met |
| AC-7 switching table (15 rows) and register reset values read | Met |
Key registers & reset values
| Address / Field | Register | Reset / Expected | Purpose |
|---|---|---|---|
0xC0 | GetStatus | Mode + cmd status | Returns chip mode and last SPI command status |
0x80 / 0x83 | SetStandby / SetTx | Command | Mode switching with BUSY pin gating |
0x15 | GetIrqStatus | 16-bit mask | TxDone, RxDone, CrcError and Timeout flags |
Attach with ct CLI
Shell - run firmware with SX1280
# Run compiled firmware with SX1280 attached on nucleo-h743zi2
ct run --json --board nucleo-h743zi2 --device sx1280 build/app.elf
# Run fault-injection suite and emit JUnit XML
ct test run --json --junit results/sx1280.xml tests/sx1280-fault.suite.yamlFault-injection test snippet (suite.yaml)
tests/sx1280-fault.suite.yaml
version: 1
scene: sx1280-two-node-link.scene.json
tests:
- name: sx1280-seeded-packet-loss-recovery
seed: 42
faults:
- at_ms: 120
link: rf0
kind: attenuation_db
delta_db: 45.0
duration_ms: 250
expect:
console_contains: "RETRANSMIT_OK"
exit_code: 0