OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
  • Task Type Bug Report
  • Category Packages
  • Assigned To No-one
  • Operating System All
  • Severity Medium
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by Ken - 14.05.2017

FS#783 - gpsd doesn't work with "Garmin USB binary" (nor NMEA2000)

Supply the following if possible:

- Device problem occurs on

I tried it on GL-AR150, but it should reproduce on any device w/ USB

- Software versions of LEDE release, packages, etc.

LEDE 17.01.1
gpsd 3.16-1

- Steps to reproduce

If you have a device with “Garmin USB binary” (eg : eTrex), then

gpsd -n -N -G -D 4 /dev/ttyUSB0

... should show data once a second.

From my reading of the code, even without a Garmin device, “-D 4” debug level should show a message of “Probing Garmin USB binary driver...\n”

From my reading of the code, it looks a a build problem. 2 “defines” need to be made :



FYI, there is a similiar bug for “NMEA2000” : If you do “gpsd -h”, you should see “NMEA2000” on the list of “drivers”. I can file a separate bug for this if you want.

Thanks !

Ken commented on 14.05.2017 00:27

FYI, I noticed that the gpsd source has a NMEA2000 test script : test_nmea2000 (that uses "canplayer" to replay some data).

The gist of the script :

## install

opkg install ip-full kmod-can-vcan canutils-canplayer

## create a "virtual canbus interface" :

ip link add type vcan
ip link set vcan0 up

## start gpsd reading from the "virtual canbus interface" :

gpsd -G -n -N -D 4 nmea2000://vcan0

## copy candump data file from gpsd source to OpenWRT :

scp gpsd-3.16/test/nmea2000/logfile_20140914_365495765_can.log root@openwrt:/tmp

## log into OpenWRT in a separate window and "play" the log file :

canplayer -I /tmp/logfile_20140914_365495765_can.log vcan0=can0

Ken commented on 16.05.2017 15:39

Also, I noticed that "libgps" installs "libncurses" (and terminfo) as a dependency , but I don't think that's needed (it is needed by gpsd-clients).

Ken commented on 15.02.2018 04:47

Attached is patch to enable the "NMEA 2000" interface in gpsd.

Technically, this bug is for the "Garmin USB binary" interface, so let me know if you want me to open a separate bug for "NMEA 2000" interface.


Available keyboard shortcuts


Task Details

Task Editing