CN113094072A - Vehicle upgrading method and device, electronic device and storage medium - Google Patents

Vehicle upgrading method and device, electronic device and storage medium Download PDF

Info

Publication number
CN113094072A
CN113094072A CN202110449760.0A CN202110449760A CN113094072A CN 113094072 A CN113094072 A CN 113094072A CN 202110449760 A CN202110449760 A CN 202110449760A CN 113094072 A CN113094072 A CN 113094072A
Authority
CN
China
Prior art keywords
vehicle
module
upgraded
upgrade
upgrade package
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.)
Withdrawn
Application number
CN202110449760.0A
Other languages
Chinese (zh)
Inventor
沈亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai East China Automotive Information Technology Co Ltd
Original Assignee
Shanghai East China Automotive Information Technology 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 Shanghai East China Automotive Information Technology Co Ltd filed Critical Shanghai East China Automotive Information Technology Co Ltd
Priority to CN202110449760.0A priority Critical patent/CN113094072A/en
Publication of CN113094072A publication Critical patent/CN113094072A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • 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)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a vehicle upgrading method, which comprises the following steps: determining a module to be upgraded of a vehicle controller; acquiring a storage position of the module to be upgraded corresponding to the upgrade package; compressing the upgrade package; confirming that the vehicle is in a working mode, and controlling the application program to transmit the compressed upgrade package to a controller reserved area from a storage position; and confirming that the vehicle enters an upgrading mode, and decompressing the upgrading packet to a target area of the module to be upgraded so as to upgrade the module to be upgraded. The application also provides a vehicle upgrading device, an electronic device and a storage medium. According to the method and the device, the transmission of the upgrade package is executed through the application program, and the upgrade package is transmitted to the reserved area of the controller, so that the upgrade package is transmitted quickly and noninductive to a user, the time for using the storage battery in the vehicle upgrade process is shortened, and the storage battery feed caused by vehicle upgrade is prevented.

Description

