Hi everyone, I want to setup mush. I know the basic way of setting up xbee series 2 base mesh network but not much.
I want to set up my mesh network like this, ONE coordinator, two router(two end-device on each) and four end-device(two of each will connect to one router)
All of device are in the same channel and PAN ID.
I am start confusing when addressing the destination LOW and HIGH address.
I guess, I will need to configure all of device as follow, but I am not sure it is right or wrong
1.All of devices are given same channel and PAN ID.
2.Coordinator doesn’t need to give destination address.
Router need to give destination address of coordinator.
I am start confusing, End-device need to give destination address of coordinator or router.
It sounds like you’ve got some of the concepts correct. Basically what you want is:
The Coordinator to start the network. Set it’s SC parameter to 0x1ffe and ID to some known value (such as 0xaaaa)
All of the routers and end devices should have the same SC and ID parameter. They should then join the network (AI will report 0 and the association lights will blink).
You can then send information between nodes depending on how you have DH and DL set. If you set DH and DL to 0 they will send information to the Coordinator
Can you tell us when you are trying to connect? Are you always sending data from the routers and end devices to the Coordinator? Does the Coordinator need to reply?
SC are the Channels to Scan. It’s a bitfield but what Jordan recommends should be good. The simple way to address is to put the destination radio’s 64-bit address (starts with 0013A200) as the DH and DL. So ATDH 0013A200 and then ATDL xxxxxxxx with the remainder of the address substituted for the ‘x’ values of course.
My book has some pretty good explanations of this stuff so if you get deep into XBee Series 2 it can answer a lot of your questions in detail. Addressing is covered starting on p.28. No matter what, definitely grab the Product Manual which you can download from Digi for free. Free is good!