LoRa & Sub-GHz / 2.4 GHz Radio
Jinan Huamao HM-10 digital twin
CC2541 BLE 4.0 transparent UART serial bridge with AT configuration commands.
VendorJinan HuamaoLoRa & Sub-GHz / 2.4 GHz Radio
InterfaceUARTUART 9600 8N1 default (no CR/LF in older firmware)
Record StatusCatalog profileDatasheet / behavioral twin
Driver oracle & capability record
Implemented as a built-in Huamao AT BLE bridge twin in ct-twin-gen (crates/ct-twin-gen/src/sensor/kinds_at_huamao.rs).
| Driver reference | CircuitTwin kinds_at_huamao / HM-10 AT firmware |
|---|---|
| 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 | PING | OK | Verifies link while disconnected from BLE peer |
AT+ROLE? | ROLE | OK+Get:0 (Periph) | Selects Peripheral (0) or Central (1) role |
AT+BAUD? | BAUD | OK+Get:0 (9600) | Configures host UART baud rate index |
Attach with ct CLI
Shell - run firmware with HM-10
# Run compiled firmware with HM-10 attached on arduino-uno
ct run --json --board arduino-uno --device hm-10 build/app.elf
# Run fault-injection suite and emit JUnit XML
ct test run --json --junit results/hm-10.xml tests/hm-10-fault.suite.yamlFault-injection test snippet (suite.yaml)
tests/hm-10-fault.suite.yaml
version: 1
board: arduino-uno
firmware: build/app.elf
tests:
- name: hm-10-uart-timeout-and-retry
faults:
- at_ms: 120
part: hm-10
kind: uart_drop_rx
duration_ms: 250
expect:
console_contains: "UART_RETRY_OK"
exit_code: 0