Vehicle upgrading method and device, electronic device and storage medium
Technical Field
The present application relates to the field of vehicle software upgrading, and in particular, to a vehicle upgrading method and apparatus, an electronic apparatus, and a storage medium.
Background
Along with the rapid development of the modern automobile industry, electronic parts on automobiles are more and more, the software complexity is higher and higher, the updating frequency is increased day by day, and even after the mass production of the automobiles, the software also has the requirement of iterative upgrade.
However, in the process of implementing the present invention, the inventor finds that at least the following problems exist in the prior art: the existing FOTA (Firmware Over The Air, FOTA) upgrading has a time problem, and due to The fact that The vehicle is not allowed to be upgraded when running, The vehicle can be upgraded only under The condition that The vehicle does not work normally, at The moment, controllers of The whole vehicle are powered by storage batteries, The electric quantity of The storage batteries can only support upgrading work for 30-45 minutes generally, and The risk of feeding electricity can occur when parts with large data volume are upgraded, so that user experience is affected.
Disclosure of Invention
In view of the above problems, the present application provides a vehicle upgrade method, a vehicle upgrade apparatus, an electronic apparatus, a vehicle, and a storage medium to solve the above problems.
A first aspect of an embodiment of the present application provides a vehicle upgrade method, including:
determining a module to be upgraded of a vehicle controller;
acquiring a storage position of the module to be upgraded corresponding to the upgrade package;
compressing the upgrade package;
confirming that the vehicle is in a working mode, and controlling an application program to transmit the compressed upgrade package to a reserved area of the vehicle controller from a storage position;
and confirming that the vehicle enters an upgrading mode, and decompressing the upgrading packet to a target area of the module to be upgraded so as to upgrade the module to be upgraded.
Therefore, the upgrading package is transmitted to the reserved area through the application program, the data package transmission and the vehicle upgrading in the vehicle upgrading process are respectively executed by different programs, the data package transmission can be executed when the vehicle is in the working mode, the time occupied by the vehicle upgrading in the upgrading mode is reduced, and the upgrading efficiency is improved.
In some embodiments, prior to said compressing said upgrade package, said vehicle upgrade method further comprises:
determining the size of an upgrade package according to the module to be upgraded;
judging whether the size of the upgrade package is larger than a preset value or not;
if so, compressing the upgrade package.
Therefore, the size of the upgrade package is larger than the preset value, the upgrade method provided by the application can be used, and the application range is limited to embody the advantages of the method.
In some embodiments, the confirming that the vehicle is in the operating mode, and the controlling application program transmitting the compressed upgrade package from the storage location to the reserved area of the controller specifically includes:
judging whether the vehicle enters a working mode or not;
if so, detecting an identification bit of a reserved area of the controller to judge the state of the reserved area;
if the reserved area is in an erasing state, controlling the application program to transmit the compressed data to the reserved area of the vehicle controller;
if the reserved area is in a data transmission state, acquiring the breakpoint position of an upgrade package in the reserved area;
and enabling the application program to continuously transmit the upgrade package to the reserved area of the vehicle controller according to the breakpoint position.
Therefore, the state of the reserved area is detected to adjust the application program to transmit the upgrade package, and the breakpoint transmission is continuously applied to the upgrade package transmission, so that the transmission of the upgrade package can be suitable for different driving states of the vehicle.
In some embodiments, the vehicle method further comprises:
checking whether the upgrade package in the reserved area is complete;
if so, updating the identification bit to indicate that the upgrade package is completely transmitted;
if not, erasing the reserved area so that the application program retransmits the upgrade package.
Therefore, the integrity of the upgrade package in the reserved area is ensured by checking the upgrade package in the reserved area.
In some embodiments, the decompressing the upgrade package to the target area of the module to be upgraded specifically includes:
controlling the module to be upgraded to enter a refresh session mode;
extracting a corresponding upgrading packet in the reserved area based on a module to be upgraded;
decompressing the upgrade package;
erasing the module to be upgraded;
and writing the upgrade package into the module to be upgraded.
Therefore, the upgrading package is written into the upgrading module through the BootLoader program, and the upgrading of the controller is completed.
In some embodiments, the determining a module to be upgraded for a vehicle controller specifically includes:
sending query information to a server;
receiving feedback information sent by the server, wherein the feedback information carries the latest software version of a controller, and the vehicle controller comprises a plurality of modules;
judging whether the software version of the vehicle is matched with the latest software version;
and determining a module corresponding to the unmatched software version, wherein the module is the module to be upgraded.
In this manner, the module to be upgraded is determined by interacting with the server.
In some embodiments, the vehicle upgrade method further comprises:
acquiring an incidence relation among a plurality of modules;
and adjusting the module to be upgraded according to the incidence relation.
Therefore, the module to be upgraded is adjusted through the incidence relation among the modules, so that the module to be upgraded is prevented from being missed.
In a second aspect of the embodiments of the present application, a vehicle upgrade apparatus includes:
the determining module is used for determining a module to be upgraded of the vehicle controller;
the acquisition module is used for acquiring the storage position of the upgrading package corresponding to the module to be upgraded;
the compression module is used for compressing the upgrade package;
the application program module is used for controlling the application program to transmit the compressed upgrade package to a reserved area of the vehicle controller from a storage position when the vehicle is confirmed to be in a working mode;
and the firmware loading module is used for determining that the vehicle enters an upgrading mode and decompressing the upgrading packet to a target area of the module to be upgraded so as to upgrade the module to be upgraded.
A third aspect of the embodiments of the present application further provides an electronic apparatus, including:
the device comprises a memory, a processor and a communication bus, wherein the memory is in communication connection with the processor through the communication bus; and a plurality of program modules stored in the memory, the program modules being loaded by the processor and executing the vehicle upgrade method as described above.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a vehicle upgrade method as described above.
For technical effects brought by the second aspect to the fourth aspect of the present application, reference may be made to the description related to the methods in the above method section, and details are not described herein again.
Drawings
Fig. 1 is a schematic flowchart of a vehicle upgrade method according to an embodiment of the present application.
FIG. 2 is a schematic diagram of a network environment for vehicle upgrade provided by an embodiment of the present application.
Fig. 3 is a schematic flowchart of upgrade package transmission according to an embodiment of the present application.
Fig. 4 is a functional block diagram of a vehicle upgrading device according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order that the objects, features and advantages of the present application can be more clearly understood, the present application will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict. In the following description, numerous specific details are set forth to provide a thorough understanding of the present application, and the described embodiments are merely a subset of the embodiments of the present application and are not intended to be a complete embodiment.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
Referring to fig. 1, fig. 1 is a schematic flow chart of a vehicle upgrading method according to an embodiment of the present disclosure. The order of the steps in the flow chart may be changed and some steps may be omitted according to different needs. For convenience of explanation, only portions related to the embodiments of the present application are shown.
The vehicle upgrading method is applied to the vehicle. For a vehicle needing to be upgraded, the vehicle upgrading function provided by the method of the present application can be directly integrated on the vehicle, or a client for implementing the vehicle upgrading method of the present application is installed. For another example, the vehicle upgrade method provided by the present application may also be operated on the vehicle in the form of a Software Development Kit (SDK), an interface of the vehicle upgrade function is provided in the form of an SDK, and the processor or other devices may implement the vehicle upgrade function through the provided interface.
The vehicle upgrading method comprises the following steps.
And step S1, determining a module to be upgraded of the vehicle controller.
Specifically, the vehicle controller includes a plurality of modules, and the vehicle upgrade includes an overall upgrade and an upgrade of a portion of the modules, and therefore, the upgrade process needs to be preceded by a determination that the module of the vehicle needs to be upgraded.
Wherein, step S1 specifically includes:
sending query information to a server;
receiving feedback information sent by the server, wherein the feedback information carries the latest software version of a controller, and the vehicle controller comprises a plurality of modules; such as a display module, a sound module, etc.
Judging whether the software version of the vehicle is matched with the latest software version;
and determining a module corresponding to the unmatched software version, wherein the module is the module to be upgraded.
In an embodiment of the present application, a plurality of modules in the controller have an association relationship, for example, the display module and the shooting module, and if the display module needs to be upgraded, the shooting module also needs to be upgraded correspondingly, so that the display module is adapted conveniently.
Specifically, the vehicle upgrading method further includes:
acquiring an incidence relation among a plurality of modules;
and adjusting the module to be upgraded according to the incidence relation.
In one embodiment, the server sends a query message to the vehicle to obtain the vehicle software version, compares the latest software version with the vehicle software version, and sends an upgrade instruction to the vehicle if the vehicle software version is not the latest version, wherein the upgrade instruction carries a module to be upgraded of the vehicle.
In another embodiment, the vehicle sends a query message to the server to obtain the latest version of the vehicle software, and the software versions of the vehicle are compared to determine the module of the vehicle to be upgraded.
And step S2, acquiring the storage position of the upgrade package corresponding to the module to be upgraded.
Optionally, the storage location of the upgrade package may be location information preset in the vehicle storage area, and the vehicle may obtain the location of the upgrade version according to the location information;
optionally, the server periodically pushes the location information of the upgrade package to the vehicle.
And step S3, compressing the upgrade package.
Optionally, the vehicle controller receives the process of the upgrade package while compressing the upgrade package.
Optionally, the vehicle controller sends a compression instruction to the server, so that the server storing the upgrade package compresses the data package according to the compression instruction of the controller.
Therefore, by compressing the upgrade package, the transmission time of the upgrade package can be reduced, and the storage space of the upgrade package can be saved.
Optionally, in an embodiment of the present application, before the step S3, the positioning method further includes:
determining the size of an upgrade package according to the module to be upgraded;
judging whether the size of the upgrade package is larger than a preset value or not;
if so, compressing the upgrade package.
If not, enabling the vehicle to enter a common upgrading mode.
The general upgrading mode is the existing upgrading mode of the vehicle, and all processes related to vehicle upgrading, including target data erasing, data transmission, data writing, data verification, logistics writing and the like, are completed in the BOOTLOADER.
The vehicle upgrading method is mainly applied to the upgrading process that the upgrading module is large, namely the upgrading package is large. Through this application make vehicle upgrading process's upgrading package transmission and upgrading package write in and go on in the mode of difference, upgrade package transmission promptly goes on when the vehicle is in the mode, and the upgrading package is write in and is gone on when the vehicle is in the mode of upgrading to reduce the time that the vehicle is in the mode of upgrading, promote upgrading efficiency. However, if the module to be upgraded is small, for example, the upgrade package is smaller than 512K, the module can be upgraded in a normal upgrade mode. It can be understood that, the above comparison is performed only by using the existing upgrade mode, and the upgrade method provided by the present application can also be applied to upgrade with a smaller upgrade package.
And step S4, confirming that the vehicle is in the working mode, and controlling the application program to transmit the upgrade package from the storage position to the reserved area of the controller.
By confirming that the vehicle is in the working mode, the electric quantity of the vehicle storage battery is not influenced in the process of transmitting the upgrade package from the storage position to the reserved area of the controller.
Specifically, the upgrade package is transmitted through the application program when the engine of the vehicle is in an operating state. Therefore, when the upgrade package is transmitted to the vehicle controller from the server, a user does not sense the upgrade package and the normal operation of the vehicle is not affected. In the prior art, the transmission of the upgrade package is performed by a bus of the controller, the bus is slow in data transmission, and the vehicle needs to be in a non-working mode when the bus transmits data.
Please refer to fig. 2, wherein the reserved area is a reserved storage space in the controller, and is mainly used for providing a flash storage space required for upgrading a new function, the storage space does not participate in normal use of the controller, and the size of the storage space is 30% to 40% of the storage space of the controller.
The vehicle controller comprises an application program and a bootloader program, wherein the application program is a program executed in the normal use process of the vehicle and executes the normal functions of the vehicle controller, and the bootloader program is used for the normal application program and needs to be updated and upgraded. The two programs are in the same Micro Controller Unit (MCU), and the vehicle upgrading method provided by the application comprises the following steps: and the downloading and transmission of the upgrade package are executed by the application program, and the writing process of the upgrade package is still executed by the bootloader program, wherein the writing of the upgrade package comprises the decompression of the upgrade package, the writing of the upgrade package and the verification of the upgrade.
And step S5, confirming that the vehicle enters an upgrading mode, decompressing the upgrading packet to a target area of the module to be upgraded, and upgrading the module to be upgraded.
The upgrade mode is that the vehicle is in a power-on state and the vehicle is in a no-task state.
Specifically, the upgrading packet of the reserved area is decompressed and written into a target area of the module to be upgraded, specifically including erasing, writing, verifying and writing of logistics data of the target area, so that the module to be upgraded is upgraded. The upgrade process is the same as the upgrade process of the existing bootloader program, and therefore, the description is omitted here, except that the bootloader program needs to perform decompression of the upgrade package extraction in the reserved area.
So, this application goes on the transmission of upgrading the package and the write-in of upgrading the package at the different modes of vehicle respectively, so, the vehicle transmits the upgrading package when being in mode, only the electric quantity of the battery of the write-in process use vehicle of upgrading the package, and the transmission of data package accounts for 70% ~ 80% time of whole upgrading process in the whole upgrading process, this time all carries out when the vehicle normally works, the user does not have the perception, the upgrading package write-in process time is shorter, and then reduced the shared time of upgrading mode, in order to prevent to lead to the battery feed of vehicle because of upgrading.
In an embodiment of the present application, referring to fig. 3, step S4 specifically includes:
step S41: and judging whether the vehicle enters a working mode or not.
The working mode of the vehicle can be determined by judging whether the engine is started or not or whether the gear of the vehicle is in a D gear or not.
If not, go to step S46: no data transfer operation, i.e., no transmission of the upgrade package, is performed.
If so, go to step S42: and detecting the identification bit of the reserved area of the controller to judge the state of the reserved area.
Specifically, the application program may enter a data transmission mode after receiving a response to the request, and when receiving the data transmission request, detect whether the flag of the reserved area is full FF, and if so, indicate that the reserved area has just executed data erasure, and the reserved area is in an erasure state, and then the application program may execute the first data transmission. If the data transmission state is not the full FF state, the reserved area is in the data transmission state.
Step S43: and if the reserved area is in an erasing state, controlling the application program to transmit the compressed data to the reserved area of the vehicle controller.
Specifically, the reserved area has been erased and no data packet is stored, and the program can be controlled to perform the first data transmission, i.e. to transmit the upgrade packet to the reserved area.
Step S44: and if the reserved area is in a data transmission state, acquiring the breakpoint position of the upgrade package in the reserved area.
Specifically, the upgrade package exists in the reserved area, but the upgrade package is not transmitted completely, the latest transmission breakpoint of the upgrade package is obtained, and the application program continues to transmit the upgrade package to the reserved area according to the breakpoint position, so that breakpoint transmission is continued.
Step S45: and enabling the application program to continuously transmit the upgrade package to the reserved area of the vehicle controller according to the breakpoint position.
Specifically, different data transmission is executed by judging the state in the reserved area, if the data transmission is the first data transmission, the compressed data is directly transmitted, and if the data transmission is not the first data transmission, the breakpoint of the last data transmission needs to be determined, and the subsequent data is transmitted according to the breakpoint, so that breakpoint continuous transmission is realized. Therefore, the transmission of the upgrade package can adapt to different vehicle running states through breakpoint continuous transmission.
Optionally, whether the vehicle executes the erasing operation can be judged through the identification position; if not, erasing the reserved area to enable the reserved area to be in an erasing state, so that the application program can transmit the data to the reserved area.
Further, the vehicle upgrading method further comprises the following steps:
checking whether the upgrade package in the reserved area is complete;
if so, updating the identification bit to indicate that the upgrade package is completely transmitted;
if not, erasing the reserved area so that the application program retransmits the upgrade package.
Specifically, after the data transmission is completed, data checking is performed, for example, data is checked through CRC, and if the data is checked to be correct, a flag bit is set to indicate that the transmission of the upgrade package is completed; if the verification fails, the reserved area is erased, and the upgrade package is retransmitted.
Therefore, the integrity of the data packet in the reserved area is ensured by checking the data packet.
In an embodiment of the present application, step S5 specifically includes:
controlling the module to be upgraded to enter a refresh session mode;
extracting a corresponding upgrading packet in the reserved area based on a module to be upgraded;
decompressing the upgrade package;
erasing the module to be upgraded;
and writing the upgrade package into the module to be upgraded.
Specifically, the module to be upgraded is controlled to enter a refresh session mode, and the Bootloader is responsible for the subsequent steps of vehicle upgrading, namely, the Bootloader program executes extraction and decompression of the upgrade package, erases the module to be upgraded, and writes the decompressed upgrade package into the module to be upgraded so as to complete upgrading of the module to be upgraded.
Therefore, the Bootloader only executes the processes of data writing, data verification, logistics writing and the like in the vehicle upgrading process, the processes of target data erasing, data transmission and the like are executed by the application program, so that the transmission of the upgrading packet and the writing of the upgrading packet are executed by different programs in different vehicle modes, the vehicle upgrading time in the upgrading mode state is reduced, and the vehicle upgrading efficiency is improved.
Fig. 1 details the vehicle upgrade method of the present application, by which vehicle upgrade can be achieved. The functional modules and hardware device architecture for implementing the vehicle upgrading device are described below with reference to fig. 4 and 5. It should be understood that the above-described embodiments are illustrative only, and are not limiting upon the scope of the present application.
Fig. 4 is a functional block diagram of a vehicle upgrading device according to an embodiment of the present application.
In some embodiments, the vehicle upgrading apparatus 100 may include a plurality of function modules composed of program code segments. The program code of each program segment in the vehicle upgrade apparatus 100 may be stored in a memory of the electronic apparatus 10 and executed by at least one processor in the electronic apparatus 10 to upgrade functions of the vehicle.
Referring to fig. 4, in the present embodiment, the vehicle upgrading apparatus 100 may be divided into a plurality of functional modules according to the functions performed by the vehicle upgrading apparatus, and the functional modules are used for performing the steps in the corresponding embodiment of fig. 1 to implement the automatic parking function. In the present embodiment, the functional modules of the vehicle upgrading apparatus 100 include: a determination module 101, an acquisition module 102, a compression module 103, an application module 104, and a firmware loading module 105.
The determining module 101 is used for determining a module to be upgraded of the vehicle controller;
an obtaining module 102, configured to obtain a storage location of an upgrade package corresponding to the module to be upgraded;
a compression module 103, configured to compress the upgrade package;
the application program module 104 is used for confirming that the vehicle is in a working mode and controlling the application program to transmit the compressed upgrade package to a reserved area of the vehicle controller from a storage position;
and the firmware loading module 105 is used for confirming that the vehicle enters an upgrading mode and decompressing the upgrading packet to a target area of the module to be upgraded so as to upgrade the module to be upgraded.
In an embodiment, the determining module 101 is further configured to:
determining the size of an upgrade package according to the module to be upgraded;
judging whether the size of the upgrade package is larger than a preset value or not;
if so, compressing the upgrade package.
In one embodiment, the application module 104 is further configured to:
judging whether the vehicle enters a working mode or not;
if so, detecting an identification bit of a reserved area of the controller to judge the state of the reserved area;
if the reserved area is in an erasing state, controlling the application program to transmit the compressed data to the reserved area of the vehicle controller;
if the reserved area is in a data transmission state, acquiring the breakpoint position of an upgrade package in the reserved area;
and enabling the application program to continuously transmit the upgrade package to the reserved area of the vehicle controller according to the breakpoint position.
In one embodiment, the application module 104 is further configured to:
checking whether the upgrade package in the reserved area is complete;
if so, updating the identification bit to indicate that the upgrade package is completely transmitted;
if not, erasing the reserved area so that the application program retransmits the upgrade package.
In an embodiment, the firmware loading module 105 is further configured to:
controlling the module to be upgraded to enter a refresh session mode;
extracting a corresponding upgrading packet in the reserved area based on a module to be upgraded;
decompressing the upgrade package;
erasing the module to be upgraded;
and writing the upgrade package into the module to be upgraded.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device 10 comprises a memory 11, a processor 12 and a communication bus 13, wherein the memory 11 is connected with the processor 12 in a communication mode through the communication bus 13.
The electronic device 10 further comprises a computer program 14, such as a program for vehicle upgrade control, stored in the memory 11 and executable on the processor 12.
The steps of the vehicle upgrade method in the method embodiment are implemented when the processor 12 executes the computer program 14. Alternatively, the processor 12 executes the computer program 14 to realize the functions of the modules/units in the system embodiment.
Illustratively, the computer program 14 may be partitioned into one or more modules/units, which are stored in the memory 11 and executed by the processor 12 to accomplish the present application. 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 of the computer program 14 in the electronic device 10. For example, the computer program 14 may be partitioned into modules 101 and 105 in FIG. 4.
It is to be understood that fig. 5 is merely an example of the electronic apparatus 10 and does not constitute a limitation of the electronic apparatus 10, and that the electronic apparatus 10 may include more or less components than those shown, or some components may be combined, or different components, for example, the electronic apparatus 10 may further include an input device, etc.
The Processor 12 may be a Central Processing Unit (CPU), and may include other general purpose processors, Digital Signal Processors (DSP), Application Specific Integrated Circuits (ASIC), Field-Programmable Gate arrays (FPGA) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, and the processor 12 is the control center of the electronic device 10 and connects the various parts of the entire electronic device 10 using various interfaces and lines.
The memory 11 can be used for storing the computer program 14 and/or the module/unit, and the processor 12 can implement various functions of the electronic device 10 by running or executing the computer program and/or the module/unit stored in the memory 11 and calling data stored in the memory 11. The storage 11 may include an external storage medium and may also include a memory. In addition, the memory 11 may include a high speed random access memory, and may also include a 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.
The integrated modules/units of the electronic device 10, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments may be implemented by a computer program, which may be stored in a computer-readable storage medium and used by a processor to implement the steps of the embodiments of the methods. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
Finally, it should be noted that the above embodiments are only used for illustrating the technical solutions of the present application and not for limiting, and although the present application is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions can be made on the technical solutions of the present application without departing from the spirit and scope of the technical solutions of the present application.

Claims (10)

1. A vehicle upgrade method, comprising:
determining a module to be upgraded of a vehicle controller;
acquiring a storage position of the module to be upgraded corresponding to the upgrade package;
compressing the upgrade package;
confirming that the vehicle is in a working mode, and controlling an application program to transmit the compressed upgrade package to a reserved area of the vehicle controller from a storage position;
and confirming that the vehicle enters an upgrading mode, and decompressing the upgrading packet to a target area of the module to be upgraded so as to upgrade the module to be upgraded.
2. The vehicle upgrade method according to claim 1, wherein prior to said compressing the upgrade package, the vehicle upgrade method further comprises:
determining the size of an upgrade package according to the module to be upgraded;
judging whether the size of the upgrade package is larger than a preset value or not;
if so, compressing the upgrade package.
3. The vehicle upgrade method according to claim 1, wherein the confirming that the vehicle is in an operating mode, and controlling the application program to transmit the compressed upgrade package from a storage location to a reserved area of the vehicle controller, specifically comprises:
judging whether the vehicle enters a working mode or not;
if so, detecting an identification bit of a reserved area of the controller to judge the state of the reserved area;
if the reserved area is in an erasing state, controlling the application program to transmit the compressed data to the reserved area of the vehicle controller;
if the reserved area is in a data transmission state, acquiring the breakpoint position of an upgrade package in the reserved area;
and enabling the application program to continuously transmit the upgrade package to a reserved area of the vehicle controller according to the breakpoint position.
4. The vehicle upgrade method according to claim 3, wherein the vehicle method further comprises:
checking whether the upgrade package in the reserved area is complete;
if so, updating the identification bit to indicate that the upgrade package is completely transmitted;
if not, erasing the reserved area so that the application program retransmits the upgrade package.
5. The vehicle upgrade method according to claim 4, wherein the decompressing the upgrade package to the target area of the module to be upgraded specifically includes:
controlling the module to be upgraded to enter a refresh session mode;
extracting a corresponding upgrading packet in the reserved area based on a module to be upgraded;
decompressing the upgrade package;
erasing the module to be upgraded;
and writing the upgrade package into the module to be upgraded.
6. The vehicle upgrading method according to claim 1, wherein the determining of the module to be upgraded of the vehicle controller specifically includes:
sending query information to a server;
receiving feedback information sent by the server, wherein the feedback information carries the latest software version of the vehicle controller, and the vehicle controller comprises a plurality of modules;
judging whether the software version of the vehicle is matched with the latest software version;
and determining a module corresponding to the unmatched software version, wherein the module is the module to be upgraded.
7. The vehicle upgrade method according to claim 6, further comprising:
acquiring an incidence relation among a plurality of modules;
and adjusting the module to be upgraded according to the incidence relation.
8. A vehicle upgrade apparatus, comprising:
the determining module is used for determining a module to be upgraded of the vehicle controller;
the acquisition module is used for acquiring the storage position of the upgrading package corresponding to the module to be upgraded;
the compression module is used for compressing the upgrade package;
the application program module is used for controlling the application program to transmit the compressed upgrade package to a reserved area of the vehicle controller from a storage position when the vehicle is confirmed to be in a working mode;
and the firmware loading module is used for determining that the vehicle enters an upgrading mode and decompressing the upgrading packet to a target area of the module to be upgraded so as to upgrade the module to be upgraded.
9. An electronic device, comprising:
the device comprises a memory, a processor and a communication bus, wherein the memory is in communication connection with the processor through the communication bus; and
the memory has stored therein a plurality of program modules that are loaded by the processor and execute the vehicle upgrade method according to any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a vehicle upgrade method according to any one of claims 1 to 7.
CN202110449760.0A 2021-04-25 2021-04-25 Vehicle upgrading method and device, electronic device and storage medium Withdrawn CN113094072A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110449760.0A CN113094072A (en) 2021-04-25 2021-04-25 Vehicle upgrading method and device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110449760.0A CN113094072A (en) 2021-04-25 2021-04-25 Vehicle upgrading method and device, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN113094072A true CN113094072A (en) 2021-07-09

