CN114925381A - ECU data flashing method and device, electronic equipment and storage medium - Google Patents

ECU data flashing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114925381A
CN114925381A CN202210505368.8A CN202210505368A CN114925381A CN 114925381 A CN114925381 A CN 114925381A CN 202210505368 A CN202210505368 A CN 202210505368A CN 114925381 A CN114925381 A CN 114925381A
Authority
CN
China
Prior art keywords
flashed
ecu
data
data block
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
CN202210505368.8A
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.)
Weichai Power Co Ltd
Weifang Weichai Power Technology Co Ltd
Original Assignee
Weichai Power Co Ltd
Weifang Weichai Power Technology 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 Weichai Power Co Ltd, Weifang Weichai Power Technology Co Ltd filed Critical Weichai Power Co Ltd
Priority to CN202210505368.8A priority Critical patent/CN114925381A/en
Publication of CN114925381A publication Critical patent/CN114925381A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/606Protecting data by securing the transmission between two devices or processes
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses an ECU data flashing method and device, electronic equipment and a storage medium. According to the technical scheme of the embodiment of the invention, ECU data to be brushed of a vehicle is obtained from a corresponding server through a diagnosis service tool according to the engine number of the vehicle, the ECU data to be brushed is decomposed into at least one data block to be brushed according to the partition structure of the vehicle ECU and is sequentially sent to the diagnosis service tool, the diagnosis service tool is used for brushing the received data block to be brushed in sequence, and an ECU data brushing completion prompt is generated after traversing the data block to be brushed. The problems that secret leakage risks exist during ECU data flashing, safety is poor, and data flashing takes long time are solved, the diagnostic service tool can repeatedly flash a single data block, flashing time is saved, meanwhile, ECU data do not need to be completely acquired, and ECU data safety is protected.

Description

