diff options
author | Frederic Martinsons <frederic.martinsons@sigfox.com> | 2021-10-02 07:38:04 +0200 |
---|---|---|
committer | Frederic Martinsons <frederic.martinsons@sigfox.com> | 2021-10-03 17:44:52 +0200 |
commit | ea7517f0e5ec0d81bb75ea0d589575bb5efb9330 (patch) | |
tree | 83bfd867d78edad2c06e5ed1a4aed764b46956a2 /src | |
parent | 90ea3ef5db2bc5846dcb3382a15ec95ce366e04a (diff) |
Update signal strength indicator thresholds
These are thresholds for RSSI so nothing is expected to be
greater than 0.
This will allow to have a better granularity (even if with some
modem, we are limited in the number of thresholds configured)
These new thresholds will give the following signal quality range:
- 11% for -110 dBm
- 30% for -94 dBm
- 50% for -82 dBm
- 70% for -69 dBm
- 90% for -57 dBm
We are expecting to receive indication sreport every time the
signal strength crosses one of the configured thresholds.
Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mm-broadband-modem-qmi.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/mm-broadband-modem-qmi.c b/src/mm-broadband-modem-qmi.c index a74f035a..b99fea15 100644 --- a/src/mm-broadband-modem-qmi.c +++ b/src/mm-broadband-modem-qmi.c @@ -5063,8 +5063,15 @@ common_enable_disable_unsolicited_events_signal_strength (GTask *task) g_autoptr(GArray) thresholds = NULL; /* The device doesn't really like to have many threshold values, so don't - * grow this array without checking first */ - static const gint8 thresholds_data[] = { -80, -40, 0, 40, 80 }; + * grow this array without checking first + * The values are chosen towards their results through STRENGTH_TO_QUALITY + * -106 dBm gives 11% + * -94 dBm gives 30% + * -82 dBm gives 50% + * -69 dBm gives 70% + * -57 dBm gives 90% + */ + static const gint8 thresholds_data[] = { -106, -94, -82, -69, -57 }; ctx = g_task_get_task_data (task); |