Date: Fri, 08 Apr 2005 09:48:43 -0700 From: Maksim Yevmenkin <maksim.yevmenkin@savvis.net> To: David Gilbert <dgilbert@dclg.ca> Cc: freebsd-hackers@freebsd.org Subject: Re: Tricky USB device. Message-ID: <4256B5EB.9080506@savvis.net> In-Reply-To: <16982.46075.115518.130213@canoe.dclg.ca> References: <16982.46075.115518.130213@canoe.dclg.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
David, > I've got an "OnTrak" ADU208. It's a USB device that has 8 relays and > 8 ttl inputs. The documentation says it uses two interupt endpoints > ... one input and one output. It seems to expect small text commands. ok > Now... firstly, uhid is probing it as uhid0: > > uhid0: www.ontrak.net ADU208 USB Relay I/O Interface, rev 1.10/0.00, addr 4, iclass 3/0 > > ... I don't know if this is hindering me. The usbhid* commands aren't > particularly helpful. The port udesc_dump seems only to work on ugen > devices ... and ugen doesn't pop up for this device. how about getting usb hid descriptor, parsing and dumping it? check out libusbhid - man usbhid(3). it might be that all you need to do is to create hid report and send it to the device. libusbhid(3) will help you with that. > I suppose I need to know how to supress uhid ... or to make ugen show > up. It would also be nice to know how to generically poke the > interupt enpoints... well comment out 'device uhid' from your kernel config and rebuilding the kernel should do the trick. max
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4256B5EB.9080506>