padelt / temper-python

libusb/PyUSB-based driver to read TEMPer USB HID devices (USB ID 0c45:7401) and serve as a NetSNMP passpersist module
Other
182 stars 76 forks source link

No output from temper.py, but no error. #94

Closed bucklevision closed 3 years ago

bucklevision commented 4 years ago

I had temper operating correctly and reading out temps at the commandline. I started making modifications to the .py to limit the output to purely a number, so I could more easily parse it in logs using another script. I had a couple of syntactical issues and eventually reached a point where I got no output from the script. At which point I reverted to a freshly downloaded copy of the .py and ran that, this also gave no output. I get no error, no missing device info etc, it just returns no output.

Is this a failure mode that suggests anything in particular? (faulty hardware, drive issue?)

Any help appreciated.

padelt commented 4 years ago

Hi @bucklevision , not sure how to help you here. The usual advice is probably appropriate: reset device and host, try to ensure you are actually running a fresh copy of temperusb etc. The failure modes I saw were more around hanging while requesting data or strange responses from the device leading to (visible) errors. If nothing helps, try tracing the whole program and post the result: https://stackoverflow.com/a/3752246