LoRa & Sub-GHz / 2.4 GHz Radio
Quectel Quectel BG96 digital twin
LTE Cat M1 / NB-IoT / EGPRS cellular AT-command modem with scripted TCP/UDP socket emulation.
VendorQuectelLoRa & Sub-GHz / 2.4 GHz Radio
InterfaceUARTUART 115200 8N1 (AT command grammar + URC events)
Record StatusCatalog profileDatasheet / behavioral twin
Driver oracle & capability record
Implemented as a built-in AT cellular modem twin in ct-twin-gen (crates/ct-twin-gen/src/sensor/kinds_at_quectel.rs) with scripted network endpoints and no live carrier RF.
| Driver reference | CircuitTwin kinds_at_quectel / Zephyr quectel-bg9x |
|---|---|
| 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 | Generate or inspect locally via ct twin generate (see /docs/twin-generation). |
Key registers & reset values
| Address / Field | Register | Reset / Expected | Purpose |
|---|---|---|---|
AT+CGREG? | NET_REG | +CGREG: 0,1 | Network registration state and roaming drop faults |
AT+QIACT=1 | PDP_CONTEXT | OK / ERROR | Activates PDP context for socket connections |
AT+QIOPEN / QISEND | TCP_UDP_SOCK | +QIOPEN: 0,0 | Opens scripted sockets and transfers payload frames |
Attach with ct CLI
Shell - run firmware with Quectel BG96
# Run compiled firmware with Quectel BG96 attached on nucleo-l476rg
ct run --json --board nucleo-l476rg --device quectel-bg96 build/app.elf
# Run fault-injection suite and emit JUnit XML
ct test run --json --junit results/quectel-bg96.xml tests/quectel-bg96-fault.suite.yamlFault-injection test snippet (suite.yaml)
tests/quectel-bg96-fault.suite.yaml
version: 1
board: nucleo-l476rg
firmware: build/app.elf
tests:
- name: quectel-bg96-uart-timeout-and-retry
faults:
- at_ms: 120
part: quectel-bg96
kind: uart_drop_rx
duration_ms: 250
expect:
console_contains: "UART_RETRY_OK"
exit_code: 0