ts-7000
[Top] [All Lists]

[ts-7000] Mount/umount detection of USB slave device

To:
Subject: [ts-7000] Mount/umount detection of USB slave device
From: "jnavarro.groups21" <>
Date: Fri, 13 Aug 2010 12:25:18 -0000
 
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/

<Prev in Thread] Current Thread [Next in Thread>
  • [ts-7000] Mount/umount detection of USB slave device, jnavarro.groups21 <=
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU