Software flashing method and device for electronic controller

By providing software flashing methods and devices in the automotive electronic controller ECU, and using communication modules and protocol converters to convert the data signals to be converted into target encoding format, the software upgrade difficulties caused by the lack of hardware interface of the ECU is solved, and software flashing without increasing hardware costs is achieved.

CN119937367APending Publication Date: 2025-05-06LINLUX ELECTRONICS LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411858149.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-17
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

In the absence of hardware interfaces such as LIN and CAN, existing automotive electronic controller ECUs cannot perform software flashing and upgrading, resulting in increased hardware design difficulty and cost.

Method used

By providing a software flashing method and device, the method includes receiving a data signal to be converted from a program to be flashing, converting it into a communication data signal in a target encoding format, and sending it to an electronic controller to realize software flashing. The device includes a communication module and a protocol converter for converting data signals to be converted in different formats into coded formats that the electronic controller allows to receive.

Benefits of technology

Without increasing the difficulty and cost of hardware design, software writing can be performed on electronic controllers, solving the software upgrade problem in the case where the ECU lacks a dedicated communication interface circuit.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119937367A_ABST
    Figure CN119937367A_ABST
Patent Text Reader

Abstract

The invention discloses a software flashing method and device for an electronic controller. The software flashing method comprises the following steps: receiving a to-be-converted data signal comprising a to-be-flashed program; converting the to-be-converted data signal into a communication data signal in a target coding format, sending the communication data signal to the electronic controller, and performing software flashing on the electronic controller to enable the electronic controller to be started and run by a to-be-flashed program; the target coding format is a coding format allowed to be received by the electronic controller; and receiving a feedback signal of the electronic controller to obtain a software flashing result. Compared with the prior art, the data signals to be converted in different formats are converted into the uniform target coding format, so that the data signals to be converted output by hardware interfaces such as LIN and CAN are converted into the coding formats allowed to be received by the electronic controller under the condition that the electronic controller ECU is not provided with a special communication interface circuit; software flashing can be carried out on the electronic controller without increasing hardware design difficulty and cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic controllers (ECUs), and in particular to a software flashing method and device for electronic controllers. Background Art

[0002] With the continuous development of automobile intelligence, the complexity of automobile software and hardware is increasing, and the development cycle is getting shorter and shorter, which may also lead to some functional defects being discovered after the product is put into mass production and use. Therefore, it is very important to repair functional defects by upgrading the software.

[0003] At the same time, today's automotive industry has entered a state of high-intensity competition, and reducing costs is a powerful way to improve competitiveness. Therefore, it is necessary to simplify the hardware design to reduce costs as much as possible, which leads to the fact that many electronic controllers ECU do not have hardware interfaces such as LIN and CAN, and do not support flashing and upgrading the software of the electronic controller after mass production. To solve this problem, it is necessary to design a dedicated communication interface circuit for the electronic controller ECU, but this will increase the difficulty and cost of hardware design. Summary of the invention

[0004] In order to overcome the shortcomings of the prior art, the purpose of the present invention is to provide a software flashing method and device for an electronic controller, which does not require designing a communication-specific interface circuit for the electronic controller ECU when the electronic controller ECU does not have hardware interfaces such as LIN and CAN, thereby not causing an increase in hardware design difficulty and cost.

[0005] In order to solve the above problems, the present invention is implemented according to the following scheme:

[0006] A method for flashing software of an electronic controller is provided, comprising:

[0007] receiving a data signal to be converted including a program to be flashed;

[0008] Converting the data signal to be converted into a communication data signal in a target coding format, and sending the communication data signal to the electronic controller, flashing the software of the electronic controller, so that the electronic controller starts running with the program to be flashed; the target coding format is a coding format that the electronic controller allows to receive;

[0009] A feedback signal from the electronic controller is received to obtain a software flashing result.

[0010] Compared with the prior art, the beneficial effects of the software flashing method of an electronic controller of the present invention are as follows: by converting data signals to be converted in different formats into a unified target coding format, when the electronic controller ECU does not have a dedicated communication interface circuit, the data signals to be converted output by hardware interfaces such as LIN and CAN can be converted into a coding format that the electronic controller allows to receive, that is, the software of the electronic controller can be flashed without increasing the difficulty and cost of hardware design.

[0011] Optionally, before converting the data signal to be converted into a communication data signal in a target coding format, the method further includes:

[0012] establishing a communication connection with the electronic controller;

[0013] After receiving the software flashing result fed back by the electronic controller, the method further includes:

[0014] The communication connection with the electronic controller is disconnected.

[0015] A software flashing device for an electronic controller is also provided, which is applied to the software flashing method for an electronic controller, and is characterized in that it comprises a communication module and a protocol converter; the protocol converter is connected to the communication module and the electronic controller;

[0016] The communication module is used to receive the data signal to be converted;

[0017] The protocol converter is used for:

[0018] Converting the data signal to be converted into a communication data signal in a target coding format, and sending the communication data signal to the electronic controller to perform software flashing on the electronic controller; the target coding format is a coding format that the electronic controller allows to receive;

[0019] A feedback signal from the electronic controller is received to obtain a software flashing result.

[0020] Optionally, the communication module includes a host computer and an analyzer; the analyzer is connected to the host computer and the protocol converter.

[0021] Optionally, the communication module includes a host computer; the host computer is connected to a protocol converter.

[0022] Optionally, the communication module includes a test diagnostic instrument; the test diagnostic instrument is connected to the protocol converter.

[0023] Optionally, the protocol converter includes a signal input unit, a main control unit and a signal output unit;

[0024] The main control unit is connected to the signal input unit and the signal output unit; the signal input unit is connected to the communication module; the signal output unit is connected to the electronic controller;

[0025] The main control unit is used for:

[0026] Converting the data signal to be converted into a communication data signal;

[0027] The feedback signal is received to obtain the software flashing result.

[0028] Optionally, the signal input unit includes a serial port circuit, a LIN interface circuit, a CAN interface circuit, an Ethernet interface circuit, and a USB interface circuit;

[0029] The communication module is connected to the serial port circuit, the LIN interface circuit, the CAN interface circuit, the Ethernet interface circuit, and the USB interface circuit;

[0030] The main control unit is connected to the serial port circuit, the LIN interface circuit, the CAN interface circuit, the Ethernet interface circuit, and the USB interface circuit.

[0031] Optionally, the protocol converter further includes a power supply unit; the power supply unit is connected to the signal input unit, the main control unit, and the signal output unit.

[0032] Optionally, the protocol converter further includes a human-computer interaction unit; the human-computer interaction unit is connected to the main control unit and the power supply unit; the human-computer interaction unit is used to display the software flashing result. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 is a schematic diagram of Embodiment 1 of the present invention;

[0034] Figure 2 This is a schematic diagram of the second embodiment of the present invention. Figure 1 ;

[0035] Figure 3 This is a schematic diagram of the second embodiment of the present invention. Figure 2 ;

[0036] Figure 4 It is a block diagram of the protocol converter in Embodiment 2 to Embodiment 4 of the present invention;

[0037] Figure 5 Schematic diagram of the serial port circuit in Embodiment 2 to Embodiment 4 of the present invention;

[0038] Figure 6Schematic diagram of the LIN interface circuit in Embodiment 2 to Embodiment 4 of the present invention;

[0039] Figure 7 Schematic diagram of the CAN interface circuit in Embodiment 2 to Embodiment 4 of the present invention;

[0040] Figure 8 Schematic diagram of the Ethernet interface circuit in Embodiment 2 to Embodiment 4 of the present invention;

[0041] Fig. 9 Schematic diagram of the USB interface circuit in Embodiment 2 to Embodiment 4 of the present invention;

[0042] Fig.10 Schematic diagram of the main control unit in Embodiments 2 to 4 of the present invention Figure 1 ;

[0043] Fig.11 Schematic diagram of the main control unit in Embodiments 2 to 4 of the present invention Figure 2 ;

[0044] Fig.12 Schematic diagram of the main control unit in Embodiments 2 to 4 of the present invention Figure 3 ;

[0045] Fig.13 Schematic diagram of the signal output unit in Embodiments 2 to 4 of the present invention Figure 1 ;

[0046] Fig.14 Schematic diagram of the signal output unit in Embodiments 2 to 4 of the present invention Figure 2 ;

[0047] Fig.15 Schematic diagram of the signal output unit in Embodiments 2 to 4 of the present invention Figure 3 ;

[0048] Fig.16 Schematic diagram of the power supply unit in Embodiments 2 to 4 of the present invention Figure 1 ;

[0049] Fig.17 Schematic diagram of the power supply unit in Embodiments 2 to 4 of the present invention Figure 2 ;

[0050] Fig.18 Schematic diagram of a human-computer interaction unit in Embodiments 2 to 4 of the present invention;

[0051] Fig.19 This is a flowchart of the protocol converter in Embodiments 2 to 4 of the present invention converting the data signal to be converted;

[0052] Fig. 20 This is a schematic diagram of Embodiment 3 of the present invention;

[0053] Fig.21 This is a schematic diagram of Embodiment 4 of the present invention.

[0054] Explanation of the reference numerals: 1. Communication module; 101. Host computer; 102. Analyzer; 103. Test and diagnostic instrument; 2. Protocol converter; 201. Signal input unit; 2011. Serial port circuit; 2012. LIN interface circuit; 2013. CAN interface circuit; 2014. Ethernet interface circuit; 2015. USB interface circuit; 202. Main control unit; 203. Signal output unit; 204. Power supply unit; 205. Human-computer interaction unit; 3. Electronic controller. DETAILED DESCRIPTION

[0055] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0056] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims. In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and do not have to be used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances.

[0057] Embodiment 1

[0058] See also Figure 1 As shown, the present invention provides a method for flashing software of an electronic controller, comprising:

[0059] S1: receiving a data signal to be converted including a program to be flashed, and flashing the program to be flashed to the electronic controller when software is flashed on the electronic controller, so that the electronic controller starts running the program to be flashed, and the program to be flashed is selected by a staff member.

[0060] S2: Convert the data signal to be converted into a communication data signal of a target coding format, and send the communication data signal to the electronic controller, flash the software of the electronic controller, and start the electronic controller to run with the program to be flashed; the target coding format is the coding format allowed to be received by the electronic controller.

[0061] Before converting the data signal to be converted into a communication data signal in the target coding format, it also includes establishing a communication connection with the electronic controller 3 to ensure the reliability and stability of the communication data signal transmission, avoid signal loss or functional abnormality due to communication interruption or error, and ensure that the communication data signal can be reliably received when the electronic controller is flashed with software.

[0062] The encoding formats of the data signals to be converted include but are not limited to serial port SP encoding format, LIN encoding format, CAN encoding format, Ethernet encoding format and USB encoding format. These encoding formats are encoding formats of the universal bus interface of the communication module used by the staff to flash the software of the electronic controller. The target encoding format includes the 2 / 4 / 8 / 16FSK encoding format allowed to be received by the electronic controller 3, so that the staff can use common communication modules to flash the software of the electronic controller through the UDS (Unified Diagnostic Service) standard protocol.

[0063] S3: receiving a feedback signal from the electronic controller to obtain a software flashing result; after receiving the feedback signal from the electronic controller, disconnecting the communication connection with the electronic controller, so as to disconnect the communication and power supply with the electronic controller after the control of the electronic controller is completed.

[0064] Embodiment 2

[0065] See also Figure 2-3 As shown, the present invention also provides a software flashing device for an electronic controller, comprising a communication module 1 and a protocol converter 2 , wherein the protocol converter 2 is connected to the communication module 1 and the electronic controller 3 .

[0066] In this embodiment, the communication module 1 includes a host computer 101 and an analyzer 102, and the analyzer 102 is connected to the host computer 101 and the protocol converter 2; the host computer 101 sends a signal in a USB encoding format to the analyzer 102, and the analyzer 102 converts the signal in a USB encoding format into a signal in a LIN / CAN encoding format, and sends it to the protocol converter 2, so that the protocol converter 2 converts the signal in a LIN / CAN encoding format into a communication data signal in a 2 / 4 / 8 / 16FSK target encoding format; wherein the analyzer 102 is a general CAN / LIN analyzer such as Vector and Tumos.

[0067] After the electronic controller 3 receives the communication data signal in the target coding format, the electronic controller 3 performs software flashing to realize the software flashing of the electronic controller 3. The electronic controller 3 sends the software flashing result to the protocol converter 2 in the form of a feedback signal in the target coding format of 2 / 4 / 8 / 16FSK. The protocol converter 2 converts the feedback signal in the target coding format of 2 / 4 / 8 / 16FSK into a signal in the coding format of LIN / CAN, and sends it to the analyzer 102, so that the analyzer 102 converts the signal in the coding format of LIN / CAN into a feedback signal in the USB coding format and sends it to the host computer 101, so that the staff can view the software flashing result through the host computer 101. The software flashing result is used to indicate whether the software flashing of the electronic controller 3 is successful.

[0068] This embodiment can realize expansion and support for more host computer flashing programs to communicate with the communication module 1 and the protocol converter 2 through the analyzer 102, and control the electronic controller 3 to perform software flashing.

[0069] The communication module 1 is used to receive the data signal to be converted of the program to be flashed selected by the staff, and send the data signal to be converted to the protocol converter 2, so that the data signal to be converted in different encoding formats is converted into a communication data signal in a target encoding format through the protocol converter 2; wherein the encoding format of the data signal to be converted includes but is not limited to the serial port SP encoding format, LIN encoding format, CAN encoding format, Ethernet encoding format and USB encoding format, these encoding formats are the encoding formats of the universal bus interface of the host computer 101 or the test diagnostic instrument 103 used by the staff to flash the software of the electronic controller 3, and the target encoding format includes the 2 / 4 / 8 / 16FSK encoding format allowed to be received by the electronic controller 3, so that the staff can use the host computer 101 or the test diagnostic instrument 103 to flash the software of the electronic controller 3 through the UDS (unified diagnostic service) standard protocol. The specific process of flashing the software of the electronic controller 3 can be referred to the prior art.

[0070] See also Figure 4 As shown, the protocol converter 2 includes a signal input unit 201, a main control unit 202, a signal output unit 203, a power supply unit 204 and a human-computer interaction unit 205; the main control unit 202 is connected to the signal input unit 201, the signal output unit 203, the power supply unit 204 and the human-computer interaction unit 205; the signal input unit 201 is connected to the power supply unit 204 and the communication module 1; the signal output unit 203 is connected to the power supply unit 204 and the electronic controller 3; and the human-computer interaction module is connected to the power supply unit 204.

[0071] The signal input unit 201 is used to receive the data signal to be converted in the encoding format of the serial port SP / LIN / CAN / Ethernet / USB sent by the communication module 1, and the main control unit 202 is used to convert the data signal to be converted into a communication data signal in the target encoding format of 2 / 4 / 8 / 16FSK, and send it to the electronic controller 3 through the signal output unit 203 to realize the software flashing of the electronic controller 3;

[0072] The signal output unit 203 is also used to receive a feedback signal in the 2 / 4 / 8 / 16FSK target coding format sent by the electronic controller 3, and the feedback signal includes the software flashing result, so that the main control unit 202 converts the feedback signal in the 2 / 4 / 8 / 16FSK target coding format into a feedback signal in the coding format of the serial port SP / LIN / CAN / Ethernet / USB, and checks the software flashing result through the human-computer interaction unit 205, and can also send the software flashing result to the communication module 1 through the signal input unit 201 for the staff to check the software flashing result.

[0073] The signal input unit 201 includes a serial port circuit 2011, a LIN interface circuit 2012, a CAN interface circuit 2013, an Ethernet interface circuit 2014, and a USB interface circuit 2015; the communication module 1 is connected to the serial port circuit 2011, the LIN interface circuit 2012, the CAN interface circuit 2013, the Ethernet interface circuit 2014, and the USB interface circuit 2015; the main control unit 202 is connected to the serial port circuit 2011, the LIN interface circuit 2012, the CAN interface circuit 2013, the Ethernet interface circuit 2014, and the USB interface circuit 2015.

[0074] See also Figure 5 As shown, it is a schematic diagram of the serial port circuit 2011. The serial port circuit 2011 is connected to the communication module 1, the main control unit 202 and the power supply unit 204. The protocol converter 2 receives the data signal to be converted in the serial port SP encoding format sent by the communication module 1 through the serial port circuit 2011, and sends it to the main control unit 202, so that the main control unit 202 converts it into a communication data signal in the 2 / 4 / 8 / 16FSK target encoding format; the feedback signal sent by the electronic controller 3 can also be sent to the communication module 1 through the serial port circuit 2011.

[0075] See also Figure 6As shown, it is a schematic diagram of the LIN interface circuit 2012. The LIN interface circuit 2012 is connected to the communication module 1, the main control unit 202 and the power supply unit 204. The protocol converter 2 receives the data signal to be converted in the LIN encoding format through the LIN interface circuit 2012, and sends it to the main control unit 202, so that the main control unit 202 converts it into a communication data signal in the 2 / 4 / 8 / 16FSK target encoding format; the feedback signal sent by the electronic controller 3 can also be sent to the communication module 1 through the LIN interface circuit 2012.

[0076] See also Figure 7 As shown, it is a schematic diagram of the CAN interface circuit 2013. The CAN interface circuit 2013 is connected to the communication module 1, the main control unit 202 and the power supply unit 204. The protocol converter 2 receives the data signal to be converted in the CAN encoding format through the CAN interface circuit 2013, and sends it to the main control unit 202, so that the main control unit 202 converts it into a communication data signal in the 2 / 4 / 8 / 16FSK target encoding format; the feedback signal sent by the electronic controller 3 can also be sent to the communication module 1 through the CAN interface circuit 2013.

[0077] See also Figure 8 As shown, it is a schematic diagram of the Ethernet interface circuit 2014. The Ethernet interface circuit 2014 is connected to the communication module 1, the main control unit 202 and the power supply unit 204. The protocol converter 2 receives the data signal to be converted in the Ethernet encoding format through the Ethernet interface circuit 2014, and sends it to the main control unit 202, so that the main control unit 202 converts it into a communication data signal in the 2 / 4 / 8 / 16FSK target encoding format; the feedback signal sent by the electronic controller 3 can also be sent to the communication module 1 through the Ethernet interface circuit 2014.

[0078] See also Fig. 9 As shown, it is a schematic diagram of the USB interface circuit 2015. The USB interface circuit 2015 is connected to the communication module 1, the main control unit 202 and the power supply unit 204. The protocol converter 2 receives the data signal to be converted in the USB encoding format through the USB interface circuit 2015, and sends it to the main control unit 202, so that the main control unit 202 converts it into a communication data signal in the 2 / 4 / 8 / 16FSK target encoding format; the feedback signal sent by the electronic controller 3 can also be sent to the communication module 1 through the USB interface circuit 2015.

[0079] See also Figure 10-12As shown, it is a schematic diagram of the main control unit 202, and the main control unit 202 is connected to the serial port circuit 2011, the LIN interface circuit 2012, the CAN interface circuit 2013, the Ethernet interface circuit 2014, the USB interface circuit 2015, the signal output unit 203, the power supply unit 204, and the human-computer interaction unit 205.

[0080] See also Figure 13-15 , which is a schematic diagram of the signal output unit 203 . The signal output unit 203 is connected to the main control unit 202 , the power supply unit 204 , and the electronic controller 3 . The protocol converter 2 communicates with the electronic controller 3 via the signal output unit 203 .

[0081] See also Figure 16-17 As shown, it is a schematic diagram of the power supply unit 204. The power supply unit 204 is connected to the serial port circuit 2011, the LIN interface circuit 2012, the CAN interface circuit 2013, the Ethernet interface circuit 2014, the USB interface circuit 2015, the main control unit 202, the signal output unit 203, and the human-computer interaction unit 205 to provide working power for the serial port circuit 2011, the LIN interface circuit 2012, the CAN interface circuit 2013, the Ethernet interface circuit 2014, the USB interface circuit 2015, the main control unit 202, the signal output unit 203, and the human-computer interaction unit 205.

[0082] See also Fig.18 As shown, it is a schematic diagram of the human-machine interaction unit 205 . The human-machine interaction unit 205 is connected to the main control unit 202 and the power supply unit 204 . The protocol converter 2 displays the software flashing result through the human-machine interaction unit 205 .

[0083] See also Fig.19 As shown, it is a workflow diagram of the protocol converter 2 converting the data signal to be converted, and its specific workflow is: first, the protocol converter 2 is initialized after power-on reset, and automatically attempts to establish a communication connection with the electronic controller 3; if the connection is successful, select the universal communication interface (serial port, LIN interface, CAN interface, Ethernet interface, USB interface) and wait for the external connection instruction; after receiving the connection instruction, confirm whether it is successfully connected to the electronic controller 3; after the connection is successful, the protocol converter 2 starts to send, receive and convert the data signal to be converted to obtain the communication data signal, that is, convert the received and sent data signal to be converted into the communication data signal of the target encoding format, and send it to the electronic controller 3; after completing the sending, receiving and conversion of the communication data signal, the protocol converter 2 disconnects the connection with the electronic controller 3.

[0084] By converting the data signals to be converted in different formats into a unified target coding format, when the electronic controller 3 does not have a dedicated communication interface circuit, the data signals to be converted output by hardware interfaces such as LIN and CAN can be converted into a coding format that the electronic controller allows to receive. In other words, the electronic controller 3 can be controlled without increasing the difficulty and cost of hardware design.

[0085] Embodiment 3

[0086] See also Fig. 20 , which is a schematic diagram of Embodiment 3 of the present invention. The difference between this embodiment and Embodiment 2 is only that the structure of the communication module 1 is different. The protocol converter of this embodiment has the same structure as that of the protocol converter of Embodiment 2.

[0087] In this embodiment, the communication module 1 includes a host computer 101, which is connected to the protocol converter 2; in this embodiment, the host computer 101 sends a signal with a coding format of serial port SP / USB / Ethernet to the protocol converter 2, so that the protocol converter 2 converts the signal with a coding format of serial port SP / USB / Ethernet into a communication data signal with a target coding format of 2 / 4 / 8 / 16FSK.

[0088] After the electronic controller 3 receives the communication data signal in the target coding format, the electronic controller 3 performs software flashing to realize the software flashing of the electronic controller 3. The electronic controller 3 sends the software flashing result to the protocol converter 2 in the form of a feedback signal in the target coding format of 2 / 4 / 8 / 16FSK. The protocol converter 2 converts the feedback signal in the target coding format of 2 / 4 / 8 / 16FSK into a signal in the coding format of the serial port SP / USB / Ethernet, and sends it to the host computer 101, so that the staff can view the software flashing result through the host computer 101. The software flashing result is used to indicate whether the software flashing of the electronic controller 3 is successful.

[0089] Embodiment 4

[0090] See also Fig.21 , which is a schematic diagram of Embodiment 4 of the present invention. The difference between this embodiment and Embodiment 2 is only that the structure of the communication module 1 is different. The protocol converter of this embodiment has the same structure as the protocol converter of Embodiment 2.

[0091] In this embodiment, the communication module 1 includes a test diagnostic instrument 103, which is connected to the protocol converter 2; in this embodiment, the test diagnostic instrument 103 sends a signal with a coding format of LIN / CAN / Ethernet to the protocol converter 2, so that the protocol converter 2 converts the signal with a coding format of LIN / CAN / Ethernet into a communication data signal with a target coding format of 2 / 4 / 8 / 16FSK.

[0092] After the electronic controller 3 receives the communication data signal in the target coding format, the electronic controller 3 performs software flashing to realize the software flashing of the electronic controller 3. The electronic controller 3 sends the software flashing result to the protocol converter 2 in the form of a feedback signal in the target coding format of 2 / 4 / 8 / 16FSK. The protocol converter 2 converts the feedback signal in the target coding format of 2 / 4 / 8 / 16FSK into a signal in the coding format of LIN / CAN / Ethernet, and sends it to the test diagnostic instrument 103, so that the staff can view the software flashing result through the test diagnostic instrument 103. The software flashing result is used to indicate whether the software flashing of the electronic controller 3 is successful.

[0093] The above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A method for flashing software of an electronic controller, characterized in that: include: receiving a data signal to be converted including a program to be flashed; Converting the data signal to be converted into a communication data signal in a target coding format, and sending the communication data signal to the electronic controller, flashing the software of the electronic controller, so that the electronic controller starts running with the program to be flashed; the target coding format is a coding format that the electronic controller allows to receive; A feedback signal from the electronic controller is received to obtain a software flashing result.

2. The method for flashing software of an electronic controller according to claim 1, characterized in that: Before converting the data signal to be converted into a communication data signal in a target coding format, the method further comprises: establishing a communication connection with the electronic controller; After receiving the software flashing result fed back by the electronic controller, the method further includes: The communication connection with the electronic controller is disconnected.

3. A software flashing device for an electronic controller, applied to the software flashing method for an electronic controller as claimed in claims 1-2, characterized in that: It includes a communication module and a protocol converter; the protocol converter is connected with the communication module and the electronic controller; The communication module is used to receive the data signal to be converted; The protocol converter is used for: Converting the data signal to be converted into a communication data signal in a target coding format, and sending the communication data signal to the electronic controller to perform software flashing on the electronic controller; the target coding format is a coding format that the electronic controller allows to receive; A feedback signal from the electronic controller is received to obtain a software flashing result.

4. The software flashing device for an electronic controller according to claim 3, characterized in that: The communication module includes a host computer and an analyzer; the analyzer is connected to the host computer and the protocol converter.

5. The software flashing device for an electronic controller according to claim 3, characterized in that: The communication module includes a host computer; the host computer is connected to a protocol converter.

6. The software flashing device for an electronic controller according to claim 3, characterized in that: The communication module includes a test diagnostic instrument; the test diagnostic instrument is connected to the protocol converter.

7. The software flashing device for an electronic controller according to claim 3, characterized in that: The protocol converter includes a signal input unit, a main control unit and a signal output unit; The main control unit is connected to the signal input unit and the signal output unit; the signal input unit is connected to the communication module; the signal output unit is connected to the electronic controller; The main control unit is used for: Converting the data signal to be converted into a communication data signal; The feedback signal is received to obtain the software flashing result.

8. The software flashing device for an electronic controller according to claim 7, characterized in that: The signal input unit includes a serial port circuit, a LIN interface circuit, a CAN interface circuit, an Ethernet interface circuit, and a USB interface circuit; The communication module is connected to the serial port circuit, the LIN interface circuit, the CAN interface circuit, the Ethernet interface circuit, and the USB interface circuit; The main control unit is connected to the serial port circuit, the LIN interface circuit, the CAN interface circuit, the Ethernet interface circuit, and the USB interface circuit.

9. The software flashing device for an electronic controller according to claim 7, characterized in that: The protocol converter further includes a power supply unit; the power supply unit is connected to the signal input unit, the main control unit, and the signal output unit.

10. The software flashing device for an electronic controller according to claim 9, characterized in that: The protocol converter also includes a human-computer interaction unit; the human-computer interaction unit is connected to the main control unit and the power supply unit; the human-computer interaction unit is used to display the software flashing result.