gpsd and navit config?

Message
Author
User avatar
towwire
Forum Regular
Forum Regular
Posts: 216
Joined: Fri Oct 15, 2010 12:15 pm

gpsd and navit config?

#1 Postby towwire » Wed Apr 11, 2012 1:41 am

First the computer is a HP laptop Pavilion zv 5000. I am using Mepis 11.0.12_64.
I install Navit 0.5.0~svn4776+dsg.1-1~bpo60+1 (squeeze-backports).
I am using a Startech.com 2 port usb to serial end P1 (2 ends P1 & P2) to connect to my gps (Garmin GPS 17).
When I have the gps hook straight to a serial port on another computer, I am receiving from the gps. Please
note that the Garmin can out put either Garmin or NMEA, It is wired to only output NMEA.

Navit show this in it's xml file: source="gpsd://localhost" gpsd_query="w+xj". I'm not showing a position or anything.
System Monitor Process Table shows:
gpsd nobody 0.3m 0.9m

Here is what I've checked, what's wrong.
old_fool@mepis2:~$ dmesg | tail
[ 1805.170364] usb 1-3: FTDI USB Serial Device converter now attached to ttyUSB0
[ 1805.170395] ftdi_sio 1-3:1.1: FTDI USB Serial Device converter detected
[ 1805.171276] usb 1-3: Detected FT2232H
[ 1805.171283] usb 1-3: Number of endpoints 2
[ 1805.171289] usb 1-3: Endpoint 1 MaxPacketSize 512
[ 1805.171295] usb 1-3: Endpoint 2 MaxPacketSize 512
[ 1805.171301] usb 1-3: Setting MaxPacketSize 512
[ 1805.173539] usb 1-3: FTDI USB Serial Device converter now attached to ttyUSB1
[ 1805.175140] usbcore: registered new interface driver ftdi_sio
[ 1805.175146] ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver
old_fool@mepis2

old_fool@mepis2:~$ gpsctl -n /dev/ttyUSB0
gpsctl: no DEVICES response received.

old_fool@mepis2:~$ gpsctl -n /dev/ttyUSB1
gpsctl: no DEVICES response received.

old_fool@mepis2:~$ gpsctl -f /dev/ttyUSB0
gpsctl: attempting USB device enumeration.
gpsctl: 1d6b:0002 (bus 1, device 1)
gpsctl: 1d6b:0001 (bus 2, device 1)
gpsctl: 1d6b:0001 (bus 3, device 1)
gpsctl: 046d:c069 (bus 2, device 3)
gpsctl: 1a40:0101 (bus 1, device 3)
gpsctl: 0403:6010 (bus 1, device 7)
gpsctl: 0951:1607 (bus 1, device 6)
gpsctl: vendor/product match with 091e:0003 not found
gpsctl: /dev/ttyUSB0 identified as a Garmin NMEA at 4800.

old_fool@mepis2:~$ gpsctl -f /dev/ttyUSB1
gpsctl: attempting USB device enumeration.
gpsctl: 1d6b:0002 (bus 1, device 1)
gpsctl: 1d6b:0001 (bus 2, device 1)
gpsctl: 1d6b:0001 (bus 3, device 1)
gpsctl: 046d:c069 (bus 2, device 3)
gpsctl: 1a40:0101 (bus 1, device 3)
gpsctl: 0403:6010 (bus 1, device 7)
gpsctl: 0951:1607 (bus 1, device 6)
gpsctl: vendor/product match with 091e:0003 not found
gpsctl: packet recognition timed out.
old_fool@mepis2:~$

Would like to have the output go through gpsd as I understand then I could then use 2 programs using the outport.
But then I would be happy to show anything.

User avatar
Gaer Boy
Forum Guide
Forum Guide
Posts: 1958
Age: 80
Joined: Sat Jun 06, 2009 6:06 am

Re: gpsd and navit config?

#2 Postby Gaer Boy » Wed Apr 11, 2012 4:11 am

Can't help you with the details - I have a USB Garmin and download from the memory card using Dolphin - but there has been a lot of discussion over the years about serial to USB connections. Some converters work for everyone, others only work occasionally. I think that's the first thing to lok at.

Phil

AsRock FM2A88X-ITX+, A8-6500, 8GB, 120GB Samsung SSD (GPT), 1TB HDD (MBR), MX-15, MX-14.4
Acer Aspire One 150, Atom N270, 120GB HDD, MX-14.3

User avatar
towwire
Forum Regular
Forum Regular
Posts: 216
Joined: Fri Oct 15, 2010 12:15 pm

Re: gpsd and navit config?

#3 Postby towwire » Wed Apr 11, 2012 1:18 pm

Thanks Phil, I'm missing something with the config. This USB to serial says it's for Linux too, on the cd there are folders for Redhat 7.3, 8 and 9, but nothing for Debian. I hope that someone who knows this shows up. I guess that I could need a driver but then gpsctl: /dev/ttyUSB0 identified as a Garmin NMEA at 4800.

User avatar
towwire
Forum Regular
Forum Regular
Posts: 216
Joined: Fri Oct 15, 2010 12:15 pm

Re: gpsd and navit config?

#4 Postby towwire » Wed Apr 11, 2012 5:48 pm

Update:
I have changed the line in navit.xml from source="gpsd://localhost" gpsd_query="w+xj" to
source="file:/dev/ttyUSB0"

I now have NMEA input to Navit. So part of this is solved. Now how do I set it up to go through gpsd so that I may run 2 programs receiving the NMEA data. My other question is why does the process table show gpsd username as nobody, not as root or myusername or one of the daemon's.

One of the programs will be run in wine and will need a systemlink as a com port, I know listing "file:/dev/ttyUSB0" as com#, only one program can use the NMEA input. Any idea's


Return to “Software / Configuration”

Who is online

Users browsing this forum: No registered users and 1 guest