|
rusEFI
The most advanced open source ECU
|
Utility methods related to bench testing.
This file is part of rusEfi - see http://rusefi.com
rusEfi is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
rusEfi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file bench_test.cpp.
Functions | |
| bool | isRunningBenchTest () |
| const OutputPin * | getOutputOnTheBenchTest () |
| static void | benchOn (OutputPin *output) |
| static void | benchOff (OutputPin *output) |
| static void | runBench (OutputPin *output, float onTimeMs, float offTimeMs, int count, bool swapOnOff) |
| static chibios_rt::CounterSemaphore | benchSemaphore (0) |
| static void | pinbench (float ontimeMs, float offtimeMs, int iterations, OutputPin *pinParam, bool p_swapOnOff=false) |
| static void | cancelBenchTest () |
| static void | doRunFuelInjBench (size_t humanIndex, float onTimeMs, float offTimeMs, int count) |
| static void | doRunSparkBench (size_t humanIndex, float onTime, float offTime, int count) |
| static void | doRunSolenoidBench (size_t humanIndex, float onTime, float offTime, int count) |
| static void | doRunBenchTestLuaOutput (size_t humanIndex, float onTimeMs, float offTimeMs, int count) |
| static void | fuelInjBenchExt (float humanIndex, float onTimeMs, float offTimeMs, float count) |
| static void | fuelInjBench (float onTimeMs, float offTimeMs, float count) |
| static void | sparkBenchExt (float humanIndex, float onTime, float offTimeMs, float count) |
| static void | sparkBench (float onTime, float offTimeMs, float count) |
| static void | tcuSolenoidBench (float humanIndex, float onTime, float offTimeMs, float count) |
| static void | fanBenchExt (float onTimeMs) |
| void | fanBench () |
| void | fan2Bench () |
| void | milBench () |
| void | starterRelayBench () |
| static void | fuelPumpBenchExt (float durationMs) |
| void | acRelayBench () |
| static void | mainRelayBench () |
| static void | hpfpValveBench () |
| void | fuelPumpBench () |
| static void | vvtValveBench (int vvtIndex) |
| static void | requestWidebandUpdate (int hwIndex) |
| static void | auxOutBench (int index) |
| static void | hdAcrBench (int index) |
| void | handleBenchCategory (uint16_t index) |
| int | getSavedBenchTestPinStates (uint32_t durationsInStateMs[2]) |
| static void | handleCommandX14 (uint16_t index) |
| static void | applyPreset (int index) |
| void | boardTsAction (uint16_t index) |
| static void | processCanUserControl (const CANRxFrame &frame) |
| static void | processCanSetCalibration (const CANRxFrame &frame) |
| static void | processCanRequestCalibration (const CANRxFrame &frame) |
| void | processCanEcuControl (const CANRxFrame &frame) |
| void | executeTSCommand (uint16_t subsystem, uint16_t index) |
| void | onConfigurationChangeBenchTest () |
| void | initBenchTest () |
Variables | |
| static bool | isRunningBench = false |
| static OutputPin * | outputOnTheBenchTest = nullptr |
| static scheduling_s | benchSchedStart |
| static scheduling_s | benchSchedEnd |
| static int | savedPinToggleCounter = 0 |
| static uint32_t | savedDurationsInStateMs [2] = { 0, 0 } |
| static volatile bool | isBenchTestPending = false |
| static bool | widebandUpdatePending = false |
| static uint8_t | widebandUpdateHwId = 0 |
| static float | globalOnTimeMs |
| static float | globalOffTimeMs |
| static int | globalCount |
| static OutputPin * | pinX |
| static bool | swapOnOff = false |
| static BenchController | instance |
| int | luaCommandCounters [LUA_BUTTON_COUNT] = {} |
| bool | rebootForPresetPending |
| std::optional< setup_custom_board_ts_command_override_type > | custom_board_ts_command |
| void acRelayBench | ( | ) |
Definition at line 284 of file bench_test.cpp.
Referenced by handleBenchCategory(), and initBenchTest().


|
static |
Definition at line 603 of file bench_test.cpp.
Referenced by executeTSCommand().


|
static |
Definition at line 341 of file bench_test.cpp.
Referenced by handleBenchCategory().


|
static |
Definition at line 89 of file bench_test.cpp.

|
static |
|
static |
| void boardTsAction | ( | uint16_t | index | ) |
Definition at line 611 of file bench_test.cpp.

