AIM CAN: Difference between revisions

No edit summary
Line 5: Line 5:
== Packet 401h: RPM, Speed, Gear blink control, Gear ==
== Packet 401h: RPM, Speed, Gear blink control, Gear ==


 
function onTick()
TODO
  rpm = getChannel(rpmId)
 
  speedmph = getChannel(speedMphId)
  gear = getChannel(gearId)
  msg = {rpm % 256, rpm / 256, (speedmph % 16) % 256, (speedmph / 16) / 256, 0, 0, gear, 0}
  txCAN(0, 1025, 0, msg)
end


== Packet 402h: Temperature/Pressure fields (bottom left of display) ==
== Packet 402h: Temperature/Pressure fields (bottom left of display) ==

Revision as of 22:09, 8 January 2015

This section documents how to control an AIM Mychron3 Dash display, using an RCP unit via LUA scripting. The following information is a sum up of reverse engineering findings documented here: [1]. Examples of LUA implementation of the the different packets documented on the Mychron 3 Hack page are provided below.


Packet 401h: RPM, Speed, Gear blink control, Gear

function onTick()

 rpm = getChannel(rpmId)
 speedmph = getChannel(speedMphId)
 gear = getChannel(gearId)
 msg = {rpm % 256, rpm / 256, (speedmph % 16) % 256, (speedmph / 16) / 256, 0, 0, gear, 0}
 txCAN(0, 1025, 0, msg)

end

Packet 402h: Temperature/Pressure fields (bottom left of display)

TODO


Packet 404h: Control for fields displayed on bottom left of display

TODO


Packet 405h: Shift LEDs, Alarm LEDs

TODO


Packet 406h: RPM range for the digital RPM readout

TODO


Packet 408h: Timing

TODO