TPS (Raw 0-255)
== Read external analog data ==To get Speeduino to read analog data over Serial3 you must enable it. this is done in TS on an per channel basis.
then set the input parameter group,input start byte number and input parameter number of bytes according to the sensor being accessed.
Once enabled and configured Speeduino will periodically poll for that device on Serial3
The IO on Serial3 follows a similar protocol format to that of J1939 , this makes looking up a sensors configuration details quite straight forward.
Sensor type : Engine oil Temperature
parameter group = 65262
start byte = 1
number of bytes = 1
Example 2: sensor type : Engine oil pressure parameter group = 65263 start byte = 4 number of bytes = 1 Example 3: sensor type : Exhaust temperture port 1 parameter group = 65187 start byte = 1 number of bytes = 2
Example 4: sensor type : Exhaust temperature port 3 parameter group = 65263 start byte = 5 number of bytes = 2
Using Example 1 this is how to get your remote device to reply to the request from Speeduino for data.Speeduino will send an "R" Followed by the device parameter group number(this is sent in two bytes LSB first)
Speeduino will now await the response.
You must first send an "G" ,
Then send 8 bytes of data. The Data you wish to send is placed in bytes 0 and 1 (LSB and MSB respectively)if it is two bytes long or in byte 0 if it is only a single byte long .
The value sent is readable in Tunerstudio using the CanIN gauges