XBee with Mega board communication help

I'm trying to get two XBee units to communicate wirelessly, but I'm not having any luck. I've looked at a lot of tutorials and copied code and even tweaked the copied code, but still to no avail. As of right now, I think the issue has to do with the shield I'm using for the XBee (SparkFun XBee Shield - WRL-12847 - SparkFun Electronics). Normally the XBee uses the serial port on the Arduino to communicate, but that is how this shield communicates with the computer. I've tried implementing the same setup using the software serial library, but no success so far.

Any suggestions would be much appreciated. So far I haven't found any tutorials, etc. using the sparkfun shield mentioned above so I don't know if that's actually the problem.

Thanks!

I did try the regular serial ports first, but nothing happened. I verified that the code was running, but I wasn't receiving any data. I'm not even sure I was sending it.

Sorry. I guess I wasn't using my English well :confused:

When I said that the serial ports didn't work, I meant that the XBee Arduino shield I'm using uses the serial connection to talk to the computer. So, when I'm using XCTU and use the serial monitor, anytime I try to Serial.print (which would normally send the data to the XBee as I understand it), I get the data in the monitor. Is that clear? If not, I'll try to explain more/differently :slight_smile: