Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pi@raspberrypi:~/scripts.py $ sudo python rpm2.py.1
- [obd.elm327] ATH1 did not return 'OK', or echoing is still ON
- [obd.obd] Cannot load commands: No connection to car
- [obd.obd] '010C: Engine RPM' is not supported
- ^CTraceback (most recent call last):
- File "rpm2.py.1", line 9, in <module>
- s = connection.query(obd.commands.RPM)
- File "/usr/local/lib/python2.7/dist-packages/obd/asynchronous.py", line 197, in query
- return OBDResponse()
- File "/usr/local/lib/python2.7/dist-packages/obd/OBDResponse.py", line 55, in __init__
- self.time = time.time()
- KeyboardInterrupt
- pi@raspberrypi:~/scripts.py $ mv rpm2.py.1 rpm2.py
- pi@raspberrypi:~/scripts.py $ python rpm2.py
- [obd.elm327] ATH1 did not return 'OK', or echoing is still ON
- [obd.obd] Cannot load commands: No connection to car
- [obd.obd] '010C: Engine RPM' is not supported
- ^CTraceback (most recent call last):
- File "rpm2.py", line 10, in <module>
- if s == "None":
- KeyboardInterrupt
- pi@raspberrypi:~/scripts.py $ nano rpm2.py
- pi@raspberrypi:~/scripts.py $ python rpm2.py
- [obd.obd] ======================= python-OBD (v0.7.1) =======================
- [obd.obd] Explicit port defined
- [obd.elm327] Initializing ELM327: PORT=/dev/ttyUSB0 BAUD=auto PROTOCOL=auto
- [obd.elm327] Response from baud 38400: '?\r\r>'
- [obd.elm327] Choosing baud 38400
- [obd.elm327] write: 'ATZ\r'
- [obd.elm327] wait: 1 seconds
- [obd.elm327] read: b'\xfc\r\rELM327 v1.5\r\r>'
- [obd.elm327] write: 'ATE0\r'
- [obd.elm327] read: b'ATE0\rOK'
- [obd.elm327] write: 'ATH1\r'
- [obd.elm327] read: b'OK\r\r>'
- [obd.elm327] write: 'ATL0\r'
- [obd.elm327] read: b'OK\r\r>'
- [obd.elm327] write: 'AT RV\r'
- [obd.elm327] read: b'13.6V\r\r>'
- [obd.elm327] write: 'ATSP0\r'
- [obd.elm327] read: b'OK'
- [obd.elm327] write: '0100\r'
- [obd.elm327] read: b'\r\r>'
- [obd.elm327] write: 'ATDPN\r'
- [obd.elm327] read: b'A0\r\r>'
- [obd.elm327] ELM responded with unknown protocol. Trying them one-by-one
- [obd.elm327] write: 'ATTP6\r'
- [obd.elm327] read: b'OK\r'
- [obd.elm327] write: '0100\r'
- [obd.elm327] read: b'7E8 06 41 00 BE 1F A8 13 \r\r>'
- [obd.protocols.protocol] map ECU 0 --> ENGINE
- [obd.elm327] Connected Successfully: PORT=/dev/ttyUSB0 BAUD=38400 PROTOCOL=6
- [obd.obd] querying for supported commands
- [obd.obd] Sending command: 0100: Supported PIDs [01-20]
- [obd.elm327] write: '0100\r'
- [obd.elm327] read: b'7E8 06 41 00 BE 1F A8 13 \r\r>'
- [obd.obd] Sending command: 0120: Supported PIDs [21-40]
- [obd.elm327] write: '0120\r'
- [obd.elm327] read: b'7E8 06 41 20 90 05 B0 15 \r\r>'
- [obd.obd] Sending command: 0140: Supported PIDs [41-60]
- [obd.elm327] write: '0140\r'
- [obd.elm327] read: b'7E8 06 41 40 FA DC 20 00 \r\r>'
- [obd.obd] Sending command: 0600: Supported MIDs [01-20]
- [obd.elm327] write: '0600\r'
- [obd.elm327] read: b'7E8 06 46 00 C0 00 00 01 \r\r>'
- [obd.obd] Sending command: 0620: Supported MIDs [21-40]
- [obd.elm327] write: '0620\r'
- [obd.elm327] read: b'7E8 06 46 20 80 00 00 09 \r\r>'
- [obd.obd] Sending command: 0640: Supported MIDs [41-60]
- [obd.elm327] write: '0640\r'
- [obd.elm327] read: b'7E8 06 46 40 40 00 00 01 \r\r>'
- [obd.obd] Sending command: 0660: Supported MIDs [61-80]
- [obd.elm327] write: '0660\r'
- [obd.elm327] read: b'7E8 06 46 60 00 00 00 01 \r\r>'
- [obd.obd] Sending command: 0680: Supported MIDs [81-A0]
- [obd.elm327] write: '0680\r'
- [obd.elm327] read: b'7E8 06 46 80 00 00 00 01 \r\r>'
- [obd.obd] Sending command: 06A0: Supported MIDs [A1-C0]
- [obd.elm327] write: '06A0\r'
- [obd.elm327] read: b'7E8 06 46 A0 F8 00 00 00 \r\r>'
- [obd.obd] finished querying with 100 commands supported
- [obd.obd] ===================================================================
- [obd.asynchronous] Watching command: 010C: Engine RPM
- [obd.asynchronous] Starting async thread
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0C 3B \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0B D1 \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0B ED \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0B 22 \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0E 1F \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0D 7A \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0C 25 \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0B E3 \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0B 76 \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0C 25 \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0C 3B \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0C 38 \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0B F3 \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0C 4E \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0C AB \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0C 2E \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0B A5 \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0B FC \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0D E4 \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0E E1 \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0D 5A \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0C 67 \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0C 31 \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0C 09 \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0C 70 \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0D 67 \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0B C4 \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0C 0C \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0C 47 \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0C 79 \r\r>'
- [obd.obd] Sending command: 010C: Engine RPM
- [obd.elm327] write: '010C\r'
- [obd.elm327] read: b'7E8 04 41 0C 0C 83 \r\r>'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement