CN114090048A - Software upgrading method and device - Google Patents

Software upgrading method and device Download PDF

Info

Publication number
CN114090048A
CN114090048A CN202111426754.XA CN202111426754A CN114090048A CN 114090048 A CN114090048 A CN 114090048A CN 202111426754 A CN202111426754 A CN 202111426754A CN 114090048 A CN114090048 A CN 114090048A
Authority
CN
China
Prior art keywords
file
upgrading
target application
upgrade
local
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
CN202111426754.XA
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.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch 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 Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN202111426754.XA priority Critical patent/CN114090048A/en
Publication of CN114090048A publication Critical patent/CN114090048A/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 embodiment of the application provides a method and a device for software upgrading, and can be applied to the field of intelligent automobiles. The method comprises the following steps: when receiving upgrade prompt information aiming at a target application sent by a server, downloading an upgrade configuration file; the upgrading configuration file comprises file information and a reference identifier of each software function file corresponding to the target application of the upgrading version; determining an upgrading mode of the local target application according to the upgrading configuration file, wherein the upgrading mode comprises upgrading the local target application according to an upgrading package and upgrading the local target application according to a complete software package; and upgrading the local target application according to the determined upgrading mode. The embodiment of the application can ensure the integrity and the freshness of the software and improve the efficiency of software upgrading.

Description

