1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Device and Transfer

From qlandkartegt

(Difference between revisions)
Jump to: navigation, search
(Device and Transfer)
 
(5 intermediate revisions not shown)
Line 1: Line 1:
-
=== Device and Transfer ===
+
{{GT help}}
 +
To be able to communicate with a GPS device, the make and type have to be set. Go to '''Setup''' → '''General''' to open the preferences window opens. Under the '''Device and Xfer''' tab you can specify your device details.
-
The Device and Transfer preference tab allows to select the specific GPS unit to use. To use e.g. the Garmin Etrex Legend HCx model, choose "Garmin" from the unnamed list at the top and choose "EtrexLegendHCx" from the type list, leave the Serial port box empty. If no type list appears, the drivers may not be installed. See [http://qlandkarte.org/index.php?option=com_content&view=article&id=15&Itemid=17] for details how to install them.
+
For example: to use the Garmin Etrex Legend HCx model, choose "Garmin" from the unnamed list at the top and choose "EtrexLegendHCx" from the type list, leave the "Serial port" box empty. If no type list appears, the drivers may not be installed. See [http://qlandkarte.org/index.php?option=com_content&view=article&id=15&Itemid=17] for details how to install them.
-
When using a model like the Garmin Etrex Legend HCx (under Linux), make sure that the garmin_gps kernel module is not loaded. Note that default settings under Ubuntu 9.10 (Karmic) are OK. You can check these settings by plugging in the GPS unit and make sure it connects (see user manual, something like turn it on, Configuration --> Interface), and then run:
+
== Kernel modules ==
 +
 
 +
When using a model like the Garmin Etrex Legend HCx (under Linux), make sure that the garmin_gps kernel module is not loaded. Note that default settings under Ubuntu 9.10 (Karmic) are OK. You can check these settings by plugging in the GPS unit and make sure it connects (see user manual, something like turn it on, Configuration --> Interface). Then run:
 +
 
 +
tail /var/log/messages
 +
 
 +
which should read something like
 +
 
 +
Jan 27 21:27:25 lonlat kernel: [ 3266.172121] usb 5-1: new full speed USB device using uhci_hcd and address 2
 +
Jan 27 21:27:25 lonlat kernel: [ 3266.374402] usb 5-1: configuration #1 chosen from 1 choice
 +
 
 +
and run
  sudo lsmod  | grep garmin
  sudo lsmod  | grep garmin
-
which should not report something like
+
which should '''not''' report something like
  garmin_gps            16416  0  
  garmin_gps            16416  0  
Line 21: Line 33:
to /etc/modprobe.d/blacklist.conf .
to /etc/modprobe.d/blacklist.conf .
 +
 +
In addition, you might need to set access permissions. For older kernels (pre-3.x), this is described in
 +
[http://www.gpsbabel.org/os/Linux_Hotplug.html Fixing USB permissions for Garmins in GPSBabel].
 +
Newer kernels need a similar udev rules file, however with slightly different content. Instead of
 +
 +
SYSFS{idVendor}=="091e", SYSFS{idProduct}=="0003", MODE="0660", GROUP="plugdev"
 +
 +
you should enter:
 +
 +
ATTRS{idVendor}=="091e", ATTRS{idProduct}=="0003", MODE="0660", GROUP="plugdev"
 +
 +
(here, "091e" and "0003" are the vendor- and product-ID for a Garmin GPSmap76CS. You will need to replace these strings with the IDs of your device, as obtained with the command "lsusb".)
 +
After creating or editing the rules file, you should either reboot or force udev to reload the rules with the comamnd
 +
 +
  sudo udevadm control --reload-rules

Current revision as of 20:29, 5 January 2013

GT help | Quick start | Download maps | Working with: maps, tracks, waypoints, routes, live data

To be able to communicate with a GPS device, the make and type have to be set. Go to SetupGeneral to open the preferences window opens. Under the Device and Xfer tab you can specify your device details.

For example: to use the Garmin Etrex Legend HCx model, choose "Garmin" from the unnamed list at the top and choose "EtrexLegendHCx" from the type list, leave the "Serial port" box empty. If no type list appears, the drivers may not be installed. See [1] for details how to install them.

Kernel modules

When using a model like the Garmin Etrex Legend HCx (under Linux), make sure that the garmin_gps kernel module is not loaded. Note that default settings under Ubuntu 9.10 (Karmic) are OK. You can check these settings by plugging in the GPS unit and make sure it connects (see user manual, something like turn it on, Configuration --> Interface). Then run:

tail /var/log/messages

which should read something like

Jan 27 21:27:25 lonlat kernel: [ 3266.172121] usb 5-1: new full speed USB device using uhci_hcd and address 2
Jan 27 21:27:25 lonlat kernel: [ 3266.374402] usb 5-1: configuration #1 chosen from 1 choice

and run

sudo lsmod  | grep garmin

which should not report something like

garmin_gps             16416  0 
usbserial              36264  1 garmin_gps

If it does, you can temporary use

sudo rmmod garmin_gps

to get rid of it. To fix it permanently add

blacklist garmin_gps

to /etc/modprobe.d/blacklist.conf .

In addition, you might need to set access permissions. For older kernels (pre-3.x), this is described in Fixing USB permissions for Garmins in GPSBabel. Newer kernels need a similar udev rules file, however with slightly different content. Instead of

SYSFS{idVendor}=="091e", SYSFS{idProduct}=="0003", MODE="0660", GROUP="plugdev"

you should enter:

ATTRS{idVendor}=="091e", ATTRS{idProduct}=="0003", MODE="0660", GROUP="plugdev"

(here, "091e" and "0003" are the vendor- and product-ID for a Garmin GPSmap76CS. You will need to replace these strings with the IDs of your device, as obtained with the command "lsusb".) After creating or editing the rules file, you should either reboot or force udev to reload the rules with the comamnd

 sudo udevadm control --reload-rules
Personal tools