/      日本語

Output from Serial Communication App (Parent and Repeater App)

Output format when receiving data from the serial communication app

Format Mode: Simple Format

Data Format

#DataDescriptionNotes
charHeaderOnly :
0uint8Logical device ID of senderParent 0x00, child 0x01-0x64, unassigned child 0x78
1uint8Command numberValue less than 0x80 specified by sender
2[uint8]Arbitrary dataByte array of length (N)
uint8ChecksumLRC8
charFooterCR (0x0D/'\r')
charFooterLF (0x0A/'\n')

Example of Output Data

:780100112233AABBCCDD13
#DataDescriptionValue
:charHeader:
780uint8Logical device ID of senderUnassigned child ID
011uint8Command number0x01
00112233AABBCCDD2[uint8]Arbitrary dataAs is
13uint8Checksum0x13
charFooter\r
charFooter\n

Conditions to Identify Data

The Parent and Repeater App can receive data from various types of child devices.

To verify whether the output data is from the serial communication app (format mode: simple format), refer to the following:

#DataItemCondition
0uint8Logical device ID of senderMust be less than or equal to 0x64 or equal to 0x78
1uint8Command numberMust be less than 0x80
--Payload sizeMust be between 3 and 82 bytes

Example Implementation of Parser

Format Mode: Extended Format

Data Format

#DataDescriptionNotes
charHeaderOnly :
0uint8Logical device ID of senderParent 0x00, child 0x01-0x64, unassigned child 0x78
1uint8Command numberOnly 0xA0
2uint8Response IDValue specified by sender
3uint32Extended address of senderValue with 0x8 added at the start of serial ID
7uint32Extended address of receiver0xFFFFFFFF when logical device ID is used
11uint8LQIRadio communication quality at reception
12uint16Length of following byte arrayNumber of bytes (M)
14[uint8]Arbitrary dataByte array of length (M)
uint8ChecksumLRC8
charFooterCR (0x0D/'\r')
charFooterLF (0x0A/'\n')

Example of Output Data

:78A0028201015AFFFFFFFFA8000700112233AABBCCC6
#DataDescriptionNotes
:charHeader:
780uint8Logical device ID of senderUnassigned child ID
A01uint8Command number0xA0
022uint8Response ID0x02
8201015A3uint32Extended address of sender0x201015A
FFFFFFFF7uint32Extended address of receiverLogical device ID specified
A811uint8LQI168/255
000712uint16Length of following byte array7 bytes
00112233AABBCC14[uint8]Arbitrary dataAs is
C6uint8Checksum0xC6
charFooter
charFooter

Conditions to Identify Data

The Parent and Repeater App can receive data from various types of child devices.

To verify whether the output data is from the serial communication app (format mode: extended format), refer to the following:

#DataItemCondition
0uint8Logical device ID of senderMust be less than or equal to 0x64 or equal to 0x78
1uint8Command numberMust be 0xA0
2uint8Response IDMust be less than 0x80
3uint32Extended address of senderMSB must be 1 (i.e., 0x8???????)
12uint16Length of following byte arrayMust be payload size - 14 bytes

Example Implementation of Parser