- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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,