From Processing to Arduino and then from Xbee to Xbee. Small bug :X

Hello everyone, I have a quick question about a problem i'm having in a program (perhaps I should have posted this in the trouble-shooting thread?). So I created a Processing program with several buttons. Each button has a specific output that it write (port.write('A'); for example. In turn, an Arduino is listening for that particular bit. It checks to see if Serial.available() and then determines if the bit is right or not. Depending on the bit, the Arduino will Serial.write('x') another bit through an xbee to another xbee and an attached Arduino will check for the bit and act accordingly.

Here's the problem: If I have the RX/TX port disconnected, the Arduino properly receives the bit from the processing sketch and will turn on an LED (pin 13 for testing). No problem. However when I turn the RX/TX port back on, it longer receives the data from processing. (The LED will no longer flash ON/OFF). Why is this?

My theory is that when I turn on the RX/TX port so that the one xbee can communicate with the other xbee, it stops listening for what's coming from the Processing sketch. So, when I do Serial.available(), it's listening for the RX/TX data and not the COM-port that WAS receiving the data from the Processing sketch.

Maybe I'm wrong, but it's an odd bug that I can't figure my way around. Any ideas? Thanks. -Joe

Fortunately, I have an Arduino Mega and am currently trying to figure out how to get that to receive from the USB from Serial1 and print to the Xbee on Serial. Hopefully that'll sort this out. Let me know what you guys think! Thanks. -Joe

Can I use the alternate Serial ports on the Mega without the second USB-to-Serial connection? I only have a standards cables and not a USB TTL Serial cable. Am I screwed until I order one?