Closed JackDinkel closed 6 years ago
I have fixed my issue reading data from the Thermometer. It turns out I was having a USB permissions issue, but solving it took quite a lot more effort than I hoped. Here is what worked in the end:
/etc/udev/rules.d/50-datalogger.rules
SUBSYSTEM !="usb_device", ACTION !="add", GOTO="datalogger_rules_end"
SYSFS{idVendor} =="0c45", SYSFS{idProduct} =="7401", SYMLINK+="datalogger"
MODE="0666", OWNER="jack", GROUP="root"
LABEL="datalogger_rules_end"
where idVendor
and idProduct
are obtained from lsusb
, and OWNER
is my username. This file will grant the necessary permissions for a single USB device.
I can now use the pcsensor driver I found online. I am still experimenting with writing my own. No luck yet, but solving this issue gives me a lot of confidence.
Tabling this. It is not needed.
Create a USB sensor driver. Test on the thermometer until the new sensors arrive.