Skip to content

PAIR Commands

Comprehensive reference for all PAIR proprietary commands supported by the Quectel LC29H GNSS module family. Derived from the Quectel LC29H GNSS Protocol Specification V1.1, LC29H(BS) Protocol Specification V1.0, and AGNSS Application Note V1.0.

All PAIR commands follow NMEA-style framing:

$PAIR<CmdID>,<Arg1>,<Arg2>,...*<CS><CR><LF>
ElementDescription
$Start delimiter
PAIRTalker + sentence identifier
<CmdID>Three-digit command number (zero-padded)
,Field separator
*Checksum delimiter
<CS>Two-character hex XOR of all bytes between $ and *
<CR><LF>Carriage return + line feed terminator

Maximum sentence length: 255 bytes (including $ and <CR><LF>).

unsigned char checksum(const char *sentence) {
unsigned char cs = 0;
for (const char *p = sentence + 1; *p != '*' && *p; p++)
cs ^= (unsigned char)*p;
return cs;
}
AbbreviationModuleCapabilities
AALC29H(AA)SBAS, EASY/EPO, AGNSS
BALC29H(BA)Dead Reckoning + RTK
CALC29H(CA)Dead Reckoning only
DALC29H(DA)RTK only
BSLC29H(BS)Base station, raw output

Asynchronous response returned by the module after processing any PAIR command. Not sent by the host.

Direction: Module → Host

$PAIR001,<CmdID>,<Result>*<CS>
ResultMeaning
0Command succeeded
1Command failed (execution error)
2Command ID not supported
3Invalid parameter(s)
4Command timed out

Variants: All

Sent automatically after power-on or restart. Indicates the module is ready.

$PAIR002*38

Variants: All

Clear all satellite data and restart. Longest TTFF (~26 seconds).

$PAIR003*39

Variants: All

Restart using all cached data. TTFF ~1 second when data is valid.

$PAIR004*3E

Variants: All

Clear ephemeris, retain almanac/position/time. TTFF ~5-10 seconds.

$PAIR005*3F

Variants: All

Same as PAIR003 but retains user configuration (baud rate, fix rate, constellation selection).

$PAIR006*3C

Variants: All

Restore all settings to factory defaults and clear all satellite data.

$PAIR007*3D

Variants: All

$PAIR010*3D

Response: $PAIR010,<EPO_Status>,<Time_Status>,<Position_Status>*<CS>

FieldValues
EPO_Status0 = no EPO data, 1 = available
Time_Status0 = no time aiding, 1 = available
Position_Status0 = no position aiding, 1 = available

Variants: AA (primary); DA, BA, CA support time/position fields

$PAIR021*3A

Response: $PAIR021,<Version>*<CS> (e.g., LC29HAANR11A03S)

Variants: All

$PAIR050,<FixInterval>*<CS>
FieldRangeDefaultUnit
FixInterval100–100001000ms

Examples: $PAIR050,1000*12 (1 Hz), $PAIR050,200*3A (5 Hz), $PAIR050,100*28 (10 Hz)

Variants: All

$PAIR051,<BaudRate>*<CS>

Valid values: 4800, 9600, 19200, 38400, 57600, 115200, 921600. Default: 115200.

Variants: All

$PAIR062,<Mode>*<CS>
ModeDescription
0Off
1RTCM (for RTK — DA, BA variants)
2SBAS (AA variant only)

Variants: All (SBAS functional on AA only)

$PAIR066,<GPS>,<GLONASS>,<Galileo>,<BeiDou>,<QZSS>*<CS>

Each field: 0 = off, 1 = on. Default: all enabled.

Examples:

  • $PAIR066,1,1,1,1,1*1A — all constellations
  • $PAIR066,1,0,0,0,0*1E — GPS only
  • $PAIR066,1,0,1,1,1*1B — GPS + Galileo + BeiDou + QZSS

At least one constellation must remain enabled.

Variants: All

$PAIR067*3E

Variants: All

Rate parameter: 0 = disabled, 1 = every fix, 2 = every 2nd fix, … N = every Nth fix.

CommandSentenceDefault
PAIR070GLL0 (disabled)
PAIR071RMC1
PAIR072VTG1
PAIR073GGA1
PAIR074GSA1
PAIR075GSV1
PAIR076GNS0 (disabled)
PAIR080ZDA0 (disabled)
PAIR095DTM0 (disabled)

Format: $PAIR07X,<Rate>*<CS>

Variants: All

$PAIR382,<Enable>*<CS>

0 = disable, 1 = enable (default: 1). Requires PAIR062 mode 2.

SBAS improves accuracy from ~3 m to ~1-2 m CEP in service areas (WAAS, EGNOS, MSAS, GAGAN).

