comparison 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
comparison
equal deleted inserted replaced
1062:785772303f9c 1063:a3f42192da0f
35 { 35 {
36 UART_CO2_INIT = 0, /* Default Status for every sensor type */ 36 UART_CO2_INIT = 0, /* Default Status for every sensor type */
37 UART_CO2_IDLE, /* sensor detected and no communication pending */ 37 UART_CO2_IDLE, /* sensor detected and no communication pending */
38 UART_CO2_ERROR, 38 UART_CO2_ERROR,
39 UART_CO2_SETUP = 10, /* collecting data needed to be read out of the sensor once at startup */ 39 UART_CO2_SETUP = 10, /* collecting data needed to be read out of the sensor once at startup */
40 UART_CO2_MODE, /* set operation mode for sensor */
40 UART_CO2_OPERATING, /* normal operation */ 41 UART_CO2_OPERATING, /* normal operation */
41 UART_CO2_CALIBRATE /* request calibration */ 42 UART_CO2_CALIBRATE /* request calibration */
42 } uartCO2Status_t; 43 } uartCO2Status_t;
43 44
44 typedef enum 45 typedef enum