Is it possible to get the location based on GPS through ModemManager via D-Bus?
If I query the capabilities it only shows 3GPP-based location:
interface org.freedesktop.ModemManager1.Modem.Location {
methods:
Setup(in u sources,
in b signal_location);
GetLocation(out a{uv} Location);
SetSuplServer(in s supl);
InjectAssistanceData(in ay data);
SetGpsRefreshRate(in u rate);
signals:
properties:
readonly u Capabilities = 1;
readonly u SupportedAssistanceData = 0;
readonly u Enabled = 1;
readonly b SignalsLocation = false;
readonly a{uv} Location = {};
readonly s SuplServer = ‘’;
readonly as AssistanceDataServers = ;
readonly u GpsRefreshRate = 0;
My current firmware version is BG95M3LAR02A03_01.200.01.200.
man mmcli
it seems that the mmcli support GPS.
Yes, MM supports GPS, but the point is that it does not show that capability with the BG95-M3.
I have tried with other modems from Quectel such as RM510Q-GL or EM05-E and the GPS capability is available, but not for BG95-M3, which is the modem I need to use for a given application.
Actually I don’t know how the ModemManager get the location from the modem.
Maybe from the ttyUSB but it seems impossible.
I guess the the ModemManager get the location via QMI.
Have you checked that whether there is qmi driver matched the BG95?
Quectel only support that the we can get the location from /dev/ttyUSB1 or from Quectel specified AT command.
I see what you’re saying! It sounds like the BG95-M3 doesn’t support GPS the same way the other modems do, even though MM supports GPS in general. That must be frustrating since you need to use that specific modem for your application. Maybe there’s a firmware update or a specific setting needed to enable GPS for the BG95-M3? It could be worth checking the documentation or reaching out to the manufacturer for more details on how to get it working with GPS.
By the way, if you’re also looking for a reliable solution for managing properties, I’d recommend exploring some options that could assist with GPS tracking in property management, especially if you’re involved in services like Property Management Phuket. It could help with site visits and tracking maintenance in real time!
Not all the BG95 support GPS. If we cannot see the NMEA log and the BG95 not support GPS, we cannot update the firmware to make the BG95 support GPS.
And actually the ModemManager not fully support the BG95.