peter wang | 7 May 2012 08:22
Picon

[LibusbK-devel] how to read data from interrupt endpoint.

Hi all:
          I wan to read data from interrupt endpoint, My firmware work is done, below is description.
 
Offset
Field
Size
Value
Description
0
bLength
1
07h
 
1
bDescriptorType
1
05h
Endpoint
2
bEndpointAddress
1
81h
1 In
3
bmAttributes
1
03h
Interrupt
 
1..0: Transfer Type
 
......11 
Interrupt
 
7..2: Reserved
 
000000.. 
 
4
wMaxPacketSize
2
0008h
8 bytes
6
bInterval
1
0Fh
2048000 us
Offset
Field
Size
Value
Description
0
bLength
1
05h
 
1
bDescriptorType
1
25h
          Video Control Interrupt Endpoint
2
 
3
03 08 00 
       
 
I used UsbK library.
 
1,  when I use the demo - xfer-sync to test,  the program will not return when run to this line:
xfer-sync.c

success

= Usb.ReadPipe(usbHandle, EP_ADDRESS, myBuffer, sizeof(myBuffer), &transferredLength, NULL);  

 

2, when I use the demo - xfer-async to test, the function

xfer-async.c

success

= OvlK_WaitOrCancel(myRequest->Ovl, ASYNC_TIMEOUT_MS, &myRequest->TransferLength);

will return errorno=000004C7h (The operation was canceled by the user).

and in usblyzer, it printf: URB Status USBD_STATUS_CANCELED

thanks in advance.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
peter wang | 7 May 2012 08:47
Picon

Re: [LibusbK-devel] how to read data from interrupt endpoint.

please ingnore this mail, I just found the issue, FW's problem.
thanks!

On Mon, May 7, 2012 at 2:22 PM, peter wang <peter.wang1013 <at> gmail.com> wrote:
Hi all:
          I wan to read data from interrupt endpoint, My firmware work is done, below is description.
 
Offset
Field
Size
Value
Description
0
bLength
1
07h
 
1
bDescriptorType
1
05h
Endpoint
2
bEndpointAddress
1
81h
1 In
3
bmAttributes
1
03h
Interrupt
 
1..0: Transfer Type
 
......11 
Interrupt
 
7..2: Reserved
 
000000.. 
 
4
wMaxPacketSize
2
0008h
8 bytes
6
bInterval
1
0Fh
2048000 us
Offset
Field
Size
Value
Description
0
bLength
1
05h
 
1
bDescriptorType
1
25h
          Video Control Interrupt Endpoint
2
 
3
03 08 00 
       
 
I used UsbK library.
 
1,  when I use the demo - xfer-sync to test,  the program will not return when run to this line:
xfer-sync.c

success

= Usb.ReadPipe(usbHandle, EP_ADDRESS, myBuffer, sizeof(myBuffer), &transferredLength, NULL);  

 

2, when I use the demo - xfer-async to test, the function

xfer-async.c

success

= OvlK_WaitOrCancel(myRequest->Ovl, ASYNC_TIMEOUT_MS, &myRequest->TransferLength);

will return errorno=000004C7h (The operation was canceled by the user).

and in usblyzer, it printf: URB Status USBD_STATUS_CANCELED

thanks in advance.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
Ekkehard | 7 May 2012 09:09
Favicon

Re: [LibusbK-devel] how to read data from interrupt endpoint.

Don't worry!
Often just writing down the case, opens the mind for a different approach -
and a solution is found.
On the other hand if somebody runs into the same trap, your posting may
point him/her to take a closer look in the FW
Greets Ekkehard

--
View this message in context: http://libusb.6.n5.nabble.com/LibusbK-devel-how-to-read-data-from-interrupt-endpoint-tp5690302p5690360.html
Sent from the LibUSB Dev - Win32 mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

Gmane