/      日本語

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

#DataDescriptionRemarks
charHeader: only
0uint8Source Logical Device ID
1uint8Command NumberOnly 0x81
2uint8Packet IdentifierOnly 0x0F
3uint8Protocol VersionOnly 0x01
4uint8LQI0-255
5uint32Source Serial ID0x8???????
9uint8Destination Logical Device ID
10uint16Timestamp64 counts per second, MSB is internal flag
12uint8Relay Count
13uint16Digital SignalCorresponds to Ix from LSB, 0 is High
15uint16Digital Signal MaskCorresponds to Ix from LSB, 1 means enabled
17uint16Digital Signal FlagCorresponds to Ix from LSB, 1 means interrupt triggered
19uint8UnusedInternal management
uint8ChecksumLRC8
charFooterCR (0x0D/\r)
charFooterLF (0x0A/\n)

Example of Output Data

:01810F01DB8630000200645F000040004F00400049
#DataDescriptionValue
:charHeader:
010uint8Source Logical Device ID0x78
811uint8Command Number0x81
0F2uint8Packet Identifier0x15
013uint8Protocol Version0x01
DB4uint8LQI219/255
863000025uint32Source Serial ID0x6300002
009uint8Destination Logical Device ID0x00
645F10uint16TimestampAbout 401 seconds
0012uint8Relay Count0
004013uint16Digital SignalI7 is Low
004F15uint16Digital Signal MaskI7, I1-I4 are enabled
004017uint16Digital Signal FlagI7 has changed due to interrupt
0019uint8Unused
49uint8Checksum0x49
charFooter\r
charFooter\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.

#DataItemCondition
1uint8Command NumberMust be 0x81
3uint8Protocol VersionMust be 0x02
5uint32Source Serial IDMSB must be 1 (0x8???????)
--Payload SizeMust be 20 bytes (between : and checksum)

Example Parser Implementations