Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure default espressif wifi power #9357

Closed
wants to merge 4 commits into from
Closed

Conversation

bill88t
Copy link

@bill88t bill88t commented Jun 20, 2024

Please refer to #9235 (comment).
Fixes #9235.

@tannewt tannewt requested a review from dhalbert June 21, 2024 17:46
@dhalbert
Copy link
Collaborator

@bill88t We started with choice of 8.5 dBm was from @askpatrickw on a particular board: #6540.

@askpatrickw It's been a while, but did you choose that value as the maximum practical for the board, or was it a quick choice that worked?

@karlfl's experimentation (#9235 (comment)) where 18dBm seems like the max. I would be inclined to use a somewhat lower value, but I'm not sure about choosing 8.5 dBm, which is quite a bit less.

The regulatory max is 20 dBm, which is 100 mW. 10 dBm is 10mW. 8.5 dBm is about 7 mW. dBm is a log scale.

@bill88t
Copy link
Author

bill88t commented Jun 21, 2024

I started testing (on the supertiny) by constantly switching between two networks, one really close (10cm) and one that is purposefully barely in range (about ~25m diagonally, vision obstructed).

I started from tx_power=18 and climbed down 1.0 at a time.
While some values did work once or twice, once the board heated up (due to the wifi transmission power), the reliability plummeted to 0.
The board was let to cool before every value swap.

I decided 11 is fully reliable at normal operation.
(I let it reconnect between the two networks for 2 minutes.)

To simulate hotter environments, I ran stress --cpu 20 on my thinkpad and put the board next to it's fan exaust and some plastic tape on it.
This slowly raised the board temperature to 68C.
When it equalized, value 11 was ~70% reliable at the faraway network switch.
However reducing the value to 10, drops reliability to 10%, due to range.

@bill88t
Copy link
Author

bill88t commented Jun 21, 2024

No, this doesn't actually fix the 3D antennas. It makes em worse.

Furthermore, the only boards actually benefited from this are just the supertiny and the wemos c3 mini.

We should just add an override for those boards.

@askpatrickw
Copy link

To answer the question to me. I unfortunately don't have any recollection about that specific value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wemos C3 Mini should pre-set tx_power to 8.5
3 participants