Go Down

Topic: ZB-Pro Router issue in large network (Read 2498 times) previous topic - next topic

Yolco

Hi,


I'm developing a large Zigbee network with a coordinator, several routers and more end-devices.

I tried to install routers near the coordinator as much as I could,, but not all of them are at this situation. I have some routers connect between themselves, but not with coordinator directly.

As all my routers devices work with liPo or li-Ion batteries, when any of the router, without line-of-sight, exhausts the battery, the network breaks down.

I said that because routers have to detect coordinator in the first time it begin to work, so if battery goes down, when I change it, I have to move my device all along the network and come back.


Is there any option for maintaining the network parameters even if the coordinator isn't near enough??

Could it be as simply as modify 'NW', 'JV', 'NT' or 'NO' parameters??


Thanks in advance!

Regards.

Jack Christensen

#1
Jan 31, 2013, 04:01 pm Last Edit: Jan 31, 2013, 04:04 pm by Jack Christensen Reason: 1

I tried to install routers near the coordinator as much as I could,, but not all of them are at this situation. I have some routers connect between themselves, but not with coordinator directly.


This is fine.

Quote

As all my routers devices work with liPo or li-Ion batteries, when any of the router, without line-of-sight, exhausts the battery, the network breaks down.


Routers should be mains-powered. Failing that, the network topology and physical layout needs to allow for sufficient redundant routes.

Quote

I said that because routers have to detect coordinator in the first time it begin to work, so if battery goes down, when I change it, I have to move my device all along the network and come back.


This is not my understanding. The router should retain ID, OP, OI, CH, etc., and even if the coordinator is not present when the router is powered back on, it should work. Communication with the coordinator is only required when first joining the network, and powering a router down does not break the network association. I've done this and verified that it works this way.

Quote

Is there any option for maintaining the network parameters even if the coordinator isn't near enough??

Could it be as simply as modify 'NW', 'JV', 'NT' or 'NO' parameters??


In general, I wouldn't go twiddling with too many parameters, stick with the defaults as much as possible. NW forces a router to leave the network if it loses contact with the coordinator, I'd leave it at its default value, which is disabled. NT and NO are options for network discovery (ND command), which is really just reports network information.

If the coordinator is replaced, the new one may choose a different values for OP, OI, CH, and this can cause other devices on the network to not be able to communicate with it (although they will continue to communicate with each other as noted above). See "Replacing a Coordinator" in the product manual. JV=1 may help this, but I've not tried it myself, and I'm not sure if this is the problem you're seeing.
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Yolco

#2
Feb 01, 2013, 09:03 am Last Edit: Feb 04, 2013, 09:11 am by Yolco Reason: 1
Thanks Jack!

I'm going to configure my devices, and I'll try this!

I never remove coordinator but when I switch off the router for a long time (simulating battery breaks down), it needs some time to add again to the network. So, I'm going to check the default params for any change.


Jack Christensen


when I switch off the router for a long time (simulating battery breaks down), it needs some time to add again to the network.


Hmmm, how much time does it need, and how are you judging when it is added again to the network?

Just to make sure I was remembering correctly, I did the following experiment. This is a network with six routers and no end devices (and one coordinator of course). Router1 sends data to Router2 and also to Coord. Router2 sends data to Coord only.

1. Powered down Coord and Router2.
2. After a few minutes, powered up Router2, leaving Coord off.
3. Router2 continues to receive data from Router1, without long delay.
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Yolco

Hi,

thanks Jack!

I have repeated your test and it worked (with default parameters).

Now, I'm going to try a nonsense. I change the 'sleep mode' to 'pin hibernate' in one router (I know it must be always awake), and let it falls asleep for an hour, then I wake it up, and try again the communication.

I think this last test will be worst case, and the router has to join the network again, so if it doesn't find coordinator first, it won't work.

Regards!

Jack Christensen

#5
Feb 05, 2013, 01:29 pm Last Edit: Feb 05, 2013, 01:31 pm by Jack Christensen Reason: 1

Now, I'm going to try a nonsense. I change the 'sleep mode' to 'pin hibernate' in one router (I know it must be always awake), and let it falls asleep for an hour, then I wake it up, and try again the communication.


I would have to agree that is nonsense, as the product manual (p34) says:

Quote
A router has the following characteristics: it
•Must join a ZigBee PAN before it can transmit, receive, or route data
•After joining, can allow routers and end devices to join the network
•After joining, can assist in routing data
•Cannot sleep--should be mains powered.
•Can buffer RF data packets for sleeping end device children.
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Yolco

Thanks again Jack!

It was only a test.

If the router fall asleep by pin hibernate or other configuration, it loose the network configuration.

Regards!

Okha

Hello Jack,
I really need your help. I have about  9 arduino uno board, 9 xbee pro and xbee shield, i also have a USB doggle. I am trying to design a mesh network. How do i connect them to make them communicate? i got some codes. if you will like me send you the code email me at ay4real@hotmail.ca.   Thanks

Jack Christensen


Hello Jack,
I really need your help. I have about  9 arduino uno board, 9 xbee pro and xbee shield, i also have a USB doggle. I am trying to design a mesh network. How do i connect them to make them communicate? i got some codes. if you will like me send you the code email me at ay4real@hotmail.ca.   Thanks


Which models do you have, "XBee Pro" can mean any one of several. If you can give the Digi part number that would be best, e.g. XB24-Z7WIT-004
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Okha

#9
Jan 21, 2014, 08:51 pm Last Edit: Jan 21, 2014, 09:02 pm by Okha Reason: 1
i have Xbee Pro with part number XBP24BZ7SIT-004
Thanks

Jack Christensen

There is not much needed to make them communicate. The network will need exactly one coordinator, so the coordinator firmware needs to be loaded onto one module with Digi's X-CTU program. Leave the rest configured as routers which should be how they ship.

Read my blog post, that should get you started.  Try two modules at first, then add the other routers. The mesh networking happens automatically.
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Okha

Thank you very much. so do you have any code i can load on the arduinos board to text the  communication? secondly, i think i just needed to set them on the same PAN ID? is there any other parameter i need to change? lastly, i mine suppose to use AT mode or API mode to be able to work on mesh network?
Thank you very much....really appreciate
I have been struggly with this for the past two months.

Jack Christensen


Thank you very much. so do you have any code i can load on the arduinos board to text the  communication? secondly, i think i just needed to set them on the same PAN ID? is there any other parameter i need to change? lastly, i mine suppose to use AT mode or API mode to be able to work on mesh network?
Thank you very much....really appreciate
I have been struggly with this for the past two months.


Well I have code but if you load it on your boards I doubt that it will do what you want!  Setting a PAN ID really is a good idea, although not absolutely necessary as explained in my blog post.  The mesh network operates regardless of AT or API mode.  In fact, some of the modules can be AT mode and some can be API mode, and they all will interoperate.
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Okha

Hello Jack,
Do you live in MI? if you do kindly send me your number ay4real@hotmail.ca. I need to discuss with you. I live in Windsor, ON. just close to Detroit. Thanks

Jack Christensen


Hello Jack,
Do you live in MI? if you do kindly send me your number ay4real@hotmail.ca. I need to discuss with you. I live in Windsor, ON. just close to Detroit. Thanks


Sorry I just don't have a lot of bandwidth these days, unless a project happens to interest me intensely or there are obscene amounts of money involved.
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Go Up