Research Article

LED Context Lighting System in Residential Areas

Table 7

Packet structure of sensor data.
(a) ā€‰

012~3456~9

STX (1 byte)Module ID (1 byte)Gateway ID (2 bytes)Module type (1 byte)Module SW version (1 byte)Sampling Time
(4 bytes)

0x02PIR: 0x00~0x09
Piezoelectric: 0x1E~0x27
Power: 0x28~0x3B
0x9999PIR: 0x01
Piezoelectric: 0x04
Power: 0x05
0x000x03E8

(b) ā€‰

10~1112~1314~1516~171819~2021

Data 0 (2 byte)Data 1 (2 byte)Data 2 (2 byte)Data 3 (2 bytes)Data 4 (1 byte)CRC (2 bytes)ETX (1 byte)

Data (PIR or piezoelectric)0x00 (null)0x00 (null)0x00 (null)Count0x0000 (null) 0x03
Data (power: instantaneous power )Data (power: cumulative power)