Subject: Re: USB GPS on NetBSD
To: David Howland <dhowland@users.sourceforge.net>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: tech-kern
Date: 05/02/2007 16:04:43
On Wed, 02 May 2007 15:44:12 -0400
David Howland <dhowland@users.sourceforge.net> wrote:

> Steven M. Bellovin wrote:
> > the ucom.  The question is why ucycom isn't picking up the device.
> > I'd check the vendor and product ids against the table in ucycom.c.
> 
> Thats the first thing I did.
> 
> ucycom.c seems to support two devices...
> 
> Static const struct usb_devno ucycom_devs[] = {
> 	{ USB_VENDOR_CYPRESS, USB_PRODUCT_CYPRESS_USBRS232 },
> 	{ USB_VENDOR_DELORME, USB_PRODUCT_DELORME_EARTHMATE },
> };
> 
> 
> This seems to match with the definitions in usbdevs.h
> 
> # cd /usr/src/sys
> # search EARTHMATE \*.c
> ./dev/usb/ucycom.c:     { USB_VENDOR_DELORME,
> USB_PRODUCT_DELORME_EARTHMATE }, # search EARTHMATE \*.h
> ./dev/usb/usbdevs.h:#define     USB_PRODUCT_DELORME_EARTHMATE
> 0x0100          /* Earthmate GPS
> */ ./dev/usb/usbdevs_data.h:           USB_VENDOR_DELORME,
> USB_PRODUCT_DELORME_EARTHMATE,
> 

Right, but what are the numbers the device is emitting -- I didn't see
any in the dmesg to see if they matched the .h file.



		--Steve Bellovin, http://www.cs.columbia.edu/~smb