CN115309422A - Vehicle-mounted program upgrading method, device, equipment and medium - Google Patents

Vehicle-mounted program upgrading method, device, equipment and medium Download PDF

Info

Publication number
CN115309422A
CN115309422A CN202210851035.0A CN202210851035A CN115309422A CN 115309422 A CN115309422 A CN 115309422A CN 202210851035 A CN202210851035 A CN 202210851035A CN 115309422 A CN115309422 A CN 115309422A
Authority
CN
China
Prior art keywords
program
storage space
upgraded
upgrading
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210851035.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.)
Dongfeng Motor Group Co Ltd
Original Assignee
Dongfeng Motor Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongfeng Motor Group Co Ltd filed Critical Dongfeng Motor Group Co Ltd
Priority to CN202210851035.0A priority Critical patent/CN115309422A/en
Publication of CN115309422A publication Critical patent/CN115309422A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method, a device, equipment and a medium for upgrading a vehicle-mounted program, wherein the method comprises the following steps: receiving a program upgrading request issued by a server; responding to the program upgrading request, and acquiring target information of a program to be upgraded from a server; determining a target storage space required by the program to be upgraded according to the target information; acquiring a local available storage space for upgrading a program to be upgraded; and determining whether to locally execute the upgrading operation of the program to be upgraded or not according to the target storage space and the available storage space. According to the method and the system, firstly, the target storage space required by the program to be upgraded is compared with the available storage space which can be locally used for upgrading through the vehicle-mounted client, whether the upgrading operation of the program to be upgraded is executed is determined according to the comparison result, and the probability of program upgrading failure can be greatly reduced. Before the program starts to be upgraded, whether the available storage space of the vehicle-mounted client meets the upgrading requirement or not is determined, and the probability of the situation that the program fails to be upgraded in the upgrading process can be reduced.

Description

Vehicle-mounted program upgrading method, device, equipment and medium
Technical Field
The present invention relates to the field of program updating technologies, and in particular, to a method, an apparatus, a device, and a medium for upgrading a vehicle-mounted program.
Background
As the technology of the internet of vehicles matures day by day, the vehicle machines can provide more and more services. In general, the service of the car machine depends on program implementation, the update period of the program is short, and the program is updated more frequently. However, since the space of the storage medium of the in-vehicle program is small, the failure rate of the program upgrade is high.
Disclosure of Invention
The embodiment of the application provides a vehicle-mounted program upgrading method, device, equipment and medium, solves the technical problem of high program upgrading failure rate in the prior art, and achieves the technical effect of reducing the program upgrading failure rate.
In a first aspect, the present application provides a vehicle-mounted program upgrading method, which is applied to a vehicle-mounted client, and the method includes:
receiving a program upgrading request issued by a server;
responding to the program upgrading request, and acquiring target information of a program to be upgraded from the server;
determining a target storage space required by the program to be upgraded according to the target information;
acquiring a local available storage space for upgrading the program to be upgraded;
and determining whether to execute the upgrading operation of the program to be upgraded locally or not according to the target storage space and the available storage space.
Further, the determining, according to the target information, a target storage space required by the program to be upgraded includes:
and determining the target storage space required by the program to be upgraded according to an over-the-air download task package list in the target information.
Further, the determining whether to locally execute the upgrade operation of the program to be upgraded according to the target storage space and the available storage space includes:
judging whether an over-the-air download task corresponding to the program to be upgraded is set with a rollback mode or not;
if the over-the-air download task is provided with a rollback mode, judging whether the target storage space and the available storage space meet a first preset relation or not;
and if the target storage space and the available storage space meet the first preset relation, determining that the upgrading operation of the program to be upgraded is executed locally, so as to download the program to be upgraded from the server and upgrade the program.
Further, the determining whether the target storage space and the available storage space satisfy a first preset relationship includes:
and judging whether the available storage space is a first preset multiple of the target storage space.
Further, the determining whether to locally execute the upgrade operation of the program to be upgraded according to the target storage space and the available storage space includes:
judging whether an over-the-air download task corresponding to the program to be upgraded is set with a rollback mode or not;
if the over-the-air download task does not set a rollback mode, judging whether the target storage space and the available storage space meet a second preset relation or not;
and if the target storage space and the available storage space meet the second preset relation, determining that the upgrading operation of the program to be upgraded is executed locally so as to download and upgrade the program to be upgraded from the server.
Further, the determining whether the target storage space and the available storage space satisfy a second preset relationship includes:
and judging whether the available storage space is a second preset multiple of the target storage space.
Further, the determining whether to locally execute the upgrade operation of the program to be upgraded according to the target storage space and the available storage space includes:
and if the target storage space and the available storage space do not meet the target preset relationship, returning a target instruction to the server, wherein the target instruction is used for prompting the client to reject the upgrading task of the program to be upgraded.
In a second aspect, the present application provides an on-board program upgrading apparatus, including:
the program upgrading request receiving module is used for receiving a program upgrading request issued by a server;
the target information acquisition module is used for responding to the program upgrading request and acquiring target information of the program to be upgraded from the server;
the target storage space determining module is used for determining the target storage space required by the program to be upgraded according to the target information;
the available storage space acquisition module is used for acquiring the local available storage space for upgrading the program to be upgraded;
and the judging module is used for determining whether the upgrading operation of the program to be upgraded is executed locally or not according to the target storage space and the available storage space.
In a third aspect, the present application provides an electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute to implement an in-vehicle program upgrading method as provided in the first aspect.
In a fourth aspect, the present application provides a non-transitory computer-readable storage medium, where instructions that, when executed by a processor of an electronic device, enable the electronic device to perform a method for implementing an in-vehicle program upgrade as provided by the first aspect.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
according to the method and the device, the vehicle-mounted client receives the program upgrading request issued by the server, responds to the program upgrading request, can acquire the target information of the program to be upgraded from the server, can calculate the target storage space required by the program to be upgraded according to the target information, compares the target storage space with the available storage space which can be locally used for upgrading the program to be upgraded, and can determine whether the vehicle-mounted client can execute the upgrading operation of the program to be upgraded. Therefore, in the embodiment of the application, the target storage space required by the program to be upgraded is compared with the available local storage space available for upgrading through the vehicle-mounted client, whether the upgrading operation of the program to be upgraded is executed is determined according to the comparison result, and the probability of program upgrading failure caused by small space of a vehicle-mounted program storage medium can be greatly reduced. In addition, whether the available storage space of the vehicle-mounted client meets the upgrading requirement is determined before the program starts to be upgraded, so that the probability of the situation that the program fails to be upgraded in the upgrading process can be reduced, the time cost of invalid upgrading can be reduced, and the efficiency of effective upgrading is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a vehicle-mounted program upgrading method provided in the present application;
FIG. 2 is a schematic flow chart of an example of the application of the method of FIG. 1;
FIG. 3 is a schematic structural diagram of an in-vehicle program upgrading apparatus provided in the present application;
fig. 4 is a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
The embodiment of the application provides a vehicle-mounted program upgrading method, and solves the technical problem that the program upgrading failure rate is high in the prior art.
In order to solve the technical problems, the general idea of the embodiment of the application is as follows:
a vehicle-mounted program upgrading method is applied to a vehicle-mounted client, and comprises the following steps: receiving a program upgrading request issued by a server; responding to the program upgrading request, and acquiring target information of a program to be upgraded from a server; determining a target storage space required by the program to be upgraded according to the target information; acquiring a local available storage space for upgrading a program to be upgraded; and determining whether to locally execute the upgrading operation of the program to be upgraded or not according to the target storage space and the available storage space.
In the embodiment, the vehicle-mounted client receives the program upgrading request issued by the server, responds to the program upgrading request, can acquire the target information of the program to be upgraded from the server, can calculate the target storage space required by the program to be upgraded according to the target information, and compares the target storage space with the available storage space which can be locally used for upgrading the program to be upgraded, so as to determine whether the vehicle-mounted client can execute the upgrading operation of the program to be upgraded. Therefore, in the embodiment, the target storage space required by the program to be upgraded is compared with the available local storage space which can be used for upgrading through the vehicle-mounted client, and whether the upgrading operation of the program to be upgraded is executed or not is determined according to the comparison result, so that the probability of program upgrading failure caused by small space of a vehicle-mounted program storage medium can be greatly reduced. In addition, whether the available storage space of the vehicle-mounted client meets the upgrading requirement is determined before the program starts to be upgraded, so that the probability of the situation that the program fails to be upgraded in the upgrading process can be reduced, the time cost of invalid upgrading can be reduced, and the efficiency of effective upgrading is improved.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
First, it is stated that the term "and/or" appearing herein is merely one type of associative relationship that describes an associated object, meaning that three types of relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The embodiment provides an on-board program upgrading method shown in fig. 1, which is applied to an on-board client and comprises steps S11 to S15.
Step S11, receiving a program upgrading request issued by a server;
s12, responding to the program upgrading request, and acquiring target information of a program to be upgraded from a server;
s13, determining a target storage space required by the program to be upgraded according to the target information;
s14, acquiring a local available storage space for upgrading the program to be upgraded;
and S15, determining whether the local upgrading operation of the program to be upgraded is executed according to the target storage space and the available storage space.
In step S11, a program upgrade request issued by the server is received.
The server may be an OTA (Over-the-Air Technology) cloud server, and the client may be a T-BOX (remote monitoring terminal) of the vehicle-mounted terminal.
The client receives a program upgrading request issued by the server, wherein the program upgrading request can include version information of a program to be upgraded. And the client compares the version information of the program to be upgraded in the program upgrading request with the version information of the current program of the client to determine whether the version information is the same.
If the version information of the program to be upgraded is the same as that of the current program of the client, the client can refuse the upgrade, for example, a target instruction can be returned to the server, and the target instruction is used for prompting the client to refuse an upgrade task of the program to be upgraded.
If the version information of the program to be upgraded is not the same as the version information of the current program of the client, step S12 may be continuously executed.
Regarding step S12, in response to the program upgrade request, target information of the program to be upgraded is acquired from the server.
If the version information of the program to be upgraded is different from the version information of the current program of the client, the client can continuously respond to the program upgrading request and can acquire the target information of the program to be upgraded from the server. The target information may be an over-the-air task package list, a server storage address of the program to be upgraded, and the like. For example, when the server is an OTA cloud server and the client is a T-BOX, the target information may be an OTA task packet list.
With regard to step S13, a target storage space required for the program to be upgraded is determined according to the target information.
The client can determine the target storage space required by the program to be upgraded according to the over-the-air task package list in the target information.
With respect to step S14, the available memory space locally used for upgrading the program to be upgraded is acquired.
And the client calculates the available local storage space for upgrading the program to be upgraded.
Regarding step S15, it is determined whether to locally perform an upgrade operation of the program to be upgraded, based on the target storage space and the available storage space.
And the client can determine whether the client can carry out the upgrading operation of the program to be upgraded or not according to the target storage space and the available storage space.
In general, the available storage space is larger than the target storage space, and the client can perform the upgrade operation of the program to be upgraded. The available storage space is less than or equal to the target storage space, and the client cannot perform the upgrading operation of the program to be upgraded.
It should be noted that, in the implementation, the execution sequence between step S14 and step S12 and/or step S13 may be set according to practical situations.
In summary, in the embodiment, the vehicle-mounted client receives the program upgrading request issued by the server, responds to the program upgrading request, can acquire the target information of the program to be upgraded from the server, can calculate the target storage space required by the program to be upgraded according to the target information, and can compare the target storage space with the available storage space which can be locally used for upgrading the program to be upgraded, so as to determine whether the vehicle-mounted client can execute the upgrading operation of the program to be upgraded. Therefore, in the embodiment, the target storage space required by the program to be upgraded is compared with the available local storage space which can be used for upgrading through the vehicle-mounted client, and whether the upgrading operation of the program to be upgraded is executed or not is determined according to the comparison result, so that the probability of program upgrading failure caused by small space of a vehicle-mounted program storage medium can be greatly reduced. In addition, whether the available storage space of the vehicle-mounted client meets the upgrading requirement is determined before the program starts to be upgraded, so that the probability of the situation that the program fails to be upgraded in the upgrading process can be reduced, the time cost of invalid upgrading can be reduced, and the efficiency of effective upgrading is improved.
More specifically, on the basis of the above scheme, the present embodiment further provides an optimization scheme including steps S21 to S23, steps S31 to S32, and step S41.
And S21, judging whether the over-the-air download task corresponding to the program to be upgraded is provided with a rollback mode.
Rollback refers to the act of a program or data processing error to restore the program or data to the last correct state. The user can set the rollback mode at the server side, and compared with the situation that the setting right of the rollback mode is set at the vehicle-mounted client side, the setting right of the rollback mode is set at the server side, so that the resource occupation of the vehicle-mounted client side can be reduced, and the computing resources and the storage space of the vehicle-mounted client side are released.
And the vehicle-mounted client judges whether the over-the-air download task corresponding to the program to be upgraded is provided with a rollback mode, if so, the step S22 is executed, and if not, the step S31 is executed.
And S22, if the over-the-air download task is provided with a rollback mode, judging whether the target storage space and the available storage space meet a first preset relation or not.
And if the over-the-air download task is provided with a rollback mode, continuously judging whether the target storage space and the available storage space meet the first preset relation. The first preset relationship may be that the available storage space is a first preset multiple of the target storage space. The first preset multiple may be set according to actual conditions, for example, the first preset multiple may be 4.5 times. Typically, the rollback mode requires more space, and therefore the first predetermined factor is greater than the second predetermined factor.
And if the target storage space and the available storage space do not meet the first preset relationship, the vehicle-mounted client can return a target instruction to the server, and the target instruction is used for prompting the client to refuse the upgrading task of the program to be upgraded.
If the target storage space and the available storage space satisfy the first preset relationship, the step S23 is continuously performed.
And S23, if the target storage space and the available storage space meet the first preset relation, determining that the upgrading operation of the program to be upgraded is executed locally, and downloading the program to be upgraded from the server and upgrading.
If the target storage space and the available storage space meet the first preset relationship, which means that the vehicle-mounted client meets the upgrading condition of the program to be upgraded, the vehicle-mounted client can execute the upgrading operation of the program to be upgraded, specifically, download the upgrading package of the program to be upgraded from the server and upgrade the program.
And S31, if the roll-back mode is not set in the over-the-air download task, judging whether the target storage space and the available storage space meet a second preset relation or not.
And if the over-the-air download task does not set the rollback mode, continuously judging whether the target storage space and the available storage space meet a second preset relation. The second preset relationship may be that the available storage space is a second preset multiple of the target storage space. The second preset multiple may be set according to actual conditions, for example, the second preset multiple may be 2.5 times.
And if the target storage space and the available storage space do not meet the second preset relationship, the vehicle-mounted client can return a target instruction to the server, and the target instruction is used for prompting the client to refuse the upgrading task of the program to be upgraded.
If the target storage space and the available storage space satisfy the second preset relationship, the step S32 is continuously performed.
And step S32, if the target storage space and the available storage space meet a second preset relation, determining that the upgrading operation of the program to be upgraded is locally executed, so as to download the program to be upgraded from the server and upgrade the program.
If the target storage space and the available storage space meet the second preset relationship, which means that the vehicle-mounted client meets the upgrading condition of the program to be upgraded, the vehicle-mounted client can execute the upgrading operation of the program to be upgraded, specifically, download the upgrading package of the program to be upgraded from the server and upgrade the program.
And S41, if the target storage space and the available storage space do not meet the target preset relationship (including the first preset relationship and the second preset relationship), returning a target instruction to the server, wherein the target instruction is used for prompting the client to reject the upgrading task of the program to be upgraded.
In summary, in this embodiment, the client determines whether the over-the-air download task sets the rollback mode, and determines whether the vehicle-mounted client can upgrade the program to be upgraded based on the determination result and whether the target storage space and the available storage space satisfy the target preset relationship. Therefore, in the embodiment, different judgment conditions are adopted for judging whether the rollback mode is set, whether the vehicle-mounted client can upgrade the program to be upgraded is determined, and the probability of program upgrading failure caused by small space of a vehicle-mounted program storage medium can be greatly reduced. In addition, whether the available storage space of the vehicle-mounted client meets the upgrading requirement is determined before the program starts to be upgraded, so that the probability of the situation that the program fails to be upgraded in the upgrading process can be reduced, the time cost of invalid upgrading can be reduced, and the efficiency of effective upgrading is improved.
Now, with the OTA cloud as the server and the T-BOX as the vehicle-mounted client, the following example is provided in conjunction with fig. 2:
step1: the OTA cloud end issues an OTA upgrading command; the T-BOX determines whether the version carried by the OTA upgrading command is the same as the current version of the T-BOX or not, and if not, step2 is executed;
step2, after receiving the OTA upgrading command, the T-BOX acquires an OTA task packet list and a storage address of an OTA upgrading packet from an OTA cloud;
step3: the T-BOX calculates the total size A1 of the software package of the secondary upgrade according to the OTA task package list;
step4: the T-BOX obtains the available space A2 itself for storing the OTA's software package.
Step5: the T-BOX compares the space sizes of A1 and A2;
step6: analyzing whether the OTA task rolls back or not from the OTA upgrading command;
step7: if the OTA task does not set rollback, the space A2 for storing the software package is 2.5 times of the total size A1 of the software package to be downloaded;
step8: if the OTA task sets rollback, the space A2 for storing the software package is 4.5 times of the total size A1 of the software package to be downloaded;
step9: if the comparison result meets the rules of Step7 and Step8, the storage space is successfully detected, the upgrading operation of the program to be upgraded can be executed, and then Step10 is executed;
step10, the T-BOX starts to download the OTA upgrade package from the storage address of the OTA upgrade package;
step11: if the comparison result does not meet the rules of step7 and step8, the detection of the memory space fails, the T-BOX returns a cloud error instruction, and the subsequent operation of the OTA cannot be executed.
Based on the same inventive concept, the present embodiment provides an on-board program upgrading apparatus as shown in fig. 3, the apparatus including:
a program upgrade request receiving module 31, configured to receive a program upgrade request issued by a server;
a target information obtaining module 32, configured to respond to the program upgrading request, and obtain target information of the program to be upgraded from the server;
a target storage space determining module 33, configured to determine, according to the target information, a target storage space required by the program to be upgraded;
an available storage space obtaining module 34, configured to obtain a local available storage space for upgrading the program to be upgraded;
and the judging module 35 is configured to determine whether to execute the upgrading operation of the program to be upgraded locally according to the target storage space and the available storage space.
Further, the target storage space determining module 33 includes:
and the target storage space determining submodule is used for determining the target storage space required by the program to be upgraded according to the over-the-air task package list in the target information.
Further, the judging module 35 includes:
the first judgment submodule is used for judging whether an over-the-air download task corresponding to the program to be upgraded is provided with a rollback mode or not;
the second judgment submodule is used for judging whether the target storage space and the available storage space meet the first preset relation or not if the over-the-air download task is provided with a rollback mode;
and the execution submodule is used for determining that the upgrading operation of the program to be upgraded is locally executed if the target storage space and the available storage space meet the first preset relation so as to download the program to be upgraded from the server and upgrade the program.
Further, a second determination submodule configured to:
whether the available storage space is a first preset multiple of the target storage space is judged.
Further, the determining module 35 includes:
the first judgment submodule is used for judging whether an over-the-air download task corresponding to the program to be upgraded is provided with a rollback mode or not;
the second judgment submodule is used for judging whether the target storage space and the available storage space meet a second preset relation or not if the rollback mode is not set in the over-the-air download task;
and the execution submodule is used for determining that the upgrading operation of the program to be upgraded is locally executed if the target storage space and the available storage space meet the second preset relation so as to download the program to be upgraded from the server and upgrade the program.
Further, a second determination submodule configured to:
and judging whether the available storage space is a second preset multiple of the target storage space.
Further, the judging module 35 includes:
and the feedback module is used for returning a target instruction to the server if the target storage space and the available storage space do not meet the target preset relationship, and the target instruction is used for prompting the client to refuse the upgrading task of the program to be upgraded.
Based on the same inventive concept, the present embodiment provides an electronic device as shown in fig. 4, including:
a processor 41;
a memory 42 for storing instructions executable by the processor 41;
wherein, the processor 41 is configured to execute to implement an in-vehicle program upgrading method as provided in the foregoing.
Based on the same inventive concept, the present embodiment provides a non-transitory computer-readable storage medium, when instructions in the storage medium are executed by the processor 41 of the electronic device, so that the electronic device can execute the method for implementing the vehicle-mounted program upgrade provided as the foregoing.
Since the electronic device described in this embodiment is an electronic device used for implementing the method for processing information in the embodiment of the present application, a person skilled in the art can understand the specific implementation of the electronic device of this embodiment and various modifications thereof based on the method for processing information described in this embodiment of the present application, and therefore, how to implement the method in the embodiment of the present application by the electronic device is not described in detail herein. Electronic devices used by those skilled in the art to implement the method for processing information in the embodiments of the present application are all within the scope of the present application.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
in the embodiment, the vehicle-mounted client receives the program upgrading request issued by the server, responds to the program upgrading request, can acquire the target information of the program to be upgraded from the server, can calculate the target storage space required by the program to be upgraded according to the target information, and compares the target storage space with the available storage space which can be locally used for upgrading the program to be upgraded, so as to determine whether the vehicle-mounted client can execute the upgrading operation of the program to be upgraded. Therefore, in the embodiment, the target storage space required by the program to be upgraded is compared with the available local storage space which can be used for upgrading through the vehicle-mounted client, and whether the upgrading operation of the program to be upgraded is executed or not is determined according to the comparison result, so that the probability of program upgrading failure caused by small space of a vehicle-mounted program storage medium can be greatly reduced. In addition, whether the available storage space of the vehicle-mounted client meets the upgrading requirement is determined before the program starts to be upgraded, so that the probability of the situation that the program fails to be upgraded in the upgrading process can be reduced, the time cost of invalid upgrading can be reduced, and the efficiency of effective upgrading is improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A vehicle-mounted program upgrading method is applied to a vehicle-mounted client, and comprises the following steps:
receiving a program upgrading request issued by a server;
responding to the program upgrading request, and acquiring target information of a program to be upgraded from the server;
determining a target storage space required by the program to be upgraded according to the target information;
acquiring a local available storage space for upgrading the program to be upgraded;
and determining whether to execute the upgrading operation of the program to be upgraded locally or not according to the target storage space and the available storage space.
2. The method as claimed in claim 1, wherein said determining the target storage space required by the program to be upgraded according to the target information comprises:
and determining the target storage space required by the program to be upgraded according to an over-the-air download task package list in the target information.
3. The method of claim 1, wherein the determining whether to perform the upgrade operation of the program to be upgraded locally according to the target storage space and the available storage space comprises:
judging whether an over-the-air download task corresponding to the program to be upgraded is set with a rollback mode or not;
if the over-the-air download task is provided with a rollback mode, judging whether the target storage space and the available storage space meet a first preset relation or not;
and if the target storage space and the available storage space meet the first preset relation, determining that the upgrading operation of the program to be upgraded is executed locally so as to download and upgrade the program to be upgraded from the server.
4. The method of claim 3, wherein said determining whether said target storage space and said available storage space satisfy a first predetermined relationship comprises:
and judging whether the available storage space is a first preset multiple of the target storage space.
5. The method as claimed in claim 1, wherein said determining whether to perform locally the upgrade operation of the program to be upgraded according to the target storage space and the available storage space comprises:
judging whether an over-the-air download task corresponding to the program to be upgraded is set with a rollback mode or not;
if the over-the-air download task does not set a rollback mode, judging whether the target storage space and the available storage space meet a second preset relation or not;
and if the target storage space and the available storage space meet the second preset relation, determining that the upgrading operation of the program to be upgraded is executed locally so as to download and upgrade the program to be upgraded from the server.
6. The method of claim 5, wherein said determining whether said target storage space and said available storage space satisfy a second predetermined relationship comprises:
and judging whether the available storage space is a second preset multiple of the target storage space.
7. The method as claimed in claim 1, wherein said determining whether to perform locally the upgrade operation of the program to be upgraded according to the target storage space and the available storage space comprises:
and if the target storage space and the available storage space do not meet the target preset relationship, returning a target instruction to the server, wherein the target instruction is used for prompting the client to reject the upgrading task of the program to be upgraded.
8. An in-vehicle program upgrading apparatus, characterized in that the apparatus comprises:
the program upgrading request receiving module is used for receiving a program upgrading request issued by a server;
the target information acquisition module is used for responding to the program upgrading request and acquiring target information of a program to be upgraded from the server;
the target storage space determining module is used for determining the target storage space required by the program to be upgraded according to the target information;
the available storage space acquisition module is used for acquiring the local available storage space for upgrading the program to be upgraded;
and the judging module is used for determining whether to execute the upgrading operation of the program to be upgraded locally according to the target storage space and the available storage space.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute to implement an in-vehicle program upgrading method according to any one of claims 1 to 7.
10. A non-transitory computer readable storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform implementing a vehicle-mounted program upgrade method according to any one of claims 1 to 7.
CN202210851035.0A 2022-07-19 2022-07-19 Vehicle-mounted program upgrading method, device, equipment and medium Pending CN115309422A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210851035.0A CN115309422A (en) 2022-07-19 2022-07-19 Vehicle-mounted program upgrading method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210851035.0A CN115309422A (en) 2022-07-19 2022-07-19 Vehicle-mounted program upgrading method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN115309422A true CN115309422A (en) 2022-11-08

