-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rpi 3B+ with 0c45:7401 TEMPerF1.4 #20
Comments
Further information via that discussion: It seems to happen with successive calls within 2ish seconds. Give it 5 and most of the time it's OK. lsusb: output of /sys/kernel/debug/usb/devices It's one of these: However it was purchased from Amazon. |
Indeed, I can reproduce this setup and issue here too:
|
Works:
Does not:
|
Changing the timeout from 0.2 to 0.6 seems to work for this setup. |
I also hava a Raspberry Pi Zero W, which exhibits a similar problem for the same TEMPerF1.4:
|
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)
The text was updated successfully, but these errors were encountered: