For example, I have a USB camera connected to my USB port, and I should know Bus number and Device number, you can get this information from console, or from /var/log/messages.
I know that this cam is "usb 1-2", than I open this: /sys/bus/usb/devices/usb1/1-2 
and preform  this: echo 0 > bConfigurationValue to disable device
and  echo 1 > bConfigurationValue to enable it.

That's it.
 
--
Rogoshchenkov Nikolay


On Wed, Sep 26, 2012 at 10:35 AM, zhonghua <zhonghua@sics.se> wrote:
Hi lists,

I am trying to control the USB host port. That is to turn on or off the power of this port to control a linked node (Tmote Sky). I tried it as the suggestion of Nikolay Rogoshchenko, which is playing with files of
*/sys/bus/usb/devices/usb<n>/power/**
 

But I don't know how to run these files. Does anyone know how to play with them?



Sincerely,


Zhonghua

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users