brendan-w / python-OBD

OBD-II serial module for reading engine data
GNU General Public License v2.0
1.06k stars 369 forks source link

Help in commands #202

Open zeesh1979 opened 3 years ago

zeesh1979 commented 3 years ago

First I am sorry of this question doesnt fit in the categor of reporting issues... i wanted to know if i can use this package to control stuff in car like door lock/unlock, turn on/off headlights/indicators etc etc i am currently having Honda Civic 2011 to test these on

studioj commented 3 years ago

default obd (on board diagnostics) doesnt support that. Often cars implement those things on other busses which sometimes can be accessed through obd communication but that's really brand specific. I know for example on the BMW this is handled on what they call the K-Bus

maybe read up here https://python-obd.readthedocs.io/en/latest/Command%20Tables/ on the supported commands.

for your project maybe look here for more info https://www.giac.org/paper/gcia/9927/hacking-bus-basic-manipulation-modern-automobile-bus-reverse-engineering/133228

zeesh1979 commented 3 years ago

can you tell me how i can get values without units from this library? when i run RPM it gives me value with revolutions per minute ( i just need value). same with speed


From: studioj notifications@github.com Sent: Monday, November 23, 2020 9:01 PM To: brendan-w/python-OBD python-OBD@noreply.github.com Cc: zeesh1979 zeesh1979@hotmail.com; Author author@noreply.github.com Subject: Re: [brendan-w/python-OBD] Help in commands (#202)

default obd (on board diagnostics) doesnt support that. Often cars implement those things on other busses which sometimes can be accessed through obd communication but that's really brand specific. I know for example on the BMW this is handled on what they call the K-Bus

maybe read up here https://python-obd.readthedocs.io/en/latest/Command%20Tables/ on the supported commands.

for your project maybe look here for more info https://www.giac.org/paper/gcia/9927/hacking-bus-basic-manipulation-modern-automobile-bus-reverse-engineering/133228

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/brendan-w/python-OBD/issues/202#issuecomment-732328832, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AE5TO4HUVLS47MBUH3FU5NTSRKPQDANCNFSM4SEVTCDA.

studioj commented 3 years ago

to be honest I'd replace them pseudocode value.replace("rpm","")

you can also have a look at pint which is a grrat lib for units https://pypi.org/project/Pint/