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

From rusEfi
Jump to navigation Jump to search
(Acceleration Enrichment)
(Replaced content with "https://github.com/rusefi/rusefi/wiki/Dev-Console-Commands")
(Tag: Replaced)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<languages/>
+
https://github.com/rusefi/rusefi/wiki/Dev-Console-Commands
<translate>
 
 
 
<!--T:1-->
 
__TOC__
 
 
 
= Tuner Studio =
 
<table border=1>
 
<tr><td>Command</td><td>Number of parameters</td><td cellpadding=10></td></tr>
 
<tr><td>tsinfo</td><td>0 </td><td cellpadding=10>Prints TunerStudio communication summary</td></tr>
 
<tr><td>set_ts_speed</td><td>1 </td><td cellpadding=10>Sets Tuner Studio communication speed. Foe example, ''set_ts_speed 115400''</td></tr>
 
<tr><td>reset_ts</td><td>0 </td><td cellpadding=10>Resets TunerStudio debugging counters</td></tr>
 
 
 
</table>
 
 
 
= CAN =
 
<table border=1>
 
<tr><td>Command</td><td>Number of parameters</td><td cellpadding=10></td></tr>
 
<tr><td>caninfo</td><td>0 </td><td cellpadding=10>Shows stats for CAN subsystem</td></tr>
 
<tr><td>enable can</td><td>0 </td><td cellpadding=10>Enable CAN hardware. Also ''disable can''</td></tr>
 
<tr><td>enable can_read</td><td>0 </td><td cellpadding=10>Enable reading/sniffing CAN commands with echo. Also ''disable can_read''</td></tr>
 
<tr><td>enable can_write</td><td>0 </td><td cellpadding=10>Enable sending out gauge info via CAN according with selected CAN configuration. Also ''disable can_write''</td></tr>
 
 
 
</table>
 
 
 
= Knock Detection =
 
<table border=1>
 
<tr><td>Command</td><td>Number of parameters</td><td cellpadding=10></td></tr>
 
<tr><td>enable HIP9011</td><td>0</td><td cellpadding=10>Enables HIP9011 driver</td></tr>
 
<tr><td>enable tpic_advanced_mode</td><td>0</td><td cellpadding=10>Enables TPIC advanced (digital) mode</td></tr>
 
<tr><td>enable knockdebug</td><td>0</td><td cellpadding=10>Verbose mode</td></tr>
 
<tr><td>hipinfo</td><td>0</td><td cellpadding=10>Shows HIP9011 driver state</td></tr>
 
<tr><td>set_gain</td><td>1</td><td cellpadding=10>Sets HIP gain parameter, betweb 0.1 and 2. New value would be applied on the fly</td></tr>
 
<tr><td>set_band</td><td>1</td><td cellpadding=10>Sets HIP target frequency, in kHz. New value would be applied on the fly</td></tr>
 
<tr><td>set_hip_prescalerandsdo</td><td>1</td><td cellpadding=10>Sets HIP prescaler and SDO. 0 for 4mHz, 6 for 8mHz</td></tr>
 
</table>
 
 
 
= General = <!--T:2-->
 
<table border=1>
 
<tr><th>Command</th><th>Number of Parameters</th><th>Description</th></tr>
 
 
 
<tr><td>adc</td><td>1 </td><td cellpadding=10></td></tr>
 
<tr><td>adcDebug</td><td>1</td><td cellpadding=10></td></tr>
 
<tr><td>appendToLog</td><td>3</td><td cellpadding=10></td></tr>
 
<tr><td>chart</td><td>1</td><td cellpadding=10></td></tr>
 
 
 
<tr><td>chartsize</td><td>1</td><td cellpadding=10>Sets 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.</td></tr>
 
 
 
<tr><td>get date</td><td>0 </td><td cellpadding=10>Gets current real time clock</td></tr>
 
<tr><td>set date XXX</td><td>1</td><td cellpadding=10>XXX is time in seconds sins Unix epoch - see http://www.epochconverter.com</td></tr>
 
 
 