Software upgrading method and device
Technical Field
The application relates to the field of intelligent automobiles, in particular to a software upgrading method and device.
Background
With the development of electronic technology, various kinds of software are more and more, and the software is more and more complex, so that the frequency of software release and update is higher and higher, and the content needing to be upgraded is more and more complex.
In the prior art, there are two common methods for making an upgrade package: the first is to pack the whole software file into a complete software package, and the user needs to download the whole file every time upgrading to achieve the software integrity. And secondly, only the updated or newly added files are packaged into an upgrade package, and only the modified or newly added parts need to be downloaded when the user upgrades the files.
The first upgrading method is to pack the whole software, and a user needs to download a large amount of data each time upgrading is performed, so that the efficiency is very low, and network resources are consumed. The second upgrading method is to solve the problem that several versions in the middle of a user are not upgraded, and when the versions are directly upgraded to the latest version, the situations of file loss and non-latest version of the file easily occur, so that the upgrading is failed.
Therefore, how to improve the software upgrading efficiency and compromise the upgrading effect is a technical problem being studied by those skilled in the art.
Disclosure of Invention
The embodiment of the application provides a software upgrading method and device, and the software upgrading efficiency is improved.
In a first aspect, an embodiment of the present application provides a software upgrading method, which is applied to a terminal device, and includes:
when receiving upgrade prompt information aiming at target application sent by a server, downloading an upgrade configuration file; the upgrading configuration file comprises file information and a reference identifier of each software function file corresponding to the target application of the upgrading version;
determining the upgrading mode of the local target application according to the upgrading configuration file;
and upgrading the local target application according to the determined upgrading mode.
Optionally, the upgrading method includes upgrading the local target application according to an upgrade package, and upgrading the local target application according to a complete software package.
Optionally, the upgrade package includes an update file and a newly added file, and the complete software package includes all files of the target application of the upgrade version; the reference identifier is used for representing that the corresponding file is the updated file or other files, and the other files comprise the newly added file;
the determining the upgrading mode of the local target application according to the upgrading configuration file comprises the following steps:
comparing whether the file information recorded in the upgrading configuration file by the target software function file is consistent with the file information recorded in the local configuration file or not according to the reference identification of each file in the upgrading configuration file; the target software function file is a file with reference identification represented as the other files; the local configuration file records the file information of each software function file of the currently installed target application;
if the target application is consistent with the target application, upgrading the local target application through the upgrading packet;
and if the target application is inconsistent with the target application, upgrading the local target application through the complete software package.
Optionally, the comparing whether the file information recorded in the upgrade configuration file of the target software function file is consistent with the file information recorded in the local configuration file includes:
and if the local configuration file lacks file information of at least one target software function file, judging that the file information recorded by the target software function file in the upgrading configuration file is inconsistent with the file information recorded by the local configuration file.
Optionally, the file information includes a file version number; the comparing whether the file information recorded in the upgrade configuration file of the target software function file is consistent with the file information recorded in the local configuration file further includes:
and if the file version number recorded in the upgrading configuration file by at least one target software function file is inconsistent with the file version number recorded in the local configuration file, judging that the file information recorded in the upgrading configuration file by the target software function file is inconsistent with the file information recorded in the local configuration file.
Optionally, the upgrade configuration file further includes a version number of the target application of the upgraded version, and the local configuration file includes a version number of the currently installed target application; before determining to upgrade the local target application by an upgrade package or upgrade the local target application by a complete software package according to the upgrade configuration file, the method further includes:
judging whether the version number of the target application of the upgraded version is higher than the version number of the currently installed target application;
and if so, executing the upgrading mode and the subsequent steps of determining the local target application according to the upgrading configuration file.
In a second aspect, an embodiment of the present application provides a software upgrading method, applied to a server, including:
the server generates an upgrade package and a complete software package corresponding to the target application of the upgrade version;
the server generates an upgrade configuration file, wherein the upgrade configuration file comprises file information and a reference identifier of each software function file corresponding to a target application of an upgrade version; the upgrading configuration file is used for the terminal equipment to decide the upgrading mode of the target application local to the terminal equipment;
and the server sends upgrading prompt information aiming at the target application to the terminal equipment.
In a third aspect, an embodiment of the present application provides a software upgrading apparatus, which is applied to a terminal device, and includes a receiving unit and an upgrading unit, where:
the receiving unit is used for downloading the upgrade configuration file when receiving the upgrade prompt information aiming at the target application sent by the server; the upgrading configuration file comprises file information and a reference identifier of each software function file corresponding to the target application of the upgrading version;
the determining unit is used for determining the upgrading mode of the local target application according to the upgrading configuration file;
and the upgrading unit is used for upgrading the local target application according to the determined upgrading mode.
In a fourth aspect, an embodiment of the present application provides a software upgrading apparatus, which is applied to a server, and includes a generating unit and a sending unit, where:
the generation unit is used for generating an upgrade package and a complete software package corresponding to the target application of the upgrade version; the upgrading method is also used for generating an upgrading configuration file, wherein the upgrading configuration file comprises file information and a reference identifier of each software function file corresponding to the target application of the upgrading version; the upgrading configuration file is used for the terminal equipment to decide the upgrading mode of the target application local to the terminal equipment;
and the sending unit is used for sending upgrading prompt information aiming at the target application to the terminal equipment.
In a fifth aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory; the memory has stored therein a computer program; when the processor executes the computer program, the computing device performs the method described in any of the first or second aspects above.
In a sixth aspect, embodiments of the present application provide a computer-readable storage medium having stored therein instructions that, when executed on at least one processor, implement the method described in any of the preceding first or second aspects.
In a seventh aspect, the present application provides a computer program product comprising computer instructions that, when executed on at least one processor, implement the method described in any of the preceding first or second aspects. The computer program product may be a software installation package, which may be downloaded and executed on a computing device in case it is desired to use the method as described above.
In the method of the first aspect, the terminal device may know the specific upgrading status of the target application of the current upgrade version by downloading the upgrade configuration file to know the file information and the reference identifier of each software function file corresponding to the target application of the upgrade version included in the upgrade configuration file, so as to determine which upgrading mode the local target application is upgraded in, and may specifically process different upgrading statuses, thereby avoiding that the upgrading process becomes redundant or fails, and thus improving the efficiency and success rate of software upgrading.
The technical methods provided in the second to seventh aspects of the present application may refer to the advantageous effects of the technical solutions of the first aspect, and are not described herein again.
Drawings
The drawings that are required to be used in the description of the embodiments will now be briefly described.
Fig. 1 is a schematic architecture diagram of a software upgrading system provided by an embodiment of the present application;
fig. 2 is a schematic flowchart of a software upgrading method provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of a software upgrading method provided in an embodiment of the present application;
FIG. 4 is a schematic flowchart of another software upgrading method provided by an embodiment of the present application;
fig. 5 is a schematic structural diagram of a software upgrading apparatus 50 provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a software upgrading apparatus 60 according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a terminal device 70 according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a server 80 according to an embodiment of the present application.
Detailed Description
The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a schematic architecture diagram of a software upgrading system provided in an embodiment of the present application, where the system includes a server 101 and a terminal device 102, where:
the server 101 may be a server or a server cluster composed of a plurality of servers, and provides a computing or application service for the terminal device 102, so as to implement distribution and update of the software upgrade package.
The terminal apparatus 102 is a device having a processing capability and a data transceiving capability. The terminal device 102 may generate a sending instruction, receive an instruction, or run software, thereby implementing processing of the software upgrade package and related services performed on the vehicle. For example, the terminal device 102 may be a Computer, a notebook, a tablet, a palmtop, a desktop, a diagnostic device, a mobile phone, an Ultra-mobile Personal Computer (UMPC), a netbook, a Personal Digital Assistant (PDA), or the like. In the embodiment of the present application, the user group corresponding to the user of the terminal device 102 may be a research institute, an after-sales department, a 4S store user, and the like, and all of the user groups have a right to upgrade software.
The method of the embodiments of the present application is described in detail below.
Referring to fig. 2, fig. 2 is a schematic flowchart of a software upgrading method provided in an embodiment of the present application, where the method may be implemented based on the system architecture shown in fig. 1, and may also be implemented based on other system architectures, and is specifically applied to a terminal device, where the method includes, but is not limited to, the following steps:
step S201: and downloading the upgrade configuration file when receiving upgrade prompt information aiming at the target application sent by the server.
Specifically, when the server receives the software upgrade package, an upgrade prompt message of the target application is sent to the terminal device, then the terminal device receives the upgrade prompt message for the target application, and then the terminal device downloads an upgrade configuration file from the server to lay down for subsequent operations, wherein the upgrade configuration file comprises file information and a reference identifier of each software function file corresponding to the target application of the upgrade version.
Step S202: and determining the upgrading mode of the local target application according to the upgrading configuration file.
Specifically, the terminal device can know file information and a reference identifier of each software function file corresponding to the target application of the upgrade version included in the upgrade configuration file by downloading the upgrade configuration file, so as to know the specific upgrade condition of the target application of the upgrade version at this time, and thus judge which upgrade mode the local target application uses to upgrade more appropriately, and can process different upgrade conditions in a targeted manner, thereby avoiding the upgrade process from becoming redundant or failed, and thus improving the efficiency and success rate of software upgrade.
Step S203: and upgrading the local target application according to the determined upgrading mode.
Specifically, the upgrading mode includes upgrading the local target application according to the upgrading packet, and upgrading the local target application according to the complete software packet, and the terminal device may correspondingly upgrade the local target application through the two upgrading modes, respectively.
Referring to fig. 3, fig. 3 is a schematic flowchart of a software upgrading method provided in an embodiment of the present application, where the method may be implemented based on the system architecture shown in fig. 1, and may also be implemented based on other system architectures, where the method includes, but is not limited to, the following steps:
step S301: and downloading the upgrade configuration file when receiving upgrade prompt information aiming at the target application sent by the server.
Specifically, when the server receives the software upgrade package, the server sends an upgrade prompt message of the target application to the terminal device, the terminal device receives the upgrade prompt message for the target application, and then the terminal device downloads an upgrade configuration file from a webpage of the server to lay down for subsequent operations, wherein the upgrade configuration file comprises file information and a reference identifier of each software function file corresponding to the target application of the upgrade version.
Step S302: and determining the upgrading mode of the local target application according to the upgrading configuration file.
In the embodiment of the application, the upgrading modes include two modes, including upgrading the local target application according to the upgrading package, and upgrading the local target application according to the complete software package. In this embodiment of the present application, the upgrade package includes an update file and an added file of the current upgrade, where the update file is an update version of an existing file, and the added file is a file that does not exist in a target application of a previous version, and both the update file and the added file are software function files, such as developed and compiled files; the complete software package includes the latest software function files and files that do not need to be modified, such as system files. In the present application, the above reference identifier is used to characterize the corresponding file as an updated file or other files, where the other files include the newly added file and files that are not updated.
Specifically, the terminal device compares whether file information recorded in the upgrade configuration file by the target software function file is consistent with file information recorded in the local configuration file according to the reference identifier of each file in the upgrade configuration file; the target software function file is a file with reference identification represented as the other files; the local configuration file records the file information of each software function file of the currently installed target application;
that is, the file information of the newly added file of the target application of the upgraded version and the file information of the file which is not updated are compared with the file information recorded in the local configuration file;
if the target application is consistent with the target application, upgrading the local target application through the upgrading packet;
and if the target application is inconsistent with the target application, upgrading the local target application through the complete software package.
In the embodiment of the application, the file types (such as the updated file, the newly added file and the non-updated file) of the software function file of the target application of the upgraded version are marked by the reference identifier, so that the newly added file and the non-updated file are found according to the reference identifier, whether the file information of the newly added file and the non-updated file of the target application of the upgraded version is consistent with that recorded in the local configuration file or not is judged, if the recorded file information is consistent, the local target application only needs to download the updated file, and the program automatically decompresses and replaces the upgrade without downloading a complete software package every time, so that a large amount of network resources are saved. Therefore, the local target application is selected to be upgraded through the upgrade package, if the recorded file information is inconsistent, it is indicated that the local target application may lack a new file of an upgrade version or a non-updated file, or the contents of the files are inconsistent, the local target application cannot be upgraded directly through the upgrade package, and the upgrade is most likely to fail, the local target application is selected to be upgraded through the complete software package, the complete software package is downloaded from the server, the upgrade is automatically decompressed, the upgrade is successful, and the files are complete. Therefore, the embodiment of the application can select the appropriate upgrading method for different situations, can save network resources, ensures that each file is complete and latest, and can greatly improve the efficiency and success rate of software upgrading.
After the after-sale technician creates a corresponding upgrade package and a complete software package for the target application of the upgrade version each time, the after-sale technician also sets a corresponding upgrade configuration file, and the upgrade configuration file records file information and reference identifications of all software function files of the upgrade version at this time. In the embodiment of the present application, the reference identifier of the other file (i.e., including the newly added file and the non-updated file) is set to "1", and the reference identifier of the updated file is set to "0". The file reference flag is set to "1" or "0" merely for convenience of the following description, and is not limited to the case where it is set to "1" or "0", and there may be other cases or a plurality of cases.
Figure BDA0003378798480000041
TABLE 1
In this embodiment of the present application, the comparing whether the file information recorded in the upgrade configuration file of the target software function file is consistent with the file information recorded in the local configuration file includes: and if the local configuration file lacks file information of at least one target software function file, judging that the file information recorded by the target software function file in the upgrading configuration file is inconsistent with the file information recorded by the local configuration file.
Taking Table 1 as an example, Table 1 records files A-D, where file C is identified as "0", indicating that file C belongs to an updated file of an upgraded version of a target application, files A and B belong to files that have not been updated, and file D may be an added file. In table 1, only the file information corresponding to the file with reference identifier 1 needs to be compared, that is, only whether the information of file a, file B, and file D in the local configuration file and the upgrade configuration file is consistent or not needs to be compared. Obviously, the information of the file D is not recorded in the local configuration file, the local target application does not include the file D, the file D may be a newly added file, or the local application is not updated in time before, and some versions of the local application are missed for updating, so the local application does not have the file D. The complete software package includes both the files a-D and some files that do not need to be modified, such as system files.
In some embodiments, the comparing whether the file information recorded in the upgrade configuration file of the target software function file is consistent with the file information recorded in the local configuration file may also include: and if the file version number recorded in the upgrading configuration file by at least one target software function file is inconsistent with the file version number recorded in the local configuration file, judging that the file information recorded in the upgrading configuration file by the target software function file is inconsistent with the file information recorded in the local configuration file.
In this embodiment, even if the file with reference identifier "1" of the upgrade configuration file record can find the corresponding file in the local configuration file, when the version numbers are different, the upgrade needs to be performed by the complete software package.
Table 2 of the following table is illustrated by way of example:
Figure BDA0003378798480000051
TABLE 2
Taking table 2 as an example, table 2 records files a-C, where file C is identified as "0" indicating that file C belongs to an updated file of the upgraded version of the target application, and files a and B belong to files that are not updated. In table 2, only the file information corresponding to the file with reference identifier 1 needs to be compared, that is, only whether the information of file a and file B in the local configuration file and the upgrade configuration file is consistent or not needs to be compared. It can be seen that the version number of the file a of the target application of the upgraded version is higher than the version number of the local file, and meanwhile, the version number of the file B of the target application of the upgraded version is higher than the version number of the file B of the local application, however, the upgrade package only includes the file C with the version number of V2.0, and does not include the file that is not updated, that is, the upgrade package does not include the file a and the file B, so the target application of the local version cannot directly upgrade the local application by downloading the upgrade package, and in this case, the terminal device may select the complete software package to upgrade the local application.
In some embodiments, the files recorded in the upgrade configuration file can all find corresponding files in the local configuration file, and the version numbers are the same, so in this case, the terminal device only needs to select the upgrade package for upgrading.
Table 3 of the following table illustrates by way of example:
Figure BDA0003378798480000052
TABLE 3
In the embodiment of the present application, only the file a and the file B need to be compared, and obviously, the information recorded in the upgrade configuration file by the file a and the file B is the same as the information recorded in the local configuration file, and then only the upgrade package (including the file C with the version number of V2.0) needs to be downloaded for upgrade.
Step S303: and upgrading the local target application according to the determined upgrading mode.
Through the scheme, when a technician issues the upgrade package each time, the integrity and the effectiveness of the local software can be automatically checked by the client only by distinguishing the reference identification and the file version number of each file in the upgrade package, even if the client is the most basic version, the upgrade is not performed in the middle, and when the upgrade is performed again, the verification can be automatically performed according to the logic, the complete software package is not required to be downloaded every time the upgrade is performed again, so that the network resources are greatly saved, and the after-sale efficiency is improved.
In some embodiments, the upgrade configuration file further includes a version number of the upgraded version of the target application, and the local configuration file includes a version number of the currently installed target application; before determining to upgrade the local target application by an upgrade package or upgrade the local target application by a complete software package according to the upgrade configuration file, the method further includes:
judging whether the version number of the target application of the upgraded version is higher than the version number of the currently installed target application; if yes, determining the upgrading mode of the local target application according to the upgrading configuration file and upgrading the local application according to the determined upgrading mode.
In the embodiment of the application, firstly, the step of determining that the version number of the target application of the upgraded version is higher than the version number of the local target application is a pre-step of a series of subsequent operations such as subsequently referring to the identifier and judging whether the file information of the upgraded configuration file is consistent with that of the local configuration file, and the like, and only when the version number of the upgraded version is higher than the local version number, the local target application needs to be upgraded, otherwise, the local target application does not need to be upgraded.
Referring to fig. 4, fig. 4 is a schematic flowchart of another software upgrading method provided in this embodiment of the present application, where the method may be implemented based on the system architecture shown in fig. 1, and may also be implemented based on other system architectures, and the method is applied to a server, and includes, but is not limited to, the following steps:
step S401: the server generates an upgrade package and a complete software package corresponding to the target application of the upgrade version;
in the embodiment of the application, the update and newly added files are placed in the upgrade package, and the complete software package includes all the file files of the target application of the upgrade version. For example, if only the file a needs to be updated at this time, the technician only places the updated file a in the upgrade package. Therefore, technicians need to package the updated files on the server into an upgrade package and then use the upgrade package to make a complete software package for updating, so that the software package downloaded on the server by the terminal device is up-to-date and complete.
Step S402: the server generates an upgrade configuration file.
Specifically, the upgrade configuration file includes file information and a reference identifier of each software function file corresponding to the target application of the upgrade version; the upgrade configuration file is used for the terminal equipment to decide the upgrade mode of the target application local to the terminal equipment.
After the server generates the upgrade configuration file, the terminal may obtain the file information and the reference identifier of each software function file corresponding to the target application of the upgrade version by downloading the upgrade configuration file, so that the upgrade mode of the local target application may be clearly determined through subsequent operations (e.g., if the local software package needs to be updated by downloading a complete software package or the local file needs to be updated by downloading the upgrade package), and the local target application may be upgraded according to the determined upgrade mode. Therefore, the integrity and the latest of the file can be ensured, and the efficiency of software upgrading is improved.
Step S403: and the server sends upgrading prompt information aiming at the target application to the terminal equipment.
In the embodiment of the application, after the server completes the step of upgrading the upgrade package and the complete software package, the server sends the upgrade prompt information for the file of the local target application to be upgraded to the terminal device, and prompts that the target application of the terminal device has the content to be upgraded.
In the prior art, the terminal device needs to download the complete software package each time to upgrade the software package of the local target application, and does not process the upgrading conditions of different files in a targeted manner. By two upgrading modes of upgrading the local target application according to the upgrading packet and upgrading the local target application according to the complete software packet, different upgrading conditions can be processed in a targeted mode, the upgrading process is prevented from becoming redundant, and therefore the software upgrading efficiency is improved.
The method of the embodiments of the present application is explained in detail above, and the apparatus of the embodiments of the present application is provided below.
It should be understood that a plurality of apparatuses, for example, software upgrading apparatuses, provided in the embodiments of the present application include hardware structures, software modules, or a combination of hardware structures and software structures for performing the functions in the foregoing method embodiments, and the like.
Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. A person skilled in the art may implement the foregoing method embodiments in different usage scenarios by using different device implementations, and the different implementation manners of the device should not be considered as exceeding the scope of the embodiments of the present application.
The embodiment of the application can divide the functional modules of the device. For example, each functional module may be divided for each function, or two or more functions may be integrated into one functional module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
For example, in the case where the respective functional blocks of the apparatus are divided in an integrated manner, the present application exemplifies several possible processing apparatuses.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a software upgrading apparatus 50 according to an embodiment of the present disclosure, where the software upgrading apparatus 50 is applied to a terminal device, and may be a device in the terminal device, such as a chip, a software module, an integrated circuit, and the like. The software upgrading apparatus 50 is used for implementing the aforementioned software upgrading method, such as the software upgrading method in the embodiment illustrated in fig. 3.
In one possible implementation, the software upgrading apparatus 50 may include a receiving unit 501, a determining unit 502, an upgrading unit 503, and a judging unit 504.
The receiving unit 501 is configured to download an upgrade configuration file when receiving upgrade prompt information for a target application sent by a server; the upgrading configuration file comprises file information and a reference identifier of each software function file corresponding to the target application of the upgrading version;
a determining unit 502, configured to determine an upgrade manner of the local target application according to the upgrade configuration file, where the upgrade manner includes upgrading the local target application according to an upgrade package and upgrading the local target application according to a complete software package;
the upgrading unit 503 is configured to upgrade the local target application according to the determined upgrading mode.
In the prior art, the terminal device needs to download the complete software package each time to upgrade the software package of the local target application, and does not process the upgrading conditions of different files in a targeted manner. By two upgrading modes of upgrading the local target application according to the upgrading packet and upgrading the local target application according to the complete software packet, different upgrading conditions can be processed in a targeted mode, the upgrading process is prevented from becoming redundant, and therefore the software upgrading efficiency is improved.
Optionally, the upgrading method includes upgrading the local target application according to an upgrade package, and upgrading the local target application according to a complete software package.
Specifically, the upgrading mode includes upgrading the local target application according to the upgrading packet, and upgrading the local target application according to the complete software packet, and the terminal device may correspondingly upgrade the local target application through the two upgrading modes, respectively.
Optionally, the upgrade package includes an update file and a newly added file, and the complete software package includes all files of the target application of the upgrade version; the reference identifier is used for representing that the corresponding file is the updated file or other files, and the other files comprise the newly added file;
in the aspect of determining the upgrade mode of the local target application according to the upgrade configuration file, the determining unit 502 is specifically configured to:
comparing whether the file information recorded in the upgrading configuration file by the target software function file is consistent with the file information recorded in the local configuration file or not according to the reference identification of each file in the upgrading configuration file; the target software function file is a file with reference identification represented as the other files; the local configuration file records the file information of each software function file of the currently installed target application;
if the target application is consistent with the target application, upgrading the local target application through the upgrading packet;
and if the target application is inconsistent with the target application, upgrading the local target application through the complete software package.
In the embodiment of the application, whether the file information recorded by the target software function file in the upgrade configuration file is consistent with the file information recorded by the local configuration file or not is determined to be prepositioned for determining whether the file needs to be upgraded or not by comparing the reference identifier of each file in the upgrade configuration file, if the recorded file information is consistent, the terminal equipment is characterized to upgrade the local target application through the upgrade package, if the recorded file information is inconsistent, the terminal equipment is characterized to upgrade the local target application through the complete software package, and whether each file needs to be updated or newly added can be determined in a targeted manner by comparing the information recorded by the upgrade configuration file and the local configuration file, so that targeted operation is performed on different conditions, each file is ensured to be complete and latest, and the efficiency of software upgrade can be greatly improved by performing operation in steps.
Optionally, the determining unit 502 is further configured to:
and if the local configuration file lacks file information of at least one target software function file, judging that the file information recorded by the target software function file in the upgrading configuration file is inconsistent with the file information recorded by the local configuration file.
In this embodiment of the application, if it is found that the local configuration file lacks file information included in the upgrade configuration file when comparing the file information recorded in the upgrade configuration file with the file information recorded in the local configuration file (for example, the terminal device does not have the file a, and the server adds the file a to the file that needs to be updated this time), it indicates that the upgrade has the newly added file, but the local device does not include the file, which indicates that the upgrade configuration file is inconsistent with the file information recorded in the local configuration file, and then the complete software package is downloaded to update the local software package, so as to ensure that each file is up-to-date and complete.
Optionally, the determining unit 502 is further configured to:
and if the file version number recorded in the upgrading configuration file by at least one target software function file is inconsistent with the file version number recorded in the local configuration file, judging that the file information recorded in the upgrading configuration file by the target software function file is inconsistent with the file information recorded in the local configuration file.
In this embodiment, if the file information recorded by the upgrade configuration file and the local configuration file is compared, it is found that one or more recorded file version numbers on the upgrade configuration file are inconsistent with the local configuration file (for example, a file A, B, C exists in a software package of a server, a file A, B, C also exists in a local software package, but the version number of a file B, C on the server is V4.0, and the version numbers of a local file B, C are V1.0 and V2.0, respectively, but the file B, C is not placed in the upgrade package), which indicates that the file information recorded by the upgrade configuration file and the local configuration file is inconsistent, and the complete software package needs to be downloaded to update the local target application.
Optionally, the apparatus further includes a determining unit 504, where the determining unit 504 is configured to:
judging whether the version number of the target application of the upgraded version is higher than the version number of the currently installed target application;
and if so, triggering the determining unit to execute the operation of determining the upgrading mode of the local target application according to the upgrading configuration file and the subsequent operation.
In the embodiment of the application, firstly, it is determined that the version number of the target application of the upgraded version is higher than the version number of the local target application, and the subsequent pre-initialization of a series of subsequent operations such as referring to the identifier and judging whether the file information of the upgraded configuration file is consistent with that of the local configuration file is performed, and only when the version number of the upgraded version is higher than the local version number, it is indicated that the target application needs to be upgraded, otherwise, the upgrading is not needed.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a software upgrading apparatus 60 according to an embodiment of the present disclosure, where the software upgrading apparatus 60 is applied to a server, and may also be a device in the server, such as a chip, a software module, an integrated circuit, and the like. The software upgrading apparatus 60 is used for implementing the aforementioned software upgrading method, such as the software upgrading method in the embodiment illustrated in fig. 4.
In a possible implementation, the software upgrading apparatus 60 may include a generating unit 601 and a transmitting unit 602.
The generating unit 601 is configured to generate an upgrade package and a complete software package corresponding to a target application of an upgrade version;
the generating unit 601 is further configured to generate an upgrade configuration file, where the upgrade configuration file includes file information and a reference identifier of each software function file corresponding to a target application of an upgraded version; the upgrading configuration file is used for the terminal equipment to decide the upgrading mode of the target application local to the terminal equipment;
the sending unit 602 is configured to send upgrade prompt information for a target application to the terminal device.
In the embodiment of the application, the server enables a user to select to download the upgrade package or download the complete software package on the terminal device in a targeted manner by adding the upgrade package, for example, the upgrade package can be directly downloaded to replace local target software for a file to be upgraded, and the latest complete software package is downloaded to upgrade the local target software for the case that the file is missing or the file is incomplete, so that the local files are all latest and complete, the upgrade is divided into two cases of only downloading the upgrade package and downloading the complete software package, which can be implemented correspondingly for different cases, and the upgrade process is prevented from becoming redundant, thereby improving the efficiency of software upgrade.
Optionally, the generating unit 601 is further configured to generate an upgrade package corresponding to the target application of the upgraded version;
and the server upgrades the current software package of the target application through the upgrade package to obtain a new complete software package of the target application.
In the embodiment of the application, the server needs to package the upgraded file into the upgrade package, and then upgrade the software package of the local target application by using the upgrade package, so that the software package downloaded on the server by the terminal device is up-to-date and complete, the prior art does not adopt a mode of separating the upgrade package and the software package, but downloads the complete software package when the software is updated every time, and compared with the prior art, the operation of the application can improve the efficiency of software upgrade.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a terminal device 70 according to an embodiment of the present disclosure, where the terminal device 70 may be a stand-alone device (e.g., one or more of a server, or a user device, etc.), or may be a component (e.g., a chip, a software module, or a hardware module, etc.) inside the stand-alone device. The terminal device 70 may include at least one processor 801. Optionally, at least one memory 703 may also be included. Further optionally, terminal device 70 may also include a communication interface 702. Still further optionally, a bus 704 may be included, wherein the processor 701, the communication interface 702, and the memory 703 are connected via the bus 704.
The processor 701 is a module for performing arithmetic operation and/or logical operation, and may specifically be one or a combination of multiple Processing modules, such as a Central Processing Unit (CPU), a picture Processing Unit (GPU), a Microprocessor (MPU), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), a Complex Programmable Logic Device (CPLD), a coprocessor (assisting the Central Processing Unit to complete corresponding Processing and Application), and a Micro Control Unit (MCU).
Communication interface 702 may be used to provide information input or output to the at least one processor. And/or, the communication interface 702 may be used to receive and/or transmit data externally, and may be a wired link interface such as an ethernet cable, and may also be a wireless link (Wi-Fi, bluetooth, general wireless transmission, vehicle-mounted short-range communication technology, other short-range wireless communication technologies, and the like) interface. Optionally, the communication interface 702 may also include a transmitter (e.g., a radio frequency transmitter, an antenna, etc.) or a receiver, etc. coupled to the interface.
The memory 703 is used to provide a storage space in which data such as an operating system and computer programs can be stored. The Memory 703 may be one or a combination of Random Access Memory (RAM), Read-only Memory (ROM), Erasable Programmable Read-only Memory (EPROM), or portable Read-only Memory (CD-ROM), among others.
The at least one processor 701 in the terminal device 70 is configured to perform the aforementioned method, such as the method described in the embodiment illustrated in fig. 3.
Alternatively, the processor 701 may be a processor dedicated to performing the methods (referred to as a special-purpose processor for convenience), or may be a processor that calls a computer program to perform the methods, such as a general-purpose processor. Optionally, at least one processor may also include both special purpose and general purpose processors. Optionally, in case the computing device comprises at least one processor 703, the computer program may be stored in the memory 703.
Optionally, at least one processor 701 in the terminal device 70 is configured to execute a call computer instruction to execute the software upgrading method shown in fig. 3.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a server 80 according to an embodiment of the present disclosure, where the server 80 may be a stand-alone device (e.g., one or more of user equipment and the like) or may be a component (e.g., a chip, a software module, or a hardware module and the like) inside the stand-alone device. The server 80 may include at least one processor 801. Optionally, at least one memory 803 may also be included. Further optionally, server 80 may also include a communications interface 802. Still further optionally, a bus 804 may be included, wherein the processor 801, the communication interface 802, and the memory 803 are coupled via the bus 804.
The processor 801 is a module for performing arithmetic operation and/or logical operation, and may specifically be one or a combination of multiple Processing modules, such as a Central Processing Unit (CPU), a picture Processing Unit (GPU), a Microprocessor (MPU), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), a Complex Programmable Logic Device (CPLD), a coprocessor (assisting the Central Processing Unit to complete corresponding Processing and Application), and a Micro Control Unit (MCU).
The communication interface 802 may be used to provide information input or output to the at least one processor. And/or, the communication interface 802 may be used to receive and/or transmit data externally, and may be a wired link interface including, for example, an ethernet cable, and may also be a wireless link (Wi-Fi, bluetooth, general wireless transmission, vehicle-mounted short-range communication technology, other short-range wireless communication technologies, and the like) interface. Optionally, the communication interface 802 may also include a transmitter (e.g., a radio frequency transmitter, an antenna, etc.) or a receiver, etc. coupled to the interface.
The memory 803 is used to provide a storage space in which data, such as an operating system and computer programs, may be stored. The Memory 803 may be one or a combination of Random Access Memory (RAM), Read-only Memory (ROM), Erasable Programmable Read-only Memory (EPROM), or portable Read-only Memory (CD-ROM), among others.
At least one processor 801 in the server 80 is configured to perform the aforementioned method, such as the method described in the embodiment illustrated in fig. 4.
Alternatively, the processor 801 may be a processor dedicated to performing the methods (referred to as a special-purpose processor for convenience), or may be a processor that calls a computer program to perform the methods, such as a general-purpose processor. Optionally, at least one processor may also include both special purpose and general purpose processors. Optionally, in case the computing device comprises at least one processor 801, the computer program described above may be stored in the memory 803.
Optionally, at least one processor 801 in the server 80 is configured to execute a call computer instruction to perform the software upgrade method shown in fig. 4.
The present application also provides a computer-readable storage medium having stored therein instructions that, when executed on at least one processor, implement a software upgrade method as previously described, such as the method described in fig. 3.
The present application also provides a computer program product comprising computer instructions which, when executed by a computing device, implement the aforementioned software upgrade method, such as the method described in fig. 3.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the present application, the embodiments refer to "at least one" and "a plurality" and two or more. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a. b, c, (a and b), (a and c), (b and c), or (a and b and c), wherein a, b and c can be single or multiple. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a alone, A and B together, and B alone, wherein A, B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
And unless stated to the contrary, the ordinal numbers such as "first", "second", etc. are used in the embodiments of the present application to distinguish a plurality of objects and are not used to limit the sequence, timing, priority, or importance of the plurality of objects. For example, a first device and a second device are for convenience of description only and do not represent differences in structure, importance, etc. of the first device and the second device, and in some embodiments, the first device and the second device may be the same device.
As used in the above embodiments, the term "when … …" may be interpreted to mean "if … …" or "after … …" or "in response to a determination of … …" or "in response to a detection of … …", depending on the context. The above description is only exemplary of the present application and is not intended to limit the present application, and any modifications, equivalents, improvements, etc. made within the spirit and principles of the present application are intended to be included within the scope of the present application.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A software upgrading method is applied to terminal equipment and comprises the following steps:
when receiving upgrade prompt information aiming at a target application sent by a server, downloading an upgrade configuration file; the upgrading configuration file comprises file information and a reference identifier of each software function file corresponding to the target application of the upgrading version;
determining the upgrading mode of the local target application according to the upgrading configuration file;
and upgrading the local target application according to the determined upgrading mode.
2. The method of claim 1, wherein the upgrading comprises upgrading the local target application according to an upgrade package and upgrading the local target application according to a complete software package.
3. The method of claim 2, wherein the upgrade package includes an update file and a newly added file, and the complete software package includes all files of the upgraded version of the target application; the reference identifier is used for representing that the corresponding file is the updated file or other files, and the other files comprise the newly added file;
the determining the upgrading mode of the local target application according to the upgrading configuration file comprises the following steps:
comparing whether the file information recorded in the upgrading configuration file by the target software function file is consistent with the file information recorded in the local configuration file or not according to the reference identification of each file in the upgrading configuration file; the target software function file is a file with reference identification represented as the other files; the local configuration file records the file information of each software function file of the currently installed target application;
if the target application is consistent with the target application, upgrading the local target application through the upgrading packet;
and if the target application is inconsistent with the target application, upgrading the local target application through the complete software package.
4. The method of claim 3, wherein comparing whether the file information recorded in the upgrade configuration file of the target software function file is consistent with the file information recorded in the local configuration file comprises:
and if the local configuration file lacks file information of at least one target software function file, judging that the file information recorded by the target software function file in the upgrading configuration file is inconsistent with the file information recorded by the local configuration file.
5. The method of claim 3, wherein the file information includes a file version number; the comparing whether the file information recorded in the upgrade configuration file of the target software function file is consistent with the file information recorded in the local configuration file further includes:
and if the file version number recorded in the upgrading configuration file by at least one target software function file is inconsistent with the file version number recorded in the local configuration file, judging that the file information recorded in the upgrading configuration file by the target software function file is inconsistent with the file information recorded in the local configuration file.
6. The method of claim 1, wherein the upgrade configuration file further comprises a version number of the upgraded version of the target application, and wherein the local configuration file comprises a version number of the currently installed target application; before determining to upgrade the local target application by an upgrade package or upgrade the local target application by a complete software package according to the upgrade configuration file, the method further includes:
judging whether the version number of the target application of the upgraded version is higher than the version number of the currently installed target application;
and if so, executing the upgrading mode and the subsequent steps of determining the local target application according to the upgrading configuration file.
7. A software upgrading method is applied to a server and comprises the following steps:
the server generates an upgrade package and a complete software package corresponding to the target application of the upgrade version;
the server generates an upgrade configuration file, wherein the upgrade configuration file comprises file information and a reference identifier of each software function file corresponding to a target application of an upgrade version; the upgrading configuration file is used for the terminal equipment to decide the upgrading mode of the target application local to the terminal equipment;
and the server sends upgrading prompt information aiming at the target application to the terminal equipment.
8. A software upgrading device is characterized in that the software upgrading device is applied to a terminal device and comprises a receiving unit and an upgrading unit, wherein:
the receiving unit is used for downloading the upgrade configuration file when receiving the upgrade prompt information aiming at the target application sent by the server; the upgrading configuration file comprises file information and a reference identifier of each software function file corresponding to the target application of the upgrading version; determining the upgrading mode of the local target application according to the upgrading configuration file;
and the upgrading unit is used for upgrading the local target application according to the determined upgrading mode.
9. An electronic device, comprising a processor and a memory, the memory storing computer instructions, the processor being configured to invoke the computer instructions to implement the method of any one of claims 1-6 or to implement the method of claim 7.
10. A computer-readable storage medium having stored therein instructions which, when executed on at least one processor, implement the method of any one of claims 1-6 or implement the method of claim 7.
CN202111426754.XA 2021-11-27 2021-11-27 Software upgrading method and device Pending CN114090048A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111426754.XA CN114090048A (en) 2021-11-27 2021-11-27 Software upgrading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111426754.XA CN114090048A (en) 2021-11-27 2021-11-27 Software upgrading method and device