Family

ID=83857393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210851035.0A Pending CN115309422A (en) 2022-07-19 2022-07-19 Vehicle-mounted program upgrading method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115309422A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118227186A (en) * 2024-05-27 2024-06-21 杭州海康威视数字技术股份有限公司 Differential upgrading method, device, equipment, storage medium and program product

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118227186A (en) * 2024-05-27 2024-06-21 杭州海康威视数字技术股份有限公司 Differential upgrading method, device, equipment, storage medium and program product

Similar Documents

Publication Publication Date Title
US11449327B2 (en) Error-resilient over-the-air software updates for vehicles
CN110659049A (en) OTA (over the air) upgrading method and terminal equipment for automatic driving vehicle
CN107608701A (en) A kind of method and apparatus of firmware updating
CN110865842B (en) OTA upgrading method and equipment
CN112913190A (en) Upgrading method and device based on over-the-air technology OTA
CN115309422A (en) Vehicle-mounted program upgrading method, device, equipment and medium
CN116028092A (en) Method, device, equipment and storage medium for fusing automobile OTA upgrading task
CN112579114B (en) Program upgrading method and device of Internet of things equipment and Internet of things equipment
CN115291907A (en) Vehicle upgrading method, device and system
CN111344641B (en) Control device for a motor vehicle and method for operating the control device
CN111722857A (en) Updating method and device of software development kit, electronic equipment and storage medium
CN113050960B (en) OTA upgrading method and device, vehicle-mounted terminal and storage medium
CN113805933A (en) Set top box system upgrading method and device, set top box, system and storage medium
CN116737198A (en) Firmware pushing method, device, equipment and storage medium
CN110990046A (en) Upgrading method based on dynamic file
CN115934130A (en) ECU (electronic control Unit) upgrading method, device, equipment and medium
CN111221556B (en) Remote upgrade RSU mirror image method and system
CN114675856A (en) OTA upgrade control method, device, system, computer equipment and medium
CN114906160A (en) Vehicle control and task processing method and device, computing equipment and system
CN112463208A (en) Version management method and device, electronic equipment and storage medium
CN112732301A (en) Vehicle upgrading method and device
CN116107603B (en) Firmware upgrading method and device, storage medium and electronic equipment
CN110825406A (en) Software upgrading method and related equipment
US12093677B2 (en) OTA master, update control method, and non-transitory storage medium
CN107291503B (en) Application program upgrading device, device and method

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