Ah, I’ve literally just replied to your tweet! – give me a moment and I’ll put this reply in the forum with a little more detail!
Edit: Right, got a few questions now 
Does the 010D (vehicle speed as a Mode PID) not work for your alfa – is there no reading for it (and are only provided as mode 21 PIDs?) or do you get a reading for things like speed on 010D?
For sending PIDs to torque, as a service, you have 2 options:
1) Create a CSV file and drop it into the relevant place on the SD card where torque will look
2) Offer this as a plugin (which uses the aidl script) this is mostly if you want to encrypt the PID so no-one else can see it, or want to do something special like on-the-fly calculations and offer the result to Torque as a PID or to use torque deal with OBD comms so you can get on with making something cool as a plugin!. In most cases option 1 is probably the easiest (and you can make an app to just drop the CSV file at the relevant place)
The CSV file format should be pretty much as described in http://torque-bhp.com/wiki/PIDs
and the AIDL interface is as:
boolean sendPIDData(String pluginName, in String[] name, in String[] shortName, in String[] modeAndPID, in String[] equation, in float[] minValue, in float[] maxValue, in String[] units, in String[] header);
Where the data is provided as String arrays, so:
assuming a simple 1 element array:
You would send for 1 PID 215B:
"YourPluginName", {"Air Mass Measure"} , {"AirMM"}, {"215B"}, {"(A*0.5)-200"},{"0"},{"200"},{"mg/inject"},{"Auto"}
And if for 2 PIDs, you would just add extra elements to your arrays. Similar if you are keying directly into the PID editor (the byte parts/locations of the responses are from A to Z, then AA to AZ, BA to BZ, (etc)
|