From 8f432dc88b3b6db3a41565b7019a9f4a288e34b1 Mon Sep 17 00:00:00 2001 From: rusefi Date: Thu, 25 Jul 2019 17:59:31 -0400 Subject: [PATCH] software jump to DFU #809 dreams about DFU --- firmware/controllers/injector_central.cpp | 3 +++ firmware/tunerstudio/rusefi.ini | 6 +++++- firmware/tunerstudio/rusefi.input | 4 ++++ firmware/tunerstudio/rusefi_frankenso.ini | 6 +++++- firmware/tunerstudio/rusefi_microrusefi.ini | 6 +++++- firmware/tunerstudio/rusefi_prometheus.ini | 6 +++++- 6 files changed, 27 insertions(+), 4 deletions(-) diff --git a/firmware/controllers/injector_central.cpp b/firmware/controllers/injector_central.cpp index ff51d6745d..c57538fa08 100644 --- a/firmware/controllers/injector_central.cpp +++ b/firmware/controllers/injector_central.cpp @@ -300,6 +300,9 @@ void executeTSCommand(uint16_t subsystem, uint16_t index) { setEngineType(DEFAULT_ENGINE_TYPE); } else if (subsystem == 0x79) { scheduleStopEngine(); + } else if (subsystem == 0xba) { +// todo: this does not work yet + // DFU mode } else if (subsystem == 0xbb) { #if EFI_PROD_CODE rebootNow(); diff --git a/firmware/tunerstudio/rusefi.ini b/firmware/tunerstudio/rusefi.ini index e40c490d11..ec23422818 100644 --- a/firmware/tunerstudio/rusefi.ini +++ b/firmware/tunerstudio/rusefi.ini @@ -82,7 +82,7 @@ enable2ndByteCanID = false ; see PAGE_0_SIZE in C source code ; CONFIG_DEFINITION_START -; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration\rusefi_config.txt Mon Jul 22 17:38:10 EDT 2019 +; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration\rusefi_config.txt Thu Jul 25 17:58:47 EDT 2019 pageSize = 20000 page = 1 @@ -2287,7 +2287,10 @@ cmd_test_idle_valve = "w\x00\x17\x00\x01" cmd_call_from_pit = "w\x00\x20\x34\x56" cmd_stop_engine = "w\x00\x79\x00\x00" +; reboot ECU cmd_reset_controller = "w\x00\xbb\x00\x00" +; jump to DFU mode +cmd_dfu = "w\x00\xba\x00\x00" ; See 'executeTSCommand' in firmware source code ; MIATA_NA6_MAP = 41 @@ -3473,6 +3476,7 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00" commandButton = "Idle Air Valve", cmd_test_idle_valve commandButton = "Stop Engine", cmd_stop_engine commandButton = "Reset ECU", cmd_reset_controller + commandButton = "Reset to DFU", cmd_dfu ; bench test dialog = ioTest, "Bench Test & Commands", border diff --git a/firmware/tunerstudio/rusefi.input b/firmware/tunerstudio/rusefi.input index 548df1b5dc..5b07bb15dd 100644 --- a/firmware/tunerstudio/rusefi.input +++ b/firmware/tunerstudio/rusefi.input @@ -1309,7 +1309,10 @@ cmd_test_idle_valve = "w\x00\x17\x00\x01" cmd_call_from_pit = "w\x00\x20\x34\x56" cmd_stop_engine = "w\x00\x79\x00\x00" +; reboot ECU cmd_reset_controller = "w\x00\xbb\x00\x00" +; jump to DFU mode +cmd_dfu = "w\x00\xba\x00\x00" ; See 'executeTSCommand' in firmware source code ; MIATA_NA6_MAP = 41 @@ -2495,6 +2498,7 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00" commandButton = "Idle Air Valve", cmd_test_idle_valve commandButton = "Stop Engine", cmd_stop_engine commandButton = "Reset ECU", cmd_reset_controller + commandButton = "Reset to DFU", cmd_dfu ; bench test dialog = ioTest, "Bench Test & Commands", border diff --git a/firmware/tunerstudio/rusefi_frankenso.ini b/firmware/tunerstudio/rusefi_frankenso.ini index ba269e7a1d..a12818516d 100644 --- a/firmware/tunerstudio/rusefi_frankenso.ini +++ b/firmware/tunerstudio/rusefi_frankenso.ini @@ -82,7 +82,7 @@ enable2ndByteCanID = false ; see PAGE_0_SIZE in C source code ; CONFIG_DEFINITION_START -; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration\rusefi_config.txt Mon Jul 22 17:38:15 EDT 2019 +; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration\rusefi_config.txt Thu Jul 25 17:58:52 EDT 2019 pageSize = 20000 page = 1 @@ -2287,7 +2287,10 @@ cmd_test_idle_valve = "w\x00\x17\x00\x01" cmd_call_from_pit = "w\x00\x20\x34\x56" cmd_stop_engine = "w\x00\x79\x00\x00" +; reboot ECU cmd_reset_controller = "w\x00\xbb\x00\x00" +; jump to DFU mode +cmd_dfu = "w\x00\xba\x00\x00" ; See 'executeTSCommand' in firmware source code ; MIATA_NA6_MAP = 41 @@ -3473,6 +3476,7 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00" commandButton = "Idle Air Valve", cmd_test_idle_valve commandButton = "Stop Engine", cmd_stop_engine commandButton = "Reset ECU", cmd_reset_controller + commandButton = "Reset to DFU", cmd_dfu ; bench test dialog = ioTest, "Bench Test & Commands", border diff --git a/firmware/tunerstudio/rusefi_microrusefi.ini b/firmware/tunerstudio/rusefi_microrusefi.ini index 8b3bc7bc5c..029141eec6 100644 --- a/firmware/tunerstudio/rusefi_microrusefi.ini +++ b/firmware/tunerstudio/rusefi_microrusefi.ini @@ -82,7 +82,7 @@ enable2ndByteCanID = false ; see PAGE_0_SIZE in C source code ; CONFIG_DEFINITION_START -; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration\rusefi_config.txt Mon Jul 22 17:38:13 EDT 2019 +; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration\rusefi_config.txt Thu Jul 25 17:58:50 EDT 2019 pageSize = 20000 page = 1 @@ -2280,7 +2280,10 @@ cmd_test_idle_valve = "w\x00\x17\x00\x01" cmd_call_from_pit = "w\x00\x20\x34\x56" cmd_stop_engine = "w\x00\x79\x00\x00" +; reboot ECU cmd_reset_controller = "w\x00\xbb\x00\x00" +; jump to DFU mode +cmd_dfu = "w\x00\xba\x00\x00" ; See 'executeTSCommand' in firmware source code ; MIATA_NA6_MAP = 41 @@ -3457,6 +3460,7 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00" commandButton = "Idle Air Valve", cmd_test_idle_valve commandButton = "Stop Engine", cmd_stop_engine commandButton = "Reset ECU", cmd_reset_controller + commandButton = "Reset to DFU", cmd_dfu ; bench test dialog = ioTest, "Bench Test & Commands", border diff --git a/firmware/tunerstudio/rusefi_prometheus.ini b/firmware/tunerstudio/rusefi_prometheus.ini index 3f508d581c..1208ccd78c 100644 --- a/firmware/tunerstudio/rusefi_prometheus.ini +++ b/firmware/tunerstudio/rusefi_prometheus.ini @@ -82,7 +82,7 @@ enable2ndByteCanID = false ; see PAGE_0_SIZE in C source code ; CONFIG_DEFINITION_START -; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration\rusefi_config.txt Mon Jul 22 17:38:18 EDT 2019 +; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration\rusefi_config.txt Thu Jul 25 17:58:54 EDT 2019 pageSize = 20000 page = 1 @@ -2283,7 +2283,10 @@ cmd_test_idle_valve = "w\x00\x17\x00\x01" cmd_call_from_pit = "w\x00\x20\x34\x56" cmd_stop_engine = "w\x00\x79\x00\x00" +; reboot ECU cmd_reset_controller = "w\x00\xbb\x00\x00" +; jump to DFU mode +cmd_dfu = "w\x00\xba\x00\x00" ; See 'executeTSCommand' in firmware source code ; MIATA_NA6_MAP = 41 @@ -3469,6 +3472,7 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00" commandButton = "Idle Air Valve", cmd_test_idle_valve commandButton = "Stop Engine", cmd_stop_engine commandButton = "Reset ECU", cmd_reset_controller + commandButton = "Reset to DFU", cmd_dfu ; bench test dialog = ioTest, "Bench Test & Commands", border