Standardization of signal level

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
fantom
Posts: 269
Joined: Thursday 26 March 2015 10:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Poland
Contact:

Standardization of signal level

Post by fantom »

At this point, each device is sending out signal strength in any way it wants, and we don't know what that means.
It probably started with the fact that it was from 0-11 (12 meant no data).
Different devices send different numbers there and calculate them differently.
Having different devices, it shows different values ​​and it is not clear what they mean.
This is completely unclear information.

This should be standardized to RSSI (dBm) or Quality (%) or something else.

What do you think about it ?
Francis91
Posts: 5
Joined: Friday 26 August 2022 14:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Standardization of signal level

Post by Francis91 »

Hi,
I had the same problem, and solved it (with ESPHome) using the formula from ESPEasy Code :

int GetRSSI_quality() {
long rssi = WiFi.RSSI();

if (-50 < rssi) { return 10; }

if (rssi <= -98) { return 0; }
rssi = rssi + 97; // Range 0..47 => 1..9
return (rssi / 5) + 1;
}
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest