Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion obd_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ def scanSerial():
s.close() # explicit close 'cause of delayed GC in java
except serial.SerialException:
pass

for i in range(256):
try: #scan Bluetooth rfcomm bindings
s = serial.Serial("/dev/rfcomm"+str(i))
available.append(s.portstr)
s.close() # explicit close 'cause of delayed GC in java
except serial.SerialException:
pass
# ELM-USB shows up as /dev/tty.usbmodemXXXX, where XXXX is a changing hex string
# on connection; so we have to search through all 64K options
if len(platform.mac_ver()[0])!=0: #search only on MAC
Expand Down