Josh Siegel
30-11-2006, 22:11
Hi everyone,
I've been fooling around with this code for awhile and I'm at a total loss as to what I can try next. Here's what I aim to do:
-I have an RS232 GPS device that is tested and known good.
-I have a TTL to RS232/RS232 to TTL conversion board that is tested and known good
-I want to read, and ultimately parse, the data string (but don't know about C string parsing). For now, I would be happy with printing it out from the RS232 (feed in TTL and out to PC).
I tried Kevin's serial code, but it never actually seemed to read the data. A few times, I got it to "acknowledge" that it captured something (just a simple print if this portion is reached), but it never printed it properly. It also only did it once per boot of the board. How does the EDU know when a string is coming in? I know I can use interrupts, but that seems like an awful lot of trouble to set up a reader for a GPS device.
Does anyone have experience with this? Sample code, perhaps?
I'd post what I have, but its mostly the default serial code, with the parameters changed to 4800 baud.
Thanks,
Josh
I've been fooling around with this code for awhile and I'm at a total loss as to what I can try next. Here's what I aim to do:
-I have an RS232 GPS device that is tested and known good.
-I have a TTL to RS232/RS232 to TTL conversion board that is tested and known good
-I want to read, and ultimately parse, the data string (but don't know about C string parsing). For now, I would be happy with printing it out from the RS232 (feed in TTL and out to PC).
I tried Kevin's serial code, but it never actually seemed to read the data. A few times, I got it to "acknowledge" that it captured something (just a simple print if this portion is reached), but it never printed it properly. It also only did it once per boot of the board. How does the EDU know when a string is coming in? I know I can use interrupts, but that seems like an awful lot of trouble to set up a reader for a GPS device.
Does anyone have experience with this? Sample code, perhaps?
I'd post what I have, but its mostly the default serial code, with the parameters changed to 4800 baud.
Thanks,
Josh