CN113741936B - Parallel refreshing method and device based on UDS protocol, vehicle and computer readable storage medium - Google Patents

Parallel refreshing method and device based on UDS protocol, vehicle and computer readable storage medium Download PDF

Info

Publication number
CN113741936B
CN113741936B CN202111014224.4A CN202111014224A CN113741936B CN 113741936 B CN113741936 B CN 113741936B CN 202111014224 A CN202111014224 A CN 202111014224A CN 113741936 B CN113741936 B CN 113741936B
Authority
CN
China
Prior art keywords
upgrading
upgrade
task
uds
software
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.)
Active
Application number
CN202111014224.4A
Other languages
Chinese (zh)
Other versions
CN113741936A (en
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.)
Chongqing Changan Automobile Co Ltd
Original Assignee
Chongqing Changan Automobile 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 Chongqing Changan Automobile Co Ltd filed Critical Chongqing Changan Automobile Co Ltd
Priority to CN202111014224.4A priority Critical patent/CN113741936B/en
Publication of CN113741936A publication Critical patent/CN113741936A/en
Application granted granted Critical
Publication of CN113741936B publication Critical patent/CN113741936B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total 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 refreshing method, a device, a vehicle and a computer readable storage medium based on UDS protocol, wherein the method comprises the following steps: the upper computer analyzes a software upgrading packet according to a brushing channel distributed by an upgrading task in an 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 analysis is needed to be sent, sending a UDS request instruction obtained by analyzing the software upgrading package; when the received message is analyzed, checking an actual reply message fed back by the brushed controller and a reply message obtained by analyzing the software upgrading packet, if the check result is consistent, judging that the reply of the brushed controller is correct, and continuing to analyze the next UDS request instruction; when the end mark is resolved, the upgrade task finishes the brushing. The software upgrade package is integrated with an upgrade instruction and an instruction for operating the upgrade instruction, and the upper computer can automatically and parallelly brush the controller by analyzing the upgrade instruction and the instruction for operating the upgrade instruction, so that the labor cost is saved, and the brush success rate of the controller is improved.

Description

