b-parasite icon indicating copy to clipboard operation
b-parasite copied to clipboard

Transmission Range

Open mjeanrichard opened this issue 2 years ago • 10 comments

HI,

Thanks for your Work. I created 10 of the version 1.2 bParasites and they work great. Except that the range is very limited. I can place my ESP32 (with ESPHome) no more that 10 meters (line of sight, no Walls) away from the bParasite before the connection drops. Is anyone having similar Issues? Or is this the expected Range?

I think I already us the most powerfult Trasmission setting (PRST_BLE_ADV_TX_POWER 8).

Thanks for your help!

mjeanrichard avatar Jul 06 '22 15:07 mjeanrichard

Hi @mjeanrichard,

I'm glad to hear they're working (consider contributing to your community gallery #19!).

There are three params you can tweak in prst_config.h:

  • PRST_BLE_ADV_TX_POWER (already set to max by default)
  • PRST_BLE_ADV_TIME_IN_MS - the amount of time it spends advertising (repeating the same advertisement). Set to 1 second by default
  • PRST_BLE_ADV_INTERVAL_IN_MS - the interval between two consecutive advertisement packets (30 ms by default)

These last two params are mostly optimized for power efficiency. I have increased both for a couple of my b-parasites and observed some extra range (at cost of shorter battery life), but I also opted for having two bridges instead of just one. Let us know if you manage to experiment with those params.

rbaron avatar Jul 06 '22 18:07 rbaron

Ok, thanks for the suggestions. I will try to fiddle with the parameters.

What is the range you get out of yours?

mjeanrichard avatar Jul 07 '22 04:07 mjeanrichard

I haven't measured the range more precisely. I have two ESPHome bridges and they cover my whole apartment. It would be nice to collect some data against those params.

rbaron avatar Jul 07 '22 16:07 rbaron

My insights after a some testing and trials:

  • Enabling Bluetooth 5 Long Range might help (no exact measurements yet)
  • Some other optimizations in code might help as well
  • Removing the Chip Antenna and soldering a wire with the appropriate length make a HUGE difference

I'll follow up with some measurement (power consumption and range).

mjeanrichard avatar Aug 02 '22 19:08 mjeanrichard

@mjeanrichard I've been meaning to experiment with Coded PHY for a while. I added a new flag PRST_BLE_EXPERIMENTAL_LONG_RANGE that will switch the advertising PHY to use Coded PHY.

I only had time to run a quick test:

  • In one b-parasite, I set PRST_BLE_EXPERIMENTAL_LONG_RANGE to 1
  • On a different b-parasite, I hacked together a Coded PHY scanner based on the Coded PHY central from nRF Connect

It looks promising and I think this is worth pursuing. Hopefully you can use this flag in the tests you're running.

I'm interested in if/how can we implement Coded PHY scanning in ESPHome. Right now I don't think it's possible, but they do already support ESP32-C3/S3, which I believe are Bluetooth 5 capable and can do Coded PHY.

rbaron avatar Aug 03 '22 21:08 rbaron

Hi there,

due to the shortage for the chosen E73-2G4M08S1C module I opted for the following version with an external Ibex antenna socket (all other specs are identical) :

E73-2G4M08S1CX

I've ordered the following IBEX Antenna for 2.4G which can be easly put through the cover version with the hole.

Assembled it a few minutes ago & the range seems to be massive improved. Got a signal from the 1st floor to the ESP32 in the basement. Placed two of the sensors in our glasshouse in the garden & signal reception is fine (ca. 15m from the glasshouse to the ESP32) :-) Btw have to water the tomato this evening :-D Thx a lot for this beautiful project & all the effort which was put into it. Still have to solder 13 E73 chips on the remaining boards but really love it!

HomeAssistant Garden Garden2

SystemFuchs avatar Aug 22 '22 14:08 SystemFuchs

Cool, thanks for that input. For those who already have the module with the chip antenna, it can easily be desoldered and replaced with a piece of copper wire. I went with quarter wave and it works way better (even bent, see picture). Will do the same with the ESP32 to check if it improves further... IMG_20220822_201722

@SystemFuchs Did you by any change measure the power consumption with this antenna? I would assume it stays the same, but would like some data...

mjeanrichard avatar Aug 22 '22 18:08 mjeanrichard

That's awesome. Thanks for sharing @SystemFuchs.

rbaron avatar Aug 22 '22 21:08 rbaron

Cool, thanks for that input. For those who already have the module with the chip antenna, it can easily be desoldered and replaced with a piece of copper wire. I went with quarter wave and it works way better (even bent, see picture). Will do the same with the ESP32 to check if it improves further... IMG_20220822_201722

@SystemFuchs Did you by any change measure the power consumption with this antenna? I would assume it stays the same, but would like some data...

Hi @mjeanrichard,

didn't do any measurements until now. How can I measure the power consumption of a parasite?

SystemFuchs avatar Aug 23 '22 07:08 SystemFuchs

For those who already have the module with the chip antenna, it can easily be desoldered and replaced with a piece of copper wire.

Tip! With it using 2.4GHz you should normally make such monopole antenna length ~ 31.23mm long unless you know that the firmware is tuned for an antenna non-standard 2.4GHz length, and preferably use a 1mm diameter wire.

Recommend search on Google for "Monopole Antenna Calculator" (and "Dipole Antenna Calculator" if prefer such an antenna design instead)

Hedda avatar Sep 09 '22 15:09 Hedda

I have replaced the ceramic antenna with monopole 31mm long wire(1mm diameter) and there is a significant improvement. I could notice about 20-25 dB improvement. I am not sure how to measure the power consumption, but I guess it should be the same as I have not changed anything else. Thanks for the tip.

RobertLukan avatar Jan 03 '23 14:01 RobertLukan