This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BLE configuring Signal Strength

Hi,

I am building a device to act as an iBeacon, with other services layered on top. This is based on a Raspberry Pi with a Class 1 USB Bluetooth dongle.

I need to be able to amend the signal strength so as to create a "patchwork" of beacons that will a closely as possible accurately cover an irregular sized region.

I have been using bccmd to try and achieve this, but it is having no effect. I suspect that either the dongles I am trying do not support the bccmd calls, or there is a problem with bccmd on Raspbian, or I am doing something stupid.

These are the commands I am sending:

# PSKEY_LC_MAX_TX_POWER_NO_RSSI
sudo bccmd -d hci0 psset -s 0x0000 0x002d 1
sudo bccmd -d hci0 psget -s 0x0000 0x002d

# PSKEY_LC_DEFAULT_TX_POWER
sudo bccmd -d hci0 psset -s 0x0000 0x0021 -12
sudo bccmd -d hci0 psget -s 0x0000 0x0021

# PSKEY_LC_MAX_TX_POWER
sudo bccmd -d hci0 psset -s 0x0000 0x0017 -12
sudo bccmd -d hci0 psget -s 0x0000 0x0017


echo "Warm Reset..."
sudo bccmd -d hci0 warmreset

Is there a product that anyone can recommend that supports this facility on Raspberry Pi - or can anyone point out what I am doing wrong?

thanks

Related