Page 1 of 1

Plugin: _P049_MHZ19; set MeasurementRange command disabled?

Posted: 22 Mar 2024, 17:42
by joost d
The MHZZ19 is a CO2 sensor.
There is a option in the P049 plugin tsourceo to set the MeasurementRange by a command. But this option is not activated in .src\src\P049_data_struct.h by "// #define ENABLE_DETECTION_RANGE_COMMANDS"
Does anyone know if there is a good reason for this deactivation?

Re: Plugin: _P049_MHZ19; set MeasurementRange command disabled?

Posted: 23 Mar 2024, 14:08
by Ath
There is quite an elaborate description in the .cpp file here on how this is supposed to be working, but it seems the documentation has some unclear information, so to avoid confusion, it seems this feature is disabled until it can be thoroughly tested.
If you can help here, by enabling the option and testing/debugging this, that would be very helpful. (Most likely the sensor wasn't available for testing when the code was changed.)

Re: Plugin: _P049_MHZ19; set MeasurementRange command disabled?

Posted: 23 Mar 2024, 17:17
by TD-er
There have been MH-Z19 sensors permanently damaged by setting the range from 2000 -> 5000 ppm and also you don't have any factory calibration when changing the range.
Also as far as I know, this was never an official published command. So it is unclear which firmware/module revision will allow this.

Among the permanently damaged sensors, one of them was mine.

Re: Plugin: _P049_MHZ19; set MeasurementRange command disabled?

Posted: 23 Mar 2024, 17:49
by joost d
OK, thanks for sharing your experience. I have now been warned.
By the way, the official documentation mentions 3 detection ranges that can be set.
If I experiment more, I will report the result here.

Re: Plugin: _P049_MHZ19; set MeasurementRange command disabled?

Posted: 23 Mar 2024, 19:50
by TD-er
Well at least for the "A" version of this sensor it was never documented.
To be more precise, there wasn't any documentation at first so most of it was found by trial-and-error.