Hello:
I'm using zstack 2.5.0 for cc2530 and I have a problem with the binding process that I can't find in the forums.
I have other processor generate a periodical interrupt for cc2530 that is running zstack as an end device. My cc2530 uses this interrupt as a key or pushbutton.
I use the HOLD_AUTO_START option so that at power up my network isn't started.
I use the devStates_t (ZDApp.h) variable to control network status within xxxx_HandleKeys( byte shift, byte keys ) function.
On the first interrupt my end device joins the network - this is successful as can be seen from the packet sniffer. On the second interrupt I bind my nodes and on the third interrupt I start sending messages to the endpoint. From then on all interrupts send messages.
My problem is how I can detect if the node is bind.
Is there any variable like devStates_t for the bind process?
Note that my problem is only within the node's code and not related with receiving ack from the other nodes. I just need to know if my third interrupt sends a message or tries to bind again. I need to know if a global bind status variable exists or if I have to create one myself.
tks for your atention.
Pedro A.