Parallel refreshing method and device based on UDS protocol, vehicle and computer readable storage medium
Technical Field
The invention relates to the technical field of vehicle controller software upgrading, in particular to a parallel refreshing technology based on a UDS protocol.
Background
At present, in the automotive field, the electric, intelligent, networking and sharing become a new direction and a new trend of the development of automobiles, the functions of a vehicle ECU (Electronic Control Unit, namely an electronic control unit) are more and more powerful, the whole automobile research and development time is more and more compact, and the firmware upgrading and iteration of the ECU become the core requirements of a whole automobile factory and are also key work contents of after-sales maintenance.
The traditional upgrading mode can only carry out offline refreshing through a 4S store, namely, the time of a customer is delayed, the cost of upgrading a batch of software of a whole vehicle factory is greatly increased, the design-safe version updating is required to be installed on the customer vehicle as soon as possible, the traditional upgrading mode cannot ensure the timeliness of the upgrading, so that the upgrading mode of air downloading is increasingly used for coping with various upgrading scenes, and when the vehicle ECU needs to be updated, the software upgrading package of the corresponding controller is downloaded from the cloud, and the corresponding ECU is iteratively upgraded.
The common vehicle ECU software upgrade mode is to send a series of UDS request commands to a specific controller by using the diagnostic commands in the unified diagnostic service protocol, so as to instruct the controller to perform software upgrade. The traditional automobile software upgrading strategy is based on a single ECU upgrading means, only one controller is upgraded at a time, and if a plurality of automobile ECUs need to be upgraded at the same time, a great deal of time is spent. Because of the electric quantity demand, the upgrade time is prolonged, so that the electric quantity consumption is high, the upgrade task cannot be completed even if the whole vehicle is full, and meanwhile, when the upgrade is guided by the transmission instruction, the upper computer needs to independently process the transmission of each upgrade instruction and the reply message of the ECU.
The Chinese patent document with publication number CN112463190A discloses a technology named as a vehicle upgrading method and device, which designs a plurality of network channels and a multi-socket multithreading technology by a communication mode based on TCP/IP so as to complete a strategy of parallel software upgrading of a plurality of ECUs. The to-be-upgraded ECU list acquired by the upper computer from the cloud server can comprise target software version information of the to-be-upgraded ECU, an upgrading mode of the to-be-upgraded ECU and an upgrading sequence of the to-be-upgraded ECU, the upper computer ranks all to-be-upgraded ECUs according to the upgrading sequence of the to-be-upgraded ECU, then allocates communication channels for all to-be-upgraded ECUs after ranking, and only one to-be-upgraded ECU can be upgraded simultaneously by one communication channel, so that parallel brushing among channels is realized. The technology cannot realize parallel brushing of two or more ECUs in a single channel; the technology is based on a TCP/IP communication mode, and has temporarily limited applicability for the current vehicle ECU communication commonly using a CAN/CANFD communication mode.
The Chinese patent document with the publication number of CN111949288A discloses a technology named as a vehicle-mounted Ethernet-based intelligent element remote upgrading method and system, wherein an OTA Manager module in the file is connected with a target file to be upgraded through a plurality of CAN buses and a plurality of vehicle-mounted Ethernet networks respectively, so that upgrade data CAN be transmitted in different transmission networks simultaneously, and a method for upgrading the ECU in parallel is realized. The transmission networks in the file are two types, namely the transmission of the vehicle-mounted Ethernet and the transmission of the CAN bus, and the simultaneous upgrading of the multi-target elements is realized through the two types of transmission networks. The technology is actually just 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 refreshing method and a system based on a UDS protocol, which solve the technical problems that in the prior art, a common practice is to make an upgrade instruction a corresponding code, if a certain refreshed controller does not support the process, the upper computer software needs to be revised, and if a plurality of controllers do not support the same upgrading process, the corresponding plurality of sets of upper computer software are needed to correspond to the corresponding sets of upper computer software or a plurality of processes are needed to be added to the upper computer software, and if the processes are different, the upper computer software needs to be changed, so that the compatibility of the upper computer software is poor, and labor management and software modification are consumed; in the traditional automobile controller software upgrading strategy, an upper computer only upgrades one controller at a time, so that if a plurality of controllers to be refreshed are simultaneously used, a great amount of time is spent, and the problem that an upgrading task cannot be completed even if the whole automobile is full of electricity is caused; the upper computer needs to process the reply message fed back by the controller and the sending of each upgrading instruction independently; it is not possible to achieve parallel flushing of more than two controllers within a single channel.
In order to solve the technical problems, the invention adopts the following technical scheme that the parallel refreshing method based on the 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 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 acquire the task number 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 brushing channel is allocated for each upgrading task in the upgrading task file;
D. The upper computer analyzes the software upgrading packet according to the upgrading task in the upgrading task file in a brushing channel to which the upgrading task is distributed;
E. When the analysis is required to be sent, sending the UDS request instruction obtained by analyzing the software upgrading packet;
F. When the received message is analyzed, checking an actual reply message fed back by the brushed controller and the reply message obtained by analyzing the software upgrading packet, if the checking result is consistent, judging that the reply of the brushed controller is correct, and if the execution of the UDS request instruction is successful, continuing to analyze the next UDS request instruction;
G. and when the end mark is resolved, the upgrade task finishes the brushing.
Preferably, the method comprises the steps of,
In the step B, the upgrade configuration information comprises a packet name, a communication channel, a communication protocol, an upgrade order and a version number of the software upgrade packet.
Preferably, the method comprises the steps of,
In said C, a plurality of different said upgrade tasks are assigned to the same said flush channel, wherein a flushed controller is upgraded to an upgrade task.
Preferably, the method comprises the steps of,
In the step D, the upper computer is connected with the controller to be refreshed through CAN/CANFD/Ethernet so that the upper computer executes the refresh on the controller to be refreshed.
The invention also provides a parallel refreshing device based on the UDS protocol, which comprises:
the system comprises a first acquisition module, a second acquisition module and a control module, wherein the first acquisition module is used for acquiring an upgrade task file and a software upgrade package from a cloud end by an upper computer, and 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;
the second acquisition module is used for reading the upgrade task file by the upper computer to acquire the task number 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, storing the upgrading task file into a task pool to be upgraded, and distributing a brushing channel for each upgrading task in the upgrading task file.
The analysis module is used for analyzing the software upgrading packet according to the upgrading task in the upgrading task file in the updating task distributed updating channel, and when the software upgrading packet is analyzed to be required to be sent, the analysis module sends the UDS request instruction obtained by analyzing the software upgrading packet; when the received message is analyzed, checking an actual reply message fed back by the brushed controller and the reply message obtained by analyzing the software upgrading packet, if the checking result is consistent, judging that the reply of the brushed controller is correct, and if the execution of the UDS request instruction is successful, continuing to analyze the next UDS request instruction; and when the analysis is completed, the upgrade task finishes the brushing.
The present invention also provides a vehicle including: the parallel writing device based on the UDS protocol, the processor, the memory and the computer program stored on the memory and capable of running on the processor, wherein the computer program realizes the parallel writing method based on the UDS protocol when being executed by the processor.
The invention also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor implements a parallel flushing method based on the UDS protocol as described above.
By adopting the technical scheme, the invention has the following beneficial technical effects:
The key of the invention is that 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, the upper computer analyzes a plurality of instructions in the software upgrade package, then automatically sends the UDS request instruction to the controller to be refreshed, receives the reply message fed back by the refreshed controller and finishes the refresh, and the invention packages all the upgrade instructions and the update program into one upgrade package, which has the advantages that: the method has the advantages that the compatibility of the software of the upper computer is strong, different controller configurations are supported to be suitable for own unique upgrading processes, all instructions are packed into one upgrading packet, if the upgrading packet needs to be modified, only the content of the upgrading packet needs to be modified, only one module for analyzing the upgrading packet is needed to be used in the upper computer software, the upper computer software is compatible, and secondly, when the upper computer software is subjected to parallel brushing, the upgrading process is controlled without adding additional program codes corresponding to a certain controller, and only the corresponding upgrading packet needs to be analyzed. In the invention, the upper computer judges whether the issued upgrade tasks are correct according to upgrade configuration information, if so, the upgrade task files are stored in a task pool to be upgraded, a refreshing channel is allocated for each upgrade task in the upgrade task files, a plurality of different upgrade tasks can be allocated to the same refreshing channel, the allocation of the refreshing channels is according to the issued upgrade task files and upgrade packages corresponding to the upgrade tasks, if two upgrade tasks are configured in the upgrade tasks in the same refreshing channel, the upgrade packages corresponding to the two tasks are analyzed, and upgrade instructions are sent in the same channel, but the upgrade time and the upgrade time of a plurality of controllers in a plurality of different channels are almost equal.
After the upgrade task is distributed with the update channel, the upper computer analyzes the software upgrade package according to the update channel distributed with the upgrade task in the upgrade task file, when the upgrade package is analyzed to be transmitted, a UDS request instruction obtained by analyzing the software upgrade package is transmitted, when the upgrade package is analyzed to be received, an actual reply message fed back by the update controller and a reply message obtained by analyzing the software upgrade package are checked, if the check result is consistent, the update controller is judged to reply correctly, the UDS request instruction is successfully executed, the next UDS request instruction is continuously analyzed, and when the end mark is analyzed, the update task is finished in the update. By integrating the upgrade related instruction and the instruction for operating the upgrade related instruction into the software upgrade package, the upper computer is prompted to automatically finish the task of refreshing the controller, meanwhile, the whole vehicle is enough in electric quantity, and the success rate of refreshing the controller is improved.
In the invention, a plurality of software upgrade packages can be simultaneously analyzed respectively, so that a plurality of controllers can be simultaneously written for a single time, the upper computer software receives the upgrade task file, and the corresponding software upgrade package is analyzed according to the upgrade task in the upgrade task file. For example, there are 5 upgrade tasks at this time and all meet the upgrade conditions, after the start of the brushing process, the corresponding software upgrade packages are respectively parsed, and then the parsed upgrade instructions are sent, where the upgrade task file and the software upgrade packages are simultaneously sent to the upper computer.
Drawings
FIG. 1 is a flow chart of preprocessing before an upgrade is performed;
FIG. 2 is a flow chart of an upgrade instruction transmission process of the present invention;
FIG. 3 is a flow chart of the data receiving process of the present invention;
Fig. 4 is a flowchart of the end of the flushing process.
Detailed Description
The invention is further described below with reference to the accompanying drawings.
In the related art, a common method is to update a corresponding code of an instruction, if a certain refreshed controller does not support the process, the upper computer software needs to be modified again, and if a plurality of controllers do not support the same upgrading process, a plurality of corresponding upper computer software sets are needed to correspond to the corresponding upgrading process or a plurality of processes are added to the upper computer software sets, and if the upgrading processes are different, the upper computer software needs to be modified, so that the compatibility of the upper computer software is poor, and the labor management is consumed to modify the software.
The common vehicle ECU software upgrading mode is to send a series of UDS request commands to a specific controller by utilizing diagnostic commands in a unified diagnostic service protocol to guide the controller to perform software upgrading, and generally, a single controller is operated at a time, the upgrading process is slow, the upgrading time is long, and the upgrading task cannot be completed even if the whole vehicle is full of electricity. When 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 provides a parallel refreshing method based on 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 upgrading requirement, a software upgrading package is hung on the cloud, a vehicle end user clicks OTA upgrading, the vehicle can acquire the upgrading package from the cloud and generate an upgrading task file, and then the upgrading task file is sent to the upper computer, and the upper computer performs brushing on the controller according to the upgrading task file.
B. As shown in fig. 1, the upper computer reads the upgrade task file to obtain the number of tasks and upgrade configuration information.
In particular, the method comprises the steps of,
NUM: 1// number of tasks: 1
NAM: TCU// task name: TCU (TCU)
CHN: BCAN// brush channel: BCANs
PRO 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// number of rollbacks: 2
An upgrade task file may contain (but is not limited to) the following information: the upgrade task name (corresponding to the controller name), the brushwrite channel number, the communication protocol (CAN/CANFD/Ethernet), the target upgrade version number, the rollback version number, the upgrade times, the rollback times and the upper opportunities are analyzed one by one, and the brushwrite is performed according to the upgrade information; the task configuration information of a TCU as described above, after obtaining the updated task information of the TCU from the file, performs the writing and brushing of the TCU.
C. as shown in fig. 1, the upper computer determines whether the issued upgrade task is correct according to the upgrade configuration information, if so, the upgrade task file is stored in the task pool to be upgraded, and a refresh channel is allocated to each upgrade task in the upgrade task file.
D. and the upper computer analyzes the software upgrade package according to the upgrade task in the upgrade task file in the upgrade task distributed brushing channel.
And step C and step D are specifically realized according to the following content.
Specifically, as shown in the task file in the step B, the upper computer software is internally provided with a configuration table, and upgrade information acquired in the issued upgrade task file is checked; for example, the upgrade task name in the file is actually a TCU, but is configured as a TUC, which is a verification failure, the upper level opportunity will not execute the upgrade task, the feedback controller name is invalid, and the task flushing is ended. If the verification is successful, the task is put into an upgrade task pool, the next task is continuously verified, the verification of all tasks is known, at the moment, if the task exists in the upgrade task pool, the corresponding upgrade package is analyzed, and if the task exists in the upgrade task pool, the corresponding refreshing is executed, and if the task does not exist, the refreshing is ended.
E. As shown in fig. 2, when parsing is required, a UDS request instruction obtained by parsing the software upgrade package is transmitted.
F. As shown in fig. 2, when the received request is analyzed, the actual reply message fed back by the brushed controller is checked with the reply message obtained by analyzing the software upgrading packet, if the check result is consistent, the brushed controller is judged to reply correctly, the execution of the UDS request instruction is successful, and the next UDS request instruction is continuously analyzed.
G. As shown in fig. 3, when the end flag is parsed, the upgrade task completes the brush.
Step E, step F and step G are specifically implemented according to the following.
Specifically, the software upgrade package integrates transmission information (UDS request instruction), information corresponding to the transmission instruction and needing the controller to reply, start writing, end instruction and the like; for example, the upgrade package is parsed for the first time, and the determination is that the upgrade package is sent information (UDS request instruction), then the UDS instruction is sent to the controller through the communication protocol and the flush channel that are obtained in the above steps; and continuing to analyze the next instruction after the completion of the transmission, wherein the next instruction is certainly the correct information which corresponds to the last instruction and needs to be replied by the controller, checking the correctly received information which is analyzed by the next instruction and the information which is actually replied by the controller and is received by the brushing channel, judging that the replied by the brushing controller is correct if the correctly received information passes the checking, continuing to analyze the next instruction after the UDS instruction is successfully executed, and ending the flow after the brushing end mark is analyzed. If the verification fails and the maximum upgrading times are not reached (such as upgrading information configuration), executing the process from the beginning and re-analyzing the first strip; if the maximum number of upgrades has been reached has not been successful, then rollback is performed (i.e., no upgrades are performed, returning to the original version).
Alternatively, the process may be carried out in a single-stage,
In B, the upgrade configuration information includes a packet name, a communication channel, a communication protocol, an upgrade order, and a version number of the software upgrade packet.
Specifically, NUM: 2// number of tasks: 2
NAM, TCU// task name: TCU (TCU)
CHN: BCAN// brush channel: BCANs
PRO 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// number of rollbacks: 2
NAM: TCU// task name: EMS (enhanced message service)
CHN: BCAN// brush channel: BCANs
PRO 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// number of rollbacks: 2
Upgrade configuration information, including but not limited to, the above; two upgrade tasks TCU/EMS are configured, the priority of the front is ranked high (upgrade order is from top to bottom).
Alternatively, the process may be carried out in a single-stage,
In C, a plurality of different upgrade tasks are assigned to the same flush channel, wherein one flushed controller is upgraded to one upgrade task.
Alternatively, the process may be carried out in a single-stage,
In the D, the upper computer is connected with the controller to be refreshed through CAN/CANFD/Ethernet so that the upper computer executes the refresh of the controller to be refreshed.
The invention also provides a parallel refreshing device based on the UDS protocol, which comprises:
the system comprises a first acquisition module, a second acquisition module and a control module, wherein the first acquisition module is used for acquiring an upgrade task file and a software upgrade package from a cloud end, and 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;
the second acquisition module is used for reading the upgrade task file by the upper computer to acquire the task number 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 the task pool to be upgraded, and a brushing channel is allocated for each upgrading task in the upgrading task file.
The analysis module is used for analyzing the software upgrading packet according to the updating task in the upgrading task file in the updating task distributed updating channel, and when the software upgrading packet is analyzed to be required to be sent, a UDS request instruction obtained by analyzing the software upgrading packet is sent; when the received message is analyzed, checking an actual reply message fed back by the brushed-write controller and a reply message obtained by analyzing the software upgrading packet, if the check result is consistent, judging that the reply of the brushed-write controller is correct, successfully executing the UDS request instruction, and continuously analyzing the next UDS request instruction; and when the analysis is completed, the updating task finishes the brushing.
The present invention also provides a vehicle including: the parallel writing device, the processor, the memory and the computer program stored on the memory and capable of running on the processor based on the UDS protocol realize the parallel writing method based on the UDS protocol when the computer program is executed by the processor.
The invention also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the parallel refreshing method based on the UDS protocol is realized.

