How to generalise the detection of the response to the PMTK353 command

Hi,

In document quectel_lx6lc86llg77l_series_gnss_protocol_specification_v2-3.pdf on page 56 it has the example :

//Search GPS + GLONASS:
$PMTK353,1,1,0,0,02B**
$PMTK001,353,3,1,1,0,0,0,3
36

//Search GPS + BDS:
$PMTK353,1,0,0,0,12B
$PMTK001,353,3,1,0,0,0,1,49
08

I’m trying to generalise the detection of the response to the PMTK353 command and I don’t know what the parameter 49 is in the second example or 3 is in the first example. I’m referring to the number before the * in the response.

I need a way to predict what it should be based on the initial PMTK353 command.

Thanks

Dear @Nick_Ward ,

Good Day,

Searh MODE Parameter:
$PMTK353,<GPS_Enable>,<GLONASS_Enable>,<Galileo_Enabled>,,<BDS_Enable>*

The LF part means the Line Feed in ASCII character,therefore in every PMTK command need to have both CR and LR.

Without <CR><LF>:
a) The GNSS module may ignore the command
b) Or keep waiting for more data