Re: Unable to exchange data if both router and coordinator are in API mode with Arduino

216 views
Skip to first unread message

Andrew Rapp

unread,
Jul 25, 2012, 3:35:38 PM7/25/12
to xbee...@googlegroups.com
I heard reports of others having problems with the S2B radios. I've never used them so can't comment on if there are compatibility issues. Try resetting to factory defaults and applying the minimal configuration per the wiki. You may want to try end device instead of router. Also make sure they are not in cyclic sleep mode if end device

On Mon, Jul 23, 2012 at 8:17 PM, Rocco Galati <rocco...@gmail.com> wrote:
I'm using two Arduino UNOs, two ZigBee Shields, xbee-arduino library version 0.3 with Arduino 1.0.1 and I'm trying to let my xbee modules (Series 2 PRO) communicate in API mode (with API mode = 2 in XCTU).

If I upload Rx sample for Series 2 to my first arduino with Xbee as Coordinator with API and then I uploaded Tx sample for Series 2 to my second arduino with Xbee as Router with API then router is able to connect to the coordinator, but no data is received correctly, in fact, I can't read any received packet.

On the contrary, if I configure the router as Router with AT mode, then, I'm able to receive packets with the Coordinator.

Why this happen? I'm not able to exchange data when I use both coordinator and router in API mode.

I need to be able to send and receive datas from my router nodes.
Is it possible to do this with xbee-arduino library?

Is there any sample where a router exchanges data with the coordinator?

Can you help me, please?


--
You received this message because you are subscribed to the Google Groups "xbee-api" group.
To view this discussion on the web visit https://groups.google.com/d/msg/xbee-api/-/w144wblTQWEJ.
To post to this group, send email to xbee...@googlegroups.com.
To unsubscribe from this group, send email to xbee-api+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/xbee-api?hl=en.

Gideon le Grange

unread,
Jul 25, 2012, 3:38:54 PM7/25/12
to xbee...@googlegroups.com
Start with this page of common mistakes.


If this doesn't fix it, you may have a problem! 

Paul Bender

unread,
Jul 26, 2012, 9:08:40 AM7/26/12
to xbee...@googlegroups.com, xbee...@googlegroups.com


Sent from my iPad

On Jul 26, 2012, at 1:23 AM, "rocco...@gmail.com" <rocco...@gmail.com> wrote:
> Unfortunately, I've already tried it but it do not work. I can't send and receive packets from the same xbee module. If I set all xbees in API mode they are not.able to communicate. I must configure the coordinator as AT and the other as router with API if I want to make them communicate.
>
> Why this happen? I can't set them in API mode.. I always had to have at least the coordinator in AT MODE of I want to send messages to router correctly.

One problem I have had with the Series 1 XBee modules is that some versions of the firmware will allow you to send in API mode, but they don't allow receiving.

I have found that I need the latest firmware installed on all devices in the network for API mode to function correctly.

You may need to do something similar with your Series 2 XBee modules.

Paul

rocco...@gmail.com

unread,
Jul 26, 2012, 9:20:49 AM7/26/12
to xbee...@googlegroups.com
I've already installed the last firmware with xctu and it is 23A7 for the router API and 21A7 for coordinator API.
The problem is serious since I have to program 1000+ xbee modules and I'm not able to solve the problem.

Any suggestions?

Inviato da HTC
Reply all
Reply to author
Forward
0 new messages