Page 1 of 1

More info on Serial Port reading /writing - firmware 2.8.4?

Posted: Mon Aug 24, 2015 10:42 pm
by dvsu12
Hi all,

I am trying to adapt an arduino sketch for reading ecu serial data into Lua for logging/display in the RCP 2.0.

I'd like to start with something simple - how would I read ecu part number info at 0xD0?

Is it as simple as

function ontick()

initSer(4, 9600, 8, 0, 1)
println(readSer(4, 0xD0, 50))



Posted: Mon Oct 19, 2015 6:09 pm
by brentp

The Lua serial API has been updated here: ... unications

It has full support for reading newline terminated strings as well as character based data.

Hope this helps; let us know if we can help further.