Difference between revisions of "Manual:Software:dev console commands"

From rusEfi
Jump to navigation Jump to search
 
(9 intermediate revisions by the same user not shown)
Line 79: Line 79:
  
 
<tr><td>resetconfig</td><td>0</td><td cellpadding=10>Resets configuration to default</td></tr>
 
<tr><td>resetconfig</td><td>0</td><td cellpadding=10>Resets configuration to default</td></tr>
<tr><td>set_ignition_offset</td><td>1</td><td cellpadding=10></td></tr>
+
<tr><td>set ignition_offset</td><td>1</td><td cellpadding=10></td></tr>
  
 
<tr><td>set_analog_chart_mode</td><td>1 </td><td cellpadding=10></td></tr>
 
<tr><td>set_analog_chart_mode</td><td>1 </td><td cellpadding=10></td></tr>
<tr><td>set_cranking_rpm</td><td>1</td> <td cellpadding=10>Sets the RPM level at which we consider the engine to be cranking - not running</td></tr>
+
<tr><td>set cranking_rpm</td><td>1</td> <td cellpadding=10>Sets the RPM level at which we consider the engine to be cranking - not running</td></tr>
  
  
Line 89: Line 89:
  
 
<tr><td>set engine_type</td><td>1 </td><td >This will change the configuration from the default Dodge Neon configuration.<br>You should reboot the firmware after changing engine type.<br>Hit the reset button or just power off/on the microcontroller.</td></tr>
 
<tr><td>set engine_type</td><td>1 </td><td >This will change the configuration from the default Dodge Neon configuration.<br>You should reboot the firmware after changing engine type.<br>Hit the reset button or just power off/on the microcontroller.</td></tr>
<tr><td>set_global_trigger_offset_angle</td><td>1</td><td cellpadding=10>Change the offset between trigger sync point and TDC#1</td></tr>
+
<tr><td>set global_trigger_offset_angle</td><td>1</td><td cellpadding=10>Change the offset between trigger sync point and TDC#1</td></tr>
  
<tr><td>set_rpm_multiplier</td><td>1</td><td cellpadding=10></td></tr>
 
 
<tr><td>sfm</td><td>5</td><td cellpadding=10></td></tr>
 
<tr><td>sfm</td><td>5</td><td cellpadding=10></td></tr>
  
Line 129: Line 128:
  
  
set_global_trigger_offset_angle XX
+
set global_trigger_offset_angle XX
  
 
sets global trigger offset from synchronization point of trigger decoder to actual TDC #1
 
sets global trigger offset from synchronization point of trigger decoder to actual TDC #1
Line 161: Line 160:
 
set_injection_pin 1 PB7
 
set_injection_pin 1 PB7
  
set_injection_pin_mode: 1 parameter
+
set injection_pin_mode: 1 parameter
  
 
For example,  
 
For example,  
  
''set_injection_pin_mode 1''
+
''set injection_pin_mode 1''
  
 
Currently four modes are supported:
 
Currently four modes are supported:
Line 179: Line 178:
  
 
<!--T:6-->
 
<!--T:6-->
set_ignition_pin_mode: 1 parameter
+
set ignition_pin_mode: 1 parameter
  
 
<!--T:7-->
 
<!--T:7-->
set_idle_pin_mode: 1 parameter
+
set idle_pin_mode: 1 parameter
  
 
For example,  
 
For example,  
  
set_idle_pin_mode 1
+
set idle_pin_mode 1
  
 
<!--T:8-->
 
<!--T:8-->
set_fuel_pump_pin_mode: 1 parameters,  
+
set fuel_pump_pin_mode: 1 parameters,  
  
 
<!--T:9-->
 
<!--T:9-->
set_malfunction_indicator_pin_mode: 1 parameters,
+
set malfunction_indicator_pin_mode: 1 parameters,
  
 
= Fuel Control = <!--T:10-->
 
= Fuel Control = <!--T:10-->
Line 207: Line 206:
  
 
<!--T:12-->
 
<!--T:12-->
set_cranking_fuel: 1 parameters, for example
+
set cranking_fuel: 1 parameters, for example
  
''set_cranking_fuel 5''
+
''set cranking_fuel 5''
  
  
set_injection_offset: 1 parameter, for example
+
set injection_offset: 1 parameter, for example
  
''set_injection_offset 80''
+
''set injection_offset 80''
  
 
Sets global fuel injection phase to 80 degrees after TDC.
 
Sets global fuel injection phase to 80 degrees after TDC.
Line 250: Line 249:
 
= Acceleration Enrichment =
 
= Acceleration Enrichment =
  
set_map_accel_len X
+
set engine_load_accel_len X
for example, ''set_map_accel_len 6'' Look back at MAP for period of last X injections.
+
for example, ''set engine_load_accel_len 6'' Look back at MAP for period of last X injections.
  
set_map_accel_multiplier X
+
set engine_load_accel_multiplier X
for example, ''set_map_accel_multiplier 2.0'' This coefficient controls how much extra fuel we inject during acceleration due to MAP change
+
for example, ''set engine_load_accel_multiplier 2.0'' This coefficient controls how much extra fuel we inject during acceleration due to MAP change
  
  
set_map_accel_threshold X
+
set engine_load_accel_threshold X
for example, ''set_map_accel_threshold 5.0'' Ignore change below X kPa
+
for example, ''set engine_load_accel_threshold 5.0'' Ignore change below X kPa
  
  
set_tps_accel_len X
+
set tps_accel_len X
for example, ''set_tps_accel_len 6'' Look back at TPS for period of last X injections.
+
for example, ''set tps_accel_len 6'' Look back at TPS for period of last X injections.
  
set_tps_accel_multiplier X
+
set tps_accel_multiplier X
for example, ''set_tps_accel_multiplier 2.0'' This coefficient controls how much extra fuel we inject during acceleration due to TPS change
+
for example, ''set tps_accel_multiplier 2.0'' This coefficient controls how much extra fuel we inject during acceleration due to TPS change
  
  
set_tps_accel_threshold X
+
set tps_accel_threshold X
for example, ''set_tps_accel_threshold 10'' Ignore change below X % tps
+
for example, ''set tps_accel_threshold 10'' Ignore change below X % tps
  
 
See http://rusefi.com/wiki/index.php?title=Manual:Software:Fuel_Control#delta.28TPS.29
 
See http://rusefi.com/wiki/index.php?title=Manual:Software:Fuel_Control#delta.28TPS.29
Line 280: Line 279:
 
= Timing Control = <!--T:15-->
 
= Timing Control = <!--T:15-->
  
set_global_trigger_offset_angle: 1 parameter: global TDC offset from trigger synchronization point
+
set global_trigger_offset_angle: 1 parameter: global TDC offset from trigger synchronization point
  
 
<!--T:16-->
 
<!--T:16-->
Line 290: Line 289:
 
sets timing to 60 degrees advance for rpm 2200 and engine load 4
 
sets timing to 60 degrees advance for rpm 2200 and engine load 4
  
set_cranking_timing_angle: 1 parameter
+
set cranking_timing_angle: 1 parameter
 
sets timing advance while cranking
 
sets timing advance while cranking
  
  
 
<!--T:18-->
 
<!--T:18-->
set_fixed_mode_timing: 1 parameters,
+
set fixed_mode_timing: 1 parameters,
  
 
<!--T:19-->
 
<!--T:19-->
set_timing_mode: 1 parameters,
+
set timing_mode: 1 parameters,
  
 
= Idle Control =
 
= Idle Control =
Line 304: Line 303:
 
See also http://rusefi.com/wiki/index.php?title=Manual:Software:Idle_control
 
See also http://rusefi.com/wiki/index.php?title=Manual:Software:Idle_control
  
set_idle_rpm PRM
+
set idle_rpm PRM
  
 
Set's target idle RPM
 
Set's target idle RPM
Line 315: Line 314:
  
 
for example, ''enable stepperidle''
 
for example, ''enable stepperidle''
 +
 +
 +
'''blipidle X Y'''
 +
overrides idle position to X for Y duration of time
 +
 +
for example ''blipidle 20 2000'' would set idle position to 80 for 2000 ms / 2 seconds
  
 
= I/O testing = <!--T:20-->
 
= I/O testing = <!--T:20-->

Latest revision as of 20:42, 28 January 2017

Other languages:
English

Tuner Studio

CommandNumber of parameters
tsinfo0 Prints TunerStudio communication summary
set_ts_speed1 Sets Tuner Studio communication speed. Foe example, set_ts_speed 115400
reset_ts0 Resets TunerStudio debugging counters

CAN

CommandNumber of parameters
caninfo0 Shows stats for CAN subsystem
enable can0 Enable CAN hardware. Also disable can
enable can_read0 Enable reading/sniffing CAN commands with echo. Also disable can_read
enable can_write0 Enable sending out gauge info via CAN according with selected CAN configuration. Also disable can_write

Knock Detection

CommandNumber of parameters
enable HIP90110Enables HIP9011 driver
enable tpic_advanced_mode0Enables TPIC advanced (digital) mode
enable knockdebug0Verbose mode
hipinfo0Shows HIP9011 driver state
set_gain1Sets HIP gain parameter, betweb 0.1 and 2. New value would be applied on the fly
set_band1Sets HIP target frequency, in kHz. New value would be applied on the fly
set_hip_prescalerandsdo1Sets HIP prescaler and SDO. 0 for 4mHz, 6 for 8mHz

General




CommandNumber of ParametersDescription
adc1
adcDebug1
appendToLog3
chart1
chartsize1Sets the size of engine sniffing buffer in ECU. Nothing would change on your screen until a new larger packet of engine sniffing would arrive from ECU.
get date0 Gets current real time clock
set date XXX1XXX is time in seconds sins Unix epoch - see http://www.epochconverter.com
echo1Just prints out the parameter - this is useful for troubleshooting connectivity
fatal0 This command would cause the firmware to halt. I am not sure that you want to try this one :)
fadc0
faststat0
fl1 'full logging', Turns-off constant dev console data output. fl 1 would turn it back on.
gfc1
gpsinfo0
help0Prints the list of supported commands
hello0Prints the version of firmware
i2c5
injector5
ls3
mountsd0
performance info0 Development:Software:performance#Event_handling
readconfig0 read config from flash/EEPROM
resetconfig0Resets configuration to default
set ignition_offset1
set_analog_chart_mode1
set cranking_rpm1 Sets the RPM level at which we consider the engine to be cranking - not running
rpm1 For example, rpm 1200 sets the RPM for built-in position sensor simulator
set engine_type1 This will change the configuration from the default Dodge Neon configuration.
You should reboot the firmware after changing engine type.
Hit the reset button or just power off/on the microcontroller.
set global_trigger_offset_angle1Change the offset between trigger sync point and TDC#1
sfm5
showconfig0Shows current configuration stored in the flash memory - that's where you can see your current fuel map etc.
status0
testmath1
threadsinfo0 list of ChibiOS threads
umountsd0 Un-mount SD/MMC card
writeconfig0Write config to flash (you only need this if you have used one of the 'setXXX' commands) TODO: implement a feature of not actually writing changes into flash while engine is running since flash writes freeze the CPU. TunerStudio burn has this feature of delayed until engine is stopped burn already.
wm5
get_int, get_short, get_float1prints the configuration value at given offset
set_int, set_short, set_float2changes configuration value at given offset, for example set_float 102 1.23

Logging


CommandNumber of ParametersDescription
sdinfo0 Prints a report of SD/MMC usage
umountsd0 Un-mount SD card
enable sd/disable sd0

Trigger

Trigger is the camshaft or/and crankshaft position sensor(s)

triggerinfo shows some info regarding trigger situation


set global_trigger_offset_angle XX

sets global trigger offset from synchronization point of trigger decoder to actual TDC #1

TODO? rename command? rename variable?

enable/disable trigger_only_front

In 'only front' mode, only signal rises are used for trigger decoding. For example, enable trigger_only_front

enable/disable trigger_details

Trigger details additional output helps with troubleshooting trigger synchronization issues.

trigger_shape_info

Prints trigger shape definition

Sensors

analoginfo0Shows ADC intut values
tempinfo0 prints out some debug information on CLT and IAT sensors
tpsinfo0 prints out some debug information on TPS sensor
mapinfo0 prints out some debug information on MAP sensor

Board Control

set_injection_pin: 2 parameters: index, PIN

For example, set_injection_pin 1 PB7

set injection_pin_mode: 1 parameter

For example,

set injection_pin_mode 1

Currently four modes are supported:

OM_DEFAULT = 0 (GND for logical OFF, VCC for logical ON) and OM_INVERTED = 1 (GND for logical ON, VCC for logical OFF)

OM_OPENDRAIN = 2 OM_OPENDRAIN_INVERTED = 3

set ignition_pin_mode: 1 parameter

set idle_pin_mode: 1 parameter

For example,

set idle_pin_mode 1

set fuel_pump_pin_mode: 1 parameters,

set malfunction_indicator_pin_mode: 1 parameters,

Fuel Control

See also http://rusefi.com/wiki/index.php?title=Manual:Software:Fuel_Control

set_whole_fuel_map: 1 parameter: global value for the whole fuel map, in ms

for example, set_whole_fuel_map 11

set_fuel_map: 3 parameters For example set_fuel_map 2200 4 15.66 Set 15.66ms value for 2200 rpm @ engine load 4

set cranking_fuel: 1 parameters, for example

set cranking_fuel 5


set injection_offset: 1 parameter, for example

set injection_offset 80

Sets global fuel injection phase to 80 degrees after TDC.

Alternator Control

altinfo Prints current alternator state

set alt_p X

for example, set alt_p 10

set alt_offset X

Set's alternator duty cycle offset. For example, set alt_offset 10

set alt_t X

for example, set alt_t 100 (100ms PID time)

set_alternator_pin PIN

for example, set_alternator_pin PE10

enable/disable altdebug

for example, enable altdebug

enable/disable altcontrol

for example, disable altcontrol

set targetvbatt X

Acceleration Enrichment

set engine_load_accel_len X for example, set engine_load_accel_len 6 Look back at MAP for period of last X injections.

set engine_load_accel_multiplier X for example, set engine_load_accel_multiplier 2.0 This coefficient controls how much extra fuel we inject during acceleration due to MAP change


set engine_load_accel_threshold X for example, set engine_load_accel_threshold 5.0 Ignore change below X kPa


set tps_accel_len X for example, set tps_accel_len 6 Look back at TPS for period of last X injections.

set tps_accel_multiplier X for example, set tps_accel_multiplier 2.0 This coefficient controls how much extra fuel we inject during acceleration due to TPS change


set tps_accel_threshold X for example, set tps_accel_threshold 10 Ignore change below X % tps

See http://rusefi.com/wiki/index.php?title=Manual:Software:Fuel_Control#delta.28TPS.29

set suckedOffCoef 0.4 set addedToWallCoef 0.2

See http://rusefi.com/wiki/index.php?title=Manual:Software:Fuel_Control#wall_wetting

Timing Control

set global_trigger_offset_angle: 1 parameter: global TDC offset from trigger synchronization point

set_whole_timing_map: 1 parameter: global timing for the whole timing map while engine is running

set_timing_map: 3 parameters. timing map value for given RPM and engine load For example et_timing_map 2200 4 60 sets timing to 60 degrees advance for rpm 2200 and engine load 4

set cranking_timing_angle: 1 parameter sets timing advance while cranking


set fixed_mode_timing: 1 parameters,

set timing_mode: 1 parameters,

Idle Control

See also http://rusefi.com/wiki/index.php?title=Manual:Software:Idle_control

set idle_rpm PRM

Set's target idle RPM

set idle_position X

set's idle duty cycle, value between 0 and 100, for example set idle_position 50

enable/disable stepperidle

for example, enable stepperidle


blipidle X Y overrides idle position to X for Y duration of time

for example blipidle 20 2000 would set idle position to 80 for 2000 ms / 2 seconds

I/O testing




CommandNumber of ParametersDescription
fuelpumpbench0Turns fuel pump on for three seconds after a one second delay
fuelbench25for example, fuelbench2 10000 1 2 1200 3
This command would send out a series of 3 on/off squirts out to injector #1, on time: 2ms, off time: 1200ms, after a 10000ms (10 seconds) delay
fuelbench3for example, fuelbench 5 2000 4
This command would send out a series of 3 on/off squirts out to injector #1, on time: 5ms, off time: 2000ms
fuelbench25for example, fuelbench2 1000 2 9 200 10
This command would send out a series of 10 on/off squirts out to injector #2, on time: 9ms, off time: 200ms, after a 1000ms delay
sparkbench3for example, sparkbench 5 200 3
This command would send out a series of 3 on/off squirts out to coil #1, on time: 5ms, off time: 200ms
sparkbench25for example, sparkbench2 1000 2 4 200 10
This command would send out a series of 10 on/off squirts out to coil #2, on time: 4ms, off time: 200ms, after a 1000ms delay
fanbench 0 Turns radiator fan on for three seconds after a one second delay
milbench 0 Turns MIL on for three seconds after a one second delay

Engineering support

CommandNumber of ParametersDescription
enable self_stimulation0Routes simulated trigger signal directly into trigger processing logic