I am trying to replace an annoying USB Connection from my main computer to an Arduino Mega 2560 with a wireless connection. Basically, I want it be able to operate my Arduino Mega through the Serial Monitor in exactly the same way as how you would do it with a USB Connection, only that I want it wireless instead.
I currently have two XBee Modules, one fitted to a Sparkfun XBee Explorer USB and the other fitted to a UART SBee. At first, I connected these two modules to two different desktop computers and used a program called X-CTU to configure them. Eventually, I was able to get the two modules to communicate wirelessly with each other through the X-CTU Terminal.
My next plan was then to connect one of these module to an Arduino and reattempt the process. Common sense told me that I should connect the UART SBee to the Arduino since it has the Tx/Rx pins. I connected the Rx/Tx pins to pins 0 and 1 of the Arduino Mega, using the usual law of connecting Rx to Tx and vice versa. I also power up my Xbee by using the output power pins from the Arduino Mega. As a test sample, I pre-uploaded a program to my Mega that echos back whatever you type into the Serial Monitor command line.
In the meantime, my Explorer USB Shield was connected directly to the second desktop computer through a USB Connection, where I open Serial Monitor on that computer for interfacing.
Unfortunately, this is where all the disappointment came in. I could not get any communication happening between the Arduino Mega 2560 and the second main computer. When I type something, I get nothing coming back at me.
Another discovery that I found was that when I try to send characters through a USB Connection to the UART SBee directly to the Arduino from my first main computer. I find by doing this, the characters that I send will get sent to both the explorer USB (And hence the second main computer) and the Arduino Mega at the same time. The Arduino Mega will also echo the characters back to my first main computer through that USB connection, BUT I do not pick up anything on the second computer! It seems when I use Serial.print on the Arduino Mega, it can send the stuff through the USB port on my UART SBee, but can't send anything through the XBee.
Could anyone please help identify the problem and why my Arduino Mega can't send anything to my second computer through the XBee wireless connection??