I do not have any experience for subject of using a hard drive with pyusb.
But my personal guess would be to send the data byte by byte with some
header bytes to place it into right position in the drive table.
Kaan
2010/10/9 Ladislav Szolik <szolik.ladis...@gmail.com>
> 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?
>
> Thanks,
> Lacko
>
>
>
> ------------------------------------------------------------------------------
> 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
>
>
------------------------------------------------------------------------------
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