PQMT Commands
Below, are excerpts for a few of the PQTM messages from the GNSS Protocol Specification manual. Users will find these useful for configuring their LG580P GNSS module as an RTK base station or rover.
Documentation
A full list of PQTM messages (proprietary NMEA messages defined by Quectel) supported by LG580P, is provided in section 2.3. PQTM Messages of the GNSS Protocol Specification manual. This protocol is used to configure or read the settings for the LG580P GNSS module.
List of Proprietary Quectel Messages
| Message | Type Mode | Message Description | 
|---|---|---|
| PQTMVER | Output | Outputs the firmware version | 
| PQTMCOLD | Command | Performs a cold start | 
| PQTMWARM | Command | Performs a warm start | 
| PQTMHOT | Command | Performs a hot start | 
| PQTMSRR | Command | Performs a system reset and reboots the receiver | 
| PQTMUNIQID | Command | Queries the module unique ID | 
| PQTMSAVEPAR | Command | Saves the configurations into NVM | 
| PQTMRESTOREPAR | Command | Restores the parameters configured by all commands to their default values | 
| PQTMVERNO | Command | Queries the firmware version | 
| PQTMCFGUART | Set/Get | Sets/gets the UART interface | 
| PQTMCFGPPS | Set/Get | Sets/gets the PPS feature | 
| PQTMCFGPROT | Set/Get | Sets/gets the input and output protocol for a specified port | 
| PQTMCFGNMEADP | Set/Get | Sets/gets the decimal places of standard NMEA messages | 
| PQTMEPE | Output | Outputs the estimated position error | 
| PQTMCFGMSGRATE | Set/Get | Sets/gets the message output rate on the current interface | 
| PQTMVEL | Output | Outputs the velocity information | 
| PQTMCFGGEOFENCE | Set/Get | Sets/gets geofence feature | 
| PQTMGEOFENCESTATUS | Output | Outputs the geofence status | 
| PQTMGNSSSTART | Command | Starts GNSS engine | 
| PQTMGNSSSTOP | Command | Stops GNSS engine | 
| PQTMTXT | Output | Outputs short text messages | 
| PQTMCFGSVIN | Set/Get | Sets/gets the Survey-in feature | 
| PQTMSVINSTATUS | Output | Outputs the Survey-in status | 
| PQTMPVT | Output | Outputs the PVT (GNSS only) result | 
| PQTMCFGRCVRMODE | Set/Get | Sets/gets the receiver working mode | 
| PQTMDEBUGON | Command | Enables debug log output | 
| PQTMDEBUGOFF | Command | Disables debug log output | 
| PQTMCFGFIXRATE | Set/Get | Sets/gets the fix interval | 
| PQTMCFGRTK | Set/Get | Sets/gets the RTK mode | 
| PQTMCFGCNST | Set/Get | Sets/gets the constellation configuration | 
| PQTMDOP | Output | Outputs dilution of precision | 
| PQTMPL | Output | Outputs protection level information | 
| PQTMCFGODO | Set/Get | Sets/gets the odometer feature | 
| PQTMRESETODO | Command | Resets the accumulated distance recorded by the odometer | 
| PQTMODO | Output | Outputs the odometer information | 
| PQTMCFGSIGNAL | Set/Get | Sets/gets GNSS signal mask | 
| PQTMCFGSAT | Set/Get | Sets/gets GNSS satellite mask | 
| PQTMCFGRSID | Set/Get | Sets/gets the reference station ID | 
| PQTMCFGRTCM | Set/Get | Sets/gets RTCM | 
| PQTMCFGSBAS | Set/Get | Configures SBAS | 
| PQTMCFGNMEATID | Set/Get | Configures the NMEA Talker ID | 
| PQTMTAR | Output | Outputs the time and attitude | 
| PQTMCFGBLD | Set/Get | Configures the baseline distance | 
| PQTMCFGRTKSRCTYPE | Set/Get | Configures RTK differential source type | 
| PQTMSN | Command | Reads the SN of module | 
| PQTMCFGANTINF | Set/Get | Configures the antenna information | 
| PQTMCFGANTDELTA | Set/Get | Configures the delta between antennas | 
| PQTMCFGSIGGRP | Set/Get | Configures the GNSS signal group | 
| PQTMCFGSIGNAL2 | Set/Get | Configures GNSS signal mask for second antenna | 
| PQTMCFGGEOSEP | Set/Get | Configures geoidal separation | 
| PQTMCFGCNRTHD | Set/Get | Configures the CNR threshold for position engine | 
| PQTMCFGELETHD | Set/Get | Configures the elevation threshold for position engine | 
| PQTMNAV | Output | Outputs the navigation information | 
| PQTMEOE | Output | Outputs the end of epoch information | 
| PQTMCFGWN | Set/Get | Configures the reference start week number | 
| PQTMANTENNASTATUS | Output | Reports the antenna status | 
Save Parameters/Restore to Default Settings
PQTMSAVEPAR
- 
Saves the current configurations into NVM of the LG580P 
PQTMRESTOREPAR
- 
Restores the parameters configured by all commands to their default values; this command takes effect after restarting the LG580P 
UART Settings
PQTMCFGUART
- 
Configures the serial protocol setting for the UART interfaces - 
Current UART interface: 
- 
A specific UART interface: 
 Parameters: Field <Index><BaudRate><DataBit><Parity><StopBit><FlowCtrl>Description UART Interface - 1= UART1
