[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Serial port and NMEA (gps)



On Monday 20 Dec 2004 21:36, Johan Lindström wrote:

> I am trying to slurp up the ASCII feed from my NMEA compatible GPS
> through the serial port, in all honesty, I should say that I'm fairly
> new to bsd and the like.

Your dmesg shows the serial port is detected as:

> pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo

So you should be using tty01. 

> The final goal of this hobby project is to be able to forward
> unalterad NMEA streams over TCP/IP

Maybe nc(1) and tip(1) would do:

tip -4800 tty01 | nc -lk 12345

Then a TCP connection to port 12345 gives:

$ telnet tosh 12345 
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
connected
$GPRMC,,V,,,,,,,201204,2.6,W,N*2B
$GPRMB,V,,,,,,,,,,,,A,N*13
$GPGGA,,,,,,0,00,,,M,,M,,*66
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,04,49,299,00,07,27,234,00,11,12,145,00,13,50,203,00*7B
$GPGSV,2,2,08,20,49,082,00,23,69,088,00,24,13,309,00,30,01,353,00*73
$GPGLL,,,,,,V,N*64
$GPBOD,,T,,M,,*47
$PGRME,,M,,M,,M*00
$PGRMZ,,f,1*29
$PGRMM,WGS 84*06
$GPRTE,1,1,c,*37
$GPRMC,,V,,,,,,,201204,2.6,W,N*2B
$GPRMB,V,,,,,,,,,,,,A,N*13
$GPGGA,,,,,,0,00,,,M,,M,,*66
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,2,1,08,04,49,299,00,07,27,234,00,11,12,145,00,13,50,203,00*7B
$GPGSV,2,2,08,20,49,082,00,23,69,088,00,24,13,309,00,30,01,353,00*73



Visit your host, monkey.org