quectel: set QGPSXTRA to enable assistance support

Quectel modems require to enable XTRA GNSS assistance first with QGPSXTRA=1, before it can be used.
This commit is contained in:
Dylan Van Assche
2021-04-19 07:29:48 +02:00
committed by Aleksander Morgado
parent f7ec13deb8
commit 1beea40270

View File

@@ -422,10 +422,13 @@ mm_shared_quectel_location_load_capabilities (MMIfaceModemLocation *_self,
* 1) "+QGPSCFG=\"nmeasrc\",1" will be necessary for getting location data
* without the nmea port.
* 2) may be necessary to set "+QGPSCFG=\"gpsnmeatype\".
* 3) QGPSXTRA=1 is necessary to support XTRA assistance data for
* faster GNSS location locks.
*/
static const MMBaseModemAtCommand gps_startup[] = {
{ "+QGPSCFG=\"outport\",\"usbnmea\"", 3, FALSE, mm_base_modem_response_processor_no_result_continue },
{ "+QGPS=1", 3, FALSE, mm_base_modem_response_processor_no_result_continue },
{ "+QGPSXTRA=1", 3, FALSE, mm_base_modem_response_processor_no_result_continue },
{ NULL }
};