ECU data flashing method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of data flashing, in particular to an ECU data flashing method and device, electronic equipment and a storage medium.
Background
An ECU (Electronic Control Unit) is an automobile computer, and power can be increased or decreased by brushing the automobile computer. The working principle of the brushing ECU is to finely adjust the oil supply amount and the ignition time on the basis of original factory data by a method of rewriting a program.
At present, a diagnostic service tool is needed when an ECU is upgraded, ECU data is written by using the diagnostic service tool after the ECU data is obtained from a server side to a local side, the obtained local data file is encrypted but still has a risk of disclosure, meanwhile, as the ECU data is stored in a target storage space, certain requirements are required on the corresponding computer performance of the target storage space, and a crash situation may occur if the ECU data is used in a lower-end computer.
Disclosure of Invention
The invention provides an ECU data flashing method and device, electronic equipment and a storage medium, and aims to solve the problems that a secret leakage risk exists during ECU data flashing, the safety is poor, and the data flashing consumes long time.
According to an aspect of the present invention, there is provided an ECU data flashing method including:
the diagnostic service tool acquires ECU data to be written of the vehicle from a corresponding server according to the engine number of the vehicle;
decomposing the ECU data to be flashed into at least one data block to be flashed according to a partition structure of the vehicle ECU, and sequentially sending the at least one data block to be flashed to the diagnostic service tool;
and the diagnostic service tool sequentially flushes the received data blocks to be flushed, and generates an ECU data flushing completion prompt after traversing the data blocks to be flushed.
Optionally, decomposing the ECU data to be flashed into at least one data block to be flashed according to a partition structure of the vehicle ECU includes:
the server decomposes the ECU data to be flashed into at least one data block to be flashed according to a partition structure of the vehicle ECU; or the like, or a combination thereof,
and decomposing the ECU data to be flashed into at least one data block to be flashed according to a partition structure of the vehicle ECU and uploading the data block to the server.
Optionally, the flushing the received data block to be flushed by the diagnostic service tool in sequence includes:
the diagnostic service tool writes the received current data block to be written by flashing, and determines whether to receive the next data block to be written by flashing according to the result of writing the current data block to be written by flashing so as to write the next data block to be written by flashing.
Optionally, determining whether to receive a next data block to be flashed according to a result of flashing the current data block to be flashed, so as to flash the next data block to be flashed, including:
if the current data block to be refreshed is successfully refreshed, receiving the next data block to be refreshed sent by the server;
if the current data block to be refreshed fails, the current data block to be refreshed is refreshed repeatedly until the current data block to be refreshed succeeds in refreshing.
Optionally, if the current data block to be flashed is successfully flashed, receiving the next data block to be flashed sent by the server includes:
if the current data block to be refreshed is refreshed successfully, returning a successful refreshing identifier of the current data block to be refreshed;
and after receiving the successful flash identification, the server sends the next data block to be flashed to the diagnostic service tool.
Optionally, the ECU data flashing method further includes:
and when the diagnostic service tool receives the next data block to be flashed, deleting the current data block to be flashed at the same time.
Optionally, after traversing the data block to be flashed, generating an ECU data flashing completion prompt, including:
after traversing the data block to be refreshed, feeding back completion information of the data block to be refreshed to the diagnosis service tool through the server;
and the diagnostic service tool generates an ECU data flashing completion prompt according to the completion information.
According to another aspect of the present invention, there is provided an ECU data flashing device including:
the ECU data acquisition module to be flashed is used for executing a diagnostic service tool to acquire the ECU data to be flashed of the vehicle from a corresponding server according to the engine number of the vehicle;
the ECU data transmission module to be flashed is used for decomposing the ECU data to be flashed into at least one data block to be flashed according to a partition structure of the vehicle ECU, and sequentially transmitting the at least one data block to be flashed to the diagnostic service tool;
and the ECU data flashing completion prompting module is used for the diagnostic service tool to sequentially flash the received data blocks to be flashed and generate an ECU data flashing completion prompt after traversing the data blocks to be flashed.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the ECU data flashing method according to any of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the ECU data flashing method according to any one of the embodiments of the present invention when executed.
According to the technical scheme of the embodiment of the invention, ECU data to be brushed of a vehicle is obtained from a corresponding server through a diagnosis service tool according to the engine number of the vehicle, the ECU data to be brushed is decomposed into at least one data block to be brushed according to the partition structure of the vehicle ECU and is sequentially sent to the diagnosis service tool, the diagnosis service tool is used for brushing the received data block to be brushed in sequence, and an ECU data brushing completion prompt is generated after traversing the data block to be brushed. The problems that secret leakage risks exist during ECU data flashing, safety is poor, and data flashing takes long time are solved, the diagnostic service tool can repeatedly flash a single data block, flashing time is saved, meanwhile, ECU data do not need to be completely acquired, and ECU data safety is protected.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flowchart of an ECU data flashing method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an ECU data flashing method according to a second embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an ECU data flashing device according to a third embodiment of the invention;
fig. 4 is a schematic structural diagram of an electronic device implementing the ECU data flashing method according to the embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It is to be understood that the terms "current," "next," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a flowchart of an ECU data flashing method according to an embodiment of the present invention, where the embodiment is applicable to a situation where ECU data is obtained from a server and is flashed locally when ECU software in the market is upgraded, the ECU data flashing method may be executed by an ECU data flashing device, the ECU data flashing device may be implemented in a hardware and/or software manner, and the ECU data flashing device may be configured in an electronic device with an ECU data flashing function. As shown in fig. 1, the ECU data flashing method includes:
and S110, the diagnostic service tool acquires ECU data to be written of the vehicle from a corresponding server according to the engine number of the vehicle.
Optionally, the Diagnostic Service tool may adopt a UDS Diagnostic tool, or a UDS (Unified Diagnostic Service, ISO14229) Diagnostic tool, where the UDS is a standardized standard of the Diagnostic Service, for example, what instruction should be sent to the ECU by reading a fault code, and what instruction should be sent to a read data stream, so as to update and upgrade ECU software.
It can be understood that, as the complexity of the ECU in the vehicle increases, other diagnostic test technologies may also be adopted to implement the function of the diagnostic service tool, and optionally, the diagnostic service tool is a handheld ECU flash writer, a handheld TPMS (Tire Pressure monitoring System) diagnostic tool, and an automated test technology based on the canoe.
Nowadays, ECUs are one of the most common parts of automobiles, and can be classified into different types according to different functions. The most common are the following ECUs: (1) EMS (Engine management System) engine management system is applied to PFI (Positive ignition in air) of gasoline engine, GDI (gasoline direct Injection in cylinder), diesel engine, hybrid power system and the like, and mainly controls functions of oil Injection, ignition, torque distribution and the like of the engine; (2) a tcu (transmission Control unit) automatic transmission Control unit, which is commonly used in automatic transmissions such as an AMT (automated mechanical transmission), an AT (automatic hydraulic transmission), a DCT (dual clutch automatic transmission), a CVT (continuously variable transmission), and the like, and adopts different gear strategies according to the driving state of a vehicle; (3) a bcm (body Control module) body Control module, which mainly controls body electrical appliances, such as vehicle lamps, wipers, washing, door locks, power windows, skylights, power mirrors, remote controls, and the like; (4) an Electronic Stability Program (ESP) vehicle body electronic Stability control system, which can keep the optimal Stability of a vehicle under various conditions and has more obvious effect under the conditions of over-steering or under-steering; (5) a bms (battery Management system) battery Management system, which is prepared for an electric vehicle or a hybrid vehicle equipped with a power battery as the name suggests, and has the main functions of improving the utilization rate of the battery, preventing the battery from being overcharged and overdischarged, prolonging the service life of the battery, and monitoring the state of the battery; (6) a VCU (vehicle Control Unit) vehicle Control unit is used for an assembly controller of a hybrid power/pure electric vehicle power system, is responsible for coordinating the work of each part of an engine, a driving motor, a gearbox, a power battery and the like, improves the economy, the dynamic property and the safety of a new energy vehicle and reduces the emission pollution.
It is understood that the in-vehicle ECU in the embodiment for flashing the ECU data may be applied to any one or more of the above types, and the embodiment does not limit this.
Specifically, the diagnostic service tool issues ECU data to be written by the vehicle corresponding to the vehicle based on the engine number according to the engine number of the vehicle.
S120, according to the partition structure of the vehicle ECU, the ECU data to be flashed are decomposed into at least one data block to be flashed, and the at least one data block to be flashed is sequentially sent to the diagnosis service tool.
In this embodiment, the block-cutting processing is performed based on the partition structure corresponding to the currently acquired ECU data to be overwritten.
The partition structure of the vehicle ECU is determined according to the address fields of the ECU storage areas in the ECU storage space, where the address fields of the ECU storage areas correspondingly include the start address and the end address of the ECU storage area, and the address fields of the storage areas of the ECU in the following table 1 may be referred to as an example, specifically:
ECU memory area Starting address Ending address
ASW0 0x80080000 0x801FFFFF
ASW1 0x80200000 0x803FFFFF
ASW2 0x805C0000 0x805FFFFF
ASW3 0x807C0000 0x807FFFFF
DS0 0x80400000 0x805BFFFF
It should be understood that the partition structure of the vehicle ECU is only an exemplary illustration, and the present embodiment does not limit the partition structure, and the ECU data flashing method provided in the present embodiment may perform corresponding block processing on the to-be-flashed ECU data according to the partition structure of the existing vehicle ECU, and the present embodiment also does not limit the size and form of the specific block data.
In this embodiment, in the process of performing a block-cutting process on ECU data to be refreshed according to a partition structure of a vehicle ECU, one method may be to directly decompose the ECU data to be refreshed into at least one data block to be refreshed according to the partition structure of the vehicle ECU through a server; another method can be to complete the dicing processing process of the data to be flashed on the server when the data is uploaded to the server, namely, the data to be flashed on the ECU is firstly decomposed into at least one data block to be flashed according to the partition structure of the vehicle ECU, and then the decomposed data block to be flashed is uploaded to the server.
Further, after the at least one data block to be refreshed is obtained, the at least one data block to be refreshed is sequentially sent to the diagnostic service tool through a network transmission protocol. It is understood that the network transmission protocol of the server and the diagnostic service tool adopts the existing data transmission protocol, and the embodiment does not limit this.
S130, the diagnosis service tool sequentially writes the received data blocks to be written with a brush, and generates an ECU data writing completion prompt after traversing the data blocks to be written with a brush.
The diagnostic service tool only performs the flashing operation on one data block to be flashed each time, and after the flashing operation is completed on the data block to be flashed, the diagnostic server receives the data block to be flashed again to perform the subsequent operation until all the data blocks to be flashed are traversed.
Specifically, the diagnostic service tool performs flash on the received current data block to be flashed, and determines whether to receive the next data block to be flashed according to a result of the flash on the current data block to be flashed, so as to perform flash on the next data block to be flashed.
Further, on the basis, if the current data block to be refreshed is successfully refreshed, the next data block to be refreshed sent by the server is received; if the current data block to be flashed fails to be flashed, the current data block to be flashed is flashed repeatedly until the current data block to be flashed is successfully flashed, and then the next data block to be flashed sent by the server is received so as to be flashed.
It should be noted that, in this embodiment, any limitation is imposed on the order of the current data block to be flashed and the next data block to be flashed, and the server may determine the order of transmitting the data blocks to be flashed according to any transmission basis, which is not limited in this embodiment.
In this embodiment, if the current data block to be refreshed is successfully refreshed, the diagnostic service tool returns a refresh success identifier of the current data block to be refreshed, and the server sends the next data block to be refreshed to the diagnostic service tool after receiving the refresh success identifier returned by the diagnostic service tool. And simultaneously deleting the current data block to be refreshed when the diagnostic service tool receives the next data block to be refreshed.
On the basis of the embodiment, after traversing the data block to be flashed, the server feeds back the completion information of the data block to be flashed to the diagnostic service tool; and the diagnostic service tool generates an ECU data flashing completion prompt according to the completion information.
It can be understood that the completion information of the data block to be refreshed is that the diagnostic service tool has completed the refresh operation on all the data blocks to be refreshed, that is, the current refresh of the ECU to be refreshed is completed, so as to ensure the subsequent upgrade of the ECU,
according to the technical scheme, ECU data to be brushed of the vehicle are obtained from a corresponding server through a diagnosis service tool according to the engine number of the vehicle, the ECU data to be brushed are decomposed into at least one data block to be brushed according to the partition structure of the vehicle ECU and are sequentially sent to the diagnosis service tool, the diagnosis service tool brushes the received data block to be brushed in sequence, and an ECU data brushing completion prompt is generated after the data block to be brushed is traversed. The problems that secret leakage risks exist during ECU data flashing, safety is poor, and data flashing takes long time are solved, the diagnostic service tool can repeatedly flash a single data block, flashing time is saved, meanwhile, ECU data do not need to be completely acquired, and ECU data safety is protected.
Example two
Fig. 2 is a flowchart of an ECU data flashing method according to a second embodiment of the present invention, and an alternative implementation manner is provided on the basis of the second embodiment. As shown in fig. 2, the ECU data flashing method includes:
s210, the diagnostic service tool obtains ECU data to be written on the vehicle from a corresponding server according to the engine number of the vehicle.
S220, decomposing the ECU data to be flashed into at least one data block to be flashed according to a partition structure of the vehicle ECU, and sequentially sending the at least one data block to be flashed to the diagnostic service tool.
Specifically, decomposing the ECU data to be flashed into at least one data block to be flashed according to a partition structure of the vehicle ECU includes: the server decomposes the ECU data to be flashed into at least one data block to be flashed according to a partition structure of the vehicle ECU; or decomposing the ECU data to be flashed into at least one data block to be flashed according to a partition structure of the vehicle ECU and uploading the data block to the server.
In the embodiment, the ECU data file stored in the server is cut into blocks according to the partition structure of the vehicle ECU, and the next part of data is downloaded and written in a flash mode after one part of data is written in a flash mode, namely, each data block to be written in a flash mode is written in a flash mode at one time, so that the data cannot be obtained in the whole mode, the ECU data are effectively protected and cannot be obtained by people with other intentions, the risk of divulgence during ECU data flash is effectively reduced, and the safety of the ECU data is improved.
And S230, the diagnostic service tool performs flash writing on the received current data block to be flashed.
S240, judging whether the diagnosis service tool successfully writes the current data block to be written, if so, executing the step S250, and if not, executing the step S260.
And S250, the diagnosis service tool returns the brushing success identification of the current data block to be brushed, after the server verifies the brushing success identification, the server sends the next data block to be brushed to the diagnosis service tool, and the step S270 is executed.
Further, on the basis, when the diagnostic service tool receives the next data block to be flashed, the current data block to be flashed is deleted at the same time.
And S260, repeatedly brushing the current data block to be brushed by the diagnostic service tool until the current data block to be brushed is successfully brushed, and executing the step S250.
Specifically, since the ECU data is cut into blocks according to the partition structure logic of the vehicle ECU, after a certain part of data blocks fail to be refreshed (namely, the current data blocks to be refreshed fail to be refreshed), the repeated refreshing of a single data block can be performed, namely, the current data blocks to be refreshed are repeatedly refreshed, the refreshing of the whole ECU storage area is not needed to be performed again like the refreshing of the whole ECU storage area before, and the ECU data refreshing time is greatly saved.
And S270, the diagnostic service tool performs flash writing on all data blocks to be flashed.
And S280, after the diagnostic service tool traverses the data block to be refreshed, feeding back the completion information of the data block to be refreshed to the diagnostic service tool through the server.
And S290, generating an ECU data flashing completion prompt by the diagnosis service tool according to the completion information.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an ECU data flashing device according to a third embodiment of the present invention. As shown in fig. 3, the ECU data flashing device includes:
the to-be-written ECU data acquisition module 310 is used for executing a diagnostic service tool to acquire the to-be-written ECU data of the vehicle from a corresponding server according to the engine number of the vehicle;
the to-be-flashed ECU data sending module 320 is configured to perform decomposition of the to-be-flashed ECU data into at least one to-be-flashed data block according to a partition structure of the vehicle ECU, and sequentially send the at least one to-be-flashed data block to the diagnostic service tool;
and the ECU data brush-writing completion prompting module 330 is configured to sequentially brush-write the received data blocks to be brushed by the diagnostic service tool, and generate an ECU data brush-writing completion prompt after traversing the data blocks to be brushed.
Optionally, decomposing the ECU data to be flashed into at least one data block to be flashed according to a partition structure of the vehicle ECU includes:
the server decomposes the ECU data to be flashed into at least one data block to be flashed according to a partition structure of the vehicle ECU; or the like, or a combination thereof,
and decomposing the ECU data to be flashed into at least one data block to be flashed according to a partition structure of the vehicle ECU, and uploading the data block to the server.
Optionally, the flushing the received data block to be flushed by the diagnostic service tool in sequence includes:
and the diagnostic service tool performs flash writing on the received current data block to be flashed, and determines whether to receive the next data block to be flashed according to the result of the flash writing on the current data block to be flashed so as to flash the next data block to be flashed.
Optionally, determining whether to receive a next data block to be flashed according to a result of flashing the current data block to be flashed, so as to flash the next data block to be flashed, including:
if the current data block to be refreshed is successfully refreshed, receiving the next data block to be refreshed sent by the server;
if the current data block to be flashed fails to be flashed, the current data block to be flashed is repeatedly flashed until the current data block to be flashed is successfully flashed.
Optionally, if the current data block to be refreshed is successfully refreshed, receiving the next data block to be refreshed, sent by the server, includes:
if the current data block to be refreshed is refreshed successfully, returning a refreshing success identifier of the current data block to be refreshed;
and after receiving the successful flashing identification, the server sends the next data block to be flashed to the diagnostic service tool.
Optionally, the ECU data flashing device further includes:
and when the diagnostic service tool receives the next data block to be flashed, deleting the current data block to be flashed at the same time.
Optionally, after traversing the data block to be flashed, generating an ECU data flashing completion prompt, including:
after traversing the data block to be refreshed, feeding back completion information of the data block to be refreshed to the diagnosis service tool through the server;
and the diagnostic service tool generates an ECU data flashing completion prompt according to the completion information.
The ECU data flashing device provided by the embodiment of the invention can execute the ECU data flashing method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects for executing the ECU data flashing method.
Example four
FIG. 4 illustrates a block diagram of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM)12, a Random Access Memory (RAM)13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM)12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the electronic apparatus 10 may also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to the bus 14.
A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The processor 11 performs the various methods and processes described above, such as the ECU data flashing method.
In some embodiments, the ECU data flashing method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the ECU data flashing method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the ECU data flashing method in any other suitable manner (e.g., by way of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above, reordering, adding or deleting steps, may be used. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. An ECU data flashing method, comprising:
the diagnostic service tool acquires ECU data to be written on the vehicle from a corresponding server according to the engine number of the vehicle;
decomposing the ECU data to be flashed into at least one data block to be flashed according to a partition structure of the vehicle ECU, and sequentially sending the at least one data block to be flashed to the diagnostic service tool;
and the diagnostic service tool sequentially writes the received data blocks to be written with a brush and generates an ECU data writing completion prompt after traversing the data blocks to be written with a brush.
2. The ECU data flashing method according to claim 1, wherein decomposing the ECU data to be flashed into at least one data block to be flashed according to a partition structure of a vehicle ECU comprises:
the server decomposes the ECU data to be flashed into at least one data block to be flashed according to a partition structure of the vehicle ECU; or the like, or, alternatively,
and decomposing the ECU data to be flashed into at least one data block to be flashed according to a partition structure of the vehicle ECU and uploading the data block to the server.
3. The ECU data flashing method according to claim 1, wherein the diagnostic service tool sequentially flashes the received data blocks to be flashed, and comprises:
the diagnostic service tool writes the received current data block to be written by flashing, and determines whether to receive the next data block to be written by flashing according to the result of writing the current data block to be written by flashing so as to write the next data block to be written by flashing.
4. The ECU data flashing method according to claim 3, wherein determining whether to receive a next data block to be flashed to flash the next data block according to a result of flashing the current data block to be flashed includes:
if the current data block to be refreshed is successfully refreshed, receiving the next data block to be refreshed sent by the server;
if the current data block to be flashed fails to be flashed, the current data block to be flashed is repeatedly flashed until the current data block to be flashed is successfully flashed.
5. The ECU data flashing method according to claim 4, wherein if the current data block to be flashed is flashed successfully, receiving the next data block to be flashed sent by the server includes:
if the current data block to be refreshed is refreshed successfully, returning a successful refreshing identifier of the current data block to be refreshed;
and after receiving the successful flashing identification, the server sends the next data block to be flashed to the diagnostic service tool.
6. The ECU data flashing method of claim 5, further comprising:
and when the diagnostic service tool receives the next data block to be flashed, deleting the current data block to be flashed at the same time.
7. The ECU data flashing method according to claim 1, wherein generating an ECU data flashing completion prompt after traversing the data block to be flashed comprises:
after traversing the data block to be refreshed, feeding back the completion information of the data block to be refreshed to the diagnosis service tool through the server;
and the diagnostic service tool generates an ECU data flashing completion prompt according to the completion information.
8. An ECU data flashing device characterized by comprising:
the ECU data acquisition module to be flashed is used for executing a diagnostic service tool to acquire the ECU data to be flashed of the vehicle from a corresponding server according to the engine number of the vehicle;
the ECU data transmission module to be flashed is used for decomposing the ECU data to be flashed into at least one data block to be flashed according to a partition structure of the vehicle ECU, and sequentially transmitting the at least one data block to be flashed to the diagnostic service tool;
and the ECU data flashing completion prompting module is used for the diagnostic service tool to sequentially flash the received data blocks to be flashed and generate an ECU data flashing completion prompt after traversing the data blocks to be flashed.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the ECU data flashing method of any one of claims 1-7.
10. A computer-readable storage medium having stored thereon computer instructions for causing a processor, when executed, to implement the ECU data flashing method of any one of claims 1-7.
CN202210505368.8A 2022-05-10 2022-05-10 ECU data flashing method and device, electronic equipment and storage medium Pending CN114925381A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210505368.8A CN114925381A (en) 2022-05-10 2022-05-10 ECU data flashing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210505368.8A CN114925381A (en) 2022-05-10 2022-05-10 ECU data flashing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114925381A true CN114925381A (en) 2022-08-19

Family

ID=82808960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210505368.8A Pending CN114925381A (en) 2022-05-10 2022-05-10 ECU data flashing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114925381A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220382536A1 (en) * 2017-07-25 2022-12-01 Aurora Labs Ltd. Orchestrator reporting of probability of downtime from machine learning process

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220382536A1 (en) * 2017-07-25 2022-12-01 Aurora Labs Ltd. Orchestrator reporting of probability of downtime from machine learning process
US11829750B2 (en) * 2017-07-25 2023-11-28 Aurora Labs Ltd. Orchestrator reporting of probability of downtime from machine learning process

Similar Documents

Publication Publication Date Title
EP3559625B1 (en) Device and method for managing an electric vehicle
CN105094901B (en) A kind of long-range method and diagnostic device of on line refreshable ECU after sale
CN111158718A (en) Local communication server, OTA (over the air) upgrading method thereof and cloud server
CN109144545B (en) Data flashing method, device and equipment and computer readable storage medium
CN114925381A (en) ECU data flashing method and device, electronic equipment and storage medium
CN113497819A (en) Remote upgrade security guarantee method and system and vehicle-mounted Tbox equipment
CN115437340A (en) Remote diagnosis method and device, electronic equipment and storage medium
EP4345276A1 (en) Method and apparatus for controlling electric fuel pump, device, and storage medium
CN108008964A (en) Vehicle netbios, the management method and vehicle of vehicle-mounted software
CN113505056A (en) Vehicle diagnosis method, system, device and storage medium
CN117227590A (en) Fuel cell automobile purging control method and device
CN113535793A (en) Vehicle information query method, vehicle-mounted remote information processor and remote writing platform
CN112660103B (en) Vehicle control mode determination method and device and whole vehicle control system
CN114872685A (en) Hybrid electric vehicle control method and device, hybrid electric vehicle and storage medium
CN111775926B (en) Driving mode control method and system of range-extended electric vehicle
CN117104213B (en) Range extender system monitoring method and device, range extender electric automobile and storage medium
CN116279286B (en) Unlocking method, device, equipment and medium of engine
CN116224970A (en) Vehicle diagnosis method and device, electronic equipment and readable storage medium
CN115030802B (en) Engine catalyst heating method and device, whole vehicle controller, system and vehicle
CN115224685B (en) Power distribution management method, device, vehicle and storage medium
WO2021146877A1 (en) Parallel refreshing method and apparatus for vehicle controllers, computer device and storage medium
CN117453387A (en) Vehicle control module allocation
CN117389608A (en) Vehicle OTA upgrading method and device
CN114721947A (en) Man-machine interaction testing method, device, equipment and storage medium based on OTA
CN117270508A (en) Vehicle fault prediction method, device, equipment and storage medium

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