I have spent a chunk of time trying to get this prototype running but now I'm just going to pass it on to an actual Android developer.
There is an app called Torque Pro that works with the OBDII in cars. This application has a plugin option. The developer has created a sample plugin app that talks to the main torque app via a service aidl. This service can gather data from the vehicle.
What I need:
- Plugin modified to run in the background and collect the data polling every x seconds.
- A setting that asks for a username which retrieves vehicles ID via API that are attached to that username and allows the user to select which vehicle ID to use. This will just relay which ID was picked with the data collected as described below.
- Have an setting to either send this data every time it polls to a URL or save to a json file locally till 10 minutes have passed with the vehicle off(This is provided by the torque service) then upload this json file to a URL. If the main torque app/service closes then the plugin finishes early if it needs to.
I was able to take the example plugin modify to spin off a service and collect data in json file kind of. But I'm not familiar w/ android programming so hit a bunch of errors since I just slapped everything together not really know what it all ment.
Torque Pro app in Market:
[url removed, login to view]?t=W251bGwsMSwyLDEsIm9yZy5wcm93bC50b3JxdWUiXQ..
Source for plugin and updated aidl file:
[url removed, login to view]
Not sure if there can be a display but if there can be then show if vehicle connected and debug info or a notification bar of some debug.
It would not be using my messy code. Start clean with the plugin example provided.
Sir I am an android expert. I have a car with ODB2 connector, ODB2 to bluetooth adapter and 3 different android devices. This means I can code and test your project efficiently.