Menu

#68 Buld read operation failed on win7 OS

v1.0_(example)
closed
nobody
None
1
2018-08-31
2013-09-24
snow-stone
No

I am new to study USB communicatin between PC and USB device.
I write a test case and succeed to do bulk write but failed on bulk read operation.
My quesitons are what's the difference between bulk write and bulk read? I know the end point should be different for them. And what else? And how to fix this issue?

Code is like below for buld read operation:
usb_init(); / initialize the library /
usb_find_busses(); / find all busses /
usb_find_devices(); / find all connected devices /
usb_dev_handle* dev = NULL;
if (!(dev = open_dev()))
return false;
usb_set_configuration(dev, 1);
usb_claim_interface(dev, 0);
unsigned char buffer[64] = {0};
int ret2 = usb_bulk_read(dev,0x86,buffer,64,1000);
char * errorChar = usb_strerror();

Discussion

  • Xiaofan Chen

    Xiaofan Chen - 2018-08-31

    Closing old entry. No more using this place for technical support. Please use libusb-win32 mailing list for future discussions.

     
  • Xiaofan Chen

    Xiaofan Chen - 2018-08-31
    • status: open --> closed