Ms1Dev / Hypermile

Android Java mobile app that connects to a Bluetooth OBD-II scanner to provide vehicle economy metrics.
0 stars 0 forks source link

adding plug in hybrid features to the app #1

Open ilker-aktuna opened 4 months ago

ilker-aktuna commented 4 months ago

I am developing Android apps myself but I know very few about Bluetooth stack. So I am mostly interested in this project as a user not a developer. The reason I am writing you is that I have a new plug in hybrid car (Alfa Romeo Tonale) and I could not find a good OBD app that retrieves and displays power flow between car’s electric engine, petrol engine and the wheels. I decided to write my own app but since I don’t know much about Bluetooth communication, I could not start developing my own app. Do you have any plans to support plug in hybrid cars ? If yes, I might be able to assist you as a user/beta tester and maybe as a developer.

Please let me know if you are interested.

Ms1Dev commented 4 months ago

This app was sort of experimental, as it was intended for a university project I wasn't planning on developing it further. But I have considered developing another app that just focuses on the OBD-II communication as this is quite useful so I would be interested if that is what you were thinking of making.

There are a couple of considerations for your idea: Is the power flow data something that is available on the OBD system. And if so, what are the PIDs for that data.

Beyond the standard PIDs, vehicle manufacturers can use whatever they want and they don't all agree, so it can vary per vehicle. But if the data is available and the PID is known, then yes what you are planning is very much possible.

I have used the term PID a lot so just in case I don't make sense this wiki article is a good explanation: https://en.wikipedia.org/wiki/OBD-II_PIDs

ilker-aktuna commented 4 months ago

Thanks for your email. Yes, I am interested in OBD-II communication between my car with PHEV features and my phone. I understand the term PID, but I am not sure if what I’m looking for is available on OBD interface of my car. But I know that information is available on OBD interface of some other cars. In fact , the following app provides this information on some other cars: https://play.google.com/store/apps/details?id=phev.watchdog.full But on my car it did not. I guess as the electric features are fairly new, car manufacturers do not use standardized PIDs for providing this information. So it must be different on my car. I can get voltage and power of the electric engine with another app (Car Scanner)

Is it possible to write a simple app to list all PIDs that the car’s OBD interface provides ? If I can do that , and filter out the ones that are known (standard) on legacy cars (petrol engine cars), maybe I can try the other PIDs one by one till I get what I need.

Any ideas ?