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.

Using GenericApp for CC2530 without keys



Hello,

I’m using ZStack-CC2530-2.5.1a with the GenericApp project on my hardware (no demoboard) which I configured as Coordinator and End Device.
I do not have a joystick or key on my board. Where do I have to call the binding functions, then, or is there even a possibility to make the network start automatically?
I tried to put the ZDP_EndDeviceBindReq() function to ZDO_STATE_CHANGE event in GenericApp_ProcessEvent(). But this does not seem to work. With my sniffer tool I only see frames to set up the network but no Hello World messages.

Has anyone ever used GenericApp without keys and could help me?

Thanks a lot in advance.

Sandra

  • Did you add code on the ZC that also makes a similar call to ZDP_EndDeviceBindReq() when a new device joins? Even when you get this working, what are you going to do when the ZC is 4 hops away from the ZR device that the ZED device joins and the ZC misses the device announce? Obviously, a more sophisticated method of "network commissiong" needs to be developed for your product. There is a ton of dicussion that you can search for on this topic.

     

  • Thank you very much for your hints. This was also the reason for why I could not receive any messages (even with one ZC and one ZED): I just called ZDP_EndDeviceBindReq() once and expected the binding to be successful without sending the message again. Now, repeatedly calling ZDP_EndDeviceBindReq() until binding is successful, I can send messages. And this is also what I will do when a new device joins.

    Thank you for your idea concerning a bigger network, too. But first of all I won't have to build such a big network.