On Mon, 30 Jul 2007, Lucio Crusca wrote:

> Hello *,
> 
> I have a problem with bluetooth USB dongles. 
> 
> Scenario: a number of unattended systems have a USB bluetooth dongle that
> send files to nearby bluetooth devices. The systems are built on top of
> Debian GNU/Linux Etch i386 and use obexftp 0.19 to send files.
> 
> Sometimes it happens that something between bluez and the hardware stops
> working, so in such cases my script issue "hciconfig hci0 reset" to
> recover and everything comes back ok. More rarely the reset method seems
> to be insufficient, because the device disappears even from lsusb output.
> The only solution I've found in such cases is to unplug and replug the
> dongle (even a few reboot cycles aren't enough). However that solution is
> not acceptable for me, since the systems should run unattended.
> 
> Do you know how could I simulate unplug/replug events from software? Or
> any other solution that can run unattended?

There is no way to simulate unplug/replug from software for devices 
attached directly to the computer.  However it is possible for devices 
plugged into some brands of hub.  See this web page:

http://www.gniibe.org/ac-power-by-usb/ac-power-control.html

Alan Stern


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to