Signal quality not updated with Quectel EG25 through QMI

Aleksander Morgado aleksander at aleksander.es
Fri Oct 1 22:11:16 UTC 2021


Hey

On Fri, Oct 1, 2021 at 3:50 PM Frederic Martinsons
<frederic.martinsons at sigfox.com> wrote:
>
> Ok thanks for the tips, should I issue a merge request with the modified threshold ?
>

Yes please, that would be good.

>
> I my application needs to have a rapid refresh rate of signal quality, do you think it will be correct (I means without impact on modem connectivity/stability) to send regularly mmcli --signal-get (the equivalent DBus method at least) at a regular rate ?
>

Please note that the rate at which that info is updated in the Signal
interface is the one you choose with the Setup method, not the rate at
which you read the DBus property.

> If so, can you tell me how I can get the signal quality percentage from the raw RSSI value ?

See in mm-broadband-modem-qmi.c:

/* Limit the value betweeen [-113,-51] and scale it to a percentage */
#define STRENGTH_TO_QUALITY(strength)                                   \
    (guint8)(100 - ((CLAMP (strength, -113, -51) + 51) * 100 / (-113 + 51)))


-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list