I am trying to configure my Xbee sensor to send report at fixed interval time.
The method that I got from my sensor manufacturer:
Configure reporting (request)
Device battery report(configure reporting request)
Head: FA
Length: 10
Basic Command:3D
Target device short address: 9A A0
Target device ep:01
Cluster:01 00(Power Cluster)
Cmmand ID:06
Direction: 00
Attribute ID:21 00(power) Attr Data Type:20
Mini report time(s):05 00 (5s)
Max report time(s):3C 00 (60s)
Change record:00
Verfication:04
End:F5
Test Command: FA 10 3D 9A A0 01 01 00 06 00 21 00 20 05 00 3C 00 00 04 F5
Bind (request)
End:FA
Length:18
bind Basic Command:45
Target device short address:9A A0(This item is missing from the protocol document)
Original device MAC address:C1 C8 E7 0B 00 6F 0D 00
Original device ep:01
Cluster of Bind device:01 00(power)
Target device address type:03
Target device MAC address:2C B3 E7 0B 00 6F 0D 00
Target device ep:01
Verification:AE
End code:F5
Test Command:FA 18 45 9A A0 C1 C8 E7 0B 00 6F 0D 00 01 01 00 03 2C B3 E7 0B 00 6F 0D 00 01 AE F5
I can understand that the first one mean to send [command ID 0x06 - configure reporting] with the attribute packet [Direction,AttributeID,DataType,MinReportingInterval,MaxReportingInterval].
So I sent [0x10, 0x00, 0x06, 0x00, 0x21, 0x00, 0x20, 0x05, 0x00, 0x3C, 0x00, 0x00]
which means [frameControl,sequenceNumber,cmdID,(followed by the above attribute packet)]
then I would receive [0x18, 0x00, 0x07, 0x00] from the sensor which is the configure reporting response with a success status. But I don't know how to bind the sensor to the MAC address after that. Any help on this please?