ConnectionStatus: DeviceConnected
Current Config Value: 0x01
Device Bus Speed: Full
Device Address: 0x01
Open Pipes: 2
Endpoint Descriptor:
bEndpointAddress: 0x01 OUT
Transfer Type: Bulk
wMaxPacketSize: 0x0040 (64)
bInterval: 0x01
Endpoint Descriptor:
bEndpointAddress: 0x81 IN
Transfer Type: Bulk
wMaxPacketSize: 0x0040 (64)
bInterval: 0x01
I checked again, and i found out boonlean success = false at BeginInvoke and EndInvoke. But error in listbox:
"The attempt to read bulk data has failed" at GetReceivedBulkData; and (ar.Iscomplete = true).
I don't understand about BeginInvoke and EndInvoke.
I want my software C# receive data when have a card pass and kit send data. Don't press button as your application. How can i do?
I know i must to create a thread. But i don't know how to create. Where is in your winusb project? I don't use button for receive data, because kit can send data whenever. I just want to receive when data arrive. In COM, it has OnComm, so in usb how must i do?
I saw my device speed = Full in USBView, but in your project i receive speed = Low. What are errors?
WinUsb_QueryPipe
(myDevInfo.winUsbHandle,
0,
System.Convert.ToByte(i),
ref pipeInfo);
why was it used twice? i=0 and i=1. For pipeIN vĂ pipeOut?
I just only read data when it arrive. And have some problems above.
I hope you will help me. Thank you very much.