fr3ts0n / AndrOBD-Plugin

AndrOBD plugin development project
GNU General Public License v3.0
71 stars 23 forks source link

HTTP API #6

Open nwmcsween opened 5 years ago

nwmcsween commented 5 years ago

I might work on this and model it after the MQTT plugin. What I want to do is use HTTP to POST a json payload instead of MQTT as it is painful to do MQTT -> DB.

fr3ts0n commented 5 years ago

Sounds like a good start. Have you checked existing scripts for mqtt->db transfer. my search for "mqtt2db" did come up with several, rather un-complicated script solutions. (i.e.: https://github.com/sndrsmnk/owntracks-gmaps-plot/tree/master/tools)

nwmcsween commented 5 years ago

I saw some but IMO its just another point of failure, http has overhead but for an android device its sort of moot. I'll hack on this sometime, PIDs will just be raw values I guess? Or does androbd provide a way of mapping vendor pods before sending?

fr3ts0n commented 5 years ago

All PID's known by AndrOBD will be reported in physical measurement values as displayed on AndrOBD data screen: i.e.: accelerator_pedal_position 53.333332

Any unknown PID would be reported as raw, decimal integer value: i.e.: PID_7A 67372036

The mapping of PIDs to mnemonic names and conversions is defined in AndrOBD library project: https://github.com/fr3ts0n/AndrOBD/blob/master/library/src/main/java/com/fr3ts0n/ecu/prot/obd/res/pids.csv