Remote Control App UART Function
Data format used for UART function.
Explanation of data format used in the UART function of Remote Control App (App_IO).
Digital Input and Output
0x81: Status Notification from the 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 | 0x81 only |
| 2 | uint8 | Packet Identifier | 0x0F only |
| 3 | uint8 | Protocol Version | 0x01 only |
| 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 valid |
| 17 | uint16 | Digital Signal Flag | Corresponds to Ix from LSB, 1 means interrupt |
| 19 | uint8 | Unused | For internal management |
uint8 | Checksum | LRC8 | |
char | Footer | CR (0x0D/'\r') | |
char | Footer | LF (0x0A/'\n') |
Example Output Data
:01810F01DB8630000200645F000040004F00400049
Interpretation of the Above Data
| # | 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 | Approx. 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 valid |
0040 | 17 | uint16 | Digital Signal Flag | I7 changed due to interrupt |
00 | 19 | uint8 | Unused | |
49 | uint8 | Checksum | 0x49 | |
char | Footer | \r | ||
char | Footer | \n |
0x80: Remote Device Output Change
Controls the output signals of the remote device.
Data Format
| # | Data | Description | Remarks |
|---|---|---|---|
char | Header | : only | |
| 0 | uint8 | Destination Logical Device ID | Parent 0x00, Child 0x01-0x64, All Children 0x78 |
| 1 | uint8 | Command Number | 0x80 only |
| 2 | uint8 | Format Version | 0x01 only |
| 3 | uint16 | Digital Signal | Corresponds to Ox from LSB, 0 is High |
| 5 | uint16 | Digital Signal Mask | Corresponds to Ox from LSB, 1 is valid |
| 7 | uint16 | Unused | 0 |
| 9 | uint16 | Unused | 0 |
| 11 | uint16 | Unused | 0 |
| 13 | uint16 | Unused | 0 |
uint8 | Checksum | LRC8 | |
char | Footer | CR (0x0D/'\r') | |
char | Footer | LF (0x0A/'\n') |
Parent and repeater apps (v1.2 and earlier) do not support this format.
There is a reported bug with TWELITE GOLD App_IO v1.3.2 where transmission commands may not work in some cases.
The cause is under investigation. For TWELITE STICK, please use App_Wings v1.3.2 (TWELITE Apps unified version is also available).
UART Input and Output
Same as Extremely Simple! Standard App.
- Option bit
0x00010000Force enable reception on child device must be enabled to activate reception function on child devices. - Option bit
0x00020000Stop UART output on input change can be enabled to ignore Input Change Messages. - Communication between child devices is possible. Assign unique logical device IDs to child devices to identify them.