<div dir="ltr"><div dir="ltr"><div>Hi Aleksander,</div><div><br></div><div>Thanks for the explanation.. Will try for GPGGA with antenna ...</div><div><br></div><div>1. Able to display nmea traces with <b>gps-nmea ..</b></div><div><br></div><div></div><div>mmcli -m 0 --location-status<br> ------------------------<br> Location | capabilities: 3gpp-lac-ci, gps-raw, gps-nmea, gps-unmanaged<br> | enabled: 3gpp-lac-ci, gps-raw, gps-nmea<br> | signals: no<br> ------------------------<br> GPS | refresh rate: 30 seconds</div><div><br></div><div>root@tcs-imx6:~# mmcli -m 0 --location-get<br> --------------------------<br> 3GPP | operator code: 404<br> | operator name: 49<br> | location area code: 0000<br> | tracking area code: C4E3<br> | cell id: 0DE0010B<br> --------------------------<br> GPS | nmea: $GPGSA,A,1,,,,,,,,,,,,,,,,*32<br> | $GPRMC,,V,,,,,,,,,,N,V*29<br> | $GPGLL,,,,,,V,N*64<br> | $GPVTG,,T,,M,,N,,K,N*2C<br> | $GPGGA,,,,,,0,,,,,,,,*66</div></div><div><br></div><div>2. For <b>gps-unmanaged </b><br></div><div>mmcli -m 0 --location-status<br> ------------------------<br> Location | capabilities: 3gpp-lac-ci, gps-raw, gps-nmea, gps-unmanaged<br> | enabled: 3gpp-lac-ci, gps-unmanaged<br> | signals: no<br> ------------------------<br> GPS | refresh rate: 30 seconds<br>root@tcs-imx6:~# mmcli -m 0 --location-get<br> --------------------------<br> 3GPP | operator code: 404<br> | operator name: 49<br> | location area code: 0000<br> | tracking area code: C4E3<br> | cell id: 0DE0010B</div><div><br></div><div>3. <b>For gps-raw : </b><br></div><div>mmcli -m 0 --location-status<br> ------------------------<br> Location | capabilities: 3gpp-lac-ci, gps-raw, gps-nmea, gps-unmanaged<br> | enabled: 3gpp-lac-ci, gps-raw<br> | signals: no<br> ------------------------<br> GPS | refresh rate: 30 seconds<br>root@tcs-imx6:~# mmcli -m 0 --location-get<br> --------------------------<br> 3GPP | operator code: 404<br> | operator name: 49<br> | location area code: 0000<br> | tracking area code: C4E3<br> | cell id: 0DE0010B</div><div><br></div><div>Regards</div><div>Ramu<br></div><div><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 22, 2020 at 1:06 PM Aleksander Morgado <<a href="mailto:aleksander@aleksander.es">aleksander@aleksander.es</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hey<br>
<br>
On Sat, Jun 20, 2020 at 3:39 PM Ramu <<a href="mailto:ramumr06@gmail.com" target="_blank">ramumr06@gmail.com</a>> wrote:<br>
><br>
> I applied patches you mentioned for UDEV tags ... Seems to be working now..<br>
><br>
> mmcli -m 0 --location-status<br>
> ------------------------<br>
> Location | capabilities: 3gpp-lac-ci, gps-raw, gps-nmea, gps-unmanaged<br>
> | enabled: 3gpp-lac-ci<br>
> | signals: no<br>
> ------------------------<br>
> GPS | refresh rate: 30 seconds<br>
><br>
<br>
Good!<br>
<br>
> ### Enabling GPS working fine ###<br>
><br>
> root@tcs-imx6:~# mmcli -m 0 --location-enable-gps-nmea<br>
> successfully setup location gathering<br>
> root@tcs-imx6:~# mmcli -m 0 --location-enable-gps-raw<br>
> successfully setup location gathering<br>
> root@tcs-imx6:~#<br>
><br>
<br>
Ok.<br>
<br>
> ### Do we need get any location Data here ??? ####<br>
> root@tcs-imx6:~# mmcli -m 0 --location-get-gps-raw<br>
> error: no actions specified<br>
> root@tcs-imx6:~# mmcli -m 0 --location-get-gps-nmea<br>
> error: no actions specified<br>
><br>
<br>
The command you're looking for is --location-get.<br>
<br>
> 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 ...<br>
><br>
> cat /dev/ttyUSB1<br>
<br>
If you are using --location-enable-gps-nmea or<br>
--location-enable-gps-raw you CANNOT touch the ttyUSB1 manually. You<br>
cannot "cat" it or any other thing, because you would be hijacking the<br>
data from ModemManager. If you need to cat or touch the ttyUSB1<br>
manually, you instead need to --location-enable-gps-unmanaged, so that<br>
MM takes care of starting the GPS engine, but then ignores the tty<br>
with the GPS data.<br>
<br>
> $GPVTG,,T,,M,,N,,K,N*2C<br>
> $GPGSA,A,1,,,,,,,,,,,,,,,,*32<br>
> $GPGGA,,,,,,0,,,,,,,,*66<br>
> $GPRMC,,V,,,,,,,,,,N,V*29<br>
> $GPGLL,,,,,,V,N*64<br>
> $GPVTG,,T,,M,,N,,K,N*2C<br>
> $GPGSA,A,1,,,,,,,,,,,,,,,,*32<br>
> $GPGGA,,,,,,0,,,,,,,,*66<br>
> $GPRMC,,V,,,,,,,,,,N,V*29<br>
> $GPGLL,,,,,,V,N*64<br>
> $GPVTG,,T,,M,,N,,K,N*2C<br>
> $GPGSA,A,1,,,,,,,,,,,,,,,,*32<br>
> $GPGGA,,,,,,0,,,,,,,,*66<br>
> $GPRMC,,V,,,,,,,,,,N,V*29<br>
> $GPGLL,,,,,,V,N*64<br>
><br>
<br>
Given that your GPGGA trace doesn't give any location yet, the output<br>
of --location-get will not give you lat/long info, but it will still<br>
give you the list of NMEA traces received and read by ModemManager (as<br>
long as you don't hijack the tty as said above).<br>
<br>
Cheers!<br>
<br>
-- <br>
Aleksander<br>
<a href="https://aleksander.es" rel="noreferrer" target="_blank">https://aleksander.es</a><br>
</blockquote></div></div>