-
Notifications
You must be signed in to change notification settings - Fork 418
Description
Trying to run Python-OBD on Raspberry Pi Zero 2W. Here's the code:
import sys
sys.path.insert(0, '/home/gordona/my-venv/lib/python3.11/site-packages')
import obd
obd.logger.setLevel(obd.logging.DEBUG)
ports = obd.scan_serial()
print (ports)
connection = obd.OBD()
fast=False
timeout=30
cmd = obd.commands.HYBRID_BATTERY_REMAINING
response = connection.query(cmd)
print (response.value)
Here's the output:
[]
[obd.obd] ======================= python-OBD (v0.7.3) =======================
[obd.obd] Using scan_serial to select port
[obd.obd] Available ports: []
[obd.obd] No OBD-II adapters found
[obd.obd] Cannot load commands: No connection to car
[obd.obd] ===================================================================
[obd.obd] Query failed, no connection available
It looks like we're not finding any ports for the BLE connection? Any suggestions would be appreciated. Thx