CN115344281A - Finished automobile OTA (over the air) upgrading method, system, storage medium and equipment - Google Patents

Finished automobile OTA (over the air) upgrading method, system, storage medium and equipment Download PDF

Info

Publication number
CN115344281A
CN115344281A CN202210903841.8A CN202210903841A CN115344281A CN 115344281 A CN115344281 A CN 115344281A CN 202210903841 A CN202210903841 A CN 202210903841A CN 115344281 A CN115344281 A CN 115344281A
Authority
CN
China
Prior art keywords
upgrading
upgrade
target ecu
ota
ecu
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
CN202210903841.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.)
Jiangxi Isuzu Motors Co Ltd
Original Assignee
Jiangxi Isuzu Motors 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 Jiangxi Isuzu Motors Co Ltd filed Critical Jiangxi Isuzu Motors Co Ltd
Priority to CN202210903841.8A priority Critical patent/CN115344281A/en
Publication of CN115344281A publication Critical patent/CN115344281A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • B60R16/023Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for transmission of signals between vehicle parts or subsystems
    • B60R16/0231Circuits relating to the driving or the functioning of the vehicle
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN

Abstract

The invention provides a whole vehicle OTA upgrading method, a system, a storage medium and equipment, wherein the method comprises the steps of obtaining a pre-download request of a target ECU, and connecting an OTA server according to the pre-download request; judging whether an upgrade patch higher than the current version information exists in the upgrade patch version information of the target ECU in the OTA server; if the upgrade package version information of the target ECU in the OTA server contains the upgrade package higher than the current version information, sending an ECU upgrade request to the OTA server to obtain the upgrade package issued by the OTA server according to the ECU upgrade request, wherein the upgrade package comprises an upgrade file and upgrade information; and sending the upgrading file to the target ECU through the CAN network according to the upgrading information so that the target ECU CAN be upgraded according to the upgrading file. According to the OTA upgrading method, the OTA upgrading system, the OTA upgrading storage medium and the OTA upgrading equipment, the upgrading package is pre-downloaded in the on-board unit system, and then the upgrading package is sent to the target ECU for upgrading, so that the problem of upgrading failure caused by unstable downloading is solved.

Description

