"Session is ongoing" error upon rebooting device
Hello there,
I'm currently facing an issue with the GPS setup of a Quectel eg25-g modem.
I'm able to correctly configure it with the gps-unmanaged
mode and retrieve the location using gpsd
. Unfortunately, upon rebooting the device (i.e. the x86 machine to which the modem is connected to), I get the following error when I attempt to configure it again:
mmcli -m 0 --location-enable-gps-unmanaged
error: couldn't setup location gathering: 'GDBus.Error:org.freedesktop.ModemManager1.Error.MobileEquipment.Unknown: Couldn't enable location 'gps-unmanaged' gathering: Unknown mobile equipment error: 504'
Looking at the Quectel documentation this error means "Session is ongoing" for GNSS.
And this seems to be actually the case:
Is there a way to cancel ongoing sessions through DBus?
I'm writing an application that interfaces with ModemManager through DBus. I cannot run AT commands from there (as per your documentation "using this interface call is only allowed when running ModemManager in debug mode or if the project was built using the with-at-command-via-dbus configure option") nor resetting the modem looks a viable way.
Do you have any suggestions?