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.

standing: provisionalUART (AT)UART 115200 8N1 (AT command grammar + URC events)
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 referenceCircuitTwin kinds_at_quectel / Zephyr quectel-bg9x
Evidence standingprovisional (register and bus behavior derived from vendor datasheet or driver oracle; not yet hardware-unit verified on two physical samples).
Published recordGenerate or inspect locally via ct twin generate (see /docs/twin-generation).

Key registers & reset values

Address / FieldRegisterReset / ExpectedPurpose
AT+CGREG?NET_REG+CGREG: 0,1Network registration state and roaming drop faults
AT+QIACT=1PDP_CONTEXTOK / ERRORActivates PDP context for socket connections
AT+QIOPEN / QISENDTCP_UDP_SOCK+QIOPEN: 0,0Opens 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.yaml

Fault-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

Compatible board twins

More in LoRa & Sub-GHz / 2.4 GHz Radio