Plugin: _P049_MHZ19; set MeasurementRange command disabled?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
joost d
Normal user
Posts: 53
Joined: 24 Dec 2020, 17:55
Location: Netherlands/ Haarlem

Plugin: _P049_MHZ19; set MeasurementRange command disabled?

#1 Post by joost d » 22 Mar 2024, 17:42

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?

User avatar
Ath
Normal user
Posts: 3519
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Plugin: _P049_MHZ19; set MeasurementRange command disabled?

#2 Post by Ath » 23 Mar 2024, 14:08

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.)
/Ton (PayPal.me)

TD-er
Core team member
Posts: 8755
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Plugin: _P049_MHZ19; set MeasurementRange command disabled?

#3 Post by TD-er » 23 Mar 2024, 17:17

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.

joost d
Normal user
Posts: 53
Joined: 24 Dec 2020, 17:55
Location: Netherlands/ Haarlem

Re: Plugin: _P049_MHZ19; set MeasurementRange command disabled?

#4 Post by joost d » 23 Mar 2024, 17:49

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.

TD-er
Core team member
Posts: 8755
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Plugin: _P049_MHZ19; set MeasurementRange command disabled?

#5 Post by TD-er » 23 Mar 2024, 19:50

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.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 42 guests