LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-21-2010, 09:18 PM   #16
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896

Well here goes some more guessing...
Does not look like gpsd is not getting valid data. If no ttyUSB0 type device is being created I would try loading the usbserial module and see what happens.

modprobe usbserial vendor=0xffff product=0xfff8 (look at the buss 002 device 017 line of the lsusb output. look at the numbers in the line like ID 091e:2380 vendor is the first set of numbers, product is the second after the colon. ) You must be root to load modules.
 
Old 07-22-2010, 03:27 PM   #17
lpallard
Senior Member
 
Registered: Nov 2008
Posts: 1,045

Original Poster
Rep: Reputation: Disabled
mmm still no luck, assuming I am doing it right...

modprobe usbserial vendor=091e product=2380 as root

plug the GPS

lsusb says that the GPS is located at Bus 002: Device 006

launch gpsd with /usr/sbin/gpsd -n -D 6 -N /dev/bus/usb/002/006

launch xgps

flock... nothing!

I'm surprised that it is so tough to get it running...
 
Old 07-22-2010, 03:48 PM   #18
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
The receiver should be plugged in before you load the module.
 
Old 07-24-2010, 08:43 PM   #19
lpallard
Senior Member
 
Registered: Nov 2008
Posts: 1,045

Original Poster
Rep: Reputation: Disabled
Got it working!! for those who are interested or have the same problems, here's how I did it! Pretty simple after all..

1-Load the module usbserial

Code:
modprobe usbserial
2-Load the specific Garmin GPS driver

Code:
modprobe garmin-gps
3-Plug the GPS via USB port

4-At plug time, the GPS prompt for either mass storage mode or no.. Select No (if you select mass storage, it will be only like an external USB HDD and wont be able to access the GPS circuitry)

5-A /dev/ttyUSB0 block file will be created, this is the GPS chipset

6-Launch the gpsd daemon in foreground and verbose mode (to see any problems or error messages, if there is..)

Code:
/usr/sbin/gpsd -n -D 6 -N /dev/ttyUSB0
At this moment, you should see some data being refreshed every second or so...

Launch xgps to see if it works.
 
Old 07-25-2010, 03:52 PM   #20
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Excellent, thanks for posting back.
 
Old 07-25-2010, 04:03 PM   #21
lpallard
Senior Member
 
Registered: Nov 2008
Posts: 1,045

Original Poster
Rep: Reputation: Disabled
No problem! This community helped me so much since I started my looong journey in the Linux world! Anything I can help, I'll do!
 
