From c6c47392d7cf7230de460078d4964910266a47ad Mon Sep 17 00:00:00 2001 From: rusefi Date: Thu, 25 Apr 2019 22:28:46 -0400 Subject: [PATCH] electrical noise during tuning ETB causes full tune reset fix #775 --- README.md | 1 + firmware/console/binary/tunerstudio.cpp | 2 ++ firmware/svnversion.h | 6 +++--- firmware/tunerstudio/rusefi.ini | 4 +++- firmware/tunerstudio/rusefi.input | 2 ++ 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f164283231..c29fa602fe 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ See https://rusefi.com/forum/viewtopic.php?f=5&t=9 | Release date | Revision | Details | | ------------ | --------- | ------- | +| 04/25/2019 | r17317 | bugfix #775: electrical noise reboot during settings change causes with full tune loss | | 04/07/2019 | r17098 | improvement #714: TLE8888 Enable Outputs SPI integration | | 02/27/2019 | r16886 | bugfix #698: concurrency defect with single timer executor initialization | | 02/23/2019 | r16857 | improvement #688: better support for 144 and 176 pin packages | diff --git a/firmware/console/binary/tunerstudio.cpp b/firmware/console/binary/tunerstudio.cpp index 2aef9a17ef..5334e116fd 100644 --- a/firmware/console/binary/tunerstudio.cpp +++ b/firmware/console/binary/tunerstudio.cpp @@ -653,6 +653,8 @@ void handleTestCommand(ts_channel_s *tsChannel) { sr5WriteData(tsChannel, (const uint8_t *) VCS_VERSION, sizeof(VCS_VERSION)); chsnprintf(testOutputBuffer, sizeof(testOutputBuffer), " %d %d", engine->engineState.warnings.lastErrorCode, tsState.testCommandCounter); sr5WriteData(tsChannel, (const uint8_t *) testOutputBuffer, strlen(testOutputBuffer)); + chsnprintf(testOutputBuffer, sizeof(testOutputBuffer), " uptime=%ds", getTimeNowSeconds()); + sr5WriteData(tsChannel, (const uint8_t *) testOutputBuffer, strlen(testOutputBuffer)); /** * Please note that this response is a magic constant used by dev console for protocol detection * @see EngineState#TS_PROTOCOL_TAG diff --git a/firmware/svnversion.h b/firmware/svnversion.h index ec22d43eb8..e5e7caec89 100644 --- a/firmware/svnversion.h +++ b/firmware/svnversion.h @@ -1,12 +1,12 @@ // This file was generated by Version2Header -// Sun Apr 21 09:14:29 EDT 2019 +// Thu Apr 25 22:26:32 EDT 2019 #ifndef GIT_HASH -#define GIT_HASH "94031427731007f331861a54b38aa635cdee715e" +#define GIT_HASH "bc4d76a144ec1526a291b85e6c8b2dea85e9da71" #endif #ifndef VCS_VERSION -#define VCS_VERSION "17269" +#define VCS_VERSION "17317" #endif diff --git a/firmware/tunerstudio/rusefi.ini b/firmware/tunerstudio/rusefi.ini index 03338d6df4..8908d9c1a0 100644 --- a/firmware/tunerstudio/rusefi.ini +++ b/firmware/tunerstudio/rusefi.ini @@ -68,7 +68,7 @@ enable2ndByteCanID = false ; see PAGE_0_SIZE in C source code ; CONFIG_DEFINITION_START -; this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Thu Apr 25 08:26:25 EDT 2019 +; this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Thu Apr 25 22:18:02 EDT 2019 pageSize = 20000 page = 1 @@ -1175,6 +1175,7 @@ fileVersion = { 20171101 } debugFloatField5 = scalar, F32, 212, "val", 1, 0.0; debugIntField2 = scalar, S32, 216, "val", 1, 0.0; debugIntField3 = scalar, S32, 220, "val", 1, 0.0; + timeSeconds = scalar, U32, 224, "sec", 1, 0.0; engineLoadDelta = scalar,F32, 228, "value", 1, 0 speedToRpmRatio = scalar,F32, 232, "value", 1, 0 warningCounter = scalar,U16, 236, "count", 1, 0 @@ -1705,6 +1706,7 @@ gaugeCategory = Debug debugIntField3Gauge = debugIntField3, "debug i3", "%", 0, 100, 0, 0, 100, 100, 0, 0 debugIntField4Gauge = debugIntField4, "debug i4", "%", 0, 100, 0, 0, 100, 100, 0, 0 debugIntField5Gauge = debugIntField5, "debug i5", "%", 0, 100, 0, 0, 100, 100, 0, 0 + timeSecondsGauge = timeSeconds, "Uptime", "sec", 0, 100, 0, 0, 100, 100, 0, 0 gaugeCategory = Sensors RPMGauge = RPMValue, "Engine Speed", "RPM", 0, 15000, 200, 500, 6000, 6000, 0, 0 diff --git a/firmware/tunerstudio/rusefi.input b/firmware/tunerstudio/rusefi.input index 75e20a1456..57967501e0 100644 --- a/firmware/tunerstudio/rusefi.input +++ b/firmware/tunerstudio/rusefi.input @@ -249,6 +249,7 @@ fileVersion = { 20171101 } debugFloatField5 = scalar, F32, 212, "val", 1, 0.0; debugIntField2 = scalar, S32, 216, "val", 1, 0.0; debugIntField3 = scalar, S32, 220, "val", 1, 0.0; + timeSeconds = scalar, U32, 224, "sec", 1, 0.0; engineLoadDelta = scalar,F32, 228, "value", 1, 0 speedToRpmRatio = scalar,F32, 232, "value", 1, 0 warningCounter = scalar,U16, 236, "count", 1, 0 @@ -779,6 +780,7 @@ gaugeCategory = Debug debugIntField3Gauge = debugIntField3, "debug i3", "%", 0, 100, 0, 0, 100, 100, 0, 0 debugIntField4Gauge = debugIntField4, "debug i4", "%", 0, 100, 0, 0, 100, 100, 0, 0 debugIntField5Gauge = debugIntField5, "debug i5", "%", 0, 100, 0, 0, 100, 100, 0, 0 + timeSecondsGauge = timeSeconds, "Uptime", "sec", 0, 100, 0, 0, 100, 100, 0, 0 gaugeCategory = Sensors RPMGauge = RPMValue, "Engine Speed", "RPM", 0, 15000, 200, 500, 6000, 6000, 0, 0