Publications (1)

Publication Number Publication Date
CN114090048A true CN114090048A (en) 2022-02-25

Family

ID=80305412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111426754.XA Pending CN114090048A (en) 2021-11-27 2021-11-27 Software upgrading method and device

Country Status (1)

Country Link
CN (1) CN114090048A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6493871B1 (en) * 1999-09-16 2002-12-10 Microsoft Corporation Method and system for downloading updates for software installation
CN102541596A (en) * 2011-12-22 2012-07-04 中标软件有限公司 Operating system upgrading method and device
CN103699408A (en) * 2013-12-12 2014-04-02 乐视网信息技术(北京)股份有限公司 Software updating method and equipment
CN105224344A (en) * 2014-05-28 2016-01-06 济南政和科技有限公司 A kind of software upgrading file configuration method realized based on XML
US20160070578A1 (en) * 2014-09-05 2016-03-10 Xiaomi Inc. Method and system for upgrading an electronic device
WO2016192197A1 (en) * 2015-06-02 2016-12-08 中兴通讯股份有限公司 Software upgrade method, apparatus and system of terminal, and computer storage medium
CN106528086A (en) * 2016-10-10 2017-03-22 广州视源电子科技股份有限公司 Method and system for upgrading Android software
CN108509211A (en) * 2018-02-07 2018-09-07 深圳壹账通智能科技有限公司 Application program updating method, apparatus, mobile terminal and storage medium
CN110058873A (en) * 2019-03-12 2019-07-26 天津五八到家科技有限公司 Application page update method, device, equipment and storage medium
CN110780893A (en) * 2018-07-31 2020-02-11 深圳市讯扬通信有限公司 Android intelligent terminal FOTA scheme
CN110865842A (en) * 2018-08-28 2020-03-06 成都鼎桥通信技术有限公司 OTA (over the air) upgrading method and device
CN111381858A (en) * 2018-12-29 2020-07-07 深圳Tcl新技术有限公司 Application program upgrading method, server and terminal equipment
CN113225729A (en) * 2020-01-21 2021-08-06 荣耀终端有限公司 OTA (over the air) upgrading method and device and readable storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6493871B1 (en) * 1999-09-16 2002-12-10 Microsoft Corporation Method and system for downloading updates for software installation
CN102541596A (en) * 2011-12-22 2012-07-04 中标软件有限公司 Operating system upgrading method and device
CN103699408A (en) * 2013-12-12 2014-04-02 乐视网信息技术(北京)股份有限公司 Software updating method and equipment
CN105224344A (en) * 2014-05-28 2016-01-06 济南政和科技有限公司 A kind of software upgrading file configuration method realized based on XML
US20160070578A1 (en) * 2014-09-05 2016-03-10 Xiaomi Inc. Method and system for upgrading an electronic device
WO2016192197A1 (en) * 2015-06-02 2016-12-08 中兴通讯股份有限公司 Software upgrade method, apparatus and system of terminal, and computer storage medium
CN106528086A (en) * 2016-10-10 2017-03-22 广州视源电子科技股份有限公司 Method and system for upgrading Android software
CN108509211A (en) * 2018-02-07 2018-09-07 深圳壹账通智能科技有限公司 Application program updating method, apparatus, mobile terminal and storage medium
CN110780893A (en) * 2018-07-31 2020-02-11 深圳市讯扬通信有限公司 Android intelligent terminal FOTA scheme
CN110865842A (en) * 2018-08-28 2020-03-06 成都鼎桥通信技术有限公司 OTA (over the air) upgrading method and device
CN111381858A (en) * 2018-12-29 2020-07-07 深圳Tcl新技术有限公司 Application program upgrading method, server and terminal equipment
CN110058873A (en) * 2019-03-12 2019-07-26 天津五八到家科技有限公司 Application page update method, device, equipment and storage medium
CN113225729A (en) * 2020-01-21 2021-08-06 荣耀终端有限公司 OTA (over the air) upgrading method and device and readable storage medium

