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.

CC2630: ZED cannot connect to new ZC

Part Number: CC2630
Other Parts Discussed in Thread: Z-STACK

Hi All,

I'm creating zigbee network using C:\ti\simplelink\zstack_home_1_02_02a_44539\Projects\zstack\HomeAutomation\SampleTemperatureSensor as ZED, and using ZNP+ZAP (znp_coordinator_pro_secure_linkkeyjoin.hex +  znp-bringup.zjs) for the coordinator.

I can successfully connect ZED to ZC. but if i turn off the ZC (let say ZC1), and turn on the new ZC (let say ZC2) the ZED cannot connect to ZC2, after sending the orphan notification, the ZED keep sending beacon request, but never connected to ZC2. if i turn off ZC2 and turn on ZC1, the ZED can connect to ZC1.

if I reload the zstack core from ZED, then i can connect to ZC2, as long as the ZC2 is the first coordinator that the ZED found

can you help me with this, i want the ZED automatically switch to the new coordinator if the old coordinator did not exist anymore.

ps : attached is the sniffer log, the issue happen on message number 582

thx for your help

Regards

Tonny S19-ZED connect to ZC.zip

  • Hi,

    This is intentional, Z-Stack end devices are supposed to remember the network information for the last network they were connected to and only reconnect to that network unless you perform a factory reset. You cannot have it "automatically" jump between networks, you must factory new reset the device if you wish for it to join a new network.

    You can perform a factory reset from the application with the following code:

    zstack_sysResetReq_t resetReq;  
    resetReq.newNwkState = true;
    // replace appEntity with whatever your entity name is
    Zstackapi_sysResetReq(appEntity, &resetReq);  

  • You can also disable NV_RESTORE and network information won't be kept after power cycle.