xbee pro Mesh network help

Go To Last Post
15 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hey freaks, hello.......

from past few days, i'm dealing with xbee pro s2b in api mode. I'd developed code with avr to communicate more than two zigbee  in api mode, having one zigbee is in coordinator form, and another three in router formation, along with this i'd also involve few features like RSSI and node discovery. All these stuffs working good. (as i'm able to send and receive frame from coordinator to router and vice versa ) form these i'm able to create star network having one coordinator and all router.

my problem is, how to create mesh network and and sending frame from node to node(multiple hopping) to increase my network range and i also need to divert data at another path if any fault occurs at one node.

 

flow of hopping that i need to develop is.....

coordinator-------->Router1-------->Router2--------->Router3

can any one help me, or direct me at any tutorial where I find solution of this query!

This topic has a solution.

mahendra_ms

Last Edited: Fri. Oct 16, 2015 - 12:33 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

mahendra_ms wrote:
direct me at any tutorial where I find solution of this query!

XBee is a Digi product - so, surely, that is the place to go for XBee support?!

 

http://www.digi.com/xbee/

 

http://www.digi.com/support/

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

thanx for reply,

I've also written this query on digi.com, and hopefully waiting for reply smiley 

mahendra_ms

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Post a link so that anyone else that's interested can see what replies you get. And so that people here don't waste time repeating answers that have already been given.

 

It's not AVR-specific.

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

yeah sure.

mahendra_ms

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So where is it, then?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

S2b, so it's Zigbee.

the mesh is created by having routers between here and there.

Zigbee then automatically determines the best route, and it's kinda hard to determine what the actual route is :)

You need an Ember packet sniffer, or the like

 

Routers are any device that doesn't sleep, and thus can route messages.

Endpoints, typically sleep and can't be relied upon to be around to forward messages.

 

Once you have the devices laid out, you just send a message to the endpoint you want and ( hopefully ) the message gets there through some combination of routers ( and magic )

 

If you loose a router and the network has enough overlap it can find another route.

This means you need to design your network to have a lot of overlap or you no longer have a mesh, you have a fixed route and if one device on the route fails, everything after that is unreachable.

Keith Vasilakes

Firmware engineer

Minnesota

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanx for Reply,

same thing that I've got after roaming on few web pages.In my case i'd implemented coordinator and router in api mode and i'm able to send and receive frame in bi-direction, i'm using XCTU Version: 6.1.2 form digi international. 

 

i got one pdf that I've attached here, in which they sends frame between two node say A and C (where A is destination and    C is source) ,initially both are in range and result is source will get ACK. after successfully frame deliver.

 

Now, in second case they just increase distance b/w to node such a way that both of node gets out of range, and afterward they put one more node B  b/w A and C  so frame will deliver C-B-A manner and reach to its destination A(that i understood).

 

 

but my question is ......

             

       data is sends along with destination's 64 bit MAC address now suppose consider second case, in which i need to send data to destination (C to A), as described earlier if distance b/w source and destination is  not in range of xbee then i need to put one more node b/w them let say B  and the flow of data will be C-B-A. but suppose if i write MAC address of A(destination) along with

my data in function then dose this data accepts by B? (Here i'm getting confuse frown).

can you give me little more extension at this point? 

Attachment(s): 

mahendra_ms

Last Edited: Tue. Feb 3, 2015 - 07:06 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Yes B will receive the data meant for A.

It knows about A and will forward the message

B will not do anything with the message

 

The magic is that C tries to send to A but fails.

It then does a route discovery, basically a broadcast message, and finds the best route, C-B-A in your case.

It then uses that route to send another message to A through B

Keith Vasilakes

Firmware engineer

Minnesota

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hey, Thanx a lot keith v

ok then, i'll do the simple test that I've found in that pdf earlier, and soon upload result here.

 

 

mahendra_ms

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

check this datasheet at 109 page (create source route).

 

http://www.adafruit.com/datashee...

 

you will have to run this command to each s2b to share the network table among them.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hey,ankush.abbi@sur... if i choose frame type of 0x21(create source route) then i'm not able to add payload in frame using xctu(see in following capture)

btw, i did test that I've written earlier and yes, I'm able to get node to node delivery of packet C-B-A(though A is in not range of C, C deliver data packet through B to A)

Attachment(s): 

mahendra_ms

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

with 0x21 you will get the data packet to make route.

 

Send that data packet from the nodes to make route. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You are following the right path.. just verify the packet from the datasheet i mentioned. I have implemented this with the use of this datasheet.

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Eventually i'd tested my all three zigbees,(one in coordinator and rest of two in router) all of them working fine for node to node delivery

and test was successful.

here i linked the answer from digi.

http://www.digi.com/support/forum/45312/xbee-pro-s2b-mesh-network-help

 

Thank you guys

mahendra_ms