Re: corresponding callout device?
Greg Troxel <gdt <at> ir.bbn.com>
2007-10-03 20:47:58 GMT
"James Hartley" <jjhartley <at> gmail.com> writes:
> I'm apparently not understanding callout devices well enough.
No, that's not the problem
> I would like to observe the NMEA sentence traffic generated by a USB
> GPS device. When attached to a 4.0_RC1 system, I see the following
> messages on the console:
> uhidev0: DeLorme Publishing DeLorme USB Earthmate, rev 1.00/0.01, addr
> 4, icleass 3/0
> uhid0 at uhidev0: input=32, feature=5
> In looking at the manpage for uhid(4), I'm not seeing information on
> what is the corresponding device name which can be used with cu(1).
> Any clarification anyone can provide would be greatly appreciated.
uhid is about reading knobs, not about serial ports. The earthmate
probably has several endpoints and one is probably serial. So, the USB
code needs to figure this out and make the serial port available,
probably through ugensa. We did that for a high-end GPS that had
serial-over-USB and was ugensa-compatible once we added the descriptor.
So, you might modify the USB code to not attach as uhid, and to use
ugensa, and see where you get with that. The recent commit to exclude
APC UPSes from uhid would be helpful as an example.
I'd also look on the gpsd homepage and lists to see how they deal - I
think gpsd people use earthmates. Or check out how OpenBSD deals with