Re: software unplug

"Felipe Balbi" <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
Hi Lucio,

On 7/30/07, Lucio Crusca <[email protected]> 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?

This is not the right way to do it. Provide us more detailed
information such as dmesg output. But remember building your kernel
with  CONFIG_USB_DEBUG enabled.

We need to see why your device is going to sleep or whatever...

Another good information would be your kernel version.

Thanks

>
> Thanks in advance,
>
> Lucio.
>
>
> -------------------------------------------------------------------------
> 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/
> _______________________________________________
> [email protected]
> To unsubscribe, use the last form field at:
> https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
>


-- 
Best Regards,

Felipe Balbi
[email protected]

-------------------------------------------------------------------------
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/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.