Skip to content

Commit

Permalink
workaround from actual hardware testing
Browse files Browse the repository at this point in the history
  • Loading branch information
djs committed Jun 17, 2012
1 parent 21c68f2 commit 5823c6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion elm.py
Expand Up @@ -27,6 +27,8 @@ def __init__(self, interface, baud=None):

self.interface = interface

self._connect()

def reset(self):
response = self.send_control_command('Z')
self._check_reset(response)
Expand All @@ -46,7 +48,9 @@ def _connect(self):

response = self.send_control_command('SP0')
response = self.send_control_command('DP')
print response
self.send('0100')
# TODO deal with multiple ECUs properly
self.send_control_command('CRA7E8')

def send(self, command):
data = ""
Expand Down
1 change: 1 addition & 0 deletions fixtures/elm.json
Expand Up @@ -5,6 +5,7 @@
"0902": "014 \r0: 49 02 01 31 46 41 \r1: 48 50 33 4A 32 31 43 \r2: 4C 32 31 32 39 37 38 ",
"AT@1": "SCANTOOL.NET LLC",
"AT@2": "100010006357",
"ATCRA7E8": "OK",
"ATDP": "AUTO",
"ATRV": "12.3V",
"ATSP0": "OK",
Expand Down

0 comments on commit 5823c6a

Please sign in to comment.