diff Small_CPU/Inc/uartProtocol_Co2.h @ 1063:a3f42192da0f Icon_Integration

Always use polling mode for CO2 operation: In the previous version the CO2 sensor was operated in streaming mode (2 measurements a second) in case it was used stand alone (without multiplexer). This added some complexity to the implementation (setup, error handling etc). To reduce this the sensor will now always be operated in polling mode like it is done for multiplexer operation. To make sure that the correct mode is set a command has been added to the configuration steps.
author Ideenmodellierer
date Wed, 11 Feb 2026 18:35:44 +0100
parents c3dd461ca3f9
children
line wrap: on
line diff
--- a/Small_CPU/Inc/uartProtocol_Co2.h	Tue Feb 10 19:36:05 2026 +0100
+++ b/Small_CPU/Inc/uartProtocol_Co2.h	Wed Feb 11 18:35:44 2026 +0100
@@ -37,6 +37,7 @@
 	UART_CO2_IDLE,			/* sensor detected and no communication pending */
 	UART_CO2_ERROR,
  	UART_CO2_SETUP = 10,	/* collecting data needed to be read out of the sensor once at startup */
+	UART_CO2_MODE,			/* set operation mode for sensor */
   	UART_CO2_OPERATING,		/* normal operation */
 	UART_CO2_CALIBRATE		/* request calibration */
   } uartCO2Status_t;