>> results = readerHandler.controlMsg(64, msg_str, data, timeout=1000)
> The correct prototype for the method controlMsg is
> controlMsg(requestType, request, buffer, value = 0, index = 0, timeout
> = 100),
> thus you should at least supply the requestType and request
> parameters, which is not happening here. Notice that request value is
> a value meaningful only to your request, but requestType is bit field
> value with format specified in the USB spec.

Moreover, the data do not seem to match the initial example
 >> msg_str = "020200013803"
would likely be
  msg_str = binascii.unhexlify("020200013803")

Cheers,
Manu

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to