From: Tim R. <ti...@pr...> - 2012-02-27 17:43:32
|
gokore wrote: > I'm willing to develope to something to use libusb > now on my working there are some error like that "usb bulk write failed" > so I wanted to figuer it out > > at a file that 'linux.c' > > ===================================================================================== > > ioctl(dev->fd, IOCTL_USB_SUBMITURB, &urb); > at that function, return value was '-1' > why was that??? You are diving in to the lowest level without thinking about the bigger picture. The problem is not inside libusb. Show us YOUR source code. What kind of device are you driving? Is this a device you designed? Have you verified that there is a bulk pipe with the endpoint number you are using? Are you reading or writing? Are you sure you are reading from an IN pipe, or writing to an OUT pipe? -- Tim Roberts, ti...@pr... Providenza & Boekelheide, Inc. |