|
static |
Definition at line 180 of file bench_test.cpp.
Referenced by handleBenchCategory().

|
static |
Definition at line 209 of file bench_test.cpp.
Referenced by executeTSCommand(), and initBenchTest().


|
static |
Definition at line 184 of file bench_test.cpp.
Referenced by executeTSCommand(), and fuelInjBenchExt().


Definition at line 201 of file bench_test.cpp.
Referenced by executeTSCommand(), and tcuSolenoidBench().


Definition at line 193 of file bench_test.cpp.
Referenced by executeTSCommand(), and sparkBenchExt().


| void executeTSCommand | ( | uint16_t | subsystem, |
| uint16_t | index | ||
| ) |
Definition at line 683 of file bench_test.cpp.
Referenced by TunerStudio::handleCrcCommand(), and processCanUserControl().


| void fan2Bench | ( | ) |
Definition at line 264 of file bench_test.cpp.
Referenced by handleBenchCategory(), and initBenchTest().


| void fanBench | ( | ) |
Definition at line 260 of file bench_test.cpp.
Referenced by handleBenchCategory(), and initBenchTest().


|
static |
Definition at line 256 of file bench_test.cpp.
Referenced by fanBench(), and initBenchTest().


fuelbench 5 1000 2
Definition at line 229 of file bench_test.cpp.
Referenced by initBenchTest().


|
static |
cylinder #2, 5ms ON, 1000ms OFF, repeat 3 times fuelInjBenchExt 2 5 1000 3
Definition at line 222 of file bench_test.cpp.
Referenced by fuelInjBench(), and initBenchTest().


| void fuelPumpBench | ( | ) |
Definition at line 297 of file bench_test.cpp.
Referenced by handleBenchCategory(), and initBenchTest().


|
static |
Definition at line 279 of file bench_test.cpp.
Referenced by fuelPumpBench(), and initBenchTest().


| const OutputPin * getOutputOnTheBenchTest | ( | ) |
Definition at line 43 of file bench_test.cpp.
Referenced by applyVvtPinState(), and OutputPin::setValue().

| int getSavedBenchTestPinStates | ( | uint32_t | durationsInStateMs[2] | ) |
Definition at line 464 of file bench_test.cpp.
Referenced by sendSavedBenchStatePackets().


| void handleBenchCategory | ( | uint16_t | index | ) |
Definition at line 355 of file bench_test.cpp.
Referenced by executeTSCommand(), and processCanQcBenchTest().


|
static |
Definition at line 475 of file bench_test.cpp.
Referenced by executeTSCommand().


|
static |
Definition at line 347 of file bench_test.cpp.
Referenced by handleBenchCategory().


|
static |
Definition at line 292 of file bench_test.cpp.
Referenced by handleBenchCategory(), and initBenchTest().


| void initBenchTest | ( | ) |
Definition at line 831 of file bench_test.cpp.
Referenced by commonInitEngineController().


| bool isRunningBenchTest | ( | ) |
Definition at line 39 of file bench_test.cpp.
Referenced by Engine::efiWatchdog(), FanController::onSlowCallback(), and FuelPumpController::onSlowCallback().

|
static |
Definition at line 288 of file bench_test.cpp.
Referenced by handleBenchCategory(), and initBenchTest().


| void milBench | ( | ) |
we are blinking for 16 seconds so that one can click the button and walk around to see the light blinking
Definition at line 271 of file bench_test.cpp.
Referenced by handleBenchCategory(), and initBenchTest().


| void onConfigurationChangeBenchTest | ( | ) |
Definition at line 816 of file bench_test.cpp.
Referenced by incrementGlobalConfigurationVersion(), and initBenchTest().

|
static |
Definition at line 163 of file bench_test.cpp.
Referenced by acRelayBench(), doRunBenchTestLuaOutput(), doRunFuelInjBench(), doRunSolenoidBench(), doRunSparkBench(), fan2Bench(), fanBenchExt(), fuelPumpBenchExt(), hdAcrBench(), hpfpValveBench(), mainRelayBench(), milBench(), starterRelayBench(), and vvtValveBench().


| void processCanEcuControl | ( | const CANRxFrame & | frame | ) |
Definition at line 664 of file bench_test.cpp.
Referenced by processCanRxMessage().


|
static |
CANbus protocol to query scalar calibrations using hash keys
see fields_api.txt for well-known fields see generated_fields_api_header.h for corresponding hashes
Definition at line 644 of file bench_test.cpp.
Referenced by processCanEcuControl().


