Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.39 KB | None | 0 0
  1. pi@raspberrypi:~/scripts.py $ sudo python rpm2.py.1
  2. [obd.elm327] ATH1 did not return 'OK', or echoing is still ON
  3. [obd.obd] Cannot load commands: No connection to car
  4. [obd.obd] '010C: Engine RPM' is not supported
  5. ^CTraceback (most recent call last):
  6. File "rpm2.py.1", line 9, in <module>
  7. s = connection.query(obd.commands.RPM)
  8. File "/usr/local/lib/python2.7/dist-packages/obd/asynchronous.py", line 197, in query
  9. return OBDResponse()
  10. File "/usr/local/lib/python2.7/dist-packages/obd/OBDResponse.py", line 55, in __init__
  11. self.time = time.time()
  12. KeyboardInterrupt
  13. pi@raspberrypi:~/scripts.py $ mv rpm2.py.1 rpm2.py
  14. pi@raspberrypi:~/scripts.py $ python rpm2.py
  15. [obd.elm327] ATH1 did not return 'OK', or echoing is still ON
  16. [obd.obd] Cannot load commands: No connection to car
  17. [obd.obd] '010C: Engine RPM' is not supported
  18. ^CTraceback (most recent call last):
  19. File "rpm2.py", line 10, in <module>
  20. if s == "None":
  21. KeyboardInterrupt
  22. pi@raspberrypi:~/scripts.py $ nano rpm2.py
  23. pi@raspberrypi:~/scripts.py $ python rpm2.py
  24. [obd.obd] ======================= python-OBD (v0.7.1) =======================
  25. [obd.obd] Explicit port defined
  26. [obd.elm327] Initializing ELM327: PORT=/dev/ttyUSB0 BAUD=auto PROTOCOL=auto
  27. [obd.elm327] Response from baud 38400: '?\r\r>'
  28. [obd.elm327] Choosing baud 38400
  29. [obd.elm327] write: 'ATZ\r'
  30. [obd.elm327] wait: 1 seconds
  31. [obd.elm327] read: b'\xfc\r\rELM327 v1.5\r\r>'
  32. [obd.elm327] write: 'ATE0\r'
  33. [obd.elm327] read: b'ATE0\rOK'
  34. [obd.elm327] write: 'ATH1\r'
  35. [obd.elm327] read: b'OK\r\r>'
  36. [obd.elm327] write: 'ATL0\r'
  37. [obd.elm327] read: b'OK\r\r>'
  38. [obd.elm327] write: 'AT RV\r'
  39. [obd.elm327] read: b'13.6V\r\r>'
  40. [obd.elm327] write: 'ATSP0\r'
  41. [obd.elm327] read: b'OK'
  42. [obd.elm327] write: '0100\r'
  43. [obd.elm327] read: b'\r\r>'
  44. [obd.elm327] write: 'ATDPN\r'
  45. [obd.elm327] read: b'A0\r\r>'
  46. [obd.elm327] ELM responded with unknown protocol. Trying them one-by-one
  47. [obd.elm327] write: 'ATTP6\r'
  48. [obd.elm327] read: b'OK\r'
  49. [obd.elm327] write: '0100\r'
  50. [obd.elm327] read: b'7E8 06 41 00 BE 1F A8 13 \r\r>'
  51. [obd.protocols.protocol] map ECU 0 --> ENGINE
  52. [obd.elm327] Connected Successfully: PORT=/dev/ttyUSB0 BAUD=38400 PROTOCOL=6
  53. [obd.obd] querying for supported commands
  54. [obd.obd] Sending command: 0100: Supported PIDs [01-20]
  55. [obd.elm327] write: '0100\r'
  56. [obd.elm327] read: b'7E8 06 41 00 BE 1F A8 13 \r\r>'
  57. [obd.obd] Sending command: 0120: Supported PIDs [21-40]
  58. [obd.elm327] write: '0120\r'
  59. [obd.elm327] read: b'7E8 06 41 20 90 05 B0 15 \r\r>'
  60. [obd.obd] Sending command: 0140: Supported PIDs [41-60]
  61. [obd.elm327] write: '0140\r'
  62. [obd.elm327] read: b'7E8 06 41 40 FA DC 20 00 \r\r>'
  63. [obd.obd] Sending command: 0600: Supported MIDs [01-20]
  64. [obd.elm327] write: '0600\r'
  65. [obd.elm327] read: b'7E8 06 46 00 C0 00 00 01 \r\r>'
  66. [obd.obd] Sending command: 0620: Supported MIDs [21-40]
  67. [obd.elm327] write: '0620\r'
  68. [obd.elm327] read: b'7E8 06 46 20 80 00 00 09 \r\r>'
  69. [obd.obd] Sending command: 0640: Supported MIDs [41-60]
  70. [obd.elm327] write: '0640\r'
  71. [obd.elm327] read: b'7E8 06 46 40 40 00 00 01 \r\r>'
  72. [obd.obd] Sending command: 0660: Supported MIDs [61-80]
  73. [obd.elm327] write: '0660\r'
  74. [obd.elm327] read: b'7E8 06 46 60 00 00 00 01 \r\r>'
  75. [obd.obd] Sending command: 0680: Supported MIDs [81-A0]
  76. [obd.elm327] write: '0680\r'
  77. [obd.elm327] read: b'7E8 06 46 80 00 00 00 01 \r\r>'
  78. [obd.obd] Sending command: 06A0: Supported MIDs [A1-C0]
  79. [obd.elm327] write: '06A0\r'
  80. [obd.elm327] read: b'7E8 06 46 A0 F8 00 00 00 \r\r>'
  81. [obd.obd] finished querying with 100 commands supported
  82. [obd.obd] ===================================================================
  83. [obd.asynchronous] Watching command: 010C: Engine RPM
  84. [obd.asynchronous] Starting async thread
  85. [obd.obd] Sending command: 010C: Engine RPM
  86. [obd.elm327] write: '010C\r'
  87. [obd.elm327] read: b'7E8 04 41 0C 0C 3B \r\r>'
  88. [obd.obd] Sending command: 010C: Engine RPM
  89. [obd.elm327] write: '010C\r'
  90. [obd.elm327] read: b'7E8 04 41 0C 0B D1 \r\r>'
  91. [obd.obd] Sending command: 010C: Engine RPM
  92. [obd.elm327] write: '010C\r'
  93. [obd.elm327] read: b'7E8 04 41 0C 0B ED \r\r>'
  94. [obd.obd] Sending command: 010C: Engine RPM
  95. [obd.elm327] write: '010C\r'
  96. [obd.elm327] read: b'7E8 04 41 0C 0B 22 \r\r>'
  97. [obd.obd] Sending command: 010C: Engine RPM
  98. [obd.elm327] write: '010C\r'
  99. [obd.elm327] read: b'7E8 04 41 0C 0E 1F \r\r>'
  100. [obd.obd] Sending command: 010C: Engine RPM
  101. [obd.elm327] write: '010C\r'
  102. [obd.elm327] read: b'7E8 04 41 0C 0D 7A \r\r>'
  103. [obd.obd] Sending command: 010C: Engine RPM
  104. [obd.elm327] write: '010C\r'
  105. [obd.elm327] read: b'7E8 04 41 0C 0C 25 \r\r>'
  106. [obd.obd] Sending command: 010C: Engine RPM
  107. [obd.elm327] write: '010C\r'
  108. [obd.elm327] read: b'7E8 04 41 0C 0B E3 \r\r>'
  109. [obd.obd] Sending command: 010C: Engine RPM
  110. [obd.elm327] write: '010C\r'
  111. [obd.elm327] read: b'7E8 04 41 0C 0B 76 \r\r>'
  112. [obd.obd] Sending command: 010C: Engine RPM
  113. [obd.elm327] write: '010C\r'
  114. [obd.elm327] read: b'7E8 04 41 0C 0C 25 \r\r>'
  115. [obd.obd] Sending command: 010C: Engine RPM
  116. [obd.elm327] write: '010C\r'
  117. [obd.elm327] read: b'7E8 04 41 0C 0C 3B \r\r>'
  118. [obd.obd] Sending command: 010C: Engine RPM
  119. [obd.elm327] write: '010C\r'
  120. [obd.elm327] read: b'7E8 04 41 0C 0C 38 \r\r>'
  121. [obd.obd] Sending command: 010C: Engine RPM
  122. [obd.elm327] write: '010C\r'
  123. [obd.elm327] read: b'7E8 04 41 0C 0B F3 \r\r>'
  124. [obd.obd] Sending command: 010C: Engine RPM
  125. [obd.elm327] write: '010C\r'
  126. [obd.elm327] read: b'7E8 04 41 0C 0C 4E \r\r>'
  127. [obd.obd] Sending command: 010C: Engine RPM
  128. [obd.elm327] write: '010C\r'
  129. [obd.elm327] read: b'7E8 04 41 0C 0C AB \r\r>'
  130. [obd.obd] Sending command: 010C: Engine RPM
  131. [obd.elm327] write: '010C\r'
  132. [obd.elm327] read: b'7E8 04 41 0C 0C 2E \r\r>'
  133. [obd.obd] Sending command: 010C: Engine RPM
  134. [obd.elm327] write: '010C\r'
  135. [obd.elm327] read: b'7E8 04 41 0C 0B A5 \r\r>'
  136. [obd.obd] Sending command: 010C: Engine RPM
  137. [obd.elm327] write: '010C\r'
  138. [obd.elm327] read: b'7E8 04 41 0C 0B FC \r\r>'
  139. [obd.obd] Sending command: 010C: Engine RPM
  140. [obd.elm327] write: '010C\r'
  141. [obd.elm327] read: b'7E8 04 41 0C 0D E4 \r\r>'
  142. [obd.obd] Sending command: 010C: Engine RPM
  143. [obd.elm327] write: '010C\r'
  144. [obd.elm327] read: b'7E8 04 41 0C 0E E1 \r\r>'
  145. [obd.obd] Sending command: 010C: Engine RPM
  146. [obd.elm327] write: '010C\r'
  147. [obd.elm327] read: b'7E8 04 41 0C 0D 5A \r\r>'
  148. [obd.obd] Sending command: 010C: Engine RPM
  149. [obd.elm327] write: '010C\r'
  150. [obd.elm327] read: b'7E8 04 41 0C 0C 67 \r\r>'
  151. [obd.obd] Sending command: 010C: Engine RPM
  152. [obd.elm327] write: '010C\r'
  153. [obd.elm327] read: b'7E8 04 41 0C 0C 31 \r\r>'
  154. [obd.obd] Sending command: 010C: Engine RPM
  155. [obd.elm327] write: '010C\r'
  156. [obd.elm327] read: b'7E8 04 41 0C 0C 09 \r\r>'
  157. [obd.obd] Sending command: 010C: Engine RPM
  158. [obd.elm327] write: '010C\r'
  159. [obd.elm327] read: b'7E8 04 41 0C 0C 70 \r\r>'
  160. [obd.obd] Sending command: 010C: Engine RPM
  161. [obd.elm327] write: '010C\r'
  162. [obd.elm327] read: b'7E8 04 41 0C 0D 67 \r\r>'
  163. [obd.obd] Sending command: 010C: Engine RPM
  164. [obd.elm327] write: '010C\r'
  165. [obd.elm327] read: b'7E8 04 41 0C 0B C4 \r\r>'
  166. [obd.obd] Sending command: 010C: Engine RPM
  167. [obd.elm327] write: '010C\r'
  168. [obd.elm327] read: b'7E8 04 41 0C 0C 0C \r\r>'
  169. [obd.obd] Sending command: 010C: Engine RPM
  170. [obd.elm327] write: '010C\r'
  171. [obd.elm327] read: b'7E8 04 41 0C 0C 47 \r\r>'
  172. [obd.obd] Sending command: 010C: Engine RPM
  173. [obd.elm327] write: '010C\r'
  174. [obd.elm327] read: b'7E8 04 41 0C 0C 79 \r\r>'
  175. [obd.obd] Sending command: 010C: Engine RPM
  176. [obd.elm327] write: '010C\r'
  177. [obd.elm327] read: b'7E8 04 41 0C 0C 83 \r\r>'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement