On Sat, Oct 9, 2010 at 10:23 PM, Ladislav Szolik
<szolik.ladis...@gmail.com> wrote:
> Hy all, firstly sorry for my english.
> I have a school project which deal with the communication via USB. My first
> issue is realize a file transfer to usb storage with python. For USB
> communication I choosed PyUSB, I work on Ubunty 10.04. I studied this
> tutorial : http://pyusb.sourceforge.net/docs/1.0/tutorial.html and
> spec. http://www.beyondlogic.org/usbnutshell/usb6.shtml. But the whole thing
> with the communication is not clear for me.
> I made a program, which recognize my usb mass storage. So I get IdVendor and
> ProductId.
> Question: how can I write a file to storage instead of string?

Answer: forget about this. This is better not to do with libusb/pyusb but
rather the file system APIs. The file system is rather complicated
and the OS has already done the abstraction for you. libusb/pyusb
are low level libraries. So you have to re-implement the complex
OS file system related things on top of pyusb/libusb. I doubt this
can be done in a reasonable time frame of a student project.


-- 
Xiaofan

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to