Hello to all,
I'm working on a project based on sending data collected from a sensor network to a Zigbee Coordinator: the sensors are End Devices and must be tied to a Coordinator to make this save the data recorded by the sensors. The example I'm basing myself on is that of multi-sensor.
But I don't want to use the command line interface but I want to build a Coordinator that presents a "temperature Measurement" client-side cluster and that can bind with the single sensor and then enable reporting of the MeasuredValue attribute.
My problem is that the binding between the Coordinator and the sensor does not happen: I briefly explain what I do.
The Coordinator and the sensor are connected to the same network; after that, the Coordinator sends the request for Match Descriptor and I find the short address and the endpoint of the sensor. After that I make an Extended Address request and get the device address. I already have both the eee address and the coordinator endpoint. At this point the Bind request starts: after sending the request, I see that the associated callback is never called. Am I wrong in interpreting the data? The struct zb_zdo_bind_req_param_t is filled like this: everything that is part of the destination is filled with sensor data, while everything concerning the source is filled with the data of the Coordinator. Am I doing something wrong? I'm sending the bind_req from the Coordinator firmware and not from the sensor. I also attach the part of the code written by me.
Best regards,
Raffaela