Reputation: 518
From the post ( link shown below )
zigbee motion detect sensor usage ,
Currently I have a Zigbee IAC ZONE (CIE) device which is a coordinator and a IAS ZONE device which is a motion sensor. I dont have a IAS WD device yet. My thinking is that my motion sensor needs to be enrolled with my IAS ZONE - CIE device. After this, my CIE device should response to the IAS ZONE device so that the connection is established.
Compare to the temp / humidity sensor, it uses the standard ZCLReport as a callback function to process the data. How about the IAS Zone device ?
What is the callback function I should implement in my IAS ZONE-CIE cluster?
How can I do the "enrollment" ? I thought it is ZCLRead function but my testing did not work.
How can IAS CIE device response ? ( My assumption is ZCLWrite function)
There might be different implementations on each zigbee stack. If any stack information related to this topic is available ( maybe TI-Z stack ?), please let me know how it works on this topic.
Thanks
Upvotes: 1
Views: 2247
Reputation: 4643
To do this, you may need the following steps.
Implement an Enrollment() function which you need to check the API manual about how your stack provide to do this.
Implement the EnrollRequestResp() within the Enrollment function. This makes the enrollment complete.
Implement the ChangeNotification() function. The API you need to go through your API manual.
Upvotes: 1