<div dir="ltr">Hi, <div><br></div><div>After digging for documentation with no success, I migrate the location interface to mm-shared-telit and added a qmi interface for the telit plugin. For the merge request, would it be OK to merge that kind of changes in 1.12 or it must me on master for the next release?</div><div><br></div><div>Thanks,</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 27, 2020 at 10:42 AM David Khouya <<a href="mailto:dakhouya@gmail.com">dakhouya@gmail.com</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"><div dir="ltr">>The above sequence looks good to me; you start the GPS engine and you<br>>also register for NMEA indications. After that, you should start<br>>receiving NMEA traces in QMI LOC indications, but I assume you're not<br>>receiving any? What MM and libqmi versions are you using?<br><div><br></div><div>Exact, I did a --location-enable-gps-nmea and --location-get and I don't get any NMEA traces. I'm currently using MM 1.12.8 and libqmi 1.24.8 on an arm environment.</div><div><br></div><div>>If you google for "Telit QMI LM940" you'll probably find easily a QMI<br>>reference from Telit, but unfortunately I don't think it has much<br>>detail on the LOC service itself. Other than that, I don't think there<br>>are public online references for QMI documents anywhere else. If you<br>>find some, let us know!<br></div><div><br></div><div>I'll surely share if I find something. I'll check for the LM940 documentation. Thanks!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 27, 2020 at 10:23 AM Aleksander Morgado <<a href="mailto:aleksander@aleksander.es" target="_blank">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>
><br>
> I didn't found information in Telit documentation about the GPS control with QMI. I'll try to poke them directly. On the other side, I did enable the gps with success using mmcli but didn't had any data location under the --location-get command.<br>
> Here is the log when I do the command mmcli -m 0 --location-enable-gps-nmea if you ever see something unusual.<br>
> ----------------------------------------------------------------------------------<br>
> <debug> [1587919447.966940] Got QMI WDS event report<br>
> <debug> [1587919448.098691] Setting up location sources: '3gpp-lac-ci, gps-nmea'<br>
> <debug> [1587919448.098791] Location '3gpp-lac-ci' gathering is already enabled...<br>
> <debug> [1587919448.098826] Location 'gps-raw' gathering is already disabled...<br>
> <debug> [1587919448.098855] Location 'agps-msa' gathering is already disabled...<br>
> <debug> [1587919448.098880] Location 'agps-msb' gathering is already disabled...<br>
> <debug> [1587919448.098901] Need to enable the following location sources: 'gps-nmea'<br>
> [/dev/cdc-wdm0] sent message...<br>
> <<<<<< RAW:<br>
> <<<<<<   length = 38<br>
> <<<<<<   data   = 01:25:00:00:10:03:00:03:00:22:00:19:00:13:04:00:E8:03:00:00:12:04:00:02:00:00:00:10:04:00:01:00:00:00:01:01:00:10<br>
> [/dev/cdc-wdm0] sent generic request (translated)...<br>
> <<<<<< QMUX:<br>
> <<<<<<   length  = 37<br>
> <<<<<<   flags   = 0x00<br>
> <<<<<<   service = "loc"<br>
> <<<<<<   client  = 3<br>
> <<<<<< QMI:<br>
> <<<<<<   flags       = "none"<br>
> <<<<<<   transaction = 3<br>
> <<<<<<   tlv_length  = 25<br>
> <<<<<<   message     = "Start" (0x0022)<br>
> <<<<<< TLV:<br>
> <<<<<<   type       = "Minimum Interval between Position Reports" (0x13)<br>
> <<<<<<   length     = 4<br>
> <<<<<<   value      = E8:03:00:00<br>
> <<<<<<   translated = 1000<br>
> <<<<<< TLV:<br>
> <<<<<<   type       = "Intermediate Report State" (0x12)<br>
> <<<<<<   length     = 4<br>
> <<<<<<   value      = 02:00:00:00<br>
> <<<<<<   translated = disable<br>
> <<<<<< TLV:<br>
> <<<<<<   type       = "Fix Recurrence Type" (0x10)<br>
> <<<<<<   length     = 4<br>
> <<<<<<   value      = 01:00:00:00<br>
> <<<<<<   translated = periodic-fixes<br>
> <<<<<< TLV:<br>
> <<<<<<   type       = "Session ID" (0x01)<br>
> <<<<<<   length     = 1<br>
> <<<<<<   value      = 10<br>
> <<<<<<   translated = 16<br>
> [/dev/cdc-wdm0] received message...<br>
> <<<<<< RAW:<br>
> <<<<<<   length = 20<br>
> <<<<<<   data   = 01:13:00:80:10:03:02:03:00:22:00:07:00:02:04:00:00:00:00:00<br>
> [/dev/cdc-wdm0] received generic response (translated)...<br>
> <<<<<< QMUX:<br>
> <<<<<<   length  = 19<br>
> <<<<<<   flags   = 0x80<br>
> <<<<<<   service = "loc"<br>
> <<<<<<   client  = 3<br>
> <<<<<< QMI:<br>
> <<<<<<   flags       = "response"<br>
> <<<<<<   transaction = 3<br>
> <<<<<<   tlv_length  = 7<br>
> <<<<<<   message     = "Start" (0x0022)<br>
> <<<<<< TLV:<br>
> <<<<<<   type       = "Result" (0x02)<br>
> <<<<<<   length     = 4<br>
> <<<<<<   value      = 00:00:00:00<br>
> <<<<<<   translated = SUCCESS<br>
> [/dev/cdc-wdm0] sent message...<br>
> <<<<<< RAW:<br>
> <<<<<<   length = 24<br>
> <<<<<<   data   = 01:17:00:00:10:03:00:04:00:21:00:0B:00:01:08:00:04:00:00:00:00:00:00:00<br>
> [/dev/cdc-wdm0] sent generic request (translated)...<br>
> <<<<<< QMUX:<br>
> <<<<<<   length  = 23<br>
> <<<<<<   flags   = 0x00<br>
> <<<<<<   service = "loc"<br>
> <<<<<<   client  = 3<br>
> <<<<<< QMI:<br>
> <<<<<<   flags       = "none"<br>
> <<<<<<   transaction = 4<br>
> <<<<<<   tlv_length  = 11<br>
> <<<<<<   message     = "Register Events" (0x0021)<br>
> <<<<<< TLV:<br>
> <<<<<<   type       = "Event Registration Mask" (0x01)<br>
> <<<<<<   length     = 8<br>
> <<<<<<   value      = 04:00:00:00:00:00:00:00<br>
> <<<<<<   translated = nmea<br>
> [/dev/cdc-wdm0] received message...<br>
> <<<<<< RAW:<br>
> <<<<<<   length = 20<br>
> <<<<<<   data   = 01:13:00:80:10:03:02:04:00:21:00:07:00:02:04:00:00:00:00:00<br>
> [/dev/cdc-wdm0] received generic response (translated)...<br>
> <<<<<< QMUX:<br>
> <<<<<<   length  = 19<br>
> <<<<<<   flags   = 0x80<br>
> <<<<<<   service = "loc"<br>
> <<<<<<   client  = 3<br>
> <<<<<< QMI:<br>
> <<<<<<   flags       = "response"<br>
> <<<<<<   transaction = 4<br>
> <<<<<<   tlv_length  = 7<br>
> <<<<<<   message     = "Register Events" (0x0021)<br>
> <<<<<< TLV:<br>
> <<<<<<   type       = "Result" (0x02)<br>
> <<<<<<   length     = 4<br>
> <<<<<<   value      = 00:00:00:00<br>
> <<<<<<   translated = SUCCESS<br>
> ----------------------------------------------------------------------------------<br>
><br>
<br>
The above sequence looks good to me; you start the GPS engine and you<br>
also register for NMEA indications. After that, you should start<br>
receiving NMEA traces in QMI LOC indications, but I assume you're not<br>
receiving any? What MM and libqmi versions are you using?<br>
<br>
> By curiosity, do you know a good references for qmi protocol so I can dig into it?<br>
><br>
<br>
If you google for "Telit QMI LM940" you'll probably find easily a QMI<br>
reference from Telit, but unfortunately I don't think it has much<br>
detail on the LOC service itself. Other than that, I don't think there<br>
are public online references for QMI documents anywhere else. If you<br>
find some, let us know!<br>
<br>
<br>
-- <br>
Aleksander<br>
<a href="https://aleksander.es" rel="noreferrer" target="_blank">https://aleksander.es</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><span style="font-size:13px;color:rgb(0,0,0)"><strong>David Khouya</strong></span><em style="color:rgb(136,136,136);font-size:13px"> </em></div><br><br></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><span style="font-size:13px;color:rgb(0,0,0)"><strong>David Khouya</strong></span><em style="color:rgb(136,136,136);font-size:13px"> </em></div><br><br></div></div></div></div></div>