-
Notifications
You must be signed in to change notification settings - Fork 405
Description
OS: Windows 10
Car: 1998 Toyota Camry LE 2.2L4
OBD2 Scanner
Issue: Failed to choose baud
& Failed to set baudrate
Code:
import obd
obd.logger.setLevel(obd.logging.DEBUG)
connection = obd.OBD(timeout=5)
cmd = obd.commands.RPM
response = connection.query(cmd)
print(response.value)
Logs:
[obd.obd] ======================= python-OBD (v0.7.1) =======================
[obd.obd] Using scan_serial to select port
[obd.obd] Available ports: ['\\.\\COM3']
[obd.obd] Attempting to use port: \.\COM3
[obd.elm327] Initializing ELM327: PORT=\.\COM3 BAUD=auto PROTOCOL=auto
[obd.elm327] Response from baud 110: b'\xff'
[obd.elm327] Response from baud 300: b''
[obd.elm327] Response from baud 600: b''
[obd.elm327] Response from baud 1200: b''
[obd.elm327] Response from baud 2400: b''
[obd.elm327] Response from baud 4800: b''
[obd.elm327] Response from baud 9600: b''
[obd.elm327] Response from baud 14400: b''
[obd.elm327] Response from baud 19200: b''
[obd.elm327] Response from baud 38400: b''
[obd.elm327] Response from baud 57600: b'\x7f\x7f\xfd'
[obd.elm327] Response from baud 128000: b'\xff'
[obd.elm327] Response from baud 256000: b'\xff\xfd'
[obd.elm327] Failed to choose baud
[obd.elm327] closing port
[obd.elm327] write: b'ATZ\r'
[obd.elm327] Failed to set baudrate
[obd.obd] Closing connection
[obd.obd] Cannot load commands: No connection to car
[obd.obd] ===================================================================
[obd.obd] Query failed, no connection available
None
Notes
-The car has a crappy battery, I have to start the car before Windows will even recognize the USB device.
-I'm not totally sure the OBD scanner supports the car's protocol, if someone knows of one that would, please let me know.
-Tried EasyOBD software which fails at Interface Communication -check connections and power. (The reason I mentioned the battery previously.
-FORSCAN Software gave similar results, saying "Failed to connect to vehicle"
-My laptop doesn't have standard USB ports, I'm using a USB to Type C adapter.
-I'm not well-versed in car protocols or things like baud rates, please keep that in mind.
-Thanks in advance to anyone that may be able to assist me. :)