CN117667130A - Device upgrading method, device, computer device and storage medium - Google Patents
Device upgrading method, device, computer device and storage medium Download PDFInfo
- Publication number
- CN117667130A CN117667130A CN202211032351.1A CN202211032351A CN117667130A CN 117667130 A CN117667130 A CN 117667130A CN 202211032351 A CN202211032351 A CN 202211032351A CN 117667130 A CN117667130 A CN 117667130A
- Authority
- CN
- China
- Prior art keywords
- sub
- upgrade package
- information
- firmware
- firmware upgrade
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version 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 application relates to a device upgrading method, a device upgrading apparatus, computer equipment and a storage medium. The method comprises the following steps: acquiring first information of a firmware upgrade package of equipment to be upgraded, sub-firmware upgrade packages corresponding to all modules of the equipment to be upgraded and attribute information of all sub-firmware upgrade packages, wherein the equipment to be upgraded is multifunctional module equipment, the first information comprises the number of all sub-firmware upgrade packages in the firmware upgrade package, and upgrade package information of all sub-firmware upgrade packages is determined according to the number of all sub-firmware upgrade packages and the attribute information of all sub-firmware upgrade packages, so that the equipment to be upgraded is upgraded according to all sub-firmware upgrade packages, upgrade package information of all sub-firmware upgrade packages and current firmware configuration information of the equipment to be upgraded. By adopting the method, the multifunctional module equipment can be upgraded.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a device upgrade method, apparatus, computer device, and storage medium.
Background
The single-function module device refers to a device with a fixed model number, and only one module, such as a main control module, of the single-function module device needs to be upgraded. With the continuous development of products, multifunctional module devices have been developed. The multifunctional module device is characterized in that the device has a plurality of models for the same module, and the modules of the plurality of models can be detachably replaced. When the multifunctional module device is a multifunctional module camera, lenses of different types of the multifunctional module camera can be detachably replaced, for example, the lens module comprises a lens of a type 1 and a lens of a type 2, the lens of the type 1 can be replaced by the lens of the type 2, other modules such as a holder module are similar to the lens module, and replacement of the types can be realized, so that the multifunctional module camera can realize any combination of the lenses of different types and the modules such as the holder of different types.
However, only single-function module devices can be upgraded at present, and no upgrading method for multi-function module devices is available. Therefore, how to upgrade the multi-function module device using the field Jing Shouxian of the upgrade method of the related art is an important study of those skilled in the art.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an apparatus upgrade method, an apparatus, a computer device, and a storage medium capable of upgrading a multi-function module apparatus.
In a first aspect, the present application provides a method for upgrading a device. The method comprises the following steps:
acquiring first information of a firmware upgrade package of equipment to be upgraded, sub-firmware upgrade packages corresponding to all modules of the equipment to be upgraded and attribute information of all the sub-firmware upgrade packages, wherein the equipment to be upgraded is multifunctional module equipment, the first information comprises the number of all the sub-firmware upgrade packages in the firmware upgrade package, and the attribute information of all the sub-firmware upgrade packages comprises the relations between modules of different types and the corresponding sub-firmware upgrade packages;
determining upgrade package information of each sub firmware upgrade package according to the number of the sub firmware upgrade packages and attribute information of each sub firmware upgrade package;
And upgrading the equipment to be upgraded according to the sub firmware upgrading packages, the upgrading package information of the sub firmware upgrading packages and the current firmware configuration information of the equipment to be upgraded, wherein the current firmware configuration information comprises the corresponding relation between the current model of each module and each module.
In a second aspect, the present application further provides an apparatus upgrade device. The device comprises:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring first information of a firmware upgrade package of a device to be upgraded, sub firmware upgrade packages corresponding to all modules of the device to be upgraded and attribute information of all the sub firmware upgrade packages, the device to be upgraded is multifunctional module equipment, the first information comprises the number of all the sub firmware upgrade packages in the firmware upgrade package, and the attribute information of all the sub firmware upgrade packages comprises the relations between modules of different models and the corresponding sub firmware upgrade packages;
the determining module is used for determining the upgrade package information of each sub-firmware upgrade package according to the number of the sub-firmware upgrade packages and the attribute information of each sub-firmware upgrade package;
the upgrade module is used for upgrading the equipment to be upgraded according to each sub-firmware upgrade package, upgrade package information of each sub-firmware upgrade package and current firmware configuration information of the equipment to be upgraded, wherein the current firmware configuration information comprises the corresponding relation between the current model of each module and each module.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of any of the methods described above when the processor executes the computer program.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of any of the methods described above.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprising a computer program which, when executed by a processor, implements the steps of any of the methods described above.
According to the device upgrading method, the device, the computer device and the storage medium, the first information of the number of the sub firmware upgrading packages, the sub firmware upgrading packages corresponding to the modules of the device to be upgraded and the attribute information of the sub firmware upgrading packages are obtained from the firmware upgrading packages of the device to be upgraded, and then the upgrading package information of the sub firmware upgrading packages is determined according to the number of the sub firmware upgrading packages and the attribute information of the sub firmware upgrading packages in the firmware upgrading packages, so that the device to be upgraded is upgraded according to the sub firmware upgrading packages, the upgrading package information of the sub firmware upgrading packages and the current firmware configuration information of the device to be upgraded. The device to be upgraded is a multifunctional module device, the multifunctional module device comprises a plurality of modules, and each module in the multifunctional module device is provided with a respective sub-firmware upgrade package. Because the attribute information of each sub-firmware upgrade package comprises the relation between the modules of different types and the corresponding sub-firmware upgrade package, and the current firmware configuration information comprises the corresponding relation between the current model of each module and each module, the attribute information of each sub-firmware upgrade package and the number of the sub-firmware upgrade packages corresponding to each module of the equipment to be upgraded can be obtained, so that the upgrade package information of each sub-firmware upgrade package can be determined, and the equipment to be upgraded can be further upgraded according to each sub-firmware upgrade package, the upgrade package information of each sub-firmware upgrade package and the current firmware configuration information. For example, the multi-function module apparatus 1 includes a module a including a model A1 and a model A2, a module B including a model B1 and a model B2, and a module C including a model C1 and a model C2, each of which has a need for upgrading. If the attribute information of each sub firmware upgrade package includes: the method comprises the steps that a module A of a model A corresponds to a sub-firmware upgrade package 1, a module A of a model A2 corresponds to a sub-firmware upgrade package 2, a module B of a model B1 corresponds to a sub-firmware upgrade package 3, a module B of a model B2 corresponds to a sub-firmware upgrade package 4, a module C of a model C1 corresponds to a sub-firmware upgrade package 5, and a module C of a model C2 corresponds to a sub-firmware upgrade package 6, and according to current firmware configuration information, it can be determined that the module A of a device to be upgraded currently uses the model A, the module B currently uses the model B1, and the module C currently uses the model C1, and then it can be determined that the module A is upgraded by the sub-firmware upgrade package 1, the module B is upgraded by the sub-firmware upgrade package 3, and the module C is upgraded by the sub-firmware upgrade package 5, so that the modules A, B and C of the multifunctional module device can be upgraded, and the multifunctional module device can be upgraded.
Drawings
FIG. 1 is an application environment diagram of a device upgrade method in an embodiment of the present application;
FIG. 2 is a schematic flow chart of a method for upgrading equipment in an embodiment of the present application;
fig. 3 is a schematic diagram of a unpacking process according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a firmware upgrade package;
FIG. 5 is a schematic flow chart of upgrading a device to be upgraded according to an embodiment of the present application;
FIG. 6 is a schematic flow chart of another embodiment of the present application for upgrading a device to be upgraded;
FIG. 7 is a schematic flow chart of another embodiment of upgrading a device to be upgraded;
fig. 8 is a schematic diagram of a unpacking process according to an embodiment of the present application;
FIG. 9 is a flowchart illustrating a verification of a sub-firmware upgrade package according to an embodiment of the present application;
FIG. 10 is an overall flow chart of an apparatus upgrade method according to an embodiment of the present application;
FIG. 11 is a block diagram illustrating a device upgrade apparatus according to an embodiment of the present application;
fig. 12 is an internal structural diagram of the computer device in the embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
Fig. 1 is an application environment diagram of an apparatus upgrade method in an embodiment of the present application, where the apparatus upgrade method provided in the embodiment of the present application may be applied to an application environment as shown in fig. 1. Wherein the device to be upgraded 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104 or may be located on a cloud or other network server. The device to be upgraded 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, unmanned aerial vehicles, internet of things devices and portable wearable devices, and the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, cameras and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers. It should be noted that, in the embodiment of the present application, the device to be upgraded is a multifunctional module device.
It will be appreciated that the present embodiment is illustrated with the method applied to a system of a device to be upgraded and a server, and it will be appreciated that the method may also be applied only to a device to be upgraded.
Fig. 2 is a schematic flow chart of a method for upgrading a device according to an embodiment of the present application, where the method may be applied to the device to be upgraded shown in fig. 1, and in one embodiment, as shown in fig. 2, the method includes the following steps:
s201, acquiring first information of a firmware upgrade package of equipment to be upgraded, sub-firmware upgrade packages corresponding to all modules of the equipment to be upgraded and attribute information of all sub-firmware upgrade packages, wherein the equipment to be upgraded is multifunctional module equipment, the first information comprises the number of all sub-firmware upgrade packages in the firmware upgrade package, and the attribute information of all sub-firmware upgrade packages comprises the relations between modules of different models and corresponding sub-firmware upgrade packages.
In this embodiment, the device to be upgraded acquires first information of a firmware upgrade package thereof, sub-firmware upgrade packages corresponding to each module of the device to be upgraded, and attribute information of each sub-firmware upgrade package.
The firmware upgrade package of the device to be upgraded refers to firmware formed by sub-firmware upgrade packages corresponding to all modules in the device to be upgraded according to a preset format, and can be generally in a compressed package format. The device to be upgraded can obtain the firmware upgrade package of the device to be upgraded through the server, and can also obtain the firmware upgrade package through other peripheral devices such as a USB flash disk, and the embodiment is not limited.
Further, the device to be upgraded may obtain the first information, each sub-firmware upgrade package, and attribute information of each sub-firmware upgrade package according to the firmware upgrade package thereof. The method can be realized by unpacking the firmware upgrade package after the equipment to be upgraded acquires the firmware upgrade package of the equipment to be upgraded to obtain first information, sub-firmware upgrade packages corresponding to all modules and attribute information of all sub-firmware upgrade packages. In another implementation manner, the device to be upgraded directly acquires the first information of the firmware upgrade package, the sub-firmware upgrade packages corresponding to the modules of the device to be upgraded, and the attribute information of the sub-firmware upgrade packages.
The first information may be a structure named "Head", in which a file_num field is defined for recording the number of small packets in the firmware packet. That is, the first information includes the number file_num of each sub firmware upgrade package. Further, the Head structure may define other fields, such as an upgrade character identifier, for identifying that the file is for upgrade, and a reserved field for subsequent expansion. I.e. the first information may also comprise an upgrade character identification and a reserved field, the embodiment is not limited.
The attribute information of each sub firmware upgrade package may be a structure body array named as "FileList", where the FileList structure body array is used to record attribute information of each sub firmware upgrade package, and the attribute information of each sub firmware upgrade package includes a relationship between modules of different models and corresponding sub firmware upgrade packages. For example, the device to be upgraded includes a module a and a module B, the module a includes a model A1 and a model A2, and the module B includes a model B1, and then the module a of the model A1 corresponds to the sub-firmware upgrade package 1, the module a of the model A2 corresponds to the sub-firmware upgrade package 2, and the module B of the model B1 corresponds to the sub-firmware upgrade package 3.
Further, the FileList structure array may also define a plurality of fields, such as a byte size of each sub-firmware upgrade package, a module identification name of each sub-firmware upgrade package, and so on, so as to facilitate subsequent upgrade use.
S202, determining upgrade package information of each sub-firmware upgrade package according to the number of the sub-firmware upgrade packages and the attribute information of each sub-firmware upgrade package.
In this example, to more clearly explain the FileList structure array in this application, it is described herein in connection with Table 1. Table 1 is a schematic representation of the FileList structure array. Assume that the device to be upgraded includes a module a and a module B, the module a includes a model A1 and a model A2, and the module B includes a model B1. The row corresponding to stu [0] in the FileList structure array represents the attribute information of the sub firmware upgrade package 1 corresponding to the module A of the A1 model, the row corresponding to stu [1] represents the attribute information of the sub firmware upgrade package 2 corresponding to the module A of the A2 model, and the row corresponding to stu [2] represents the attribute information of the sub firmware upgrade package 3 corresponding to the module B of the B1 model.
The size of the FileList structure array is fixed, and the byte length of the attribute information of each sub-firmware upgrade package is fixed. Therefore, with byte offset, the attribute information of each sub firmware upgrade package can be determined according to one FileList structure array and the known number file_num of each sub firmware upgrade package.
For example, if the overall size of the FileList structure array is 192 bytes and the number file_num of each sub firmware upgrade package is 3, the device to be upgraded may determine that the size of the attribute information of each sub firmware upgrade package is 64 bytes. The FileList structure array is divided into 64 bytes, so that the structure corresponding to each sub-firmware upgrade package, namely, each row in table 1, namely, the attribute information of each sub-firmware upgrade package, can be determined.
TABLE 1 schematic representation of FileList Structure array
name (field 1) | Version (field 2) | …… | |
stu[0] | A_16Gb | 5.3.1 | …… |
stu[1] | A_8Gb | 5.2.2 | …… |
stu[2] | B | 5.1.1 | …… |
Further, the size of the fields in the array of each structure is also fixed, e.g., field 1 is 4 bytes and field 2 is 2 bytes. Thus, continuing to utilize the byte offset may split out specific field values in the attribute information of the sub-firmware upgrade package. Further, the device to be upgraded uses part of information in the attribute information FileList of each sub firmware upgrade package as upgrade package information file_info of each sub firmware upgrade package, so as to determine upgrade package information of each sub firmware upgrade package.
Specifically, the upgrade package information of each sub-firmware upgrade package is a structure body array named as "file_info", and the file_info structure body array is used for recording information required for upgrade in the sub-firmware upgrade package. For example, the file_info structure array defines a module_name for representing a module corresponding to each sub firmware upgrade package; version is defined for representing the version corresponding to each sub firmware upgrade package, and so on. Wherein, the field value of the module_name in the file_info structure body array is derived from the field value of the name in the FileList; the field value of version in the file_info structure array is derived from the field value of version in the FileList.
Also, the size of the file_info structure array is fixed, and the byte length of the upgrade package information of each sub-firmware upgrade package is fixed, so that the upgrade package information of each sub-firmware upgrade package can be determined according to one file_info structure array. The attribute information FileList principle of each sub firmware upgrade package is the same, and will not be described again.
S203, the equipment to be upgraded is upgraded according to each sub-firmware upgrade package, upgrade package information of each sub-firmware upgrade package and current firmware configuration information of the equipment to be upgraded, wherein the current firmware configuration information comprises the corresponding relation between the current model of each module and each module.
In this embodiment, the current firmware configuration information of the device to be upgraded may be configuration information written when the device to be upgraded leaves the factory or firmware configuration situation after the device to be upgraded performs firmware upgrade, where the current firmware configuration information is used to represent a model used by each current module of the device to be upgraded. For example, it can be determined, according to the current firmware configuration information, that the module a in the device to be upgraded currently uses the A2 model, the module B currently uses the B1 model, and the module C currently uses the C1 model.
Specifically, the current firmware configuration information may be a structure named "module_update_info", which may define a module_name field for the device to be upgraded to represent the Module currently used by the device to be upgraded; and defining a support_multi_hw field, wherein the support_multi_hw field is used for indicating whether a module currently used by the equipment to be upgraded supports multiple specifications of hardware, namely whether the module currently used by the equipment to be upgraded supports multiple models. The modules of the device to be upgraded and the current firmware configuration information are in one-to-one relationship, or in many-to-one relationship, and the embodiment is not limited.
Further, the equipment to be upgraded upgrades the equipment to be upgraded according to each sub-firmware upgrade package, upgrade package information of each sub-firmware upgrade package and current firmware configuration information of the equipment to be upgraded. One way this may be accomplished is that the current firmware configuration information includes a first function pointer, a second function pointer, and a third function pointer. When a certain module A of the equipment to be upgraded starts to be upgraded, the equipment to be upgraded firstly determines upgrade package information of a sub-firmware upgrade package corresponding to the module A, then calls a first function pointer, and compares hardware specifications corresponding to the module A in the current firmware configuration information with hardware specifications corresponding to the module A in the upgrade package information corresponding to the module A. And if the hardware specifications are consistent, calling a second function pointer, and comparing the version corresponding to the A module in the current firmware configuration information with the version corresponding to the A module in the upgrade package information corresponding to the A module. And if the versions are inconsistent, calling a third function pointer, and upgrading the equipment to be upgraded by using the sub-firmware upgrade package corresponding to the finally determined upgrade package information.
Optionally, the device to be upgraded may further include a User Interface (UI) for displaying the upgrade progress, and one implementation may be that the device to be upgraded determines the upgrade progress according to the number of modules to be upgraded and the expected upgrade duration of each module. For example, if the device to be upgraded needs to upgrade 5 modules, each module may take 20% of the progress, and if the upgrade time of a certain module a of the 5 modules is 20 minutes, the progress changes by 1% per minute when the a module performs the upgrade.
According to the equipment upgrading method, the first information of the firmware upgrading package of the equipment to be upgraded, the sub-firmware upgrading package corresponding to each module of the equipment to be upgraded and the attribute information of each sub-firmware upgrading package are obtained, wherein the first information comprises the number of each sub-firmware upgrading package, and further the upgrading package information of each sub-firmware upgrading package is determined according to the number of each sub-firmware upgrading package and the attribute information of each sub-firmware upgrading package in the firmware upgrading package, so that the equipment to be upgraded is upgraded according to each sub-firmware upgrading package, the upgrading package information of each sub-firmware upgrading package and the current firmware configuration information of the equipment to be upgraded. The device to be upgraded is a multifunctional module device, the multifunctional module device comprises a plurality of modules, and each module in the multifunctional module device is provided with a respective sub-firmware upgrade package. Because the attribute information of each sub-firmware upgrade package comprises the relation between the modules of different types and the corresponding sub-firmware upgrade package, and the current firmware configuration information comprises the corresponding relation between the current model of each module and each module, the sub-firmware upgrade package corresponding to each module of the equipment to be upgraded, the attribute information of each sub-firmware upgrade package and the number of the sub-firmware upgrade packages can be obtained, the upgrade package information of each sub-firmware upgrade package can be determined, and the equipment to be upgraded can be further upgraded according to each sub-firmware upgrade package, the upgrade package information of each sub-firmware upgrade package and the current firmware configuration information. For example, the multi-function module apparatus 1 includes a module a including a model A1 and a model A2, a module B including a model B1 and a model B2, and a module C including a model C1 and a model C2, each of which has a need for upgrading. If the attribute information of each sub firmware upgrade package includes: the method comprises the steps that a module A of a model A corresponds to a sub-firmware upgrade package 1, a module A of a model A2 corresponds to a sub-firmware upgrade package 2, a module B of a model B1 corresponds to a sub-firmware upgrade package 3, a module B of a model B2 corresponds to a sub-firmware upgrade package 4, a module C of a model C1 corresponds to a sub-firmware upgrade package 5, and a module C of a model C2 corresponds to a sub-firmware upgrade package 6, and according to current firmware configuration information, it can be determined that the module A of a device to be upgraded currently uses the model A, the module B currently uses the model B1, and the module C currently uses the model C1, and then it can be determined that the module A is upgraded by the sub-firmware upgrade package 1, the module B is upgraded by the sub-firmware upgrade package 3, and the module C is upgraded by the sub-firmware upgrade package 5, so that the modules A, B and C of the multifunctional module device can be upgraded, and the multifunctional module device can be upgraded.
Fig. 3 is a schematic flowchart of unpacking in the embodiment of the present application, and referring to fig. 3, this embodiment relates to an alternative implementation manner how to obtain first information of a firmware upgrade package of a device to be upgraded, sub-firmware upgrade packages corresponding to each module of the device to be upgraded, and attribute information of each sub-firmware upgrade package. On the basis of the above embodiment, S201 described above obtains the first information of the firmware upgrade package of the device to be upgraded, the sub-firmware upgrade packages corresponding to the modules of the device to be upgraded, and the attribute information of the sub-firmware upgrade packages, and includes the following steps:
s301, obtaining a firmware upgrade package, wherein the firmware upgrade package is obtained by packaging first information, attribute information of each sub-firmware upgrade package and each sub-firmware upgrade package.
In this embodiment, the device to be upgraded first needs to acquire the firmware upgrade package. The device to be upgraded can acquire a firmware upgrade package through a peripheral device such as a USB; the device to be upgraded can also use the open source monoose server to provide HTTP service, and obtain the firmware upgrade package from the server. For example, the device to be upgraded obtains the firmware upgrade package by communicating with the mobile phone APP, and the device to be upgraded can directly download the firmware upgrade package on the server through its UI, which is not limited in this embodiment.
In this embodiment, the firmware upgrade package is an upgrade package obtained by packaging the first information Head, the attribute information FileList of each sub-firmware upgrade package, and each sub-firmware upgrade package. Wherein, each sub firmware upgrade package is a binary bin file.
Specifically, for a device to be upgraded, a developer prepares each sub-firmware upgrading packet corresponding to each module corresponding to the device to be upgraded in advance, and then adds attribute information FileList and first information Head of each sub-firmware upgrading packet after each sub-firmware upgrading packet by using a packaging tool, so as to obtain the firmware upgrading packet of the device to be upgraded.
Referring to fig. 4, fig. 4 is a schematic diagram of a firmware upgrade package. As can be seen in connection with fig. 4, since the single function module device hardware is fixed, the firmware upgrade package of the conventional single function module device includes only one binary Bin file "Bin". The firmware upgrade package of the multifunctional module device in the application not only comprises N sub-firmware upgrade packages (N is an integer greater than or equal to 1) such as sub-firmware upgrade packages "Bin1", "Bin2" of each module, but also comprises attribute information FileList and first information Head of the sub-firmware upgrade packages. Wherein, the attribute information of the sub firmware upgrade package is a structure array, so the FileList includes FileList1, fileList2, … …, fileList n corresponding to each sub firmware upgrade package. In connection with Table 1, the row corresponding to stu [0] represents FileList1, the row corresponding to stu [1] represents FileList2, and so on.
The size of the attribute information FileList of each sub firmware upgrade package is the number file_num of each sub firmware upgrade package multiplied by 64 bytes, and the size of the first information Head is 16 bytes. Of course, the sizes of the attribute information FileList and the first information Head of each sub firmware upgrade package may be set to other byte sizes, which is not limited in this embodiment.
Optionally, encryption of a preset algorithm can be further performed on the firmware upgrade package during packaging processing, so that illegal users are prevented from using the package, and correspondingly, the equipment to be upgraded needs to be decrypted.
Optionally, the sub-firmware upgrade packages of each module may be ordered according to the importance sequence, where the sub-firmware upgrade package with the highest importance is placed in the first sub-firmware upgrade package, or the firmware upgrade package Bin of the single-function module device is placed in the first sub-firmware upgrade package, and then the sub-firmware upgrade packages "Bin1", "Bin2" in the multi-function module device are placed, so as to implement the upgrade of the compatible single-function module device.
Further alternatively, in the present application, the attribute information FileList of each sub firmware upgrade package may be separately listed as one file during the packaging process. The device to be upgraded can firstly acquire the attribute information FileList of each sub-firmware upgrading packet, and then acquire the required sub-firmware upgrading packet according to the current firmware configuration information Module_update_info and the attribute information FileList of each sub-firmware upgrading packet, thereby improving the upgrading efficiency. For example, assume that the device to be upgraded includes a module a, a module B, and a module C, the module a includes a model A1 and a model A2, the module B includes a model B1 and a model B2, and the module C includes a model C1 and a model C2; according to the current firmware configuration information, it can be determined that the module A in the equipment to be upgraded currently uses the A1 model, the module B currently uses the B1 model, and the module C currently uses the C1 model. And when the packaging processing is carried out, only the attribute information of the 6 sub-firmware upgrade packages is listed as a file 1, after the equipment to be upgraded acquires the file 1, the same module model is matched according to the attribute information of the sub-firmware upgrade packages in the file 1 and the current firmware configuration information, and then the sub-firmware upgrade packages 3 and 5 corresponding to the module B corresponding to the sub-firmware upgrade packages 1 and B1 corresponding to the module A1 are determined. Therefore, the device to be upgraded only needs to obtain the compressed package after the sub-firmware upgrade package 1, the sub-firmware upgrade package 3 and the sub-firmware upgrade package 5 are packaged.
S302, unpacking the firmware upgrade package to obtain first information, sub-firmware upgrade packages corresponding to the modules and attribute information of the sub-firmware upgrade packages.
In this embodiment, the device to be upgraded unpacks the firmware upgrade package to obtain the first information, the sub-firmware upgrade package corresponding to each module, and the attribute information of each sub-firmware upgrade package. Specifically, since the size of the attribute information FileList of each sub firmware upgrade package and the size of the first information Head are both fixed, the attribute information FileList of the firmware upgrade package includes the byte size of each sub firmware upgrade package, so that the device to be upgraded unpacks the firmware upgrade package according to byte offset, thereby obtaining the first information Head, the sub firmware upgrade package corresponding to each module and the attribute information FileList of each sub firmware upgrade package. Illustratively, the first information can be determined after a 16 byte forward offset from the tail of the firmware upgrade package. And the number of the sub firmware upgrade packages can be determined according to the first information, the sub firmware upgrade packages are shifted forward from the head of the first information, and the attribute information of one sub firmware upgrade package can be determined every 64 bytes. By analogy, the present embodiment is not limited.
In the embodiment, the firmware upgrade package is unpacked by acquiring the firmware upgrade package, so that the first information, the sub-firmware upgrade packages corresponding to the modules and the attribute information of the sub-firmware upgrade packages are obtained. The firmware upgrade package is obtained after the first information, the attribute information of each sub-firmware upgrade package and each sub-firmware upgrade package are packaged, so that the first information, the sub-firmware upgrade package corresponding to each module and the attribute information of each sub-firmware upgrade package can be obtained after the firmware upgrade package is unpacked, and the equipment to be upgraded can be upgraded according to each sub-firmware upgrade package, the upgrade package information of each sub-firmware upgrade package and the current firmware configuration information, so that the equipment with the multifunctional module can be upgraded.
Fig. 5 is a schematic flow chart of an upgrade of a device to be upgraded in an embodiment of the present application, and referring to fig. 5, this embodiment relates to an alternative implementation manner of how to upgrade the device to be upgraded. Based on the above embodiment, S203 mentioned above upgrades the device to be upgraded according to each sub firmware upgrade package, upgrade package information of each sub firmware upgrade package and current firmware configuration information of the device to be upgraded, including the following steps:
S501, determining a module to be upgraded from the modules according to the priorities of the modules.
In this embodiment, the current firmware configuration information further includes priorities of the modules, first module identifiers of the modules, and the upgrade package information includes second module identifiers corresponding to the sub-firmware upgrade packages. Specifically, the Module_update_Info structure defines a upgrade_order field for indicating the priority of each Module. For example, the smaller the value that the upgrade_order corresponds to, the higher the priority of the module. Further, the module_update_info structure also defines a module_name, i.e. the first Module identification of each Module.
Therefore, the device to be upgraded determines the Module to be upgraded from the modules according to the priority of the modules in the current firmware configuration information module_update_info. For example, the device to be upgraded includes 6 modules, and if the priority of the a module is highest, the module to be upgraded is first determined to be the a module.
S502, determining first upgrade package information of each sub-firmware upgrade package, wherein the first upgrade package information comprises upgrade package information of each sub-firmware upgrade package corresponding to each second module identification identical to the first module identification of the module to be upgraded.
In this embodiment, the upgrade package information of the sub firmware upgrade package further includes a second module identifier corresponding to the sub firmware upgrade package, and specifically, a module_name, that is, the second module identifier, is defined in the file_info structure array. Further, the equipment to be upgraded determines upgrade package information corresponding to each second module identifier which is the same as the first module identifier of the module to be upgraded from the upgrade package information. For example, the value of the module_name in the current firmware configuration information module_update_info corresponding to the Module a to be upgraded is "ABC", that is, the first Module identifier in the current firmware configuration information of the Module a to be upgraded is "ABC"; the upgrade package information file_info comprises information of the sub firmware upgrade packages 1 to 6, and if the values of the module_name in the upgrade package information corresponding to the sub firmware upgrade package 1 are all 'ABC', namely the second module identification of the upgrade package information corresponding to the sub firmware upgrade package 1 is also 'ABC', the upgrade package information corresponding to the sub firmware upgrade package 1 is determined to be the first upgrade package information.
S503, according to the first upgrade package information and the corresponding sub-firmware upgrade packages, the equipment to be upgraded is upgraded.
In this embodiment, the device to be upgraded upgrades the device to be upgraded according to the first upgrade package information and each sub-firmware upgrade package. Continuing the above example, after the device to be upgraded determines that the upgrade package information corresponding to the sub-firmware upgrade package 1 is the first upgrade package information, the device to be upgraded may be upgraded according to the upgrade package information corresponding to the sub-firmware upgrade package 1 and the sub-firmware upgrade package 1.
The current firmware configuration information in this embodiment includes priorities of each module and a first module identifier of each module; the upgrade package information comprises a second module identifier corresponding to the sub-firmware upgrade package, further, a module to be upgraded is determined from the modules according to the priorities of the modules, and first upgrade package information of the sub-firmware upgrade packages is determined, so that equipment to be upgraded is upgraded according to the first upgrade package information and the corresponding sub-firmware upgrade packages. Because the first upgrade package information of the sub-firmware upgrade package comprises the upgrade package information corresponding to each second module identifier identical to the first module identifier of the module to be upgraded, the determined first upgrade package information is the upgrade package information applicable to the equipment to be upgraded, and therefore the equipment to be upgraded can be accurately upgraded according to the first upgrade package information and each sub-firmware upgrade package.
Fig. 6 is a schematic flow chart of another method for upgrading a device to be upgraded in the embodiment of the present application, and referring to fig. 6, this embodiment relates to an alternative implementation manner of how to upgrade the device to be upgraded. Based on the above embodiment, S503 mentioned above upgrades the device to be upgraded according to the first upgrade package information and each sub-firmware upgrade package, including the following steps:
s601, determining target upgrade package information according to identification information in first upgrade package information of each sub-firmware upgrade package; the identification information is used for marking whether the hardware specification of the sub firmware upgrade package is the same as the current hardware specification in the current firmware configuration information.
In this embodiment, S202, according to the number of the sub-firmware upgrade packages and the attribute information of each sub-firmware upgrade package, the upgrade package information of each sub-firmware upgrade package is determined, which may also be implemented in the following manner: and determining the upgrade package information of each sub-firmware upgrade package according to the number of the sub-firmware upgrade packages, the attribute information of each sub-firmware upgrade package and the current firmware configuration information of the equipment to be upgraded.
The upgrade package information further includes identification information of the sub-firmware upgrade package, specifically, the file_info structure array defines identification information valid for marking whether the hardware specification of the sub-firmware upgrade package is the same as the current hardware specification in the current firmware configuration information. valid is a boolean value, and is equal to 1 when the hardware specification of the sub firmware upgrade package is the same as the current hardware specification in the current firmware configuration information, and is equal to 0 when the hardware specification of the sub firmware upgrade package is different from the current hardware specification in the current firmware configuration information.
Specifically, the current firmware configuration information module_update_info also defines the current hardware specification multi_hw_str of each Module, and the attribute information FileList of each sub firmware upgrade package also includes the hardware specification corresponding to each sub firmware upgrade package. Furthermore, the device to be upgraded can compare the hardware specification multi_hw_str in the current firmware configuration information module_update_info with each hardware specification corresponding to each sub-firmware upgrade package, so as to determine the identification information valid of each upgrade package information. For example, when the device to be upgraded determines the upgrade package information of the sub-firmware upgrade package 1, the hardware specification in the upgrade package information of the sub-firmware upgrade package 1 and the hardware specification in the current firmware configuration information are compared, if the hardware specification in the current firmware configuration information of the device to be upgraded is A1 and the hardware specification in the upgrade package information of the sub-firmware upgrade package 1 is A2, the identification information valid=0 in the upgrade package information of the sub-firmware upgrade package 1.
Optionally, each first upgrade package information file_info further includes a multi-specification identifier support_multi_hw, and the identifier information valid in each first upgrade package information file_info may be further determined according to the multi-specification identifier support_multi_hw, where the multi-specification identifier support_multi_hw may be determined according to the attribute information FileList of each sub firmware upgrade package. For example, the device to be upgraded determines, according to the attribute information FileList of each sub firmware upgrade package, whether the sub firmware upgrade package supports multiple hardware specifications, if so, the multiple specification identifier support_multi_hw is equal to 1, and if not, the multiple specification identifier support_multi_hw is equal to 0. When the multi-specification identification support_multi_hw in the upgrade package information file_info of the sub-firmware upgrade package is 1, the device to be upgraded can compare the hardware specification multi_hw_str in the current firmware configuration information module_update_info with each hardware specification corresponding to each sub-firmware upgrade package, so as to determine the identification information valid of the first upgrade package information; when the support_multi_hw in the upgrade package information file_info of the sub firmware upgrade package is 0, the device to be upgraded directly determines that the identification information valid of the first upgrade package information is equal to 1.
Further, after the device to be upgraded determines the first upgrade package information, the upgrade package information with the identification information of the first upgrade package information equal to the preset threshold value can be used as the target upgrade package information. For example, in S502, if the second module identifiers of the upgrade package information corresponding to the sub-firmware upgrade package 1 and the sub-firmware upgrade package 2 are both "ABC", the first upgrade package information includes the upgrade package information corresponding to the sub-firmware upgrade package 1 and the upgrade package information corresponding to the sub-firmware upgrade package 2. If the identification information of the upgrade package information corresponding to the sub firmware upgrade package 1 is equal to 1 and the identification information of the upgrade package information corresponding to the sub firmware upgrade package 2 is equal to 0, the device to be upgraded determines that the upgrade package information corresponding to the sub firmware upgrade package 1 is the target upgrade package information.
S602, according to the target upgrade package information and the corresponding sub-firmware upgrade package, upgrading the equipment to be upgraded.
In this embodiment, the device to be upgraded upgrades the device to be upgraded according to the target upgrade package information and each sub-firmware upgrade package. For example, if the device to be upgraded determines that the first upgrade package information corresponding to the sub-firmware upgrade package 1 is the target upgrade package information, the device to be upgraded may be upgraded according to the upgrade package information corresponding to the sub-firmware upgrade package 1 and the sub-firmware upgrade package 1.
In this embodiment, the first upgrade package information further includes identification information of the sub-firmware upgrade packages, and further determines target upgrade package information according to the identification information in the first upgrade package information of each sub-firmware upgrade package, and upgrades the device to be upgraded according to the target upgrade package information and the corresponding sub-firmware upgrade package. Because the identification information is used for marking whether the hardware specification of the sub-firmware upgrade package is the same as the current hardware specification in the current firmware configuration information, the determined target upgrade package information is the upgrade package information suitable for the hardware specification of the equipment to be upgraded, and the equipment to be upgraded can be upgraded according to the target upgrade package information and each sub-firmware upgrade package, so that the multifunctional module equipment is upgraded.
Optionally, in S602, according to the target upgrade package information and each sub-firmware upgrade package, the device to be upgraded is upgraded, which may also be implemented in the following manner:
and upgrading the equipment to be upgraded according to the target upgrade package information, each sub-firmware upgrade package and the first version identification in the current firmware configuration information.
In this embodiment, the device to be upgraded needs to upgrade the device to be upgraded according to the target upgrade package information, each sub-firmware upgrade package, and the first version identifier in the current firmware configuration information. For example, the device to be upgraded may further compare the first version identifier in the current firmware configuration information with the second version identifier of the target upgrade package information, and upgrade the device to be upgraded if the difference between the first version identifier and the second version identifier is smaller than the preset difference threshold.
According to the method and the device for upgrading the equipment to be upgraded, the equipment to be upgraded is upgraded according to the target upgrade package information, the sub-firmware upgrade packages and the first version identification in the current firmware configuration information, and accurate upgrading of the equipment to be upgraded is achieved.
Fig. 7 is a schematic flow chart of another method for upgrading a device to be upgraded in the embodiment of the present application, and referring to fig. 7, this embodiment relates to an alternative implementation manner of how to upgrade the device to be upgraded. On the basis of the above embodiment, the upgrading of the device to be upgraded according to the target upgrade package information, the sub-firmware upgrade packages and the first version identifier in the current firmware configuration information includes the following steps:
s701, if the first version identification is inconsistent with the second version identification, determining a sub-firmware upgrade package corresponding to the target upgrade package information.
In this embodiment, the current firmware configuration information includes a first version identifier, and the upgrade package information includes a second version identifier of the sub-firmware upgrade package. Specifically, the module_update_info structure defines a first version identifier version, and the file_info structure defines a second version identifier version in the array. Thus, the target upgrade package information also includes the second version identification. Further, if the first version identifier is inconsistent with the second version identifier, the version of the module A to be upgraded in the equipment to be upgraded is different from the version of the sub-firmware upgrade package corresponding to the target upgrade package information. In this case, it is explained that the device to be upgraded finds the target upgrade package information which matches the hardware specification of the module matched with the device to be upgraded and is inconsistent in version, and the sub-firmware upgrade package corresponding to the target upgrade package information is determined for subsequent upgrading.
S702, upgrading the equipment to be upgraded by utilizing the sub-firmware upgrade package corresponding to the target upgrade package information.
In this embodiment, on the basis of S701, the upgrade package information of each sub-firmware upgrade package and each sub-firmware upgrade package have a one-to-one correspondence, and when the target upgrade package information is determined, the sub-firmware upgrade package corresponding to the target upgrade package information may also be determined, so that the device to be upgraded may call the upgrade interface, and upgrade the device to be upgraded by using the sub-firmware upgrade package corresponding to the target upgrade package information.
In this embodiment, the target upgrade package information further includes a second version identifier of the module, and if the first version identifier is inconsistent with the second version identifier, a sub-firmware upgrade package corresponding to the target upgrade package information is determined, and then the device to be upgraded is upgraded by using the sub-firmware upgrade package corresponding to the target upgrade package information, so as to upgrade the multifunctional module device.
Fig. 8 is a schematic flowchart of unpacking in the embodiment of the present application, and referring to fig. 8, this embodiment relates to an alternative implementation manner of how to obtain the first information of the firmware upgrade package of the device to be upgraded. On the basis of the above embodiment, before the unpacking processing is performed on the firmware upgrade package, the device upgrade method further includes:
S801, obtaining first verification information of the firmware upgrade package, and verifying the firmware upgrade package according to the first verification information to obtain a first verification result.
Referring to fig. 4, when the packaging process is performed in this embodiment, the first verification information MD5 of the firmware upgrade package may be further added after the attribute information FileList and the first information Head of each sub firmware upgrade package, where the first verification information of the firmware upgrade package may be generated by an MD5 information Digest Algorithm (MD 5), and the first verification information may be fixed to a size of 16 bytes.
Furthermore, before acquiring the first information of the firmware upgrade package of the device to be upgraded, the device to be upgraded needs to acquire the first verification information of the firmware upgrade package first, and verifies the firmware upgrade package according to the first verification information to obtain a first verification result. For example, the device to be upgraded shifts the first verification information of the firmware upgrade package through bytes, judges whether the first verification information is equal to preset verification information, and if so, the first verification result is passed for the firmware upgrade package; otherwise, the first verification result is not passed.
S802, if the first verification result pair passes, unpacking the firmware upgrade package to obtain the first information.
In this embodiment, after the firmware upgrade package is verified by the first verification information, the device to be upgraded unpacks the firmware upgrade package by byte offset to obtain the first information Head. In other words, the device to be upgraded unpacks the firmware upgrade package to obtain the first information only after the first verification information of the whole firmware upgrade package passes the verification.
According to the embodiment, the first verification information of the firmware upgrading package is obtained, the firmware upgrading package is verified according to the first verification information to obtain a first verification result, if the first verification result is passed, the firmware upgrading package is unpacked to obtain the first information, and the firmware upgrading package is verified before the first information is obtained, so that the multifunctional module equipment is accurately upgraded, and if the firmware upgrading package is not verified, the next first information is not required to be obtained, the situation of firmware upgrading package errors is avoided, and the upgrading accuracy is improved.
Fig. 9 is a schematic flow chart of verifying sub-firmware upgrade packages in the embodiment of the present application, and referring to fig. 9, this embodiment relates to an alternative implementation of how to verify each sub-firmware upgrade package. On the basis of the above embodiment, the above device upgrade method further includes:
S901, unpacking the firmware upgrade package to obtain the sub-firmware upgrade package corresponding to each module and the attribute information of each sub-firmware upgrade package if the first item identification in the first information is consistent with the second item identification in the current firmware configuration information.
In this embodiment, the Head structure may further define a first item identifier camera_type for identifying different items, for example, identify item 1 with 0x4F4E4552 and identify item 2 with 0x4F4E5253, so as to avoid the problem that the upgrade abnormality and the device to be upgraded cannot be started due to the fact that the device to be upgraded is used in item 1 to upgrade the firmware upgrade package corresponding to item 2. Similarly, a second item identifier needs to be defined in the module_update_info structure.
Continuing the step S802, after the device to be upgraded acquires the first information Head of the firmware upgrading packet of the device to be upgraded, comparing a first item identification camera_type in the first information Head with a second item identification in the current firmware configuration information module_update_info, and if the first item identification camera_type in the first information is consistent with the second item identification in the current firmware configuration information, indicating that the firmware upgrading packet can be used for the device to be upgraded, and further continuing unpacking the firmware upgrading packet according to byte offset by the device to be upgraded to obtain a sub-firmware upgrading packet corresponding to each Module of the device to be upgraded and attribute information FileList of each sub-firmware upgrading packet.
S902, acquiring second verification information from attribute information of each sub firmware upgrade package.
In this embodiment, the FileList structure array may further define second verification information md5 for verifying whether the sub-firmware upgrade package is correct. Wherein the second authentication information may also be generated by the MD5 information summary algorithm.
Therefore, when the first item identifier in the first information in S901 is consistent with the second item identifier in the current firmware configuration information, the device to be upgraded continues to obtain the sub-firmware upgrade packages and the attribute information of the sub-firmware upgrade packages corresponding to the modules of the device to be upgraded, and further obtains the second verification information md5 from the attribute information of the sub-firmware upgrade packages.
S903, verifying each sub firmware upgrading package according to the second verification information corresponding to each sub firmware upgrading package, and obtaining a second verification result.
In this embodiment, after the device to be upgraded obtains the second verification information md5, the device to be upgraded may verify each sub-firmware upgrade package according to the second verification information md5 corresponding to each sub-firmware upgrade package, to obtain a second verification result. The process of verifying each sub firmware upgrade package is the same as the process principle of verifying the firmware upgrade package in S801, and will not be described here again.
In this embodiment, if the first item identifier in the first information is consistent with the second item identifier in the current firmware configuration information, unpacking the firmware upgrade package to obtain a sub-firmware upgrade package corresponding to each module and attribute information of each sub-firmware upgrade package, obtaining second verification information from the attribute information of each sub-firmware upgrade package, and verifying each sub-firmware upgrade package according to the second verification information corresponding to each sub-firmware upgrade package to obtain a second verification result, thereby improving accuracy of the obtained sub-firmware upgrade package, and further accurately completing upgrading of equipment to be upgraded.
Optionally, in S202, according to the number of the sub firmware upgrade packages and the attribute information of each sub firmware upgrade package, the upgrade package information of each sub firmware upgrade package is determined, which may also be implemented in the following manner:
if the second verification result is that the second verification result is passed, determining upgrade package information of each sub-firmware upgrade package according to the number of the sub-firmware upgrade packages and attribute information of each sub-firmware upgrade package.
In this embodiment, if the device to be upgraded verifies that each sub-firmware upgrade package passes, the upgrade package information of each sub-firmware upgrade package is determined according to the number of each sub-firmware upgrade package and the attribute information of each sub-firmware upgrade package. Specifically, the device to be upgraded may determine the upgrade package information of each sub-firmware upgrade package as follows. For example, when the firmware upgrade package includes 3 sub-firmware upgrade packages A, B, C during packaging, the device to be upgraded can split each sub-firmware upgrade package A, B, C by using byte offset according to file_num in the first information Head and byte size of each sub-firmware upgrade package in the attribute information FileList of each sub-firmware upgrade package, and when the device to be upgraded splits the binary file of the first sub-firmware upgrade package a, the device to be upgraded also verifies the sub-firmware upgrade package a according to the second verification information md5 in the attribute information FileList corresponding to the sub-firmware upgrade package a, so that the device to be upgraded splits the remaining sub-firmware upgrade packages B and C again and verifies the sub-firmware upgrade packages B and C, which is not described in detail in the embodiment.
In this embodiment, if the second verification result is passed, the upgrade package information of each sub-firmware upgrade package is determined according to the number of the sub-firmware upgrade packages and the attribute information of each sub-firmware upgrade package, and since verification is required to be performed on each sub-firmware upgrade package before the upgrade package information of each sub-firmware upgrade package is determined, upgrade of the multifunctional module device is accurately achieved.
For a clearer description of the device upgrades in the application, please continue with reference to fig. 10. Fig. 10 is an overall flowchart of an apparatus upgrade method in an embodiment of the present application.
For example, the device to be upgraded is a multifunctional module camera, and the battery module a, the lens module B and the cradle head module C of the multifunctional module camera may have two hardware specifications, that is, the device to be upgraded includes a module a, a module B and a module C, the module a includes a model A1 and a model A2, the module B includes a model B1 and a model B2, and the module C includes a model C1 and a model C2. Then each module would correspond to 6 sub-firmware upgrade packages for the device to be upgraded. The research and development personnel utilize a packaging tool to package the 6 sub-firmware upgrade packages, the first information Head, the attribute information FileList of each sub-firmware upgrade package and the first verification information according to the sequence of 'sub-firmware upgrade package 1+ sub-firmware upgrade package 2+ sub-firmware upgrade package 3+ sub-firmware upgrade package 4+ sub-firmware upgrade package 5+ sub-firmware upgrade package 6+ attribute information FileList + first information Head + first verification information', so as to obtain a firmware upgrade package of the equipment to be upgraded, and then upload the firmware upgrade package to a server. Of course, the developer may also package the firmware upgrade package of the device to be upgraded according to other sequences, so long as the 6 sub firmware upgrade packages, the first information Head, the attribute information FileList of each sub firmware upgrade package and the first verification information are fixedly known at the position of the firmware upgrade package, so that the subsequent unpacking process is facilitated.
The device to be upgraded can establish communication connection with mobile terminals such as mobile phones and the like, obtain firmware upgrade packages from the server through the mobile phones, and store the firmware upgrade packages in the SD card of the device to be upgraded through other peripheral devices such as USB.
When the device to be upgraded acquires the firmware upgrade package or receives the upgrade instruction, the device to be upgraded unpacks the firmware upgrade package according to the byte offset. Specifically, the device to be upgraded acquires first verification information of a firmware upgrade package, and verifies the firmware upgrade package according to the first verification information to obtain a first verification result; if the first verification result is passed, continuing to determine the first information Head of the firmware upgrade package of the equipment to be upgraded according to the byte offset.
Further, if the first item identifier in the first information is consistent with the second item identifier in the current firmware configuration information, continuously acquiring the sub-firmware upgrade package corresponding to each module of the equipment to be upgraded and the attribute information FileList of each sub-firmware upgrade package according to the byte offset. And then, the equipment to be upgraded can acquire second verification information from the attribute information FileList of each sub-firmware upgrading packet, so that each sub-firmware upgrading packet is verified according to the second verification information corresponding to each sub-firmware upgrading packet, and a second verification result is obtained. If the second verification result is that the second verification result is passed, the device to be upgraded can determine the upgrade package information file_info of each sub-firmware upgrade package according to the number of the sub-firmware upgrade packages and the attribute information of each sub-firmware upgrade package.
In other words, the device to be upgraded acquires the first information Head of the firmware upgrade package of the device to be upgraded, the sub firmware upgrade packages corresponding to the modules of the device to be upgraded, and the attribute information FileList of each sub firmware upgrade package, and determines the process of the upgrade package information file_info of each sub firmware upgrade package according to the number of the sub firmware upgrade packages and the attribute information FileList of each sub firmware upgrade package, which is actually a process of unpacking the firmware upgrade package according to byte offset, and it can be understood that verification is required in the unpacking process.
Specifically, the first information Head includes a first item identification camera_type, a number file_num of each sub firmware upgrade package, and a reserved field.
The attribute information FileList of each sub firmware upgrade package comprises byte size of each sub firmware upgrade package, module identifier name corresponding to each sub firmware upgrade package, version identifier version corresponding to each sub firmware upgrade package, second verification information md5 and reserved field. The module identifier name corresponding to each sub firmware upgrade package includes a name of a module and a corresponding hardware specification, and is distinguished by an underline, for example, the value of the name is abc_16gb, ABC is the name of the module, and 16Gb is the hardware specification.
The upgrade package information file_info of each sub firmware upgrade package comprises identification information valid, a multi-specification identification support_multi_hw, a hardware specification multi_hw_str, a second module identification module_name, a sub firmware upgrade package identification module_file_name and a second version identification version. The sub-firmware upgrade package identification module_file_name is used for determining a corresponding sub-firmware upgrade package. Wherein, the multi-specification flag support_multi_hw is also a boolean value, and is equal to 1 when the sub-firmware upgrade package supports the multi-hardware specification, and is equal to 0 when the sub-firmware upgrade package does not support the multi-hardware specification. One implementation manner may be that the device to be upgraded determines a module identifier name corresponding to attribute information FileList of each sub firmware upgrade package, if a value of the name includes an underline, for example, abc_16gb, which indicates that the module ABC supports multiple hardware specifications, and sets a support_multi_hw in upgrade package information file_info of the sub firmware upgrade package to 1; if the value of the name does not include an underline, for example, ABC, indicating that the module ABC does not support multiple hardware specifications, setting the support_multi_hw in the upgrade package information file_info of the sub firmware upgrade package to 0. Further, when the support_multi_hw in the upgrade package information file_info of the sub firmware upgrade package is 1, the device to be upgraded will compare the hardware specification multi_hw_str in the current firmware configuration information module_update_info with each hardware specification corresponding to each sub firmware upgrade package, so as to determine whether the identification information valid of each first upgrade package information is 1; when the support_multi_hw in the upgrade package information file_info of the sub firmware upgrade package is 0, it is indicated that the device to be upgraded does not need to match the hardware specification, so that the device to be upgraded directly sets the identification information valid of each first upgrade package information to 1.
Furthermore, the device to be upgraded can upgrade the device to be upgraded according to each sub-firmware upgrade package, the upgrade package information file_info of each sub-firmware upgrade package and the current firmware configuration information module_update_info of the device to be upgraded. In the upgrading process, a User Interface (UI) of the device to be upgraded may also display the upgrading progress.
The process of upgrading the equipment to be upgraded is to match the information in the current firmware configuration information module_update_info and the upgrade package information file_info of each sub-firmware upgrade package, and judge whether the hardware specifications are the same or not under the condition that the Module identifiers are the same; and under the condition that the hardware specifications are the same, judging whether the version identifiers are consistent, if the version identifiers are inconsistent, upgrading the equipment to be upgraded by utilizing the sub-firmware upgrade package corresponding to the matched upgrade package information, thereby completing the upgrading of each module of the equipment to be upgraded, such as a module A and a module B.
Specifically, the current firmware configuration information module_update_info includes a priority level update_order of each Module, a first Module identifier module_name, a first version identifier version, a first function pointer, a second function pointer, and a third function pointer. The first function pointer is used for checking hardware specifications of the current firmware configuration information and the upgrade package information, the second function pointer is used for checking versions of the current firmware configuration information and the upgrade package information, and the third function pointer is an upgrade interface and is used for upgrading equipment to be upgraded.
When the equipment to be upgraded is upgraded, firstly, a Module to be upgraded is determined according to the priority level upgrade_order in the current firmware configuration information module_update_info, for example, the Module to be upgraded is a Module A. Furthermore, if the first Module identifier module_name of the Module a in the current firmware configuration information module_update_info is "ABC", the device to be upgraded may determine each piece of first upgrade packet information that the second Module identifier module_name in the upgrade packet information file_info is also "ABC". Then, the device to be upgraded calls the first function pointer, and determines the target upgrade package information with the identification information valid equal to 1 in each piece of first upgrade package information.
Further, the device to be upgraded calls a second function pointer, and compares the first version identification version in the current firmware configuration information module_update_info with the second version identification version in the target upgrade package information. If the value of the first version identification version is '5.1.1', and the value of the second version identification version is '5.2.1', determining a sub-firmware upgrade package corresponding to the target upgrade package information.
And finally, the equipment to be upgraded calls a third function pointer, and upgrades the module A of the equipment to be upgraded by utilizing the sub-firmware upgrade package corresponding to the target upgrade package information. The equipment to be upgraded finishes upgrading the Module A, and then comprises priority upgrade_order of each Module according to the current firmware configuration information module_update_info until all modules are upgraded, so as to finish upgrading the equipment to be upgraded.
It should be noted that, the first information Head focuses on the information of the entire firmware upgrade package, and the attribute information FileList of each sub firmware upgrade package focuses on the information of each sub firmware upgrade package. The upgrade package information file_info of each sub-firmware upgrade package is derived from a FileList, and more emphasis is placed on the information of each sub-firmware upgrade package which needs to be used for upgrade. The current firmware configuration information module_update_info is the Module information focusing on the current device to be upgraded.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a device upgrading device for realizing the device upgrading method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of the device upgrading device or devices provided below may refer to the limitation of the device upgrading method hereinabove, and will not be repeated herein.
Fig. 11 is a block diagram of a device upgrade apparatus according to an embodiment of the present application, and in an embodiment of the present application, as shown in fig. 11, there is provided a device upgrade apparatus 1100, including: a first acquisition module 1101, a determination module 1102, and an upgrade module 1103, wherein:
the first obtaining module 1101 is configured to obtain first information of a firmware upgrade package of a device to be upgraded, sub firmware upgrade packages corresponding to each module of the device to be upgraded, and attribute information of each sub firmware upgrade package, where the device to be upgraded is a multi-functional module device, the first information includes the number of each sub firmware upgrade package in the firmware upgrade package, and the attribute information of each sub firmware upgrade package includes a relationship between modules of different models and corresponding sub firmware upgrade packages.
The determining module 1102 is configured to determine upgrade package information of each sub-firmware upgrade package according to the number of the sub-firmware upgrade packages and attribute information of each sub-firmware upgrade package.
The upgrade module 1103 is configured to upgrade the device to be upgraded according to each sub-firmware upgrade package, upgrade package information of each sub-firmware upgrade package, and current firmware configuration information of the device to be upgraded, where the current firmware configuration information includes a corresponding relationship between a current model of each module and each module.
According to the device upgrading device provided by the embodiment, the first information of the firmware upgrading package of the device to be upgraded, the sub-firmware upgrading package corresponding to each module of the device to be upgraded and the attribute information of each sub-firmware upgrading package are obtained, wherein the first information comprises the number of each sub-firmware upgrading package, and further the upgrading package information of each sub-firmware upgrading package is determined according to the number of each sub-firmware upgrading package and the attribute information of each sub-firmware upgrading package in the firmware upgrading package, so that the device to be upgraded is upgraded according to each sub-firmware upgrading package, the upgrading package information of each sub-firmware upgrading package and the current firmware configuration information of the device to be upgraded. The device to be upgraded is a multifunctional module device, the multifunctional module device comprises a plurality of modules, and each module in the multifunctional module device is provided with a respective sub-firmware upgrade package. Because the attribute information of each sub-firmware upgrade package comprises the relation between the modules of different types and the corresponding sub-firmware upgrade package, and the current firmware configuration information comprises the corresponding relation between the current model of each module and each module, the sub-firmware upgrade package corresponding to each module of the equipment to be upgraded, the attribute information of each sub-firmware upgrade package and the number of the sub-firmware upgrade packages can be obtained, the upgrade package information of each sub-firmware upgrade package can be determined, and the equipment to be upgraded can be further upgraded according to each sub-firmware upgrade package, the upgrade package information of each sub-firmware upgrade package and the current firmware configuration information. For example, the multi-function module apparatus 1 includes a module a including a model A1 and a model A2, a module B including a model B1 and a model B2, and a module C including a model C1 and a model C2, each of which has a need for upgrading. If the attribute information of each sub firmware upgrade package includes: the method comprises the steps that a module A of a model A corresponds to a sub-firmware upgrade package 1, a module A of a model A2 corresponds to a sub-firmware upgrade package 2, a module B of a model B1 corresponds to a sub-firmware upgrade package 3, a module B of a model B2 corresponds to a sub-firmware upgrade package 4, a module C of a model C1 corresponds to a sub-firmware upgrade package 5, and a module C of a model C2 corresponds to a sub-firmware upgrade package 6, and according to current firmware configuration information, it can be determined that the module A of a device to be upgraded currently uses the model A, the module B currently uses the model B1, and the module C currently uses the model C1, and then it can be determined that the module A is upgraded by the sub-firmware upgrade package 1, the module B is upgraded by the sub-firmware upgrade package 3, and the module C is upgraded by the sub-firmware upgrade package 5, so that the modules A, B and C of the multifunctional module device can be upgraded, and the multifunctional module device can be upgraded.
Optionally, the first obtaining module 1101 includes:
the first obtaining unit is used for obtaining a firmware upgrade package, wherein the firmware upgrade package is obtained by packaging the first information, the attribute information of each sub-firmware upgrade package and each sub-firmware upgrade package.
The unpacking unit is used for unpacking the firmware upgrading package to obtain the first information, the sub-firmware upgrading package corresponding to each module and the attribute information of each sub-firmware upgrading package.
Optionally, the current firmware configuration information includes priorities of the modules and a first module identifier of each module; the upgrade package information of the sub-firmware upgrade package comprises a second module identifier corresponding to the sub-firmware upgrade package; the upgrade module 1103 includes:
the first determining unit is used for determining a module to be upgraded from the modules according to the priorities of the modules;
the second determining unit is used for determining first upgrade package information of each sub-firmware upgrade package, wherein the first upgrade package information comprises upgrade package information of each sub-firmware upgrade package corresponding to each second module identifier which is the same as the first module identifier of the module to be upgraded;
and the upgrading unit is used for upgrading the equipment to be upgraded according to the first upgrading packet information and the corresponding sub-firmware upgrading packet.
Optionally, the first upgrade package information further includes identification information of a sub firmware upgrade package, and the upgrade unit includes:
a first determining subunit, configured to determine target upgrade package information according to the identification information in the first upgrade package information of each sub-firmware upgrade package; the identification information is used for marking whether the hardware specification of the sub firmware upgrade package is the same as the current hardware specification in the current firmware configuration information.
And the upgrading subunit is used for upgrading the equipment to be upgraded according to the target upgrading packet information and the corresponding sub-firmware upgrading packet.
Optionally, the upgrading subunit is specifically configured to upgrade the device to be upgraded according to the target upgrade package information, each sub firmware upgrade package, and the first version identifier in the current firmware configuration information.
Optionally, the target upgrade package information further includes a second version identifier of the sub-firmware upgrade package, and the upgrade subunit is specifically configured to determine the sub-firmware upgrade package corresponding to the target upgrade package information if the first version identifier is inconsistent with the second version identifier; and upgrading the equipment to be upgraded by utilizing the sub-firmware upgrade package corresponding to the target upgrade package information.
Optionally, the device upgrade apparatus 1100 further includes:
The second acquisition module is used for acquiring first verification information of the firmware upgrade package, verifying the firmware upgrade package according to the first verification information and obtaining a first verification result;
the first obtaining module 1101 is specifically configured to unpack the firmware upgrade package to obtain the first information if the first verification result is passed.
Optionally, the first obtaining module 1101 further includes:
the first obtaining unit is configured to unpack the firmware upgrade package if the first item identifier in the first information is consistent with the second item identifier in the current firmware configuration information, so as to obtain a sub-firmware upgrade package corresponding to each module and attribute information of each sub-firmware upgrade package.
And the second acquisition unit is used for acquiring second verification information from the attribute information of each sub firmware upgrade package.
And the verification unit is used for verifying each sub-firmware upgrading packet according to the second verification information corresponding to each sub-firmware upgrading packet to obtain a second verification result.
Optionally, the determining module 1102 is specifically configured to determine, if the second verification result is passed, upgrade package information of each sub-firmware upgrade package according to the number of each sub-firmware upgrade package and attribute information of each sub-firmware upgrade package.
The modules in the device upgrading apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
Fig. 12 is an internal structure diagram of a computer device in an embodiment of the present application, and in an embodiment of the present application, a computer device is provided, where the computer device may be a device to be upgraded, and the internal structure diagram may be as shown in fig. 12. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external device to be upgraded, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a device upgrade method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 12 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, implements the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
It should be noted that, user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.
Claims (13)
1. A method of upgrading a device, the method comprising:
acquiring first information of a firmware upgrade package of equipment to be upgraded, sub firmware upgrade packages corresponding to all modules of the equipment to be upgraded and attribute information of all the sub firmware upgrade packages, wherein the equipment to be upgraded is multifunctional module equipment, the first information comprises the number of all the sub firmware upgrade packages in the firmware upgrade package, and the attribute information of all the sub firmware upgrade packages comprises the relations between modules of different types and the corresponding sub firmware upgrade packages;
Determining upgrade package information of each sub firmware upgrade package according to the number of the sub firmware upgrade packages and attribute information of each sub firmware upgrade package;
and upgrading the equipment to be upgraded according to the sub firmware upgrade packages, upgrade package information of the sub firmware upgrade packages and current firmware configuration information of the equipment to be upgraded, wherein the current firmware configuration information comprises the corresponding relation between the current model of each module and each module.
2. The method of claim 1, wherein the obtaining the first information of the firmware upgrade package of the device to be upgraded, the sub firmware upgrade packages corresponding to the modules of the device to be upgraded, and the attribute information of the sub firmware upgrade packages includes:
the firmware upgrade package is obtained, wherein the firmware upgrade package is obtained by packaging the first information, the attribute information of each sub-firmware upgrade package and each sub-firmware upgrade package;
unpacking the firmware upgrade package to obtain the first information, the sub firmware upgrade packages corresponding to the modules and the attribute information of the sub firmware upgrade packages.
3. The method of claim 1, wherein the current firmware configuration information includes a priority of each of the modules, a first module identification of each of the modules; the upgrade package information of the sub firmware upgrade package comprises a second module identifier corresponding to the sub firmware upgrade package; the step of upgrading the device to be upgraded according to each sub firmware upgrade package, upgrade package information of each sub firmware upgrade package and current firmware configuration information of the device to be upgraded, includes:
determining a module to be upgraded from the modules according to the priority of the modules;
determining first upgrade package information of each sub-firmware upgrade package, wherein the first upgrade package information comprises upgrade package information of each sub-firmware upgrade package corresponding to each second module identification identical to the first module identification of the module to be upgraded;
and upgrading the equipment to be upgraded according to the first upgrade package information and the corresponding sub-firmware upgrade package.
4. The method of claim 3, wherein the first upgrade package information further includes identification information of the sub-firmware upgrade package, and the upgrading the device to be upgraded according to the first upgrade package information and the corresponding sub-firmware upgrade package includes:
Determining target upgrade package information according to the identification information in the first upgrade package information of each sub-firmware upgrade package;
according to the target upgrade package information and the corresponding sub-firmware upgrade package, upgrading the equipment to be upgraded;
the identification information is used for marking whether the hardware specification of the sub firmware upgrade package is the same as the current hardware specification in the current firmware configuration information.
5. The method of claim 4, wherein the upgrading the device to be upgraded according to the target upgrade package information and the corresponding sub-firmware upgrade package comprises:
and upgrading the equipment to be upgraded according to the target upgrade package information, each sub-firmware upgrade package and the first version identification in the current firmware configuration information.
6. The method of claim 5, wherein the target upgrade package information further comprises a second version identification of the sub-firmware upgrade package; the upgrading of the device to be upgraded according to the target upgrade package information, each sub-firmware upgrade package and the first version identifier in the current firmware configuration information includes:
If the first version identifier is inconsistent with the second version identifier, determining a sub-firmware upgrade package corresponding to the target upgrade package information;
and upgrading the equipment to be upgraded by utilizing a sub-firmware upgrade package corresponding to the target upgrade package information.
7. The method of claim 2, wherein prior to unpacking the firmware upgrade package, the method further comprises:
acquiring first verification information of the firmware upgrade package, and verifying the firmware upgrade package according to the first verification information to obtain a first verification result;
the unpacking processing of the firmware upgrade package comprises the following steps:
and if the first verification result is that the first information is passed, unpacking the firmware upgrade package to obtain the first information.
8. The method of claim 7, wherein the method further comprises:
if the first item identification in the first information is consistent with the second item identification in the current firmware configuration information, unpacking the firmware upgrading package to obtain a sub-firmware upgrading package corresponding to each module and attribute information of each sub-firmware upgrading package;
Acquiring second verification information from the attribute information of each sub firmware upgrade package;
and verifying each sub-firmware upgrading packet according to second verification information corresponding to each sub-firmware upgrading packet to obtain a second verification result.
9. The method of claim 8, wherein determining the upgrade package information of each sub firmware upgrade package according to the number of sub firmware upgrade packages and the attribute information of each sub firmware upgrade package, comprises:
if the second verification result is that the second verification result is passed, determining upgrade package information of each sub firmware upgrade package according to the number of the sub firmware upgrade packages and attribute information of each sub firmware upgrade package.
10. A device upgrade apparatus, the apparatus comprising:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring first information of a firmware upgrade package of a device to be upgraded, sub firmware upgrade packages corresponding to all modules of the device to be upgraded and attribute information of all the sub firmware upgrade packages, the device to be upgraded is multifunctional module equipment, the first information comprises the number of all the sub firmware upgrade packages in the firmware upgrade package, and the attribute information of all the sub firmware upgrade packages comprises the relations between modules of different models and the corresponding sub firmware upgrade packages;
The determining module is used for determining the upgrade package information of each sub-firmware upgrade package according to the number of the sub-firmware upgrade packages and the attribute information of each sub-firmware upgrade package;
the upgrading module is used for upgrading the equipment to be upgraded according to the sub-firmware upgrading packages, the upgrading package information of the sub-firmware upgrading packages and the current firmware configuration information of the equipment to be upgraded, wherein the current firmware configuration information comprises the corresponding relation between the current model of each module and each module.
11. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 9 when the computer program is executed.
12. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 9.
13. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any one of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211032351.1A CN117667130A (en) | 2022-08-26 | 2022-08-26 | Device upgrading method, device, computer device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211032351.1A CN117667130A (en) | 2022-08-26 | 2022-08-26 | Device upgrading method, device, computer device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117667130A true CN117667130A (en) | 2024-03-08 |
Family
ID=90073743
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211032351.1A Pending CN117667130A (en) | 2022-08-26 | 2022-08-26 | Device upgrading method, device, computer device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117667130A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118394388A (en) * | 2024-06-28 | 2024-07-26 | 苏州元脑智能科技有限公司 | Firmware upgrading method, firmware upgrading device, storage medium, electronic equipment and computer program product |
-
2022
- 2022-08-26 CN CN202211032351.1A patent/CN117667130A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118394388A (en) * | 2024-06-28 | 2024-07-26 | 苏州元脑智能科技有限公司 | Firmware upgrading method, firmware upgrading device, storage medium, electronic equipment and computer program product |
CN118394388B (en) * | 2024-06-28 | 2024-12-24 | 苏州元脑智能科技有限公司 | Firmware upgrade method, device, storage medium, electronic device and computer program product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102692889B1 (en) | Method for updating firmware, electronic device and storage medium therefor | |
CN106484612B (en) | The system and method tested and reported for equipment compatibility | |
CN111694589B (en) | Upgrade package generation method, device, server and computer readable storage medium | |
EP3101585B1 (en) | Electronic device and method for encrypting content | |
US11567748B2 (en) | Interface device having updatable firmware, mobile device, and firmware update method | |
US12314101B2 (en) | Device and method for restoring application removed by factory data reset function | |
KR102456020B1 (en) | Electronic device for including autograph in e-paper and control method thereof | |
US11770240B2 (en) | Electronic device and method for receiving push message stored in blockchain | |
CN106250770B (en) | Electronic device and method for encrypting content | |
CN110022558A (en) | Method for encrypting and decrypting upgrade package, electronic device and storage medium | |
CN114341800A (en) | Method and apparatus for improving runtime performance after application update in an electronic device | |
US9729815B2 (en) | Method and electronic device for controlling content integrity using numerical data | |
KR102780301B1 (en) | Electronic device operating encryption for user data | |
CN111857712A (en) | Form processing method, device, terminal and medium | |
CN117667130A (en) | Device upgrading method, device, computer device and storage medium | |
CN109889325A (en) | Calibration method, device, electronic equipment and medium | |
CN114237727B (en) | Drive loading method, device, computer equipment and storage medium | |
US10031734B2 (en) | Device and method for generating application package | |
CN110362330A (en) | Application program update method, apparatus, terminal and storage medium | |
KR20200068275A (en) | Method and electronic device for initialization of storage | |
KR20210007262A (en) | Apparatus and method for manageing application | |
CN112394969B (en) | Patch release method, server and terminal equipment | |
KR20190101580A (en) | Electronic apparatus and operating method thereof | |
EP2813947B1 (en) | Electronic device and method for mounting file system using virtual block device | |
CN114237720B (en) | Depth camera loading device, apparatus, method and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |