<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Hi,</div><div class=""><br class=""></div><div class="">We are using ModemManager with the Quectel BG96 modem and are using it's QMI interface. </div><div class="">Everything is going well, expect that ModemManager starts to use a lot of the memory after it is running for a while.</div><div class=""><br class=""></div><div class="">The Quectel BG96 modem has been resetted 3 times during its operation by sending "<i class="">AT+CFUN=1,1</i>" to the primary AT interface.</div><div class="">This is done, by a script we have running on the device, when the connection is lost for 5 minutes.</div><div class="">After the modem is reset, the script checks if the ModemManager can see the modem and will check the GPS settings of the modem. This is done via the primary AT interface.</div><div class="">After this, we turn on the GPS via ModemManager using the Location interface.</div><div class=""><br class=""></div><div class="">Commands used for enabling GPS ( $modem_id is requested from DBus ): </div><span class=""><i class="">mmcli -m </i></span>$modem_id<span class=""><i class=""> --location-enable-gps-nmea<br class="">mmcli -m </i></span>$modem_id<span class=""><i class=""> --location-enable-gps-raw<br class="">mmcli -m </i></span>$modem_id<span class=""><i class=""> --location-set-enable-signal<br class="">mmcli -m </i></span>$modem_id<span class=""><i class="">--location-set-gps-refresh-rate=0</i></span><div class=""><span class=""><br class=""></span></div><div class="">When this is done, we setup the cellular connection using NetworkManager.</div><div class=""><span class=""><br class=""></span><div class="">Currently we see that this has produced ModemManager running 3 instances of itself and using 25% of the 512MB of memory.</div><div class="">What also happens is that the GPS is not always turned on after a modem reset.</div><div class=""><br class=""></div><div class="">Expected state:</div><div class=""><br class=""></div><div class=""><div class=""><i class="">$ mmcli -m 0 --location-status</i></div><div class=""><i class="">--------------------------------</i></div><div class=""><i class="">Location<span class="Apple-tab-span" style="white-space:pre"> </span>| capabilities: 3gpp-lac-ci, gps-raw, gps-nmea, agps</i></div><div class=""><i class=""><span class="Apple-tab-span" style="white-space:pre"> </span>|<span class="Apple-tab-span" style="white-space:pre"> </span>enabled: 3gpp-lac-ci, gps-raw, gps-nmea</i></div><div class=""><i class=""><span class="Apple-tab-span" style="white-space:pre"> </span>|<span class="Apple-tab-span" style="white-space:pre"> </span>signals: yes</i></div><div class=""><i class="">--------------------------------</i></div><div class=""><i class="">GPS<span class="Apple-tab-span" style="white-space:pre"> </span>| refresh rate: 0 seconds</i></div></div><div class=""><br class=""></div><div class="">Actual state:</div><div class=""><br class=""></div><div class=""><div class=""><i class="">$ mmcli -m 0 --location-status</i></div><div class=""><i class="">--------------------------------</i></div><div class=""><i class="">Location<span class="Apple-tab-span" style="white-space:pre"> </span>| capabilities: <span class="Apple-tab-span" style="white-space:pre"> </span>3gpp-lac-ci, gps-raw, gps-nmea, agps</i></div><div class=""><i class=""><span class="Apple-tab-span" style="white-space:pre"> </span>| <span class="Apple-tab-span" style="white-space:pre"> </span>enabled: <span class="Apple-tab-span" style="white-space:pre"> </span>3gpp-lac-ci</i></div><div class=""><i class=""><span class="Apple-tab-span" style="white-space:pre"> </span>| <span class="Apple-tab-span" style="white-space:pre"> </span> signals: <span class="Apple-tab-span" style="white-space:pre"> </span>no</i></div><div class=""><i class="">-------------------------------</i></div><div class=""><i class="">GPS<span class="Apple-tab-span" style="white-space:pre"> </span>| refresh rate: <span class="Apple-tab-span" style="white-space:pre"> </span>30 seconds</i></div></div><div class=""><br class=""></div><div class="">Are we doing something wrong in the way we are resetting the modem after a long duration of connection loss?</div><div class=""><br class=""></div><div class="">Do we need to restart ModemManager each time we reset the modem to prevent multiple instances of ModemManager to be running at the same time?</div><div class=""><br class=""></div><div class="">What we also see is that ModemManager is giving a lot of warnings, does this has something to do with the problems we are experiencing?</div><div class=""><br class=""></div><div class="">Logs from ModemManager:</div><div class=""><br class=""></div><div class=""><div class=""><i class="">Nov 25 07:04:39 ModemManager[158]: <warn> Reloading stats failed: QMI operation failed: Transaction timed out</i></div><div class=""><i class="">Nov 25 07:04:41 ModemManager[158]: transaction 0x26e aborted, but message is not abortable</i></div><div class=""><i class="">Nov 25 07:04:59 ModemManager[158]: [/dev/cdc-wdm0] No transaction matched in received message</i></div><div class=""><i class="">Nov 25 07:04:59 ModemManager[158]: [/dev/cdc-wdm0] No transaction matched in received message</i></div><div class=""><i class="">Nov 25 07:05:09 ModemManager[158]: transaction 0x26f aborted, but message is not abortable</i></div><div class=""><i class="">Nov 25 07:05:09 ModemManager[158]: <warn> Reloading stats failed: QMI operation failed: Transaction timed out</i></div><div class=""><i class="">Nov 25 07:06:39 </i><i class="">ModemManager[158]: transaction 0x272 aborted, but message is not abortable</i></div><div class=""><i class="">Nov 25 07:06:39</i><i class=""> ModemManager[158]: <warn> Reloading stats failed: QMI operation failed: Transaction timed out</i></div><div class=""><i class="">Nov 25 07:06:41 </i><i class="">ModemManager[158]: [/dev/cdc-wdm0] No transaction matched in received message</i></div><div class=""><i class="">Nov 25 07:49:28 </i><i class="">ModemManager[158]: transaction 0x2c7 aborted, but message is not abortable</i></div><div class=""><i class="">Nov 25 08:05:09 </i><i class="">ModemManager[158]: transaction 0x2e7 aborted, but message is not abortable</i></div><div class=""><i class="">Nov 25 08:05:09 </i><i class="">ModemManager[158]: <warn> Reloading stats failed: QMI operation failed: Transaction timed out</i></div><div class=""><i class="">Nov 25 08:09:39 </i><i class="">ModemManager[158]: transaction 0x2f0 aborted, but message is not abortable</i></div><div class=""><i class="">Nov 25 08:09:39 </i><i class="">ModemManager[158]: <warn> Reloading stats failed: QMI operation failed: Transaction timed out</i></div><div class=""><i class="">Nov 25 08:10:39 </i><i class="">ModemManager[158]: transaction 0x2f2 aborted, but message is not abortable</i></div><div class=""><i class="">Nov 25 08:10:39 </i><i class="">ModemManager[158]: <warn> Reloading stats failed: QMI operation failed: Transaction timed out</i></div><div class=""><i class="">Nov 25 08:29:39 </i><i class="">ModemManager[158]: transaction 0x318 aborted, but message is not abortable</i></div><div class=""><i class="">Nov 25 08:29:39 </i><i class="">ModemManager[158]: <warn> Reloading stats failed: QMI operation failed: Transaction timed out</i></div><div class=""><i class="">Nov 25 08:45:09 </i><i class="">ModemManager[158]: transaction 0x337 aborted, but message is not abortable</i></div><div class=""><i class="">Nov 25 08:45:09 </i><i class="">ModemManager[158]: <warn> Reloading stats failed: QMI operation failed: Transaction timed out</i></div><div class=""><i class="">Nov 25 09:03:39 </i><i class="">ModemManager[158]: transaction 0x35c aborted, but message is not abortable</i></div><div class=""><i class="">Nov 25 09:03:39 </i><i class="">ModemManager[158]: <warn> Reloading stats failed: QMI operation failed: Transaction timed out</i></div><div class=""><i class="">Nov 25 09:06:09 </i><i class="">ModemManager[158]: transaction 0x361 aborted, but message is not abortable</i></div><div class=""><i class="">Nov 25 09:06:09 </i><i class="">ModemManager[158]: <warn> Reloading stats failed: QMI operation failed: Transaction timed out</i></div></div><div class=""><br class=""></div><div class="">Version of ModemManager used: 1.10.8</div><div class="">Version of libqmi used: 1.24.0</div><div class=""><br class=""></div>Regards,</div><div class=""><br class=""></div><div class="">Geert Lens<br class="">
<br class=""></div></body></html>