CN112181449A - Vehicle-mounted software upgrading method, device, system and storage medium - Google Patents

Vehicle-mounted software upgrading method, device, system and storage medium Download PDF

Info

Publication number
CN112181449A
CN112181449A CN201910593547.XA CN201910593547A CN112181449A CN 112181449 A CN112181449 A CN 112181449A CN 201910593547 A CN201910593547 A CN 201910593547A CN 112181449 A CN112181449 A CN 112181449A
Authority
CN
China
Prior art keywords
software
upgrade
vehicle
server
upgrading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910593547.XA
Other languages
Chinese (zh)
Other versions
CN112181449B (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.)
Guangzhou Automobile Group Co Ltd
Original Assignee
Guangzhou Automobile Group 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 Guangzhou Automobile Group Co Ltd filed Critical Guangzhou Automobile Group Co Ltd
Priority to CN201910593547.XA priority Critical patent/CN112181449B/en
Publication of CN112181449A publication Critical patent/CN112181449A/en
Application granted granted Critical
Publication of CN112181449B publication Critical patent/CN112181449B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

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 discloses a method, a device, a system and a storage medium for upgrading vehicle-mounted software, wherein the method comprises the following steps: acquiring upgrade software read by a vehicle from external equipment, and verifying the upgrade software according to a preset software verification algorithm to generate a software verification value; uploading the software check value and the software version number of the upgraded software as check information to a server for matching; if the matching is successful, upgrading the vehicle-mounted software according to the upgrading software; if the matching is unsuccessful, sending an upgrading software issuing request to the server so that the server issues the pre-stored upgrading software corresponding to the software version number according to the upgrading software issuing request; and upgrading the vehicle-mounted software according to the received upgrading software. The invention solves the problem of unsafe upgrading of the vehicle-mounted software by reading the upgrading software from the external equipment in the prior art.

Description

