Rust crate for CO₂ USB monitors
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
co2mon Add some use statements in the example Feb 3, 2019
zg-co2 (cargo-release) version 0.1.0-alpha.2 Feb 1, 2019
.gitignore Intial version Feb 1, 2019
.travis.yml Try to enable Windows and MacOS CI Feb 2, 2019
Cargo.toml Intial version Feb 1, 2019
LICENSE-APACHE Intial version Feb 1, 2019
LICENSE-MIT Intial version Feb 1, 2019
README.md Intial version Feb 1, 2019

README.md

co2mon

Build Status Latest Version API docs

A driver for the Holtek CO₂ USB monitors, tested using a TFA-Dostmann AIRCO2TROL MINI sensor.

Permissions

On Linux, you need to be able to access the USB HID device. For that, you can save the following udev rule to /etc/udev/rules.d/60-co2mon.rules:

ACTION=="add|change", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04d9", ATTRS{idProduct}=="a052", MODE:="0666"

Then reload the rules and trigger them:

udevadm control --reload
udevadm trigger

Note that the udev rule above makes the device accessible to every local user.

Quick start

cargo run --example watch

Releases

Release notes are available in CHANGELOG.md.

Protocol

The USB HID protocol is not documented, but was reverse-engineered before.

The implementation was inspired by this one.

License

This project is licensed under either of

at your option.