Download the new Linux Driver

Download Now

Wi-Fi Bluetooth for Linux

TeTa_4635116
Level 1
Level 1

Hello,

My company is going to use Raspberry Pi 4 as "heart" of product development board. For testing/development purpose we need to simulate different Bluetooth devices and to achieve this we need to change Raspberry Bluetooth MAC address. Unfortunately "bdaddr" that is working on Raspberry Pi 3 is not working on Raspberry Pi 4" - "Unsupported manufacturer" is returned as command execution result:

sudo ./bdaddr -i hci0 -r 00:11:22:33:44:55

Manufacturer:   Cypress Semiconductor Corporation (305)

Unsupported manufacturer

Could you please advise how can I change Bluetooth MAC address on Raspberry Pi 4 with latest Raspbian Linux on board?

Many thanks in advance.

0 Likes
1 Solution
VinayakS_26
Moderator
Moderator 100 likes received 50 likes received 25 likes received
Moderator

Hi TeTa_4635116 ,

Try using the hcitool utility in the following format: {hcitool cmd <ogf> <ocf> <params>}

Firstly, Read the BD ADDR using the following command

>>>hcitool cmd 0x04 0x009

. . .

Write the BR_ADDR using the following command

>>>hcitool cmd 0x3f 0x001 <BD_ADDR>

eg: hcitool cmd 0x3f 0x001 0x01 0x23 0x45 0x67 0x89 0xab

sets BD address as 01:23:45:67:89:AB

Regards,

VinayakS_26

View solution in original post

3 Replies
VinayakS_26
Moderator
Moderator 100 likes received 50 likes received 25 likes received
Moderator

Hi,

Have you tried using the hcitool utility for setting the BD address

Regards,

VinayakS_26

0 Likes
TeTa_4635116
Level 1
Level 1

Hi VinayakS_26,

Do you have in mind any specific command of hcitool? I've already checked documentation and cannot see any command for MAC address manipulating.

Regards,

Ted

0 Likes
VinayakS_26
Moderator
Moderator 100 likes received 50 likes received 25 likes received
Moderator

Hi TeTa_4635116 ,

Try using the hcitool utility in the following format: {hcitool cmd <ogf> <ocf> <params>}

Firstly, Read the BD ADDR using the following command

>>>hcitool cmd 0x04 0x009

. . .

Write the BR_ADDR using the following command

>>>hcitool cmd 0x3f 0x001 <BD_ADDR>

eg: hcitool cmd 0x3f 0x001 0x01 0x23 0x45 0x67 0x89 0xab

sets BD address as 01:23:45:67:89:AB

Regards,

VinayakS_26