Vehicle-mounted software upgrading method, device, system and storage medium
Technical Field
The invention relates to the technical field of vehicles, in particular to a method, a device, a system and a storage medium for upgrading vehicle-mounted software.
Background
At present, in view of the fact that the communication of the network between the vehicle and the server is easily affected by the current environment of the vehicle, and when the upgrade software of the vehicle-mounted software is downloaded through the network between the vehicle and the server, a large amount of traffic of the network between the vehicle and the server is occupied and normal transmission of other data between the vehicle and the server is affected. Therefore, in order to avoid the above-mentioned problems caused by downloading the upgrade software (often a large data package) of the in-vehicle software from the server through the network, the upgrade of the in-vehicle software (e.g., the electronic control unit software of the vehicle) of the existing vehicle is often performed not by requesting the server to issue the upgrade software, but by generally reading the upgrade software from an external device (e.g., a USB storage device) in which the upgrade software is stored in advance. However, when the upgrade software is read from the external device to upgrade the vehicle-mounted software, the user cannot judge whether the file is correct or tampered, and certain safety risks exist.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a system and a storage medium for upgrading vehicle-mounted software, which can effectively solve the problem of unsafe vehicle-mounted software upgrading caused by reading upgrading software from external equipment in the prior art.
An embodiment of the present invention provides a method for upgrading vehicle-mounted software, including:
acquiring upgrade software read by a vehicle from external equipment at present, and verifying the upgrade software according to a preset software verification algorithm to generate a software verification value;
uploading the software check value and the acquired software version number of the upgraded software as check information to a server so that the server matches the check information;
responding to a received upgrading permission instruction sent by the server after the verification information is successfully matched, and upgrading the corresponding vehicle-mounted software of the vehicle according to the upgrading software; or responding to a received upgrade negative instruction sent by the server after the matching of the software verification value fails and the matching of the software version number succeeds, and sending an upgrade software issuing request to the server, so that the server issues pre-stored upgrade software corresponding to the software version number according to the upgrade software issuing request, and upgrades corresponding vehicle-mounted software of the vehicle according to the received upgrade software issued by the server.
As an improvement of the above solution, after the uploading the software verification value and the acquired software version number of the upgraded software as verification information to a server so that the server matches the verification information, the method further includes:
and responding to a received upgrade termination instruction sent by the server after the matching of the software version number fails, and terminating the upgrade of the vehicle-mounted software of the vehicle by the upgrade software.
As an improvement of the above solution, the upgrading the corresponding vehicle software of the vehicle according to the received upgrade software issued by the server includes:
receiving the upgrade software issued by the server, and diagnosing whether the upgrade software issued by the server is complete according to a preset upgrade software diagnosis and refresh rule;
and if so, upgrading the corresponding vehicle-mounted software of the vehicle according to the upgrading software issued by the server.
As an improvement of the above solution, the sending, in response to a received upgrade negative instruction sent by the server after the matching of the software verification value fails and the matching of the software version number succeeds, an upgrade software delivery request to the server, so that the server delivers, according to the upgrade software delivery request, upgrade software that is pre-stored and corresponds to the software version number, includes:
responding to a received upgrade negative instruction which is sent by the server after the software verification value is unsuccessfully matched and the software version number is successfully matched, and controlling a display device of the vehicle to display an operation option whether the upgrade software is downloaded or not for a user to select;
and responding to the operation of selecting the upgrade software to download, and sending an upgrade software issuing request to the server so that the server issues the upgrade software which is pre-stored and corresponds to the software version number according to the upgrade software issuing request.
As an improvement of the above scheme, the server stores the verification information in advance, specifically: after receiving the uploaded upgrade software, the server verifies the upgrade software according to a preset software verification algorithm to generate a software verification value, and obtains a software version number of the upgrade software, so that the verification information of the upgrade software is obtained and stored.
As an improvement of the scheme, the vehicle-mounted software is electronic control unit software of the vehicle.
Another embodiment of the present invention correspondingly provides a vehicle-mounted software upgrading apparatus, including:
the software checking module is used for acquiring upgrade software read by the vehicle from external equipment at present, checking the upgrade software according to a preset software checking algorithm and generating a software checking value;
the information uploading module is used for uploading the software check value and the acquired software version number of the upgraded software as check information to a server so that the server can match the check information;
the first response module is used for responding to the received upgrade permission instruction which is sent by the server after the verification information is successfully matched, and upgrading the corresponding vehicle-mounted software of the vehicle according to the upgrade software;
and the second response module is used for responding to a received upgrade negative instruction which is sent by the server after the matching of the software verification value fails and the matching of the software version number succeeds, sending an upgrade software issuing request to the server so as to enable the server to issue pre-stored upgrade software corresponding to the software version number according to the upgrade software issuing request, and upgrading corresponding vehicle-mounted software of a vehicle according to the received upgrade software issued by the server.
Another embodiment of the present invention correspondingly provides a vehicle-mounted software upgrading system, including: the software reading device is used for reading the upgrading software from the external equipment, and the wireless communication module and the gateway are used for communicating with the server; the software reading device and the wireless communication module are both connected with the gateway;
the gateway comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the in-vehicle software upgrading method when executing the computer program.
As an improvement of the scheme, the vehicle-mounted software is electronic control unit software of the vehicle.
The invention correspondingly provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program runs, the device where the computer-readable storage medium is located is controlled to execute the vehicle-mounted software upgrading method.
Compared with the prior art, the vehicle-mounted software upgrading method, the vehicle-mounted software upgrading device, the storage medium and the vehicle-mounted system disclosed by the embodiment of the invention have the advantages that in the process of reading the upgrading software by a vehicle and upgrading the vehicle-mounted software, the upgrading software read from the external equipment is verified through a preset software checking algorithm to generate a software verification value, and the verification value and the software version number are sent to a server to be matched so as to perform safety verification on the correctness of the upgrading software. When the verification information is successfully matched, the upgrading software is safe, and at the moment, the corresponding vehicle-mounted software of the vehicle can be upgraded according to an upgrading permission instruction issued by the server. And when the matching of the software check value fails and the matching of the software version number is successful, the upgrading software is indicated to be unsafe, the server is requested to issue safe upgrading software at the moment, and corresponding vehicle-mounted software of the vehicle is upgraded according to the upgrading software issued by the server, so that the safety of vehicle-mounted software upgrading of the vehicle is ensured. In addition, because the upgrade software is required to be downloaded from the server only when the upgrade software read from the external device is verified to be unsafe, and normal vehicle-mounted software upgrading can be performed when the upgrade software read from the external device is verified to be safe, the embodiment of the invention can also avoid the related problems caused by always downloading the upgrade software from the server to a certain extent.
Drawings
Fig. 1 is a schematic flowchart of a method for upgrading vehicle-mounted software according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a vehicle-mounted software upgrading device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an in-vehicle software upgrading system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow chart of a vehicle-mounted software upgrading method according to an embodiment of the present invention.
The vehicle-mounted software method provided by the embodiment can be executed by a vehicle-mounted software upgrading system of a vehicle, specifically, a gateway of the vehicle. The vehicle-mounted software upgrading system can be realized in a software and/or hardware mode, and the vehicle-mounted software upgrading system can be formed by two or more physical entities or can be formed by one physical entity.
Further, the gateway of the vehicle-mounted software upgrading system is connected with the software reading device 1 of the vehicle, the wireless communication module 3, the display system of the vehicle, the driving system of the vehicle, and the like (the connection mode may be a wired connection mode, a wireless connection mode, and the like). The vehicle-mounted software upgrading system reads upgrading software from external equipment through the software reading device 1, verifies the upgrading software to obtain a check value, sends the obtained version number of the upgrading software and the check value to the wireless communication module 3, communicates with a server through the wireless communication module 3 to enable the server to match the version number of the upgrading software with the check value, and displays the content such as software upgrading state information to a user through a display system of a control vehicle. It should be noted that the various information may be directly sent to the vehicle-mounted software upgrading system, or may be sent to another information processing device first, and then the information processing device sends the processed information to the vehicle-mounted software upgrading system after corresponding information processing.
In the present embodiment, the wireless communication module 3 is an Electronic Control Unit (ECU) integrated with an extranet communication function, such as a T-Box, of the vehicle. The software reading device 1 may be an ECU of a vehicle, which has a function of reading upgrade software of on-board software from an external device, and the ECU may read corresponding upgrade software from the external device through a USB interface, an OBD diagnostic interface, or the like. The onboard software may be electronic control unit software (i.e., ECU software) of the vehicle, or may also be gateway driver software, etc., and is not limited herein.
The vehicle-mounted software upgrading method provided by the embodiment of the invention comprises the following steps:
and S10, obtaining the upgrade software read by the vehicle from the external equipment at present, and verifying the upgrade software according to a preset software verification algorithm to generate a software verification value.
In the present embodiment, the external device is, for example, a USB storage device (e.g., a USB disk); the preset software checking algorithm is a CRC algorithm, and may also be other algorithms that can calculate a software check value, and is not specifically limited herein.
By way of example, the gateway 2 controls the software reading device 1 of the vehicle to read the ECU software from the USB storage device and transmit the ECU software to the gateway 2 through the ethernet of the vehicle, and the gateway 2 checks the ECU software according to the CRC algorithm and calculates a software check value. The ECU software may send to the gateway 2 using a known file transfer protocol, or using a custom file transfer protocol, which is not limited herein.
And S20, uploading the software check value and the acquired software version number of the upgraded software as check information to a server so that the server matches the check information.
The server stores the verification information in advance, and specifically includes: after the upgrade software of the vehicle-mounted software is released, the corresponding upgrade software can be uploaded to a server in advance, after the server receives the uploaded upgrade software, the upgrade software is checked according to a preset software checking algorithm (such as a CRC algorithm) to generate a software check value, a software version number of the upgrade software is obtained (the server obtains the software version number of the upgrade software according to a preset software generation rule), so that the check information of the upgrade software is obtained, and the check information generation software version number and the check value are stored according to the form of table 1.
TABLE 1 comparison table of software version number and check value
Software version number Check value Document storage location
20190419XXXXX.A AAAA -file storage address-
20190419XXXXX.B BBBB -file storage address-
20190419XXXXX.C CCCC -file storage address-
…… …… -file storage address-
Specifically, the gateway 2 obtains the software version number of the upgrade software according to a preset software generation rule. The software generation rule is as follows: the software version number is parsed from the fixed-length header information of the software. And uploading the verification information consisting of the software version number and the verification value to a server through the wireless communication module 3 for matching.
And S30, responding to the received upgrade permission instruction sent by the server after the verification information is successfully matched, and upgrading the corresponding vehicle-mounted software of the vehicle according to the upgrade software.
Illustratively, when the software version number and the check value in the check information analyzed by the server are both successfully matched with the software version number and the software check value in the check information prestored in the server (that is, it indicates that the upgrade software read from the external device is correct and safe), at this time, the server generates a corresponding upgrade permission instruction, and transmits the upgrade permission instruction to the gateway 2 through the wireless communication module 3, and the gateway 2 controls the upgrade software to upgrade the vehicle-mounted software corresponding to the vehicle according to the instruction.
S30', responding to the received upgrade negative instruction sent by the server after the matching of the software check value fails and the matching of the software version number succeeds, sending an upgrade software issuing request to the server, so that the server issues pre-stored upgrade software corresponding to the software version number according to the upgrade software issuing request, and upgrading the corresponding vehicle-mounted software of the vehicle according to the received upgrade software issued by the server.
Specifically, after the server analyzes the software verification value and the software version number from the received verification information, the server performs matching verification on the software verification value and the software version number respectively, and if the server fails to match the software verification value and the software version number is successfully matched, the server generates an upgrade denial instruction and issues the upgrade denial instruction to the gateway 2 (that is, it indicates that the upgrade software acquired from the external device is unsafe). The gateway sends an upgrade software issuing request to the server, namely the server is requested to issue the upgrade software which is pre-stored and corresponds to the software version number, and the gateway can upgrade the corresponding vehicle-mounted software of the vehicle according to the received upgrade software issued by the server.
In summary, in the embodiment of the present invention, in the process of reading the upgrade software by the vehicle and upgrading the vehicle-mounted software, the upgrade software read from the external device is verified through a preset software verification algorithm to generate a software verification value, and the verification value and the software version number are sent to the server for matching, so as to perform security verification on the correctness of the upgrade software. When the verification information is successfully matched, the upgrading software is safe, and at the moment, the corresponding vehicle-mounted software of the vehicle can be upgraded according to an upgrading permission instruction issued by the server. And when the matching of the software check value fails and the matching of the software version number is successful, the upgrading software is indicated to be unsafe, the server is requested to issue safe upgrading software at the moment, and corresponding vehicle-mounted software of the vehicle is upgraded according to the upgrading software issued by the server, so that the safety of vehicle-mounted software upgrading of the vehicle is ensured. In addition, because the upgrade software is required to be downloaded from the server only when the upgrade software read from the external device is verified to be unsafe, and normal vehicle-mounted software upgrading can be performed when the upgrade software read from the external device is verified to be safe, the embodiment of the invention can also avoid the related problems caused by always downloading the upgrade software from the server to a certain extent.
Optionally, in an embodiment of the present invention, after step S20, the method further includes:
and S21, responding to the received upgrade termination instruction sent by the server after the matching of the software version number fails, and terminating the upgrade of the vehicle-mounted software of the vehicle by the upgrade software.
Wherein, the failure of matching the software version number comprises: the software version number is incorrect or the software version number in the check information cannot be found. If the software version number is incorrect or the software version number cannot be found, the upgrade software which is stored in advance and corresponds to the software version number cannot be found, and the server cannot execute the software issuing step, so that an instruction for terminating the upgrade is sent to the gateway 2.
In any of the above embodiments, specifically, the upgrading the corresponding vehicle-mounted software of the vehicle according to the received upgrade software issued by the server includes steps S500 to S501:
s500, receiving the upgrade software issued by the server, and diagnosing whether the upgrade software is complete according to a preset upgrade software diagnosis rule.
In this embodiment, the gateway downloads the upgrade software issued by the server, and then diagnoses the upgrade software according to the preset upgrade software diagnosis rule, although the upgrade software issued by the server is safe, the integrity of the upgrade software can be diagnosed through the preset upgrade software diagnosis refresh rule, thereby further ensuring the safe upgrade of the vehicle-mounted software of the vehicle. Illustratively, the upgrade software Diagnostic refresh rule may be a Universal Diagnostic Services (UDS) protocol.
And S501, if yes, upgrading the corresponding vehicle-mounted software of the vehicle according to the upgrading software.
In this embodiment, if the diagnosis result of the gateway is that the upgrade software is complete (i.e., the upgrade software is complete and correct), the corresponding vehicle-mounted software of the vehicle is upgraded according to the upgrade software.
After the step S500, the method may further include a step S502 of:
and S502, if not, terminating upgrading of the corresponding vehicle-mounted software of the vehicle.
In this embodiment, if the diagnosis result of the gateway is that the upgrade software is not complete, it indicates that the upgrade software is correct but incomplete, so that the upgrade of the corresponding vehicle-mounted software of the vehicle is terminated.
In any of the above embodiments, specifically, the sending, in response to the received upgrade negative instruction sent by the server after the matching of the software verification value fails and the matching of the software version number succeeds, an upgrade software delivery request to the server, so that the server delivers, according to the upgrade software delivery request, upgrade software that is pre-stored and corresponds to the software version number includes steps S400 to S401:
s400, responding to a received upgrade negative instruction which is sent by the server after the software verification value is unsuccessfully matched and the software version number is successfully matched, and controlling a display device of the vehicle to display whether the upgrade software downloads an operation option or not so as to be selected by a user.
Specifically, when the server fails to match the software verification value and successfully matches the software version number, it indicates that the upgrade software currently read by the vehicle is unsafe, and indicates that the upgrade software corresponding to the software version number is pre-stored in the server, at this time, the server sends a negative upgrade instruction to the gateway, and the gateway responds to the negative upgrade instruction received, and controls a display device of the vehicle to display whether the upgrade software downloads an operation option for a user to select. In addition, the gateway can also control a display device of the vehicle to display content information such as upgrade failure and the like so as to prompt a user that the upgrade software read by the vehicle currently is unsafe.
S401, responding to the operation that the user selects the upgrade software to download, and sending an upgrade software issuing request to the server, so that the server issues the upgrade software which is pre-stored and corresponds to the software version number according to the upgrade software issuing request.
Specifically, if the user selects the downloading operation, the gateway responds to the operation and sends an upgrade software issuing request to the server. And after receiving the request, the server searches whether the upgrading software corresponding to the software version number exists in the server according to the software version number, if the upgrading software corresponding to the software version number is stored in the server in advance, the server is requested to issue the prestored upgrading software corresponding to the software version number, and the gateway can continuously upgrade the vehicle-mounted software corresponding to the vehicle according to the received upgrading software. In addition, after the upgrade is completed, the gateway can send the instruction of successful upgrade to the display device of the vehicle-mounted software upgrade system, and control the display device to display the successful upgrade so as to inform the user.
After the step S400, the method may further include a step S402 of:
s402, responding to the operation that the user selects not to download the upgrading software, and terminating the upgrading of the corresponding vehicle-mounted software of the vehicle.
Specifically, if the user chooses not to download the upgrade software in the server, the gateway 2 controls the vehicle-mounted software to terminate the upgrade.
Fig. 2 is a schematic structural diagram of a vehicle-mounted software upgrading device according to an embodiment of the present invention. Wherein, on-vehicle software upgrading device includes:
the software checking module 10 is configured to acquire upgrade software currently read by a vehicle from an external device, check the upgrade software according to a preset software checking algorithm, and generate a software checking value;
the information uploading module 20 is configured to upload the software verification value and the acquired software version number of the upgraded software as verification information to a server, so that the server matches the verification information;
the first response module 30 is configured to respond to the received upgrade permission instruction sent by the server after the verification information is successfully matched, and upgrade the corresponding vehicle-mounted software of the vehicle according to the upgrade software;
the second response module 30' is configured to send an upgrade software issuing request to the server in response to a received upgrade negative instruction sent by the server after the matching of the software verification value fails and the matching of the software version number succeeds, so that the server issues pre-stored upgrade software corresponding to the software version number according to the upgrade software issuing request, and upgrades corresponding vehicle-mounted software of the vehicle according to the received upgrade software issued by the server.
As an improvement of the above scheme, the vehicle-mounted software upgrading device further includes:
and the third response module is used for responding to the received upgrade termination instruction which is sent by the server after the matching of the software version number fails, and terminating the upgrade of the vehicle-mounted software of the vehicle by the upgrade software.
As an improvement of the above solution, the specific way of "upgrading the corresponding vehicle software of the vehicle according to the received upgrade software issued by the server" implemented by the second response module 30' is as follows: receiving the upgrade software issued by the server, and diagnosing whether the upgrade software is complete according to a preset upgrade software diagnosis rule; and if so, upgrading the corresponding vehicle-mounted software of the vehicle according to the upgrading software.
As an improvement of the above solution, the specific way of the second response module 30' responding to the received upgrade negative instruction sent by the server after the matching of the software verification value fails and the matching of the software version number succeeds, and sending an upgrade software issuing request to the server so that the server issues the upgrade software corresponding to the software version number and stored in advance according to the upgrade software issuing request is as follows:
responding to a received upgrade negative instruction which is sent by the server after the software verification value is unsuccessfully matched and the software version number is successfully matched, and controlling a display device of a vehicle to display whether the upgrade software downloads an operation option or not so as to be selected by a user;
and responding to the operation of selecting the upgrade software to download, and sending an upgrade software issuing request to the server so that the server issues the upgrade software which is pre-stored and corresponds to the software version number according to the upgrade software issuing request.
The server stores the verification information in advance, and specifically includes: after receiving the uploaded upgrade software, the server verifies the upgrade software according to a preset software verification algorithm to generate a software verification value, and obtains a software version number of the upgrade software, so that the verification information of the upgrade software is obtained and stored.
As an improvement of the scheme, the vehicle-mounted software is electronic control unit software of the vehicle.
In summary, in the embodiment of the present invention, the software verification module verifies the upgrade software read from the external device to generate a verification value, the information uploading module uploads the verification value and the obtained software version number to the server for matching, and if the first response module receives an upgrade permission instruction issued by the server, the corresponding vehicle-mounted software of the vehicle is upgraded. If the second response module receives the upgrade negative instruction sent by the server (namely, the upgrade software read from the external equipment is unsafe), the second response module sends a sending request to the server to request the server to send the upgrade software which is prestored and corresponds to the software version number, and the vehicle-mounted software is upgraded through the software upgrade module, so that the safety of vehicle-mounted software upgrade of the vehicle is ensured. In addition, because the upgrade software is required to be downloaded from the server only when the upgrade software read from the external device is verified to be unsafe, and normal vehicle-mounted software upgrading can be performed when the upgrade software read from the external device is verified to be safe, the embodiment of the invention can also avoid the related problems caused by always downloading the upgrade software from the server to a certain extent.
Fig. 3 is a schematic diagram of an in-vehicle software upgrading system according to an embodiment of the present invention. Wherein, on-vehicle software upgrade system includes: the software upgrading system comprises a software reading device 1 for reading upgrading software from external equipment, a wireless communication module 3 for communicating with a server and a gateway 2, wherein the software reading device 1 and the wireless communication module 3 are both connected with the gateway 2.
The gateway 2 comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, and the processor implements the vehicle-mounted software upgrading method according to the above embodiment when executing the computer program.
As an improvement of the scheme, the vehicle-mounted software is electronic control unit software of the vehicle.
And when the processor executes the computer program, the steps in each vehicle-mounted software upgrading method embodiment are realized. Alternatively, the processor implements the functions of the modules/units in the above device embodiments when executing the computer program.
Illustratively, the computer program may be partitioned into one or more modules/units that are stored in the memory and executed by the processor to implement the invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program in the in-vehicle software upgrading system.
The in-vehicle software upgrade system may include, but is not limited to, a processor, a memory. It will be understood by those skilled in the art that the schematic diagram is merely an example of an in-vehicle software upgrade system, and does not constitute a limitation of the in-vehicle software upgrade system, and may include more or less components than those shown, or some components in combination, or different components, for example, the in-vehicle software upgrade system may further include an input-output device, a network access device, a bus, etc.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor is the control center of the vehicle software upgrading system, and various interfaces and lines are used for connecting various parts of the whole vehicle software upgrading system.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the in-vehicle software upgrade system by operating or executing the computer programs and/or modules stored in the memory and calling up data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Wherein, the module/unit integrated with the vehicle-mounted software upgrading system can be stored in a computer readable storage medium if the module/unit is realized in the form of a software functional unit and sold or used as an independent product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (10)

