Home/Support/Support Forum/communication failing between two XBee Pro S2 modules

communication failing between two XBee Pro S2 modules

0 votes
Hi,

I am new to XBee, recently i purchased two XBee Pro S2 modules and trying to establish communication between them through AT commands using coolterm but i can't able to send or receive any data. I am using Xbee UART sheild with xbee pro S2, connected to my PC via USB to Serial cable. i had connected both the xbees to single PC.

System Configurations :
Ubuntu - 12.10
Terminal - Coolterm
XBee PRO S2 - 2

AT commands used for Xbee-1 in coolterm-1 (terminal 1)

ATID 1234
OK
ATNI COORDINATOR
OK
ATDH 0000
OK
ATDL FFFF
OK
ATSH
13A200
ATSL
40AB4FCD
ATWR
OK
ATCN
OK

AT commands used for Xbee-2 in coolterm-2(terminal-2)

ATID 1234
OK
ATNI ROUTER
OK
ATDH 13A200
OK
ATDL 40AB4FCD
OK
ATWR
OK
ATCN
OK

after the configurations are done i send data "Hello" from terminal-1 (coordinator) to terminal-2 (Router) but i didn't see any receiving data in terminal-2

Terminal-1 Terminal-2 (I didnt received any data)
Helloo

Please help me to fix the issue and establish the communication.


Regards,
sasidhar
asked May 22, 2014 in XBee Programmable Development by sasidhar New to the Community (2 points)

Please log in or register to answer this question.

2 Answers

0 votes
What is the firmware versions installed on the two radios?
answered May 22, 2014 by mvut Veteran of the Digi Community (12,544 points)
Hi,

            Thanks for your quick reply,  i had established the communication now. Basically both are configured as routers so they cant be able to communicate with each other. Later on i configured them one as router AT and other as coordinator AT by updating the firmware, now its working fine i can able to send data and receive it.  But i have few more doubts like how can i establish a mesh network, how to route the data from on router AT to other, and how can i send data in API mode etc. Please guide me.


Regards,
sasidhar.
0 votes
Hi,

Thanks for your quick reply, i had established the communication now. Basically both are configured as routers so they cant be able to communicate with each other. Later on i configured them one as router AT and other as coordinator AT by updating the firmware, now its working fine i can able to send data and receive it. But i have few more doubts like how can i establish a mesh network, how to route the data from on router AT to other, and how can i send data in API mode etc. Please guide me.


Regards,
sasidhar.
answered May 23, 2014 by sasidhar New to the Community (2 points)
the function of routing is done automatically by the modules. All you need to do is to tell the modules who the data is to be sent out the UART of. They will figure out how to get the data there on their own.

The ability to use API mode requires you to load the API code on the module. Once loaded, you need to assemble and send as one data packet a known Hex API frame. You can see how to assemble the various frames by going to http://www.digi.com/support/kbase/kbaseresultdetl?id=3215 and looking in the associated product manual for the radio in question.
Thanks for your reply mvut. What is the configuration required to route the data for ROUTER. Is it necessary to give DH and DL address of another router. Or else is there any configuration so that what ever data send by coordinator to router1, the router1 must take the data if necessary or else route it to near by router2 or router3 whatever router is nearby
A router or Coordinator will determine the best possible rout to send the data on their own and no additional changes are needed on any node within the network. The Function of the DL and DH is to tell the node who you are providing the data via it's UART the address of who this data is to be sent out the UART of. All routing is performed automatically by the firmware.
Actually i am doing an home automation project. For example if i placed 1 xbee Pro module in each floor of a 10 storey building, and my requirement is when i broadcast a data from coordinator, nearby xbee router should receive the data and the controller interfaced to that particular Xbee router will parse the data received and if it assumes that data belongs to it. That particular router should turn ON or OFF the light or else it should route the data to next Xbee Router to its nearby. Can you please guide me how to achieve this scenario.
In your application, the XBee modules are nothing more than a cable.  It is your processor that you connect to the radio is what needs to know what to do with the data.
...