- 2= UART2
- 3= UART3
 Baud Rate (bps) - 9600
- 115200
- 230400
- 460800
- 921600
 Number of Data Bits - 8= 8 bits
 Parity - 0= No parity
- 1= Odd parity
- 2= Even parity
- 3= Mark
- 4= Space
 Number of Stop Bit(s) - 1= 1 stop bit
- 2= 2 stop bits
 Flow Control - 0= None
 Baud RateFor ports utilized in conjunction with either the BlueSMiRF or radio transceivers, we recommend reducing the baud rate to 115200bps or lower to avoid overflowing the buffers of the transceiver's serial port. Configure the SettingsExample Settings - Port: UART1
- Baud Rate: 115200bps
- Data Bits: 8
- Parity: No
- Stop Bits: 1
- Flow Control: None
 Configure the baud rate of the current UART interface to 115200bps: Configure the baud rate of UART1to 115200bps:Configure all parameters of the current UART interface: Configure all parameters of UART1:If there are no errors, users will receive the following response: Retrieve the SettingsExample Settings - Port: UART1
- Baud Rate: 115200bps
- Data Bits: 8
- Parity: No
- Stop Bits: 1
- Flow Control: None
 Get the configuration on the current UART interface: Get the configuration on UART1: If there are no errors, users will receive the following response: 
- 
PQTMCFGPROT
- 
Configures the input/output protocol on a specified port Parameters: Field <PortType><PortID><InputProt><OutputProt>Description Port Type - 1= UART
 Port ID - 1= UART1
- 2= UART2
- 3= UART3
 Input/Output Protocols ( HEX: 32-bit)- Bit 0= NMEA
- Bit 2= RTCM3
 
 HEX:00000005
 BIN:0000 0000 0000 0000 0000 0000 0000 0101Configure the SettingsExample Settings - Port: UART1
- Input Protocol: NMEA & RTCM3
- Input Protocol: NMEA & RTCM3
 Configure the configuration on UART1: If there are no errors, users will receive the following response: 
RTK Settings
PQTMCFGSVIN
- 
Configures a base station's position either by survey-in mode or fixed mode Parameters: Field <Mode><CFG_CNT><3D_AccLimit><ECEF_X><ECEF_Y><ECEF_Z>Description Receiver Mode - 0= Disable
- 1= Survey-in mode
- 2= Fixed mode
 (Position is configured in ECEF coordinates)
 Survey-in Mode 
 Minimum positioning time (seconds)- Range: 0-86400
- Default: 0
 Survey-in Mode 
 3D positioning accuracy (meters)- 0= No limit
- Default: 0.0
 Fixed Mode 
 WGS84 ECEF X,Y,Z coordinates (meters)- Default: 0.0000
 RTK Base Station ModesIn order to operate as a base station, the LG580P GNSS module requires an accurate position of its antenna. This can be either defined in ECEF coordinates or acquired through a self-survey process. - Survey-In Mode: The base station's location is established based on a weighted mean of recent solutions of its position. The <CFG_CNT>and<3D_AccLimit>parameters define the shortest amount of time that the position gets surveyed and the maximum standard deviation of the estimated position.
- Fixed Mode: The base station's position is provided in ECEF coordinates.
 Note Any error in the base station's location will translate directly into an error in the rover's position. Configure the SettingsExample Settings - Mode: Survey-in mode
- Survey Time: 3600 seconds
- 3D Accuracy: 1.2m
- ECEF Coordinates:- X: -2519265.0514m
- Y: 4849534.9045m
- Z: 3277834.6432m
 
 Configure the configuration on UART1: If there are no errors, users will receive the following response: Retrieve the SettingsExample Settings - Mode: Survey-in mode
