Hello! My english is bad (I studied German,But did not learn
![Smiley :)](https://www.eevblog.com/forum/Smileys/default/xsmiley.gif.pagespeed.ic.R8GFI-pF6f.png)
) . Sorry.
![Embarrassed :-[](https://www.eevblog.com/forum/Smileys/default/xembarrassed.gif.pagespeed.ic.zcm3EmNu9T.png)
I buy Flir One Gen 2. I connect Flir One to PC. I read this thema and create my programm for Windows XP. Tomas123, many thanks for the your program!
I use usblib v1.26, but ep 0x83 and ep 0x85 received is error: "libusb0-dll:err [submit_async] submitting request failed, win error: The parameter is incorrect".
![Banging Head |O](https://www.eevblog.com/forum/Smileys/default/bangheadonwall.gif.pagespeed.ce.8iLbFYV4Bc.gif)
Algorithm:
1) usb_init(); usb_find_busses(); usb_find_devices().
2) Find device. USBDeviceHandle=usb_open(dev).
3) usb_set_configuration(USBDeviceHandle,3).
4) usb_claim_interface(USBDeviceHandle,0); usb_claim_interface(USBDeviceHandle,1); usb_claim_interface(USBDeviceHandle,2).
5) Stop inerface 1 and 2.
usb_control_msg(USBDeviceHandle,1,0x0b,0,2,data,
0,100); - Why "0"?
usb_control_msg(USBDeviceHandle,1,0x0b,0,1,data,
0,100) - Why "0"?
6) Start interface 1.
usb_control_msg(USBDeviceHandle,1,0x0b,1,1,data,
0,100) - Why "0"?
7) Read 0x81: usb_bulk_read(USBDeviceHandle,0x81,Data,SizeOfData,10);
![Cool 8)](https://www.eevblog.com/forum/Smileys/default/xcool.gif.pagespeed.ic.cOxV6sPNRd.png)
Read 0x83: usb_bulk_read(USBDeviceHandle,0x83,Data,SizeOfData,10);
9) Start interface 2.
usb_control_msg(USBDeviceHandle,1,0x0b,1,2,data,
2,200) - Why "2"?
10) Read 0x81: usb_bulk_read(USBDeviceHandle,0x81,Data,SizeOfData,10);
11) Read 0x83: usb_bulk_read(USBDeviceHandle,0x83,Data,SizeOfData,10);
12) Read frame: usb_bulk_read(USBDeviceHandle,0x85,Data,SizeOfData,100);
13) go to 10
In line 11,12 received error (The parameter is incorrect). In line 10 - time out.
Maybe someone knows what the problem is? Thanks.
Programm (russian language in log file and text!).