Moode Forum
cmd line to remove all Bluetooth paired devices - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: cmd line to remove all Bluetooth paired devices (/showthread.php?tid=6641)



cmd line to remove all Bluetooth paired devices - franktw956 - 06-21-2024

Hi,

May I know the cmd line to remove all Bluetooth paired devices / credential ?
Currently needs to have several clicks...[m] à [Renderers] à [OPEN Bluetooth control] à [REMOVE] one by one...

Thanks !



RE: cmd line to remove all Bluetooth paired devices - Tim Curtis - 06-21-2024

There is a "REMOVE all devices" in the dropdown list.


RE: cmd line to remove all Bluetooth paired devices - franktw956 - 06-22-2024

(06-21-2024, 11:34 AM)Tim Curtis Wrote: There is a "REMOVE all devices" in the dropdown list.

ahhh...yes, I found it, thanks for help !


RE: cmd line to remove all Bluetooth paired devices - Tim Curtis - 06-22-2024

If you ever need to do it from the command line use blu-control.sh

Code:
pi@moode9usb:~ $ sudo /var/www/util/blu-control.sh -h
** blu-control.sh version 1.6
**
** Bluetooth has a range of around 30 feet (10 meters) but range
** will vary depending on obstacles (metal, wall, etc.), device signal
** strength and quality, and level of electromagnetic interferrence.
**
** Usage: blu-control.sh [OPTION]
**
** -i Initialize/reset controller
** -s Scan (BR/EDR only) and trust devices
** -S Scan (LE and BR/EDR) and trust devices
** -p List paired devices
** -c List connected devices
** -l List trusted devices
** -d Disconnect device <MAC addr>
** -r Remove paired device <MAC addr>
** -P Pair with device <MAC addr>
** -C Connect to device <MAC addr>
** -D Disconnect all devices
** -R Remove all devices
** -h Help
pi@moode9usb:~ $



RE: cmd line to remove all Bluetooth paired devices - franktw956 - 06-22-2024

(06-22-2024, 01:41 AM)Tim Curtis Wrote: If you ever need to do it from the command line use blu-control.sh

Code:
pi@moode9usb:~ $ sudo /var/www/util/blu-control.sh -h
** blu-control.sh version 1.6
**
** Bluetooth has a range of around 30 feet (10 meters) but range
** will vary depending on obstacles (metal, wall, etc.), device signal
** strength and quality, and level of electromagnetic interferrence.
**
** Usage: blu-control.sh [OPTION]
**
** -i Initialize/reset controller
** -s Scan (BR/EDR only) and trust devices
** -S Scan (LE and BR/EDR) and trust devices
** -p List paired devices
** -c List connected devices
** -l List trusted devices
** -d Disconnect device <MAC addr>
** -r Remove paired device <MAC addr>
** -P Pair with device <MAC addr>
** -C Connect to device <MAC addr>
** -D Disconnect all devices
** -R Remove all devices
** -h Help
pi@moode9usb:~ $

Yes, this is easier than several clicks, thank you Tim !
Code:
sudo /var/www/util/blu-control.sh -R