CN112416409A - Vehicle-mounted computer software upgrading method, device, equipment and storage medium - Google Patents
Vehicle-mounted computer software upgrading method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN112416409A CN112416409A CN202011425744.XA CN202011425744A CN112416409A CN 112416409 A CN112416409 A CN 112416409A CN 202011425744 A CN202011425744 A CN 202011425744A CN 112416409 A CN112416409 A CN 112416409A
- Authority
- CN
- China
- Prior art keywords
- vehicle
- software
- upgrading
- mounted computer
- upgraded
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
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)
Abstract
The invention belongs to the technical field of vehicle software, and discloses a method, a device, equipment and a storage medium for upgrading vehicle-mounted computer software. The method comprises the steps of obtaining product identification information of the vehicle-mounted computer to be upgraded; determining a corresponding bus protocol, a starting loading flow and a program format according to the product identification information; and upgrading the software of the vehicle-mounted computer to be upgraded according to the bus protocol, the starting loading flow and the program format. As the corresponding bus protocol, the starting loading flow and the program format can be obtained only through the product identification information corresponding to the vehicle-mounted computer aiming at different vehicle-mounted computers, and the software of the vehicle-mounted computer can be upgraded according to the bus protocol, the starting loading flow and the program format, unnecessary repetitive work in software upgrading is reduced, and convenience is provided for the software upgrading of the vehicle-mounted computer.
Description
Technical Field
The invention relates to the technical field of vehicle software, in particular to a method, a device, equipment and a storage medium for upgrading vehicle-mounted computer software.
Background
Nowadays, with the continuous development of Electronic technology, there are more and more vehicle-mounted computers (Electronic Control units, ECUs) with embedded systems on vehicles, even a vehicle contains dozens of different ECUs simultaneously, and when the software of the ECU has a bug or needs to be optimized, the software of the ECU needs to be upgraded by starting a loader (Bootloader). Because the Bootloader flows, communication protocols, program formats and the like of the ECUs are not completely consistent, different upgrading devices need to be developed to upgrade the ECUs, and more repetitive work is needed.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a method, a device, equipment and a storage medium for upgrading vehicle-mounted computer software, and aims to solve the technical problem that different upgrading equipment needs to be developed aiming at different ECUs in the prior art.
In order to achieve the aim, the invention provides a vehicle-mounted computer software upgrading method, which comprises the following steps:
acquiring product identification information of a vehicle-mounted computer to be upgraded;
determining a corresponding bus protocol, a starting loading flow and a program format according to the product identification information;
and upgrading the software of the vehicle-mounted computer to be upgraded according to the bus protocol, the starting loading flow and the program format.
Preferably, the step of determining a corresponding bus protocol, starting a loading process and a program format according to the product identification information includes:
searching a corresponding software upgrading strategy in a preset storage space according to the product identification information;
and when the software upgrading strategy corresponding to the product identification information is found, determining a corresponding bus protocol, a starting loading flow and a program format according to the software upgrading strategy.
Preferably, after the step of searching for the corresponding software upgrading policy in the preset storage space according to the product identification information, the method further includes:
when the software upgrading strategy corresponding to the product identification information is not found, a strategy self-defining page is displayed to a user;
acquiring a custom upgrading strategy input by the user on the strategy custom page;
and storing the custom upgrading strategy into a preset storage space, and determining a corresponding bus protocol, a starting loading flow and a program format according to the custom upgrading strategy.
Preferably, the step of upgrading the software of the vehicle-mounted computer to be upgraded according to the bus protocol, the start loading process, and the program format includes:
acquiring a software upgrading program package, and analyzing the software upgrading program package according to the program format to acquire software analysis data;
converting the software analysis data into software upgrading data conforming to the bus protocol;
and transmitting the software upgrading data to the vehicle-mounted computer to be upgraded according to the starting and loading process, and displaying the bus data fed back by the vehicle-mounted computer to be upgraded.
Preferably, after the step of transmitting the upgrade data to the vehicle-mounted computer to be upgraded according to the start loading process and displaying the bus data fed back by the vehicle-mounted computer to be upgraded, the method further includes:
acquiring a preset integrity check code corresponding to the software upgrading program package and a current integrity check code fed back by the vehicle-mounted computer to be upgraded;
comparing the preset integrity check code with the current integrity check code to obtain a comparison result;
and judging whether the software of the vehicle-mounted computer to be upgraded is successfully upgraded or not according to the comparison result.
Preferably, after the step of determining whether the software of the vehicle-mounted computer to be upgraded is successfully upgraded according to the comparison result, the method further includes:
when the software of the vehicle-mounted computer to be upgraded fails to be upgraded, generating an upgrading failure processing strategy;
and generating a failure processing page according to the upgrading failure processing strategy, and displaying the failure processing page to a user.
Preferably, before the step of upgrading the software of the vehicle-mounted computer to be upgraded according to the bus protocol, the start loading process, and the program format, the method further includes:
acquiring preset brushing times corresponding to the product identification information;
correspondingly, the step of upgrading the software of the vehicle-mounted computer to be upgraded according to the bus protocol, the start loading process and the program format specifically comprises:
and based on the preset flash times, repeatedly upgrading the software of the vehicle-mounted computer to be upgraded according to the bus protocol, the starting loading flow and the program format.
In addition, in order to achieve the above object, the present invention further provides a vehicle-mounted computer software upgrading device, which includes the following modules:
the information acquisition module is used for acquiring product identification information of the vehicle-mounted computer to be upgraded;
the flow confirmation module is used for determining a corresponding bus protocol, a starting loading flow and a program format according to the product identification information;
and the software upgrading module is used for upgrading the software of the vehicle-mounted computer to be upgraded according to the bus protocol, the starting loading flow and the program format.
In addition, in order to achieve the above object, the present invention further provides a vehicle-mounted computer software upgrading device, including: the system comprises a memory, a processor and a vehicle-mounted computer software upgrading program which is stored on the memory and can run on the processor, wherein the vehicle-mounted computer software upgrading program realizes the steps of the vehicle-mounted computer software upgrading method when being executed by the processor.
In addition, in order to achieve the above object, the present invention further provides a computer readable storage medium, where a vehicle-mounted computer software upgrading program is stored on the computer readable storage medium, and when the vehicle-mounted computer software upgrading program is executed, the steps of the vehicle-mounted computer software upgrading method are implemented.
The method comprises the steps of obtaining product identification information of the vehicle-mounted computer to be upgraded; determining a corresponding bus protocol, a starting loading flow and a program format according to the product identification information; and upgrading the software of the vehicle-mounted computer to be upgraded according to the bus protocol, the starting loading flow and the program format. As the corresponding bus protocol, the starting loading flow and the program format can be obtained only through the product identification information corresponding to the vehicle-mounted computer aiming at different vehicle-mounted computers, and the software of the vehicle-mounted computer can be upgraded according to the bus protocol, the starting loading flow and the program format, unnecessary repetitive work in software upgrading is reduced, and convenience is provided for the software upgrading of the vehicle-mounted computer.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a first embodiment of a vehicle-mounted computer software upgrading method according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a method for upgrading software of a vehicle-mounted computer according to the present invention;
FIG. 4 is a block diagram of the first embodiment of the upgrading apparatus for vehicle-mounted computer software according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a vehicle-mounted computer software upgrading device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the electronic device may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include an operating system, a network communication module, a user interface module, and an in-vehicle computer software upgrade program.
In the electronic apparatus shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the electronic device of the present invention may be disposed in an in-vehicle computer software upgrading device, and the electronic device calls the in-vehicle computer software upgrading program stored in the memory 1005 through the processor 1001 and executes the in-vehicle computer software upgrading method provided by the embodiment of the present invention.
An embodiment of the present invention provides a method for upgrading vehicle-mounted computer software, and referring to fig. 2, fig. 2 is a schematic flow diagram of a first embodiment of the method for upgrading vehicle-mounted computer software according to the present invention.
In this embodiment, the method for upgrading software of a vehicle-mounted computer includes the following steps:
step S10: and acquiring the product identification information of the vehicle-mounted computer to be upgraded.
It should be noted that, the execution main body of this embodiment may be a vehicle-mounted computer software upgrading device, and the vehicle-mounted computer software upgrading device may be an electronic device such as a personal computer, a tablet computer, and the like, and may also be other devices that can achieve the same or similar functions. In practical use, the software upgrading device of the vehicle-mounted computer can be connected with the vehicle-mounted computer for communication through a wired network and a vehicle communication interface, and can also be connected with the vehicle-mounted computer for communication through a wireless network.
It should be noted that the vehicle-mounted computer to be upgraded may be a vehicle-mounted computer whose software has a bug or needs to be optimized and upgraded, and the product identification information may be unique identification information of the vehicle-mounted computer, such as a factory identification of the vehicle-mounted computer or a hardware identification of the vehicle-mounted computer.
Step S20: and determining a corresponding bus protocol, a starting loading flow and a program format according to the product identification information.
It should be noted that the bus protocol may be a protocol that is allowed to be used by the vehicle-mounted computer to be upgraded to communicate via the vehicle bus, such as a standard frame protocol of 500K or an extended frame protocol of 250K. The starting and loading process may be a section of program loading code which is set in a nonvolatile memory of the vehicle-mounted computer to be upgraded and used for establishing bus communication with the program downloading end, receiving software upgrading data transmitted through the bus communication, and installing, wherein the program loading code may include information such as various Unified Diagnostic Services (UDS Services) involved in the upgrading process. The program format may be a program parsing format of a software upgrade package for a vehicle-mounted computer to be upgraded, for example: s19 program format or HEX program format.
Further, in order to determine the corresponding bus protocol, the start loading procedure, and the program format according to the product identification information, step S20 of this embodiment may be:
searching a corresponding software upgrading strategy in a preset storage space according to the product identification information; and when the software upgrading strategy corresponding to the product identification information is found, determining a corresponding bus protocol, a starting loading flow and a program format according to the software upgrading strategy.
It should be noted that the software upgrading policy may include information such as product identification information corresponding to the vehicle-mounted computer to be upgraded, a bus protocol, a configuration file address corresponding to the start loading process, and a program format.
In practical use, before upgrading the software of the vehicle-mounted computer, because the starting loading process is generally complex and has more contents, the corresponding configuration file can be generated in advance according to the starting loading process and stored in the preset storage space to obtain the corresponding configuration file address, then the corresponding software upgrading strategy can be generated according to the product identification information, the bus protocol, the configuration file address corresponding to the starting loading process, the program format and other information of each vehicle-mounted computer, the software upgrading strategy is stored in the preset storage space, when the software of the vehicle-mounted computer needs to be upgraded, the corresponding software upgrading strategy can be searched in the preset storage space through the product identification information of the vehicle-mounted computer to be upgraded, and then the bus protocol, the program format and the configuration file address corresponding to the starting loading process, which are required by upgrading the vehicle-mounted computer to be upgraded, can be determined through the software upgrading strategy, and then the loading process can be determined to be started by finding the corresponding configuration file through the configuration file address.
It can be understood that, according to different actual use conditions, a situation that the software upgrading strategy cannot be preset also exists, that is, the corresponding software upgrading strategy cannot be found in the preset storage space according to the product identification information of the vehicle-mounted computer to be upgraded.
Further, in order to upgrade the software of the vehicle-mounted computer when the software upgrading policy cannot be preset, after the step of searching the corresponding software upgrading policy in the preset storage space according to the product identification information, the method further includes:
when the software upgrading strategy corresponding to the product identification information is not found, a strategy self-defining page is displayed to a user; acquiring a custom upgrading strategy input by the user on the strategy custom page; and storing the custom upgrading strategy into a preset storage space, and determining a corresponding bus protocol, a starting loading flow and a program format according to the custom upgrading strategy.
It should be noted that the user may be an operator who uses the vehicle-mounted computer software upgrading device to upgrade software of the vehicle-mounted computer to be upgraded. The strategy self-defining page is a page used for inputting various information required for generating a self-defining upgrading strategy, and the self-defining upgrading strategy can comprise a bus protocol required by software upgrading of the vehicle-mounted computer to be upgraded, a configuration file address for starting a loading process and a program format.
In practical use, the vehicle-mounted computer software upgrading device can generate a corresponding configuration file according to the starting loading process and store the configuration file into a preset storage space after receiving a bus protocol, a starting loading process and a program format input by a user on a strategy custom page, obtain a corresponding configuration file address, then acquire product identification information of the vehicle-mounted computer to be upgraded, generate a custom upgrading strategy according to the bus protocol, the product identification information, the program format and the configuration file address corresponding to the starting loading process, then store the custom upgrading strategy into the preset storage space, and take the bus protocol, the starting loading process and the program format corresponding to the custom upgrading strategy as the bus protocol, the starting loading process and the program format corresponding to the vehicle-mounted computer to be upgraded.
Step S30: and upgrading the software of the vehicle-mounted computer to be upgraded according to the bus protocol, the starting loading flow and the program format.
It can be understood that after the bus protocol, the start loading flow and the program format corresponding to the vehicle-mounted computer to be upgraded are determined, the software of the vehicle-mounted computer to be upgraded can be upgraded according to the bus protocol, the start loading flow and the program format.
Further, in order to explain how to upgrade the software of the vehicle-mounted computer to be upgraded according to the bus protocol, the start loading process, and the program format corresponding to the vehicle-mounted computer to be upgraded, step S30 in this embodiment may be:
acquiring a software upgrading program package, and analyzing the software upgrading program package according to the program format to acquire software analysis data; converting the software analysis data into software upgrading data conforming to the bus protocol; and transmitting the software upgrading data to the vehicle-mounted computer to be upgraded according to the starting and loading process, and displaying the bus data fed back by the vehicle-mounted computer to be upgraded.
It should be noted that the software upgrading program package may be a code program package to be used for upgrading the vehicle-mounted computer to be upgraded, and the software upgrading program package may include software codes to be upgraded, software installation procedures, and other contents.
In practical use, the vehicle-mounted computer software upgrading device can select a corresponding analysis mode to analyze a software upgrading program package according to a program format to obtain software analysis data, then the software analysis data is converted into a data format agreed in a bus protocol, namely software upgrading data, finally the software upgrading data is sent to the vehicle-mounted computer to be upgraded according to the steps recorded in the starting and loading process to be upgraded for installation, and in the installation process, bus data fed back by the vehicle-mounted computer to be upgraded can be obtained and displayed on a display screen of the vehicle-mounted computer software upgrading device for a user to check, whether upgrading is normal or not can be checked conveniently, and when upgrading is abnormal, the abnormal reason can be tracked conveniently.
Further, in order to verify whether the software upgrade of the vehicle-mounted computer to be upgraded is successful, after the steps of transmitting the software upgrade data to the vehicle-mounted computer to be upgraded according to the start loading process and displaying the bus data fed back by the vehicle-mounted computer to be upgraded, the method may further include:
acquiring a preset integrity check code corresponding to the software upgrading program package and a current integrity check code fed back by the vehicle-mounted computer to be upgraded; comparing the preset integrity check code with the current integrity check code to obtain a comparison result; and judging whether the software of the vehicle-mounted computer to be upgraded is successfully upgraded or not according to the comparison result.
It should be noted that the preset integrity check code may be an authentication code set when the software upgrade package is developed, and the preset integrity check code may be data expected to be returned by the authentication function when a specific value is input to the authentication function. The current integrity check code may be data actually returned by the verification function when the verification function sends a specific numerical value to the verification function in the vehicle-mounted computer to be upgraded after software upgrade.
It can be understood that the preset integrity check code is compared with the current integrity check code to obtain a comparison result, if the comparison result of the preset integrity check code and the current integrity check code is the same as the data, the software of the vehicle-mounted computer to be upgraded can be judged to be successfully upgraded, and if the comparison result of the preset integrity check code and the current integrity check code is different from the data, the software of the vehicle-mounted computer to be upgraded can be judged to be failed to be upgraded.
In actual use, when the software of the vehicle-mounted computer to be upgraded fails to be upgraded, an upgrade failure processing strategy can be generated; and generating a failure processing page according to the upgrading failure processing strategy, and displaying the failure processing page to a user.
It should be noted that the upgrade failure handling policy may include information such as a failure reason and a failure post-handling manner. The failure handling page may include various items of information in the failure escalation failure handling policy.
It can be understood that when the software of the vehicle-mounted computer to be upgraded fails to be upgraded, the data such as logs and the like generated in the upgrading process can be acquired for analysis, the failure reason can be analyzed, a corresponding failure processing strategy can be generated according to the failure reason, and a corresponding failure processing page can be generated and displayed to a user so as to prompt the user of which reason the user fails and how to process the user.
For example: when the software of the vehicle-mounted computer to be upgraded fails to be upgraded, the upgrade failure reason is determined to be data transmission interruption through analysis, at the moment, the processing mode can be used for upgrading retransmission data, an upgrade failure processing strategy is generated according to the failure reason and the processing mode, then a failure processing page is generated according to the upgrade failure processing strategy, and the failure processing page is displayed for a user to check.
The method comprises the steps of obtaining product identification information of a vehicle-mounted computer to be upgraded; determining a corresponding bus protocol, a starting loading flow and a program format according to the product identification information; and upgrading the software of the vehicle-mounted computer to be upgraded according to the bus protocol, the starting loading flow and the program format. As the corresponding bus protocol, the starting loading flow and the program format can be obtained only through the product identification information corresponding to the vehicle-mounted computer aiming at different vehicle-mounted computers, and the software of the vehicle-mounted computer can be upgraded according to the bus protocol, the starting loading flow and the program format, unnecessary repetitive work in software upgrading is reduced, and convenience is provided for the software upgrading of the vehicle-mounted computer.
Referring to fig. 3, fig. 3 is a schematic flow chart of a second embodiment of a vehicle-mounted computer software upgrading method according to the present invention.
Based on the first embodiment, before the step S30, the method for upgrading software of a vehicle-mounted computer in this embodiment further includes:
step S21: and acquiring preset brushing times corresponding to the product identification information.
It should be noted that the preset number of times of flashing is preset to indicate the number of times of flashing needs to be repeated.
Correspondingly, step S30 in this embodiment specifically includes:
step S30': and based on the preset flash times, repeatedly upgrading the software of the vehicle-mounted computer to be upgraded according to the bus protocol, the starting loading flow and the program format.
It should be noted that, in the development process, the number of repeated flashing times may be set by the preset number of flashing times, then, based on the preset number of refreshing times, software of the vehicle-mounted computer to be upgraded is repeatedly upgraded according to the bus protocol, the start loading flow and the program format, whether each upgrade is successful is judged, the judgment result is used as the upgrade result, and the success rate of flashing of the vehicle-mounted computer to be upgraded is judged according to the upgrade result.
In actual use, the brushing stability of the vehicle-mounted computer to be upgraded can be judged according to the brushing success rate.
For example: if the brushing success rate is A, if A is larger than or equal to 90%, judging that the brushing stability is high; if A is more than or equal to 60% and less than 90%, judging that the writing stability is middle; if A is less than 60%, judging that the writing stability is low; if the preset flash frequency is 5, the software of the vehicle-mounted computer to be upgraded is repeatedly upgraded for 5 times according to the bus protocol, the starting loading process and the program format, the obtained upgrading results are respectively success, failure and success, the flash success rate is 80%, and the flash stability can be determined to be medium.
In this embodiment, the software of the vehicle-mounted computer to be upgraded is repeatedly upgraded according to the bus protocol, the start loading process and the program format based on the preset number of times of the flash corresponding to the product identification information. The software of the vehicle-mounted computer to be upgraded can be repeatedly upgraded based on the preset number of times of flashing, so that the software of the vehicle-mounted computer to be upgraded can be upgraded, the upgrading result of multiple times of upgrading can be obtained, the flashing success rate of the vehicle-mounted computer to be upgraded is judged according to the upgrading result, and the flashing stability of the vehicle-mounted computer to be upgraded is judged according to the flashing success rate.
In addition, an embodiment of the present invention further provides a storage medium, where a vehicle-mounted computer software upgrading program is stored on the storage medium, and when the vehicle-mounted computer software upgrading program is executed by a processor, the steps of the vehicle-mounted computer software upgrading method are implemented.
Referring to fig. 4, fig. 4 is a block diagram illustrating a first embodiment of the device for upgrading software of a vehicle-mounted computer according to the present invention.
As shown in fig. 4, the device for upgrading software of a vehicle-mounted computer according to an embodiment of the present invention includes:
the information acquisition module 401 is used for acquiring product identification information of the vehicle-mounted computer to be upgraded;
a flow confirmation module 402, configured to determine a corresponding bus protocol, a start loading flow, and a program format according to the product identification information;
and the software upgrading module 403 is configured to upgrade the software of the vehicle-mounted computer to be upgraded according to the bus protocol, the start loading process, and the program format.
The method comprises the steps of obtaining product identification information of a vehicle-mounted computer to be upgraded; determining a corresponding bus protocol, a starting loading flow and a program format according to the product identification information; and upgrading the software of the vehicle-mounted computer to be upgraded according to the bus protocol, the starting loading flow and the program format. As the corresponding bus protocol, the starting loading flow and the program format can be obtained only through the product identification information corresponding to the vehicle-mounted computer aiming at different vehicle-mounted computers, and the software of the vehicle-mounted computer can be upgraded according to the bus protocol, the starting loading flow and the program format, unnecessary repetitive work in software upgrading is reduced, and convenience is provided for the software upgrading of the vehicle-mounted computer.
Further, the process confirmation module 402 is further configured to search a corresponding software upgrading policy in a preset storage space according to the product identification information; and when the software upgrading strategy corresponding to the product identification information is found, determining a corresponding bus protocol, a starting loading flow and a program format according to the software upgrading strategy.
Further, the process confirmation module 402 is further configured to, when the software upgrading policy corresponding to the product identification information is not found, display a policy customization page to the user; acquiring a custom upgrading strategy input by the user on the strategy custom page; and storing the custom upgrading strategy into a preset storage space, and determining a corresponding bus protocol, a starting loading flow and a program format according to the custom upgrading strategy.
Further, the software upgrading module 403 is further configured to obtain a software upgrading program package, and analyze the software upgrading program package according to the program format to obtain software analysis data;
converting the software analysis data into software upgrading data conforming to the bus protocol;
and transmitting the software upgrading data to the vehicle-mounted computer to be upgraded according to the starting and loading process, and displaying the bus data fed back by the vehicle-mounted computer to be upgraded.
Further, the software upgrading module 403 is further configured to obtain a preset integrity check code corresponding to the software upgrading program package and a current integrity check code fed back by the vehicle-mounted computer to be upgraded; comparing the preset integrity check code with the current integrity check code to obtain a comparison result; and judging whether the software of the vehicle-mounted computer to be upgraded is successfully upgraded or not according to the comparison result.
Further, the software upgrading module 403 is further configured to generate an upgrading failure processing policy when the software of the vehicle-mounted computer to be upgraded fails to be upgraded; and generating a failure processing page according to the upgrading failure processing strategy, and displaying the failure processing page to a user.
Further, the software upgrading module 403 is further configured to obtain preset number of times of flushing corresponding to the product identification information;
the software upgrading module 403 is further configured to repeatedly upgrade the software of the vehicle-mounted computer to be upgraded according to the bus protocol, the start loading process, and the program format based on the preset number of times of flushing.
It should be understood that the above is only an example, and the technical solution of the present invention is not limited in any way, and in a specific application, a person skilled in the art may set the technical solution as needed, and the present invention is not limited thereto.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment can be referred to the method for upgrading the vehicle-mounted computer software provided by any embodiment of the present invention, and are not described herein again.
Further, it is to be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. A vehicle-mounted computer software upgrading method is characterized by comprising the following steps:
acquiring product identification information of a vehicle-mounted computer to be upgraded;
determining a corresponding bus protocol, a starting loading flow and a program format according to the product identification information;
and upgrading the software of the vehicle-mounted computer to be upgraded according to the bus protocol, the starting loading flow and the program format.
2. The method for upgrading software of a vehicle-mounted computer according to claim 1, wherein the step of determining the corresponding bus protocol, the start loading process and the program format according to the product identification information comprises:
searching a corresponding software upgrading strategy in a preset storage space according to the product identification information;
and when the software upgrading strategy corresponding to the product identification information is found, determining a corresponding bus protocol, a starting loading flow and a program format according to the software upgrading strategy.
3. The method for upgrading software of a vehicle-mounted computer according to claim 2, wherein after the step of searching the corresponding software upgrading strategy in the preset storage space according to the product identification information, the method further comprises:
when the software upgrading strategy corresponding to the product identification information is not found, a strategy self-defining page is displayed to a user;
acquiring a custom upgrading strategy input by the user on the strategy custom page;
and storing the custom upgrading strategy into a preset storage space, and determining a corresponding bus protocol, a starting loading flow and a program format according to the custom upgrading strategy.
4. The method for upgrading software of a vehicle-mounted computer according to any one of claims 1 to 3, wherein the step of upgrading the software of the vehicle-mounted computer to be upgraded according to the bus protocol, the start loading process and the program format comprises the following steps:
acquiring a software upgrading program package, and analyzing the software upgrading program package according to the program format to acquire software analysis data;
converting the software analysis data into software upgrading data conforming to the bus protocol;
and transmitting the software upgrading data to the vehicle-mounted computer to be upgraded according to the starting and loading process, and displaying the bus data fed back by the vehicle-mounted computer to be upgraded.
5. The method for upgrading software of a vehicle-mounted computer according to claim 4, wherein after the step of transmitting the upgrading data to the vehicle-mounted computer to be upgraded according to the starting and loading process and displaying the bus data fed back by the vehicle-mounted computer to be upgraded, the method further comprises the following steps:
acquiring a preset integrity check code corresponding to the software upgrading program package and a current integrity check code fed back by the vehicle-mounted computer to be upgraded;
comparing the preset integrity check code with the current integrity check code to obtain a comparison result;
and judging whether the software of the vehicle-mounted computer to be upgraded is successfully upgraded or not according to the comparison result.
6. The method for upgrading software of a vehicle-mounted computer according to claim 5, wherein after the step of judging whether the software of the vehicle-mounted computer to be upgraded is successfully upgraded according to the comparison result, the method further comprises the following steps:
when the software of the vehicle-mounted computer to be upgraded fails to be upgraded, generating an upgrading failure processing strategy;
and generating a failure processing page according to the upgrading failure processing strategy, and displaying the failure processing page to a user.
7. The method for upgrading software of a vehicle-mounted computer according to any one of claims 1 to 3, wherein before the step of upgrading the software of the vehicle-mounted computer to be upgraded according to the bus protocol, the boot loading process and the program format, the method further comprises:
acquiring preset brushing times corresponding to the product identification information;
correspondingly, the step of upgrading the software of the vehicle-mounted computer to be upgraded according to the bus protocol, the start loading process and the program format specifically comprises:
and based on the preset flash times, repeatedly upgrading the software of the vehicle-mounted computer to be upgraded according to the bus protocol, the starting loading flow and the program format.
8. The vehicle-mounted computer software upgrading device is characterized by comprising the following modules:
the information acquisition module is used for acquiring product identification information of the vehicle-mounted computer to be upgraded;
the flow confirmation module is used for determining a corresponding bus protocol, a starting loading flow and a program format according to the product identification information;
and the software upgrading module is used for upgrading the software of the vehicle-mounted computer to be upgraded according to the bus protocol, the starting loading flow and the program format.
9. An on-vehicle computer software upgrading device, characterized in that, the on-vehicle computer software upgrading device includes: a memory, a processor and a vehicle computer software upgrade program stored on the memory and operable on the processor, the vehicle computer software upgrade program when executed by the processor implementing the steps of the vehicle computer software upgrade method according to any one of claims 1-7.
10. A computer-readable storage medium, wherein a vehicle-mounted computer software upgrading program is stored on the computer-readable storage medium, and when executed, the steps of the vehicle-mounted computer software upgrading method according to any one of claims 1-7 are realized.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011425744.XA CN112416409B (en) | 2020-12-07 | 2020-12-07 | Vehicle-mounted computer software upgrading method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011425744.XA CN112416409B (en) | 2020-12-07 | 2020-12-07 | Vehicle-mounted computer software upgrading method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112416409A true CN112416409A (en) | 2021-02-26 |
CN112416409B CN112416409B (en) | 2022-03-08 |
Family
ID=74775262
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011425744.XA Active CN112416409B (en) | 2020-12-07 | 2020-12-07 | Vehicle-mounted computer software upgrading method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112416409B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20150117058A (en) * | 2014-04-09 | 2015-10-19 | 대동공업주식회사 | Illegal Updating Preventing Method and System for ECU Program of Agricultural Work Vehicle |
CN107426279A (en) * | 2017-04-25 | 2017-12-01 | 航天科技控股集团股份有限公司 | A kind of local area network wireless upgrade method of Internet of Things car-mounted terminal |
CN108491224A (en) * | 2018-07-09 | 2018-09-04 | 深圳市路畅科技股份有限公司 | A kind of vehicle-mounted Oftware updating method and system |
CN109086058A (en) * | 2017-06-13 | 2018-12-25 | 荣成华泰汽车有限公司 | Onboard program upgrade-system |
GB201903088D0 (en) * | 2019-03-07 | 2019-04-24 | Delphi Tech Ip Ltd | Automotive bootloader |
CN111190629A (en) * | 2020-01-03 | 2020-05-22 | 重庆长安汽车股份有限公司 | Embedded terminal upgrading software package and analysis method thereof |
CN111277477A (en) * | 2020-01-13 | 2020-06-12 | 重庆邮电大学 | FOTA system supporting simultaneous upgrading of vehicle-mounted multiple network segments |
CN111813095A (en) * | 2020-07-30 | 2020-10-23 | 深圳市元征科技股份有限公司 | Vehicle diagnosis method, device and medium |
-
2020
- 2020-12-07 CN CN202011425744.XA patent/CN112416409B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20150117058A (en) * | 2014-04-09 | 2015-10-19 | 대동공업주식회사 | Illegal Updating Preventing Method and System for ECU Program of Agricultural Work Vehicle |
CN107426279A (en) * | 2017-04-25 | 2017-12-01 | 航天科技控股集团股份有限公司 | A kind of local area network wireless upgrade method of Internet of Things car-mounted terminal |
CN109086058A (en) * | 2017-06-13 | 2018-12-25 | 荣成华泰汽车有限公司 | Onboard program upgrade-system |
CN108491224A (en) * | 2018-07-09 | 2018-09-04 | 深圳市路畅科技股份有限公司 | A kind of vehicle-mounted Oftware updating method and system |
GB201903088D0 (en) * | 2019-03-07 | 2019-04-24 | Delphi Tech Ip Ltd | Automotive bootloader |
CN111190629A (en) * | 2020-01-03 | 2020-05-22 | 重庆长安汽车股份有限公司 | Embedded terminal upgrading software package and analysis method thereof |
CN111277477A (en) * | 2020-01-13 | 2020-06-12 | 重庆邮电大学 | FOTA system supporting simultaneous upgrading of vehicle-mounted multiple network segments |
CN111813095A (en) * | 2020-07-30 | 2020-10-23 | 深圳市元征科技股份有限公司 | Vehicle diagnosis method, device and medium |
Non-Patent Citations (1)
Title |
---|
杨胜兵 等: "基于 LabVIEW 的车辆 ECU 在线编程系统设计", 《计算机应用》 * |
Also Published As
Publication number | Publication date |
---|---|
CN112416409B (en) | 2022-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110995836A (en) | Log management method, device, storage medium and device based on Internet of vehicles platform | |
CN110928567A (en) | Vehicle system upgrading method, terminal device and computer-readable storage medium | |
CN110633160A (en) | Interface calling method and device, computer equipment and storage medium | |
CN111190629B (en) | Embedded terminal upgrading software package and analysis method thereof | |
CN110286923A (en) | Based on cloud to the method for vehicle electronic control unit system upgrade | |
CN110795124A (en) | Remote upgrading method, device, equipment and storage medium for automobile safety part | |
CN111694572A (en) | Code format conversion method, device, computer equipment and storage medium | |
CN112650520A (en) | Ammeter upgrading method and system, intelligent ammeter and storage medium | |
CN111474923B (en) | Vehicle diagnosis method, device and equipment | |
CN111527389A (en) | Vehicle diagnosis method, vehicle diagnosis device and storage medium | |
US20240069906A1 (en) | Server, software update system, distribution method, and non-transitory storage medium | |
CN112965732A (en) | Resource package obtaining method, intelligent wearable device and storage medium | |
CN114895935A (en) | Method and device for flashing vehicle ECU, electronic equipment and storage medium | |
CN111131861B (en) | Upgrading method, terminal and storage medium for recovering partitions | |
CN110908696B (en) | Remote upgrading method, device, equipment and storage medium for automobile color screen instrument | |
CN112416409B (en) | Vehicle-mounted computer software upgrading method, device, equipment and storage medium | |
CN113037850A (en) | Application program upgrading method and device, electronic equipment and storage medium | |
CN115437617A (en) | Vehicle control code automatic generation method and device, storage medium and electronic equipment | |
CN113242276B (en) | On-line upgrading method, device, equipment and storage medium for vehicle-mounted system | |
CN113934198A (en) | Vehicle diagnosis method, vehicle diagnosis device, electronic device, and storage medium | |
CN113867756A (en) | Software upgrading method, terminal equipment and readable storage medium | |
CN110933736B (en) | Vehicle-mounted controller communication method, device, equipment and storage medium | |
CN113076126A (en) | Remote automobile power calibration method, device, equipment and storage medium | |
CN112256301A (en) | Application online upgrading method, device, equipment and computer readable storage medium | |
CN111522564A (en) | Method and device for identifying system upgrading state and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |