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.

z-stack end device not connecting with the coordinator (Netvox)

Other Parts Discussed in Thread: Z-STACK, CC2530

hi,

i am using CC2530DK to develop a small light switch based on the z-stack for home automation purpose.

i am using a coordinator from Netvox which works with all the end devices properly.

i tried to build a end device on the CC2530 and try to associate with the coordinator. the association happens properly. after association it restarts. 

i have enabled the following 

-DSECURE=1

-DNV_INIT
-DNV_RESTORE

and the coordinator is using the standard network key.

after association the coordinator sends transport key and the end device doesn't respond to it. 

end device keeps sending data request and restarts after some time. 

restart happens at this piece of code.

if ( ZG_SECURE_ENABLED && ( ZDApp_RestoreNwkKey() == false ) )
{
// wait for auth from trust center!!
devState = DEV_END_DEVICE_UNAUTH;

// Start the reset timer for MAX UNAUTH time
ZDApp_ResetTimerStart( 10000 );//MAX_DEVICE_UNAUTH_TIMEOUT );
}

is there any reason why this happens?

ti sniffer file - 7532.device association.psd

one more thing what is observed is that i monitored through Peryton and saw that after the 

why is the physical address changing. 

actually if we observe the other end devices after transport key they resend the device announce. why is that not happening.

pls help us to resolve the issues as we are targeting to complete the R&D and go to mass production asap.

regards,

Pradeep.

  • Hi pradeep,

    Are you sure that end_device and coordinator use the same Pre-config Key initialization?

    Launix.

  • Hi Pradeep,

    Try to set "uint8 zgPreConfigKeys = FALSE" and "uint8 zgUseDefaultTCLK = FALSE" in ZGlobals.c to have the test again.


  • Yes, the end_device and the coordinator use the same Pre-config key initialization

  • hi YiKai,

    i tried to set "uint8 zgPreConfigKeys = FALSE" and "uint8 zgUseDefaultTCLK = FALSE" in ZGlobals.c and tested, it behave in the same way.

  • after commenting this line "//if ( keyItems.frameCounter > 0 )" in ZDApp_RestoreNwkKey it started working.

    is this the right way to do, does it cause any misbehavior. can any one explain me why this was a issue.

    regards,

    Pradeep. 

  • Hi Pradeep,

    This means that ZED and ZC have frame count mismatch in packet communication. TI has a problem handling it in ZDApp_RestoreNwkKey. According to TI FAE, you are right to comment out "if ( keyItems.frameCounter > 0 )" to fix the problem.

  • HI everyboady

    i am buliding a 100 routers network with CC2530.and now i also come across this question ,sometimes the router can not join the coordinator,and i use the preconfig keys on security

    and i also comment out "if ( keyItems.frameCounter > 0 ).but it can not work,because the  key index or frame counter is wrong between coordinator and the joiner.i must reset the coordinator and the joiner .it can join the network successfully

    do anybody have the methods to resovle this quetions.i am crazy with it .my custom will come these days.

  • Hi Zhong,

    Do you want all of the 100 routers join to coordinatro? If yes, it is not reasonable. The default router number that can join coordinator is 20 and is defined by NWK_MAX_ROUTERS in nwk_global.h. Even you want to increase this number, it can not reach 100. The suggestion is to use mesh network, in which you can join 10 routers under coordinator and then joins other 90 routers under those 10.

  • yes,i run the PRO it is the mesh network 

    and now i find that when the router number is much .the join process is very hard.maybe some minutes,maybe forever can not join the network

    and i guess that ,the message number is very much over the air.and the key transport proecess can not finish when a new router join the network,or the frame counter is wrong between coordinator with the new joiner.

    and maybe the 51 core is not suitable for large network. maybe the M3 core is better in this situation. but i just guess.


  • How to set custom PAN ID from coordinator side

    I have tried to set the PAN ID through Z tools  ( for ex - 525 )

    but I am not able to get whether it is set or not as Data when I am viewing 

    through Z tools via ZB_GET_DEVICE_INFO it is not showing me the value which I have set in the above step

    I want to write custom PAN iD 

    and I wish to connect the end devices with the custom PAN ID ?

    IS it Possible to do this ?

  • How to set custom PAN ID from coordinator side

    I have tried to set the PAN ID through Z tools ( for ex - 525 )

    but I am not able to get whether it is set or not as Data when I am viewing

    through Z tools via ZB_GET_DEVICE_INFO it is not showing me the value which I have set in the above step

    I want to write custom PAN iD

    and I wish to connect the end devices with the custom PAN ID ?

    IS it Possible to do this ?
  • You can use MT command UTIL_SET_PANID to store a PanId value into Non-Volatile memory to be used the next time the target device resets.
  • Hi Yaki
    Thanks for your reply
    I have done it

    Now when I have tried to see the value ( whatever I have set ) is not matching
    8 bytes are coming after executing "ZB_GET_DEVICE_INFO "
    (0x94, 0xEE, 0x09, 0x8D, 0x1D, 0x00, 0x00, 0xE7 )

    I am unable to detect the my PAN id which I have set using "setPanID" from Z tool?
  • sir,

    can u tell me how u r getting this diagram. which kit u r using as CC2530 , suggest me i will buy
  • After you set PANID, do you reset device?
  • Hi Amudha,
    Don't understand your question well. Can you elaborate?
  • Yeah it is working, I am able to view the set value ( for the PAN id in coordinator )

    No if i set same pan ID at my end device does that mean that NOW afteronwards the end device will only be connected to that particular coordinator ( of which I have set PAN ID manually via Z tools )

    and IF not How to do this
    like End device should only be connected to a particular coordinator ?
  • If you set the same PANID to end device, it should only be connected to that particular coordinator with the same PANID.
  • Is there any problem with the PAN ID set Utility because
    I set it to some value Once again and did RESET and viewing using "ZB_GET_DEVICE_INFO"

    Now it is not giving the response for the PAN ID which i have set currently instead it is showing PREVIOUS SET PAN ID only

    Is there any limitation to set PAN ID? and if no why It is not showing when I again set a new value for PAN ID

    However I have also checked using OSAL NV READ utility the same value ( Set pan id;s value ) is returning
    then what is the problem with the command ZB_GET_DEVICE_INFO?
  • I don't see there would be PANID information in return of ZB_GET_DEVICE_INFO. Why do you think it would contain PANID information?
  • Beacuse there is option to select pan id in zb_get_deviceinfo

    And also in the coordinator only it is working
    In the end device side setting pan id is not happening

    Now i have two questions
    1. Can we change pan id of coordinator while it is connected to node devices

    2. Can i do the above mechanism in node/end device also?(while it is in established network )
  • You shouldn't change pan id of coordinator while it is connected to node devices. Why do you want to do this?
  • Sir,
    he has given a diagram initially how he is getting that as an output . that is the question i asked sir.
  • That's generated by other sniffer tool which is a product of Peryton. You can refer to www.perytons.com/.../
  • Ok i won't change the coordinator pan id

    But can end device's pan id be changed while it is connected to coordinator

    As what i understood i am unable to set pan id of end device (even when coordinator is powered off

    Please trll me that can i change the end d3Vic pan id of end device  so that during netwoek it can be connected to another coordinator ?

  • If you enable NV_RESTORE on your end device and need it to join another coordinator, you have to do factory reset and power recycle the device.
  • what exactly Power recycle,

    and IF I disable NV Store
    then can it be able to connect to another coordinator ( or available Coordinator )?

    As my end device is not connecting to OTHER coordinator ( It is only connecting once FLASH is erased and it is
    reprogrammed, then whatever be the coordinator is Powered ON during that time,
    the end device is connecting to that Coordinator
    only )

    I want to connect my end device to any available
    coordinator ( present/available )

  • Power recycle means turn off and turn on power to device. If you disableMV_RESTORE, a device can join another Zigbee network after power recycle.