Intelligent Mobile Terminal Software Upgrade Method and Its Upgrade Control System
Through blockchain technology, the partition upgrade package of smart mobile terminals is generated and deployed, which solves the problem of high storage space and memory demands when the smart mobile terminal software is fully upgraded, reduces hardware costs and server load, and promotes the development of Internet of Things technology.
Patent Information
- Application Number
- CN202011245544.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-10
- Publication Date
- 2025-07-29
- Estimated Expiration
- 2040-11-10
AI Technical Summary
In the prior art, when the intelligent mobile terminal software is fully upgraded, the storage space and memory required by the server and terminal is high, resulting in an increase in production costs, which is not conducive to the development of Internet of Things technology.
Blockchain technology is used to generate full upgrade packages for each partition of the software version, and deploy them in the search units of different servers. Each partition is downloaded and upgraded through the device unique identification and partition block information one by one, reducing the size of the full upgrade package and reducing the storage space requirement.
It effectively reduces the hardware cost of smart mobile terminals, reduces the storage space requirement when downloading upgrade packages, and reduces the concurrent download load of the server, promoting the promotion of IoT technology.
Smart Images

Figure CN112416388B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic technology, and particularly to a method for software upgrade of an intelligent mobile terminal by OTA (Over The Air). The present invention also relates to a control system for software upgrade of an intelligent mobile terminal by OTA (Over The Air). Background Art
[0002] With the rapid development of the Internet of Things technology, intelligent mobile terminal products have become essential items in people's lives. However, due to the rapid development of technology, it is often necessary to continuously update the product software to meet user needs. OTA (Over The Air) emerged due to its breakthrough concept. It can remotely manage intelligent mobile terminals through the air interface of the network, and users can complete software updates of terminal devices by downloading differential upgrade packages or full upgrade packages.
[0003] In the prior art, when making a full upgrade package, the original version is often directly packaged and the entire upgrade package is uploaded to the OTA server. The upgrade package file is relatively large, requiring higher memory and storage space for intelligent mobile terminals, increasing the costs of intelligent mobile terminal manufacturers and being unfavorable to the development and popularization of the Internet of Things technology. Summary of the Invention
[0004] A series of simplified concepts are introduced in the Summary of the Invention section. These simplified concepts are all simplified from the prior art in this field and will be further described in detail in the Detailed Implementation section. The Summary of the Invention section of the present invention does not mean to attempt to define the key features and essential technical features of the claimed technical solution, nor does it mean to attempt to determine the protection scope of the claimed technical solution.
[0005] The technical problem to be solved by the present invention is to provide a method for software upgrade of an intelligent mobile terminal based on blockchain technology, which can reduce the storage space and memory required by the server side and the terminal during the full software upgrade of the intelligent mobile terminal.
[0006] Another technical problem to be solved by the present invention is to provide a control system for software upgrade of an intelligent mobile terminal based on blockchain technology, which can reduce the storage space and memory required by the server side and the terminal during the full software upgrade of the intelligent mobile terminal.
[0007] To solve the above technical problems, the present invention provides a method for software upgrade of an intelligent mobile terminal, including the following steps:
[0008] S1, making full upgrade packages for each upgrade partition of the software to be upgraded;
[0009] S2. Deploy the full upgrade packages of each upgrade partition to the retrieval units of different intelligent mobile terminal servers according to the unique relationship identifiers between the full upgrade packages of each upgrade partition.
[0010] S3. The mobile device requests retrieval and sequentially downloads the corresponding full upgrade packages of the upgrade partitions one by one through the unique identifier of the device to be upgraded (including but not limited to IMEI, SN, VIN) and the block information of the partition to be upgraded, and sequentially executes the upgrade of the partition to be upgraded according to the downloaded full upgrade packages of the upgrade partitions.
[0011] Optionally, further improve the intelligent mobile terminal software upgrade method described above. Step S1 includes the following sub-steps;
[0012] S101. Obtain the block information of the partition to be produced. If the obtained partition block information is empty, execute S102; if not, execute step S203.
[0013] S102. Obtain the target software version number of the version to be produced, calculate the Hash value of the target software version number and the first partition information, and form the block information of the upgrade partition to be produced with the kernel partition information.
[0014] S103. Generate the Hash value of the obtained partition block information and the partition information to be produced, and form the block information of the upgrade partition to be produced with the partition information to be upgraded to generate the full upgrade package of the partition to be produced. Rename the full upgrade package of the partition to be produced as the partition block information, and determine whether all the full upgrade packages of the partition to be produced are completed. If not, execute step S101; if so, execute step S104.
[0015] S104. End the production of the full upgrade packages of the upgrade partitions.
[0016] Optionally, further improve the intelligent mobile terminal software upgrade method described above. The kernel partition information includes but not limited to the partition name.
[0017] Optionally, further improve the intelligent mobile terminal software upgrade method described above. Step S2 includes the following sub-steps;
[0018] S201. If the upgrade request interface requests to retrieve the upgradable software version, execute step S202; if the upgrade request interface requests to retrieve the full upgrade package of the partition, execute step S203.
[0019] S202. Retrieve the target software version number that can be upgraded according to the device unique identifier and the upgradable software version carried in the request interface, and return the retrieval result to the requesting mobile terminal device.
[0020] S203. Retrieve the full upgrade package file name of the upgrade partition that matches the partition block information in the server, and return the download address to the requesting mobile terminal device.
[0021] Optionally, further improve the software upgrade method for the intelligent mobile terminal. The request interface includes but is not limited to existing network transmission protocols.
[0022] Optionally, further improve the software upgrade method for the intelligent mobile terminal. Step S3 includes the following sub-steps:
[0023] S301. Obtain the partition block information to be upgraded. If the partition block information stored in the current device is empty, execute step S302; if not, execute step S303.
[0024] Step S302. Obtain the device unique identifier and the current software version number, and carry this information to request a retrieval. Retrieve the target software version number for upgrade in the feedback, calculate the Hash value of the software version number and the first partition information, and form the partition block information to be upgraded with the kernel partition information.
[0025] Step S303. Regenerate the Hash value of the obtained partition block information and the information to be upgraded, and form the partition block information to be upgraded with the partition information to be upgraded.
[0026] Step S304. Request a retrieval according to the partition block information to be upgraded. Retrieve and return the download path of the full upgrade package for the partition, and download the corresponding full upgrade package for the partition to be upgraded according to the download path.
[0027] Step S305. Complete the software version of the partition to be upgraded through the full upgrade package for the partition, and determine whether the upgrade actions for all partitions to be upgraded have been completed. If so, execute step S306; if not, execute step S305.
[0028] Step S306. Update the partition block information of the upgraded partition into the storage area of the intelligent mobile terminal, and execute step S301.
[0029] Step S307. Clear the partition block information to be upgraded, switch the running system flag of the intelligent mobile terminal, and restart the intelligent mobile terminal device.
[0030] To solve the above technical problems, the present invention provides a software upgrade control system for an intelligent mobile terminal, including:
[0031] A production unit, which is used to produce full upgrade packages for each upgrade partition of the software to be upgraded, and deploy the full upgrade packages for each upgrade partition in the retrieval units of different intelligent mobile terminal servers.
[0032] A retrieval unit, which is used to retrieve and feedback the target software version number for upgrade according to the device unique identifier and the current software version number, request retrieval according to the partition full upgrade package information to be upgraded, retrieve and return the download path of the partition full upgrade package, and download the corresponding partition full upgrade package to be upgraded according to the download path;
[0033] An upgrade unit, which is set in each intelligent mobile terminal, is used to retrieve through the device unique identifier to be upgraded and the partition full upgrade package information request to be upgraded, and sequentially download the corresponding partition full upgrade package one by one, and execute the upgrade of the partition to be upgraded one by one in sequence according to the downloaded partition full upgrade package.
[0034] Optionally, further improve the intelligent mobile terminal software upgrade control system, and the production unit uses the following steps to produce the upgrade package;
[0035] S101, obtain the partition block information to be produced. If the obtained partition block information is empty, execute S102. If it is not empty, execute step S203.
[0036] S102, obtain the target software version number of the version to be produced, calculate the Hash value of the target software version number and the first partition information, and form the partition block information to be produced for upgrade with the kernel partition information;
[0037] S103, generate the Hash value of the obtained partition block information and the partition information to be produced, and form the partition block information to be upgraded with the partition information to be upgraded to generate the partition full upgrade package to be produced. Rename the partition upgrade package to be produced as the partition block information, and determine whether all the partition full upgrade packages to be produced are completed. If not, execute step S101. If so, execute step S104;
[0038] S104, end the production of the partition full upgrade package.
[0039] Optionally, further improve the intelligent mobile terminal software upgrade control system, and the kernel partition information includes but is not limited to the partition name.
[0040] Optionally, further improve the intelligent mobile terminal software upgrade control system, and the retrieval unit uses the following steps to retrieve the upgrade package;
[0041] S201, if the upgrade request interface requests to retrieve the upgradable software version, execute step S202. If the upgrade request interface requests to retrieve the partition full upgrade package, execute step S203;
[0042] S202, retrieve the target software version number that can be upgraded according to the device unique identifier and the upgradable software version carried in the request interface, and return the retrieval result to the requesting mobile terminal device;
[0043] S203. Retrieve the full upgrade package file name of the matching upgrade partition in the server according to the partition block information, and return the download address to the requesting mobile terminal device.
[0044] Optionally, further improve the intelligent mobile terminal software upgrade control system. The request interface includes but is not limited to existing network transmission protocols.
[0045] Optionally, further improve the intelligent mobile terminal software upgrade control system. The upgrade unit performs the upgrade using the following steps;
[0046] S301. The upgrade unit obtains the partition block information to be upgraded. If the current device storage partition block information is empty, execute step S302; if not, execute step S303.
[0047] Step S302. The upgrade unit obtains the device unique identifier and the current software version number, and requests the retrieval unit with this information. The retrieval unit feedbacks the target software version number for upgrade, calculates the Hash value of the software version number and the first partition information, and forms the partition block information to be upgraded with the kernel partition information.
[0048] Step S303. The upgrade unit regenerates the Hash value of the obtained partition block information and the information to be upgraded, and forms the partition block information to be upgraded with the partition information to be upgraded.
[0049] Step S304. The upgrade unit requests the retrieval unit according to the partition block information to be upgraded. The retrieval unit returns the download path of the partition full upgrade package, and downloads the corresponding partition full upgrade package according to the download path.
[0050] Step S305. The upgrade unit completes the software version of the partition to be upgraded through the partition full upgrade package, and determines whether all the upgrade actions of the partitions to be upgraded have been completed. If so, execute step S306; if not, execute step S305.
[0051] Step S306. The upgrade unit updates the partition block information of the completed upgrade into the intelligent mobile terminal storage area, and executes step S301.
[0052] Step S307. The upgrade unit clears the partition block information to be upgraded, switches the intelligent mobile terminal operating system flag, and restarts the intelligent mobile terminal device.
[0053] The method of the present invention generates full upgrade packages corresponding to each partition of the software version by using blockchain technology, and deploys them in the retrieval unit. The upgrade unit requests an upgrade by carrying the unique device identifier and the block information of the partition to be upgraded (the partition information generated by applying blockchain technology). The retrieval unit feeds back the retrieved full upgrade package of the corresponding partition to the upgrade unit. The upgrade unit uses the full upgrade package of the partition to complete the upgrade action of the corresponding partition, and sequentially completes the upgrade of all partitions to be upgraded according to this method. The present invention can effectively reduce the size of the full upgrade package, reduce the hardware cost of the intelligent mobile terminal, and greatly reduce the storage space required by the terminal when downloading the upgrade package.
[0054] The traditional full upgrade method is to package and upload the entire software version to the OTA server for deployment. When downloading and upgrading, the entire upgrade package needs to be completely downloaded and decompressed before the software version update action can be completed. For example, when there are four upgrade partitions in the terminal software to be upgraded, with sizes of 10M, 50M, 20M, and 30M respectively, the minimum FLASH space required for full upgrade using the existing technology is 110M (the sum of the sizes of the upgrade files for each partition). However, the file upgrade packages of the present invention exist independently. The upgrade file for each partition is an independent and complete upgrade package, and there is a unique identification relationship between them to associate all the upgrade package files (implemented based on blockchain technology) and they cannot be tampered with. When upgrading, it is not necessary to download all the upgrade files of all partitions and then perform the upgrade installation. Based on the upgrade packages produced by the production unit, the upgrade unit upgrades the data of each partition in a "chain" in the order of steps S303, S304, and S305. By retrieving, downloading, and upgrading the next partition to be upgraded through the block information of the current upgraded partition, the minimum FLASH space required is 50M (the size of the largest partition upgrade file). The more partitions to be upgraded in the terminal software to be upgraded, the more FLASH space can be saved by using this method.
[0055] In addition, by using the method of the present invention, the upgrade packages of different partitions can be distributed and deployed on different OTA servers, reducing the concurrent download load of the server, reducing the hardware R & D cost of intelligent terminal products, and having certain benefits for promoting the Internet of Things technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] The drawings of the present invention are intended to show the general characteristics of the methods, structures, and / or materials used in specific exemplary embodiments of the present invention to supplement the description in the specification. However, the drawings of the present invention are schematic diagrams not drawn to scale, and thus may not accurately reflect the precise structure or performance characteristics of any given embodiment. The drawings of the present invention should not be construed as limiting or restricting the scope of the numerical values or properties covered by the exemplary embodiments according to the present invention. The present invention will be further described in detail below in conjunction with the drawings and specific embodiments:
[0057] Figure 1 It is a schematic flow diagram of the software upgrade method for the intelligent mobile terminal of the present invention.
[0058] Figure 2 It is Figure 1 a schematic sub-step flow diagram of step S1 in
[0059] Figure 3 It is Figure 1 a schematic sub-step flow diagram of step S2 in
[0060] Figure 4 It is Figure 1 a schematic sub-step flow diagram of step S3 in
[0061] Figure 5 It is a schematic diagram of the software upgrade control system framework for the intelligent mobile terminal of the present invention. Specific Embodiments
[0062] The following describes the embodiments of the present invention through specific examples. Those skilled in the art can fully understand other advantages and technical effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through different specific embodiments. The details in this specification can also be applied based on different viewpoints, and various modifications or changes can be made without departing from the overall design concept of the invention. It should be noted that, without conflict, the following embodiments and the features in the embodiments can be combined with each other. The following exemplary embodiments of the present invention can be implemented in many different forms and should not be construed as being limited only to the specific embodiments described herein. It should be understood that these embodiments are provided to make the disclosure of the present invention thorough and complete, and to fully convey the technical solutions of these exemplary specific embodiments to those skilled in the art.
[0063] The terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, they indicate the presence of the described features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or combinations thereof.
[0064] First Embodiment;
[0065] As Figure 1 shown, the present invention provides a software upgrade method for an intelligent mobile terminal, including the following steps:
[0066] S1. Create full upgrade packages for each upgrade partition of the software to be upgraded;
[0067] S2. According to the unique relationship identifiers between the full upgrade packages of each upgrade partition, deploy the full upgrade packages of each upgrade partition in the retrieval units of different intelligent mobile terminal servers;
[0068] S3. The mobile device requests retrieval and sequentially downloads the corresponding full upgrade packages of the upgrade partitions one by one through the unique identifier of the device to be upgraded and the block information of the upgrade partition, and sequentially executes the upgrade of the upgrade partition according to the downloaded full upgrade packages of the upgrade partitions.
[0069] The present invention can deploy the upgrade packages of different partitions distributively on different OTA servers, reducing the concurrent download load of the servers and the hardware R & D costs of intelligent terminal products.
[0070] Second embodiment;
[0071] The second embodiment of the present invention is used to provide a feasible implementation manner of step S1 of the above first embodiment. However, step S1 is not limited to the following implementation manner. Those skilled in the art can make appropriate modifications (such as changing the execution order / identifier / parameter, etc.) on the basis of this second embodiment to form another implementation manner. Under the design concept of the present invention, those skilled in the art can know that using the execution order / identifier / parameter, etc. instead of those adopted by the present invention and making appropriate modifications can also solve the technical problems to be solved by the present invention and achieve the technical effects achieved by the present invention. The technical solutions thus formed should also be regarded as the protection scope of the present invention;
[0072] As Figure 2 shown, this step S1 includes the following sub-steps;
[0073] S101. Obtain the block information of the partition to be produced. If the obtained block information of the partition is empty, execute S102; if not, execute step S203.
[0074] S102. Obtain the target software version number of the version to be produced, calculate the Hash value of the target software version number and the first partition information, and form the block information of the upgrade partition to be produced together with the kernel partition information;
[0075] S103. Generate the Hash value of the obtained block information of the partition and the partition information to be produced, and form the block information of the upgrade partition to be produced together with the information of the upgrade partition to be upgraded to generate the full upgrade package of the partition to be produced. Rename the upgrade package of the partition to be produced as the block information of the partition, and determine whether all the full upgrade packages of the partitions to be produced are completed. If not, execute step S101; if so, execute step S104;
[0076] S104. End the production of the full upgrade packages of the upgrade partitions.
[0077] Among them, the kernel partition information includes but is not limited to the partition name.
[0078] The third embodiment;
[0079] The third embodiment of the present invention is used to provide a feasible implementation manner of step S2 of the above first embodiment. However, step S2 is not limited to the following implementation manner. Those skilled in the art can make appropriate modifications (such as changing the execution order / identifier / parameter, etc.) on the basis of this third embodiment to form another implementation manner. Under the design concept of the present invention, those skilled in the art can know that using instead of the execution order / identifier / parameter adopted by the present invention and making appropriate modifications can also solve the technical problems to be solved by the present invention and achieve the technical effects achieved by the present invention. The technical solutions formed should also be regarded as the protection scope of the present invention;
[0080] Such as Figure 3 shown, this step S2 includes the following sub-steps;
[0081] S201, if the upgrade request interface requests to retrieve the upgradable software version, then execute step S202. If the upgrade request interface requests to retrieve the partition full upgrade package, then execute step S203;
[0082] S202, retrieve the target software version number that can be upgraded according to the device unique identifier and the upgradable software version carried in the request interface, and return the retrieval result to the requesting mobile terminal device;
[0083] S203, retrieve the file name of the upgrade partition full upgrade package that matches it in the server according to the partition block information, and return the download address to the requesting mobile terminal device.
[0084] Among them, the request interface includes but is not limited to existing network transmission protocols.
[0085] The fourth embodiment;
[0086] The fourth embodiment of the present invention is used to provide a feasible implementation manner of step S3 of the above first embodiment. However, step S3 is not limited to the following implementation manner. Those skilled in the art can make appropriate modifications (such as changing the execution order / identifier / parameter, etc.) on the basis of this fourth embodiment to form another implementation manner. Under the design concept of the present invention, those skilled in the art can know that using instead of the execution order / identifier / parameter adopted by the present invention and making appropriate modifications can also solve the technical problems to be solved by the present invention and achieve the technical effects achieved by the present invention. The technical solutions formed should also be regarded as the protection scope of the present invention;
[0087] Such as Figure 4 shown, this step S3 includes the following sub-steps;
[0088] S301. Obtain the partition block information to be upgraded. If the partition block information stored in the current device is empty, execute step S302; if not, execute step S303.
[0089] Step S302. Obtain the device unique identifier and the current software version number, and carry this information to request a retrieval. The retrieved feedback is the target software version number for upgrade. Calculate the Hash value of the software version number and the first partition information, and form the partition block information to be upgraded together with the kernel partition information.
[0090] Step S303. Regenerate the Hash value from the obtained partition block information and the information to be upgraded, and form the partition block information to be upgraded together with the partition information to be upgraded.
[0091] Step S304. Request a retrieval according to the partition block information to be upgraded. The retrieved return is the download path of the partition full upgrade package. Download the corresponding partition full upgrade package according to the download path.
[0092] Step S305. Complete the software version of the partition to be upgraded through the partition full upgrade package, and determine whether all the upgrade actions of the partitions to be upgraded have been completed. If so, execute step S306; if not, execute step S305.
[0093] Step S306. Update the partition block information after the upgrade into the storage area of the intelligent mobile terminal, and execute step S301.
[0094] Step S307. Clear the partition block information to be upgraded, switch the running system flag of the intelligent mobile terminal, and restart the intelligent mobile terminal device.
[0095] The fifth embodiment;
[0096] As Figure 5 shown, the present invention provides an intelligent mobile terminal software upgrade control system, including:
[0097] A production unit, which is used to produce full upgrade packages for each upgrade partition of the software to be upgraded, and deploy the full upgrade packages of each upgrade partition in the retrieval units of different intelligent mobile terminal servers;
[0098] A retrieval unit, which is used to retrieve and feedback the target software version number for upgrade according to the device unique identifier and the current software version number, request a retrieval according to the partition block information to be upgraded, retrieve and return the download path of the partition full upgrade package, and download the corresponding partition full upgrade package according to the download path.
[0099] An upgrade unit is provided in each intelligent mobile terminal. It is used to request and retrieve, in sequence, the full upgrade packages for the corresponding upgrade partitions by means of the unique identifier of the device to be upgraded and the block information of the upgrade partition, and to perform the upgrade of the upgrade partition one by one in sequence according to the downloaded full upgrade packages of the upgrade partitions.
[0100] The sixth embodiment;
[0101] The sixth embodiment of the present invention is used to provide a feasible implementation manner of the production unit in the above-mentioned fifth embodiment. However, the process of the production unit for producing the upgrade package is not limited to the following implementation manner. Those skilled in the art can make appropriate modifications (such as changing the execution order / identifier / parameters, etc.) on the basis of this sixth embodiment to form another implementation manner. Under the design concept of the present invention, those skilled in the art can know that by using and replacing the execution order / identifier / parameters adopted by the present invention and making appropriate modifications, the technical problems to be solved by the present invention can also be solved, and the technical solutions formed by achieving the technical effects achieved by the present invention should also be regarded as the protection scope of the present invention;
[0102] The production unit produces the upgrade package by the following steps;
[0103] S101. Obtain the block information of the partition to be produced. If the obtained partition block information is empty, execute S102; if not, execute step S203.
[0104] S102. Obtain the target software version number of the version to be produced, calculate the Hash value of the target software version number and the first partition information, and form the block information of the upgrade partition to be produced together with the kernel partition information;
[0105] S103. Generate the Hash value of the obtained partition block information and the partition information to be produced, and form the block information of the upgrade partition to be produced together with the upgrade partition information to generate the full upgrade package of the partition to be produced. Rename the upgrade package of the partition to be produced as the partition block information, and determine whether all the full upgrade packages of the partitions to be produced are completed. If not, execute step S101; if so, execute step S104;
[0106] S104. End the production of the full upgrade package of the upgrade partition.
[0107] Among them, the kernel partition information includes but is not limited to the partition name.
[0108] The seventh embodiment;
[0109] The seventh embodiment of the present invention is used to provide a feasible implementation manner of the retrieval unit in the above-mentioned fifth embodiment. However, the retrieval process of the retrieval unit is not limited to the following embodiments. Those skilled in the art can make appropriate modifications (such as changing the execution order / identifier / parameters, etc.) based on this seventh embodiment to form another implementation manner. Under the design concept of the present invention, those skilled in the art can know that by using and appropriately modifying the execution order / identifier / parameters, etc. instead of those adopted by the present invention, the technical problems to be solved by the present invention can also be solved, and the technical solutions formed by achieving the technical effects achieved by the present invention should also be regarded as the protection scope of the present invention;
[0110] The retrieval unit retrieves the upgrade package by the following steps;
[0111] S201, if the upgrade request interface requests to retrieve the upgradable software version, then execute step S202; if the upgrade request interface requests to retrieve the partition full upgrade package, then execute step S203;
[0112] S202, retrieve the target software version number that can be upgraded according to the device unique identifier and the upgradable software version carried in the request interface, and return the retrieval result to the requesting mobile terminal device;
[0113] S203, retrieve the file name of the upgrade partition full upgrade package that matches it in the server according to the partition block information, and return the download address to the requesting mobile terminal device.
[0114] Among them, the request interface includes but is not limited to existing network transmission protocols.
[0115] The eighth embodiment;
[0116] The eighth embodiment of the present invention is used to provide a feasible implementation manner of the retrieval unit in the above-mentioned fifth embodiment. However, the upgrade process of the upgrade unit is not limited to the following embodiments. Those skilled in the art can make appropriate modifications (such as changing the execution order / identifier / parameters, etc.) based on this eighth embodiment to form another implementation manner. Under the design concept of the present invention, those skilled in the art can know that by using and appropriately modifying the execution order / identifier / parameters, etc. instead of those adopted by the present invention, the technical problems to be solved by the present invention can also be solved, and the technical solutions formed by achieving the technical effects achieved by the present invention should also be regarded as the protection scope of the present invention;
[0117] The upgrade unit executes the upgrade by the following steps;
[0118] S301, the upgrade unit obtains the partition block information to be upgraded. If the current device storage partition block information is empty, then execute step S302; if it is not empty, then execute step S303;
[0119] Step S302: The upgrade unit obtains the device unique identifier and the current software version number, and carries this information to request the retrieval unit. The retrieval unit feeds back the target software version number for upgrade, calculates the Hash value of the software version number and the first partition information, and forms the partition block information to be upgraded together with the kernel partition information.
[0120] Step S303: The upgrade unit regenerates the Hash value from the obtained partition block information and the information to be upgraded, and forms the partition block information to be upgraded together with the partition information to be upgraded.
[0121] Step S304: The upgrade unit requests the retrieval unit according to the partition block information to be upgraded. The retrieval unit returns the download path of the partition full upgrade package, and downloads the corresponding partition full upgrade package according to the download path.
[0122] Step S305: The upgrade unit completes the software version of the partition to be upgraded through the partition full upgrade package, and determines whether the upgrade actions for all partitions to be upgraded have been completed. If so, execute Step S306; if not, execute Step S305.
[0123] Step S306: The upgrade unit updates the partition block information after the upgrade into the storage area of the intelligent mobile terminal, and executes Step S301.
[0124] Step S307: The upgrade unit clears the partition block information to be upgraded, switches the operation system flag of the intelligent mobile terminal, and restarts the intelligent mobile terminal device.
[0125] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will also be understood that terms such as those defined in a general dictionary, unless explicitly defined herein, should be construed as having a meaning consistent with their meaning in the context of the relevant art and should not be interpreted in an idealized or overly formal sense.
[0126] The present invention has been described in detail above through specific embodiments and examples, but these do not constitute a limitation to the present invention. Without departing from the principle of the present invention, those skilled in the art can also make many modifications and improvements, which should also be regarded as the protection scope of the present invention.
Claims
1. A method for software upgrade of an intelligent mobile terminal, characterized in that, It includes the following steps: S1. Create full upgrade packages for each upgrade partition of the software to be upgraded, including: S101. Obtain the block information of the partition to be created. If the obtained partition block information is empty, execute S102; if it is not empty, execute step S103; S102. Obtain the target software version number of the version to be created, calculate the Hash value of the target software version number and the first partition information, and form the block information of the upgrade partition to be created with the kernel partition information; S103. Generate the Hash value of the obtained partition block information and the partition information to be created, and form the block information of the upgrade partition to be created with the upgrade partition information to generate the full upgrade package of the partition to be created. Rename the full upgrade package of the partition to be created as the partition block information, and determine whether all full upgrade packages of the partitions to be created are completed. If not, execute step S101; if so, execute step S104; S104. End the production of the full upgrade package for the upgrade partition; S2. According to the unique relationship identifier between the full upgrade packages of each upgrade partition, deploy the full upgrade packages of each upgrade partition in the retrieval units of different intelligent mobile terminal servers; S3. The mobile device requests retrieval and sequentially downloads the corresponding full upgrade packages of the upgrade partitions one by one through the unique identifier of the device to be upgraded and the block information of the upgrade partition, and sequentially executes the upgrade of the upgrade partitions according to the downloaded full upgrade packages of the upgrade partitions.
2. The intelligent mobile terminal software upgrade method according to claim 1, wherein: The kernel partition information includes the partition name.
3. The intelligent mobile terminal software upgrade method according to claim 1, wherein, Step S2 includes the following sub-steps; S201. If the upgrade request interface requests to retrieve the upgradable software version, execute step S202; if the upgrade request interface requests to retrieve the full upgrade package of the partition, execute step S203; S202. Retrieve the target software version number that can be upgraded according to the device unique identifier and the upgradable software version carried in the request interface, and return the retrieval result to the requesting mobile terminal device; S203. Retrieve the file name of the full upgrade package of the upgrade partition that matches it in the server according to the partition block information, and return the download address to the requesting mobile terminal device.
4. The intelligent mobile terminal software upgrade method according to claim 3, wherein: The request interface includes a network transmission protocol.
5. The intelligent mobile terminal software upgrade method according to claim 3, wherein, Step S3 includes the following sub-steps; S301. Obtain the block information of the upgrade partition to be upgraded. If the block information of the storage partition of the current device is empty, execute step S302; if it is not empty, execute step S303; Step S302. Obtain the device unique identifier and the current software version number, and carry this information to request retrieval. Retrieve the target software version number for upgrade in the feedback, calculate the Hash value of the software version number and the first partition information, and form the block information of the upgrade partition to be upgraded with the kernel partition information; Step S303. Regenerate the Hash value of the obtained partition block information and the information to be upgraded, and form the block information of the upgrade partition to be upgraded with the upgrade partition information; Step S304. Request retrieval according to the block information of the upgrade partition to be upgraded, retrieve and return the download path of the full upgrade package of the partition, and download the corresponding full upgrade package of the upgrade partition according to the download path; Step S305: Complete the software version of the partition to be upgraded through the partition full upgrade package, and determine whether the upgrade actions for all partitions to be upgraded have been completed. If so, execute Step S306; if not, execute Step S305; Step S306: Update the partition block information of the upgraded partition into the storage area of the intelligent mobile terminal, and execute Step S301; Step S307: Clear the partition block information to be upgraded, switch the running system flag of the intelligent mobile terminal, and restart the intelligent mobile terminal device.
6. An intelligent mobile terminal software upgrade control system, characterized in that, It includes: A production unit, which is used to produce the full upgrade packages for each upgrade partition of the software to be upgraded, and deploy the full upgrade packages of each upgrade partition in the retrieval units of different intelligent mobile terminal servers. The production of the full upgrade package includes the following steps: S101: Obtain the partition block information to be produced. If the obtained partition block information is empty, execute S102; if not, execute Step S103; S102: Obtain the target software version number of the version to be produced, calculate the Hash value of the target software version number and the first partition information, and form the partition block information to be produced for the upgrade partition together with the kernel partition information; S103: Generate the Hash value of the obtained partition block information and the partition information to be produced, and form the partition block information to be upgraded together with the partition information to be upgraded to generate the full upgrade package for the partition to be produced. Rename the upgrade package for the partition to be produced as the partition block information, and determine whether all the full upgrade packages for the partitions to be produced have been completed. If not, execute Step S101; if so, execute Step S104; S104: End the production of the full upgrade package for the upgrade partition; A retrieval unit, which is used to retrieve and feedback the target software version number for upgrade according to the device unique identifier and the current software version number, request retrieval according to the partition block information to be upgraded, retrieve and return the download path of the partition full upgrade package, and download the corresponding partition full upgrade package for the partition to be upgraded according to the download path; An upgrade unit, which is set in each intelligent mobile terminal, is used to request retrieval through the device unique identifier to be upgraded and the partition block information to be upgraded, and download the corresponding full upgrade packages for the upgrade partitions one by one in sequence, and execute the upgrade of the partitions to be upgraded one by one in sequence according to the downloaded full upgrade packages for the upgrade partitions.
7. The intelligent mobile terminal software upgrade control system according to claim 6, wherein: The kernel partition information includes the partition name.
8. The intelligent mobile terminal software upgrade control system according to claim 6, wherein The retrieval unit retrieves the upgrade package using the following steps; S201: If the upgrade request interface requests to retrieve the upgradable software version, execute Step S202; if the upgrade request interface requests to retrieve the partition full upgrade package, execute Step S203; S202: Retrieve the target software version number that can be upgraded according to the device unique identifier and the upgradable software version carried in the request interface, and return the retrieval result to the requesting mobile terminal device; S203: Retrieve the file name of the matching partition full upgrade package in the server according to the partition block information, and return the download address to the requesting mobile terminal device.
9. The intelligent mobile terminal software upgrade control system according to claim 8, wherein: The request interface includes a network transmission protocol.
10. The intelligent mobile terminal software upgrade control system according to claim 8, characterized in that, The upgrade unit executes the upgrade using the following steps; S301, The upgrade unit obtains the block information of the partition to be upgraded. If the block information of the storage partition of the current device is empty, step S302 is executed; if it is not empty, step S303 is executed; Step S302, The upgrade unit obtains the unique identifier of the device and the current software version number, and carries this information to request the retrieval unit. The retrieval unit feeds back the target software version number for upgrade, calculates the Hash value of the software version number and the first partition information, and forms the block information of the partition to be upgraded together with the kernel partition information; Step S303, The upgrade unit regenerates the Hash value of the obtained partition block information and the information to be upgraded, and forms the block information of the partition to be upgraded together with the partition information to be upgraded; Step S304, The upgrade unit requests the retrieval unit according to the block information of the partition to be upgraded. The retrieval unit returns the download path of the full partition upgrade package, and downloads the corresponding full partition upgrade package to be upgraded according to the download path; Step S305, The upgrade unit completes the software version of the partition to be upgraded through the full partition upgrade package, and judges whether the upgrade actions of all partitions to be upgraded have been completed. If so, step S306 is executed; if not, step S305 is executed; Step S306, The upgrade unit updates the upgraded partition block information into the storage area of the intelligent mobile terminal, and executes step S301; Step S307, The upgrade unit clears the block information of the partition to be upgraded, switches the running system flag of the intelligent mobile terminal, and restarts the intelligent mobile terminal device.
Citation Information
Patent Citations
Method and device for optimizing wireless local area network function
CN105700900A
Version upgrading method and device
CN107273160A