Family

ID=76680252

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110449760.0A Withdrawn CN113094072A (en) 2021-04-25 2021-04-25 Vehicle upgrading method and device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN113094072A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113434181A (en) * 2021-08-26 2021-09-24 新石器慧通(北京)科技有限公司 Software upgrading method and device, electronic equipment and storage medium
CN114014116A (en) * 2021-10-19 2022-02-08 日立楼宇技术(广州)有限公司 Method, system, device and storage medium for sectionally upgrading elevator master control program
CN114615256A (en) * 2022-03-04 2022-06-10 恒大新能源汽车投资控股集团有限公司 Vehicle upgrading method and device and electronic equipment
CN115220753A (en) * 2022-05-09 2022-10-21 广州汽车集团股份有限公司 Vehicle program upgrading method and device, electronic equipment and storage medium
WO2023024895A1 (en) * 2021-08-26 2023-03-02 长春捷翼汽车零部件有限公司 Charging stand, charging stand upgrading method and apparatus, device, and storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113434181A (en) * 2021-08-26 2021-09-24 新石器慧通(北京)科技有限公司 Software upgrading method and device, electronic equipment and storage medium
CN113434181B (en) * 2021-08-26 2022-01-04 新石器慧通(北京)科技有限公司 Software upgrading method and device, electronic equipment and storage medium
WO2023024895A1 (en) * 2021-08-26 2023-03-02 长春捷翼汽车零部件有限公司 Charging stand, charging stand upgrading method and apparatus, device, and storage medium
CN114014116A (en) * 2021-10-19 2022-02-08 日立楼宇技术(广州)有限公司 Method, system, device and storage medium for sectionally upgrading elevator master control program
CN114615256A (en) * 2022-03-04 2022-06-10 恒大新能源汽车投资控股集团有限公司 Vehicle upgrading method and device and electronic equipment
CN115220753A (en) * 2022-05-09 2022-10-21 广州汽车集团股份有限公司 Vehicle program upgrading method and device, electronic equipment and storage medium
CN115220753B (en) * 2022-05-09 2024-01-09 广州汽车集团股份有限公司 Vehicle program upgrading method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN113094072A (en) Vehicle upgrading method and device, electronic device and storage medium
US6978198B2 (en) System and method to load vehicle operation software and calibration data in general assembly and service environment
CN110083374B (en) Upgrade rollback method, system and terminal equipment
CN110134415A (en) A kind of controller and its method for upgrading software and device
CN105760200A (en) Terminal device and system updating method thereof
CN111813428A (en) Method and device for upgrading terminal firmware, electronic equipment and storage medium
CN112152846B (en) Metering instrument remote upgrading method based on Internet of things
CN111722864A (en) ECU data flashing method and related device
CN107015829B (en) Audio system upgrading method and device
US11449329B2 (en) Vehicle control device and program update system
CN105045671A (en) Method and device for upgrading systems of intelligent terminals
US11853742B2 (en) Server, software update system, distribution method, and non-transitory storage medium
CN110134423B (en) Firmware updating method and device and computer readable storage medium
US20220391192A1 (en) Ota master, center, system, method, non-transitory storage medium, and vehicle
CN112181455B (en) Online upgrading method of microcontroller, microcontroller and storage medium
CN115291905A (en) High-reliability OTA (over the air) upgrading method and system for automobile based on A/B (analog/digital) system
CN114546455A (en) MCU software upgrading method and device for double partitions
KR20150110860A (en) Apparatus and method for firmware updating of vehicle
CN114527994A (en) Firmware programming method and system and vehicle control system
KR101207342B1 (en) Car digital tachograph apparatus having auto upgrade function
CN114253568A (en) Application program upgrading method, device and equipment
CN111722858A (en) Online upgrading method and terminal equipment
CN116909609B (en) Software upgrading method and device of vehicle-mounted intelligent equipment and vehicle-mounted intelligent equipment
CN113254030B (en) Method, device, storage medium and system for refreshing software of vehicle-mounted microprocessor in emergency
US20220405083A1 (en) Ota master, system, method, non-transitory storage medium, and vehicle

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20210709