Bluetooth Address same for all dragonboards


#1

Hi,

i have several board, all of them seem to have the same bluetooth address (bd_addr).
is it possible to change this address? how?

Regards,
Amir


#2

Hi Amir,

You can use the btmgmt tool to change your mac address, like this:

btmgmt public-addr 01:02:03:04:05:06

Regards,
Bjorn


#3

thank you Bjorn! that did it.
the address resets when linux restart. is there a way to keep it permanent (other than running the tool each time)?


[Debian] How could we set Bluetooth address BD_ADDR?
#4

Unfortunately not at this point in time.

Setting the mac address as part of the driver initialization is not working consistently, so this support remains on the todo list and have not yet been integrated.

Regards,
Bjorn


#5

I tried this way and address is persistent between boots…

I created below script as btmac.sh

sudo rfkill block bluetooth
chmod 777 /home/linaro/btmgmt
sudo /home/linaro/btmgmt public-addr XXXXXX
sudo rfkill unblock bluetooth

and then navigate to /etc/xdg/lxsession/Linaro/autostart path and add as below
@/home/linaro/btmac.sh

This works fine…

Regards,
Laxman


#6

When I do:sudo btmgmt public-addr 01:02:03:04:05:06

I get:

Set Public Address for hci0 failed with status 0x0b (Rejected)


#7

your controller is very likely running. you need to turn it off before setting the MAC address.