Page 1 of 1

Innovate serial AFR logging

Posted: Wed Jun 29, 2016 10:08 am
by psallandre
Hi,

I have an Innovate MTX-L AFR sensor/gauge. I plugged the analog output to analog input of RCP and it's working fine although I have lot of noise, I'll make another thread about noise issues...
I want to log also the serial output of Innovate to double check and help calibrating the analog output.

I haven't found much information about how to wire the serial out of Innovate to RJ11 input of RCP. I have this cable:
https://www.innovatemotorsports.com/xca ... t=0&page=5
Could you help me about the wiring ?

Also I haven't found any Lua scripting to decode serial datas from Innovate or another, would you have some sample code?
Thanks
Patrice

Posted: Wed Jul 06, 2016 3:36 pm
by brentp
Hi Patrice,

The Aux serial port on MK2 can be used to connect to extra serial port devices. Lua scripting can be used to talk to this serial port, and you can write the Lua scripting to read and write data from the Innovate gauge.

https://wiki.autosportlabs.com/RaceCapt ... unications
https://wiki.autosportlabs.com/RaceCapt ... g_Examples


Basically it would look like this:

at the top of the lua script, set up a virtual channel for the AFR reading. See the Lua scripting examples for this.

Then, in the onTick() function:

* Read serial data coming from the innovate gauge
* Extract the AFR value from the data
* Set the virtual channel based on the extracted value

I would suggest starting a new thread under the Lua Scripting part of the forum for this discussion. You may be the first to implement this interface to the Innovate gauge!

Hope this helps.