🏠 Home → Software → RTLV → Commands (downlink) — LORAWAN_CFG (FPort 199)
🤖 Auto-generated from firmware (SSOT). Do not hand-edit — change the descriptor and regenerate. RTLV v3 ·
source_hash eb6b51128c1b
A downlink command = [cmd_id][len][params…] — no envelope, no prefix; multi-byte params are BE unless stated. Full command model on the Overview.
| Port.Cmd | Name | Kind | Params | Magic | Example (request) | Notes (verified) |
|---|---|---|---|---|---|---|
199.0x03 |
rejoin | action | — | len0; force LoRaWAN rejoin. src lorawan_commands.c:4104 | ||
199.0x0C |
sies_unbind | action | — | len0; FEATURE_SIES_CRYPTO only. src lorawan_commands.c:4172 | ||
199.0x15 |
set_device_class | action | class:uint8 {0=A, 2=C}; duration_sec:uint16 BE (opt) |
150102 |
len0=GET; len1=SET permanent; len3=[class][duration_sec u16 BE] timed. class in {0,2}. src lorawan_commands.c:4299 | |
199.0x16 |
multicast_delete | action | group_id:uint8 |
160100 |
len>=1. src lorawan_commands.c:4405 | |
199.0xF1 |
factory_reset_lorawan | action | magic:uint16 BE ==0xCA11 |
0xCA11 | F102CA11 |
len2 magic 0xCA11. src lorawan_commands.c:4005 |
199.0xF2 |
factory_reset_keys | action | magic:uint16 BE ==0xDEAD |
0xDEAD | F202DEAD |
len2 magic 0xDEAD. src lorawan_commands.c:8336 |
Response — 0xF0 COMMAND_RESPONSE 7-byte envelope, then echo-TLVs @ offset 7 (decoded in the response FPort's namespace):
| Offset | Byte | Field | Meaning |
|---|---|---|---|
| 0 | F0 |
prefix | COMMAND_RESPONSE |
| 1 | LEN |
length | bytes after [F0][LEN]; 0x05 for the bare 7-byte header |
| 2 | — | cmd_id | echoed command id |
| 3 | — | status | 0=OK |
| 4 | — | error_code | command error |
| 5 | — | flags | response flags |
| 6 | — | protocol_version | =0x03 (TLV_PROTOCOL_VERSION) |
| 7… | — | echo-TLVs | port-scoped [tag][len][value] |
The
[0xF0][3]…forms in firmware docstrings are stale shorthand — never mirror them.