Hi Xiaofan,

Thank you for pointing out the direction. I will focus my effort in figuring 
out valid commands. 

Just curious, when I tried the similar message to the PRINT interface, I got 
some response and it didn't time out. It seems that the behavior of reading 
from a printer is quite different from that of reading from a scanner. Why is 
that?


Thanks,
Charlie

> Hi Wanda,
>
> I have a simple pyUSB code to send and read a message with
>  the scan interface of a multi-functional printer. But I encountered an error
>  when reading back from the scan with the following codes. Although the
>  message I tried to send was a meaningless one, I thought it should
>  return something and not time-out. Please help. I am using pyUSB
> 1.0 in WinVista.

If you are sending a meaningless command to the device and
the device does not understand the command and thus have
nothing to sent back to the host, you will get timeout error in
the in IN transfer (read).

You have to understand how the device works in order to
use libusb/pyusb.



-- 
Xiaofan


------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to