qissue-bot / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
http://qgis.org
GNU General Public License v2.0
0 stars 0 forks source link

Live GPS tracking: add support for garmin USB devices #2774

Open qissue-bot opened 5 years ago

qissue-bot commented 5 years ago

Author Name: dr - (dr -) Original Redmine Issue: 2786, https://issues.qgis.org/issues/2786 Original Date: 2014-06-21 Original Assignee: Marco Hugentobler


Subj. Garmin 60Csx is connected through Spanner ([http://en.wikipedia.org/wiki/Spanner_%28Garmin_program%29]). In Bob Bruce's GPS tracking plugin all works fine, but not in Live GPS tracking.

qissue-bot commented 5 years ago

Original Redmine Comment Author Name: Tim Sutton (Tim Sutton) Original Date: 2010-06-04T11:05:14.000Z


Probably more one for Marco as he implemented the part that does the nmea connection logic.

Regards

Tim

qissue-bot commented 5 years ago

Original Redmine Comment Author Name: Marco Hugentobler (Marco Hugentobler) Original Date: 2010-06-16T03:17:14.000Z


Hard to reprocude without a 60Csx. To which drive is the virtual serial port of spanner mapped? Does this path appear in the combo box of the gps widget (GPS device port->path to serial device. Maybe it is already enough to add this path to the autodetection list?

qissue-bot commented 5 years ago

Original Redmine Comment Author Name: Giovanni Manghi (Giovanni Manghi) Original Date: 2010-06-16T03:22:28.000Z


I also have problems with a 60c while the gpstools work fine. I'll try do further tests.

qissue-bot commented 5 years ago

Original Redmine Comment Author Name: Giovanni Manghi (Giovanni Manghi) Original Date: 2010-10-04T01:23:18.000Z


It seems that usb devices are not supported by design(?) Nevertheless the usb devices work fine (out of the box) with the standard QGIS gps tools, under both Linux (at least Ubuntu) and Windows.

Can the code be reused to support USB devices in the "live gps tracking" tool?

A nmea device can be simulated with the "gpsfake" tool (together with "gpspipe"):

https://www.rigacci.org/wiki/doku.php/tecnica/gps_cartografia_gis/fake_gps

The trick works, tested with the Bob Bruce's GPS tracking plugin.

By the way, Bob Bruce's GPS tracking plugin works also under Linux, regardless it is announced to work just under Windows.

qissue-bot commented 5 years ago

Original Redmine Comment Author Name: Jürgen Fischer (Jürgen Fischer) Original Date: 2010-10-04T01:28:20.000Z


Replying to [comment:7 lutra]:

It seems that usb devices are not supported by design(?) Nevertheless the usb devices work fine (out of the box) with the standard QGIS gps tools, under both Linux (at least Ubuntu) and Windows.

Serial devices (including usbserial devices and serial bluetooth) speaking NMEA are supported. Garmin use an other USB protocol.

qissue-bot commented 5 years ago

Original Redmine Comment Author Name: Giovanni Manghi (Giovanni Manghi) Original Date: 2010-10-04T01:31:27.000Z


Serial devices (including usbserial devices and serial bluetooth) speaking NMEA are supported. Garmin use an other USB protocol.

right, sorry for that. Nevertheless usb Garmin units are supported in gps tools, so I hope it will not be too painful to add the support in the "live gps tracking" tool.

qissue-bot commented 5 years ago

Original Redmine Comment Author Name: Werner Macho (Werner Macho) Original Date: 2010-10-04T01:41:08.000Z


Hi! I can provide a Garmin 60CSx for the Hackfest. I have easy access to one - I guess if the 60CSx is working all other Garmins should work too. Any interest?

qissue-bot commented 5 years ago

Original Redmine Comment Author Name: Giovanni Manghi (Giovanni Manghi) Original Date: 2010-10-04T01:50:39.000Z


I can bring my 60c too.

qissue-bot commented 5 years ago

Original Redmine Comment Author Name: Jürgen Fischer (Jürgen Fischer) Original Date: 2010-10-04T12:55:09.000Z


commit:7b1fc1bf (SVN r14332) adds gpsd support. My garmin etrex HCx now works via GPSD (using the garmin_gps kernel module).

qissue-bot commented 5 years ago

Original Redmine Comment Author Name: Giovanni Manghi (Giovanni Manghi) Original Date: 2010-10-04T23:11:33.000Z


Replying to [comment:12 jef]:

commit:7b1fc1bf (SVN r14332) adds gpsd support. My garmin etrex HCx now works via GPSD (using the garmin_gps kernel module).

Hi Jurgen,

I would like to see if it works with my Garmin unit, but I'm not sure what has to be used in the new "device" field when choosing "connect to gpsd".

Please note that if in the above field is written a string that contains a ":" then clicking on "connect" causes qgis to crash

Fatal: ASSERT: "gpsParams.size() == 3" in file /home/gio/qgis/qgis_trunk/src/core/gps/qgsgpsdetector.cpp, line 146
Aborted
qissue-bot commented 5 years ago

Original Redmine Comment Author Name: Jürgen Fischer (Jürgen Fischer) Original Date: 2010-10-05T03:36:01.000Z


Replying to [comment:11 lutra]:

I can bring my 60c too.

Unfortunatly my etrex legend hcx doesn't work with spanner, but it does with GPSgate. Which probably doesn't make a difference as far as QGIS is concerned.

With commit:9f79f6f1 (SVN r14340) all COM ports including the software one should be found and not only the "real" ones. The hcx now works on Windows for me, too.

qissue-bot commented 5 years ago

Original Redmine Comment Author Name: Jürgen Fischer (Jürgen Fischer) Original Date: 2010-10-05T03:44:40.000Z


Replying to [comment:13 lutra]:

I would like to see if it works with my Garmin unit, but I'm not sure what has to be used in the new "device" field when choosing "connect to gpsd".

GPSD doesn't support windows. But you could connect to a remote gpsd on windows. You enter the host, port and device (the latter can be left empty, if the gpsd only listens to one GPS) of the remote gps daemon. No colons required. Still commit:dd7df180 (SVN r14341) fixes the assertion.

qissue-bot commented 5 years ago

Original Redmine Comment Author Name: Giovanni Manghi (Giovanni Manghi) Original Date: 2010-10-05T03:49:27.000Z


Replying to [comment:15 jef]:

Replying to [comment:13 lutra]:

I would like to see if it works with my Garmin unit, but I'm not sure what has to be used in the new "device" field when choosing "connect to gpsd".

GPSD doesn't support windows.

I never mentioned windows, in fact I use Linux (Ubuntu)

You enter the host, port and device (the latter can be left empty, if the gpsd only listens to one GPS) of the remote gps daemon.

so this should work out of the box on Linux? my 60c unit seems that is not connecting, or maybe I'm just doing something wrong.

qissue-bot commented 5 years ago

Original Redmine Comment Author Name: Jürgen Fischer (Jürgen Fischer) Original Date: 2010-10-05T03:53:08.000Z


Replying to [comment:16 lutra]:

GPSD doesn't support windows.

I never mentioned windows, in fact I use Linux (Ubuntu)

Ok. Sorry. The original poster did.

so this should work out of the box on Linux? my 60c unit seems that is not connecting, or maybe I'm just doing something wrong.

No, you need to setup gpsd first - which works with my hcx. I suppose it does with the 60c, too. With gpsd you can have multiple clients...

qissue-bot commented 5 years ago

Original Redmine Comment Author Name: Giovanni Manghi (Giovanni Manghi) Original Date: 2010-10-05T08:07:43.000Z


No, you need to setup gpsd first - which works with my hcx. I suppose it does with the 60c, too. With gpsd you can have multiple clients...

Ok, I see now the kind of possibilities that gpsd offers, but I still cannot make it work. I checked the gpsd docs and a few other tutorials so I'm sure I'm missing something (tested also with xgps). Can you give any insight? I'm sure this will be useful too for the future 1.6 documentation.

Nevertheless I hope there will room to add the support for garmin usb devices as in the gps tools, it will be more straightforward for direct gps-to-qgis connections.

qissue-bot commented 5 years ago

Original Redmine Comment Author Name: Giovanni Manghi (Giovanni Manghi) Original Date: 2010-10-05T08:08:15.000Z


Ok, I see now the kind of possibilities that gpsd offers, but I still cannot make it work. I checked the gpsd docs and a few other tutorials so I'm sure I'm missing something (tested also with xgps). Can you give any insight? I'm sure this will be useful too for the future 1.6 documentation.

Nevertheless I hope there will room to add the support for garmin usb devices as in the gps tools, it will be more straightforward for direct gps-to-qgis connections.

thanks in advance.

qissue-bot commented 5 years ago

Original Redmine Comment Author Name: Jürgen Fischer (Jürgen Fischer) Original Date: 2010-10-05T09:40:50.000Z


Replying to [comment:18 lutra]:

Ok, I see now the kind of possibilities that gpsd offers, but I still cannot make it work. I checked the gpsd docs and a few other tutorials so I'm sure I'm missing something (tested also with xgps). Can you give any insight? I'm sure this will be useful too for the future 1.6 documentation.

http://ubuntuforums.org/showthread.php?t=1022921 suggest that accessing the 60c should be as easy.

Nevertheless I hope there will room to add the support for garmin usb devices as in the gps tools, it will be more straightforward for direct gps-to-qgis connections.

qissue-bot commented 5 years ago

Original Redmine Comment Author Name: Giovanni Manghi (Giovanni Manghi) Original Date: 2010-10-05T11:12:38.000Z


ok, got it finally. Thanks a lot for the hint.

Just one question: I cannot see any info about the position of the satellites and the intensity of the signal. Is this supposed to work or it will not work in any case with Garmins?

Well depends. See above. If the lack of info about signal and sat position is because of Garmin units then forget about it. If with gpsbabel this features will work then maybe will be worth the effort.

qissue-bot commented 5 years ago

Original Redmine Comment Author Name: Giovanni Manghi (Giovanni Manghi) Original Date: 2010-10-05T11:18:34.000Z


another problem: without removing first the _garmingps kernel module the connection with gpsbabel (and the gps tools) will not work anymore.

qissue-bot commented 5 years ago

Original Redmine Comment Author Name: Alexander Bruy (Alexander Bruy) Original Date: 2014-03-26T10:28:30.000Z


Live GPS tracking is core functionality, not plugin