Old 07-25-2010, 04:12 PM   #22
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
You might also want to look in to Merkaartor (there's a SlackBuild for it at SlackBuilds.org) if you're going to be adding data to OSM. It allows you to edit the OSM data from a more fully-featured editor than the online editor. It'll also happily display your GPS tracks on Yahoo's satellite imagery (which OSM are allowed to use).
 
Old 07-28-2010, 08:24 PM   #23
lpallard
Senior Member
 
Registered: Nov 2008
Posts: 1,045

Original Poster
Rep: Reputation: Disabled
Hey I'm back on this topic... after almost a week of playing around numerous linux based gps editing software, I have to admit that either I'm really bad at it, or none of the ones I tried are up to my standards... So far I tried these, and found the associated problems:

JOSM: does act like a viewer more than anything else... if there is editing function in there, they are well hidden! Its also pretty slow (probably using JAVA)... Works well to VIEW gpx files...

Viking: Merging tracks is very buggy (routes are being randomly created between random nodes from merged tracks) you can imagine the spaghetti mess I get... How do you delete or move nodes??? How do you delete a route? Export as GPX is also very well hidden.

Merkaartor: How do you delete a route? Again, I couldn't find it, seems that creating nodes and routes is pretty easy but the opposite is not. Also exporting the map to GPX will not show the routes I created.

I would also add that all of these software have minuscule or non-existent documentation.

What are you using to edit, modify, create GPX files???
 
Old 07-29-2010, 12:46 AM   #24
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
Hey I'm back on this topic...
Hello again. Pleased you got it working, I didn't know you also needed the garmin-gps module, so I have learnt something too.

Quote:
JOSM: does act like a viewer more than anything else...
JOSM is, simply, awesome. Get yourself the latest from here:
http://wiki.openstreetmap.org/wiki/JOSM/Installation

Because it's a java application, you don't need your distro's repositories. I'm running Sun's java 1.6... and JOSM is fast on my underpowered netbook, instant on my workhorse.

JOSM is not a "viewer", it's an editor, and a very powerful one too. But you'll need to learn how to use it.

There are some excellent video tutorials for JOSM here:
http://showmedo.com/videotutorials/s...name=mS2P1ZqS6

I suggest you watch Nos. 4,5 and 6. ( The flash files are in /tmp as you watch - you can save them somewhere else, rename them as .flv and view them later, offline, with vlc )

The interface has improved since those videos were made, but the general principles apply.

Apart from "The Map" at http://www.openstreetmap.org/ I think tangogps is the best "viewer" especially as you can download maps of an area you are interested in and cache them locally for when you are offline, and out in the field with a "netbook" running linux.

Quote:
What are you using to edit, modify, create GPX files???
I make GPS files with tangogps.
The files tangogps makes need to be converted to .gps format, but there's a perl script, convert2gpx.pl, on the tangogps site that does this very easily.

I then import the GPS traces to JOSM (locally - see the videos). I do not edit them, I just use the points to add accurate data to OSM: My GPS points are one "layer" in JOSM, the OSM data is another "layer". Toggle "make layer (in)visible" to keep things simple. JOSM will geolocate photos you have taken, and put them in the right places on your track, to help you remember exactly what was where (again, see the videos).

viking - I never used it, I think it is USA only.
merkatoor - I never used it.

Have fun, and let us know how you get on.
 
Old 07-29-2010, 06:02 PM   #25
lpallard
Senior Member
 
Registered: Nov 2008
Posts: 1,045

Original Poster
Rep: Reputation: Disabled
hey tredegar,

I tried JOSM a little more and found it more useful than expected, but still cant do what I want to do... I primarily use my Oregon to ride my favorite trails and I map them to a GPX file. Then, because I want to save the GPX files and make a map out of it, I do some editing (remove useless points, re-route some segments, simplify the tracks, merge tracks, add waypoints, delete waypoints, etc) you know what I mean!

However, when I open the GPX file in JOSM, I see all tracks and waypoints, but I cant do anything... all the functions are grayed out and no buttons are working, like if the file was opened in read only...

Is that normal?

Second problem, I've been given a GPX file by a friend and I tried to do a cleanup because there were some overlapping segments, he was probably recording going back & forth in the trails... I managed to do some of that cleanup with merkaartor & viking, but when I import the GPX file in my Oregon, there is some random segments between random points on the tracks... see the attached pics to understand better.

If you have an idea of what I am talking about, please let me know!

Thanks!
Attached Thumbnails
Click image for larger version

Name:	snapshot7.png
Views:	21
Size:	28.1 KB
ID:	4202   Click image for larger version

Name:	snapshot8.png
Views:	20
Size:	18.0 KB
ID:	4203  
 
Old 07-30-2010, 05:19 AM   #26
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
However, when I open the GPX file in JOSM, I see all tracks and waypoints, but I cant do anything.
You need to create a new layer on which to draw your map, guided by the waypoints in the GPS layer.
File -> New layer

Alternatively, R-click your GPX layer in the "Layers" window at the right, and choose "Convert to data layer". Please note that this stuff should NOT be uploaded to the OSM servers, but it is perfectly OK save copies locally on your harddisk: File -> Save As..." then close JOSM, and choose "Discard & Exit". Please do NOT upload data to the OSM server unless you are sure that you know what you are doing, and are doing it "right".

There is a lot of useful information on the OSM wiki

OSM may already have the cycle routes mapped: Once you have opened your GPX file in JOSM, click the Download button. A pink bounding box appears, you can adjust its size. Data from the OSM server for the pink bounding box (that by default, covers the area of your GPX traces) will be downloaded in another layer. You can then edit this OSM layer, and either save it locally, or, if you are sure it will improve the OSM dataset, you can register with OSM, and upload your changes to their server. In this case, in a day or so, the OSM map will be updated to show your cycle tracks as you have mapped them.

If you live in a remote place, it is possible that OSM has little, or no data for your area, and you could improve the map by adding local details you have GPX data for. See the video links I posted earlier.
 
Old 08-02-2010, 09:30 PM   #27
lpallard
Senior Member
 
Registered: Nov 2008
Posts: 1,045

Original Poster
Rep: Reputation: Disabled
OMG I made so much progress with JOSM, its really an awesome application! Thanks guys for the help!
 
Old 09-18-2010, 04:21 PM   #28
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello together,

this was a very helpful thread for me since I'm experiencing a similar issue.
I'm using a Garmin Etrex Legend HCx for geocaching.
I found out that qlandkartegt (and additional qlandkartegt-garmindev) works for me. Im running it on Gentoo and it is possible, to manage waypoints (downloaded from geocaching.com) and upload them to my Garmin.
My Problem is that I have to be root to upload the waypoints. So I am learning about udev-rules to change the permissions of this USB-device.
Another issue is that qlandkartegt and the modules usbserial and garmin-gps don't work at the same time.
@lpallard: it seems that qlandkartegt can also manage tracks and routes.

Markus
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Porting Garmin Software to Linux MikeyCarter Linux - Software 6 03-13-2010 03:26 AM
Garmin Etrex & Ubuntu Linux sxa Linux - Software 1 06-02-2008 02:09 PM
Garmin Software for Linux Petition AwesomeMachine General 7 04-29-2008 09:32 AM
Linux Take Up in Oregon XavierP Linux - General 2 03-07-2003 06:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration