0xDB Command in Serial Communication App Format Mode (ASCII)
0xDB command instead of Interactive Mode.Input Format
| # | Data | Content | Remarks |
|---|---|---|---|
char | Header | : only | |
| 0 | uint8 | Destination logical device ID | Only 0xDB itself |
| 1 | uint8 | Command number | Selected from values below |
| 2 | [uint8] | Parameter | Optional length N bytes representing setting values |
uint8 | Checksum | LRC8 | |
char | Footer | CR (0x0D/'\r') | |
char | Footer | LF (0x0A/'\n') |
List of Command Numbers
| Function | |
|---|---|
0xF0 | Enable ACK |
0xF1 | Get Device Info |
0xF2 | Apply Device Settings |
0xF3 | Get Device Settings |
0xFD | Erase Device Settings |
0xFE | Save Device Settings |
0xFF | Reset Device |
0xF0: Enable ACK
Requests an ACK response.
No parameters.
Response Format
| # | Data | Content | Remarks |
|---|---|---|---|
char | Header | : only | |
| 0 | uint8 | Destination logical device ID | Only 0xDB |
| 1 | uint8 | Command number | Only 0xF0 |
| 2 | uint8 | Data | Only 0x01 |
uint8 | Checksum | 0x34: LRC8 | |
char | Footer | CR (0x0D/'\r') | |
char | Footer | LF (0x0A/'\n') |
0xF1: Get Device Info
Displays address and other information. Also output at startup.
No parameters.
Response Format
| # | Data | Content | Remarks |
|---|---|---|---|
char | Header | : only | |
| 0 | uint8 | Destination logical device ID | Only 0xDB |
| 1 | uint8 | Command number | Only 0xF1 |
| 2 | uint32 | Default Application ID | 67720103 |
| 6 | uint32 | Version number | For 1.4.7, 00010407 |
| 10 | uint8 | Logical device ID | |
| 11 | uint32 | Serial ID | |
| 15 | uint8 | Silent mode status | Enabled 1, Disabled 0 |
| 16 | uint8 | Network status | UP 1, DOWN 0 |
uint8 | Checksum | LRC8 | |
char | Footer | CR (0x0D/'\r') | |
char | Footer | LF (0x0A/'\n') |
0xF2: Apply Device Settings
Applies the settings.
Response Format
On Success
| # | Data | Content | Remarks |
|---|---|---|---|
char | Header | : only | |
| 0 | uint8 | Destination logical device ID | Only 0xDB |
| 1 | uint8 | Command number | Only 0xF3 |
| 2 | [uint8] | Settings content | Identifier |
uint8 | Checksum | LRC8 | |
char | Footer | CR (0x0D/'\r') | |
char | Footer | LF (0x0A/'\n') |
On Failure
| # | Data | Content | Remarks |
|---|---|---|---|
char | Header | : only | |
| 0 | uint8 | Destination logical device ID | Only 0xDB |
| 1 | uint8 | Command number | Only 0xF3 |
| 2 | uint8 | Error | Only 0xFF |
uint8 | Checksum | 0x33: LRC8 | |
char | Footer | CR (0x0D/'\r') | |
char | Footer | LF (0x0A/'\n') |
0xF3: Get Device Settings
Gets the settings.
Response Format
| # | Data | Content | Remarks |
|---|---|---|---|
char | Header | : only | |
| 0 | uint8 | Destination logical device ID | Only 0xDB |
| 1 | uint8 | Command number | Only 0xF3 |
| 2 | [uint8] | Settings content | Identifier and data |
uint8 | Checksum | LRC8 | |
char | Footer | CR (0x0D/'\r') | |
char | Footer | LF (0x0A/'\n') |
0xFD: Erase Device Settings
Resets device settings and resets the device.
No parameters or response.
0xFE: Save Device Settings
Saves applied settings and resets the device.
No parameters or response.
0xFF: Reset Device
Discards applied settings and resets the device.
No parameters or response.
Parameter List (0xF2 / 0xF3)
Parameters for 0xF2: Apply Device Settings and 0xF3: Get Device Settings are represented by repeated pairs of identifiers and data (big endian).
| Identifier | Data | Content |
|---|---|---|
0x00 | uint32 | Application ID |
0x01 | uint32 | Frequency Channel Mask |
0x02 | uint16 | Retry Count and Output |
0x03 | uint8 | Logical Device ID |
0x04 | uint8 | Role |
0x05 | uint8 | Relay Layer |
0x06 | uint8 | Communication Mode |
0x07 | uint32 | Baud Rate |
0x08 | uint8 | Parity |
0x09 | uint8 | Encryption Function |
0x0A | [uint8] | Encryption Key |
0x0B | [uint8] | Header / Handle name |
0x0C | uint16 | Delimiter Character |
0xFF | uint8 | Error |
0x00: Application ID
Specifies the application ID.
0x01: Frequency Channel Mask
Specifies the bit mask of frequency channels.
Set bits for channels to be used. For example, to use channel 11, specify 1<<11.
0x02: Retry Count and Output
Specifies the radio transmission output and the number of additional packet transmissions in transparent mode and header-attached transparent mode.
Only the lower 1 byte is used. The upper 4 bits represent the retry count (0-9), and the lower 4 bits represent the transmission output (0-3). For example, 8 retries / output 3 is 0x0083.
0x03: Logical Device ID
Specifies the logical device ID.
0x04: Role
Effective only for slave devices. Specify one of the following values. Normally, select a delivery method that does not use the network layer.
Delivery Methods Without Network Layer
0: Normal designation (parent or child device)1-3: Relay slave devices (logical device IDs are1-100or120). Numbers1-3indicate the maximum relay hop count. This method retransmits up to the maximum relay hops, which may cause duplicate packets depending on relay device placement and count.
Delivery Methods Using Network Layer
11: Parent device12: Relay device13: Child device
80 to the above values. For example, 93 means “network layer enabled and silent mode”.0x05: Relay Layer
The relay layer number. Relay devices attempt to connect to relay devices or parent devices in upper (smaller value) relay layers. Effective only when Role is set to 12.
0x06: Communication Mode
0: Transparent mode1: Format mode (ASCII)2: Format mode (Binary)3: Chat mode4: Header-attached transparent mode
0x07: Baud Rate
Specifies the UART baud rate.
0x08: Parity
Specifies the sum of settings in the following combination:
- Bit
0: 8Bit8: 7Bit
- Parity
0: None1: Odd2: Even
- Stop
0: STOP 14: STOP 2
For example, 7-E-1 is specified as 8+2+0=10(0xA).
0x09: Encryption Function
Specifies whether encryption is enabled.
0: Disabled1: AES128bit encryption enabled
0x0A: Encryption Key
Specifies a 16-byte encryption key.
Can store binary sequences that cannot be set in Interactive Mode. This may cause display issues in Interactive Mode.
0x0B: Header / Handle name
Specifies a header format on the mode E or handle name on the mode C.
0x0C: Delimiter Character
Specifies the delimiter character (0x00-0xFF).