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.

max number of routers in a zigbee network

Other Parts Discussed in Thread: CC2431, Z-STACK

Hi

I use cc2431 and ZStack1-4-3 location example

first I flashed a dozen routers as blindnode, I turned up the routers one by one but always only 6 could join

secondly I flashed routers as refnodes, this time all of them could join

Why does this happen and how to do, to have more than blindnodes?

  • You've programmed Routers as the Blind Nodes? I'm pretty light on locationing experience, but that seems odd to me.

    The issue you're encountering is associated with the network profile settings for locationing:  MAX_CHILDREN=20, MAX_ROUTERS=6 and MAX_DEPTH=5

    So, the Coordinator for example, can have 6 Routers and 14 End Devices associated with it. This applies for every other ROuter in the network until you reach a depth of 5. AT that point, any device associating with that Router will be an End Device

  • Sorry can you tell me where are those options MAX_CHILDREN=20, MAX_ROUTERS=6 and MAX_DEPTH=5? is it possible to modify?

    Ok but why does this happen for blindnodes, 6 routers max, and not refnode, more than 14 can join, they use both same config at compilation, both routers.

    I think it comes from I initialize all the routers very close to the coord so they directly link to him , if they joined via another router I could have more routers

  • Look in swra176, the Z-Stack Developer's Guide section 3.2.1. Make sure that you follow the rules for legal values when changing them in nwk_globals.h

    By "close to the Coord", you mean, "within radio range". If you turn on 7 Routers within range of the Coord, no more than 6 will associate to the Coord. At least 1 Router will associate to another Router.

    You can see this easily if you use a tool like Daintree's SNA (and a sniffer board).

  • >By "close to the Coord", you mean, "within radio range". If you turn on 7 Routers within range of the Coord, no more than 6 will associate >to the Coord. At least 1 Router will associate to another Router.

    yes with refnodes, 1st router takes addr 1, 2nd 143E, 3rd 287B, 4th 3XXX, 5th 5075, 6th 6532 and 7th took 143F meaning he associated with 143E

    but with blindnodes the 7th just can't join, his Led doesn't turn up

  • We've previously discussed changing the network parameters. Understand that changing those would, of course, mean that your node(s) no longer run the locationing profile as written.

    Reference nodes are Routers (plus 1 Coord) ... this is operating as expected. Blind nodes are End Devices. Your Blind Node should associate with the Coodinator, assuming that they are within RF range of each other. Otherwise it will associate with a Router. THere is nothing in the working application that I know of to prevent this.

    Maybe it is improperly programmed? Maybe you need to press a button for it to associate? I don't know what code you are using for the Blind Node. Maybe you should hook it up to the emulator and find out what the code is waiting for.

  • you say blindnode are endDevice, but they are built exactly like refnode with the config shown the pic below

    routerBB, not EnddeviceBB, why wouldblindnodes behave like end-devices

  • I just reviewed swru080 and, as you said, the Blind Node is implemented as a Router.

    Have you tried implementing the locationing network with fewer nodes? Say, a Coordinator, 4 Routers and the Blind Node to see if things work?

     

  • yes of course

    what happen is it can't overcome 1 coord and 6 router blindnodes, with 4 it works , with 5 also, with 6 also, with 7, the7th don't join

    I tried to turn up 5 blind  (1, 143E, 287B, 3CB8, 50F5)  then 1 refnode (6532)  and this time other blindnodes  can join (6533, 6890, 6DED... associated with refnode 6532

    but this local limitation of 6 is a big problem

    thanks for your help, tell me if you understand where it comes from, why refnode are routers and blindnode not

  • I'm confused about your layout ... in order for the BlindNodes to function, they need to be in range of a minimum of 3 RefNodes. What is your physical layout?

    I also don't understand where there is a local limitation of 6. Additional Routers associate with other Routers ... one could easily have a hundred Routers in a small room ...

  • >local limitation of 6

    blindnodes in range of a refnode or coord (routers) that's what I tried to say

    Yes thanks Notsane, don't worry about my application, just think that there are much more blindnodes than refnodes, yes blind need 3 refnodes, but sometimes not very often blind come in range of 3

    But the only target now is to know why blindnode can't be routers, or they can, but how?

  • I don't understand your question(s).

    You can have many more than 6 Routers in range of a Coordinator or Router, but only 6 will associate with any single Coordinator or Router. This is mesh networking in operation.

    If your blind node is not in range of at least 3 reference nodes, locationing is not possible. Four reference nodes is preferred, more is better.

  • if blind is not in range of 3 refnode, he will send a location failure (status 1) message

    but no worry, the problem is why blindnode are not routers, do you agree?

    refnode are routers

    the difference between them if blind code is little biger and use CC2431 compile option, do this option force the node to be endDevice instead of router? maybe some trick in ZStack libraries .lib

  • I'm trying to find out additional information on the Locationing example. My question is "why are the blind nodes imlemented as Routers?". Routers are not expected to be mobile in a ZigBee network, while End Devices are by default. Mobile Routers cause a large amount of path re-routing traffic and cannot be battery powered (for any long length of time).

    That reference nodes are Routers makes perfect sense. They must be physically fixed and positioned so that they can report that fixed x,y location to within 0.25meters. They must also be mains powered so they can be operational all the time and able to respond to location requests.

    I am researching this and will post when I find out the answers.

    Scott

  • From one of our ZigBee experts:

    "It’s a performance trade off in terms of power consumption vs. update rate. End devices typically poll for data so the update rate in the Z-Location
    GUI would be less for an end device vs. a router."

  • yes ok

    but I would like to know why blindnode and refnode, compiled both with routerBB with same option etc.. why refnode is effectivly router and blindnode are endDevice

    what in program cause this?

    why even Chipcon Z LocationEng hex file BlindNode_ZR_BB_1_4_2.hex , with ZR which should be router, why this hex also gives endDevices! you can test if you don't believe me

    How could I have blindnode routers

    thanks in advance for the help