18c2ecf20Sopenharmony_ciWhat: /sys/bus/iio/devices/iio:deviceX/calibration_auto_enable 28c2ecf20Sopenharmony_ciDate: June 2020 38c2ecf20Sopenharmony_ciKernelVersion: 5.8 48c2ecf20Sopenharmony_ciContact: linux-iio@vger.kernel.org 58c2ecf20Sopenharmony_ciDescription: 68c2ecf20Sopenharmony_ci Contaminants build-up in the measurement chamber or optical 78c2ecf20Sopenharmony_ci elements deterioration leads to sensor drift. 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci One can compensate for sensor drift by using automatic self 108c2ecf20Sopenharmony_ci calibration procedure (asc). 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci Writing 1 or 0 to this attribute will respectively activate or 138c2ecf20Sopenharmony_ci deactivate asc. 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci Upon reading current asc status is returned. 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ciWhat: /sys/bus/iio/devices/iio:deviceX/calibration_forced_value 188c2ecf20Sopenharmony_ciDate: June 2020 198c2ecf20Sopenharmony_ciKernelVersion: 5.8 208c2ecf20Sopenharmony_ciContact: linux-iio@vger.kernel.org 218c2ecf20Sopenharmony_ciDescription: 228c2ecf20Sopenharmony_ci Contaminants build-up in the measurement chamber or optical 238c2ecf20Sopenharmony_ci elements deterioration leads to sensor drift. 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci One can compensate for sensor drift by using forced 268c2ecf20Sopenharmony_ci recalibration (frc). This is useful in case there's known 278c2ecf20Sopenharmony_ci co2 reference available nearby the sensor. 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci Picking value from the range [400 1 2000] and writing it to the 308c2ecf20Sopenharmony_ci sensor will set frc. 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci Upon reading current frc value is returned. Note that after 338c2ecf20Sopenharmony_ci power cycling default value (i.e 400) is returned even though 348c2ecf20Sopenharmony_ci internally sensor had recalibrated itself. 35