- Survey Time: 3600 seconds
- 3D Accuracy: 1.2m
- ECEF Coordinates:- X: -2519265.0514m
- Y: 4849534.9045m
- Z: 3277834.6432m
 
 Get the configuration on UART1: If there are no errors, users will receive the following response: 
PQTMCFGRCVRMODE
- 
Configures the mode that the receiver is operating in Parameters: Field <Mode>Description Operation mode - 0= Unknown
- 
1= Rover
 When set to this mode, the receiver will restore to default NMEA message output state.
- 2= Base Station
 When set to this mode, the receiver will automatically disable NMEA message output and enable RTCM- MSM4and RTCMv3- 1005message output.
 Note After switching the moduleās working mode, save the configuration and then reset the module. Otherwise, it will continue to operate in the original mode. Configure the SettingsExample Settings - Port ID: UART1
- Input Protocol: NMEA & RTCM3
- Input Protocol: NMEA & RTCM3
 Configure the configuration on UART1: If there are no errors, users will receive the following response: 
PQTMCFGRTK
- 
Configures the operation settings of the RTK mode Parameters: Field <DiffMode><RelMode>Description Differential Mode - 0= Disable RTK/RTD feature (Differential data is not used)
- 1= Auto mode
- 2= RTD only mode (Only pseudoranges is used)
 Absolute/Relative Mode - 1= Absolute mode, ensure absolute position accuracy
- 2= Relative mode, ensure relative position accuracy
 <DiffMode>=1and the module enters the RTK only mode.Configure the SettingsExample Settings - Port ID: UART1
- Input Protocol: NMEA & RTCM3
- Input Protocol: NMEA & RTCM3
 Configure the configuration on UART1: If there are no errors, users will receive the following response: 
Heading Settings
PQTMTAR
- 
Outputs the time and attitude. The attitude computation in this message is computed from the two-antenna system. $PQTMTAR,<MsgVer>,<Time>,<Quality>,<Res>,<Length>,<Pitch>,<Roll>,<Heading>,<Acc_Pitch>,<Acc_Roll>,<Acc_Heading>,<UsedSV>*<Checksum><CR><LF>Parameters: Field Description <MsgVer>Message version. - 1= Version 1 (Always- 1for this message version)
 <Time>UTC Time ( hhmmss.ddd)- hh= Hours (24hr)
- mm= Minutes
- ss= Seconds
- ddd= Milliseconds
 <Quality>GPS Heading Quality - 0= Fix not available or invalid
- 1= GPS SPS Mode, fix valid
- 2= Differential GPS, SPS Mode, or Satellite Based Augmentation System (SBAS), fix valid
- 3= GPS PPS Mode, fix valid
- 4= Fix Heading. System used in RTK mode with fixed integers
- 5= Float Heading. Satellite system used in RTK mode, floating integers
 <Res>Reserved <Length>Baseline Length (meters) <Pitch>Pitch Angle (degrees) - Range: -90.000000-90.000000
 <Roll>Roll Angle (degrees) - Range: -180.000000-180.000000
 <Heading>Heading (degrees) - Range: 0.000000-360.000000
 <Acc_Pitch>Pitch Accuracy (degrees) <Acc_Roll>Roll Accuracy (degrees) <Acc_Heading>Heading Accuracy (degrees) <UsedSV>Satellites 
 Number used for heading solutionInfo - Only the LG580P supports this message
- More information for the direction of <Heading>in the$PQTMTARmessage, please refer to the dual-antenna heading application note
 Parsed Message- Message Version: 1
- UTC Time: 16:50 34.000s
- GPS Heading Quality: 4- Fix Heading. System used in RTK mode with fixed integers
- Baseline Length: 0.860m
- Pitch Angle: 1.124780°
- Roll Angle: 1.254125°
- Heading: 50.968541°
- Pitch Accuracy: 0.254125°
- Roll Accuracy: 0.125485°
- Heading Accuracy: 0.012547°
- Satellites: 21
 
PQTMCFGBLD
- 
Configures the baseline distance between the two antennas. Parameters: Field <Distance>Description Baseline Distance (meters) - Range: 0.000-5.000
- Default: 0.000
 0, the baseline distance will calculate by softwareInfo - Only the LG580P supports this message
 Configure the SettingsExample Settings - Port ID: UART1
- Input Protocol: NMEA & RTCM3
- Input Protocol: NMEA & RTCM3
 Configure the configuration on UART1: If there are no errors, users will receive the following response: 
- Range: