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
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
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
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)?
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
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
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)
your controller is very likely running. you need to turn it off before setting the MAC address.