Author Topic: Got Earthmate USB GPS, now what?  (Read 30148 times)

lwong

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
    • http://
Got Earthmate USB GPS, now what?
« on: May 07, 2004, 09:37:22 pm »
I took the plunge and got the Delorme Earthmate USB GPS.

The 6000 recognize it right away as \"Delorme USB Earthmate\". dmesg says something about

USB HID v1.00 Pointer [Delorme Publishing Delorme Earthmate] on usb 1.27.0

Now what do I do? I installed qpegps but the defualt path is

-p /dev/ttyS0 -s -4800

Is that for connection through serial cale? What should I change it to?

One good thing about the setup is that the Z can power the GPS all by itself. The bad is that if qpegps is run in 640x480 mode, it looks skewed.

Please help me set this up.

Thanks

FW

dmilligan

  • Newbie
  • *
  • Posts: 21
    • View Profile
Got Earthmate USB GPS, now what?
« Reply #1 on: May 07, 2004, 09:49:00 pm »
I am guessing /dev/ttyUSBXXX - you will probably need to run the gpsd prior to running qpegps as it seems to always want to default to ttyS0.

lwong

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
    • http://
Got Earthmate USB GPS, now what?
« Reply #2 on: May 07, 2004, 09:56:32 pm »
Could you elaborate a little as I am not familiar w/ the program (or linux) at all.

Do I actually need to install gpsd seperately? and how do I tell what \"USBXXX\" I should put?

Thanks

FW

Gondola

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Got Earthmate USB GPS, now what?
« Reply #3 on: January 25, 2005, 05:23:09 pm »
I got one of the iRiver adapters (great deal btw).

I plugged in my DeLorme Earthmate, and it is recognized (courtesy of dmesg):

hub.c: USB new device connect on bus1/1, assigned device number 11: USB HID v1.00 Pointer [DeLorme Publishing DeLorme USB Earthmate] on usb1:11.0

I installed zGPS and manually edited the .zGPS.conf to point to /dev/ttyUSB1 but I'm not getting any results.

Since the ttyUSB1 file already exists in /dev, I don't need to prepare it ahead of time do  I?  From my reading online it may be necessary to get a new kernel to compensate for the fact that it identifies as a HID.

I like the Earthmate because it's USB (saves me the CF slot for other things if necessary, like a nice big 4gb CF drive), and it comes with a nice long cable.  And I already had it anyway.