1. A vehicle-mounted software upgrading method is characterized by comprising the following steps:
acquiring upgrade software read by a vehicle from external equipment at present, and verifying the upgrade software according to a preset software verification algorithm to generate a software verification value;
uploading the software check value and the acquired software version number of the upgraded software as check information to a server so that the server matches the check information;
responding to a received upgrading permission instruction sent by the server after the verification information is successfully matched, and upgrading the corresponding vehicle-mounted software of the vehicle according to the upgrading software; or responding to a received upgrade negative instruction sent by the server after the matching of the software verification value fails and the matching of the software version number succeeds, and sending an upgrade software issuing request to the server, so that the server issues pre-stored upgrade software corresponding to the software version number according to the upgrade software issuing request, and upgrades corresponding vehicle-mounted software of the vehicle according to the received upgrade software issued by the server.
2. The vehicle-mounted software upgrading method according to claim 1, wherein after uploading the software verification value and the acquired software version number of the upgraded software as verification information to a server so that the server matches the verification information, the method further comprises:
and responding to a received upgrade termination instruction sent by the server after the matching of the software version number fails, and terminating the upgrade of the vehicle-mounted software of the vehicle by the upgrade software.
3. The vehicle-mounted software upgrading method according to claim 1, wherein the upgrading the corresponding vehicle-mounted software of the vehicle according to the received upgrade software issued by the server comprises:
receiving the upgrade software issued by the server, and diagnosing whether the upgrade software issued by the server is complete according to a preset upgrade software diagnosis and refresh rule;
and if so, upgrading the corresponding vehicle-mounted software of the vehicle according to the upgrading software issued by the server.
4. The vehicle-mounted software upgrading method according to claim 1, wherein the sending an upgrading software issuing request to the server in response to the received upgrading negative instruction sent by the server after the matching of the software verification value fails and the matching of the software version number succeeds, so that the server issues the pre-stored upgrading software corresponding to the software version number according to the upgrading software issuing request, comprises:
responding to a received upgrade negative instruction which is sent by the server after the software verification value is unsuccessfully matched and the software version number is successfully matched, and controlling a display device of the vehicle to display an operation option whether the upgrade software is downloaded or not for a user to select;
and responding to the operation of selecting the upgrade software to download, and sending an upgrade software issuing request to the server so that the server issues the upgrade software which is pre-stored and corresponds to the software version number according to the upgrade software issuing request.
5. The vehicle-mounted software upgrading method according to claim 1, characterized in that the server pre-stores the verification information, specifically: after receiving the uploaded upgrade software, the server verifies the upgrade software according to a preset software verification algorithm to generate a software verification value, and obtains a software version number of the upgrade software, so that the verification information of the upgrade software is obtained and stored.
6. The method for upgrading onboard software according to claim 1, characterized in that the onboard software is the electronic control unit software of the vehicle.
7. An in-vehicle software upgrading apparatus, comprising:
the software checking module is used for acquiring upgrade software read by the vehicle from external equipment at present, checking the upgrade software according to a preset software checking algorithm and generating a software checking value;
the information uploading module is used for uploading the software check value and the acquired software version number of the upgraded software as check information to a server so that the server can match the check information;
the first response module is used for responding to the received upgrade permission instruction which is sent by the server after the verification information is successfully matched, and upgrading the corresponding vehicle-mounted software of the vehicle according to the upgrade software;
and the second response module is used for responding to a received upgrade negative instruction which is sent by the server after the matching of the software verification value fails and the matching of the software version number succeeds, sending an upgrade software issuing request to the server so as to enable the server to issue pre-stored upgrade software corresponding to the software version number according to the upgrade software issuing request, and upgrading corresponding vehicle-mounted software of a vehicle according to the received upgrade software issued by the server.
8. An in-vehicle software upgrade system, comprising: the software reading device is used for reading the upgrading software from the external equipment, and the wireless communication module and the gateway are used for communicating with the server; the software reading device and the wireless communication module are both connected with the gateway;
the gateway comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the in-vehicle software upgrade method according to any one of claims 1 to 6 when executing the computer program.
9. The in-vehicle software upgrade system according to claim 8, wherein the in-vehicle software is an electronic control unit software of a vehicle.
10. A computer-readable storage medium, comprising a stored computer program, wherein the computer program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform the method for upgrading vehicle software according to any one of claims 1 to 6.
CN201910593547.XA 2019-07-03 2019-07-03 Vehicle-mounted software upgrading method, device, system and storage medium Active CN112181449B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910593547.XA CN112181449B (en) 2019-07-03 2019-07-03 Vehicle-mounted software upgrading method, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910593547.XA CN112181449B (en) 2019-07-03 2019-07-03 Vehicle-mounted software upgrading method, device, system and storage medium

Publications (2)

Publication Number Publication Date
CN112181449A true CN112181449A (en) 2021-01-05
CN112181449B CN112181449B (en) 2023-10-03

Family

ID=73914347

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910593547.XA Active CN112181449B (en) 2019-07-03 2019-07-03 Vehicle-mounted software upgrading method, device, system and storage medium

Country Status (1)

Country Link
CN (1) CN112181449B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113672258A (en) * 2021-08-16 2021-11-19 一汽解放汽车有限公司 System upgrading method and device for vehicle, computer equipment and storage medium
CN114461238A (en) * 2022-04-11 2022-05-10 深圳市星卡科技有限公司 Method and device for automatically downloading diagnostic software and computer equipment
CN114489738A (en) * 2022-04-01 2022-05-13 广东利通科技投资有限公司 ETC lane computer program upgrading method, device and medium based on big data
CN115695092A (en) * 2022-10-31 2023-02-03 重庆长安汽车股份有限公司 Internet vehicle data processing method and device and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101827126A (en) * 2010-03-11 2010-09-08 青岛海信电器股份有限公司 Software upgrade method of television terminal, television terminal and software upgrade system
CN102236566A (en) * 2010-04-28 2011-11-09 上海通用汽车有限公司 System for refreshing software of vehicular electronic control module and method thereof
CN105573790A (en) * 2015-12-15 2016-05-11 上海博泰悦臻网络技术服务有限公司 Vehicle-mounted system software upgrade method, vehicle-mounted system and software server
CN105589719A (en) * 2015-12-17 2016-05-18 广州汽车集团股份有限公司 System for remotely upgrading full vehicle-mounted controller softwares and upgrading method thereof
US20160291959A1 (en) * 2014-07-07 2016-10-06 Symphony Teleca Corporation Remote Embedded Device Update Platform Apparatuses, Methods and Systems
CN108182080A (en) * 2017-12-28 2018-06-19 重庆德科电子仪表有限公司 A kind of method of automobile instrument software upgrading
CN108241494A (en) * 2016-12-23 2018-07-03 乐视汽车(北京)有限公司 Vehicle Electronic Control Unit upgrade method, device, vehicle control electronics and vehicle
CN109857443A (en) * 2019-01-25 2019-06-07 深圳市泰比特科技有限公司 A kind of upgrade method and system of shared motor bicycle whole-control system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101827126A (en) * 2010-03-11 2010-09-08 青岛海信电器股份有限公司 Software upgrade method of television terminal, television terminal and software upgrade system
CN102236566A (en) * 2010-04-28 2011-11-09 上海通用汽车有限公司 System for refreshing software of vehicular electronic control module and method thereof
US20160291959A1 (en) * 2014-07-07 2016-10-06 Symphony Teleca Corporation Remote Embedded Device Update Platform Apparatuses, Methods and Systems
CN105573790A (en) * 2015-12-15 2016-05-11 上海博泰悦臻网络技术服务有限公司 Vehicle-mounted system software upgrade method, vehicle-mounted system and software server
CN105589719A (en) * 2015-12-17 2016-05-18 广州汽车集团股份有限公司 System for remotely upgrading full vehicle-mounted controller softwares and upgrading method thereof
CN108241494A (en) * 2016-12-23 2018-07-03 乐视汽车(北京)有限公司 Vehicle Electronic Control Unit upgrade method, device, vehicle control electronics and vehicle
CN108182080A (en) * 2017-12-28 2018-06-19 重庆德科电子仪表有限公司 A kind of method of automobile instrument software upgrading
CN109857443A (en) * 2019-01-25 2019-06-07 深圳市泰比特科技有限公司 A kind of upgrade method and system of shared motor bicycle whole-control system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
YUTAKA ONUMA等: "ECU Software Updating in Future Vehicle Networks", 《2017 31ST INTERNATIONAL CONFERENCE ON ADVANCED INFORMATION NETWORKING AND APPLICATIONS WORKSHOPS (WAINA)》, pages 35 *
高洁等: "一种电动汽车软件OTA升级服务平台的设计方案", 《电脑知识与技术》, no. 08, pages 209 - 211 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113672258A (en) * 2021-08-16 2021-11-19 一汽解放汽车有限公司 System upgrading method and device for vehicle, computer equipment and storage medium
CN114489738A (en) * 2022-04-01 2022-05-13 广东利通科技投资有限公司 ETC lane computer program upgrading method, device and medium based on big data
CN114461238A (en) * 2022-04-11 2022-05-10 深圳市星卡科技有限公司 Method and device for automatically downloading diagnostic software and computer equipment
CN115695092A (en) * 2022-10-31 2023-02-03 重庆长安汽车股份有限公司 Internet vehicle data processing method and device and electronic equipment
CN115695092B (en) * 2022-10-31 2024-05-03 重庆长安汽车股份有限公司 Internet-of-things data processing method and device and electronic equipment

Also Published As

Publication number Publication date
CN112181449B (en) 2023-10-03

Similar Documents

Publication Publication Date Title
CN112181449A (en) Vehicle-mounted software upgrading method, device, system and storage medium
CN109159786B (en) Driving habit memory recovery method, device and system based on driver identity
CN108132795B (en) Software updating method and device of electronic control unit
US9557981B2 (en) Method and apparatus for automatic module upgrade
US10061574B2 (en) Method and apparatus for multiple vehicle software module reflash
US9940762B2 (en) Systems and methods for identification of a compromised module
CN110928567A (en) Vehicle system upgrading method, terminal device and computer-readable storage medium
CN112015489A (en) Management method, device, storage medium and system for vehicle-mounted software
CN110704083B (en) On-line upgrading method, device and system for automobile and readable storage medium
CN111758087A (en) Vehicle diagnosis method, server and diagnosis equipment
CN114050982B (en) Software upgrading method, device, electronic equipment and storage medium
US11960876B2 (en) Center, update management method, and non-transitory storage medium
CN108710497A (en) A kind of method for updating system of vehicle-mounted middle control and vehicle-mounted middle control
CN116451238A (en) ECU firmware upgrading method, device, equipment and readable storage medium
CN108241514A (en) Vehicle-mounted program updating method and device
CN113406944B (en) Vehicle diagnosis method, device, equipment and computer readable storage medium
US11736577B2 (en) Server, update management method, non-transitory storage medium, software update device, and system including server and software update device
CN114567552A (en) Vehicle-mounted V2X equipment upgrading method and device, computer equipment and storage medium
CN113037850A (en) Application program upgrading method and device, electronic equipment and storage medium
CN114840241A (en) Data processing method and related equipment
WO2020001249A1 (en) Method and device for updating tire pressure monitoring system (tpms) diagnostic tool
CN116938443A (en) Undeniable vehicle change history
KR102275142B1 (en) Update system and method of controller for vehicle
JP2007257386A (en) Method and system for verifying data for vehicle electronic controller
CN117234563B (en) Method and client for upgrading firmware of ECU (electronic control Unit) based on UDS (Universal description service) protocol

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