/      日本語

Details of Output from Pal, Cue, and Aria Apps (Parent and Repeater App)

Details of the common output format for Pal, Cue, and Aria apps
Data received from child devices of Pal, Cue, and Aria apps are output according to a common format. This section details that format. For specific output examples of each app, see the app pages.

Overall

Data Format

#DataDescriptionNotes
charHeader: only
0uint32Serial ID of repeater80000000 if no repeater
4uint8LQI0-255
5uint16Sequence number
7uint32Serial ID of sender0x8???????
11uint8Logical device ID of sender
12uint8Sensor typeOnly 0x80
13uint8PAL board version and PAL board IDe.g. 0x81
14uint8Number of sensor data
15[uint8]List of sensor dataByte array of length (N)
15+(N)uint8Checksum 1CRC8 up to previous byte
uint8Checksum 2LRC8 up to Checksum 1
charFooterCR (0x0D/'\r')
charFooterLF (0x0A/'\n')

Example Output Data

:80000000A8001C82012B1E01808103113008020D0C1130010203E40000000101EC6E
#DataDescriptionValue
:charHeader:
800000000uint32Serial ID of repeaterNo repeater
A84uint8LQI168/255
001C5uint16Sequence number28
82012B1E7uint32Serial ID of sender0x2012B1E
0111uint8Logical device ID of sender0x01
8012uint8Sensor type-
8113uint8PAL board version and PAL board ID0x81
0314uint8Number of sensor data3
1130...010115[uint8]List of sensor dataByte array of length 17
EC15+17uint8Checksum 10xEC
6Euint8Checksum 20x6E
charFooter'\r'
charFooter'\n'

Sensor Data

Data Format

#DataDescriptionNotes
0uint8Info bitsData type and presence of extension byte
1uint8Data sourceType of sensor value
2uint8Extension byteAdditional info for sensor value
3uint8Data lengthLength of sensor value
4[uint8]DataSensor value

Example Output Data

113008020D0C
#DataDescriptionValue
110uint8Info bitsExtension byte present, uint16
301uint8Data sourceVoltage
082uint8Extension bytePower supply voltage
023uint8Data length2 bytes
0D0C4[uint8]Data3340 mV

Info Bits

Indicates the data type of the sensor value, presence of extension byte, and read error status.

bit76543210
FunctionERR--EXT-TYP:2TYP:1TYP:0

Each function indicates the following:

FunctionDescriptionValueMeaning
ERRRead error presence0Normal
1Error present
EXTExtension byte presence0No extension byte
1Extension byte present
TYPData type000uint8
001uint16
010uint32
011N/A
100int8
101int16
110int32
111[uint8]

Data Source

Indicates the type of sensor value.

ValueDescription
0x00Magnetic
0x01Temperature
0x02Humidity
0x03Illuminance
0x04Acceleration
0x05Event
0x30Voltage
0x34Packet properties

Extension Byte

Indicates additional information such as index for continuous data.

For data sources Magnetic / Temperature / Humidity / Illuminance / Packet Properties

None

For data source Acceleration

Indicates attributes of acceleration sample data.

bit76543210
FunctionSFQ:2SFQ:1SFQ:0SNM:4SNM:3SNM:2SNM:1SNM:0

Each function indicates the following:

FunctionDescriptionValueMeaning
SFQSampling frequency000 (`0x00SNM`)
001 (`0x20SNM`)
010 (`0x40SNM`)
011 (`0x60SNM`)
100 or higherUndefined
SNMSample number0-31Oldest first

For data source Event

Indicates cause of event occurrence.

ValueDescription
0x00Magnetic
0x01Temperature
0x02Humidity
0x03Illuminance
0x04Acceleration
0x31Digital input
0x35Timer

For data source Voltage

Indicates target.

ValueDescription
0x01ADC1
0x02ADC2
0x03ADC3
0x04ADC4
0x08Power supply

Data Length

Indicates the number of bytes of the following data.

Data

Represents the sensor value.

For data source Magnetic

Data type is uint8.

ValueDescription
0x00No magnet
0x01North pole approached
0x02South pole approached
0x80No magnet (periodic send)
0x81North pole nearby (periodic send)
0x82South pole nearby (periodic send)

For data source Temperature

Data type is int16.

Represents temperature in Celsius multiplied by 100.

For data source Humidity

Data type is uint16.

Represents relative humidity multiplied by 100.

For data source Illuminance

Data type is uint32.

Represents illuminance in lux.

For data source Acceleration

Three int16 values follow.

X, Y, Z axis values (mG) total 6 bytes.

byte012345
ContentX:15-8X:7-0Y:15-8Y:7-0Z:15-8Z:7-0

For data source Event

Four uint8 values follow.

The first data indicates the event content, the rest are unused.

byte0123
ContentUsedUnusedUnusedUnused
Extension byte for Magnetic
First valueDescription
0x00No magnet
0x01North pole nearby
0x02South pole nearby
Extension byte for Acceleration
First valueDescription
0x00Stationary (Move mode)
0x01Dice: 1
0x02Dice: 2
0x03Dice: 3
0x04Dice: 4
0x05Dice: 5
0x06Dice: 6
0x08Shake
0x10Move
Extension byte for Timer
First valueDescription
0x01Woken by timer

For data source Voltage

Data type is uint16.

Represents voltage in mV.

For data source Packet Properties

Three uint8 values follow.

byte012
DataPacket IDRoot cause of wake-upCondition of wake-up

Each data indicates the following:

DataValueDescription
Packet ID0No event, only ADC1 and power voltage
1-127No event, other data present
128Event present, only ADC1 and power voltage
129-255Event present, other data present
Root cause of wake-up0x00Magnetic
0x01Temperature
0x02Humidity
0x03Illuminance
0x04Acceleration
0x31Digital input
0x35Timer
Condition of wake-up0x00Event occurred
0x01Value changed
0x02Value exceeded threshold
0x03Value fell below threshold
0x04Value met range