Control method, control device and system for data flashing device of ECU

By receiving and comparing version information and user instructions in the ECU flashing device, the flashing area is determined, which solves the problem of poor flashing reliability in the prior art, realizes a more reliable ECU flashing process, and saves time and resources.

CN115640032BActive Publication Date: 2026-07-10WEICHAI POWER CO LTD +1

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
WEICHAI POWER CO LTD
Filing Date
2022-11-08
Publication Date
2026-07-10

AI Technical Summary

Technical Problem

The control method of existing ECU flashing equipment has poor reliability and is prone to flashing failure due to user command errors, resulting in wasted resources.

Method used

By receiving the predetermined version information of the data to be flashed, and combining it with the current version information of the target ECU and the user's instructions, the flashing result is determined. The data flashing device is then controlled to flash the data to the entire area or a data area. The flashing is performed on the corresponding area only when the flashing result is consistent with the version information, thus avoiding failures caused by incorrect instructions.

Benefits of technology

It improves the reliability of ECU flashing, reduces the probability of flashing failure, saves time and resources, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115640032B_ABST
    Figure CN115640032B_ABST
Patent Text Reader

Abstract

The application provides a control method and a control device of a data flashing device of an ECU and a flashing system. The method comprises the following steps: receiving to-be-flashed data, wherein the to-be-flashed data comprises predetermined version information; and controlling the data flashing device to flash the to-be-flashed data into a predetermined region of a target ECU according to a flashing result and / or a user instruction, wherein the predetermined region is a full region or a data region, the full region comprises the data region and a program code region, the flashing result represents data flashing of the data region in a case where current version information is consistent with the predetermined version information, and the flashing result represents data flashing of the full region in a case where the current version information is inconsistent with the predetermined version information. The application solves the problem of poor reliability of the control mode of the data flashing device in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of ECU flashing, and more specifically, to a control method, control device, computer-readable storage medium, processor, and ECU flashing system for an ECU data flashing device. Background Technology

[0002] When upgrading the software of ECU (Electronic Control Unit) on the market, diagnostic service tools are required. However, the current diagnostic service tools perform full-area flashing or data area flashing based on user instructions. If the user instructions are incorrect, the ECU that should have been flashed with a full area flashing may only have its data area flashed due to the incorrect user instructions, which will cause the ECU flashing to fail and result in a waste of human and material resources.

[0003] Therefore, there is an urgent need for a method to solve the problem of low reliability of the current write control method. Summary of the Invention

[0004] The main objective of this application is to provide a control method, control device, computer-readable storage medium, processor, and ECU flashing system for an ECU data flashing device, in order to solve the problem of poor reliability of the control method of the data flashing device in the prior art.

[0005] To achieve the above objectives, according to one aspect of this application, a control method for an ECU data flashing device is provided. The method includes: receiving data to be flashed, the data including predetermined version information; and controlling the data flashing device to flash the data to be flashed to a predetermined area of ​​a target ECU according to a flashing result and / or a user instruction. The predetermined area is either the entire ECU or a data area, the entire ECU including the data area and a program code area. The flashing result is determined based on the current version information in the target ECU and the predetermined version information. If the current version information matches the predetermined version information, the flashing result indicates that data flashing is performed on the data area; if the current version information does not match the predetermined version information, the flashing result indicates that data flashing is performed on the entire ECU. The user instruction is either a first instruction to flash the data area or a second instruction to flash the entire ECU.

[0006] Optionally, the data flashing device includes a display interface. Before controlling the data flashing device to flash the data to be flashed to a predetermined area of ​​the target ECU according to the flashing result and / or user instruction, the method further includes: controlling the display interface to display a selection identifier, the selection identifier including an identifier for selecting to generate the first instruction and an identifier for selecting to generate the second instruction; and generating the user instruction in response to a first predetermined operation acting on the selection identifier.

[0007] Optionally, based on the flashing result and / or user instructions, controlling the data flashing device to flash the data to be flashed to a predetermined area of ​​the target ECU includes: if the flashing result indicates that data flashing is performed on the entire area, controlling the data flashing device to flash the data to be flashed to the entire area; if the flashing result indicates that data flashing is performed on the data area, controlling the data flashing device to execute the user instructions to flash the data to be flashed to the predetermined area.

[0008] Optionally, based on the flashing result and / or user instructions, controlling the data flashing device to flash the data to be flashed to a predetermined area of ​​the target ECU includes: if the flashing result indicates that data flashing is performed on the data area, controlling the data flashing device to flash the data to be flashed to the data area; if the flashing result indicates that data flashing is performed on the entire area, controlling the data flashing device to flash the data to be flashed to the entire area.

[0009] Optionally, before controlling the data flashing device to flash the data to be flashed to a predetermined area in the target ECU according to the flashing result and / or user instructions, the method further includes: obtaining data flashing permission for the entire area, wherein the data flashing permission is the permission to modify the data in the entire area.

[0010] Optionally, the data flashing device includes a display interface. Before controlling the data flashing device to flash the data to be flashed to a predetermined area of ​​the target ECU according to the flashing result and / or user instructions, the method includes: upon receiving the data to be flashed, controlling the display interface to display a flashing start indicator; in response to a second predetermined operation acting on the flashing start indicator, determining the predetermined version information and the current version information according to the data to be flashed and the target ECU.

[0011] According to another aspect of this application, a control device for an ECU data flashing device is provided. The device includes a receiving unit and a control unit. The receiving unit receives data to be flashed, the data including predetermined version information. The control unit controls the data flashing device to flash the data to be flashed to a predetermined area of ​​a target ECU according to a flashing result and / or a user instruction. The predetermined area is either the entire area or a data area. The entire area includes the data area and a program code area. The flashing result is determined based on the current version information in the target ECU and the predetermined version information. If the current version information matches the predetermined version information, the flashing result indicates that data flashing is performed on the data area. If the current version information does not match the predetermined version information, the flashing result indicates that data flashing is performed on the entire area. The user instruction is either a first instruction to flash the data area or a second instruction to flash the entire area.

[0012] According to another aspect of this application, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein, when the program is executed by a processor, it controls the device in which the computer-readable storage medium is located to perform any of the methods described.

[0013] According to another aspect of this application, a processor is provided for running a program, wherein the program, when running, performs any of the methods described.

[0014] According to another aspect of this application, an ECU flashing system is provided, including an ECU data flashing device and a control device for the data flashing device, wherein the control device for the data flashing device includes one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include methods for performing any one of the methods described.

[0015] Applying the technical solution of this application, in the control method of the ECU data flashing device of this application, firstly, data to be flashed, including predetermined version information, is received; then, according to the flashing result and / or user instruction, the data flashing device is controlled to flash the data to be flashed to the entire area or data area of ​​the target ECU. Wherein, if the current version information is consistent with the predetermined version information, the flashing result indicates that data is flashed to the data area; if the current version information is inconsistent with the predetermined version information, the flashing result indicates that data is flashed to the entire area. The user instruction is either a first instruction to flash the data area or a second instruction to flash the entire area. Compared to existing technologies where data flashing devices only execute ECU flashing operations based on user instructions, which can easily lead to flashing failures, this application adds confirmation of the flashing result. By using the current version information of the target ECU and the version information to be flashed, it determines which flashing method is suitable for the target ECU. Then, based on the flashing result and / or user instructions, it controls the data flashing device to flash the target ECU, ensuring a more reliable flashing control process and solving the problem of poor flashing reliability caused by existing technologies that only execute ECU flashing based on user instructions. Attached Figure Description

[0016] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:

[0017] Figure 1 A schematic diagram of a control method for an ECU data flashing device according to an embodiment of this application is shown;

[0018] Figure 2 A schematic diagram of a method for flashing control data to a predetermined area of ​​a target ECU using a control data flashing device according to an embodiment of this application is shown.

[0019] Figure 3 A schematic diagram of a control method for an ECU data flashing device according to an embodiment of this application is shown;

[0020] Figure 4 A schematic diagram of a control method for an ECU data flashing device according to an embodiment of this application is shown;

[0021] Figure 5 A schematic diagram illustrating the specific flow of a control method for an ECU data flashing device according to an embodiment of this application is shown.

[0022] Figure 6 A schematic diagram of the control device for an ECU data flashing apparatus according to an embodiment of this application is shown. Detailed Implementation

[0023] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.

[0024] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0025] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0026] It should be understood that when an element (such as a layer, film, region, or substrate) is described as being "on" another element, the element may be directly on the other element, or there may be an intermediate element present. Furthermore, in the specification and claims, when an element is described as being "connected" to another element, the element may be "directly connected" to the other element, or "connected" to the other element via a third element.

[0027] As described in the background section, the control methods of existing data writing devices have poor reliability. To solve the above problems, embodiments of this application provide a control method, control device, computer-readable storage medium, processor, and ECU writing system for an ECU data writing device.

[0028] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

[0029] Example 1

[0030] According to an embodiment of the present invention, a control method embodiment for an ECU data flashing device is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0031] Figure 1 This is a flowchart of a control method for an ECU data flashing device according to an embodiment of this application. Figure 1 As shown, the method includes the following steps:

[0032] Step S101: Receive the data to be flashed, which includes the predefined version information;

[0033] In practical applications, the data to be written in this application is data sent by those skilled in the art through a data management platform, which is communicatively connected to the data writing device. Currently, the sending end of the data is not limited to the aforementioned data management platform, but can also be a terminal device connected to the data writing device, such as a computer, tablet, or mobile phone.

[0034] The data to be flashed is the new software data to be flashed into the ECU, and the predetermined version information is the version information of the new software data. The flashing device can be a diagnostic service tool or other devices that can be used to flash ECUs.

[0035] Step S102: Based on the flashing result and / or user instruction, control the data flashing device to flash the data to be flashed to a predetermined area of ​​the target ECU. The predetermined area is either the entire area or a data area. The entire area includes the data area and the program code area. The flashing result is determined based on the current version information and the predetermined version information in the target ECU. If the current version information and the predetermined version information are consistent, the flashing result indicates that the data area is flashed. If the current version information and the predetermined version information are inconsistent, the flashing result indicates that the entire area is flashed. The user instruction is either a first instruction to flash the data area or a second instruction to flash the entire area.

[0036] In the control method of the ECU data flashing device of this application, firstly, data to be flashed, including predetermined version information, is received; then, according to the flashing result and / or user instruction, the data flashing device is controlled to flash the data to be flashed to the entire area or data area of ​​the target ECU. Wherein, if the current version information is consistent with the predetermined version information, the flashing result indicates that the data area is flashed; if the current version information is inconsistent with the predetermined version information, the flashing result indicates that the entire area is flashed. The user instruction is either a first instruction to flash the data area or a second instruction to flash the entire area. Compared to existing technologies where data flashing devices only execute ECU flashing operations based on user instructions, which can easily lead to flashing failures, this application adds confirmation of the flashing result. By using the current version information of the target ECU and the version information to be flashed, it determines which flashing method is suitable for the target ECU. Then, based on the flashing result and / or user instructions, it controls the data flashing device to flash the target ECU, ensuring a more reliable flashing control process and solving the problem of poor flashing reliability caused by existing technologies that only execute ECU flashing based on user instructions.

[0037] If the current version information matches the predetermined version information, it means that the information in the program code area of ​​the target ECU matches the program code information in the data to be flashed, and only the information in the data area is inconsistent with the data to be flashed. In this case, it is not necessary to erase and flash the information in the program code area; only the data area needs to be flashed. However, if the current version information does not match the predetermined version information, it means that both the information in the program code area and the information in the data area of ​​the target ECU are inconsistent with the corresponding information in the data to be flashed. In this case, a full flash of the target ECU is required to ensure successful flashing.

[0038] In addition, in the target ECU, the flashing time for the data area only accounts for 20% of the total flashing time for the entire area. If only the data area is flashed, the flashing time can be greatly reduced.

[0039] To further avoid the problem of wasted manpower and resources due to target ECU flashing failure, such as... Figure 2 As shown, based on the flashing result and / or user instructions, the data flashing device is controlled to flash the data to be flashed to a predetermined area of ​​the target ECU. Specifically, step S102 includes the following implementation process:

[0040] Step S1021: When the above-mentioned writing result indicates that the above-mentioned whole area is being written with data, control the above-mentioned data writing device to write the above-mentioned data to be written to the above-mentioned whole area.

[0041] Step S1022: If the above-mentioned writing result indicates that data has been written to the above-mentioned data area, control the above-mentioned data writing device to execute the above-mentioned user instruction to write the above-mentioned data to be written to the above-mentioned predetermined area.

[0042] In the above embodiments, the data flashing device is controlled to flash the target ECU based on both the flashing result and the user command, further ensuring the reliability of the flashing process. Specifically, when a flashing result indicating a full-area data flash is obtained, it means that only a full-area flash is applicable to the current data to be flashed. In this case, regardless of the user command, the data flashing device will be directly controlled to flash the data to be flashed to the entire area. This ensures that even if the user command is transmitted incorrectly (i.e., the user command is the first command), the flashing of the target ECU will not fail, avoiding the waste of manpower, resources, and time caused by flashing failure. When a flashing result indicating a data area flash is obtained, it means that either a full-area flash or a data area flash can be used for the current data to be flashed. In this case, the data flashing device is controlled to flash the data to be flashed to the predetermined area based on the user command. This gives the flashing control personnel a great deal of freedom, allowing them to choose whether to perform a full-area flash, avoiding the problem of being unable to flash the entire area when the goal is to do so, and ensuring a better user experience.

[0043] Of course, the specific implementation of step S102 is not limited to the above-described method. In other embodiments of this application, in order to further avoid data writing device failure and further shorten the writing time of the target ECU, according to a specific embodiment of this application, the data writing device is controlled to write the data to be written to a predetermined area of ​​the target ECU according to the writing result and / or user instruction. This includes: when the writing result indicates that the data area is being written, the data writing device is controlled to write the data to be written to the data area; when the writing result indicates that the entire area is being written, the data writing device is controlled to write the data to be written to the entire area.

[0044] In the above embodiments, the data flashing device is controlled to flash the data to be flashed to a predetermined area of ​​the target ECU only based on the flashing result. When it is determined that only the data area of ​​the target ECU is to be flashed, the program code area in the target ECU does not need to be erased and rewritten. This can save about 80% of the flashing time compared to flashing the entire area, further saving flashing time. Furthermore, when it is determined that the entire area is to be flashed, the entire area is flashed, further avoiding the problem of flashing failure of the target ECU due to incorrect user commands, further ensuring the successful flashing of the target ECU.

[0045] To facilitate subsequent flashing operations on the target ECU, in another embodiment of this application, before controlling the data flashing device to flash the data to be flashed to a predetermined area in the target ECU according to the flashing result and / or user instructions, the method further includes: obtaining data flashing permission for the entire area, wherein the data flashing permission is the permission to modify the data in the entire area.

[0046] More specifically, according to a specific embodiment of this application, such as Figure 3 As shown, the aforementioned data flashing device includes a display interface. Before controlling the data flashing device to flash the data to be flashed to a predetermined area of ​​the target ECU according to the flashing result and / or user instructions, the method further includes:

[0047] Step S201: Control the display interface to display selection indicators, including an indicator for selecting to generate the first instruction and an indicator for selecting to generate the second instruction.

[0048] Step S202: In response to the first predetermined operation acting on the selection identifier, the user instruction is generated.

[0049] This application displays selection icons through a display interface, allowing flashing personnel to select the corresponding icons according to the actual situation, thereby generating flashing instructions that conform to the actual situation. This further enables flashing personnel to control the flashing process more conveniently and further ensures the control freedom of flashing personnel.

[0050] The first predetermined operation mentioned above can be an operation such as clicking, checking, or dragging on the display interface. Those skilled in the art can set it flexibly.

[0051] To further ensure convenient control of the flashing process by the flashing personnel, according to another specific embodiment of this application, such as... Figure 4 As shown, the data flashing device described in this application includes a display interface. Before controlling the data flashing device to flash the data to be flashed to a predetermined area of ​​the target ECU according to the flashing result and / or user instructions, the method includes:

[0052] Step S301: Upon receiving the data to be written, control the display interface to display the write start indicator;

[0053] In step S302, in response to the second predetermined operation acting on the flashing start identifier, the predetermined version information and the current version information are determined based on the data to be flashed and the target ECU.

[0054] In the above process, the flashing process only begins after receiving the second pre-defined operation from the flashing personnel, which further facilitates the flashing personnel in controlling the start of the flashing process at any time.

[0055] The second predetermined operation described above can be an operation such as clicking, checking, or dragging on the display interface. Those skilled in the art can set it flexibly.

[0056] After obtaining data flashing permission for the entire region, this application receives the data to be flashed from the data management platform and displays a flashing start indicator on the display interface. Based on the data to be flashed and the target ECU, the application determines the predetermined version information and the current version information, which facilitates the subsequent determination of the flashing result by verifying the predetermined version information and the current version information, and further ensures the reliability of the flashing.

[0057] In a specific embodiment, the control process of the ECU data flashing device described in this application is as follows: Figure 5 As shown, firstly, full-area data flashing permission is obtained. Secondly, the flashing personnel use the authorized data to click the start flashing icon on the display interface to begin reading the current version information of the target ECU and verifying it against the predetermined version information. If the current version information matches the predetermined version information, the data flashing device is controlled to flash the data of the target ECU according to the user's instructions. If the user's instructions are the first instructions, the data area of ​​the target ECU is flashed. If the user's instructions are the second instructions, the entire area of ​​the target ECU is flashed. If the current version information does not match the predetermined version information, the entire area is flashed directly.

[0058] Example 2

[0059] and Figure 1 Corresponding to the method shown, this application also provides a control device for an ECU data flashing device. It should be noted that the control device for the ECU data flashing device in this application can be used to execute the control method for the ECU data flashing device provided in this application. The control device for the ECU data flashing device provided in this application is described below.

[0060] Figure 6 This is a schematic diagram of the control device for an ECU data flashing device according to an embodiment of this application. Figure 6As shown, the specific description is as follows: The control device of the ECU data flashing device of this application includes a receiving unit 10 and a first control unit 20. The receiving unit 10 is used to receive data to be flashed, which includes predetermined version information. The first control unit 20 is used to control the data flashing device to flash the data to be flashed to a predetermined area of ​​the target ECU according to the flashing result and / or user instruction. The predetermined area is either the entire area or a data area. The entire area includes the data area and the program code area. The flashing result is determined based on the current version information and the predetermined version information in the target ECU. When the current version information is consistent with the predetermined version information, the flashing result indicates that the data area is flashed. When the current version information is inconsistent with the predetermined version information, the flashing result indicates that the entire area is flashed. The user instruction is either a first instruction to flash the data area or a second instruction to flash the entire area.

[0061] In the control device of the ECU data flashing device of this application, a receiving unit receives data to be flashed, including predetermined version information, and a first control unit controls the data flashing device to flash the data to be flashed to the entire area or data area of ​​the target ECU according to the flashing result and / or user instruction. Wherein, if the current version information is consistent with the predetermined version information, the flashing result indicates that the data area is flashed; if the current version information is inconsistent with the predetermined version information, the flashing result indicates that the entire area is flashed. The user instruction is either a first instruction to flash the data area or a second instruction to flash the entire area. Compared to existing technologies where data flashing devices only execute ECU flashing operations based on user instructions, which can easily lead to flashing failures, this application adds confirmation of the flashing result. By using the current version information of the target ECU and the version information to be flashed, it determines which flashing method is suitable for the target ECU. Then, based on the flashing result and / or user instructions, it controls the data flashing device to flash the target ECU, ensuring a more reliable flashing control process and solving the problem of poor flashing reliability caused by existing technologies that only execute ECU flashing based on user instructions.

