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.

how do I get CC2530 rescan network without system reset

Other Parts Discussed in Thread: CC2530

hello all,

I am developing my zigbee  app based on Zstack  api with lack of very well understanding  zigbee under layer network .   Now I want my  cc2530 device(RD)  to do re-scan network   after a DEV_END_DEVICE_UNAUTH event timeout  other than a system reset .   Is it possible that  I get this work via Zstack api without too much under layer work  involved ?  Please help , thanks !

  • Hello Dongpeng zhang,

    Please see attached ZDApp.c and ZDApp.h (From Z-Stack-Home-1.2.0) files with modifications included under the compile option JOIN_WITHOUT_RESET. These modification will allow a device to start the join process again after the DEV_END_DEVICE_UNAUTH event timeout without doing a reset.

    You can use these files or use the code within the defines JOIN_WITHOUT_RESET for your implementation if you are using a different stack version. 

    Let me know if you have any question.

    Regards,

    0211.ZDApp.c

    0753.ZDApp.h

     

  • I tried  the method in the example code you provided ,   So far it  seems to work very well ,   thank you very much !

  • oh, dear Suyash ,    I am sorry to tell you  my code runs in a strange manner .

    although  my app now can join a network  after  DEV_END_DEVICE_UNAUTH  timeout without a system reset ,   however, after joined network,  it cannot  send/receive  AF data to/from my ZC anymore .  and  this issue  could be fixed  by  manually  reset or re-power on. 

    the modification I did for my code is only   adding the part of  JOIN_WITHOUT_RESET code you provided  into my ZDApp.c   at  the  ZDO_DEVICE_RESET event part .   I am using  ZStack-CC2530-2.5.1a  ,   do I need  more modification  for my app on   this version of Zstack , or  do you have any idea  to fix this issue . thank  you !

  • Well, I  have done a more carefully test  , I observe that  indeed  my ZR device can receive AF message from ZC,     but ZC cannot receive  from the ZR .