Hi.

I am new to pyusb and the mailing list.

I am trying to decode the protocol of a USB RVG (x ray camera device)
using usbmon [1] (not the stock usbmon of the kernel as it is known to
truncate the data in the logs).

I am able to play back Ci and Co events using pyusb and have reached where
I am not able to play the Ii event shown by usbmon as:

1.007.001 S Ii 0002

With pyusb I am trying to mimic the above as:

dev.read(0x81,2) # 0x81 is the only Interrupt IN endpoint

On this I get 'Operation timed out'. Even after exposing the camera to the
x rays it still gives the same exception.

Also tried adding timeout value to as high as 10000ms, but get the same
exception.

Firstly, is my understanding that 'S Ii 0002' of usbmon maps to
dev.read(0x81,2) correct or is there any other way to interact with
interrupts?

Secondly, what does 'timeout' indicate : not being able to communicate on
the end point or the endpoint has no data and hence it doesn't respond
back?

[1] https://github.com/swetland/usbmon


_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to