Reg Adding GPS NMEA & GPS RAW Capabilities to get GPS location using mmcli

Ramu ramumr06 at gmail.com
Sat Jun 20 02:37:40 UTC 2020


Hi,
Modem on my IMX6 Board :  Telit LE910C1-EU ( GSM and GPS )
Driver : option1 USB driver
Ports : ttyUSB0 to ttyUSB4
*NOTE 1 :* MM version           :   1.10.8 ( with
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/commit/eb3f17ddccf9d54a1edd028eb0bd65380a93795a
patch )
Result : Just able to gps capabilities ( But not before applying patch)
mmcli -m 0 --location-status
  ------------------------
  Location | capabilities: 3gpp-lac-ci, gps-nmea, gps-unmanaged
           |      enabled: 3gpp-lac-ci
           |      signals: no
  ------------------------
  GPS      | refresh rate: 30 seconds

But the following error throwing ..


root at tcs-imx6:~# mmcli -m 0 --location-enable-gps-nmea
error: couldn't setup location gathering:
'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Connected: Couldn't
enable location 'gps-nmea' gathering'

mmcli -m 0 --location-enable-gps-unmanaged
error: couldn't setup location gathering:
'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Connected: Couldn't
enable location 'gps-unmanaged' gath'

*NOTE 2:*   #### Testing Now with MM 1.12.10 ######

Now not seeing the gps capabilities ...
There is no logs from modemmanager when i fired below commands  ..


mmcli -m 0 --location-status
mmcli -m 0 --location-enable-gps-nmea
mmcli -m 0 --location-enable-gps-unmanaged

*NOTE 3 :  *I have got GPS location data with following commands ( Manually
tried on ttyUSB2)
AT
AT$GPSNMUN=1,1,1,1,1,1,1      ##### After this cmd observe the outout data
on "cat /dev/ttyUSB1" on UART minicom.

AT$GPSACP          #### This is for Longitude


 #### Taken following logs from ModemManager daemon for NOTE 2 ######
LOG attached with the mail ..

mmcli -m 0
  --------------------------------
  General  |            dbus path: /org/freedesktop/ModemManager1/Modem/0
           |            device id: 4ec18c8fb9a985e9c5b3a5d34f6508bf564123d8
  --------------------------------
  Hardware |         manufacturer: Telit
           |                model: LE910C1-EU
           |    firmware revision: 25.20.223
           |            supported: gsm-umts, lte
           |              current: gsm-umts, lte
           |         equipment id: 355001090004218
  --------------------------------
  System   |               device:
/sys/devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0/usb1/1-1
           |              drivers: option1
           |               plugin: Telit
           |         primary port: ttyUSB2
           |                ports: ttyUSB2 (at), ttyUSB3 (at)
  --------------------------------
  Status   |       unlock retries: sim-pin (3), sim-puk (10), sim-pin2 (3),
sim-puk2 (10)
           |                state: registered
           |          power state: on
           |          access tech: lte
           |       signal quality: 42% (recent)
  --------------------------------
  Modes    |            supported: allowed: 2g; preferred: none
           |                       allowed: 3g; preferred: none
           |                       allowed: 2g, 3g; preferred: none
           |                       allowed: 4g; preferred: none
           |                       allowed: 2g, 4g; preferred: none
           |                       allowed: 3g, 4g; preferred: none
           |                       allowed: 2g, 3g, 4g; preferred: none
           |              current: allowed: 2g, 3g, 4g; preferred: none
  --------------------------------
  IP       |            supported: ipv4, ipv6, ipv4v6
  --------------------------------
  3GPP     |                 imei: 355001090004218
           |          operator id: 40449
           |        operator name: IND airtel
           |         registration: home
  --------------------------------
  3GPP EPS | ue mode of operation: csps-1
  --------------------------------
  SIM      |            dbus path: /org/freedesktop/ModemManager1/SIM/0

Thanks and Regards
Ramu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20200620/5e9c7ede/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug
Type: application/octet-stream
Size: 160974 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20200620/5e9c7ede/attachment-0001.obj>


More information about the ModemManager-devel mailing list