Reg Adding GPS NMEA & GPS RAW Capabilities to get GPS location using mmcli
Ramu
ramumr06 at gmail.com
Sat Jun 20 13:39:14 UTC 2020
I applied patches you mentioned for UDEV tags ... Seems to be working now..
mmcli -m 0 --location-status
------------------------
Location | capabilities: 3gpp-lac-ci, gps-raw, gps-nmea, gps-unmanaged
| enabled: 3gpp-lac-ci
| signals: no
------------------------
GPS | refresh rate: 30 seconds
### *Enabling GPS working fine #*##
root at tcs-imx6:~# mmcli -m 0 --location-enable-gps-nmea
successfully setup location gathering
root at tcs-imx6:~# mmcli -m 0 --location-enable-gps-raw
successfully setup location gathering
root at tcs-imx6:~#
### *Do we need get any location Data here ??? ####*
root at tcs-imx6:~# mmcli -m 0 --location-get-gps-raw
error: no actions specified
root at tcs-imx6:~# mmcli -m 0 --location-get-gps-nmea
error: no actions specified
But the GPS data is comign on the ttyUSB1 port .. I have not connected any
passive or active antenna for GPS as of now.. But seeing below data ...
cat /dev/ttyUSB1
$GPVTG,,T,,M,,N,,K,N*2C
$GPGSA,A,1,,,,,,,,,,,,,,,,*32
$GPGGA,,,,,,0,,,,,,,,*66
$GPRMC,,V,,,,,,,,,,N,V*29
$GPGLL,,,,,,V,N*64
$GPVTG,,T,,M,,N,,K,N*2C
$GPGSA,A,1,,,,,,,,,,,,,,,,*32
$GPGGA,,,,,,0,,,,,,,,*66
$GPRMC,,V,,,,,,,,,,N,V*29
$GPGLL,,,,,,V,N*64
$GPVTG,,T,,M,,N,,K,N*2C
$GPGSA,A,1,,,,,,,,,,,,,,,,*32
$GPGGA,,,,,,0,,,,,,,,*66
$GPRMC,,V,,,,,,,,,,N,V*29
$GPGLL,,,,,,V,N*64
On Sat, Jun 20, 2020 at 2:45 PM Aleksander Morgado <aleksander at aleksander.es>
wrote:
> Hey,
>
> > Yes, No GPS capabilities reporting by mmcli ...
> > mmcli -m 0 --location-status
> > ------------------------
> > Location | capabilities: 3gpp-lac-ci
> > | enabled: 3gpp-lac-ci
> > | signals: no
> > ------------------------
> >
> > mmcli -m 0 --location-enable-gps-nmea
> > error: couldn't setup location gathering:
> 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Unsupported: Cannot
> enable unsupported location sources: 'gps-nmea''
> >
>
> Ok, the reason for this is that there are no udev tags flagging any
> port as GPS data for the device with vid:pid 1bc7:1201.
>
> You're missing at least commits
> 8b7bdea7e07ca12f787ede809471f413ba988697 and
> 9c77fb8834cf8b666baa2778514f809f11e303f3 in your custom build. These
> patches are already scheduled to be included in MM 1.12.12, whenever
> that happens.
>
> --
> Aleksander
> https://aleksander.es
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20200620/a21d1c1d/attachment-0001.htm>
More information about the ModemManager-devel
mailing list