navit-project.org

forum for navit navigation tool
It is currently 23 Jun 2017, 03:34
View unanswered posts | View active topics


All times are UTC


Forum rules


Feel free to ask anything here related to the installation and configuration of Navit.

Some notes before your first post:

Please provide as much informations as possible:



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: cannot read gps
PostPosted: 06 Sep 2014, 08:36 
Offline

Joined: 22 Aug 2014, 20:30
Posts: 6
I am running: navit-code-5870-trunk
I get the following messages when running navit.
Code:
vehicle_file:vehicle_file_io:Overflow. Most likely wrong baud rate or no nmea protocol
vehicle_file:vehicle_file_parse:no leading $ in '.2861,E,8,10,2.0,69.4,M,3.7,M,,*51

the vehicle definition in navit.xml is:
Code:
<vehicle name="My" enabled="yes" source="file:/dev/ttyUSB0" active="1" baudrate="4800">

The gps unit is a garmin etrex whose baud rate is 4800 and claims nmea protocol.
I can successfully see the output from the gps unit using:
Code:
cat /dev/ttySB0


 Profile  
 
 Post subject: Re: cannot read gps
PostPosted: 06 Sep 2014, 16:24 
Offline
User avatar

Joined: 07 Jun 2013, 17:13
Posts: 146
Location: Tartu, Estonia
Can you connect to your GPS with gpsd and display the decoded data with xgps? If gpsd works, you can try to connect Navit to gpsd instead.

I also used a Garmin eTrex via USB, but not via NMEA format - instead I used the native Garmin live GPS mode and converted the data using gpsbabel.


 Profile  
 
 Post subject: Re: cannot read gps
PostPosted: 07 Sep 2014, 01:07 
Offline

Joined: 22 Aug 2014, 20:30
Posts: 6
Thanks for reply.
I can display the garmin data OK with xgps from gpsd.
I tried gpsd ://localhost source as per the navit.xml file
but get:
Code:
navit:vehicle_new:invalid source 'gpsd://localhost': unknown type 'gpsd'


Actually my main problem is that I cannot see my vehicle; I'm trying to clear up what I don't understand first.
Two more of these are:
Code:
navit:convert_to_attrs:failed to create attribute 'distance_metric' with value '25'
repeated ...
and
Code:
navit:tracking_update:failed to get position data 1 1 1 0


 Profile  
 
 Post subject: Re: cannot read gps
PostPosted: 07 Sep 2014, 05:11 
Offline
User avatar

Joined: 07 Jun 2013, 17:13
Posts: 146
Location: Tartu, Estonia
This is indeed strange. Did you compile Navit from source? If so, did you include the gpsd module (it should be listed as enabled in the configure stage). It is enabled by default, but requires gpsd-dev libraries and is disabled if they are missing.


 Profile  
 
 Post subject: Re: cannot read gps
PostPosted: 18 Mar 2016, 23:58 
Offline

Joined: 18 Mar 2016, 23:35
Posts: 1
Sorry for Malcom, you have errors I have not seen before, I can't help.

I was also unable to use GPS at my linux box.
I have an USB-Device from [url]http://www.ehajo.de/bausätze/bedrahtete-bausätze/gps-shield.html[/url] which uses an FTDI-Bridge and works well e.g. with gpsmon when passing the device:

Code:
/dev/ttyUSB0 9600 8N1         NMEA0183>
┌──────────────────────────────────────────────────────────────────────────────┐
│Time: 2016-03-18T23:39:36.000Z Lat:  52 15' 53.645" N Lon:  10 30' 13.753" E  │
└───────────────────────────────── Cooked TPV ─────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ GPRMC GPVTG GPGGA GPGSA GPGSV GPGLL                                          │
└───────────────────────────────── Sentences ──────────────────────────────────┘
┌──────────────────┐┌────────────────────────────┐┌────────────────────────────┐
│Ch PRN  Az El S/N ││Time:      233936.00        ││Time:      233936.00        │
│ 0   4 173 11   0 ││Latitude:    5215.89409 N   ││Latitude:  5215.89409       │
│ 1   7 304 13  31 ││Longitude:  01030.22922 E   ││Longitude: 01030.22922      │
│ 2   8 295 42  21 ││Speed:     0.335            ││Altitude:  75.9             │
│ 3  10 147 53  14 ││Course:                     ││Quality:   1   Sats: 10     │
│ 4  11 266  3   0 ││Status:    A       FAA: A   ││HDOP:      0.99             │
│ 5  13  16  6  21 ││MagVar:                     ││Geoid:     45.6             │
│ 6  15  51 15   0 │└─────────── RMC ────────────┘└─────────── GGA ────────────┘
│ 7  16 199 45  24 │┌────────────────────────────┐┌────────────────────────────┐
│ 8  18  82 51  14 ││Mode: A3 ...s: 7 8 10 13 16 ││UTC:           RMS:         │
│ 9  20  39  5  20 ││DOP: H=0.99  V=1.29  P=1.62 ││MAJ:           MIN:         │
│10  21  72 36  10 ││TOFF:  0.114279000          ││ORI:           LAT:         │
│11  26 181 20  19 ││PPS:                        ││LON:           ALT:         │
└────── GSV ───────┘└──────── GSA + PPS ─────────┘└─────────── GST ────────────┘
(66) $GPGSV,4,2,14,11,03,266,,13,06,016,21,15,15,051,,16,45,199,24*7E


Though it did not work without passing it. I didn't wonder too much about it, because I knew it worked.

Long story short: I configured gpsd wrongly. I put ttyUSB0 in it instead of /dev/ttyUSB0.
After correction, all is fine.


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Silver Orange 2.0.6 for IPB Designed by Skins and Hosting
Converted for phpBB3, based on Royal Blue template by BigB © 2007 2008 AEON KINGS