[<<][simtrace][>>][..]
Fri Aug 9 14:40:32 EDT 2013

Flakey USB

Having trouble with USB.  Had some hard crashes when sending control requests.

Might be my machine.  Need to try on laptop.



Also, for some bizarre reason, the APDU is echoed back:

-W- R-APDU data size incorrect size:7 != r_apdu_size:2
C-APDU:00A40004023F00
R-APDU:00A40004023F00

this happened before
maybe time to get rid of the CDC stuff

let's try to get control transfers to work.

current problem:

>>> ctrl_IN()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "test-usb.py", line 31, in ctrl_IN
    index=0)
usb.USBError: error sending control message: Connection timed out

[ 4399.020884] usb 4-2.4.2: usbfs: USBDEVFS_CONTROL failed cmd python rqt 192 rq 123 len 0 ret -110
[ 4400.020787] usb 4-2.4: clear tt 1 (8250) error -110
[ 4405.940887] hub 4-2.4:1.0: cannot reset port 1 (err = -110)
[ 4406.436308] hub 4-2:1.0: hub_port_status failed (err = -110)
[ 4406.940853] hub 4-2.4:1.0: cannot reset port 1 (err = -110)
[ 4407.940898] hub 4-2.4:1.0: cannot reset port 1 (err = -110)

-W- Vendor_RequestHandler
-W- USBGenericReques


But the ctrl_OUT() doesn't crash:
-W- Vendor_RequestHandler
-W- USBGenericRequest_OUT




[Reply][About]
[<<][simtrace][>>][..]