Open main menu

Speeduino β

Changes

Secondary Serial IO interface

467 bytes added, 3 years ago
no edit summary
* ''' The Realtime Data List'''
As of 0205/0510/2017 the data list is as follows BIT0 - currentStatus.secl secl is simply a counter that increments each second 1 - currentStatus.squirt Squirt Bitfield 2 - currentStatus.engine Engine Status Bitfield 3 - (byte)(divu100(currentStatus.dwell)) Dwell in ms * 10 4 - lowByte(currentStatus.MAP) 5 - highByte(currentStatus.MAP) 6 - (byte)(currentStatus.IAT + CALIBRATION_TEMPERATURE_OFFSET) mat 7 - (byte)(currentStatus.coolant + CALIBRATION_TEMPERATURE_OFFSET) Coolant ADC 8 - currentStatus.batCorrection Battery voltage correction (%) 9 - currentStatus.battery10 battery voltage 10 - currentStatus.O2; primary O2 11 - currentStatus.egoCorrection Exhaust gas correction (%) 12 - currentStatus.iatCorrection Air temperature Correction (%) 13 - currentStatus.wueCorrection Warmup enrichment (%) 14 - lowByte(currentStatus.RPM) rpm LB 15 - highByte(currentStatus.RPM) rpm HB 16 - currentStatus.TAEamount acceleration enrichment (%)
0 - currentStatus.secl
secl is simply a counter that increments each second
1 - currentStatus.squirt
Squirt Bitfield
2 - currentStatus.engine
Engine Status Bitfield
3 - (byte)(divu100(currentStatus.dwell))
Dwell in ms * 10
4 - (byte)(currentStatus.MAP >> 1)
map value is divided by 2
5 - (byte)(currentStatus.IAT + CALIBRATION_TEMPERATURE_OFFSET)
mat
6 - (byte)(currentStatus.coolant + CALIBRATION_TEMPERATURE_OFFSET)
Coolant ADC
7 - currentStatus.tpsADC
TPS (Raw 0-255)
8 - currentStatus.battery10
battery voltage
9 - currentStatus.O2;
primary O2
10 - currentStatus.egoCorrection
Exhaust gas correction (%)
11 - currentStatus.iatCorrection
Air temperature Correction (%)
12 - currentStatus.wueCorrection
Warmup enrichment (%)
13 - lowByte(currentStatus.RPM)
rpm LB
14 - highByte(currentStatus.RPM)
rpm HB
15 - currentStatus.TAEamount
acceleration enrichment (%)
16 - currentStatus.baro
Barometer value
17 - currentStatus.corrections
Total GammaE (%) 
18 - currentStatus.VE
Current VE 1 (%) 
19 - currentStatus.afrTarget
chosen afr target 
20 - (byte)(currentStatus.PW1 / 100)
Pulsewidth 1 multiplied by 10 in ms. Have to convert from uS to mS 
21 - currentStatus.tpsDOT
TPS DOT 
22 - currentStatus.advance
Current spark advance 
23 - currentStatus.TPS
TPS (0% to 100%) 
24 - lowByte(currentStatus.loopsPerSecond)
loops per second LB 
25 - highByte(currentStatus.loopsPerSecond)
loops per second HB 
26 - lowByte(currentStatus.freeRAM)
freeRam LB 
27 - highByte(currentStatus.freeRAM)
freeRam HB 28 = - currentStatus.batCorrection boostTarget Target boost pressure Battery voltage correction (%)<br />29 = - currentStatus.boostDuty current pwm boost dutycycle 30 - currentStatus.spark Spark related bitfield30 = currentStatus.O2_2 Second O231 = - lowByte(currentStatus.rpmDOT) rpmDOT must be sent as a signed integer 32 = - highByte(currentStatus.rpmDOT) rpmDOT HB 33 = - currentStatus.ethanolPct Flex sensor value (or 0 if not used) 34 = - currentStatus.flexCorrection Flex fuel correction (% above or below 100) 35 = - currentStatus.flexIgnCorrection Ignition correction (Increased degrees of advance) for flex fuel 36 = - getNextError() Error codes 37 = - currentStatus.boostTargetidleLoad idleload Target boost pressure38 = - currentStatus.boostDutytestOutputs testoutputs bitfield current pwm boost dutycycle39 = - currentStatus.idleLoadO2_2 Second O2 idleload40 = - currentStatus.testOutputsbaro Barometer value testoutputs bitfield41 = - lowByte(currentStatus.canin[0]); Can input 0 LB 42 = - highByte(currentStatus.canin[0]); Can input 0 HB 43 = - lowByte(currentStatus.canin[1]); Can input 1 LB44 = - highByte(currentStatus.canin[1]); Can input 1 HB45 = - lowByte(currentStatus.canin[2]); Can input 2 LB46 = - highByte(currentStatus.canin[2]); Can input 2 HB47 = - lowByte(currentStatus.canin[3]); Can input 3 LB 48 = - highByte(currentStatus.canin[3]); Can input 3 HB49 = - lowByte(currentStatus.canin[4]); Can input 4 LB50 = - highByte(currentStatus.canin[4]); Can input 4 HB51 = - lowByte(currentStatus.canin[5]); Can input 5 LB52 = - highByte(currentStatus.canin[5]); Can input 5 HB53 = - lowByte(currentStatus.canin[6]); Can input 6 LB54 = - highByte(currentStatus.canin[6]); Can input 6 HB55 = - lowByte(currentStatus.canin[7]); Can input 7 LB56 = - highByte(currentStatus.canin[7]); 57 - lowByte(currentStatus.canin[8]); 58 - highByte(currentStatus.canin[8]); 59 - lowByte(currentStatus.canin[9]); 60 - highByte(currentStatus.canin[9]); 61 - lowByte(currentStatus.canin[10]); 62 - highByte(currentStatus.canin[10]); 63 - lowByte(currentStatus.canin[11]); 64 - highByte(currentStatus.canin[11]); 65 - lowByte(currentStatus.canin[12]); 66 - highByte(currentStatus.canin[12]); 67 - lowByte(currentStatus.canin[13]); 68 - highByte(currentStatus.canin[13]); 69 - lowByte(currentStatus.canin[14]); 70 - highByte(currentStatus.canin[14]); 71 - lowByte(currentStatus.canin[15]); 72 - highByte(currentStatus.canin[15]); 73 - currentStatus.tpsADC Can input 7 HB TPS (Raw 0-255)
== Read external analog data ==
125
edits