Similar Documents

Publication Publication Date Title
US9792623B2 (en) Advertisement processing method and apparatus
CN114465998B (en) Multi-device file transmission method and device, terminal device and readable storage medium
CN110888658B (en) Method and device for dynamically changing function modules in application program and storage medium
CN109391673A (en) A kind of method, system and the terminal device of management update file
CN111752577A (en) System version upgrading method and device
CN111722857A (en) Updating method and device of software development kit, electronic equipment and storage medium
CN116700907B (en) Service call demand document storage method, device, electronic equipment and readable medium
CN106293814B (en) Upgrading method and device
CN113765950B (en) Internet of things equipment, server and software updating method
CN114090048A (en) Software upgrading method and device
CN113312073B (en) Installation package file processing method and related device
CN115080068A (en) Resource file transmission method, device, equipment and storage medium
CN110825406A (en) Software upgrading method and related equipment
CN107977224B (en) Application program configuration method, device, server and storage medium
CN113867756A (en) Software upgrading method, terminal equipment and readable storage medium
CN115499836B (en) Communication method, communication device, electronic equipment, storage medium and vehicle
CN114866530B (en) Method, device and computer storage medium for downloading upgrade data packet
CN113992516B (en) Firmware updating method and device of Internet of things equipment and Internet of things
CN113419735B (en) Plug-in optimization method and device
CN117883789B (en) Data acquisition method, apparatus, device, readable storage medium, and program product
CN117785097B (en) Communication method, device and equipment for vehicle-mounted device and android display terminal and storage medium
CN116107603B (en) Firmware upgrading method and device, storage medium and electronic equipment
CN117707553A (en) Software installation method and software installation device
CN107632840B (en) Task execution method and system of application program
CN117348913A (en) Software downloading method and device and electronic equipment

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