Apologies in advance for the rubbish sig line....will re-register on a web account to prevent it happening in future.
> -----Original Message----- > ..snip.. > > > The reason I am looking is that our 'device' sits on > production lines, > > and occasionally, people with a laptop may turn up and wish to move > > data on and off it via USB (easier then ethernet - plug and > go - and > > in fact the ethernet port may be used for other things). The file > > storage gadget seems to be a option to do this, but I get the > > impression it may not be suitable given the above. Is there a more > > appropriate way of using USB to accomplish what we are trying to do? > > That's a good question. > > Depending on your situation, you might want to set up > g_file_storage so that it pretends to have removable media. > Every so often your user program could "remove the media" > (this can be done using sysfs), update the contents of the > backing file, and then "insert the media". If somebody had > attached a laptop and was reading the data at the time, then > the "remove the media" step would fail and your program would > know not to update the contents at that moment. This sounds like a good direction to take, although I am not familiar with how to use sysfs to 'remove the media' - pointers in this direction much appreciated. > > This doesn't allow for dynamic updates while somebody is > attached; I don't think there's any good way to accomplish > that using the USB mass storage protocol. > This don't think this will be an issue - we can always get the device UI to cope with the suggestion above, and only put stuff in to the backing store when appropriate. > Another standard protocol which might be useful is PTP > (picture transfer protocol or something like that). I > haven't used it; it's the sort of thing scanners (and some > digital cameras) employ for transferring images. > But nobody has written a USB gadget driver implementing that protocol. I had seen reference to this....Although I would like to give this a go as it is probably exactly what is required, time is against me for this particular part of the project - there is mucho other code needs to be written just to run the device, never mind get data on and off it! James This message (including any attachments) contains confidential and/or proprietary information intended only for the addressee. Any unauthorized disclosure, copying, distribution or reliance on the contents of this information is strictly prohibited and may constitute a violation of law. If you are not the intended recipient, please notify the sender immediately by responding to this e-mail, and delete the message from your system. If you have any questions about this e-mail please notify the sender immediately. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel