View Single Post
  #5  
Old 06-18-2010, 06:54 AM
nige777 nige777 is offline
Member
 
Join Date: Nov 2007
Location: UK
Posts: 78
Ok, I am back in the office.


The code I have been using to connect to the GPS is as follows:
Code:
while 1:
	ser = serial.Serial(port=0, baudrate=4800, timeout=0)
	line = ser.readline()
	print line  #DEBUG
	ser.close()
"line" is then passed to a parser which has been developed with the aid of a text file of a GPS output (NMEA).
I've included two text files - GPS DUMP is what is received when the GPS is outputting NMEA sentences and the TXT file shows what is received when the GPS unit is outputting text only.

I really like your buffer method but am at a loss on how to implement it
I am off to pour over the documentation for PySerial again as I am sure I'm missing something obvious
Attached Files
File Type: txt GPS_DUMP.txt (29.3 KB, 1776 views)
File Type: txt GPS_TXT_DMP.txt (2.2 KB, 1680 views)
Reply With Quote