$PAIR383*35
$PAIR432,<Mode>*<CS>
ModeDescription
-1Disabled (default)
0MSM4 — compact observables (lower bandwidth)
1MSM7 — full observables (higher precision)
$PAIR433*3A

PAIR434 — Set RTCM Antenna Reference Point (1005)

Section titled “PAIR434 — Set RTCM Antenna Reference Point (1005)”
$PAIR434,<Enable>*<CS>

Essential for base station operation — provides ARP coordinates to rovers.

$PAIR436,<Enable>*<CS>

Enables output of messages 1019 (GPS), 1020 (GLONASS), 1042 (BeiDou), 1046 (Galileo).

$PAIR470*3A

Response includes EPO coverage per constellation (0-72 hours).

$PAIR471,<SV>,<Type>,<D0>...<D17>*<CS>

EPO injection is typically automated by QGNSS. Data valid for up to 3 days.

$PAIR472*38
$PAIR490,<Enable>*<CS>

EASY extends ephemeris validity from ~2-4 hours to ~3 days by predicting orbits. Default: enabled.

$PAIR491*3A
$PAIR590,<Year>,<Month>,<Day>,<Hour>,<Minute>,<Second>*<CS>

Time accuracy within 30 seconds is sufficient. Source from host NTP-synced clock.

Variants: All

$PAIR600,<Latitude>,<Longitude>,<Altitude>*<CS>

Position accuracy within 30 km is sufficient. Combined with PAIR590 for maximum TTFF reduction.

Variants: All

$PAIR511*3B

Saves ephemeris, almanac, position, time to flash.

$PAIR513*39
$PAIR650*31

Current drops to ~7 uA. Wake by toggling WAKEUP pin (low >100 ms).

$PAIR690,<Mode>,<RunTime>,<SleepTime>*<CS>
ModeBehavior
0Continuous tracking (default)
1Smart — sleeps but wakes early if fix acquired quickly
2Strict — fixed duty cycle

Example: $PAIR690,1,1000,3000*XX (1s active, 3s sleep)

$PAIR691*30
$PAIR752,<Type>,<PulseWidth>*<CS>
TypeBehavior
0Disabled
1After first fix (default)
2On 3D fix only
3On 2D or 3D fix
4Always (free-running without fix)

PulseWidth: 1–999 ms (default: 100). PPS accuracy ~10-30 ns when fix is valid.

$PAIR830,<Mode>*<CS>
ModeOutput
0Disabled (default)
1Raw measurements only
2Raw measurements + SV status + PVT

Variants: BS (primary), DA

$PAIR831*36
$PAIR864,<PortType>,<PortIndex>,<BaudRate>*<CS>

PortType: 0=UART, 1=I2C, 2=SPI. Provides per-port control vs PAIR051.

$PAIR866,<PortType>,<PortIndex>,<FlowControl>*<CS>

FlowControl: 0=none, 1=XON/XOFF, 2=RTS/CTS (not available on HAT without hardware mod).

$PAIR021*3A Query firmware version
$PAIR067*3E Query current constellation config
$PAIR066,1,1,1,1,1*1A Enable all constellations
$PAIR050,1000*12 Set 1 Hz fix rate
$PAIR073,1*21 Enable GGA every fix
$PAIR071,1*23 Enable RMC every fix
$PAIR075,5*24 GSV every 5th fix (reduce bandwidth)
$PAIR513*39 Save settings to flash
$PAIR062,1*3E Enable RTCM DGPS mode
$PAIR066,1,1,1,1,1*1A Enable all constellations
$PAIR073,1*21 Enable GGA (required for NTRIP)
$PAIR513*39 Save settings
$PAIR432,1*3A Enable MSM7 RTCM output
$PAIR434,1*3A Enable message 1005 (antenna ref)
$PAIR436,1*38 Enable ephemeris messages
$PAIR513*39 Save settings
$PQTMCFGSVIN,W,1,3600,1,0,0,0*16 Start survey-in (1hr, 1m accuracy)
$PAIR490,1*3A Enable EASY for fast reacquisition
$PAIR050,1000*12 1 Hz fix rate
$PAIR690,1,1000,9000*XX Smart mode: 1s on, 9s sleep
$PAIR513*39 Save settings
$PAIR070,0*23 Disable GLL
$PAIR072,0*21 Disable VTG
$PAIR074,0*27 Disable GSA
$PAIR075,0*26 Disable GSV
$PAIR076,0*25 Disable GNS
$PAIR071,1*23 Keep RMC
$PAIR073,1*21 Keep GGA
$PAIR513*39 Save settings