Restarting USB Bluetooth Dongles immediately


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Restarting USB Bluetooth Dongles immediately
# 1  
Old 02-03-2011
Data Restarting USB Bluetooth Dongles immediately

Hi @all,

i am currently having a Problem:

I want to restart 2 USB Bluetooth Dongles from the shell at the same time. It is very important that they are restarted nearly simultaneously, so that their clocks are starting to run at the same time.

At the moment i am using a command called "bccmd -d hci0 coldreset" to restart the hci0 device and afterwards i am restarting the hci1 device with the same command. The problem here is, that as it seems, there is a very short random timedifference between these restarts and thus the clocks of the Bluetooth USB Dongle are not started at the same time.

I ve already tried to use "nice" to increase the commands priority but that did not help.

So does anybody have an idea how this simultaneous restart can be achieved...i would be really thankful for any help.

Thanks in advance for your help
# 2  
Old 02-03-2011
Code:
# bccmd -d hci0 coldreset & bccmd -d hci0 coldreset &
# wait

# 3  
Old 02-03-2011
Code:
bccmd -d hci0 coldreset & bccmd -d hci1 coldreset &
wait

# 4  
Old 02-03-2011
Thank you so far =)....i ll try this.
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Linux

Bluetooth

I have a bluetooth device, and when i search for a device it doesnt show anything,i have downloaded bluman blueberry bluedevil bluez but nothng worked,im using linux mint 18.2. (2 Replies)
Discussion started by: Lee win
2 Replies

2. UNIX for Dummies Questions & Answers

Restarting/Resetting a USB Port?

Hello All, So I have been running into an issue with a USB Modem where if someone ends their dialin connection abruptly from the other side the modem gets stuck and I found that the only way to fix it is to either unplug the USB Modem and plug it back in, or just reboot. I'd rather not reboot... (5 Replies)
Discussion started by: mrm5102
5 Replies

3. Shell Programming and Scripting

please tell immediately

what is the script to take files from ftp to unix server and unzipped the files (1 Reply)
Discussion started by: sunilamarnadh
1 Replies

4. UNIX for Dummies Questions & Answers

USB-USB cable between linux and windows computers

Is there an easy way to setup a cross-over cable (USB-USB) between a linux box and a windows PC? My 2 machines are next to each other but I really do not want to keep transfering my files using my USB drive. Thanks! (4 Replies)
Discussion started by: Xterra
4 Replies

5. Linux

please help immediately

how can i check if the size of my file is greater than 5MB and if it is so then how can I direct my data to another new file. the data will be in the form of SQL query (4 Replies)
Discussion started by: infyanurag
4 Replies

6. UNIX for Dummies Questions & Answers

I need help immediately. Please help me

Hi Everyone, I am writing a script, in that i want to find out whether my disk space usage capacity extends more than 98%. If my disk space capacity extends more than 98% i want to print that the space capacity is running out of space otherwise i want to print only the capacity of the space... (4 Replies)
Discussion started by: Sheethal
4 Replies
Login or Register to Ask a Question