Output from the Extremely Simple! Standard App (Parent and Repeater App)
Output format when receiving data from the Extremely Simple! Standard App
0x81: Status Notification from the Peer Device
Outputs the status of the received input signals.
Data Format
| # | Data | Description | Notes |
|---|---|---|---|
char | Header | Only : | |
| 0 | uint8 | Logical Device ID of Sender | |
| 1 | uint8 | Command Number | Only 0x81 |
| 2 | uint8 | Packet Identifier | Generated from Application ID |
| 3 | uint8 | Protocol Version | Only 0x01 |
| 4 | uint8 | LQI | 0-255 |
| 5 | uint32 | Serial ID of Sender | 0x8??????? |
| 9 | uint8 | Logical Device ID of Receiver | |
| 10 | uint16 | Timestamp | 64 counts per second |
| 12 | uint8 | Number of Relays | |
| 13 | uint16 | Power Supply Voltage | Unit: mV |
| 15 | int8 | - | (Unused) |
| 16 | uint8 | Digital Signals | Corresponds to DIx from LSB upwards, 0 means HighIf MSB is 1, periodic transmission |
| 17 | uint8 | Digital Signal Mask | Corresponds to DIx from LSB upwards, 1 means valid |
| 18 | uint8 | Converted Value of AI1 | See Calculation of Analog Signals, 0xFF means unused |
| 19 | uint8 | Converted Value of AI2 | See Calculation of Analog Signals, 0xFF means unused |
| 20 | uint8 | Converted Value of AI3 | See Calculation of Analog Signals, 0xFF means unused |
| 21 | uint8 | Converted Value of AI4 | See Calculation of Analog Signals, 0xFF means unused |
| 22 | uint8 | Correction Value of AIx | Corresponds to AIx in 2-bit increments from LSB upwards |
uint8 | Checksum | LRC8 | |
char | Footer | CR (0x0D/'\r') | |
char | Footer | LF (0x0A/'\n') |
Calculation of Analog Signals
The input voltage \(V\) of AIx can be expressed by the received converted value \(e_{r}\) and the correction value \(e_{fr}\) as follows:
$$\begin{align*}
V &= e+e_f \\
\text{where} \\
e &= 16e_r \\
e_f &= 4e_{fr} \\
\end{align*}$$
The unit is mV
Example of Output Data
:78811501C98201015A000391000C2E00810301FFFFFFFFFB
| # | Data | Description | Value | |
|---|---|---|---|---|
: | char | Header | : | |
78 | 0 | uint8 | Logical Device ID of Sender | 0x78 |
81 | 1 | uint8 | Command Number | 0x81 |
15 | 2 | uint8 | Packet Identifier | 0x15 |
01 | 3 | uint8 | Protocol Version | 0x01 |
C9 | 4 | uint8 | LQI | 201/255 |
8201015A | 5 | uint32 | Serial ID of Sender | 0x201015A |
00 | 9 | uint8 | Logical Device ID of Receiver | 0x00 |
0391 | 10 | uint16 | Timestamp | Approx. 14.27 seconds |
00 | 12 | uint8 | Number of Relays | 0 |
0C2E | 13 | uint16 | Power Supply Voltage | 3118 mV |
00 | 15 | int8 | - | |
81 | 16 | uint8 | Digital Signals | DI1 L DI2 HDI3 H DI4 H(Periodic transmission) |
03 | 17 | uint8 | Digital Signal Mask | DI1 DI2 |
01 | 18 | uint8 | Converted Value of AI1 | 16 mV |
FF | 19 | uint8 | Converted Value of AI2 | Unused |
FF | 20 | uint8 | Converted Value of AI3 | Unused |
FF | 21 | uint8 | Converted Value of AI4 | Unused |
FF | 22 | uint8 | Correction Value of AIx | AI1 0x03 |
FB | uint8 | Checksum | 0xFB | |
char | Footer | \r | ||
char | Footer | \n |
Data Identification Conditions
The parent and relay apps can receive data from various types of child devices.
To confirm whether the output data is from the Extremely Simple! Standard App, refer to the following:
| # | Data | Item | Condition |
|---|---|---|---|
| 1 | uint8 | Command Number | Must be 0x81 |
| 3 | uint8 | Protocol Version | Must be 0x01 |
| 5 | uint32 | Serial ID of Sender | MSB must be 1 (i.e., 0x8???????) |
| - | - | Payload Size | Must be 23 bytes (between : and checksum) |
Parser Implementation Examples
- Python
- Arduino (C++)
0x01: Reception of Arbitrary Data
Data Format
| # | Data | Description | Notes |
|---|---|---|---|
char | Header | Only : | |
| 0 | uint8 | Logical Device ID of Sender | Parent 0x00, Child 0x01-0x64, Unset Child 0x78 |
| 1 | uint8 | Command Number | Only 0x01 |
| 2 | [uint8] | Arbitrary Data | Byte array of length \(N\) |
uint8 | Checksum | LRC8 | |
char | Footer | CR (0x0D/'\r') | |
char | Footer | LF (0x0A/'\n') |
This is the same as when the command number is
0x01 in the Format Mode (ASCII) of Serial Communication App - Simple Format.