Help with Arduino Mega and Xbee S1 and S2

Hello, and sorry my bad english!

I am having problem to comunnicate the Arduino mega with XBee.

The communication between xBees works, but I can't receive de data with Arduino.

The serial configs of xBee are right and the signal appear on RX pin, i have checked with oscilloscope, but the Rx LED of Arduino don't blink.

PS: When I put the data through serial monitor the Rx Blink and Arduino Receive Data.

Thank You for help! :slight_smile:

The communication between xBees works, but I can't receive de data with Arduino.

How do you know this?

Because I use the xctu program to verify and I can read the rs232 signal in rx pin of arduino (with shield) with osciloscope.

My reply was a hint that you needed to describe how you configured the XBees. What parameters did you set? To what values on each XBee?

How is the XBee connected to the Mega? What does the code on the Mega look like?

What is the other XBee connected to? How? What is that device supposed to be doing?

I use the xbee with the Xbee Shield and Xbee Explorer like this:

The Xbee s1 module was configured in AT mode, because my model don't allow the API Mode, and I try the Arduino Serial examples, but without success with Xbee, only work wich the USB.

The Xbee s2 pro module was configured in API 1 and 2 mode, but don't work either. To transmit data in this configuration, I use my own library to packed the data. I discarded as a possible problem because I got two computers communicate with it.

The parameter in each configuration is not much different from original, parameter like the parity bit and the data size are the default. I don't can put pictures of configuration now because i don't have the modules with me now, when i get him, I will send the print screen.

Rather than clarifying anything, your last response just made things worse. It now sounds like you have a Series 1 XBee that you are trying to get to talk to a Series 2 XBee. That is not possible. Series 1 models talk to Series 1 models only. Series 2 models talk to Series 2 models only.

PaulS:
Rather than clarifying anything, your last response just made things worse. It now sounds like you have a Series 1 XBee that you are trying to get to talk to a Series 2 XBee. That is not possible. Series 1 models talk to Series 1 models only. Series 2 models talk to Series 2 models only.

Sorry for my post, I will try explain better,
I tried first with one pair S1 modules and after with one pair S2 modules. But the result is the same, the modules xbee communicate with each other, I know because I received the confirmation of reception on X CTU software, but, the arduino don't receive, because the leds don't blink and the arduino program don't react.

I've asked twice now for you to define how you have configured the XBees. For the S1 pair, what is PAN ID, MY, and DL on each XBee?

If I'm going to try to reproduce your problem, I have to know how you have configured the XBees so I can configure mine the same way.

the configuration:
xbee1 and xbee2:

Today i try send arduino msgs to pc with zigbees, but dont work either.
The Tx led of arduino blink, and I see the signal entering on xbee pin with osciloscope, but the xBee dont transmit.
Can be the serial configuration?

You have XBee 1 with a MY address of 0 and a DL of 0.
You have XBee 2 with a MY address of 0 and a DL of 0.

Why? MY on one should be DL on the other, and neither should be 0 or 0xFF.

Try setting one to have MY=88 and DL=44. Set the other one to have MY=44 and DL=88.

Because some digi manuals recommend using these values ​​when you do not know this information,

anyway,

I changed the transmission rate between XBee and Arduino (115200) and things are back to work , but, I do not know why.

I would like to thank for their help and especially their patience in helping me, PaulS!! :slight_smile: