0

I've set up the Bluetooth and it works as intended, but the signal strength is much more than I need it to be. I need the range to be half of what it is right now.

Update:

Found a solution using the bluepy library to handle the bluetooth pairing part and a beacon that emits a constant bluetooth signal.

This guide and the library documentation helped a lot.

Note: I only want it to pick up devices if they are very close to the Pi. As it is, it pickups devices at a close and long distance.

6
  • What problem is the power being higher than it needs to be causing? Commented Jul 31, 2021 at 8:51
  • Could you achieve the same thing by doing distance estimation using the RSSI value of the found device? The device doing the discovery can filter on RSSI value Commented Aug 1, 2021 at 7:25
  • pickups devices at a close and long distance you would have to adjust the transmit signal strength of those devices Commented Aug 1, 2021 at 19:49
  • @jsotola Right. And, how do I do that? Commented Aug 1, 2021 at 20:04
  • @ukBaz That's actually a very good idea. I'll look into that. Commented Aug 1, 2021 at 20:05

2 Answers 2

2

On the Raspberry Pi the Bluetooth stack is BlueZ. In very recent (newer versions that ship with RPi OS) there is a new experimental feature to change the Tx Power of advertisements.

This is documented in the following document (Search for "power")

https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/org.bluez.LEAdvertisingManager.rst

To evaluate this functionality you will have to build and install a newer version of BlueZ with experimental features enabled.

5
  • How would I build/install with experimental features enabled? Commented Aug 1, 2021 at 1:37
  • By using the --enable-experimental flag during compilation. See README for more information Commented Aug 1, 2021 at 7:14
  • Even though it wasn't a straight answer it did lead me to find my own answer. Commented Sep 7, 2021 at 3:13
  • @Jcorretjer glad you have solved your problem. You could write up your solution and then accept your own answer as that way we all learn. Commented Sep 7, 2021 at 5:53
  • Thanks for the reminder! I updated my question with the resolution I used a week after you posted this comment. I eventually dropped the project because I wasn't getting the results I was expecting lol Commented Jun 21, 2024 at 6:41
1

If you don't use WiFi (or the WiFi signal is also very strong) you could reduce the effective radio range by shielding the antenna. Putting the Pi inside a tin cookie/tea box (with the lid partially open) should do the trick. If the range becomes too short, open the lid some more. A tin can should also do if you don't mind the looks.

Just make sure you don't let the metal touch the PCB or the GPIO pins.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.