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.

A problem about broadcast

Other Parts Discussed in Thread: Z-STACK, CC2530

In my PAN, I have 1 cordinator and 30 enddevices. I want to send message from the cordinator to all of the enddevices by broadcast . But I foud that there were just 24 enddevices which joined the network first could receiv the message from the cordinator.I have changed the NWK_MAX_DEVICE_LIST into 35 .I dont want to use the router. How can I do?

  • Thirty end devices for a single Coordinator? That Coordinator is going to be very busy. What version of ZigBee are you using? What profile?

    The GenericApp application uses the Home Automation settings which specify:

     MAX_CHILDREN = 20
     MAX_ROUTERS = 6
     MAX_DEPTH = 5

    If you're going allow 30 ED's to join the Coordinator, those are the numbers you'll have to change. NWK_MAX_DEVICE_LIST only allocates memory for potential children.

    Scott

  • The version of ZigBee I am using is ZStack-1.4.3-1.2.1 and the profile is  HOME_CONTROLS.             I changed the NWK_DEVICE_LIST into 35 in nwk_globals.h  and "byte CskipChldrn[MAX_NODE_DEPTH+1] = {20,20,20,20,20,0}"  into "byte CskipChldrn[MAX_NODE_DEPTH+1] = {35,35,35,35,35,0} "in nwk_globals.c .  I am sure that all  the 30 enddevices have joined the network beacause the coordinator can receive messages send by every enddevice. The problem is only 24 enddevics can receive broadcast message send by coordinator . I have tried sending broadcast message by groupaddress but the result is the same. I can not find MAX_CHILDREN and MAX_ROUTERS. Where can I find them? 

     Thank you very much

  • Take a look at the Z-Stack Developer's Guide (SWRA176). EVerything is spelled out in section 3.2.1

    Scott

  • HI,Scott

           I have changed the MAX_CHILDREN into 35,but it's no use.  I have no mind what shou I do. The develope kit I am using is CC2430EB. I think the document SWRA176 is about CC2480.

  • For some reason, the 2480 document and the one I intended have the same listed SWRA number. Look in the Documents folder of your Z-Stack installation and open the "Z-Stack Developer's Guide.pdf".

    Scott

  • I'm not sure if it helps coz I'm using ZStack 1.4.2-1.1.0, but there is also a max broadcast setting, which could be reached as you have many devices connected to teh coordinator.

    Just check in the files for word "broadcast", I'm sure you find what I mean.

     

    Have you ever tested the system using one coordinator and one router?

    Do you ALWAYS get only 24 replies? or does it vary?

  • The maximum number of devices you can support per coordinator or router is 32. We use a 32 bit variable to keep track of device addresses.

  • Su, you have the cskip settings setup incorrectly. In any case, this is something you probably shouldn't mess with unless you're prepared to break interoperability and the system you're designing is a closed system. I'm not sure why you need to support a max number of devices per router. You could easily add another router to the system to accomodate more devices. This is the premise behind the home controls stack profile...

  • hi,su

    I don't know if you have solved this problem.Can you help me?

    I use the Zigbee 2.4.0-1.4.0 and the CC2530 kit. Now I have the same qusetions.I have changed the NWK_MAX_DEVICE_LIST into 40 and 40 ED devices can access the cordinator,but only 16 ED devices can receiv the broadcast message. 

    Can you tell me the reason ?

    Thank you very much!

  • hi Double 0,

    You say when the maximum number of devices you can support per coordinator or router is 32 and there will be  a 32 bit variable to keep track of device addresses.

    Where is the variable in the code?