Good evening all.
Been running into some issues for the past few days trying to transmit NMEA data using simple point-point communication on my Xbees. I have 1 Xbee connected to my laptop via Xbee Explorer(SparkFun XBee Explorer USB - WRL-11812 - SparkFun Electronics) as a receiver, and another xbee connected to my Arduino UNO via Xbee Shield (SparkFun XBee Shield - WRL-12847 - SparkFun Electronics) as a transmitter. I have already proven wireless functionality with the PhysicalPixel sketch example.
Using the Parallax GPS module (http://www.parallax.com/tabid/768/ProductID/396/Default.aspx) I wanted to see the NMEA strings serially, so I modded the Seral.Read example found on the Arduino website. On the GPS Module itself, I have /RAW GND tied to groun on the UNO, VCC supplied with+5V, and SIO in Pin0RX.
int incomingByte = 0;
void setup() {
Serial.begin(4800);
}
void loop() {
if (Serial.available() > 0) {
incomingByte = Serial.read();
Serial.print(incomingByte, BYTE);
}
}
This is what I saw in the Serial Monitor:
$GPRMC,040022.035,V,0000.0000,N,00000.0000,E,,,150209,,,N7B
$GPGGA,040023.035,0000.0000,N,00000.0000,E,0,00,,0.0,M,0.0,M,,000040
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
Which was expected. I powered my UNO with another computer, set the switch on the Xbee shield to UART, and observed the terminal X-CTU where my xbee explorer was plugged into and saw that only a segment of the NMEA string was transmitted (shown below)
E,0,00,,0.0,M,0.0,M,,0000*40
After transmitting this data, communication between the explorer and UNO just hung up. I did a little research and found that since the GPS module is eating up my TX and RX pin so much that I can't transmit this information wirelessly ( is this a correct assumption?)
This is my flowchart interpretation of whats going on:
With this in mind, I decided to control the power of the GPS module by controlling the VCC input with a digital pin. I figured since the GPS never stops receiving information, I could temporarily turn off the GPS after receiving the NMEA strings, store the NMEA strings, serially write them (wireless when switched to UART) to my computer. But still no success. I am pretty much at an ends as to what I can do to get this information to transmit wirelessly. I have looked into Newsoftserial, but I have a feeling that only helps for controllers with multiple TX and RX pins.
If any other information is needed, please let me know.
Thanks,
GA