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.

coordinator forms Zigbee network but end device not joining

Other Parts Discussed in Thread: CC2530

Hi,

I used cc2530 SOC and created a coordinator forming zigbee network using TI sample project of Door lock controller from HA 1.2 profile.

I have one third party Yale zigbee lock which is not able to join my zigbee network .

I captured the traffic through sniffer in which it can be seen that network forms ,coordinator also sends ZDP_MgmtPermitJoinReq , then we try to pair end device with coordinator it also send beacon but not joins.

This is what it show in sniffer:

How we can proceed to  make to join our network.

Thankful if any guidance or help can be provided.

 

  • Try to set the destination short address of ZDP_MgmtPermitJoinReq to 0x0000.

  • Hi Yikai,

    Thanks for your response.

    I have one doubt like coordinator has address of 0x0000 ,so why coordinator should feed it's own address in permit join request, shouldn't it  be broadcast address (0xffff) so that all device receive and joins.

    But I tried with setting 0x0000 also as destination address but then also it didn't work out and joining not happened.

    How should I debug it or what else can be tried. 

  • Do you use sniffer to check if your coordinator enable permit join? By the way, you can also try API .NLME_PermitJoiningRequest

  • Hi Sukul,

    Can you try to associate one of your own device? Use an example provided by TI, to associate an End_device to your coordinator.

    - Sometimes, devices with different Stack Profile won't try to associate to a network. 

    - Take care not to have other coordinator on other channels.

    Best regards, Launix

  • Hi ,

    I took two cc2530 SOC build PCB's and  flashed TI sample project of door lock controller (coordinator) in one and Door Lock(as end device) in other with ZIgbee Pro as stack profile.

    I have disabled HOLD_AUTO_START option as i want devices to start directly and not wait external event like switch as  those are not present.

    The coordinator form the network, but end device was not joining and keep searching network as in this image:

    I tried to print device status in ZDO_STATE_CHANGE case for  end device in debug mode ,it is showing DEV_INIT(initialised but not connected ) always ,not going further.

    Also I tried with NLME_Permit_join request , but then also same result as shown in image.

    Thanks and Regards

    Sukul

  • Hi,

    How can I proceed for associating devices to my coordinator or what else can be tried for debugging the issue.

    Right now I tried enabled joining always on coordinator with this code snippet  which was also suggested in  TI FAQ's but with this also I was not able to get the end device joined.

    zAddrType_t dstAddr;
     ...........
    
     // enable permit joining on all routers
     dstAddr.addrMode = AddrBroadcast;
     dstAddr.addr.shortAddr = 0xffff;        
    NLME_PermitJoiningRequest(0xff) ZDP_MgmtPermitJoinReq(&dstAddr, 0xFF, 1, FALSE);

    Thankful if any guidance or help can be provided .
  • Hi,

    As I have mentioned in earlier post that I flashed sample door lock code as end device in cc2530 and form coordinator with door lock controller code but end device was not able to join.

    While debugging in sample door lock code as end device I found that in ZDApp_ProcessOSALMsg() function :

    case ZDO_NWK_DISC_CNF:
    if (devState != DEV_NWK_DISC)
    break;

    if ( ZG_BUILD_JOINING_TYPE && ZG_DEVICE_JOINING_TYPE )
    {
    // Process the network discovery scan results and choose a parent
    // device to join/rejoin itself
    networkDesc_t *pChosenNwk;
    if ( ( (pChosenNwk = ZDApp_NwkDescListProcessing()) != NULL ) && (zdoDiscCounter > NUM_DISC_ATTEMPTS) )
    {

    ZDApp_NwkDescListProcessing() function is returning NULL  and my devState remains  DEV_NWK_DISC only

    and so it might keep searching or continue for discovering the network.

    But as I can see in sniffer my coordinator has form network on channel 11 and it also send beacon reply to end devicewhich also scanned channel 11 then why end device is not detecting this network and going to join state.

    Can someone help me regarding the problem I am facing.

    Regards,

    Sukul

  • Hi Sukul,

    It looks like your coordinator is open for device association now but your device has problem to join. I suggest you to check if you erase the flash of you device when you download the FW to your device. Or, you can try disable NV_INIT and NV_RESTORE on your device and test again.

  • Hi,

    My coordinator is now detecting and end device are able to join and associate.

    Thankful for the time and help provided.

  • Hi Sukul,

    Would you please share how you fix the problem? It might help others who have the same issue in this forum.

  • Hi ,

    Sorry as got late in responding.

    As shared in earlier posts that my coordinator was able to form network , but my end devices was not able to detect the network but as we brought the devices very much close to coordinator then they were able to identify and join it so it was the mainly problem related to Tx power of zigbee coordinator and we tried to increase the Tx power with Tx Register referring to datasheet of cc2530

    Regards

    Sukul

  • Hi Sukul,

    Thanks for sharing.

  • Hi Sukul,
    Can you please let us know how you managed to fix the problem. We are experiencing the same problem and have not been able to resolve it.
    Thanks,
    Reshmi
  • Hi Reshmi,

    Sukul said he increased TX power to fix this problem.