I’m trying to make an IoT device using armbian that needs lte connectivity and GPS tracking, as I’m quite inexperienced in the subject I figured I would use modem manager. With modem manager I can use lte without problems but i can’t get gps data because it thinks that the module isn’t compatible.
So this is a MC7700, I would probably keep it simple and stick with mm, using QMI would entail a load of work and the unit is soo old now there are no guarantees that it would work with the current SDK.
So what error is the mmcli throwing at you when you specify the modem? Does the modem have the right port assigned to it in the system for the NMEA?
at!udusbcomp=?
0 - HIP DM NMEA AT MDM1 MDM2 MDM3 MS SUPPORTED
1 - HIP DM NMEA AT MDM1 MS NOT SUPPORTED
2 - HIP DM NMEA AT NIC1 MS SUPPORTED
3 - HIP DM NMEA AT MDM1 NIC1 MS SUPPORTED
4 - HIP DM NMEA AT NIC1 NIC2 NIC3 MS SUPPORTED
5 - HIP DM NMEA AT ECM1 MS SUPPORTED
6 - DM NMEA AT QMI NOT SUPPORTED
7 - DM NMEA AT RMNET1 RMNET2 RMNET3 NOT SUPPORTED
8 - Win8 Std Net NOT SUPPORTED
at!udusbcomp?
!UDUSBCOMP: 3
The “sierra legacy” plugin in ModemManager (the one used when the module is in Direct IP mode) doesn’t support GPS location, it’s just not developed yet. If you switch the module to QMI, you’ll be able to use the built-in GPS management from the QMI PDS service, and that should work as expected.
If you still want to stick using DirectIP and ModemManager, you can always tell MM to ignore the specific TTY in charge of the GPS (with ID_MM_PORT_IGNORE udev rules) and then you would be able to manage the GPS yourself without MM interfering.
If you have a recent enough libqmi, you could also use qmi-firmware-update to perform the upgrade; run “qmi-firmware-update --help-examples” and look for the MC7700 example.
Thank you for your help, I managed to ignore the port like you suggested by creating a file in /etc/udev/rules.d/ with the name 50-at.rules with the following content:
This makes MM ignore the NMEA port but for some reason I don’t get anything in that port with the default driver.
Sadly changing the firmware is not an option for me because I have to many units and I think that would be a lot of work (unless there is an automatic way of doing so).
One thing that kinda worked was using the command at!udpid=68A2 to switch the modem to QMI mode (but like you said this doesn’t make QMI work) with this the device was grabbed with the GobiSerial drivers instead of the sierra drivers and now I can get the GPS data through the NMEA port and use Modem Manager, but this option makes a ppp0 connection instead of a wwan0. If i understand correctly the wwan0 is faster so I would prefer that one.