This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Binding questions

Other Parts Discussed in Thread: Z-STACK

Hi,

I have some questions related to binding. For starters: I'm using Z-Stack 2.0.0 with the sapi module (it's a modified simpleApp, in fact). I added a new command that can be sent between the simpleSensor and simple Collector. It is set as outgoing for the collector, and incoming for the sensor.

I modified the code, so the sensor binds for the reporting command at first. Then if the result is succesful I'm invoking the zb_BindDevice again with my incoming command and I wait for the result. When I'm debugging it I find the result successful, but when I try to send this command from the collector I get a no_bound_device result when sending a packet.

The original reporting works fine. These are the only nodes in the network.

Does it matter which device invokes the zb_BindDevice function?

Does the source device need to bind?

How can I get a list of devices (addresses) that have bound to a particular node (eg. list of bound sensors to a collector)? There's zb_AllowBindConfirm(uint16 source) but I dont know wether the bind was successful, since no status is returned.

  • each device that wants to acquire a destination address needs to use the zb_BindDevice. So if there are two devices, both sides need to call zb_BindDevice to be able to send data to each other.

    There is a zb_BindConfirm function that should be called...