ZB-Pro Router issue in large network

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.

Yolco: 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.

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.

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.

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.

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.

Yolco: 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.

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!

Yolco:
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:

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.

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!

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

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

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

i have Xbee Pro with part number XBP24BZ7SIT-004 Thanks

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.

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.

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.

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.

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

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

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.

No problem. I got a nice project for you........let discuss on phone Thanks

Okha:
No problem. I got a nice project for you…let discuss on phone
Thanks

Obscene amounts of money are no problem, OK that’s a start. Send a good and complete technical description of your project to me here on the board in a personal message and I will take whatever action seems appropriate.

ok…sure…i messaged you already. thanks

Hello Jack, I plan to buy some arduino boards, xbee shield and xbee pro S2B, I want to use it to create a multihop network for image transmission having a USB Doggle and xbee pro on two computers as the sender and receiver. Do you think this is workable? each arduino, xbee shield and xbee pro as the router between the middle of the computers. You can advise as appropriate. Thanks

How large are the images to be transmitted, and how long are you prepared to wait for transmission? XBees are low-bandwidth devices and as such not intended for large amounts of data. Unless the images are small, or the throughput requirements quite modest, I'd look for another solution.