Thanks i found i need rewrite driver of USB to create Endpoint right?and there
are two more questions, how can i get the real time transfer speed of USB? I
did't found any function can do it so i start to rewrite core.py to make it. Is
there any easy way for it? And how can i check the transfer is success? the
device.write return the number of bytes but when i use Unicode like transfer
Chinese the length is different
On Sun, Aug 4, 2013 at 4:30 PM, cheng shen <jimmjimmshen@...> wrote:
> Hi, I'm new for python and want to develop a USB communication module
> which need to transfer data with interrupt mode or bulk mode(large size
> file), then I found Pyusb but I’m so confuse with how to set the
> configuration, interface and endpoint with my preset? Can I use my module
> without libusb? And which software used to trace data transfer of USB port?
I think you will need to go through some tutorials about USB first.
http://www.usbmadesimple.co.uk/
Then go through the pyusb tutorial here.
http://pyusb.sourceforge.net/docs/1.0/tutorial.html
A more advanced pyusb example here.
http://learn.adafruit.com/hacking-the-kinect/
pyusb will depend on libusb (either libusb-0.1/libusb-win32 or
libusb-1.0/libusbx). So you need libusb.
As for USB sniffer, it will depend on the OS you use. Under
Linux, you can use kernel built-in usbmon. Under Windows
you can use various sniffer.
Ref: http://www.microchip.com/forums/m493704.aspx
--
Xiaofan
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users