Re: [Libphidget-devel] libphidget newbie post...
Status: Alpha
Brought to you by:
jstrohm
|
From: Tom B. <tb...@ba...> - 2003-06-29 10:19:05
|
On Thu, 26 Jun 2003, Tom Brown wrote:
>
> sorry, missed some items that may be relevent... linux "dmesg" shows the
> following:
>
> usb.c: usbdevfs driver claimed interface caa63380
> usb.c: ignoring set_interface for dev 9, iface 0, alt 0
> usb.c: usbdevfs driver claimed interface caa63380
> usb.c: ignoring set_interface for dev 9, iface 0, alt 0
> usb_control/bulk_msg: timeout
> usbdevfs: USBDEVFS_BULK failed dev 9 ep 0x81 len 7 ret -110
OK, I'm stuck. I can't get past the above. I've turned on all the
debugging in libusb and it's just saying the same thing. There
are some issues in the code (talking the endpoint 1 when it's
really 0x81), but libusb is correcting it with |= 0x80 .... It
took me a while to figure out why the kernel was reporting 0x81
when 0x01 was being specified. I added a usb_resetep after the
timeout, without it my mouse was locking up... which is _really_
wierd hhmm, maybe that is the problem... (I don't think so, the
absence or presence of hid and friends doesn't seem to be
relevent when things are working)
OK, after FAR too much messing around, it seems the buffer
lengths have to match the USB packet sizes perfectly... changing
the buffer from 7 to 8 chars in phidgetInterfaceKit488Read (which
I've hijacked) makes the code run... yeah! (I had already a 14 or
16 byte buffer...)
enum ELPError phidgetInterfaceKit488Read
{
// char buffer[7];
char buffer[8];
... that's _definately_ enough for tonight... (3am... yuck)
|