|
static |
Definition at line 634 of file bench_test.cpp.
Referenced by processCanEcuControl().


|
static |
for example to bench test injector 1 0x77000C 0x66 0x00 ?? ?? ?? ?? 0x77000C 0x66 0x00 0x14 0x00 0x09 0x00 start/stop engine
See also more complicated ISO-TP CANBus wrapper of complete TS protocol
Definition at line 621 of file bench_test.cpp.
Referenced by processCanEcuControl().


|
static |
Definition at line 307 of file bench_test.cpp.
Referenced by executeTSCommand(), handleCommandX14(), and initBenchTest().


|
static |
Definition at line 104 of file bench_test.cpp.

sparkbench 5 400 2 5 ms ON, 400 ms OFF, two times
Definition at line 244 of file bench_test.cpp.
Referenced by initBenchTest().


sparkbench2 1 5 1000 2
Definition at line 236 of file bench_test.cpp.
Referenced by initBenchTest(), and sparkBench().


| void starterRelayBench | ( | ) |
Definition at line 275 of file bench_test.cpp.
Referenced by handleBenchCategory(), and initBenchTest().


|
static |
solenoid #2, 1000ms ON, 1000ms OFF, repeat 3 times tcusolbench 2 1000 1000 3
Definition at line 252 of file bench_test.cpp.
Referenced by initBenchTest().


|
static |
Definition at line 301 of file bench_test.cpp.
Referenced by handleBenchCategory().


|
static |
Definition at line 75 of file bench_test.cpp.
Referenced by runBench().
|
static |
Definition at line 74 of file bench_test.cpp.
Referenced by runBench().
| std::optional<setup_custom_board_ts_command_override_type> custom_board_ts_command |
Definition at line 681 of file bench_test.cpp.
Referenced by executeTSCommand().
|
static |
Definition at line 157 of file bench_test.cpp.
Referenced by pinbench().
|
static |
Definition at line 156 of file bench_test.cpp.
Referenced by pinbench().
|
static |
Definition at line 155 of file bench_test.cpp.
Referenced by pinbench().
|
static |
Definition at line 339 of file bench_test.cpp.
Referenced by ACMP_GetInstance(), ADC12_GetInstance(), connect(), disconnect(), DMAMUX_GetInstance(), EDMA_GetInstance(), get_info(), initBenchTest(), logicAnalyzerCallback(), LPSPI_Deinit(), LPSPI_GetInstance(), LPSPI_GetInstance(), LPSPI_MasterInit(), LPSPI_MasterTransferCreateHandleEDMA(), LPSPI_MasterTransferEDMA(), LPSPI_SetDummyData(), LPSPI_SlaveInit(), LPSPI_SlaveTransferCreateHandleEDMA(), LPSPI_SlaveTransferEDMA(), LPUART_Deinit(), LPUART_GetInstance(), LPUART_Init(), LPUART_TransferCreateHandle(), LPUART_TransferCreateHandleEDMA(), PrimeController::onPrimeEndAdapter(), PrimeController::onPrimeStartAdapter(), read(), and sync().
|
static |
Definition at line 152 of file bench_test.cpp.
Referenced by pinbench().
|
static |
Definition at line 36 of file bench_test.cpp.
Referenced by cancelBenchTest(), isRunningBenchTest(), and runBench().
| int luaCommandCounters[LUA_BUTTON_COUNT] = {} |
Definition at line 353 of file bench_test.cpp.
Referenced by configureRusefiLuaHooks(), handleBenchCategory(), and initBenchTest().
|
static |
Definition at line 37 of file bench_test.cpp.
Referenced by getOutputOnTheBenchTest(), and runBench().
|
static |
Definition at line 158 of file bench_test.cpp.
Referenced by pinbench().
|
extern |
|
static |
Definition at line 79 of file bench_test.cpp.
Referenced by getSavedBenchTestPinStates(), runBench(), and sendSavedBenchStatePackets().
|
static |
Definition at line 78 of file bench_test.cpp.
Referenced by getSavedBenchTestPinStates(), runBench(), and sendSavedBenchStatePackets().
|
static |
Definition at line 159 of file bench_test.cpp.
Referenced by pinbench(), and runBench().
|
static |
Definition at line 154 of file bench_test.cpp.
Referenced by executeTSCommand(), and requestWidebandUpdate().
|
static |
Definition at line 153 of file bench_test.cpp.
Referenced by requestWidebandUpdate().