Finished automobile OTA (over the air) upgrading method, system, storage medium and equipment
Technical Field
The invention relates to the technical field of over-the-air downloading, in particular to a finished automobile OTA upgrading method, a finished automobile OTA upgrading system, a finished automobile OTA upgrading storage medium and finished automobile OTA upgrading equipment.
Background
Along with the development of science and technology, the automobile is also more intelligent, and at present, a plurality of automobile types can be systematically upgraded through the whole OTA, and the automobile can be optimized or more functions can be added.
OTA is called Over the Air Technology, i.e. Over the Air Technology, which is to automatically download upgrade packages and automatically upgrade through a network. Today, OTA upgrading of automobiles is mainly divided into FOTA and SOTA, wherein SOTA is software online upgrading, and automobile manufacturers only need to send parts needing to be modified. For example, when the multimedia system is upgraded, the contents such as an operation interface, a theme and the like are all upgraded in an SOTA mode. Compared with SOTA, FOTA has higher technical gold content, can deeply change an automobile control system, a management system and performance, namely the whole OTA, has more comprehensive updatable range, for example, the FOTA can upgrade the steering system of the automobile, leads the driving operation to be easier, upgrades the reaction force of an accelerator pedal, leads the acceleration to be more linear and comfortable, and the like.
In the prior art, an OTA server is connected with an OTA function of a whole vehicle ECU through a vehicle networking terminal TBOX, a mobile phone APP is connected with the OTA server and issues an OTA upgrading instruction, the TBOX terminal is networked with the OTA server, authenticated, compared with a version and downloads an OTA upgrading package, the TBOX terminal transmits the OTA upgrading package to a target ECU through a CAN network, and the target ECU is triggered to be upgraded. However, in the process of downloading the upgrade package by the OTA connection server, the OTA connection server is susceptible to various factors, for example, when the internet is unstable during driving, the OTA upgrade package is easily interrupted or data is easily lost, and further, the vehicle ECU fails to be upgraded, thereby affecting the vehicle upgrade experience.
Disclosure of Invention
Based on the above, the invention aims to provide a finished vehicle OTA upgrading method, a finished vehicle OTA upgrading system, a finished vehicle OTA upgrading storage medium and finished vehicle OTA upgrading equipment, which solve the problem that in the background art, in the process of downloading an upgrading package by an OTA connection server, the downloading of the OTA upgrading package is easily interrupted or data is easily lost, so that the vehicle upgrading fails.
The invention provides a whole-vehicle OTA upgrading method on one hand, which comprises the following steps:
acquiring a pre-download request of a target ECU, and connecting an OTA server according to the pre-download request;
monitoring upgrade package version information of a target ECU in the OTA server every first preset time after establishing communication connection with the OTA server, and calling current version information of the target ECU in a target vehicle;
judging whether an upgrade patch higher than the current version information exists in the upgrade patch version information of the target ECU in the OTA server;
if the upgrade package version information of the target ECU in the OTA server contains the upgrade package higher than the current version information, sending an ECU upgrade request to the OTA server to obtain the upgrade package issued by the OTA server according to the ECU upgrade request, wherein the upgrade package comprises an upgrade file and upgrade information;
and sending the upgrade file to the target ECU through the CAN network according to the upgrade information so that the target ECU CAN upgrade according to the upgrade file.
Further, the step of obtaining the pre-download request of the target ECU and connecting the OTA server according to the pre-download request includes:
acquiring a vehicle fault code, and positioning a target ECU with a fault according to the vehicle fault code;
detecting whether the vehicle fault code reappears within a preset time,
and if so, acquiring a pre-download request of the target ECU.
Further, the step of sending the upgrade file to the target ECU through the CAN network according to the upgrade information so that the target ECU performs the upgrade according to the upgrade file includes:
analyzing the upgrading information to obtain upgrading time and upgrading state, and judging whether the vehicle accords with the upgrading state within the upgrading time according to the upgrading time;
if yes, the upgrading file is sent to the storage of the target ECU through the CAN network within the upgrading time, so that the target ECU CAN be upgraded according to the upgrading file.
Further, the step of obtaining the upgrade package issued by the OTA server according to the ECU upgrade request further includes:
and obtaining upgrade packages issued by the OTA servers according to the ECU upgrade requests, and establishing pre-download upgrade packages according to the version information of the upgrade packages and the corresponding target ECU information.
Further, if an upgrade package higher than the current version information exists in the upgrade package version information of the target ECU in the OTA server, the step of sending an ECU upgrade request to the OTA server includes:
determining the version information of the upgrade package of the target ECU in the OTA server as the version information to be upgraded of the target ECU, and searching whether the upgrade package consistent with the version information to be upgraded of the target ECU exists in the pre-downloaded upgrade package;
if yes, sending an upgrade package corresponding to the version information to be upgraded of the target ECU in the pre-downloaded upgrade package through the CAN according to the ECU upgrade request, so that the target ECU CAN be upgraded according to the upgrade file in the upgrade package.
Further, after the step of judging whether the vehicle meets the upgrading state within the upgrading time according to the upgrading time, the method further comprises the following steps:
if the vehicle does not accord with the upgrading state within the upgrading time, continuing waiting until the vehicle accords with the upgrading state;
and when the vehicle accords with the upgrading state, sending the upgrading file to the storage of the target ECU through the CAN network so that the target ECU is upgraded according to the upgrading file.
Further, if an upgrade package higher than the current version information exists in the upgrade package version information of the target ECU in the OTA server, the step of sending an ECU upgrade request to the OTA server includes:
carrying out upgrading verification on the target ECU according to the ECU upgrading request so as to judge whether the target ECU meets the upgrading condition;
and if so, acquiring an upgrading request success instruction issued by the OTA server to the target ECU.
The whole-vehicle OTA upgrading method comprises the steps of obtaining a pre-download request of a target ECU, connecting an OTA server, monitoring whether an upgrading package is updated in the server, obtaining the upgrading request of the target ECU if the upgrading package is updated in the server, downloading the upgrading package in the OTA server to a vehicle for storage in advance, and sending an upgrading file to the target ECU for upgrading according to upgrading information in the upgrading package. The upgrading time is carried out by stages by sending the upgrading packet to the OTA server and receiving the upgrading packet by the ECU, the upgrading packet is downloaded to the vehicle in advance, and then the upgrading packet is transmitted to the target ECU through the internal CAN network, so that the upgrading packet data is prevented from being lost, and the problem of upgrading failure of the ECU caused by the fact that the vehicle fails to download the upgrading packet in the process of connecting the OTA server is solved.
In another aspect, the present invention provides a whole vehicle OTA upgrading system, which includes:
the OTA server connecting module is used for acquiring a pre-download request of the target ECU and connecting the OTA server according to the pre-download request;
the upgrading packet monitoring module is used for monitoring upgrading packet version information of a target ECU in the OTA server every first preset time after communication connection is established with the OTA server, and calling current version information of the target ECU in a target vehicle;
the judging module is used for judging whether an upgrade patch higher than the current version information exists in the upgrade patch version information of the target ECU in the OTA server;
the first execution module is used for sending an ECU (electronic control unit) upgrading request to the OTA server to obtain an upgrading packet which is issued by the OTA server according to the ECU upgrading request if the upgrading packet version information of the target ECU in the OTA server contains an upgrading packet higher than the current version information, wherein the upgrading packet comprises an upgrading file and upgrading information;
and the upgrading module is used for sending the upgrading file to the target ECU through the CAN network according to the upgrading information so as to upgrade the target ECU according to the upgrading file.
Another aspect of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the vehicle-wide OTA upgrade method as described above.
In another aspect, the present invention further provides a data processing device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the OTA upgrading method for a whole vehicle is implemented.
Drawings
FIG. 1 is a flowchart of a vehicle OTA upgrade method in a first embodiment of the present invention;
FIG. 2 is a flowchart of a vehicle OTA upgrade method in a second embodiment of the present invention;
FIG. 3 is a block diagram of a vehicle OTA upgrade system in a third embodiment of the present invention;
the following detailed description will further illustrate the invention in conjunction with the above-described figures.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Several embodiments of the invention are shown in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
It will be understood that when an element is referred to as being "secured to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. The terms "vertical," "horizontal," "left," "right," and the like as used herein are for illustrative purposes only.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
In the invention, the upgrading packet of the ECU is downloaded in advance in the storage system of the vehicle-mounted computer system during idle time, so that the vehicle-mounted computer system CAN directly search the upgrading packet to be downloaded when the ECU is upgraded every time, and the upgrading packet is transmitted to the target ECU through the CAN line. The vehicle machine system in the embodiment of the invention comprises a TBOX networking terminal, can be connected with an OTA server through a TBOX module of the vehicle machine system, and finishes the downloading of the OTA upgrade package. The TBOX networking terminal serves as a wireless gateway, and provides a remote communication interface for the whole vehicle through functions of 4G remote wireless communication, GPS satellite positioning, acceleration sensing, CAN communication and the like, and services including vehicle data acquisition, driving track recording, vehicle fault monitoring, vehicle remote inquiry and control (locking and unlocking, air conditioner control, vehicle window control, transmitter torque limitation, engine starting and stopping), driving behavior analysis, 4G wireless hotspot sharing and the like are provided. In the embodiment, the TBOX is mainly responsible for downloading the upgrade package by the networking OTA server and transmitting the OTA upgrade package data through the CAN network line.
Example one
Referring to fig. 1, a method for upgrading an OTA in a vehicle according to a first embodiment of the present invention includes steps S11 to S15.
S11, acquiring a pre-download request of the target ECU, and connecting the OTA server according to the pre-download request.
The pre-download installation package in the vehicle machine system refers to an upgrade package in the storage of the vehicle machine system during idle time downloading. The pre-download time can be actively set and automatically triggered.
The vehicle-mounted machine system is provided with a UI display interface, and the pre-downloading time is actively set to be automatically set on the UI display interface of the vehicle-mounted machine system or a mobile phone APP. The downloading time or the downloading frequency can be preset according to the requirement, for example, once a week and at night, 2-5.
The automatic triggering is based on the use condition of the vehicle ECU, for example, when the vehicle ECU has a fault, the automatic triggering triggers the pre-downloading request of the target ECU, and establishes a communication connection with the OTA server through the TBOX module.
And S12, monitoring the upgrade package version information of the target ECU in the OTA server every other first preset time after communication connection is established with the OTA server, and calling the current version information of the target ECU in the target vehicle.
After establishing communication connection with the OTA server, monitoring whether the OTA server has upgrade version update information of the vehicle target ECU for a first preset time, where the first preset time may be a preset interval time, for example, 1 h/time. Meanwhile, current version information of a target ECU of the target vehicle is acquired.
And S13, judging whether the upgrade package higher than the current version information exists in the upgrade package version information of the target ECU.
If there is an upgrade package higher than the current version information in the upgrade package version information of the target ECU, step S14 is performed.
And S14, sending an ECU (electronic control unit) upgrading request to the OTA server to acquire an upgrading packet sent by the OTA server according to the ECU upgrading request, wherein the upgrading packet comprises an upgrading file and upgrading information.
And comparing the updated version information on the OTA server with the current version information of the target ECU, judging whether the version information of the OTA server is higher than the current version information of the target ECU, if so, judging that the target ECU needs to be updated, and sending an ECU updating request to the OTA server.
And according to the ECU upgrading request, the OTA server checks the vehicle target ECU and judges whether the vehicle target ECU meets the upgrading condition. For example, it includes checking whether the memory information stored in the vehicle ECU conforms to the memory size of the upgrade package of the updated version information in the OTA server. And if the ECU storage space meets the memory requirement of the upgrade package, the OTA server issues an upgrade request success instruction. If the storage space is insufficient, the upgrade request of the target ECU fails.
And after the OTA is successfully verified, agreeing to the upgrading request of the target ECU, and automatically issuing the upgrading packet with the updated version information to the storage space of the vehicle-mounted computer system.
And in a plurality of preset times, according to a plurality of pre-download requests issued by the target ECU, the vehicle-mounted machine system receives a plurality of pieces of different version information and upgrading packages of different ECUs, and edits according to the ECU names and the version information of the upgrading packages, so that the pre-download upgrading packages are formed in the vehicle-mounted machine system. Meanwhile, if a plurality of ECU version information appears in the same target ECU in the upgrade package, the old version upgrade package is automatically deleted and replaced.
The upgrade package comprises upgrade information and an upgrade file, wherein the upgrade information comprises the upgrade condition of the target ECU, and the upgrade file comprises information such as data codes required by the upgrade of the target ECU.
And S15, sending the upgrade file to the target ECU through the CAN network according to the upgrade information so that the target ECU CAN be upgraded according to the upgrade file.
The upgrade information is analyzed to obtain preset target ECU upgrade time and upgrade status, where the upgrade time may be a fixed time period or after a preset time period, which is not limited in this embodiment. The upgrading state is the state of the vehicle, and in order to ensure the stability of the vehicle upgrading process, the upgrading state is generally set to be the parking state.
And after the upgrading time is reached, judging whether the state of the vehicle in the upgrading time accords with the upgrading state, namely judging whether the vehicle is in a parking state in the upgrading time. If yes, the upgrading file is sent to the storage of the target ECU through the CAN network within the upgrading time, and the code is updated according to the data in the upgrading file, so that OTA upgrading is completed. The upgrading file is sent to the target ECU according to the upgrading information, so that the stability of the upgrading process can be improved, and the problems of upgrading failure and the like caused by unstable driving of the vehicle are avoided.
In summary, in the OTA upgrading method for the whole vehicle in the above embodiments of the present invention, the OTA server is connected by obtaining the pre-download request of the target ECU, and whether the upgrade package is updated in the server is monitored, if yes, the upgrade request of the target ECU is obtained, the upgrade package in the OTA server is downloaded to the vehicle for storage in advance, and then the upgrade file is sent to the target ECU for upgrading according to the upgrade information in the upgrade package. The upgrading time is carried out by stages by sending the upgrading packet to the OTA server and receiving the upgrading packet by the ECU, the upgrading packet is downloaded to the vehicle in advance, and then the upgrading packet is transmitted to the target ECU through the internal CAN network, so that the upgrading packet data is prevented from being lost, and the problem of upgrading failure of the ECU caused by the fact that the vehicle fails to download the upgrading packet in the process of connecting the OTA server is solved.
Example two
Referring to fig. 2, a whole vehicle OTA upgrading method in a second embodiment of the present invention is shown, which includes steps S21-S27.
And S21, acquiring a pre-download request of the target ECU, and connecting the OTA server according to the pre-download request.
The pre-download installation package in the vehicle machine system refers to an upgrade package in the storage of the vehicle machine system during idle time downloading. The pre-download time can be actively set and automatically triggered.
The vehicle machine system is provided with a UI display interface, and the pre-downloading time is actively set to be automatically set on the UI display interface of the vehicle machine system or the mobile phone APP. The time of the pre-download can be preset download time or download frequency according to requirements, for example, once a week, at night 2-00.
The automatic triggering is according to the in service behavior of vehicle ECU, then trigger the download request in advance when vehicle ECU breaks down.
Specifically, the failure information of the vehicle ECU may be acquired according to the vehicle failure code. When the vehicle sends a fault, a vehicle fault code is recorded in a vehicle system, and the position and the reason of the fault of the vehicle can be checked through the vehicle fault code. The vehicle fault code is divided into a set fault code, a permanent fault code and an undetermined fault code, wherein the set fault code and the permanent fault code indicate that the vehicle has a fault, the temporary fault code indicates that the vehicle has a fault, and the fault code is eliminated after the fault is eliminated.
When the ECU of the vehicle electronic control system breaks down, the vehicle can record a vehicle fault code. And searching the position of the vehicle fault through the fault code, and judging whether the vehicle fault code disappears within a preset time, such as 24 h. If the vehicle has a temporary fault, the vehicle automatically disappears after the fault is automatically repaired; or after the vehicle breaks down, the fault is actively eliminated through active repair, and meanwhile, the fault code is also eliminated.
If the vehicle fault still exists, the fault code will reappear after the temporary occurrence. Partial vehicle trouble can eliminate the trouble through upgrading, consequently when the vehicle breaks down, ECU need upgrade to eliminate the trouble, promote the vehicle and use experience. And positioning the ECU with the fault according to the fault code, and acquiring a command to be upgraded of the target ECU with the fault.
When the vehicle ECU has a fault or reaches the preset pre-download time, a pre-download request of the target ECU is obtained, and the vehicle TBOX module is controlled to be connected with the OTA server according to the pre-download request of the target ECU so as to obtain ECU upgrade package information in the OTA server.
And S22, monitoring the upgrade package version information of the target ECU in the OTA server every first preset time after the communication connection with the OTA server is established, and calling the current version information of the target ECU in the target vehicle.
After establishing communication connection with the OTA server, monitoring whether the OTA server has upgrade version update information of the vehicle target ECU for a first preset time, where the first preset time may be a preset interval time, for example, 2 h/time. Meanwhile, current version information of a target ECU of the target vehicle is acquired.
And S23, judging whether the upgrade package higher than the current version information exists in the upgrade package version information of the target ECU.
If there is an upgrade package higher than the current version information in the upgrade package version information of the target ECU, step S24 is performed.
And comparing the updated version information on the OTA server with the current version information of the target ECU, judging whether the version information of the OTA server is higher than the current version information of the target ECU, if so, judging that the target ECU needs to be updated, determining the updated version information in the OTA server as the version information of the package to be updated of the target ECU, and updating the target ECU according to the update package of the version information of the package to be updated.
And S24, judging whether the upgrade package with the consistent version exists in the pre-downloaded upgrade package according to the upgrade package version information of the target ECU in the OTA server.
If the upgrade package of the consistent version exists, step S25 is executed.
If the upgrade package of the consistent version does not exist, step S26 is executed.
And S25, sending an ECU upgrading request to the OTA server, and sending an upgrading packet corresponding to version information to be upgraded of the target ECU in a pre-downloaded upgrading packet according to the ECU upgrading request to the target ECU through the CAN so as to upgrade the target ECU according to an upgrading file in the upgrading packet.
If the pre-downloaded upgrade package in the vehicle-mounted system contains the upgrade package version of the target ECU, namely the upgrade package of the target ECU is downloaded in advance, but the upgrade is delayed because the condition of the upgrade information is not met or the vehicle state is in a problem and the like. Therefore, after the ECU upgrading request is sent, the upgrading package of the version information to be upgraded in the pre-downloaded upgrading package is directly transmitted to the target ECU through the CAN network cable, so that the target ECU CAN be upgraded according to the upgrading file in the upgrading package.
And S26, sending an ECU (electronic control unit) upgrading request to the OTA server to acquire an upgrading packet issued by the OTA server according to the version information of the packet to be upgraded, wherein the upgrading packet comprises an upgrading file and upgrading information.
And sending an ECU upgrading request to the OTA server, and according to the ECU upgrading request, the OTA server checks the vehicle ECU and judges whether the vehicle ECU meets the upgrading condition or not. For example, it includes checking whether the memory information stored in the vehicle ECU conforms to the memory size of the upgrade package of the updated version information in the OTA server. And if the storage space meets the memory requirement, the OTA server issues an upgrade request success instruction. And if the storage space is insufficient, failing to acquire the upgrading request instruction of the target ECU. And when an upgrading request success instruction is obtained, the target ECU can be upgraded according to the upgrading packet.
And after the OTA is successfully verified, the OTA agrees with the upgrading request of the target ECU and automatically transmits the upgrading packet of the updated version information to the storage space of the vehicle-mounted machine system.
And in a plurality of preset times, according to a plurality of pre-download requests issued by the target ECU, the vehicle-mounted machine system receives a plurality of pieces of different version information and upgrading packages of different ECUs, and edits according to the ECU names and the version information of the upgrading packages, so that the pre-download upgrading packages are formed in the vehicle-mounted machine system. Meanwhile, if a plurality of ECU version information appears in the same target ECU in the pre-downloaded upgrade package, the old version upgrade package is automatically deleted and replaced.
The upgrade package comprises upgrade information and an upgrade file, wherein the upgrade information comprises the upgrade condition of the target ECU, and the upgrade file comprises data required by the upgrade of the target ECU.
And S27, sending the upgrade file to the target ECU through the CAN network according to the upgrade information so that the target ECU CAN be upgraded according to the upgrade file.
The upgrade information is analyzed to obtain preset target ECU upgrade time and upgrade status, where the upgrade time may be a time period or after a preset time, which is not limited in this embodiment. The upgrading state is the state of the vehicle, and in order to ensure the stability of the vehicle upgrading process, the upgrading state is generally set to be the parking state.
And after the upgrading time is reached, judging whether the state of the vehicle in the upgrading time accords with the upgrading state, namely judging whether the vehicle is in a parking state in the upgrading time. If yes, the upgrading file is sent to the storage of the target ECU through the CAN within the upgrading time, and the code is updated according to the data in the upgrading file, so that OTA upgrading is completed. The upgrading file is sent to the target ECU according to the upgrading information, so that the stability of the upgrading process can be improved, and the problems of upgrading failure and the like caused by unstable driving of the vehicle are avoided.
In summary, in the OTA upgrading method for the whole vehicle in the above embodiments of the present invention, the OTA server is connected by obtaining the pre-download request of the target ECU, and whether the upgrade package is updated in the server is monitored, if yes, the upgrade request of the target ECU is obtained, the upgrade package in the OTA server is downloaded to the vehicle for storage in advance, and then the upgrade file is sent to the target ECU for upgrading according to the upgrade information in the upgrade package. The upgrading time is carried out by stages by sending the upgrading packet to the OTA server and receiving the upgrading packet by the ECU, the upgrading packet is downloaded to the vehicle in advance, and then the upgrading packet is transmitted to the target ECU through the internal CAN network, so that the upgrading packet data is prevented from being lost, and the problem of upgrading failure of the ECU caused by the fact that the vehicle fails to download the upgrading packet in the process of connecting the OTA server is solved.
EXAMPLE III
In another aspect, the present invention further provides an OTA upgrading system for a whole vehicle, referring to fig. 3, a block diagram of the OTA upgrading system for a whole vehicle in the present embodiment is shown, where the system includes:
the OTA server connection module is used for acquiring a pre-download request of the target ECU and connecting the OTA server according to the pre-download request;
the system comprises an upgrade package monitoring module, an OTA server and a target vehicle, wherein the upgrade package monitoring module is used for monitoring the upgrade package version information of a target ECU in the OTA server every first preset time after establishing communication connection with the OTA server and calling the current version information of the target ECU in the target vehicle;
the judging module is used for judging whether an upgrade patch higher than the current version information exists in the upgrade patch version information of the target ECU in the OTA server;
the first execution module is used for sending an ECU (electronic control unit) upgrading request to the OTA server to acquire an upgrading packet issued by the OTA server according to the ECU upgrading request if the upgrading packet version information of a target ECU in the OTA server contains an upgrading packet higher than the current version information, wherein the upgrading packet comprises an upgrading file and upgrading information;
and the upgrading module is used for sending the upgrading file to the target ECU through a CAN (controller area network) according to the upgrading information so as to upgrade the target ECU according to the upgrading file.
Optionally, in some other optional embodiments, the system further comprises:
the pre-download request acquisition module is used for acquiring a vehicle fault code and positioning a target ECU with a fault according to the vehicle fault code;
detecting whether the vehicle fault code reappears within a preset time,
and if so, acquiring a pre-download request of the target ECU.
Optionally, in some other optional embodiments, the upgrade module includes:
the upgrading information confirming unit is used for analyzing the upgrading information to obtain upgrading time and upgrading state and judging whether the vehicle conforms to the upgrading state within the upgrading time or not according to the upgrading time;
and if so, sending the upgrading file to the storage of the target ECU through a CAN network within the upgrading time so as to upgrade the target ECU according to the upgrading file.
Optionally, in some other optional embodiments, the system further comprises:
and the pre-download upgrade package establishing module is used for acquiring the upgrade packages issued by the OTA servers according to the ECU upgrade requests and establishing the pre-download upgrade packages according to the version information of the upgrade packages and the corresponding target ECU information.
Optionally, in some other optional embodiments, the system comprises:
the pre-download upgrade package comparison module is used for determining the upgrade package version information of the target ECU in the OTA server as the version information to be upgraded of the target ECU, and searching whether an upgrade package consistent with the version information to be upgraded of the target ECU exists in the pre-download upgrade package;
if so, sending an upgrade package corresponding to the version information to be upgraded of the target ECU in the pre-downloaded upgrade package through the CAN according to the ECU upgrade request so that the target ECU CAN be upgraded according to the upgrade file in the upgrade package.
Optionally, in some other optional embodiments, the system comprises:
the upgrading state waiting module is used for continuously waiting until the vehicle conforms to the upgrading state if the vehicle does not conform to the upgrading state within the upgrading time;
and when the vehicle conforms to the upgrading state, sending the upgrading file to the storage of the target ECU through a CAN network so that the target ECU is upgraded according to the upgrading file.
Optionally, in some other optional embodiments, the system comprises:
the OTA upgrading verification module is used for upgrading and verifying the target ECU according to the ECU upgrading request so as to judge whether the target ECU meets the upgrading condition;
and if so, acquiring an upgrading request success instruction issued by the OTA server to the target ECU.
In summary, in the OTA upgrading system for a whole vehicle in the above embodiments of the present invention, the OTA server is connected by obtaining the pre-download request of the target ECU, and whether the upgrade package is updated in the server is monitored, if yes, the upgrade request of the target ECU is obtained, the upgrade package in the OTA server is downloaded to the vehicle for storage in advance, and then the upgrade file is sent to the target ECU for upgrading according to the upgrade information in the upgrade package. The upgrading time is carried out by stages by sending the upgrading packet to the OTA server and receiving the upgrading packet by the ECU, the upgrading packet is downloaded to the vehicle in advance, and then the upgrading packet is transmitted to the target ECU through the internal CAN network, so that the upgrading packet data is prevented from being lost, and the problem of upgrading failure of the ECU caused by the fact that the vehicle fails to download the upgrading packet in the process of connecting the OTA server is solved.
The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the complete OTA upgrade method in the above embodiment.
Example four
In another aspect, the present invention further provides an apparatus, where the system includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the OTA upgrading method in the above embodiments. In some embodiments, the processor may be an Electronic Control Unit (ECU), a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip, and is configured to run program codes stored in the memory or process data, such as executing an access restriction program.
Wherein the memory includes at least one type of readable storage medium including flash memory, hard disks, multimedia cards, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disks, optical disks, etc. The memory may in some embodiments be an internal storage unit of the device, for example a hard disk of the device. The memory may also be an external storage device of the device in other embodiments, such as a plug-in hard disk provided on the device, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash card (FlashCard), and the like. Further, the memory may also include both internal storage units of the device and external storage. The memory can be used not only for storing application software and various types of data installed in the device but also for temporarily storing data that has been output or is to be output.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following technologies, which are well known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A whole vehicle OTA upgrading method is applied to a vehicle-mounted terminal, and is characterized by comprising the following steps:
acquiring a pre-download request of a target ECU, and connecting an OTA server according to the pre-download request;
monitoring upgrade package version information of a target ECU in an OTA server every other first preset time after communication connection is established with the OTA server, and calling current version information of the target ECU in a target vehicle;
judging whether an upgrade patch higher than the current version information exists in the upgrade patch version information of the target ECU in the OTA server;
if an upgrade package higher than the current version information exists in the upgrade package version information of a target ECU in the OTA server, sending an ECU upgrade request to the OTA server to obtain an upgrade package issued by the OTA server according to the ECU upgrade request, wherein the upgrade package comprises an upgrade file and upgrade information;
and sending the upgrading file to the target ECU through a CAN network according to the upgrading information so as to upgrade the target ECU according to the upgrading file.
2. The OTA upgrade method for the whole vehicle according to claim 1, wherein the step of obtaining a pre-download request of the target ECU and connecting the OTA server according to the pre-download request is preceded by the steps of:
acquiring a vehicle fault code, and positioning a target ECU with a fault according to the vehicle fault code;
detecting whether the vehicle fault code reappears within a preset time,
and if so, acquiring a pre-download request of the target ECU.
3. The OTA upgrading method for the whole vehicle according to claim 1, wherein the step of sending the upgrading file to the target ECU through a CAN network according to the upgrading information so that the target ECU CAN be upgraded according to the upgrading file comprises the following steps:
analyzing the upgrading information to obtain upgrading time and upgrading state, and judging whether the vehicle conforms to the upgrading state within the upgrading time according to the upgrading time;
and if so, sending the upgrading file to the storage of the target ECU through a CAN network within the upgrading time so as to upgrade the target ECU according to the upgrading file.
4. The OTA upgrading method for the whole vehicle according to claim 1, wherein the step of obtaining the upgrading packet sent by the OTA server according to the ECU upgrading request further comprises:
and obtaining the upgrade packages issued by the OTA servers according to the ECU upgrade requests, and establishing the pre-download upgrade packages according to the version information of the upgrade packages and the corresponding target ECU information.
5. The OTA upgrading method for the whole vehicle according to claim 4, wherein if the upgrading packet version information of the target ECU in the OTA server includes the upgrading packet higher than the current version information, the step of sending the ECU upgrading request to the OTA server includes:
determining the version information of the target ECU in the OTA server as the version information to be upgraded of the target ECU, and searching whether an upgrade packet consistent with the version information to be upgraded of the target ECU exists in the pre-downloaded upgrade packet;
if so, sending an upgrade package corresponding to the version information to be upgraded of the target ECU in the pre-downloaded upgrade package through the CAN according to the ECU upgrade request so that the target ECU CAN be upgraded according to the upgrade file in the upgrade package.
6. The OTA upgrade method for entire vehicles according to claim 3, wherein the step of judging whether the vehicles meet the upgrade status within the upgrade time according to the upgrade time further comprises:
if the vehicle does not accord with the upgrading state within the upgrading time, continuing to wait until the vehicle accords with the upgrading state;
and when the vehicle conforms to the upgrading state, sending the upgrading file to the storage of the target ECU through a CAN network so that the target ECU is upgraded according to the upgrading file.
7. The finished automobile OTA upgrading method according to claim 5, characterized in that if the upgrading packet version information of the target ECU in the OTA server has the upgrading packet higher than the current version information, the step of sending the ECU upgrading request to the OTA server comprises the following steps:
carrying out upgrade check on the target ECU according to the ECU upgrade request so as to judge whether the target ECU meets the upgrade condition;
and if so, acquiring an upgrading request success instruction issued to the target ECU by the OTA server.
8. A whole-vehicle OTA upgrading system is characterized by comprising:
the OTA server connection module is used for acquiring a pre-download request of the target ECU and connecting the OTA server according to the pre-download request;
the system comprises an upgrade package monitoring module, an OTA server and a target vehicle, wherein the upgrade package monitoring module is used for monitoring the upgrade package version information of a target ECU in the OTA server every other first preset time after establishing communication connection with the OTA server and calling the current version information of the target ECU in the target vehicle;
the judging module is used for judging whether an upgrade package higher than the current version information exists in the upgrade package version information of the target ECU in the OTA server;
the first execution module is used for sending an ECU (electronic control unit) upgrading request to the OTA server to acquire an upgrading packet issued by the OTA server according to the ECU upgrading request if the upgrading packet version information of a target ECU in the OTA server contains an upgrading packet higher than the current version information, wherein the upgrading packet comprises an upgrading file and upgrading information;
and the upgrading module is used for sending the upgrading file to the target ECU through a CAN network according to the upgrading information so as to upgrade the target ECU according to the upgrading file.
9. A computer-readable storage medium on which a computer program is stored which, when executed by a processor, carries out a full vehicle OTA upgrade method according to any one of claims 1 to 7.
10. A data processing device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor, when executing the program, implements the entire OTA upgrading method according to any of the claims 1-7.
CN202210903841.8A 2022-07-29 2022-07-29 Finished automobile OTA (over the air) upgrading method, system, storage medium and equipment Pending CN115344281A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210903841.8A CN115344281A (en) 2022-07-29 2022-07-29 Finished automobile OTA (over the air) upgrading method, system, storage medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210903841.8A CN115344281A (en) 2022-07-29 2022-07-29 Finished automobile OTA (over the air) upgrading method, system, storage medium and equipment

