Qmicli causes ModemManager failure, no GPS location

We’re running 6.12.27 x86_64 GNU/Linux.

Our modem given by ModemManager:

        |                  model: EM9190
        |      firmware revision: 03.17.04.00_GENERIC
        |           h/w revision: EM9190

When we attempt to acquire gps coordinates, we use qmicli, e.g.

qmicli --device=/dev/wwan0mbim0 --device-open-proxy --device-open-mbim --client-no-release-cid --loc-noop

However, if this command runs before the ModemManager is started, ModemManager will fail to properly connect the modem. We have no way of knowing “at which point” it is safe to execute the qmi command. Neither do we know that potential reboots of ModemManager might be trouble when qmicli is running in the background.

Our preferred way of obtaining gps coordinates would be through ModemManager, not through qmicli, but the mmcli responds

$ mmcli -m 0 --location-monitor
error: modem has no location capabilities

How about disabling the modem manager and obtain gps coordinate with qmicli command?

Or you can get gps coordinate by AT command

Unfortunately, without the ModemManager, we can’t perform out main software feature, which requires IP messaging?

You might need to rebuild modem manager so that it won’t touch mbim interface

The modem was operating in PCIE mode. After switching to USB mode, we’ve had no more troubles.