I think i've tried everything at this point, and nothing seems to work.
I'm using an ELM327 WiFi Dongle, connected it to the Pi, created a socat using:
sudo socat pty,link=/dev/ttyUSB0,waitslave tcp:192.168.0.10:35000
tried to bind it to rmcomm using:
sudo rfcomm bind 0 /dev/ttyUSB0
and then ran a simple python script:
import obd connection = obd.OBD() cmd = obd.commands.SPEED response = connection.query(cmd) print(response.value) print(response.value.to("mph"))
All i receive is this error:
Traceback (most recent call last): File "mph.py", line 2, in <module> connection = obd.OBD() # auto-connects to USB or RF port File "/home/pi/.local/lib/python2.7/site-packages/obd/obd.py", line 64, in __init__ check_voltage, start_low_power) # initialize by connecting and loading sensors File "/home/pi/.local/lib/python2.7/site-packages/obd/obd.py", line 87, in __connect start_low_power) File "/home/pi/.local/lib/python2.7/site-packages/obd/elm327.py", line 144, in __init__ if not self.set_baudrate(baudrate): File "/home/pi/.local/lib/python2.7/site-packages/obd/elm327.py", line 290, in set_baudrate return self.auto_baudrate() File "/home/pi/.local/lib/python2.7/site-packages/obd/elm327.py", line 320, in auto_baudrate response = self.__port.read(1024) File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 501, in read 'device reports readiness to read but returned no data ' serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
I have tried adding a loop to the script, and starting the engine of the car, but it makes no difference. It did say
No OBD-II adaptors found at one point, but it does not get that far now.
Edit 2: Tried running PyOBD-Pi, still no further, just returns this:
['/dev/rfcomm0'] Opening interface (serial port) Interface successfully /dev/rfcomm0 opened Connecting to ECU... Got nothing