OceanDataTools / openrvdas

An open source data acquisition system designed for use on research vessels and other scientific installations
http://openrvdas.org
Other
43 stars 21 forks source link

1Wire Reader crashes intermittently #309

Closed davidpablocohn closed 2 years ago

davidpablocohn commented 2 years ago
9 21:36:02 raspberrypi rc.local[373]: Traceback (most recent call last):
Apr  9 21:36:03 raspberrypi rc.local[373]:   File "/opt/openrvdas/logger/listener/listen.py", line 849, in <module>
Apr  9 21:36:03 raspberrypi rc.local[373]:     listener.run()
Apr  9 21:36:03 raspberrypi rc.local[373]:   File "/opt/openrvdas/logger/listener/listener.py", line 119, in run
Apr  9 21:36:03 raspberrypi rc.local[373]:     raise e
Apr  9 21:36:03 raspberrypi rc.local[373]:   File "/opt/openrvdas/logger/listener/listener.py", line 102, in run
Apr  9 21:36:03 raspberrypi rc.local[373]:     record = self.reader.read()
Apr  9 21:36:03 raspberrypi rc.local[373]:   File "/opt/openrvdas/logger/readers/composed_reader.py", line 137, in read
Apr  9 21:36:03 raspberrypi rc.local[373]:     return self._apply_transforms(self.readers[0].read())
Apr  9 21:36:03 raspberrypi rc.local[373]:   File "/opt/openrvdas/contrib/raspberrypi/readers/onewire_reader.py", line 128, in read
Apr  9 21:36:03 raspberrypi rc.local[373]:     results = [sensor.get_temperature() for sensor in self.sensors]
Apr  9 21:36:03 raspberrypi rc.local[373]:   File "/opt/openrvdas/contrib/raspberrypi/readers/onewire_reader.py", line 128, in <listcomp>
Apr  9 21:36:03 raspberrypi rc.local[373]:     results = [sensor.get_temperature() for sensor in self.sensors]
Apr  9 21:36:03 raspberrypi rc.local[373]:   File "/opt/openrvdas/venv/lib/python3.9/site-packages/pi1wire/_sensor.py", line 26, in get_temperature
Apr  9 21:36:03 raspberrypi rc.local[373]:     crc, check, raw_value = parse_response(r)
Apr  9 21:36:03 raspberrypi rc.local[373]:   File "/opt/openrvdas/venv/lib/python3.9/site-packages/pi1wire/_parser.py", line 8, in parse_response
Apr  9 21:36:03 raspberrypi rc.local[373]:     raise UnsupportResponseException('Unsupport response [%s]' % data)
Apr  9 21:36:03 raspberrypi rc.local[373]: pi1wire._exception.UnsupportResponseException: Unsupport response []
davidpablocohn commented 2 years ago

Resolved with fb73371