Claims (6)

1. A parallel refreshing method based on a UDS protocol, comprising the steps of:
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 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 acquire the task number 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, a brushing channel is allocated to each upgrading task in the upgrading task file, a plurality of different upgrading tasks are allocated to the same brushing channel, and one brushed controller is upgraded to be one upgrading task; if the two upgrading tasks are configured in the same updating channel, analyzing upgrading packages corresponding to the two upgrading tasks, and sending upgrading instructions in the same channel;
D. The upper computer analyzes the software upgrading packet according to the upgrading task in the upgrading task file in a brushing channel to which the upgrading task is distributed;
E. When the analysis is required to be sent, sending the UDS request instruction obtained by analyzing the software upgrading packet;
F. When the received message is analyzed, checking an actual reply message fed back by the brushed controller and the reply message obtained by analyzing the software upgrading packet, if the checking result is consistent, judging that the reply of the brushed controller is correct, and if the execution of the UDS request instruction is successful, continuing to analyze the next UDS request instruction;
G. and when the end mark is resolved, the upgrade task finishes the brushing.
2. The parallel flushing method based on the UDS protocol as set forth in claim 1, wherein,
In the step B, the upgrade configuration information comprises a packet name, a communication channel, a communication protocol, an upgrade order and a version number of the software upgrade packet.
3. The parallel flushing method based on the UDS protocol as set forth in claim 1, wherein,
In the step D, the upper computer is connected with the controller to be refreshed through CAN/CANFD/Ethernet so that the upper computer executes the refresh on the controller to be refreshed.
4. A UDS protocol based parallel writing device, comprising:
the system comprises a first acquisition module, a second acquisition module and a control module, wherein the first acquisition module is used for acquiring an upgrade task file and a software upgrade package from a cloud end by an upper computer, and 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;
the second acquisition module is used for reading the upgrade task file by the upper computer to acquire the task number 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, storing the upgrading task file into a task pool to be upgraded, and distributing a brushing channel for each upgrading task in the upgrading task file, wherein a plurality of different upgrading tasks are distributed into the same brushing channel, and one brushed controller is upgraded into one upgrading task; if the two upgrading tasks are configured in the same updating channel, analyzing upgrading packages corresponding to the two upgrading tasks, and sending upgrading instructions in the same channel;
The analysis module is used for analyzing the software upgrading packet according to the upgrading task in the upgrading task file in the updating task distributed updating channel, and when the software upgrading packet is analyzed to be required to be sent, the analysis module sends the UDS request instruction obtained by analyzing the software upgrading packet; when the received message is analyzed, checking an actual reply message fed back by the brushed controller and the reply message obtained by analyzing the software upgrading packet, if the checking result is consistent, judging that the reply of the brushed controller is correct, and if the execution of the UDS request instruction is successful, continuing to analyze the next UDS request instruction; and when the analysis is completed, the upgrade task finishes the brushing.
5. A vehicle, characterized by comprising: the UDS protocol based parallel flushing device, processor, memory and computer program stored on the memory and capable of running on the processor as claimed in claim 4, which when executed by the processor implements the UDS protocol based parallel flushing method as claimed in any one of claims 1 to 3.
6. A computer readable storage medium, characterized in that it has stored thereon a computer program which, when executed by a processor, implements the UDS protocol based parallel flushing method according to any of claims 1 to 3.
CN202111014224.4A 2021-08-31 2021-08-31 Parallel refreshing method and device based on UDS protocol, vehicle and computer readable storage medium Active CN113741936B (en)

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 CN113741936A (en) 2021-12-03
CN113741936B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114625393B (en) * 2022-02-23 2023-06-23 阿波罗智能技术(北京)有限公司 Method, device, equipment and storage medium for brushing electronic control unit
CN114546448B (en) * 2022-02-24 2024-05-14 重庆长安汽车股份有限公司 Vehicle OTA parallel upgrading method and related device