If someone could give me some more information on using USB GPS's, I would really appreciate it, as I think others would as well.
[span style=\'font-size:8pt;line-height:100%\']Nokia 770, running latest firmware.
1GB RS-MMC sandisk card
Garmin Etrex Legend GPS/USB Earthmate GPS
Rooted, with an SSH server, VNC viewer, etc.
[/span]

Gondola

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Got Earthmate USB GPS, now what?
« Reply #4 on: January 25, 2005, 10:45:20 pm »
I've tried to put "-p /dev/ttyUSB1" on the gpeGPS dialog box, but no luck.

It will re-run gpsd on the fly; I tested it by changing to ttyS0 through ttyS4.  In the Data Status window, under gpsd, the gpsd box will go green if I use ttyS0 through 3.  So there's something about ttyUSB0 and ttyUSB1 which won't even allow gpsd to run.

None of the other boxes ever show anything other than red.

I even added the "-T e" to force it into Earthmate mode.

There's some kind of USB issue here, but I'm just no familiar enough with USB on Linux.
[span style=\'font-size:8pt;line-height:100%\']Nokia 770, running latest firmware.
1GB RS-MMC sandisk card
Garmin Etrex Legend GPS/USB Earthmate GPS
Rooted, with an SSH server, VNC viewer, etc.
[/span]

Gondola

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Got Earthmate USB GPS, now what?
« Reply #5 on: January 27, 2005, 11:18:50 am »
Bump.

I did some Googling in an attempt to figure out this problem, and I ran across these links:

http://trans.civil.northwestern.edu/~jay/gpsd.html

http://geocities.com/i0xox0i/

I would appreciate if someone with more knowledge of the Zaurus kernel please read through these pages.  It seems to me that there are two options; recompile gpsd for the Zaurus as stated in the first link; or patch the kernel as detailed in the second link.

I don't have a compile environment set up for the Zaurus yet, as I've only recently gotten the Zaurus.  GPS in the car is a killer app for me.

All you gurus out there, please help!
[span style=\'font-size:8pt;line-height:100%\']Nokia 770, running latest firmware.
1GB RS-MMC sandisk card
Garmin Etrex Legend GPS/USB Earthmate GPS
Rooted, with an SSH server, VNC viewer, etc.
[/span]

Gondola

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Got Earthmate USB GPS, now what?
« Reply #6 on: January 29, 2005, 10:44:42 am »
Bump.
[span style=\'font-size:8pt;line-height:100%\']Nokia 770, running latest firmware.
1GB RS-MMC sandisk card
Garmin Etrex Legend GPS/USB Earthmate GPS
Rooted, with an SSH server, VNC viewer, etc.
[/span]

hellbilly

  • Newbie
  • *
  • Posts: 1
    • View Profile
Got Earthmate USB GPS, now what?
« Reply #7 on: April 03, 2005, 01:19:44 pm »
Quote
Bump.

I did some Googling in an attempt to figure out this problem, and I ran across these links:

http://trans.civil.northwestern.edu/~jay/gpsd.html

http://geocities.com/i0xox0i/

I would appreciate if someone with more knowledge of the Zaurus kernel please read through these pages.  It seems to me that there are two options; recompile gpsd for the Zaurus as stated in the first link; or patch the kernel as detailed in the second link.

I don't have a compile environment set up for the Zaurus yet, as I've only recently gotten the Zaurus.  GPS in the car is a killer app for me.

All you gurus out there, please help!

did you ever figure this out?
i am trying to get the usb gps that came with streets and trips working.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=64208\"][{POST_SNAPBACK}][/a][/div]

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Got Earthmate USB GPS, now what?
« Reply #8 on: April 03, 2005, 02:16:18 pm »
Quote
I would appreciate if someone with more knowledge of the Zaurus kernel please read through these pages. It seems to me that there are two options;

Quote
recompile gpsd for the Zaurus as stated in the first link;

This is part of the solution outlined there - you also need to have the USB devfs enabled. I'm not sure whether this is enabled by default on the Z.

Anyone? In any case the patch against gpsd is on the web page, just patch it and build and see whether it works.

Otherwise there's always the kernel module which probably wouldn't be too hard to build. Which kernel are you running (the standard Sharp one I suppose, not OpenZaurus by chance)?


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Gondola

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Got Earthmate USB GPS, now what?
« Reply #9 on: April 04, 2005, 02:57:12 pm »
Actually, it turns out that it's more complex than that.

The posted 2.4.x patch does not work with the Sharp kernel sources.  I tried that.  Someone with more programming experience may be able to update the kernel, but it's not a cut-and-dry kernel patch.

The other option, recompiling gpsd, requires some libs that I didn't have, and I got lost trying to figure out what libs I needed to get it working, and how to compile them.  I think it may need a kernel change either way.  I couldn't get it working, even though I was able to get a compile environment set up and I was able to compile and run a QTopia sample app.

I would really appreciate someone looking into this.  Having recently lost my job, I don't see myself wasting the money for a new non-USB GPS, since the Z is not something I use for work.

Once I have a working GPS, I'd love to work on some map conversion projects, etc, but my Linux C programming skills are meager to say the least.  I'm more comfortable with Perl and PHP.


Quote
Quote
I would appreciate if someone with more knowledge of the Zaurus kernel please read through these pages. It seems to me that there are two options;

Quote
recompile gpsd for the Zaurus as stated in the first link;

This is part of the solution outlined there - you also need to have the USB devfs enabled. I'm not sure whether this is enabled by default on the Z.

Anyone? In any case the patch against gpsd is on the web page, just patch it and build and see whether it works.

Otherwise there's always the kernel module which probably wouldn't be too hard to build. Which kernel are you running (the standard Sharp one I suppose, not OpenZaurus by chance)?


Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=73381\"][{POST_SNAPBACK}][/a][/div]
[span style=\'font-size:8pt;line-height:100%\']Nokia 770, running latest firmware.
1GB RS-MMC sandisk card
Garmin Etrex Legend GPS/USB Earthmate GPS
Rooted, with an SSH server, VNC viewer, etc.
[/span]

Gondola

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Got Earthmate USB GPS, now what?
« Reply #10 on: May 02, 2005, 03:29:29 pm »
Bump.

I'm still interested in getting my GPS working before my upcoming road trip, wedding, and honeymoon.  I'm going to be driving from NC to IN, flying to Vegas for honeymoon, flying back to IN, then driving back to NC.  I'd like to have the GPS available for the trip, but I need someone with more expertise than I to patch the kernel and compile the patched GPSd.

I'll use OZ 3.5.3 if you want to compile for that platform, or stock Sharp ROM, whatever.. as long as I can use a browser and a GPS app.
[span style=\'font-size:8pt;line-height:100%\']Nokia 770, running latest firmware.
1GB RS-MMC sandisk card
Garmin Etrex Legend GPS/USB Earthmate GPS
Rooted, with an SSH server, VNC viewer, etc.
[/span]

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Got Earthmate USB GPS, now what?
« Reply #11 on: May 07, 2005, 01:36:44 pm »
Sorry, I lost track of this thread.

I note from:http://geocities.com/i0xox0i/ that the cypress_m8 module is in the 2.6 kernel now, however that won't help you as I don't think 2.6 is available for the 6000 yet.

I've compiled gped with the emul patch in OE, I've also almost compiled emul itslef, though it fails building sirfmon - is this required?

The .bb files and the emul lib and the ipk of gpsd are all here:

http://students.bath.ac.uk/enpsgp/Zaurus/emul/

Bit of a hack job I'm afraid, but I'm a bit busy - perhaps one of the OE gurus - hrw, mickeyl, etc., will take a look at the emul .bb file and be able to fix it (very easily I imagine).

I saw this:

Quote
You need libusb ( >=0.1.8 ) and kernel 2.6 to compile..

on http://trans.civil.northwestern.edu/~jay/gpsd.html

does this mean you'll need 2.6.x to run it, if so you're out of luck I suppose.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Got Earthmate USB GPS, now what?
« Reply #12 on: May 08, 2005, 10:18:22 am »
Right, Mickeyl has given me a hand, and now the sirftest and emul_test binaries build fine - packaging is still a bit broken (easy to fix I imagine but I don't have time atm).

Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Gondola

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Got Earthmate USB GPS, now what?
« Reply #13 on: May 09, 2005, 11:41:04 am »
Quote
Right, Mickeyl has given me a hand, and now the sirftest and emul_test binaries build fine - packaging is still a bit broken (easy to fix I imagine but I don't have time atm).

Si
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

The 2.4 kernel required patches to use the custom version of gpsd at [a href=\"http://trans.civil.northwestern.edu/~jay/gpsd.html]http://trans.civil.northwestern.edu/~jay/gpsd.html[/url] but I'm not sure about the Earthmate Userland library since there's so little on their page about what it is and how to use it.  From what I understand, they are different ways to solve the same problem.

So you said you compiled it for OE, so what should I be using? OZ 3.5.3, Opie or GPE?
Sharp stock?
« Last Edit: May 09, 2005, 11:41:46 am by Gondola »
[span style=\'font-size:8pt;line-height:100%\']Nokia 770, running latest firmware.
1GB RS-MMC sandisk card
Garmin Etrex Legend GPS/USB Earthmate GPS
Rooted, with an SSH server, VNC viewer, etc.
[/span]

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Got Earthmate USB GPS, now what?
« Reply #14 on: May 09, 2005, 01:39:43 pm »
Quote
The 2.4 kernel required patches to use the custom version of gpsd at http://trans.civil.northwestern.edu/~jay/gpsd.html

Where?

This:

Quote
The patch is retiring. Please take a look at the kernel mode driver by Lonnie Mendez. The driver is working and it is only a mater of time for it to go into the official Linux kernel tree.

Looks like he's talking about a module, however it appears that it's for 2.6.x.

This:

Quote
To use this GPS, we have two choices. The first one is to write a kernel module for this USB2Serial chip. However the current ( upto kerenl 2.6.5 ) usb2serial framework need to be patched in order to support interrupt transactions. The other approach is to utilize the USB DEVFS interface and communicate with the device directly from user space. The later method turned out to be easy.

seems to give two options:

1. patch the kernel to get over the difficulties caused by the usb2serial framework. I don't know whether this problem exists in 2.4.18, I don't know whether the code even exists in 2.4.18. I also don't know where one would find a patch (it seems to me that you would have to patch it yourself).

2. Use USB devfs (I don't know whether this is even supported on 2.4.18), even if it is, I'm afraid I'm not set up to build a kernel for anything other than a c7x0 atm anyway, however someone else may well be able to do so.

I imagine that libusb uses the USB (dev)fs so you will probably have no use for it.

Here (http://geocities.com/i0xox0i/), I read this:

Quote
There is also the EarthMate Userland Library project located here: http://emul.berlios.de
for people using Linux 2.4.x/2.6.x, Mac OS X/Darwin, and BSD.

Note the 2.4.x part.

I have provided the emul lib, and gpsd patched to use it. I've no idea if it'll work or not I'm afraid, but you can only try it out.

Quote
So you said you compiled it for OE, so what should I be using? OZ 3.5.3, Opie or GPE?

OZ 3.5.3, probably Opie, though GPE is an option - depends on what you want by way of apps, or whether you want to use an existing Qtopia (Sharp ROM) app (which will require Opie).

Take a look in the feeds and see if anything catches your eye, or ask on #openzaurus.

Link to images here: http://www.openzaurus.org/official/unstable/3.5.3/sl6000/
Link to main feed: http://www.openzaurus.org/official/unstable/3.5.3/feed/


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva