CN115291924A - ECU (electronic control Unit) flashing method, device and equipment and storage medium - Google Patents

ECU (electronic control Unit) flashing method, device and equipment and storage medium Download PDF

Info

Publication number
CN115291924A
CN115291924A CN202210937494.0A CN202210937494A CN115291924A CN 115291924 A CN115291924 A CN 115291924A CN 202210937494 A CN202210937494 A CN 202210937494A CN 115291924 A CN115291924 A CN 115291924A
Authority
CN
China
Prior art keywords
target
data
ecu
flash
flashing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210937494.0A
Other languages
Chinese (zh)
Inventor
刘新
官晓进
郭兴寿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Launch Software Co Ltd
Original Assignee
Shenzhen Launch Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Launch Software Co Ltd filed Critical Shenzhen Launch Software Co Ltd
Priority to CN202210937494.0A priority Critical patent/CN115291924A/en
Publication of CN115291924A publication Critical patent/CN115291924A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/12Protecting executable software
    • G06F21/121Restricting unauthorised execution of programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Multimedia (AREA)
  • Technology Law (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application discloses an ECU flashing method. The method in the embodiment of the application comprises the following steps: identifying target category data of a target ECU; downloading target flash data according to the target category data; and calling a flash program stored in the mobile equipment, and flashing the target flash data into the target ECU. According to the ECU flash method, the target type of the ECU is identified, flash data are downloaded according to the target type, and finally, the flash data are deleted after the flash data are flashed to the ECU, so that the flash data are directly flashed to the ECU. The slow interaction between the equipment and the ECU is not needed, and the ECU writing efficiency is improved.

Description

ECU (electronic control Unit) flashing method, device and equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of automobiles, in particular to an ECU (electronic control unit) flashing method, device, equipment and storage medium.
Background
An Electronic Control Unit (ECU), or a computer control module, commonly called a driving computer, a vehicle-mounted computer, etc. The ECU is one of the core electronic components of modern automobiles, is a special microcomputer controller for the automobiles, is an important component of the automobiles, controls the normal operation of the engines and ensures the normal operation of the automobiles. When the program in the ECU needs to be updated during the maintenance of the automobile, or when the parameters of part of the engine have problems and cannot be modified, the program stored in the ECU needs to be rewritten.
The existing common ECU flashing method is interactive with the ECU through the diagnostic equipment, firstly, flashing data needs to be downloaded from a server to the diagnostic equipment, then the diagnostic equipment uses the flashing data to carry out one-to-one communication with the ECU, and the ECU can normally respond to all commands sent by the diagnostic equipment to successfully flash, so that the flashing efficiency is low, and the user experience is poor.
Disclosure of Invention
The embodiment of the application provides an ECU (electronic control unit) flashing method, device, equipment and storage medium, which is used for identifying target type data of a target ECU (electronic control unit), downloading the target flashing data according to the target type data, calling a flashing program stored in a movable device, and flashing the target flashing data into the target ECU so as to directly flash the flashing data into the ECU. The slow interaction between the equipment and the ECU is not needed, and the ECU writing efficiency is improved.
In a first aspect, an embodiment of the present application provides an ECU flashing method applied to a mobile device, where the method includes:
identifying target category data of a target ECU;
downloading target flash data according to the target category data;
and calling a flash program stored in the mobile equipment, and flashing the target flash data into the target ECU.
Optionally, the target category data of the recognition target ECU includes:
and when the mobile equipment establishes communication connection with the target ECU, reading the product identification code of the target ECU according to a pre-configured identification file so as to identify the target category data.
Optionally, the step of calling a flash program stored in the removable device to flash the target flash data into the target ECU includes:
and when the failure of the target flashing data to the target ECU is detected, calling an exit instruction in the flashing program, and stopping flashing the target flashing data to the target ECU.
Optionally, before the stopping the flashing of the target flashing data to the target ECU, the method further comprises:
and deleting the target flash data which is flashed.
Optionally, after the stopping the flashing of the target flash data to the target ECU, the method further includes:
checking whether the identification file and the target flash data are correct or not;
and if so, executing the flash program stored in the mobile equipment and flashing the target flash data into the target ECU.
Optionally, the downloading the target write-through data according to the target category data includes:
downloading ciphertext data of the target flash data from a server according to the target category data;
decrypting the ciphertext data according to the identification file to obtain plaintext data of the target flash data;
and when the mobile device establishes communication connection with the target ECU, guiding the target ECU according to the flash program so that the target ECU flashes plaintext data of the target flash data.
Optionally, after the invoking a flash program stored in the removable device and the target flash data is flashed into the target ECU, the method further includes:
and when the target flash data is successfully flashed to the target ECU, deleting the target flash data.
A second aspect of the embodiments of the present application provides an ECU flashing device applied to a mobile device, where the system includes:
the identification module is used for identifying target category data of the target ECU;
the downloading module is used for downloading the target flash data according to the target category data;
and the calling module is used for calling the flash program stored in the mobile equipment and flashing the target flash data into the target ECU.
Optionally, the system further comprises: a reading module;
the reading module is used for reading the product identification code of the target ECU according to a pre-configured identification file to identify the target category data when the mobile equipment establishes communication connection with the target ECU.
Alternatively, the first and second liquid crystal display panels may be,
the calling module is specifically configured to call an exit instruction in the flash program to stop flashing the target flash data to the target ECU when it is detected that the target flash data is failed to be flashed to the target ECU.
Optionally, the system further comprises: a deletion module;
and the deleting module is used for deleting the target flash data which is flash.
Optionally, the system further comprises: a checking module and an executing module;
the checking module is used for checking whether the identification file and the target flash data are correct or not;
and the execution module is used for executing the step of calling the flash program stored in the movable equipment and flashing the target flash data into the target ECU when the identification file and the target flash data are correct.
Optionally, the system further comprises: a decryption module and a guiding module;
the downloading module is specifically used for downloading ciphertext data of the target flash data from a server according to the target type data;
the decryption module is used for decrypting the ciphertext data according to the identification file to obtain plaintext data of the target flash data;
the guiding module is used for guiding the target ECU according to the flash program when the mobile equipment is in communication connection with the target ECU, so that the target ECU flashes the plaintext data of the target flash data.
Alternatively,
the deleting module is further configured to delete the target write data when the target write data is successfully written to the target ECU.
A second aspect of embodiments of the present application provides a method for performing the method of the first aspect.
A third aspect of embodiments of the present application provides a mobile device, including:
the system comprises a central processing unit, a memory, an input/output interface, a wired or wireless network interface and a power supply;
the memory is a transient memory or a persistent memory;
the central processor is configured to communicate with the memory and execute the operations of the instructions in the memory to perform the method of the first aspect.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium includes instructions that, when executed on a computer, cause the computer to perform the method according to the first aspect.
A fifth aspect of embodiments of the present application provides a computer program product comprising a computer program or instructions, which when executed by a processor, implements the method of the first aspect of the present invention.
According to the technical scheme, the embodiment of the application has the following advantages:
according to the ECU flash method provided by the embodiment of the application, the target type data of the target ECU are identified, the target flash data are downloaded according to the target type data, and finally the flash program stored in the mobile equipment is called to flash the target flash data into the target ECU. Therefore, the ECU data can be refreshed by using the mobile equipment without the diagnosis equipment, the ECU data refreshing method is convenient and fast, the ECU refreshing efficiency is improved, and the experience of a user is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art according to the drawings.
FIG. 1 is a schematic diagram of an architecture of an ECU flashing system disclosed in an embodiment of the present application;
FIG. 2 is a schematic flow chart illustrating an ECU flashing method according to an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart illustrating another ECU flashing method disclosed in the embodiments of the present application;
FIG. 4 is a schematic structural diagram of an ECU flashing device disclosed in the embodiments of the present application;
fig. 5 is a schematic structural diagram of a mobile device according to an embodiment of the present application.
Detailed Description
The electronic control unit ECU is also called a computer control module, commonly called a driving computer, a vehicle-mounted computer, etc. An ECU can be said to be one of the core electronic components of a modern automobile. For example, an ECU of a car corresponds to a human brain and a CPU of a computer. The ECU is the cerebral nerve center system of the automobile. Typically under the dashboard of the driver's seat or near the wiper linkage. The ECU is used for monitoring various input data (such as braking, gear shifting and the like) and various running states (acceleration, slipping, oil consumption and the like) of the automobile at any time, calculating information sent by various sensors according to a pre-designed program, and sending various parameters to relevant execution mechanisms after processing so as to execute various preset control functions. For example, the ECU determines the optimum fuel injection amount after analyzing, budgeting, processing and storing according to the signals transmitted from the automobile sensors, and controls the fuel injection amount of the fuel injector, so that the automobile can always maintain the optimum air-fuel ratio, thereby improving the economy and the dynamic property and reducing the emission of tail gas. The initial ECU is used to control ignition and fuel injection at the beginning of the engine, and with the improvement of electronic automation of cars, the control range of the ECU is increasing, such as light control, airbag control, fuel heating control, exhaust control, brake control, exhaust Gas Recirculation (EGR), and the like. When the program in the ECU needs to be updated during the maintenance of the automobile, or when the parameters of part of the engine have problems and cannot be modified, the program stored in the ECU needs to be rewritten.
The current common ECU flash method is through the diagnostic device interacting with the vehicle ECU. The flash data is firstly downloaded from the network to the device, and then the diagnosis device divides the flash data into specific data so as to carry out one-to-one communication with the ECU. However, the 4-bit key of the vehicle is needed during communication, and the ECU can normally respond to all commands sent by the diagnostic equipment to successfully write. Such a single data interaction manner of question-and-answer often causes some problems.
For example, 1, network instability leads to data interaction errors; 2. ECU abnormal response causes data to be written in; 3. long interaction time (download data and ECU response time, etc.); 4. a key entry error results in a flush failure and ECU deadlock.
Therefore, the conventional ECU flash is not fast and convenient enough, flash data needs to be downloaded to diagnostic equipment, and then single command interaction is carried out through the equipment and the ECU. If network fluctuation occurs and the flash data is large, the waiting time is long. While also requiring the ECU to respond exactly to each piece of data. It should be noted that, because the number of the flash data is large, at most, the current communication device only supports the interactive command with the length of 0xFFF, and if the flash data exceeds the length, the communication device needs to be divided into a plurality of commands.
Therefore, the embodiment of the application provides an ECU flashing method, and the flashing data is directly flashed to the ECU through the guidance of a movable device. The slow interaction between the diagnostic equipment and the ECU is not needed any more, and the ECU writing efficiency is improved.
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
Referring to fig. 1, fig. 1 is a schematic diagram of an architecture of an ECU flashing system disclosed in the embodiment of the present application. Including a server 101, a removable device 102, and an electronic control unit 103. Wherein the server 101 is connected to a removable device 102 and the removable device 102 is connected to an electronic control unit 103.
The server 101 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud database, a cloud service, cloud computing, a cloud function, cloud storage, a network service, cloud communication, middleware service, domain name service, security service, and a big data and artificial intelligence platform.
The electronic control unit 103 flashing method provided by the embodiment of the application can be applied to the application environment shown in fig. 1. Wherein the removable device 102 communicates with the server 101 over a network. The data storage system may store data that the server 101 needs to process. The data storage system may be integrated on the server 101, or may be placed on the cloud or other network server. For example, in the embodiment of the present application, the data storage system may store the flash data that the electronic control unit 103 needs to flash. The removable device 102 may be equipped with a file program that can direct the vehicle electronic control unit 103 to flash. At the same time, the removable device 102 can also place a profile ini that identifies the specific category of the electronic control unit 103 when the removable device 102 is connected to the electronic control unit 103.
The server 101 may be implemented as a stand-alone server or a server cluster composed of a plurality of servers. The removable device 102 may be a mobile phone, a computer, a usb disk, etc., and the specific entity of the removable device 102 is not limited herein. The electronic control unit 103 is a vehicle ECU. Specifically, the electronic control unit 103 may be an engine Electronic Control Module (ECM), a Body Control Module (BCM), an Instrument Panel (IPC), or the like, and a specific entity of the electronic control unit 103 is not limited herein.
It should be added that, in the embodiment of the present application, for convenience of describing the removable device 102, the following description of the removable device 102 describes a usb flash disk as a specific entity. It should be understood that the usb flash drive is used for convenience of description only, but is not limited to a specific physical device of the removable device 102, and accordingly, the removable device 102 only needs to be provided with a boot file program.
It should be further added that the number of the mobile devices 102 is not limited in the embodiment of the present application, that is, the server 101 may be simultaneously in communication connection with a plurality of mobile devices 102 through a network, and correspondingly, the mobile devices 102 may also be in communication connection with the electronic control unit 103, which is not described again in the following.
It should be understood that, for convenience of description, the server 101, the mobile device 102, and the electronic control unit 103 are not described in detail in the following, and the functions of the server 101, the mobile device 102, and the electronic control unit 103 are also not described in detail in the following. However, it should be noted that, for convenience of description and understanding, the description thereof is not repeated.
Referring to fig. 2, fig. 2 is a schematic flowchart of an ECU flashing method applied to a mobile device, including steps 201 to 203, according to an embodiment of the present application.
201. Target category data of the target ECU is identified.
As can be seen from the description of fig. 1 for the removable device, in this embodiment, the removable device may be a plurality of different devices, and for convenience of description, the description of the removable device in this embodiment is mainly described in terms of a usb disk, and is not described again in the following.
Firstly, a specific U disk is needed, and it should be noted that a removable device can be used, for example, the U disk is convenient. Correspondingly, the removable device may be provided with a boot file program.
When the USB flash disk is prepared, a configuration file is placed in the USB flash disk. When the USB flash disk is connected with the ECU through the USB interface of the USB flash disk, the configuration file in the USB flash disk can determine that the ECU is a specific type of the vehicle ECU. It should be noted that the specific category described in this embodiment is the target category data described in the above section.
202. And downloading the target flash data according to the target category data.
When the specific type of the vehicle ECU is identified, namely after the target type data of the vehicle ECU is acquired, the corresponding flash data can be downloaded from the server according to the target type data.
Specifically, the required target flash data can be downloaded to the server according to the target category data, that is, which ECU needs to be flashed to download the corresponding flash data.
For example, in step 201, if the identified ECU is an ECM, the server is connected to the usb disk, and then the flash data corresponding to the ECM is downloaded from the server. Rather than downloading flash data for other ECU classes. It should be noted that the present embodiment does not limit the specific category of the ECU, and the category included in the ECU may be BCM, IPC, or the like.
Further, each U disk downloads only the flash data corresponding to one vehicle ECU class.
203. And calling a flash program stored in the removable device, and flashing the target flash data into the target ECU.
After the target flash data is downloaded from the USB flash disk, the USB flash disk is connected with the vehicle ECU, and specifically, the USB flash disk can be directly inserted into a USB interface of a vehicle. Therefore, the flash disk can call the flash program stored in the flash disk, and correspondingly, the internal program is activated, so that the target flash data is flashed to the ECU.
Furthermore, after the brushing data is successfully brushed, a prompt tone can be sent out, so that the user is reminded of finishing brushing.
According to the ECU flashing method provided by the embodiment, the target type data of the target ECU are identified, the target flashing data are downloaded according to the target type data, and finally the flashing program stored in the mobile equipment is called, so that the target flashing data are flashed into the target ECU. Therefore, the ECU data can be refreshed by using the mobile equipment without the diagnosis equipment, the ECU data refreshing method is convenient and fast, the ECU refreshing efficiency is improved, and the experience of a user is improved.
The following describes in detail a method for flashing an ECU according to an embodiment of the present application. Referring to fig. 3, fig. 3 is a schematic flow chart of another ECU flashing method disclosed in the embodiment of the present application. Including step 301-step 308. It should be noted that, in the present embodiment, for convenience of description, only one of the ECUs is described, and correspondingly, the mentioned ECU may be understood as a target ECU, which is not described again in the following.
301. When the mobile device establishes communication connection with the target ECU, the product identification code of the target ECU is read according to the pre-configured identification file so as to identify the target category data.
As can be known from the description of fig. 1 for the removable device, in this embodiment, the removable device may be a variety of different devices, and for convenience of description, the description for the removable device in this embodiment is mainly described in a usb flash disk, and is not described again in the following.
Firstly, a specific U disk is needed, and it should be noted that any removable device can be used, and the U disk is convenient to use for example. Correspondingly, the mobile device is provided with a boot file program.
Specifically, a program capable of guiding the vehicle ECU to write a file in a flash mode is recorded in the USB flash disk. The program for guiding the vehicle ECU to write the file in a flashing manner is the writing program described in the above section, and the program is similar to the EXE file, and as long as the program is inserted into the USB interface of the ECU, the corresponding program can be automatically loaded, so that the corresponding program instruction is executed.
And after the burning and programming program is finished, placing a configuration file ini into the U disk. When the USB flash disk is connected with the ECU through the USB interface of the USB flash disk, the configuration file in the USB flash disk can determine that the ECU is the specific type of the vehicle ECU, namely determine which ECU writes the vehicle. It should be noted that the specific category described in this embodiment is the target category data described in the above section.
Since the ini file is generally an initialization file and a plurality of ECUs exist in the vehicle, the ini file needs to be used to distinguish the ECUs. It should be further noted that, when configuring the ini, the identification files of all the vehicle ECU categories may be configured into the ini file, such as the flash engine, and the configuration file configures the ECM, the body BCM, the meter IPC, and the like.
Further, when the profile ini is configured, only one identification file of the vehicle ECU type may be configured. In other words, the usb flash drive may become a removable device dedicated to one type of vehicle ECU.
Therefore, after the USB flash disk configuration identification file is completed, the USB flash disk is inserted into the USB interface of the vehicle ECU, and therefore the mobile device is in communication connection with the vehicle ECU. At this time, the configured identification file in the usb flash disk, specifically, the configured ini file, can read the identification information of the ECU, so as to determine the specific category of the vehicle ECU.
Furthermore, after the configured ini file is operated, the product identification code of the ECU can be read, so that the product identification code is compared with the configuration file in the ini file, and finally the specific type of the vehicle ECU can be identified.
302. And downloading the ciphertext data of the target flash data from the server according to the target category data.
After the specific types of the vehicle ECUs are identified, the required flash data can be downloaded from the vehicle information to the website, and which ECU needs to be flashed and which is downloaded. It should be noted that the vehicle information is the target category data described in the above section, that is, the specific category of the vehicle ECU.
Specifically, after the specific category of the vehicle ECU is identified, the target rewriting data is downloaded from a website in the server (the website may be a website operated by a manufacturer of the vehicle ECU, or a website operated by another company, which is not limited in this embodiment, and only the rewriting data corresponding to the ECU exists on the website).
For example, in step 301, when the recognized ECU is an ECM, the server is connected to the usb disk, and then the flash data corresponding to the ECM is downloaded from the server. Rather than downloading other ECU classes of flash data. It should be noted that the present embodiment does not limit the specific type of the ECU, and the type included in the ECU may be BCM, IPC, or the like.
Further, each U disk downloads only the flash data corresponding to one vehicle ECU class.
It should be added that, because of the importance of confidentiality, the data on the web is encrypted for security, and the flash data on the web site generally exists in the form of a ciphertext. Therefore, the flash data downloaded from the server according to the specific category of the vehicle ECU is ciphertext data corresponding to the target flash data.
303. And decrypting the ciphertext data according to the identification file to obtain the plaintext data of the target flash data.
In the process of downloading the target flash data, the configured ini file can decrypt the downloaded ciphertext data, so that the ciphertext data is decrypted into plaintext data. At this time, plaintext data of the target flash data can be acquired.
It should be noted that the target write data at this time is a binary file that can be recognized by the vehicle ECU.
Further, the configured ini file may be decrypted only for one vehicle ECU class of flush data. In other words, the usb flash drive may become a removable device dedicated to one type of vehicle ECU.
304. When the removable device establishes a communication connection with the target ECU, the target ECU is booted according to the flash program so that the target ECU flashes plaintext data of the target flash data.
After the target flash data is downloaded from the USB flash disk, the USB flash disk is connected with the vehicle ECU, and specifically, the USB flash disk can be directly inserted into a USB interface of a vehicle. The U disk activates an internal flash program, so that flash data is flashed into the ECU.
Specifically, after downloading the target brushing data is completed, the USB flash disk is directly inserted into a USB interface of the vehicle ECU, and the USB flash disk starts a brushing program, so that the USB flash disk is automatically guided to execute a brushing instruction, and plaintext data of the target brushing data is brushed into the vehicle ECU.
305. And calling a flash program stored in the removable device, and flashing the target flash data into the target ECU.
After the target flash data is downloaded from the USB flash disk, the USB flash disk is connected with the vehicle ECU, and specifically, the USB flash disk can be directly inserted into a USB interface of a vehicle. Therefore, the flash disk can call the flash program stored in the flash disk, and correspondingly, the internal program is activated, so that the target flash data is flashed to the ECU.
Specifically, plaintext data of the target flash data may be flashed into the target ECU.
Further, if it is detected that the target data flash to the target ECU fails, step 306 is executed.
If it is detected that the target data flashing to the target ECU is successful, step 308 is executed.
306. And when failure of the target flashing data to the target ECU is detected, calling an exit instruction in the flashing program, deleting the flashed target flashing data, and stopping flashing the target flashing data to the target ECU.
When the target data is in the process of being flashed to the vehicle ECU, the flashing fails, that is, when a flashing error occurs midway, the boot program may need to be forcibly exited. Note that the boot program is the flash program described in the supplement.
When the flash fails, the normal exit should be performed first. Specifically, when the flash fails, the flash program in the usb disk may call an automatic exit program in the flash program. It should be noted that the automatic exit program is the exit instruction described in the above section.
When the corresponding exit instruction is executed, the flash disk also executes the target flash data which is flash written in the ECU in the flash program, and it is understood that only a part of the target flash data exists in the vehicle ECU at the moment, and the target flash data of the part is deleted by the flash disk at the moment.
Further, if the copying of the data for 3 consecutive times to the vehicle ECU is not successful, it is determined that the flashing has failed, and the automatic exit routine is executed. It should be added that, in the present embodiment, after 3 consecutive times of copying of the flash data to the vehicle ECU fail, 3 consecutive times of the automatic exit program are executed, which is only one of the embodiments that can be implemented specifically, but the automatic exit program is executed without indicating that 3 consecutive times of flash fails, and may also be executed 4 consecutive times or 5 consecutive times, and the like, and the present embodiment does not limit this.
Further, the U disk can be directly pulled out, so that forced exit is realized.
When the flash data of the vehicle ECU which is already flashed is cleared, the USB flash disk does not execute the corresponding flash program any more. Thus, the U disk stops flashing the target flash data to the ECU.
307. It is checked whether the identification file and the target write-through data are correct.
If the flash fails and the target flash data which has been flashed is deleted, the flash needs to be flushed to perform the flash. Specifically, it is necessary to check whether the ini configuration file in the identification file is correct or not, and whether the downloaded target write data is consistent with the write data on the server or not.
If the identification file and the target flush data are correct, step 305 is executed again.
If any one of the identification file and the target flash data has an error or data error, the identification file needs to be reconfigured or the target flash data needs to be downloaded again. That is, step 301 is performed to reconfigure the identification file, or step 302 is performed to re-download the target flash data.
Specifically, if the identification file is incorrect, the ini profile is deleted, and the ini profile is reconfigured, so that the flush data of the specific ECU can be downloaded.
Furthermore, when the identification file and the target flashing data are correct, namely, the identification file and the target flashing data are confirmed to be correct, the target ECU can be flashed again.
308. And when the target flashing data is successfully flashed to the target ECU, deleting the target flashing data.
When the target flash data is flashed into the target ECU and the flash is successfully flashed, the USB flash disk deletes the stored flash data.
Furthermore, after the flash is successful, a prompt tone is given out, so that the user is reminded of finishing the flash. It is added that the instrument interface of the vehicle can also prompt the successful message of the flash. It should be understood that the prompt information after the completion of the flash is not limited in this embodiment, and is not further described in the following.
According to the ECU flashing method provided by the embodiment, under the condition that no diagnosis equipment is available, ECU data can be flashed by using specific movable equipment, convenience and rapidness are achieved, and ECU flashing efficiency is improved. Meanwhile, when the data flashing fails, the data flashing can be downloaded again, and the realizability of the scheme is improved.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not limited to being performed in the exact order illustrated and, unless explicitly stated herein, may be performed in other orders. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
If the scenario involves sensitive information (e.g., user information, business information), it should be noted that the collection, use, and handling of the sensitive information need to comply with relevant national and regional laws and regulations and standards, and need to be performed under the permission or consent of the corresponding subject (e.g., user or business, etc.).
Referring to fig. 4, fig. 4 is a diagram illustrating an ECU flashing apparatus applied to a mobile device according to an embodiment of the disclosure. The ECU's flash system includes:
an identification module 401 for identifying target category data of a target ECU;
a downloading module 402, configured to download the target write data according to the target category data;
and a calling module 403, configured to call a flash program stored in the removable device, and flash the target flash data into the target ECU.
Illustratively, the system further comprises: a reading module 404;
and a reading module 404, configured to read a product identification code of the target ECU according to a pre-configured identification file to identify the target category data when the removable device establishes a communication connection with the target ECU.
By way of example, it is possible to provide,
the calling module 403 is specifically configured to, when it is detected that the target data flashing to the target ECU fails, call an exit instruction in the flashing program, and stop flashing the target data flashing to the target ECU.
Illustratively, the system further comprises: a deletion module 405;
and a deleting module 405, configured to delete the target flush data that has been flushed.
Illustratively, the system further comprises: a checking module 406 and an executing module 407;
a checking module 406, configured to check whether the identification file and the target write data are correct;
and the execution module 407 is configured to, when the identification file and the target flush data are correct, execute a step of calling a flush program stored in the removable device and flushing the target flush data into the target ECU.
Illustratively, the system further comprises: a decryption module 408 and a boot module 409;
a downloading module 402, configured to specifically download ciphertext data of the target write-through data from the server according to the target category data;
the decryption module 408 is configured to decrypt the ciphertext data according to the identification file to obtain plaintext data of the target write data;
and a guiding module 409, configured to guide the target ECU according to the flash program when the removable device establishes a communication connection with the target ECU, so that the target ECU flashes plaintext data of the target flash data.
In an exemplary manner, the first and second electrodes are,
the deleting module 405 is further configured to delete the target flash data when the target flash data is successfully flashed to the target ECU.
Referring to fig. 5, a schematic structural diagram of a mobile device according to an embodiment of the present disclosure is shown. The method comprises the following steps:
a central processing unit 501, a memory 505, an input/output interface 504, a wired or wireless network interface 503 and a power supply 502;
memory 505 is a transient storage memory or a persistent storage memory;
the central processor 501 is configured to communicate with the memory 505 and execute the instructions in the memory 505 to perform the methods described in the embodiments of fig. 2 or fig. 3.
The chip system according to an embodiment of the present application is further provided, where the chip system includes at least one processor and a communication interface, where the communication interface and the at least one processor are interconnected by a line, and the at least one processor is configured to execute a computer program or instructions to perform the method in the foregoing embodiment shown in fig. 2 or fig. 3.
The present application also provides a computer program product, which includes a computer program or instructions, and when the computer program or instructions is executed by a processor, the computer program or instructions implement the method in the foregoing embodiments shown in fig. 2 or fig. 3.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application, which are essential or part of the technical solutions contributing to the prior art, or all or part of the technical solutions, may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.

Claims (10)

1. An ECU flashing method, applied to a mobile device, the method comprising:
identifying target category data of a target ECU;
downloading target flash data according to the target category data;
and calling a flash program stored in the mobile equipment, and flashing the target flash data into the target ECU.
2. The method of claim 1, wherein the identifying target class data for the target ECU comprises:
and when the mobile equipment establishes communication connection with the target ECU, reading the product identification code of the target ECU according to a pre-configured identification file so as to identify the target category data.
3. The method of claim 1, wherein the step of invoking a flash program stored on the removable device to flash the target flash data into the target ECU comprises:
and when the target flash data flash to the target ECU is detected to fail, calling an exit instruction in the flash program, and stopping the flash of the target flash data to the target ECU.
4. The method of claim 3, wherein prior to the ceasing to flash the target ECU with the target flash data, the method further comprises:
and deleting the target flash data which is flashed.
5. The method according to claims 2 and 4, wherein after the stopping of the flashing of the target flash data to the target ECU, the method further comprises:
checking whether the identification file and the target flash data are correct;
and if so, executing the flash program stored in the mobile equipment and flashing the target flash data into the target ECU.
6. The method of claim 1, wherein the downloading target flash data according to the target class data comprises:
downloading ciphertext data of the target flash data from a server according to the target category data;
decrypting the ciphertext data according to the identification file to obtain plaintext data of the target flash data;
and when the mobile equipment establishes communication connection with the target ECU, guiding the target ECU according to the flash program so that the target ECU flashes the plaintext data of the target flash data.
7. The method of claim 1, wherein the invoking a flush program stored on the removable device, after flushing the target flush data to the target ECU, the method further comprises:
and when the target flashing data is successfully flashed to the target ECU, deleting the target flashing data.
8. An ECU flashing apparatus, characterized in that the apparatus comprises:
the identification module is used for identifying target category data of the target ECU;
the downloading module is used for downloading the target flash data according to the target category data;
and the calling module is used for calling the flash program stored in the movable equipment and flashing the target flash data into the target ECU.
9. A mobile device, characterized in that the device comprises:
the system comprises a central processing unit, a memory, an input/output interface, a wired or wireless network interface and a power supply;
the memory is a transient storage memory or a persistent storage memory;
the central processor is configured to communicate with the memory and execute the operations of the instructions in the memory to perform the method of any of claims 1 to 7.
10. A computer-readable storage medium comprising instructions that, when executed on a computer, cause the computer to perform the method of any one of claims 1 to 7.
CN202210937494.0A 2022-08-05 2022-08-05 ECU (electronic control Unit) flashing method, device and equipment and storage medium Pending CN115291924A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210937494.0A CN115291924A (en) 2022-08-05 2022-08-05 ECU (electronic control Unit) flashing method, device and equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210937494.0A CN115291924A (en) 2022-08-05 2022-08-05 ECU (electronic control Unit) flashing method, device and equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115291924A true CN115291924A (en) 2022-11-04

Family

ID=83827701

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210937494.0A Pending CN115291924A (en) 2022-08-05 2022-08-05 ECU (electronic control Unit) flashing method, device and equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115291924A (en)

Similar Documents

Publication Publication Date Title
CN105094901B (en) A kind of long-range method and diagnostic device of on line refreshable ECU after sale
US5712969A (en) Method for completely reprogramming an erasable, non-volatile memory
US10101992B2 (en) Telematics control unit comprising a differential update package
US10127036B2 (en) Method for OTA updating vehicle electronic control unit
JP3851042B2 (en) Computer system for automobile
US20160364225A1 (en) Centralized system for software updating vehicle components
CN107132788A (en) A kind of vehicle electronic control unit writes with a brush dipped in Chinese ink method and apparatus automatically
CN111782234A (en) Vehicle-mounted software flashing method, control device, central processing unit and automobile
CN110825403A (en) Method and system for flashing ECU (electronic control Unit) of automobile
KR102141287B1 (en) Fault injection test method and system for vehicle software based on autosar
US20090326759A1 (en) Enhancement of the functionality of series software in a control unit
US20060218340A1 (en) Data validity determining method for flash EEPROM and electronic control system
CN112000358A (en) Charging pile upgrading method and intelligent charging pile
CN112052032B (en) Brushing method and device of electronic control unit
CN115291924A (en) ECU (electronic control Unit) flashing method, device and equipment and storage medium
US20140074316A1 (en) Electronic control unit of vehicle
CN111831479A (en) Vehicle-mounted computer data recovery method and system
JP2000043654A (en) Controller for automobile
CN113419755B (en) Method and system for refreshing automobile ECU program, readable storage medium and computer equipment
JP7419287B2 (en) Vehicle program update management system and vehicle program update management method
KR20210079091A (en) Update system and method of controller for vehicle
CN108958819B (en) Starting method of multi-partition system and multi-partition system
CN111367559B (en) Refreshing method for online refreshing patch of electric control module
CN111580840A (en) Method for realizing ECU (electronic control Unit) updating based on distributed memory management
Mouzakitis et al. Advanced automated onboard vehicle diagnostics testing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination