-
Notifications
You must be signed in to change notification settings - Fork 78
Description
Made both of these changes and updated the timeout from 0.2 to 0.5 and still get failures every other read when running
while true; do sudo ./temper2.py; sleep 5; done
on an RPi 3 B+
Just investigating, the regularity of it made me call hardware into question, checking dmesg it shows brownout on each successful read, subsequently returning rubbish. Will confirm with new PSU.
__ Update:
PSU swapped for a high current one, no improvement - power drop out doesn't happen but still get errors.
Output modified as I don't need all the bumf, but....
--@--:/home/pi# ./temper2.py
21.5 2020-01-21 21:01:39
--@--:/home/pi# ./temper2.py
21.5 2020-01-21 21:01:41
--@--:/home/pi# ./temper2.py
Traceback (most recent call last):
File "./temper2.py", line 434, in
sys.exit(temper.main())
File "./temper2.py", line 427, in main
results = self.read(args.verbose)
File "./temper2.py", line 345, in read
results.append({ **info, **usbread.read() })
File "./temper2.py", line 272, in read
return self._read_hidraw(self.device)
File "./temper2.py", line 180, in _read_hidraw
firmware = self._read_hidraw_firmware(fd, self.verbose)
File "./temper2.py", line 159, in _read_hidraw_firmware
raise RuntimeError('Cannot read device firmware identifier')
RuntimeError: Cannot read device firmware identifier
Originally posted by @bucklevision in #16 (comment)