@@ -213,7 +213,7 @@ void GNSS_MOSAIC::begin()
213
213
// (The comments on the schematic are out of date)
214
214
215
215
// On Facet Flex (with Ethernet):
216
- // COM1 is connected to the ESP32 UART1
216
+ // COM1 is connected to the ESP32 UART1 for: Encapsulated RTCMv3 + SBF + NMEA
217
217
// COM2 is connected to LoRa or 4-pin JST (switched by SW4)
218
218
// COM3 can be connected to ESP32 UART2 (switched by SW3)
219
219
// COM4 can be connected to ESP32 UART0 (switched by SW2)
@@ -222,7 +222,7 @@ void GNSS_MOSAIC::begin()
222
222
// The alternative would be to add a 'hybrid' parser to the SEMP which can disambiguate SBF and NMEA
223
223
224
224
// On Facet Flex (with IMU):
225
- // COM1 is connected to the ESP32 UART1
225
+ // COM1 is connected to the ESP32 UART1 for: Encapsulated RTCMv3 + SBF + NMEA
226
226
// COM2 is connected to LoRa or 4-pin JST (switched by SW4)
227
227
// COM3 is N/C (ESP32 UART2 is connected to the IMU)
228
228
// COM4 TX provides data to the IMU - TODO
@@ -298,7 +298,7 @@ void GNSS_MOSAIC::begin()
298
298
299
299
// Set COM2 (Radio) and COM3 (Data) baud rates
300
300
setRadioBaudRate (settings.radioPortBaud );
301
- setDataBaudRate (settings.dataPortBaud );
301
+ setDataBaudRate (settings.dataPortBaud ); // Probably redundant
302
302
303
303
// Set COM2 (Radio) protocol(s)
304
304
setCorrRadioExtPort (settings.enableExtCorrRadio , true ); // Force the setting
@@ -307,7 +307,7 @@ void GNSS_MOSAIC::begin()
307
307
308
308
_receiverSetupSeen = false ;
309
309
310
- _isBlocking = true ;
310
+ _isBlocking = true ; // Suspend the GNSS read task
311
311
312
312
// Request the ReceiverSetup SBF block using a esoc (exeSBFOnce) command on COM1
313
313
String request = " esoc,COM1,ReceiverSetup\n\r " ;
@@ -2093,7 +2093,7 @@ bool GNSS_MOSAIC::sendAndWaitForIdle(HardwareSerial *serialPort, const char *mes
2093
2093
if (strlen (reply) == 0 ) // Reply can't be zero-length
2094
2094
return false ;
2095
2095
2096
- _isBlocking = true ;
2096
+ _isBlocking = true ; // Suspend the GNSS read task
2097
2097
2098
2098
if (debug && (settings.debugGnss == true ) && (!inMainMenu))
2099
2099
systemPrintf (" sendAndWaitForIdle: sending %s\r\n " , message);
@@ -2206,7 +2206,7 @@ bool GNSS_MOSAIC::sendWithResponse(HardwareSerial *serialPort, const char *messa
2206
2206
if (strlen (reply) == 0 ) // Reply can't be zero-length
2207
2207
return false ;
2208
2208
2209
- _isBlocking = true ;
2209
+ _isBlocking = true ; // Suspend the GNSS read task
2210
2210
2211
2211
if ((settings.debugGnss == true ) && (!inMainMenu))
2212
2212
systemPrintf (" sendWithResponse: sending %s\r\n " , message);
@@ -2887,6 +2887,8 @@ void GNSS_MOSAIC::updateSD()
2887
2887
// ----------------------------------------
2888
2888
void GNSS_MOSAIC::waitSBFReceiverSetup (HardwareSerial *serialPort, unsigned long timeout)
2889
2889
{
2890
+ // Note: _isBlocking should be set externally - if needed
2891
+
2890
2892
SEMP_PARSE_ROUTINE const sbfParserTable[] = {sempSbfPreamble};
2891
2893
const int sbfParserCount = sizeof (sbfParserTable) / sizeof (sbfParserTable[0 ]);
2892
2894
const char *const sbfParserNames[] = {
0 commit comments