|
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
|
|
> static int print_f0_data(void)
> { > unsigned char data[0x10]; > int r; > unsigned int i; > if (r < 0) You forgot to assign anything to r; did you delete that when writing this mail? Segher ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ Libusb-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/libusb-devel |
|
In reply to this post by liuwang
liuwang wrote:
>> During porting our USB LCD to libusb-1.0 libusb_control_transfer(devh, 0x81, >> USB_RQ, 0xf0, 0, data, sizeof(data), 0) hangs in print_f0_data(void). The call to this libusb_control_transfer seems to be missing. Also, in print_f0_data, r looks uninitialized. Regards, Michael ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ Libusb-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/libusb-devel |
|
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
|
|
Liu Wang wrote:
> Michael, > > Thanks the help. > "r=1" is deleted in the email. No, that's not right. I'm pretty certain the line that you removed was this: r = libusb_control_transfer( devh, 0x81, USB_RQ, 0xf0, 0, data sizeof(data), 0 ); Without that, your code doesn't make any sense. By the way, what do you think that code is doing? You didn't tell us what the value of USB_RQ is, so we can't be certain what you're doing, but this looks like you're trying to do a HID output report. Does your device support this kind of operation? -- Tim Roberts, [hidden email] Providenza & Boekelheide, Inc. ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ Libusb-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/libusb-devel |
|
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
|
|
liuwang wrote:
> > Appreciate the help. > > You are right. > > The following was removed by accident. > > r = libusb_control_transfer( devh, 0x81, USB_RQ, 0xf0, 0, data > sizeof(data), 0 ); > > And USB_RQ was defined as : > > #define USB_RQ 0x06 // get device descriptor. > > > > Our small character LCD module supports the operation when using > libusb 0.1 and we are updating it to libusb-1.0. > So that's a request to fetch a HID-class-specific descriptor. A wValue of 0x00F0 is not legal for that kind of request. Is this some custom extension that your device provides? -- Tim Roberts, [hidden email] Providenza & Boekelheide, Inc. ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ Libusb-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/libusb-devel |
| Powered by Nabble | Edit this page |
