/      日本語

0xDB Command in Serial Communication App Format Mode (Binary)

Setting functions using the 0xDB command in format mode (binary) without using Interactive Mode
In format mode, you can dynamically configure settings from devices connected via UART by using the 0xDB command instead of Interactive Mode.

Input Format

#DataContentRemarks
uint8HeaderOnly 0xA5
uint8HeaderOnly 0x5A
uint16Data Length\(N\)+2
0uint8Destination Logical Device IDOnly 0xDB indicating itself
1uint8Command NumberSelected from values below
2[uint8]ParameterByte sequence of length \(N\) indicating setting value (optional)
uint8ChecksumXOR
uint8FooterEOT (0x04)

Command Number List

Function
0xF0Enable ACK
0xF1Get Device Info
0xF2Apply Device Settings
0xF3Get Device Settings
0xFDErase Device Settings
0xFESave Device Settings
0xFFReset Device

0xF0: Enable ACK

Requests ACK response.

No parameters.

Response Format

#DataContentRemarks
uint8HeaderOnly 0xA5
uint8HeaderOnly 0x5A
uint16Data Length3
0uint8Destination Logical Device IDOnly 0xDB
1uint8Command NumberOnly 0xF0
2uint8DataOnly 0x01
uint8ChecksumXOR
uint8FooterEOT (0x04)

0xF1: Get Device Info

Displays information such as address. Also output at startup.

No parameters.

Response Format

#DataContentRemarks
uint8HeaderOnly 0xA5
uint8HeaderOnly 0x5A
uint16Data Length17
0uint8Destination Logical Device IDOnly 0xDB
1uint8Command NumberOnly 0xF1
2uint32Default Application ID67720103
6uint32Version NumberFor 1.4.7, 00010407
10uint8Logical Device ID
11uint32Serial ID
15uint8Silent Mode StatusEnabled 1, Disabled 0
16uint8Network StatusUP 1, DOWN 0
uint8ChecksumXOR
uint8FooterEOT (0x04)

0xF2: Apply Device Settings

Applies settings.

Response Format

On Success
#DataContentRemarks
uint8HeaderOnly 0xA5
uint8HeaderOnly 0x5A
uint16Data Length\(N\)+2
0uint8Destination Logical Device IDOnly 0xDB
1uint8Command NumberOnly 0xF3
2[uint8]Setting ContentIdentifier
uint8ChecksumXOR
uint8FooterEOT (0x04)
On Failure
#DataContentRemarks
uint8HeaderOnly 0xA5
uint8HeaderOnly 0x5A
uint16Data Length3
0uint8Destination Logical Device IDOnly 0xDB
1uint8Command NumberOnly 0xF3
2uint8ErrorOnly 0xFF
uint8ChecksumXOR
uint8FooterEOT (0x04)

0xF3: Get Device Settings

Retrieves settings.

Response Format

#DataContentRemarks
uint8HeaderOnly 0xA5
uint8HeaderOnly 0x5A
uint16Data Length\(N\)+2
0uint8Destination Logical Device IDOnly 0xDB
1uint8Command NumberOnly 0xF3
2[uint8]Setting ContentIdentifier and data
uint8ChecksumXOR
uint8FooterEOT (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.

IdentifierDataContent
0x00uint32Application ID
0x01uint32Frequency Channel Mask
0x02uint16Retry Count and Output
0x03uint8Logical Device ID
0x04uint8Role
0x05uint8Relay Layer
0x06uint8Communication Mode
0x07uint32Baud Rate
0x08uint8Parity
0x09uint8Encryption Function
0x0A[uint8]Encryption Key
0x0B[uint8]Header / Handle name
0x0Cuint16Delimiter Character
0xFFuint8Error

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 IDs 1-100 or 120). Numbers 1-3 indicate 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 device
  • 12: Relay device
  • 13: Child device

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 mode
  • 1: Format mode (binary)
  • 2: Format mode (binary)
  • 3: Chat mode
  • 4: Header-attached transparent mode

0x07: Baud Rate

Specifies UART baud rate.

0x08: Parity

Specifies the sum of settings in the following combination.

  • Bit
    • 0: 8Bit
    • 8: 7Bit
  • Parity
    • 0: None
    • 1: Odd
    • 2: Even
  • Stop
    • 0: STOP 1
    • 4: STOP 2

For example, 7-E-1 is 8+2+0=10(0xA).

0x09: Encryption Function

Specifies whether encryption is enabled.

  • 0: Disabled
  • 1: 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).