Hi. I have a TS-7553 and i'm using it to connect it to a host through the
slave USB port. Using g_file_storage module the host sees my TS-7553 as a USB
memory device, and I can mount a filesystem from my choice from the board.
The user can mount and unmount the TS-7553 from the host (in windows, through
"disconnect safely", in linux with "mount" and "umount" commands, etc).
My question is: from the TS-7553, how can i detect when the USB slave port is
"mounted" or "unmounted" from the host side?
In Mac OS X is pretty simple. Watch the TS-7553 file
"/sys/devices/gadget/gadget-lun0/file", that shows the devices mounted on the
Mac. With windows and linux hosts, this files *always* shows the devices used
by g_file_storage, regardless of their "mount/umount" state.
How to detect mount/umount operations on Windows and Linux?
Thanks in advance
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|