From: Johannes E. <joh...@er...> - 2004-03-10 17:36:54
|
On Sat, Mar 06, 2004, Scott Cowley <sco...@li...> wrote: > What am I doing wrong here ? HID device, (delorme earthmate): > Thank you for any help! > ------------------------------------------------------------------------- > struct usb_bus *bus; > struct usb_device *dev; > > int j; > unsigned char rdstg[45]; > usb_dev_handle *udev; > > usb_init(); > usb_find_busses(); > usb_find_devices(); > udev = usb_open(dev); /* (found on correct device) */ > > >>>>> j = usb_interrupt_read( udev, 81, rdstg, 32, 16); <<<<<< > (j is returned as -1) You probably want to use 0x81, not 81. > iInterface: 0 > bEndpointAddress: 81h > bmAttributes: 03h > wMaxPacketSize: 32 > bInterval: 6 > bRefresh: 0 > bSynchAddress: 0 > bEndpointAddress: 02h > bmAttributes: 03h > wMaxPacketSize: 32 > bInterval: 6 > bRefresh: 0 > bSynchAddress: 0 JE |