[0062] The data flashing device described in this application includes a display interface. Before controlling the data flashing device to flash the data to be flashed to a predetermined area of ​​the target ECU according to the flashing result and / or user instructions, the device further includes a second control unit and an instruction unit. The second control unit is used to control the display interface to display selection indicators, including an indicator for selecting to generate the first instruction and an indicator for selecting to generate the second instruction. The instruction unit is used to generate the user instruction in response to a first predetermined operation acting on the selection indicator.

[0063] More specifically, the first control unit of this application includes a first control module and a second control module, wherein the first control module is used to control the data writing device to write the data to be written to the entire area when the writing result indicates that data writing is performed on the entire area; the second control module is used to control the data writing device to execute the user instruction to write the data to be written to the predetermined area when the writing result indicates that data writing is performed on the data area.

[0064] It should be noted that the first control unit of this application further includes a third control module and a fourth control module. The third control module is used to control the data writing device to write the data to be written to the data area when the data writing result indicates that data writing is performed on the data area. The fourth control module is used to control the data writing device to write the data to be written to the entire area when the data writing result indicates that data writing is performed on the entire area.

[0065] In an optional embodiment, the above-mentioned device further includes an acquisition unit, which is used to acquire data writing permission for the entire area before controlling the data writing device to write the data to be written to a predetermined area in the target ECU according to the writing result and / or user instructions. The data writing permission is the permission to modify the data in the entire area.

[0066] More specifically, the aforementioned device of this application includes a third control unit and a determining unit. The third control unit is used to control the data flashing device to display a flashing start indicator when the data to be flashed is received, before controlling the data flashing device to flash the data to be flashed to a predetermined area of ​​the target ECU according to the flashing result and / or user instructions. The determining unit is used to determine the predetermined version information and the current version information according to the data to be flashed and the target ECU in response to a second predetermined operation acting on the flashing start indicator.

[0067] Example 3

[0068] According to an embodiment of this application, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein, when the program is run by a processor, a control method is provided to control the device where the computer-readable storage medium is located to execute the data writing device of the ECU.

[0069] Step S101: Receive the data to be flashed, which includes the predefined version information;

[0070] Step S102: Based on the flashing result and / or user instruction, control the data flashing device to flash the data to be flashed to a predetermined area of ​​the target ECU. The predetermined area is either the entire area or a data area. The entire area includes the data area and the program code area. The flashing result is determined based on the current version information and the predetermined version information in the target ECU. If the current version information and the predetermined version information are consistent, the flashing result indicates that the data area is flashed. If the current version information and the predetermined version information are inconsistent, the flashing result indicates that the entire area is flashed. The user instruction is either a first instruction to flash the data area or a second instruction to flash the entire area.

[0071] Example 4

[0072] This invention provides an ECU flashing system, including an ECU data flashing device and a control device for the data flashing device. The control device for the data flashing device includes one or more processors, a memory, and one or more programs. The one or more programs are stored in the memory and configured to be executed by the one or more processors. The one or more programs include methods for performing any of the above-described methods.

[0073] The ECU flashing system of this application includes an ECU data flashing device and a control device for the data flashing device. The control device includes one or more processors, a memory, and one or more programs. These programs include a control method for executing any of the ECU data flashing devices. First, it receives data to be flashed, including predetermined version information. Then, based on the flashing result and / or user instructions, it controls the data flashing device to flash the data to be flashed to the entire area or a data area of ​​the target ECU. Wherein, if the current version information matches the predetermined version information, the flashing result indicates that the data area is flashed; if the current version information does not match the predetermined version information, the flashing result indicates that the entire area is flashed. The user instructions are either a first instruction to flash the data area or a second instruction to flash the entire area. Compared to existing technologies where data flashing devices only execute ECU flashing operations based on user instructions, which can easily lead to flashing failures, this application adds confirmation of the flashing result. By using the current version information of the target ECU and the version information to be flashed, it determines which flashing method is suitable for the target ECU. Then, based on the flashing result and / or user instructions, it controls the data flashing device to flash the target ECU, ensuring a more reliable flashing control process and solving the problem of poor flashing reliability caused by existing technologies that only execute ECU flashing based on user instructions.

[0074] The devices mentioned in this article can be servers, PCs, tablets, mobile phones, etc.

[0075] Example 5

[0076] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having at least the following method steps:

[0077] Step S101: Receive the data to be flashed, which includes the predetermined version information;

[0078] Step S102: Based on the flashing result and / or user instruction, control the data flashing device to flash the data to be flashed to a predetermined area of ​​the target ECU. The predetermined area is either the entire area or a data area. The entire area includes the data area and the program code area. The flashing result is determined based on the current version information and the predetermined version information in the target ECU. If the current version information and the predetermined version information are consistent, the flashing result indicates that the data area is flashed. If the current version information and the predetermined version information are inconsistent, the flashing result indicates that the entire area is flashed. The user instruction is either a first instruction to flash the data area or a second instruction to flash the entire area.

[0079] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0080] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0081] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0082] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0083] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0084] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0085] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0086] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0087] As can be seen from the above description, the embodiments of this application achieve the following technical effects:

[0088] 1) In the control method of the ECU data flashing device of this application, firstly, data to be flashed including predetermined version information is received, and then, according to the flashing result and / or user instruction, the data flashing device is controlled to flash the data to be flashed to the entire area or data area of ​​the target ECU. Wherein, if the current version information is consistent with the predetermined version information, the flashing result indicates that the data area is flashed; if the current version information is inconsistent with the predetermined version information, the flashing result indicates that the entire area is flashed. The user instruction is a first instruction to flash the data area or a second instruction to flash the entire area. Compared to existing technologies where data flashing devices only execute ECU flashing operations based on user instructions, which can easily lead to flashing failures, this application adds confirmation of the flashing result. By using the current version information of the target ECU and the version information to be flashed, it determines which flashing method is suitable for the target ECU. Then, based on the flashing result and / or user instructions, it controls the data flashing device to flash the target ECU, ensuring a more reliable flashing control process and solving the problem of poor flashing reliability caused by existing technologies that only execute ECU flashing based on user instructions.

[0089] 2) In the control device of the ECU data flashing device of this application, the receiving unit receives the data to be flashed, including predetermined version information, and the first control unit controls the data flashing device to flash the data to be flashed to the entire area or data area of ​​the target ECU according to the flashing result and / or user instruction. Wherein, if the current version information is consistent with the predetermined version information, the flashing result indicates that the data area is flashed; if the current version information is inconsistent with the predetermined version information, the flashing result indicates that the entire area is flashed. The user instruction is a first instruction to flash the data area or a second instruction to flash the entire area. Compared to existing technologies where data flashing devices only execute ECU flashing operations based on user instructions, which can easily lead to flashing failures, this application adds confirmation of the flashing result. By using the current version information of the target ECU and the version information to be flashed, it determines which flashing method is suitable for the target ECU. Then, based on the flashing result and / or user instructions, it controls the data flashing device to flash the target ECU, ensuring a more reliable flashing control process and solving the problem of poor flashing reliability caused by existing technologies that only execute ECU flashing based on user instructions.

[0090] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A control method for an ECU data flashing device, characterized in that, include: Receive data to be flashed, the data to be flashed includes predetermined version information; Based on the flashing results and user instructions, the data flashing device is controlled to flash the data to be flashed to a predetermined area of ​​the target ECU. The predetermined area can be the entire area or a data area, and the entire area includes the data area and the program code area. The flashing result is determined based on the current version information and the predetermined version information in the target ECU. When the current version information is consistent with the predetermined version information, the flashing result indicates that data is flashed in the data area. When the current version information is inconsistent with the predetermined version information, the flashing result indicates that data is flashed in the entire area. The user instruction is a first instruction to flash the data area or a second instruction to flash the entire area. Based on the flashing results and user instructions, the data flashing device is controlled to flash the data to be flashed to a predetermined area of ​​the target ECU, including: When the writing result indicates that data is being written to the entire area, the data writing device is controlled to write the data to be written to the entire area. When the flashing result indicates that data has been flashed in the data area, the data flashing device is controlled to execute the user instruction to flash the data to be flashed to the predetermined area. In the case that the user instruction is a first instruction, the data area of ​​the target ECU is flashed. In the case that the user instruction is a second instruction, the entire area of ​​the target ECU is flashed. The data flashing device includes a display interface. Before controlling the data flashing device to flash the data to be flashed to a predetermined area of ​​the target ECU according to the flashing result and user instructions, the method includes: Upon receiving the data to be written, control the display interface to show a write start indicator; In response to a second predetermined operation acting on the flashing start identifier, the predetermined version information and the current version information are determined based on the data to be flashed and the target ECU.

2. The method according to claim 1, characterized in that, The data flashing device includes a display interface. Before controlling the data flashing device to flash the data to be flashed to a predetermined area of ​​the target ECU according to the flashing result and user instructions, the method further includes: The display interface is controlled to display selection indicators, including an indicator for selecting to generate the first instruction and an indicator for selecting to generate the second instruction; The user instruction is generated in response to a first predetermined operation performed on the selection identifier.

3. The method according to claim 1 or 2, characterized in that, Before controlling the data flashing device to flash the data to be flashed to a predetermined area of ​​the target ECU according to the flashing results and user instructions, the method further includes: Obtain data write permission for the entire region, where data write permission is the permission to modify the data in the entire region.

4. A control device for an ECU data flashing and writing equipment, characterized in that, include: A receiving unit is used to receive data to be flashed, the data to be flashed including predetermined version information; The first control unit is configured to control the data flashing device to flash the data to be flashed to a predetermined area of ​​the target ECU according to the flashing result and user instructions. The predetermined area can be the entire area or a data area, and the entire area includes the data area and the program code area. The flashing result is determined based on the current version information and the predetermined version information in the target ECU. When the current version information is consistent with the predetermined version information, the flashing result indicates that data is flashed in the data area. When the current version information is inconsistent with the predetermined version information, the flashing result indicates that data is flashed in the entire area. The user instruction is a first instruction to flash the data area or a second instruction to flash the entire area. The first control unit includes: The first control module is used to control the data writing device to write the data to be written to the entire area when the writing result characterizes the data writing to the entire area. The second control module is used to control the data writing device to execute the user instruction to write the data to be written to the predetermined area when the writing result indicates that the data area has been written. In this case, when the user instruction is a first instruction, the module controls the data area of ​​the target ECU to be written, and when the user instruction is a second instruction, the module controls the entire area of ​​the target ECU to be written. The data writing device includes a display interface, and the device further includes: The third control unit is used to control the display interface to display a flashing start indicator when it receives the data to be flashed, before controlling the data flashing device to flash the data to be flashed to a predetermined area of ​​the target ECU according to the flashing result and user instructions. A determining unit is configured to, in response to a second predetermined operation acting on the flashing start identifier, determine the predetermined version information and the current version information based on the data to be flashed and the target ECU.

5. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein when the program is run by a processor, it controls the device in which the computer-readable storage medium resides to perform the method according to any one of claims 1 to 3.

6. A processor, characterized in that, The processor is used to run a program, wherein the program executes the method according to any one of claims 1 to 3 when it runs.

7. An ECU flashing system, characterized in that, include: ECU data flashing / writing equipment; The control device of the data writing device includes one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include methods for performing any one of claims 1 to 3.