0xDB Command in Serial Communication App Format Mode (Binary)
0xDB command instead of Interactive Mode.Input Format
| # | Data | Content | Remarks |
|---|---|---|---|
uint8 | Header | Only 0xA5 | |
uint8 | Header | Only 0x5A | |
uint16 | Data Length | \(N\)+2 | |
| 0 | uint8 | Destination Logical Device ID | Only 0xDB indicating itself |
| 1 | uint8 | Command Number | Selected from values below |
| 2 | [uint8] | Parameter | Byte sequence of length \(N\) indicating setting value (optional) |
uint8 | Checksum | XOR | |
uint8 | Footer | EOT (0x04) |
Command Number List
| 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 ACK response.
No parameters.
Response Format
| # | Data | Content | Remarks |
|---|---|---|---|
uint8 | Header | Only 0xA5 | |
uint8 | Header | Only 0x5A | |
uint16 | Data Length | 3 | |
| 0 | uint8 | Destination Logical Device ID | Only 0xDB |
| 1 | uint8 | Command Number | Only 0xF0 |
| 2 | uint8 | Data | Only 0x01 |
uint8 | Checksum | XOR | |
uint8 | Footer | EOT (0x04) |
0xF1: Get Device Info
Displays information such as address. Also output at startup.
No parameters.
Response Format
| # | Data | Content | Remarks |
|---|---|---|---|
uint8 | Header | Only 0xA5 | |
uint8 | Header | Only 0x5A | |
uint16 | Data Length | 17 | |
| 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 | XOR | |
uint8 | Footer | EOT (0x04) |
0xF2: Apply Device Settings
Applies settings.
Response Format
On Success
| # | Data | Content | Remarks |
|---|---|---|---|
uint8 | Header | Only 0xA5 | |
uint8 | Header | Only 0x5A | |
uint16 | Data Length | \(N\)+2 | |
| 0 | uint8 | Destination Logical Device ID | Only 0xDB |
| 1 | uint8 | Command Number | Only 0xF3 |
| 2 | [uint8] | Setting Content | Identifier |
uint8 | Checksum | XOR | |
uint8 | Footer | EOT (0x04) |
On Failure
| # | Data | Content | Remarks |
|---|---|---|---|
uint8 | Header | Only 0xA5 | |
uint8 | Header | Only 0x5A | |
uint16 | Data Length | 3 | |
| 0 | uint8 | Destination Logical Device ID | Only 0xDB |
| 1 | uint8 | Command Number | Only 0xF3 |
| 2 | uint8 | Error | Only 0xFF |
uint8 | Checksum | XOR | |
uint8 | Footer | EOT (0x04) |
0xF3: Get Device Settings
Retrieves settings.
Response Format
| # | Data | Content | Remarks |
|---|---|---|---|
uint8 | Header | Only 0xA5 | |
uint8 | Header | Only 0x5A | |
uint16 | Data Length | \(N\)+2 | |
| 0 | uint8 | Destination Logical Device ID | Only 0xDB |
| 1 | uint8 | Command Number | Only 0xF3 |
| 2 | [uint8] | Setting Content | Identifier and data |
uint8 | Checksum | XOR | |
uint8 | Footer | EOT (0x04) |
0xFD: Erase Device Settings
Initializes 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 as repeated identifier and data (big endian) pairs.
| 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 use. For example, to use channel 11, set 1<<11.
0x02: Retry Count and Output
Specifies the radio transmission output and the number of additional packets to send in transparent mode and header-attached transparent mode.
Only the lower 1 byte is used. The upper 4 bits indicate retry count (0-9), and the lower 4 bits indicate transmission output (0-3). For example, 8 retries/output 3 is 0x0083.
0x03: Logical Device ID
Specifies the logical device ID.
0x04: Role
Valid only for child devices. Specify the following values. Usually, select a delivery method without using the network layer.
Delivery Methods Without Using Network Layer
0: Normal designation (parent or child)1-3: Relay child devices (logical device IDs1-100or120). Numbers1-3indicate maximum relay hops. This method repeats retries up to the maximum relay hops, which may cause duplicate packets depending on relay device placement and number.
Delivery Methods Using Network Layer
11: Parent device12: Relay device13: Child device
80 to the above values. For example, 93 means “using network layer and silent mode”.0x05: Relay Layer
The relay layer number. Relay devices attempt to connect to relay devices or parent devices with higher layers (lower values). Effective only when Role is set to 12.
0x06: Communication Mode
0: Transparent mode1: Format mode (binary)2: Format mode (binary)3: Chat mode4: Header-attached transparent mode
0x07: Baud Rate
Specifies 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 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.
Allows storing binary sequences that cannot be set in Interactive Mode. In this case, the display in Interactive Mode may be disrupted.
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 string (0x00-0xFF).