Publications (1)

Publication Number Publication Date
CN115344281A true CN115344281A (en) 2022-11-15

Family

ID=83949961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210903841.8A Pending CN115344281A (en) 2022-07-29 2022-07-29 Finished automobile OTA (over the air) upgrading method, system, storage medium and equipment

Country Status (1)

Country Link
CN (1) CN115344281A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116088913A (en) * 2023-04-11 2023-05-09 北京集度科技有限公司 Integrated device, method and computer program product for whole vehicle upgrade software
CN116307949A (en) * 2023-05-24 2023-06-23 江西五十铃汽车有限公司 Vehicle OTA component production line verification method, device, medium and program product

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116088913A (en) * 2023-04-11 2023-05-09 北京集度科技有限公司 Integrated device, method and computer program product for whole vehicle upgrade software
CN116307949A (en) * 2023-05-24 2023-06-23 江西五十铃汽车有限公司 Vehicle OTA component production line verification method, device, medium and program product
CN116307949B (en) * 2023-05-24 2023-08-22 江西五十铃汽车有限公司 Vehicle OTA component production line verification method, device, medium and program product

Similar Documents

Publication Publication Date Title
US7366589B2 (en) Method and system for remote reflash
CN115344281A (en) Finished automobile OTA (over the air) upgrading method, system, storage medium and equipment
CN105589719B (en) system for remotely upgrading whole vehicle-mounted controller software and upgrading method
CN111061499B (en) ECU updating method and system based on file system
CN109831338B (en) Vehicle machine system upgrading method, cloud server and mobile terminal
CN111614765A (en) Vehicle OTA (over the air) upgrading method and system
US20180095745A1 (en) Computer System, Method of Updating Software with Computer System, and Program Therefor
US20170242678A1 (en) Method and apparatus for vehicle software update installation
US20170242679A1 (en) Method and apparatus for over the air updates
CN112328294A (en) OTA (over the air) upgrading method and system for vehicle ECU (electronic control Unit)
CN112470118A (en) Vehicle electronic control system, program update consent determination method, and program update consent determination program
CN111064803A (en) Vehicle software upgrading method and upgrading system
CN110139243B (en) Vehicle monitoring method, monitoring terminal, vehicle monitoring system and medium
CN112423266B (en) Vehicle diagnosis method and device and automobile
KR102249222B1 (en) Apparatus and system and method for software update of vehicle
CN103577754A (en) Plugin installation detection method and device
CN113778050A (en) Vehicle remote diagnosis method and device, storage medium and vehicle after-sale terminal
CN113238774A (en) Vehicle-mounted greeting animation updating method and device, vehicle-mounted terminal and storage medium
CN110187904B (en) Device and method for updating vehicle controller firmware
US10002082B2 (en) Method and apparatus for cyclical key-off file replacement
CN116257270A (en) Vehicle, upgrading method and device of vehicle
CN115291907A (en) Vehicle upgrading method, device and system
CN114691174A (en) Vehicle-mounted software upgrading method, device and equipment
CN113625690A (en) Intelligent diagnosis method and system for automobile and mobile terminal
CN115315927A (en) In-vehicle information processing device, information processing method, and client program

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