Citations (10)

* Cited by examiner, † Cited by third party
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
CN107976986A (en) * 2016-10-24 2018-05-01 李尔公司 Method for being programmed to vehicle electric control module
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

Patent Citations (10)

* Cited by examiner, † Cited by third party
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
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

Also Published As

Publication number Publication date
CN113741936A (en) 2021-12-03

Similar Documents

Publication Publication Date Title
CN109164783B (en) Vehicle diagnosis method, apparatus, device, and medium
CN113741936B (en) Parallel refreshing method and device based on UDS protocol, vehicle and computer readable storage medium
CN111385191B (en) Vehicle-mounted interconnection gateway, vehicle OTA upgrading system and method, and computer storage medium
CN101951400B (en) Software installation and upgrading method of application terminal in home network and system thereof
CN106874026A (en) For the method and apparatus via the air interface steadily firmware of more new vehicle
CN112463190A (en) Vehicle upgrading method and device
CN111478897A (en) OTA (over the air) upgrading method and system for vehicle ECU (electronic control Unit)
CN111488165B (en) Method and system for upgrading vehicle ECU through script
CN110535941A (en) Onboard system update method, electronic equipment and storage medium
KR20080085934A (en) Remote management system having automatic update function
CN112698854A (en) Vehicle multi-controller flashing device
CN112051832B (en) Fault testing method, device and system based on simulation node and storage medium
CN111414183A (en) Upgrade detection method and device for vehicle component, computer equipment and storage medium
CN112073500B (en) Vehicle controller upgrading method, device, storage medium and device
CN115225492A (en) Remote upgrading method and system
CN113268257A (en) Vehicle-mounted application upgrading system, method and computer storage medium
Shi et al. A vehicle electric control unit over-the-air reprogramming 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
US20060132297A1 (en) Method and system for verifying an embedded module of a mobile vehicle
CN113448596A (en) Vehicle controller flashing system and method and related equipment
CN114285739A (en) Node information batch configuration method, device, terminal and storage medium
US20080221749A1 (en) Diagnostic Interface for Applications on a Service Gateway
CN112241272B (en) Vehicle-mounted instrument and upgrading method and system thereof
CN114721691B (en) Method for updating preassembled application of vehicle terminal

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