I’m seeing this again … really, my autopi doesn’t seem to be working properly since the last update.
I’m seeing in the logs looping -
2019-04-06 13:35:55,197 [messaging :687 ][INFO ][748] Triggering event with tag 'vehicle/obd/bus_connected': {'protocol': '6', 'autodetected': True}
2019-04-06 13:35:55,224 [obd.interfaces.elm327:327 ][INFO ][748] Connected successfully to vehicle: Port=/dev/serial0, Baudrate=576000, Protocol=6
2019-04-06 13:35:55,602 [obd_conn :113 ][ERROR ][748] Failed to open OBD connection
Traceback (most recent call last):
File "/var/cache/salt/minion/extmods/utils/obd_conn.py", line 104, in open
fast=False
File "/usr/local/lib/python2.7/dist-packages/obd/obd.py", line 65, in __init__
self.__load_commands()
File "/usr/local/lib/python2.7/dist-packages/obd/obd.py", line 132, in __load_commands
response = OBD.query(self, get)
File "/usr/local/lib/python2.7/dist-packages/obd/obd.py", line 273, in query
messages = self.interface.query(cmd_string, header=header)
File "/usr/local/lib/python2.7/dist-packages/obd/interfaces/elm327.py", line 563, in query
lines = self.send(cmd, read_timeout=read_timeout, raw_response=not parse)
File "/usr/local/lib/python2.7/dist-packages/obd/interfaces/elm327.py", line 610, in send
raise ELM327Error(self.ERRORS[line], code=line)
ELM327Error: No data received from vehicle within timeout
Including not reading the voltage -
2019-04-06 13:32:04,290 [obd.interfaces.elm327:242 ][INFO ][785] Opening interface connection: Port=/dev/serial0, Baudrate=9600, Protocol={'verify': True, 'baudrate': None, 'id': None}
2019-04-06 13:32:04,322 [messaging :232 ][ERROR ][785] Recurring exception (4 times) in worker thread 'readout_1sec' while running workflow for message: {'returner': 'cloud', 'converter': 'battery', 'args': ['ELM_VOLTAGE'], 'filter': 'alternating_readout', 'handler': 'query', 'kwargs': {'protocol': 'None', 'force': True}}
Traceback (most recent call last):
File "/var/cache/salt/minion/extmods/utils/messaging.py", line 188, in do_work
self._call_hook_for(message, "workflow", message)
File "/var/cache/salt/minion/extmods/utils/messaging.py", line 410, in _call_hook_for
return True, func(*args, **kwargs)
File "/var/cache/salt/minion/extmods/utils/messaging.py", line 325, in extended_workflow
found, result = self._call_hook_for(message, "handler", *args, **kwargs)
File "/var/cache/salt/minion/extmods/utils/messaging.py", line 410, in _call_hook_for
return True, func(*args, **kwargs)
File "/var/cache/salt/minion/extmods/utils/messaging.py", line 515, in synchronizer
return func(*args, **kwargs)
File "/var/cache/salt/minion/extmods/engines/obd_manager.py", line 128, in query_handler
if not cmd in conn.supported_commands() and not force:
File "/var/cache/salt/minion/extmods/utils/obd_conn.py", line 26, in decorator
self.ensure_open()
File "/var/cache/salt/minion/extmods/utils/obd_conn.py", line 132, in ensure_open
self.open()
File "/usr/local/lib/python2.7/dist-packages/retrying.py", line 49, in wrapped_f
return Retrying(*dargs, **dkw).call(f, *args, **kw)
File "/usr/local/lib/python2.7/dist-packages/retrying.py", line 212, in call
raise attempt.get()
File "/usr/local/lib/python2.7/dist-packages/retrying.py", line 247, in get
six.reraise(self.value[0], self.value[1], self.value[2])
File "/usr/local/lib/python2.7/dist-packages/retrying.py", line 200, in call
attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
File "/var/cache/salt/minion/extmods/utils/obd_conn.py", line 104, in open
fast=False
File "/usr/local/lib/python2.7/dist-packages/obd/obd.py", line 65, in __init__
self.__load_commands()
File "/usr/local/lib/python2.7/dist-packages/obd/obd.py", line 132, in __load_commands
response = OBD.query(self, get)
File "/usr/local/lib/python2.7/dist-packages/obd/obd.py", line 273, in query
messages = self.interface.query(cmd_string, header=header)
File "/usr/local/lib/python2.7/dist-packages/obd/interfaces/elm327.py", line 563, in query
lines = self.send(cmd, read_timeout=read_timeout, raw_response=not parse)
File "/usr/local/lib/python2.7/dist-packages/obd/interfaces/elm327.py", line 610, in send
raise ELM327Error(self.ERRORS[line], code=line)
ELM327Error: No data received from vehicle within timeout
Nor does the modem seem to be working.