CN113741936A - Parallel flashing method and device based on UDS protocol, vehicle and computer readable storage medium - Google Patents
Parallel flashing method and device based on UDS protocol, vehicle and computer readable storage medium Download PDFInfo
- Publication number
- CN113741936A CN113741936A CN202111014224.4A CN202111014224A CN113741936A CN 113741936 A CN113741936 A CN 113741936A CN 202111014224 A CN202111014224 A CN 202111014224A CN 113741936 A CN113741936 A CN 113741936A
- Authority
- CN
- China
- Prior art keywords
- upgrading
- task
- upgrade
- software
- uds
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 238000004891 communication Methods 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 10
- 230000008569 process Effects 0.000 description 19
- 230000005540 biological transmission Effects 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 8
- 102100032312 Brevican core protein Human genes 0.000 description 6
- 101000731086 Homo sapiens Brevican core protein Proteins 0.000 description 6
- 238000012795 verification Methods 0.000 description 5
- 239000002184 metal Substances 0.000 description 3
- 230000001680 brushing effect Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000003745 diagnosis Methods 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 101100517651 Caenorhabditis elegans num-1 gene Proteins 0.000 description 1
- 206010063385 Intellectualisation Diseases 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000007781 pre-processing Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000002904 solvent Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention relates to a parallel flash method, a device, a vehicle and a computer readable storage medium based on a UDS protocol, wherein the method comprises the following steps: the upper computer analyzes a software upgrading packet in a writing channel distributed by an upgrading task according to the upgrading task in the upgrading task file, wherein the software upgrading packet is provided with a UDS request instruction required by the whole software upgrading, a reply message corresponding to the UDS request instruction and an upgrading ending instruction; when the UDS request instruction needs to be sent after the software upgrading package is analyzed, sending the UDS request instruction obtained by analyzing the software upgrading package; when the analysis is needed to be received, checking the actual reply message fed back by the flash controller and the reply message obtained by analyzing the software upgrade package, if the checking result is consistent, judging that the flash controller replies correctly, and continuing to analyze the next UDS request instruction; and when the ending mark is analyzed, the upgrading task completes the flash writing. The software upgrading package is integrated with upgrading instructions and instructions for operating the upgrading instructions, and the upper computer can automatically and parallelly write the controller by analyzing the upgrading instructions and the instructions for operating the upgrading instructions, so that the labor cost is saved, and the writing success rate of the controller is improved.
Description
Technical Field
The invention relates to the technical field of upgrading of vehicle controller software, in particular to a parallel flashing technology based on a UDS protocol.
Background
At present, in the field of automobiles, electromotion, intellectualization, networking and sharing become a new direction and a new trend of automobile development, the functions of an automobile ECU (Electronic Control Unit) are more and more powerful, the research and development time of a whole automobile is more and more tight, the firmware upgrade and iteration of the ECU become the core requirements of a whole automobile factory, and the ECU is also the key work content of after-sales maintenance.
In the past, the upgrading mode can only be realized by flashing off a 4S shop, namely, the time of a client is delayed, the cost of upgrading a batch of software in a whole car factory is greatly increased, the version upgrading with safe design needs to be installed on a vehicle of the client as soon as possible, the timeliness of upgrading cannot be guaranteed by the traditional upgrading mode, therefore, in order to deal with various upgrading scenes, the upgrading mode of air downloading is used more and more, when an ECU of the vehicle needs to be upgraded, a software upgrading package corresponding to a controller is downloaded from a cloud side, and iterative upgrading is carried out on the corresponding ECU.
A commonly used method for upgrading vehicle ECU software is to send a series of UDS request commands to a specific controller by using a diagnostic command in a unified diagnostic service protocol to instruct the controller to perform software upgrading. The traditional automobile software upgrading strategy is an upgrading means based on a single ECU, only one controller is upgraded at a time, and if a plurality of automobile ECUs need to be upgraded at the same time, a lot of time is spent. Due to the fact that the electric quantity requirement exists, the upgrading time is prolonged, electric quantity consumption is large, the whole vehicle cannot complete the upgrading task even when the electric quantity is full, and meanwhile when the instructions are sent to guide upgrading, the upper computer needs to independently process sending of each upgrading instruction and ECU reply messages.
Chinese patent publication No. CN112463190A discloses a technology entitled "a vehicle upgrading method and apparatus", which designs a multi-network channel, multi-socket multithreading technology to complete a strategy of parallel software upgrading of multiple ECUs through a TCP/IP-based communication manner. The ECU list to be upgraded acquired by the upper computer from the cloud server can comprise target software version information of the ECU to be upgraded, an upgrading mode of the ECU to be upgraded and an upgrading sequence of the ECU to be upgraded, the upper computer sorts the ECUs to be upgraded according to the upgrading sequence of the ECU to be upgraded, then communication channels are distributed to the ECUs to be upgraded after the ECUs are sorted, one communication channel can only upgrade one ECU to be upgraded at the same time, and parallel flashing among the channels is achieved. The technology can not realize parallel flash of two or more ECUs in a single channel; the technology is based on a TCP/IP communication mode, and has limited applicability to the CAN/CANFD communication mode commonly used in the current vehicle ECU communication.
Chinese patent publication No. CN111949288A discloses a technology entitled "method and system for remote upgrading of intelligent components based on vehicle-mounted ethernet", which is mainly a method for implementing parallel upgrading of ECUs by connecting an OTA Manager module in a file with a target file to be upgraded through a multi-path CAN bus and a multi-path vehicle-mounted ethernet respectively, and implementing simultaneous transmission of upgrade data in different transmission networks. Two transmission networks are provided in the file, namely the transmission of a vehicle-mounted Ethernet and the transmission of a CAN bus, and the simultaneous upgrade of the multi-target elements is realized through the two transmission networks. The technology is actually only parallel to the transmission network, and does not realize real parallel upgrade under the same transmission network.
Disclosure of Invention
The invention aims to provide a parallel flashing method and a system based on a UDS protocol, which solve the technical problems that a common method in the related technology is to correspond an upgrading instruction to a code, if a certain flashing controller does not support the process, the software of an upper computer needs to be revised again, and if a plurality of controllers do not support the same set of upgrading process, a plurality of sets of corresponding upper computer software are needed to correspond to the upper computer software or a plurality of processes are added to the upper computer software, and if the processes are different, the upper computer software needs to be modified, so that the compatibility of the upper computer software is poor, and the manual management is consumed to modify the software; in a traditional software upgrading strategy of an automobile controller, an upper computer only upgrades one controller at a time, so that if a plurality of controllers to be written are simultaneously written, a large amount of time is spent, and the problem that the upgrading task cannot be finished even if the whole automobile is full of electricity is caused; the upper computer needs to process the sending of each upgrading instruction and the reply message fed back by the controller independently; parallel flashing of more than two controllers in a single channel cannot be achieved.
In order to solve the technical problem, the invention adopts the following technical scheme that a parallel flashing method based on a UDS protocol comprises the following steps:
A. the method comprises the steps that an upper computer obtains an upgrade task file and a software upgrade package from a cloud, wherein the software upgrade package is provided with a UDS request instruction required by the whole software upgrade, a reply message corresponding to the UDS request instruction and an upgrade ending instruction;
B. the upper computer reads the upgrade task file to obtain the task quantity and upgrade configuration information;
C. the upper computer judges whether the issued upgrading task is correct or not according to the upgrading configuration information, if so, the upgrading task file is stored in a task pool to be upgraded, and a writing channel is distributed to each upgrading task in the upgrading task file;
D. the upper computer analyzes the software upgrading packet in a writing channel distributed by the upgrading task according to the upgrading task in the upgrading task file;
E. when the UDS request instruction needs to be sent after the software upgrading package is analyzed, sending the UDS request instruction obtained by analyzing the software upgrading package;
F. when the message needs to be received, checking an actual reply message fed back by the flash controller and the reply message obtained by analyzing the software upgrade package, if the checking result is consistent, judging that the flash controller replies correctly, and if the command is successfully executed, continuing to analyze the next UDS request command;
G. and when the ending mark is analyzed, the upgrading task is finished with the flash.
Preferably, the first and second electrodes are formed of a metal,
in the step B, the upgrade configuration information includes a package name, a communication channel, a communication protocol, an upgrade order, and a version number of the software upgrade package.
Preferably, the first and second electrodes are formed of a metal,
in the step C, a plurality of different upgrade tasks are allocated to the same flash channel, wherein upgrading one controller to be flashed is one upgrade task.
Preferably, the first and second electrodes are formed of a metal,
and in the step D, the upper computer is connected with the controller to be flashed through CAN/CANFD/Ethernet so as to be convenient for the upper computer to perform the flashing on the controller to be flashed.
The invention also provides a parallel flash device based on the UDS protocol, which comprises:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring an upgrading task file and a software upgrading package from a cloud end by an upper computer, and the software upgrading package is filled with a UDS request instruction required by the whole software upgrading, a reply message corresponding to the UDS request instruction and an upgrading ending instruction;
the second acquisition module is used for the upper computer to read the upgrade task file to acquire the number of tasks and upgrade configuration information;
and the judging module is used for judging whether the issued upgrading task is correct or not according to the upgrading device information by the upper computer, if so, storing the upgrading task file into a task pool to be upgraded, and distributing a flash channel for each upgrading task in the upgrading task file.
The analysis module is used for analyzing the software upgrading packet in a writing channel distributed by the upgrading task according to the upgrading task in the upgrading task file by the upper computer, and when the software upgrading packet is analyzed to be sent, the UDS request instruction obtained by analyzing the software upgrading packet is sent; when the message needs to be received, checking an actual reply message fed back by the flash controller and the reply message obtained by analyzing the software upgrade package, if the checking result is consistent, judging that the flash controller replies correctly, and if the command is successfully executed, continuing to analyze the next UDS request command; and when the ending mark is analyzed, completing the flash of the upgrading task.
The present invention also provides a vehicle comprising: the UDS protocol-based parallel flash device, the processor, the memory and the computer program stored on the memory and capable of running on the processor are provided, and when the computer program is executed by the processor, the computer program realizes the UDS protocol-based parallel flash method.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the UDS protocol-based parallel flash method as described above.
By adopting the technical scheme, the beneficial technical effects of the invention are as follows:
the key point of the invention is that a software upgrading package is provided with a UDS request instruction required by the whole software upgrading, a reply message corresponding to the UDS request instruction and an upgrading ending instruction, an upper computer analyzes a plurality of instructions in the software upgrading package, and then automatically sends the UDS request instruction to a controller to be refreshed, receives the reply message fed back by the controller to be refreshed and ends refreshing, the invention packs all upgrading instructions and an updating program into an upgrading package, and has the advantages that: the software compatibility of the upper computer is strong, support different controllers to dispose and suit their own unique upgrade processes, the invention packs all orders into an upgrade packet, if need to modify, only need the content of the upgrade packet, need not change the upper computer software, only need a module of analyzing the upgrade packet in the upper computer software, can be compatible, secondly, when brushing writing in parallel, also need not to increase the additional program code corresponding to a certain controller to control the upgrade process, only need analyze the corresponding upgrade packet. In the invention, the upper computer judges whether the issued upgrading task is correct according to the upgrading configuration information, if so, the upgrading task file is stored in a task pool to be upgraded, a writing channel is distributed to each upgrading task in the upgrading task file, a plurality of different upgrading tasks can be distributed to the same writing channel, the writing channels are distributed according to the issued upgrading task file and an upgrading packet corresponding to the upgrading task, if two upgrading tasks are distributed in the upgrading task in the same writing channel, the upgrading packets corresponding to the two tasks are analyzed, and an upgrading instruction is sent in the same channel, but the upgrading time is almost the same as the upgrading time of a plurality of controllers in a plurality of different channels.
After the upgrade task is distributed to the flash channel, the upper computer analyzes a software upgrade package in the flash channel distributed to the upgrade task according to the upgrade task in the upgrade task file, when the upgrade task is analyzed to be sent, a UDS request instruction obtained through analyzing the software upgrade package is sent, when the upgrade task is analyzed to be received, an actual reply message fed back by the flash controller and a reply message obtained by analyzing the software upgrade package are verified, if a verification result is consistent, the fact that the flash controller replies correctly is judged, the UDS request instruction is successfully executed, the next UDS request instruction is continuously analyzed, and when an end mark is analyzed, the upgrade task finishes flash. By integrating the upgrading related instruction and the instruction for operating the upgrading related instruction into the software upgrading package, the upper computer is prompted to automatically complete the task of the flash controller, meanwhile, the electric quantity of the whole vehicle is sufficient, and the flash power of the controller is improved.
In the invention, a plurality of software upgrading packets can be simultaneously and respectively analyzed, so that a plurality of controllers can be simultaneously written once, the upper computer software receives the upgrading task file and analyzes the corresponding software upgrading packet according to the upgrading task in the upgrading task file. For example, there are 5 upgrade tasks, and all of the upgrade tasks meet the upgrade condition, then after the flash process starts, the corresponding software upgrade packages will be respectively analyzed, and then the analyzed upgrade instructions are sent, where the upgrade task file and the software upgrade packages are simultaneously issued to the upper computer.
Drawings
FIG. 1 is a flow diagram of pre-processing before performing an upgrade in accordance with the present invention;
FIG. 2 is a flowchart of an upgrade order issue process of the present invention;
FIG. 3 is a flow chart of a data receiving process of the present invention;
fig. 4 is a flowchart of the flush end processing.
Detailed Description
The invention will be further explained with reference to the drawings.
In the conventional method in the related art, an upgrade instruction corresponds to a code, if a certain controller to be flashed does not support the process, the software of an upper computer needs to be modified again, and if a plurality of controllers do not support the same upgrade process, a plurality of corresponding sets of upper computer software are needed to correspond to the upgrade instruction or a plurality of processes are added to the upper computer software, if the plurality of controllers do not support the same upgrade process, the upper computer software needs to be modified, so that the compatibility of the upper computer software is poor, and the manual management is consumed to modify the software.
The common vehicle ECU software upgrading mode is that a diagnosis command in a unified diagnosis service protocol is utilized to send a series of UDS request commands to a specific controller to guide the controller to carry out software upgrading, and generally, a single controller is operated at one time, so that the upgrading process is slow, the upgrading time is long, and the whole vehicle can not finish the upgrading task even when the whole vehicle is full of electricity. After the upper computer is connected with the controller to be refreshed through the central gateway, the upper computer is communicated with the controller, and in addition, in the process of upgrading the controller, a plurality of upgrading tasks can not be executed in a single channel.
The invention is provided for solving the technical problem, and provides a parallel flash method based on a UDS protocol, which comprises the following steps:
A. the upper computer acquires an upgrade task file and a software upgrade package from the cloud, wherein the software upgrade package is provided with a UDS request instruction required by the whole software upgrade, a reply message corresponding to the UDS request instruction and an upgrade ending instruction.
Specifically, if the controller software has an upgrade requirement, a software upgrade package is printed and hung on the cloud end, the vehicle end user clicks OTA upgrade, the vehicle can acquire the upgrade package from the cloud end and generate an upgrade task file, then the upgrade package is issued to the upper computer, and the upper computer performs flash writing on the controller according to the upgrade task file.
B. As shown in fig. 1, the upper computer reads the upgrade task file to obtain the number of tasks and the upgrade configuration information.
In particular, the amount of the solvent to be used,
NUM 1// number of tasks: 1
NAM TCU// task name: TCU
BCAN// flash channel: BCAN
CAN// communication protocol: CAN (controller area network)
TVR: 0.0.0// target version: 0.0.1
SVR 0.0.0// rollback version: 0.0.0
ITM 2// number of upgrades: 2
RTM 2// rollback number: 2
An upgrade job file will contain (but is not limited to, add and delete) information as follows: the method comprises the steps that an upgrade task name (corresponding to a controller name), a flash channel number, a communication protocol (CAN/CANFD/Ethernet), a target upgrade version number, a rollback version number, upgrade times, rollback times and an upper computer are analyzed one by one, and flash is conducted according to upgrade information; as shown above, the task configuration information of a TCU is obtained from the file, and then the TCU is flashed.
C. As shown in fig. 1, the upper computer determines whether the issued upgrade task is correct according to the upgrade configuration information, and if so, stores the upgrade task file in the task pool to be upgraded, and allocates a write-through channel to each upgrade task in the upgrade task file.
D. And the upper computer analyzes the software upgrading packet in the writing channel distributed by the upgrading task according to the upgrading task in the upgrading task file.
The steps C and D are specifically realized according to the following contents.
Specifically, as shown in the task file in step B, the upper computer software may have a configuration table therein, and may verify the upgrade information obtained in the issued upgrade task file; for example, the name of the upgrade task in the file is actually the TCU, but configured as TUC, which will fail the verification, the host computer will not execute the upgrade task, the name of the feedback controller is invalid, and the task flush is ended. If the verification is successful, the task is put into the upgrading task pool, the next task is continuously verified, all the tasks are known to be completed, at the moment, if the tasks exist in the upgrading task pool, the corresponding upgrading packet is analyzed, the corresponding writing is executed, and if the tasks do not exist, the writing is finished.
E. As shown in fig. 2, when the parsing is that transmission is required, a UDS request instruction obtained by parsing the software upgrade package is transmitted.
F. As shown in fig. 2, when the analysis is that reception is needed, the actual reply message fed back by the flash controller is checked against the reply message obtained by analyzing the software upgrade package, if the check result is consistent, it is determined that the flash controller replies correctly, the UDS request instruction is successfully executed, and the next UDS request instruction is continuously analyzed.
G. As shown in FIG. 3, when the end flag is resolved, the upgrade task completes the flush.
Step E, step F and step G are specifically realized according to the following contents.
Specifically, the software upgrade package is integrated with sending information (UDS request instruction), information corresponding to the sending instruction and needing controller reply, a start flashing and end instruction, and the like; for example, the upgrade package is analyzed for the first time, and if the judgment is that the upgrade package is a sending information (UDS request instruction), the UDS instruction is sent to the controller through the communication protocol and the write-over channel obtained in the above steps; and if the verification is passed, judging that the response of the controller to be rewritten is correct, successfully executing the UDS instruction, continuously analyzing the next instruction, and ending the process until a brushing end mark is analyzed. If the verification fails and the maximum upgrading times are not reached (as the result, the upgrading information configuration is carried out), the process is executed from the beginning, and the first start is analyzed again; if the maximum number of upgrades has been reached without success, a rollback occurs (i.e., no upgrade is performed, back to the original version).
Alternatively,
in B, the upgrade configuration information includes the package name, communication channel, communication protocol, upgrade sequence and version number of the software upgrade package.
Specifically, NUM 2// number of tasks: 2
NAM, TCU// task name: TCU
BCAN// flash channel: BCAN
CAN// communication protocol: CAN (controller area network)
TVR: 0.0.1// target version: 0.0.1
SVR 0.0.0// rollback version: 0.0.0
ITM 2// number of upgrades: 2
RTM 2// rollback number: 2
NAM TCU// task name: EMS
BCAN// flash channel: BCAN
CAN// communication protocol: CAN (controller area network)
TVR: 0.0.1// target version: 0.0.1
SVR 0.0.0// rollback version: 0.0.0
ITM 2// number of upgrades: 2
RTM 2// rollback number: 2
Upgrade configuration information as above, including but not limited to the above; two upgrade tasks TCU/EMS are configured, with a high priority ranking first (upgrade order from top to bottom).
Alternatively,
in step C, a plurality of different upgrade tasks are assigned to the same refresh channel, wherein one controller to be refreshed is upgraded to one upgrade task.
Alternatively,
in the step D, the upper computer is connected with the controller to be flashed through CAN/CANFD/Ethernet, so that the upper computer CAN execute the flashing on the controller to be flashed.
The invention also provides a parallel flash device based on the UDS protocol, which comprises:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring an upgrading task file and a software upgrading package from a cloud end by an upper computer, and the software upgrading package is filled with a UDS request instruction required by the whole software upgrading, a reply message corresponding to the UDS request instruction and an upgrading ending instruction;
the second acquisition module is used for reading the upgrade task file by the upper computer to acquire the number of tasks and upgrade configuration information;
and the judging module is used for judging whether the issued upgrading task is correct or not according to the upgrading device information by the upper computer, if so, storing the upgrading task file into a task pool to be upgraded, and distributing a writing channel for each upgrading task in the upgrading task file.
The analysis module is used for analyzing a software upgrading packet in a writing channel distributed by an upgrading task in the upgrading task file by the upper computer, and sending a UDS request instruction obtained by analyzing the software upgrading packet when the software upgrading packet is analyzed to be sent; when the analysis is needed to be received, checking an actual reply message fed back by the flash controller and a reply message obtained by analyzing the software upgrade package, if the checking result is consistent, judging that the flash controller replies correctly, and if the UDS request instruction is successfully executed, continuously analyzing the next UDS request instruction; and when the ending mark is analyzed, the upgrading task is finished with the flash.
The present invention also provides a vehicle comprising: the parallel flash device based on the UDS protocol, the processor, the memory and the computer program stored in the memory and capable of running on the processor are provided, and when the computer program is executed by the processor, the parallel flash method based on the UDS protocol is realized.
The present invention also provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the UDS protocol-based parallel flash method as described above.
Claims (7)
1. A parallel flash method based on a UDS protocol is characterized by comprising the following steps:
A. the method comprises the steps that an upper computer obtains an upgrade task file and a software upgrade package from a cloud, wherein the software upgrade package is provided with a UDS request instruction required by the whole software upgrade, a reply message corresponding to the UDS request instruction and an upgrade ending instruction;
B. the upper computer reads the upgrade task file to obtain the task quantity and upgrade configuration information;
C. the upper computer judges whether the issued upgrading task is correct or not according to the upgrading configuration information, if so, the upgrading task file is stored in a task pool to be upgraded, and a writing channel is distributed to each upgrading task in the upgrading task file;
D. the upper computer analyzes the software upgrading packet in a writing channel distributed by the upgrading task according to the upgrading task in the upgrading task file;
E. when the UDS request instruction needs to be sent after the software upgrading package is analyzed, sending the UDS request instruction obtained by analyzing the software upgrading package;
F. when the message needs to be received, checking an actual reply message fed back by the flash controller and the reply message obtained by analyzing the software upgrade package, if the checking result is consistent, judging that the flash controller replies correctly, and if the command is successfully executed, continuing to analyze the next UDS request command;
G. and when the ending mark is analyzed, the upgrading task is finished with the flash.
2. The UDS protocol-based parallel flash method according to claim 1,
in the step B, the upgrade configuration information includes a package name, a communication channel, a communication protocol, an upgrade order, and a version number of the software upgrade package.
3. The UDS protocol-based parallel flash method according to claim 1,
in the step C, a plurality of different upgrade tasks are allocated to the same flash channel, wherein upgrading one controller to be flashed is one upgrade task.
4. The UDS protocol-based parallel flash method according to claim 1,
and in the step D, the upper computer is connected with the controller to be flashed through CAN/CANFD/Ethernet so as to be convenient for the upper computer to perform the flashing on the controller to be flashed.
5. A parallel flash apparatus based on a UDS protocol, comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring an upgrading task file and a software upgrading package from a cloud end by an upper computer, and the software upgrading package is filled with a UDS request instruction required by the whole software upgrading, a reply message corresponding to the UDS request instruction and an upgrading ending instruction;
the second acquisition module is used for the upper computer to read the upgrade task file to acquire the number of tasks and upgrade configuration information;
the judging module is used for judging whether the issued upgrading task is correct or not according to the upgrading device information by the upper computer, if so, the upgrading task file is stored in a task pool to be upgraded, and a writing channel is distributed to each upgrading task in the upgrading task file;
the analysis module is used for analyzing the software upgrading packet in a writing channel distributed by the upgrading task according to the upgrading task in the upgrading task file by the upper computer, and when the software upgrading packet is analyzed to be sent, the UDS request instruction obtained by analyzing the software upgrading packet is sent; when the message needs to be received, checking an actual reply message fed back by the flash controller and the reply message obtained by analyzing the software upgrade package, if the checking result is consistent, judging that the flash controller replies correctly, and if the command is successfully executed, continuing to analyze the next UDS request command; and when the ending mark is analyzed, completing the flash of the upgrading task.
6. A vehicle, characterized by comprising: the UDS protocol based parallel flash apparatus, processor, memory according to claim 5, and a computer program stored on said memory and capable of running on said processor, which when executed by said processor implements the UDS protocol based parallel flash method according to any of claims 1 to 4.
7. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, implements the UDS protocol-based parallel flash method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111014224.4A CN113741936B (en) | 2021-08-31 | 2021-08-31 | Parallel refreshing method and device based on UDS protocol, vehicle and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111014224.4A CN113741936B (en) | 2021-08-31 | 2021-08-31 | Parallel refreshing method and device based on UDS protocol, vehicle and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113741936A true CN113741936A (en) | 2021-12-03 |
CN113741936B CN113741936B (en) | 2024-04-19 |
Family
ID=78734299
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111014224.4A Active CN113741936B (en) | 2021-08-31 | 2021-08-31 | Parallel refreshing method and device based on UDS protocol, vehicle and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113741936B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114546448A (en) * | 2022-02-24 | 2022-05-27 | 重庆长安汽车股份有限公司 | Vehicle OTA parallel upgrading method and related device |
CN114625393A (en) * | 2022-02-23 | 2022-06-14 | 阿波罗智能技术(北京)有限公司 | Flash method, device and equipment of electronic control unit and storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102011055087A1 (en) * | 2011-11-07 | 2013-05-08 | Dr. Ing. H.C. F. Porsche Aktiengesellschaft | Method for executing reprogramming of control device in motor vehicle, involves addressing, coupling and then configuring control device to interface of board control of motor vehicle |
CN105718288A (en) * | 2016-01-21 | 2016-06-29 | 北京新能源汽车股份有限公司 | Automobile controller program flashing method, device and system and terminal |
CN107273749A (en) * | 2017-05-31 | 2017-10-20 | 武汉英泰斯特电子技术有限公司 | A kind of vehicle ECU file securities write with a brush dipped in Chinese ink method and system |
US20180113702A1 (en) * | 2016-10-24 | 2018-04-26 | Lear Corporation | Method for programming vehicle electronic control modules |
CN109828935A (en) * | 2019-01-17 | 2019-05-31 | 重庆菲斯塔新能源汽车科技有限公司 | It is a kind of that method is write with a brush dipped in Chinese ink based on CAN FD bus parallel |
CN110515643A (en) * | 2019-09-05 | 2019-11-29 | 南京协和电子科技有限公司 | A kind of host computer tool for writing with a brush dipped in Chinese ink BIN file |
CN111190629A (en) * | 2020-01-03 | 2020-05-22 | 重庆长安汽车股份有限公司 | Embedded terminal upgrading software package and analysis method thereof |
CN111488165A (en) * | 2020-04-14 | 2020-08-04 | 爱瑟福信息科技(上海)有限公司 | Method and system for upgrading vehicle ECU through script |
CN112162758A (en) * | 2020-09-24 | 2021-01-01 | 王文君 | Parallel flashing method based on wireless network and parallel flashing system thereof |
CN113031974A (en) * | 2021-03-18 | 2021-06-25 | 重庆青山工业有限责任公司 | Software flashing method for transmission control unit |
-
2021
- 2021-08-31 CN CN202111014224.4A patent/CN113741936B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102011055087A1 (en) * | 2011-11-07 | 2013-05-08 | Dr. Ing. H.C. F. Porsche Aktiengesellschaft | Method for executing reprogramming of control device in motor vehicle, involves addressing, coupling and then configuring control device to interface of board control of motor vehicle |
CN105718288A (en) * | 2016-01-21 | 2016-06-29 | 北京新能源汽车股份有限公司 | Automobile controller program flashing method, device and system and terminal |
US20180113702A1 (en) * | 2016-10-24 | 2018-04-26 | Lear Corporation | Method for programming vehicle electronic control modules |
CN107976986A (en) * | 2016-10-24 | 2018-05-01 | 李尔公司 | Method for being programmed to vehicle electric control module |
CN107273749A (en) * | 2017-05-31 | 2017-10-20 | 武汉英泰斯特电子技术有限公司 | A kind of vehicle ECU file securities write with a brush dipped in Chinese ink method and system |
CN109828935A (en) * | 2019-01-17 | 2019-05-31 | 重庆菲斯塔新能源汽车科技有限公司 | It is a kind of that method is write with a brush dipped in Chinese ink based on CAN FD bus parallel |
CN110515643A (en) * | 2019-09-05 | 2019-11-29 | 南京协和电子科技有限公司 | A kind of host computer tool for writing with a brush dipped in Chinese ink BIN file |
CN111190629A (en) * | 2020-01-03 | 2020-05-22 | 重庆长安汽车股份有限公司 | Embedded terminal upgrading software package and analysis method thereof |
CN111488165A (en) * | 2020-04-14 | 2020-08-04 | 爱瑟福信息科技(上海)有限公司 | Method and system for upgrading vehicle ECU through script |
CN112162758A (en) * | 2020-09-24 | 2021-01-01 | 王文君 | Parallel flashing method based on wireless network and parallel flashing system thereof |
CN113031974A (en) * | 2021-03-18 | 2021-06-25 | 重庆青山工业有限责任公司 | Software flashing method for transmission control unit |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114625393A (en) * | 2022-02-23 | 2022-06-14 | 阿波罗智能技术(北京)有限公司 | Flash method, device and equipment of electronic control unit and storage medium |
CN114625393B (en) * | 2022-02-23 | 2023-06-23 | 阿波罗智能技术(北京)有限公司 | Method, device, equipment and storage medium for brushing electronic control unit |
CN114546448A (en) * | 2022-02-24 | 2022-05-27 | 重庆长安汽车股份有限公司 | Vehicle OTA parallel upgrading method and related device |
CN114546448B (en) * | 2022-02-24 | 2024-05-14 | 重庆长安汽车股份有限公司 | Vehicle OTA parallel upgrading method and related device |
Also Published As
Publication number | Publication date |
---|---|
CN113741936B (en) | 2024-04-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109164783B (en) | Vehicle diagnosis method, apparatus, device, and medium | |
CN105589719B (en) | system for remotely upgrading whole vehicle-mounted controller software and upgrading method | |
CN101951400B (en) | Software installation and upgrading method of application terminal in home network and system thereof | |
CN113741936A (en) | Parallel flashing method and device based on UDS protocol, vehicle and computer readable storage medium | |
CN106874026A (en) | For the method and apparatus via the air interface steadily firmware of more new vehicle | |
CN112463190A (en) | Vehicle upgrading method and device | |
CN111163179A (en) | System and method for remotely upgrading automobile terminal electronic control module software | |
CN110224907A (en) | A kind of updating system of vehicle-mounted ECU, method and terminal | |
CN111158718A (en) | Local communication server, OTA (over the air) upgrading method thereof and cloud server | |
WO2021203604A1 (en) | Update test method and apparatus for vehicle component, and computer device and storage medium | |
CN112202639B (en) | Performance test method for realizing Internet of vehicles remote control service through LoadRunner tool | |
CN111488165B (en) | Method and system for upgrading vehicle ECU through script | |
CN112698854A (en) | Vehicle multi-controller flashing device | |
CN111722860A (en) | OTA (over the air) upgrading method and device based on finite state machine | |
CN111273931B (en) | Parallel upgrading method and device for vehicle-mounted traveling crane computers | |
US20170262263A1 (en) | Process and system for the generation of an operating program in the form of a mobile application that is capable of operating on a mobile device | |
CN111176695A (en) | Vehicle ECU configuration method, server and terminal | |
CN112162758A (en) | Parallel flashing method based on wireless network and parallel flashing system thereof | |
CN112073500A (en) | Vehicle controller upgrading method, device, storage medium and device | |
CN111399885A (en) | Vehicle component upgrading pushing method and device and computer readable storage medium | |
CN114326672A (en) | ECU simulation detection method, electronic device and storage medium | |
Shi et al. | A vehicle electric control unit over-the-air reprogramming system | |
CN213303011U (en) | OTA-based vehicle ECU upgrading system | |
CN115934130A (en) | ECU (electronic control Unit) upgrading method, device, equipment and medium | |
CN113434164B (en) | Cloud configuration updating method and system for setting item of vehicle-mounted entertainment host |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |