The problem is not the protocol, the GPS should be in NMEA mode. Indeed,
if I connect it to my desktop running Ubuntu it is detected, and I'm
able to get data from it, but just because the correct garmin_gps module
is loaded. The problem is that that module is only available for the
kernels 2.6, and I have the 2.4 on my router. Anyway the GPS is detected
correctly from the router:
[EMAIL PROTECTED]:~#lsusb
Bus 004 Device 001: ID 0000:0000  
Bus 004 Device 008: ID 05e3:0608 Genesys Logic, Inc. 
Bus 004 Device 009: ID 0930:6540 Toshiba Corp. 
Bus 004 Device 011: ID 091e:0003 Garmin International GPSmap 60C / GPS
18 / Vista C

but for some reason gpsd can't get the position from it (I have 
GPSD,P=?, instead of GPSD,P='some position value').

On Thu, 2008-05-29 at 18:45 -0400, Mark Kelly wrote:
> Very interesting, I have about a half dozen of the GPS18's in the
> serial version and they all work the way as I described.  I can't
> believe they would lock down only the USB versions to use a
> proprietary protocol.  
> 
> Did you try to use sirfmon on a pc to see if it would put it in NMEA
> mode?  It seems like Garmin has a winders application that's free that
> will also switch the device to NMEA output.
> 
> On Thu, 2008-05-29 at 14:27 -0700, Geoff Levand wrote: 
> > Hi,
> > 
> > Mark Kelly wrote:
> > > You do not need any garmin drivers, as long as the device is set to
> > > standard NEMA output, you can install picocom and see the stream.
> > > 
> > > #picocom -b4800 /dev/tts/0
> > > 
> > > If it's stuck in binary mode you want see any useful info.
> > > 
> > > sirfmon is in gpsd utilities and will switch the device back to NMEA
> > > mode so you can see the stream, but sirfmon is not in the gpsd package
> > > for openwrt, you will need to interface with your pc to put it in NMEA 
> > > mode.
> > > 
> > > 
> > > On Thu, 2008-05-29 at 13:54 -0700, Geoff Levand wrote:
> > >> Massimiliano Marcon wrote:
> > >> > Hello,
> > >> > 
> > >> > I'm trying to make a usb GPS (Garmin18) work with a linksys wrtsl54gs.
> > >> > I'm running on it whiterussian 0.9. I installed the packages
> > >> > kmod-usb-serial and kmod-usb-serial-pl2303, now as soon as I connect it
> > >> > to the usb port I see it as /dev/usb/tts/0, and dmesg says:
> > >> > usbserial.c: Generic converter detected
> > >> > usbserial.c: Generic converter now attached to ttyUSB0 (or usb/tts/0 
> > >> > for
> > >> > devfs)
> > >> > 
> > >> > So in theory I should be able to invoke a cat /dev/usb/tts/0 and see
> > >> > something, instead I don't see anything. If i run gpsd, the daemon 
> > >> > which
> > >> > get data from a gps device I don't get any information as well.
> > >> > 
> > >> > Any idea about this issue?
> > >>
> > >> This is not specific to OpenWRT.  You need to use the garmin driver
> > >> garmin_gps.  It emulates a serial device.  Look for it using the
> > >> lsmod command.
> > >>
> > >> You need to send the device a command before it will send back data, so
> > >> a cat will not work.
> > 
> > Not sure if it is the same device, but I saw this on the garmin site:
> > 
> > GPS 18 USB — has A-style USB connector, compatible with USB 2.0 and
> > 1.1 full-speed hosts; can output data in Garmin proprietary format only.
> > 
> >   https://buy.garmin.com/shop/shop.do?cID=158&pID=223
> > 
> > -Geoff
> > 
> > _______________________________________________
> > openwrt-devel mailing list
> > openwrt-devel@lists.openwrt.org
> > http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to