<tr><td>echo</td><td>1</td><td cellpadding=10>Just prints out the parameter - this is useful for troubleshooting connectivity</td></tr>
 
 
 
<tr><td>fatal</td><td>0 </td><td cellpadding=10>This command would cause the firmware to halt. I am not sure that you want to try this one :)</td></tr>
 
<tr><td>fadc</td><td>0</td><td cellpadding=10></td></tr>
 
 
 
<tr><td>faststat</td><td>0 </td><td cellpadding=10></td></tr>
 
 
 
<tr><td>fl</td><td>1 </td><td cellpadding=10>'full logging', Turns-off constant dev console data output. fl 1 would turn it back on. </td></tr>
 
 
 
<tr><td>gfc</td><td>1</td><td cellpadding=10></td></tr>
 
 
 
<tr><td>gpsinfo</td><td>0 </td><td cellpadding=10></td></tr>
 
 
 
<tr><td>help</td><td>0</td><td cellpadding=10>Prints the list of supported commands</td></tr>
 
 
 
<tr><td>hello</td><td>0</td><td cellpadding=10>Prints the version of firmware</td></tr>
 
<tr><td>i2c</td><td>5</td><td cellpadding=10></td></tr>
 
 
 
<tr><td>injector</td><td>5</td><td cellpadding=10></td></tr>
 
 
 
<tr><td>ls</td><td>3</td><td cellpadding=10></td></tr>
 
 
 
<tr><td>mountsd</td><td>0</td><td cellpadding=10></td></tr>
 
 
 
<tr><td>performance info</td><td>0</td><td> [[Development:Software:performance#Event_handling]]</td></tr>
 
 
 
<tr><td>readconfig</td><td>0 </td><td cellpadding=10>read config from flash/EEPROM</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_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>rpm</td><td>1</td><td cellpadding=10> For example, rpm 1200 sets the RPM for built-in position sensor simulator</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>sfm</td><td>5</td><td cellpadding=10></td></tr>
 
 
 
<tr><td>showconfig</td><td>0</td><td cellpadding=10>Shows current configuration stored in the flash memory - that's where you can see your current fuel map etc.</td></tr>
 
 
 
<tr><td>status</td><td>0 </td><td cellpadding=10></td></tr>
 
<tr><td>testmath</td><td>1</td><td cellpadding=10></td></tr>
 
 
 
<tr><td>threadsinfo</td><td>0 </td><td cellpadding=10>list of ChibiOS threads</td></tr>
 
 
 
<tr><td>umountsd</td><td>0 </td><td cellpadding=10>Un-mount SD/MMC card</td></tr>
 
<tr><td>writeconfig</td><td>0</td><td cellpadding=10>Write 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.</td></tr>
 
<tr><td>wm</td><td>5</td><td cellpadding=10></td></tr>
 
 
 
 
 
<tr><td>get_int, get_short, get_float</td><td>1</td><td cellpadding=10>prints the configuration value at given offset</td></tr>
 
<tr><td>set_int, set_short, set_float</td><td>2</td><td cellpadding=10>changes configuration value at given offset, for example set_float 102 1.23</td></tr>
 
 
 
</table>
 
 
 
= Logging =
 
<table border=1>
 
<tr><th>Command</th><th>Number of Parameters</th><th>Description</th></tr>
 
 
 
 
 
<tr><td>sdinfo</td><td>0 </td><td cellpadding=10> Prints a report of SD/MMC usage</td></tr>
 
<tr><td>umountsd</td><td>0 </td><td cellpadding=10> Un-mount SD card</td></tr>
 
<tr><td>enable sd/disable sd</td><td>0 </td><td cellpadding=10> </td></tr>
 
</table>
 
 
 
= 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 =
 
<table border=1>
 
<tr><td>analoginfo</td><td>0</td><td>Shows ADC intut values</td></tr>
 
<tr><td>tempinfo</td><td>0</td><td cellpadding=10> prints out some debug information on CLT and IAT sensors</td></tr>
 
<tr><td>tpsinfo</td><td>0</td><td cellpadding=10> prints out some debug information on TPS sensor</td></tr>
 
<tr><td>mapinfo</td><td>0</td><td cellpadding=10> prints out some debug information on MAP sensor</td></tr>
 
</table>
 
 
 
= Board Control = <!--T:3-->
 
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:
 
 
 
<!--T:4-->
 
OM_DEFAULT = 0 (GND for logical OFF, VCC for logical ON)
 
and
 
OM_INVERTED = 1 (GND for logical ON, VCC for logical OFF)
 
 
 
<!--T:5-->
 
OM_OPENDRAIN = 2
 
OM_OPENDRAIN_INVERTED = 3
 
 
 
<!--T:6-->
 
set_ignition_pin_mode: 1 parameter
 
 
 
<!--T:7-->
 
set_idle_pin_mode: 1 parameter
 
 
 
For example,
 
 
 
set_idle_pin_mode 1
 
 
 
<!--T:8-->
 
set_fuel_pump_pin_mode: 1 parameters,
 
 
 
<!--T:9-->
 
set_malfunction_indicator_pin_mode: 1 parameters,
 
 
 
= Fuel Control = <!--T:10-->
 
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''
 
 
 
<!--T: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
 
 
 
<!--T:12-->
 
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 = <!--T:15-->
 
 
 
set global_trigger_offset_angle: 1 parameter: global TDC offset from trigger synchronization point
 
 
 
<!--T:16-->
 
set_whole_timing_map: 1 parameter: global timing for the whole timing map while engine is running
 
 
 
<!--T:17-->
 
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
 
 
 
 
 
<!--T:18-->
 
set fixed_mode_timing: 1 parameters,
 
 
 
<!--T:19-->
 
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 = <!--T:20-->
 
 
 
<!--T:21-->
 
<table border=1>
 
<tr><th>Command</th><th>Number of Parameters</th><th>Description</th></tr>
 
 
 
<!--T:22-->
 
<tr><td>fuelpumpbench</td><td>0</td><td>Turns fuel pump on for three seconds after a one second delay</td></tr>
 
<tr><td>fuelbench2</td><td>5</td><td>for example, fuelbench2 10000 1 2 1200 3<br> 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</td></tr>
 
 
 
 
 
<!--T:23-->
 
<tr><td>fuelbench</td><td>3</td><td>for example, fuelbench 5 2000 4 <br> This command would send out a series of 3 on/off squirts out to injector #1, on time: 5ms, off time: 2000ms</td></tr>
 
<tr><td>fuelbench2</td><td>5</td><td>for example, fuelbench2 1000 2 9 200 10<br> 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</td></tr>
 
 
 
<!--T:24-->
 
<tr><td>sparkbench</td><td>3</td><td>for example, sparkbench 5 200 3 <br> This command would send out a series of 3 on/off squirts out to coil #1, on time: 5ms, off time: 200ms</td></tr>
 
<tr><td>sparkbench2</td><td>5</td><td>for example, sparkbench2 1000 2 4 200 10<br> 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</td></tr>
 
 
 
 
 
<tr><td>fanbench</td>
 
<td>0</td>
 
<td>Turns radiator fan on for three seconds after a one second delay</td></tr>
 
 
 
<tr><td>milbench</td>
 
<td>0</td>
 
<td>Turns MIL on for three seconds after a one second delay</td></tr>
 
 
 
 
 
<!--T:25-->
 
</table>
 
 
 
= Engineering support =
 
 
 
<table border=1>
 
<tr><th>Command</th><th>Number of Parameters</th><th>Description</th></tr>
 
 
 
<tr><th>enable self_stimulation</th><th>0</th><th>Routes simulated trigger signal directly into trigger processing logic</th></tr>
 
 
 
</table>
 
 
 
</translate>
 

Latest revision as of 11:57, 28 August 2020

THIS WIKI IS OUT OF DATE - CURRENT rusEFI knowledge is at https://github.com/rusefi/rusefi/wiki