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.

AssociatedDevList not full, beacons show no capacity

Other Parts Discussed in Thread: Z-STACK, CC2530, CC2538, CC2531, CC2531EMK

Hi everyone. Im using ZStack 1.2.1 HA on a CC2530 which acts as the coordinator of the network.

I made a network consisting of a coordinator, 20 routers, and 5 end devices. If I check the AssociatedDevList, I only see 16 devices. I assume 9 of the devices have joined the network through some routers. (Is that assumption correct?). Now I power off all the routers and try to join a new one to the network. The beacons sent by the coordinator say it has no more capacity (neither routers nor end devices)., and it cant join the network. I cant understand why it says it has no more capacity when there is still place to 4 more devices in the AssociatedDevList.

Thanks!

  • Do you check how many items in AssociatedDevList when coordinator sends beacon which shows no more capacity?
  • Yes, there are only 16 items. The other 4 are filled with FF's
  • I suggest you to test this on Z-Stack Home 1.2.2a and see if you still see the same issue.
  • Hi Yikai sir,

    I have Made a coordinator that is having a Precofigured PAN and Channel Id I have Put the NV_RESTORE Flag as well just for making the process easy so that device may not be needed to added again and again but I am not getting any device or network address in (AssociatedDevList) 

    I want to access the device Routing Table and want to store the Value in Local variable so that it may be used for My application Purpose,

    May i know why AssociatedDevList is not giving any device as i am getting the device announcement on  Coordinator each time I am restarting the device but every time  I am debugging the code I am getting No value in AssociatedDevList array

    How can i get these routing table Value ?? if  I am not getting these value from AssociatedDevList

    from where Else I will get these values ??

    thanks regards

    Manish

  • Are you sure that there is device joins your coordinator when you check association list?
  • Hello Yikai Sir,

    Thanks for your reply.

    Yes I am not getting any device List on AssociatedDevList. But I am getting DeviceAnnc each time any device Boots up. and those device's Nwk Address are not changing As I have make them static, By using NV_RESTORE.

    But still I think some where Routing table is their , and It has to be AssociateddevList. but I dont know the reason why I am not getting the Data

    Please do let me know ...

    Thanks

    manish

  • I suggest you to use Ubiqua Packet Analyzer to check and make sure the device joins coordinator correctly. By the way, do you have ZC in the network when you do this?
  • Hello Yikai Sir,

    Thanks for the Reply.

    Yes I am doing the debugging on Coordinator node, I am getting the deviceAnnce on My Coordinator for two Nodes. I am Able to send Data Command and Control Command on my both Nodes,

    But in Debugging I am unable to get their NwkAddress in AssociatedDevList array.

    So that i why I am asking this question to you , Is their any Issue if we use NV_RESTORE, for Coordinator and Routers ??

    Thanks

    Manish

     

  • I also use NV_RESTORE in my application and I don't see any problem for both Coordinator and Router.
  • Hi Yikai Sir,

    I have tried Whole Day today, But I am unable to get any Data in AssociatedDevList Array. I am programming My Controller again and again for Debugging and on start I restart router I am getting Device Annce on my Coordinator and in  Debugging I am getting Data in My Device_Annce response now I am sending Toggle Command to remote router the device is Operating and I am getting the device cmd Success responce.

    but when I am accessing the AssiciateddevList Array I am not getting Entry of Recently DeviceAnnce Node in array all i am getting is 0xFF on for All 20 entries in AssociatedDevList Array.

    Now please tell me what to do, As you said earlier Check for ubiqua but if the node is not added I will not be able to control the node, Just for this purpose I have tried the toggle command on router from Coordinator , I am able to control this but I am not able to get any sort of Data in My AssociatedDevList array please guide me why it is not working and is there any other variable for the same means can i get routing data from any other source in ZStack?? Any Variable or functiion which may provide me with routing Data.

    thanks and regards

    Manish

  • If you have router in same Zigbee network, ZED might join to router not ZC and you won't get it shown on association list. If you test with SampleLight (ZC) and SampleSwitch (ZED) in Z-Stack home, can you see SampleSwitch on association list of SampleLight?
  • Hi yikai sir,

    Iam using only two devices coordinator and router on coordinator I am debugging but not getting any thing regarding router not a single information I am getting only 0xFF

  • Which Z-Stack version do you use?
  • Hi Yikai Sir,

    I am using Z-Stack Home 1.2.2.42930 version, Please do let me know What to do Next??

    thanks and regards

    manish

  • If you use ZED instead ZR, does it show on association list.
  • Hi Yakai Sir,

    I have tried that also but not getting any thing on Associated device List ..
    is there any other variable or array to fetch that may give me routing data.Or else what should i try to get the data for routing table

    thanks and regards
    Manish
  • Do you try original SampleLight and SampleSwitch examples and see the same issue?
  • @Manish, I test original SampleLight (ZC) and SampleSwitch (ZR or ZED) examples in Z-Stack Home 1.2.2a and see short address of SampleSwitch is added to AssociatedDevList.
  • Hi Yikai Sir,

    Greetings for the day !!!

    Sir we have developed our custom Zigbee Hardware, And I have tested it with GE Dimmer Bulb, Case of testing was

    My Cutom Zigbee (Hardware Board that we have designed) as Co-Ordinator and GE Dimmer as End Device.

    For Some distance it is working fine but after some distance as I can See, My GE Dimmer Bulb is Continue to Operate from My Custom Zigbee working as Coordinator but I am not getting the Acknowledge command from GE . But GE is Continue to operate Dim Up and Down along with On-Off.

    I thought it is because Command sent Data rate is 40kbps and Ack is 9.6 kbps.

    So in order to follow that I have tested my Code (Coordinator ) on development Board of Zigbee and I am getting the response now.

    So, My question is , Is it a hardware issue?? or Its an Antenna design issue or its a software Issue

    It Might not be a Software Issue , because I have test the Code on development Board and it is working.

    So could you please let me know what may be the cause of not getting response .


    thanks and regards
    Manish
  • Do you use Ubiqua Packet Analyzer to check this issue?
  • Hi Yikai Sir,

    Thanks for your quick reply ,

    Please Let me know the test condition and use cases for ubiqua to test???
  • I suggest you to do sniffer when the problem happens so we can know what exactly happens.
  • Hi Yikai Sir,

    I have used the Ti Sniffer and I am not getting the acknowledge frame thats why asking

    thanks and regards
    Manish
  • Can you attach sniffer log?
  • Hi Yikai Sir,

    I have added my Node (Custom Hardware with SmarThing HUB) and My Hardware is running A Sample Light Application,Distance between them is almost 10 feet.

    But some times I am Unable to get Acknowledgement on Smarthings.

    Please Find the Attachment

    Thanks and Regards

    Manish

    myNode.zip

  • It seems that SmarThings HUB doesn't do MAC ACK sometimes so you should contact SmarThings for help.
  • Hi Yikai Sir,

    Thanks for your reply.
    The same issue I am facing When I am making My Custom Hardware as Coordinator and GE SmartLight as End Device in that case Also I am not getting Acknowledgement Some times.

    Means When I put MY GE smart Light at some Distance device Keeps on Controlling but I am not getting Acknowledgement neither on sniffer nor on My Coordinator.

    Is there any Parameter that we can Set in My Coordinator Code. So that we can Have Acknowledge ment??

    thanks And regards
    Manish
  • If it is 3rd party device or coordinator doesn't respond MAC ACK, I don't think you can do anything to solve it.
  • Hi Yikai Sir,

    But on the Other hand When we make Smart Things as Coordinator and GE Smart Light as end Device in that Case Smart Things Have got all response Corresponding to each Command.

    Is there Any thing in the Code we can Modify to check where is the Issue as If GE is not Sending the response , It will not send the response to Smart Things Also,

    That is My Concern is there Software or Hardware Issue because It is genuine Issue I am facing, It I will not get the Acknowledgement , I can not update the device status on My Application.

    Something has to be there that I can Try??

    thanks and regards
    Manish
  • Do you use your custom CC2530 board?
  • Hi Yikai Sir,

    Thanks for reply I am using CC2538 development Board.

    thanks and Regards
    manish
  • Is it TI CC2538DK or your own custom design?
  • Hi Yikai Sir,

    I have CC2538 Ti Development Board as well, Along with it we have Our Own Custom Hardware base on CC2538 Chip, Which we are going to planned on Our Product, After testing our hardware Performance.

    So I have Sent you query regarding my Custom Hardware That We have Designed,

    Thanks And regards
    Manish
  • If you use CC2538 Ti Development Board to do the same test instead of your CC2538 custom board, do you see similar issue?
  • Hi Yikai Sir,

    No in that case I am Getting Acknowledgement for each and Every Command and update on Smart things UI is almost Fast as Compared to Our Custom Hardware.

    I am burning the Same code on Both Custom Hardware and TI CC2538 devKit Board I find out that there is no software Issue, But how some Acknowledgement are Coming and Some are not.

    this i can not understand

    thanks and regards
    Manish
  • If you don't see the same issue on CC2538 Ti Development Board, it should be HW issue. Since you use TI Packet Sniffer to do sniff to the issue, I cannot get RSSI information in your test. I suggest you to use Ubiqua Packet Analyzer to do the sniff because it would provide RSSI information.
  • Hi Yikai Sir,

    I am testing Mesh Networking My Scenario is 

    Coordinator, Router, End Device

    My Coordinator is static at Point now I am Adding End Device to router, I am getting I have Sent Join From Router and Got Match_Desc_Res on Router each time I am restarting the End Device I am getting the Device Annc on Both Coordinator and Router But When I am Trying to Control the Device I am not able to control the End Device?

    Could You please explain End Device Only get Operated from Coordinator or Direct Joined Devices or they can be controlled in My Scenerio

    As Coordinator ==========Router ========End Device.

    thanks and regards

    Manish 

  • Do you use Ubiqua Packet Analyzer to check over the air messages?
  • Hello Yikai Sir,

    Thanks For your reply.

    I am not using it as it is Paid and I have used the Trial version. Right Now I am testing networking. with Above Scenerio.Is there any thing else I can try to find out what Exactely happening.

    I am using
    zcl_SendCommand( SAMPLESW_ENDPOINT, &zclSampleSw_DstAddr, clusterId,
    dataBuffer[COMMAND_ID], TRUE, ZCL_FRAME_CLIENT_SERVER_DIR, false, 0, 0, cmdLen, cmdBuf );

    Do i need to set any parameter for Routing in RF data send Command??
    because I have tried this thing on Base Zstack where we used AF_DataRequest() in that we need to send Transmission Option. to DISC_ROUTE_NWK but is there anything like that we need to set?

    or this API zcl_SendCommand automatically send the Routing Command to destination Node ??

    thanks and regards
    Manish
  • There is no need to set any parameter for routing when you use zcl_SendCommand. Can you specify what's in your zclSampleSw_DstAddr?
  • Hi Yikai Sir,

    zclSampleSw_DstAddr

    zclSampleSw_DstAddr.addrMode = afAddr16Bit;
    zclSampleSw_DstAddr.addr.shortAddr = BUILD_UINT16(dataBuffer[4], dataBuffer[3]);
    zclSampleSw_DstAddr.endPoint = dataBuffer[5];

    destination Node Address and destination endpoint

    thanks and regards
    manish
  • Are you sure that zclSampleSw_DstAddr.addr.shortAddr and zclSampleSw_DstAddr.endPoint are correct? I need sniffer log to verify this. If you cannot use Ubiqua Packet Analyzer, you can try to use ZBOSS and wireshark as Zigbee sniffer.
  • Hi Yikai Sir,

    I have downloaded the ZBOSS, Wire Shark but I am Unable to run this on My Computer

    How to Give the Wire shark Path on ZBOSS and another thing is ZBOSS is not detecting CC2531 dongle is there any thing Setting i need to give or any Document on getting started

    As I am unable to make it run on My PC please let me Know

    thanks 

    manish

  • Do you download zboss_sniffer.hex to your CC2531EMK?
  • Hi Yikai Sir,

    I am sending you the Log of Add and Command send to my END DEVICE from Coordinator That is not Responding, Packet Sniffer Log.

    PFA and Let me know Why Routing is not working.

    thanks and regards

    Manish 

  • Hi Yikai Sir,

    I am sending you the Log of Add and Command send to my END DEVICE from Coordinator That is not Responding, Packet Sniffer Log.

    PFA and Let me know Why Routing is not working.

    network_log.psd

    thanks and regards

    Manish 

  • Can you specify which packet number should I check?
  • Hi Yikai Sir,

    0x9725 is the End Device nwkAddress and another one is Router to which I joined 9725,
    but sir Why Routing is not working becuase I am getting Device_Annc on both the Router and Coordinator
    but not able to Control it when I am putting it Away, But from far place Also I am getting DeviceAnnce but not able to control it

    thanks and regards
    manish
  • There are 1250 packets in your psd file so can you specify which packets you send out the command to your ZED and see the problem?
  • By the way, your ZED seems keep rejoin Zigbee network which shows that your Zigbee network is not stable. Can you specify what HW of your ZED and ZR use?