14 releases (7 stable)
2.1.1 | Oct 2, 2021 |
---|---|
2.1.0 | Apr 16, 2021 |
2.0.3 | Dec 19, 2019 |
2.0.2 | Nov 27, 2019 |
0.1.0-alpha.4 | Feb 3, 2019 |
#560 in Hardware support
22 downloads per month
29KB
330 lines
co2mon
A driver for the Holtek CO₂ USB monitors, tested using a TFA-Dostmann AIRCO2NTROL 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 is a superset of this one and was reverse-engineered before.
The implementation was inspired by this one.
License
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Dependencies
~0.4–1MB
~17K SLoC