Output from Remote Control App (Parent and Repeater App)
Output format when data is received from the Remote Control App
0x81: Status Notification from Remote Device
Outputs the state of the received input signal.
Data Format
| # | Data | Description | Remarks |
|---|---|---|---|
char | Header | : only | |
| 0 | uint8 | Source Logical Device ID | |
| 1 | uint8 | Command Number | Only 0x81 |
| 2 | uint8 | Packet Identifier | Only 0x0F |
| 3 | uint8 | Protocol Version | Only 0x01 |
| 4 | uint8 | LQI | 0-255 |
| 5 | uint32 | Source Serial ID | 0x8??????? |
| 9 | uint8 | Destination Logical Device ID | |
| 10 | uint16 | Timestamp | 64 counts per second, MSB is internal flag |
| 12 | uint8 | Relay Count | |
| 13 | uint16 | Digital Signal | Corresponds to Ix from LSB, 0 is High |
| 15 | uint16 | Digital Signal Mask | Corresponds to Ix from LSB, 1 means enabled |
| 17 | uint16 | Digital Signal Flag | Corresponds to Ix from LSB, 1 means interrupt triggered |
| 19 | uint8 | Unused | Internal management |
uint8 | Checksum | LRC8 | |
char | Footer | CR (0x0D/\r) | |
char | Footer | LF (0x0A/\n) |
Example of Output Data
:01810F01DB8630000200645F000040004F00400049
| # | Data | Description | Value | |
|---|---|---|---|---|
: | char | Header | : | |
01 | 0 | uint8 | Source Logical Device ID | 0x78 |
81 | 1 | uint8 | Command Number | 0x81 |
0F | 2 | uint8 | Packet Identifier | 0x15 |
01 | 3 | uint8 | Protocol Version | 0x01 |
DB | 4 | uint8 | LQI | 219/255 |
86300002 | 5 | uint32 | Source Serial ID | 0x6300002 |
00 | 9 | uint8 | Destination Logical Device ID | 0x00 |
645F | 10 | uint16 | Timestamp | About 401 seconds |
00 | 12 | uint8 | Relay Count | 0 |
0040 | 13 | uint16 | Digital Signal | I7 is Low |
004F | 15 | uint16 | Digital Signal Mask | I7, I1-I4 are enabled |
0040 | 17 | uint16 | Digital Signal Flag | I7 has changed due to interrupt |
00 | 19 | uint8 | Unused | |
49 | uint8 | Checksum | 0x49 | |
char | Footer | \r | ||
char | Footer | \n |
Data Identification Conditions
Parent and Repeater App can receive data from various types of child devices.
To confirm that the output data is from the Remote Control App, refer to the following conditions.
| # | Data | Item | Condition |
|---|---|---|---|
| 1 | uint8 | Command Number | Must be 0x81 |
| 3 | uint8 | Protocol Version | Must be 0x02 |
| 5 | uint32 | Source Serial ID | MSB must be 1 (0x8???????) |
| - | - | Payload Size | Must be 20 bytes (between : and checksum) |