You could try using the hcidump
utility from the package bluez-hcidump
to monitor your bluetooth devices and gain in-depth information:
sudo apt-get install bluez-hcidump
In the package description, it is noted that:
The hcidump utility allows the monitoring of Bluetooth activity.
It provides a disassembly of the Bluetooth traffic and can display
packets from higher level protocols such as RFCOMM, SDP and BNEP.
You can use the utility to log the output from your device to screen or file; where hciX
is your own bluetooth device (hci0 is the default and used if you don't specify anything with -i
), you can run:
sudo hcidump -x -i hciX
You can save the dump to file by appending to the command -w ~/output
, and if you specifically want to know about the audio data you can use the -A
switch and thereby extract SCO audio data, although in this case you must always specify an output file:
sudo hcidump -x -A -i hciX -w ~/output
You can view a saved dump file by using
sudo hcidump -r ~/output
There are a lot more specific options that you might want to investigate; you can filter by packet type if you want, as by default all packets are dumped. Please see man hcidump
or the Ubuntu manpages online for more information.
The only other option is to install wireshark
and see if it can detect your devices; if it can, it will be able to analyse usb and bluetooth traffic, as noted here, but hcidump
should give better results.
To enable a Bluetooth audio sink in pulseaudio we need to make sure that pulseaudio-module-bluetooth
is installed.
Then we also have to load the pulseaudio module module-bluetooth-discover
to enable creating an output sink for pulseaudio. This can be done by adding the following line to our /etc/pulse/default.pa
:
load-module module-bluetooth-discover
To switch the output sink to the headset whenever it is present we can also add the following module here:
load-module module-switch-on-connect
Settings take effect after a restart of the pulseaudio server either by log out and log in or with
pulseaudio -k
Switching to the Bluetooth audio sink can also be done with pavucontrol
.
Best Answer