OTA system software upgrade control method and terminal equipment
Obtaining system software upgrade packages directly from OTA servers in micro and small enterprises through terminal devices solves the high cost problem of deploying and maintaining OTA upgrade servers, and provides a simple and low-cost OTA system software upgrade control method, suitable for micro and small enterprises. needs.
Patent Information
- Application Number
- CN201911350143.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-24
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2039-12-24
AI Technical Summary
Micro and small enterprises face high cost and complexity when deploying and maintaining OTA system software upgrade servers. In particular, upgrade strategy formulation and post-maintenance require a large amount of manpower and capital investment, which is unacceptable.
Access the OTA server through the terminal device, obtain the version information of the system software upgrade package and request authorization information, verify whether downloading of the upgrade package is allowed, thereby obtaining the upgrade package directly from the OTA server, reducing the pressure of managing equipment and the difficulty of deployment.
It realizes a simple and convenient OTA system software upgrade method, reduces the complexity and investment cost of the OTA upgrade system, and is suitable for the needs of micro and small enterprises.
Smart Images

Figure CN113031980B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communications, and in particular to an OTA system software upgrade control method and terminal device. Background Art
[0002] At present, Over The Air (OTA) in the field of system upgrades refers to completing the upgrade process on the local machine through the network, which is different from the traditional process of connecting to a PC for firmware flashing; OTA of smart terminals may upgrade some firmware of smart terminals such as mobile phones (program code solidified inside the integrated circuit, responsible for controlling and coordinating the functions of the integrated circuit, equivalent to the BIOS of the motherboard). OTA technology usually uses the terminal device to detect whether there is a system software upgrade package on the OTA server, that is, a software package that can be used by the terminal device to upgrade the system software. If the terminal device detects the system software upgrade package, it notifies the user that the system software can be upgraded, and after the user allows, downloads the upgrade package from the OTA server and upgrades the system software.
[0003] In enterprise application scenarios, considering that system software upgrades may cause enterprise-specific software or customized applications or functions in terminal devices to be incompatible with the upgraded system version, enterprises usually control the upgrade of system software in consideration of the security and reliability of terminal devices.
[0004] In the prior art, the control method of the enterprise for system software upgrade is usually: the enterprise builds an upgrade server, and the upgrade server runs a preset upgrade policy. The upgrade server can determine whether the software upgrade version on the OTA can be used by the terminal device in the enterprise based on the upgrade policy, and download it based on the determination result. That is to say, within the enterprise, after the upgrade server determines that the terminal device in the enterprise is allowed to use the upgrade package on the OTA server based on the preset upgrade policy, the upgrade server obtains the upgrade package from the OTA server, and when the terminal device requests the upgrade package from the upgrade server, the upgrade server sends the upgrade package to the terminal device.
[0005] However, for micro-sized and small enterprises, the cost of deploying enterprise-specific upgrade servers is high, and the upgrade strategy formulation and subsequent maintenance of the upgrade servers require a lot of manpower and funds. For example, the upgrade servers need to be deployed in a dedicated computer room, and cloud services need to be purchased, and professional IT personnel are required to maintain and manage the upgrade servers. For micro-sized and small enterprises that only have a few terminal devices (such as small enterprises with less than 50 people), the above costs make it difficult for such enterprises to accept.
[0006] Therefore, how to provide a complete, easy-to-deploy, and low-cost OTA system software upgrade control method has become an urgent problem to be solved. Summary of the invention
[0007] The present application provides an OTA system software upgrade control method and device, which can reduce the complexity and investment cost of the OTA upgrade system to a certain extent.
[0008] In order to achieve the above objectives, this application adopts the following technical solutions:
[0009] In the first aspect, an embodiment of the present application provides an OTA system software upgrade control method, the method comprising: a terminal device accesses an OTA server to obtain version information of a target system software upgrade package on the OTA server whose version is higher than the current system software version of the terminal device. Subsequently, the terminal device may request authorization information corresponding to the version information of the target system software upgrade package from the management device to verify whether the target system software upgrade package can be downloaded from the OTA server. Specifically, the terminal device determines that the target system software upgrade package can be obtained from the OTA server in response to receiving the authorization information corresponding to the version information of the target system software upgrade package sent by the management device, and then obtains the target system software upgrade package from the OTA server; wherein the authorization information is used to indicate whether the terminal device is allowed to obtain the target system software upgrade package from the OTA server.
[0010] Based on the above method, when the authorization information issued by the management device indicates that the terminal device is allowed to obtain the target system software upgrade package from the OTA server, the terminal device can directly obtain the target system software upgrade package from the OTA server, without the management device having to download and store the target system software upgrade package on the OTA server, thereby providing a simple and convenient upgrade method and an OTA upgrade management network with a simple network layout.
[0011] In one possible implementation, the terminal device determines that the target system software upgrade package can be obtained from the OTA server in response to receiving authorization information corresponding to the version information of the target system software upgrade package sent by the management device, including: the terminal device receives the authorization information corresponding to the version information of the target system software upgrade package sent by the management device; wherein, if the authorization information includes an available mark, it is determined that the authorization information corresponding to the version information of the target system software upgrade package is to allow the terminal device to obtain the target system software upgrade package from the OTA server.
[0012] Based on the above method, it is realized that only version information and corresponding authorization information can be stored on the management device, that is, the marking of each version information, so as to reduce the device pressure of the management device. Optionally, the management device can send the version information of the target software system upgrade package requested by the terminal and its corresponding authorization information to the terminal device based on the request of the terminal. After obtaining the authorization information, the terminal can determine whether it is authorized to download the target system software upgrade package through verification, and perform subsequent operations based on the verification result.
[0013] In one possible implementation, in response to receiving authorization information corresponding to version information of a target system software upgrade package sent by a management device, a terminal device determines that a target system software upgrade package can be obtained from an OTA server, including: the terminal device receives version information of at least one system software upgrade package sent by the management device and authorization information corresponding to the version information of at least one system software upgrade package; the terminal device matches the version information of the target system software upgrade package with the version information of at least one system software upgrade package, and determines the authorization information corresponding to the version information of the successfully matched system software upgrade package; wherein, if the authorization information includes an available mark, it is determined that the authorization information corresponding to the version information of the target system software upgrade package is to allow the terminal device to obtain the target system software upgrade package from the OTA server.
[0014] Based on the above method, it is realized that only version information and corresponding authorization information can be stored on the management device, that is, the marking of each version information, so as to reduce the device pressure of the management device. Optionally, the management device can return all version information and corresponding authorization information stored on the management device to the terminal device based on the request of the terminal device. After obtaining the authorization information, the terminal can determine whether it is authorized to download the target system software upgrade package through verification, and perform subsequent operations based on the verification result.
[0015] In one possible implementation, the terminal device determines that the target system software upgrade package can be obtained from the OTA server in response to receiving authorization information corresponding to the version information of the target system software upgrade package sent by the management device, including: the terminal device receives a response message sent by the management device; wherein, if the response message includes the version information of the target system software upgrade package, it is determined that the authorization information corresponding to the version information of the target system software upgrade package is to allow the terminal device to obtain the target system software upgrade package from the OTA server.
[0016] Based on the above method, it is realized that only authorized version information can be stored on the management device to reduce the device pressure of the management device. Optionally, the management device can verify based on the request of the terminal device. If the version information of the target system software upgrade package exists in the management device, the management device returns the version information of the target system software upgrade package of the management device to the terminal device to indicate that the version information has been authorized for use.
[0017] In a possible implementation, the terminal device requests the management device for authorization information corresponding to the version information of the target system software upgrade package, including: the terminal device sends a query request message to the management device, and the query request message includes the version information of the target system software upgrade package.
[0018] Based on the above method, the terminal can query the version information of the target system software upgrade package from the management device without obtaining the target system software upgrade package from the management device, thereby reducing the equipment burden and deployment difficulty of the management device.
[0019] In one possible implementation, the terminal device responds to receiving authorization information corresponding to the version information of the target system software upgrade package sent by the management device, and determines that the target system software upgrade package can be obtained from the OTA server, then obtains the target system software upgrade package from the OTA server, including: the terminal device responds to receiving authorization information corresponding to the version information of the target system software upgrade package sent by the management device, if the terminal device determines that the authorization information is to allow the terminal device to obtain the target system software upgrade package from the OTA server, then it is determined that the target system software upgrade package can be obtained from the OTA server, and the target system software upgrade package is obtained from the OTA server; the terminal device responds to receiving authorization information corresponding to the version information of the target system software upgrade package sent by the management device, if the terminal device determines that the authorization information is to not allow the terminal device to obtain the target system software upgrade package from the OTA server, then it is determined that the target system software upgrade package cannot be obtained from the OTA server, and the OTA upgrade process is determined to be ended.
[0020] Based on the above method, when the terminal device determines that the target system software upgrade package cannot be obtained from the OTA server, the terminal device (specifically, it can be an application, tool or program in the terminal device) can interrupt the upgrade process and end the upgrade process.
[0021] In a possible implementation, before the terminal device requests the management device for authorization information corresponding to the version information of the target system software upgrade package, the process further includes: the terminal device requests the management device to join a group managed by the management device.
[0022] Based on the above method, it is achieved that the terminal device can be bound to the management device to join the same management group, so that the management device can manage the terminal devices in the group.
[0023] In a possible implementation, the terminal device requests the management device to join a group managed by the management device, including: the terminal device sends identification information of the terminal device to the management device; if a confirmation message sent by the management device is received, the terminal device determines that it has joined the group.
[0024] Based on the above method, it is achieved that the terminal device can be bound to the management device to join the same management group, so that the management device can manage the terminal devices in the group.
[0025] In the second aspect, the embodiment of the present application provides an OTA system software upgrade control method, including: a management device receives a query request sent by a terminal device, the query request is used to query the authorization information of the target system software upgrade package; the management device can obtain the authorization information corresponding to the target system software upgrade package from the local cache of the management device based on the received query request, and send the authorization information to the terminal. In the present application, the authorization information includes available or unavailable, and the authorization information is available to indicate that the terminal device is allowed to perform a system software upgrade based on the target system software upgrade package, and the authorization information is unavailable to indicate that the terminal device is not allowed to perform a system software upgrade based on the target system software upgrade package.
[0026] Based on the above method, the present application can authenticate and authorize the system software within the enterprise or user group through the management device, and provide a simple OTA system software upgrade control method, so that small and micro enterprises can deploy management devices to manage OTA upgrades within the enterprise, thereby effectively reducing the deployment cost of the enterprise network.
[0027] In a possible implementation, before the management device receives the query request sent by the terminal device, it also includes: after the management device detects that the version information of at least one system software upgrade package on the OTA server is not cached locally, it obtains the version information of at least one system software upgrade package; according to preset rules and / or user instructions, it determines whether the terminal device is allowed to perform system software upgrade based on at least one system software upgrade package; if the determination is yes, the version information of at least one system software upgrade package is marked as available; if the determination is no, the version information of at least one system software upgrade package is marked as unavailable.
[0028] Based on the above method, only the authorization information of at least one system software upgrade package is stored on the management device side. The management device can use the authorization information of the system information of the system software upgrade package to control and manage whether the terminals within the enterprise or group can be upgraded based on the system software upgrade package.
[0029] In one possible implementation, before obtaining the authorization information corresponding to the target system software upgrade package from the local cache, it also includes: the management device detects whether the terminal device belongs to the group managed by the management device; wherein, the management device determines that the terminal device belongs to the group managed by the management device, then based on the query request, obtains the authorization information corresponding to the target system software upgrade package from the local cache.
[0030] Based on the above method, one or more management devices can be set up in an enterprise or group, and the management device can manage the OTA upgrade of one or more members in its management group.
[0031] In one possible implementation, the query request includes version information of the target system software upgrade package, and obtaining authorization information corresponding to the target system software upgrade package from the local cache, including: matching the version information with at least one version information in the local cache; and obtaining authorization information corresponding to the successfully matched version information.
[0032] Based on the above method, the management device can authorize the terminal to use based on the versions of different system software upgrade packages requested by the terminal. In other words, the OTA upgrades of the terminals within the management group can be managed separately within the management group, thereby realizing differentiated management of OTA upgrades within the management group.
[0033] In one possible implementation, obtaining authorization information corresponding to the target system software upgrade package from a local cache includes: querying the group to which the terminal device belongs; querying the authorization information corresponding to the target system software upgrade package of the group, wherein the authorization information is available and is used to indicate that the management device allows one or more terminal devices in the group to perform a system software upgrade based on the target system software upgrade package, and the authorization information is unavailable and is used to indicate that the management device does not allow one or more terminal devices in the group to perform a system software upgrade based on the target system software upgrade package.
[0034] Based on the above method, the management device can perform group management on the terminals in the management group. Each group can include one or more terminals. For different groups, the management device can authorize OTA upgrades separately.
[0035] In the third aspect, an embodiment of the present application provides a terminal device, comprising: a memory and a processor, the memory and the processor are coupled; the memory stores program instructions, and when the program instructions are executed by the processor, the terminal device executes the following steps: a memory and a processor, the memory and the processor are coupled; accessing an OTA server to obtain version information of a target system software upgrade package on the OTA server whose version is higher than the current system software version of the terminal device; requesting authorization information corresponding to the version information of the target system software upgrade package from a management device; in response to receiving the authorization information corresponding to the version information of the target system software upgrade package sent by the management device, determining that the target system software upgrade package can be obtained from the OTA server, then obtaining the target system software upgrade package from the OTA server; wherein the authorization information is used to indicate whether the terminal device is allowed to obtain the target system software upgrade package from the OTA server.
[0036] In one possible implementation, when the program instructions are executed by the processor, the terminal device executes the following steps: receiving authorization information corresponding to the version information of the target system software upgrade package sent by the management device; wherein, if the authorization information includes an available mark, determining that the authorization information corresponding to the version information of the target system software upgrade package is to allow the terminal device to obtain the target system software upgrade package from the OTA server.
[0037] In one possible implementation, when the program instructions are executed by the processor, the terminal device executes the following steps: receiving version information of at least one system software upgrade package and authorization information corresponding to the version information of at least one system software upgrade package sent by the management device; matching the version information of the target system software upgrade package with the version information of at least one system software upgrade package, and determining the authorization information corresponding to the version information of the successfully matched system software upgrade package; wherein, if the authorization information includes an available mark, determining that the authorization information corresponding to the version information of the target system software upgrade package is to allow the terminal device to obtain the target system software upgrade package from the OTA server.
[0038] In one possible implementation, when the program instructions are executed by the processor, the terminal device executes the following steps: receiving a response message sent by the management device; wherein, if the response message includes version information of the target system software upgrade package, determining that the authorization information corresponding to the version information of the target system software upgrade package is to allow the terminal device to obtain the target system software upgrade package from the OTA server.
[0039] In a possible implementation, when the program instructions are executed by the processor, the terminal device executes the following steps: sending a query request message to the management device, where the query request message includes version information of the target system software upgrade package.
[0040] In one possible implementation, when the program instructions are executed by the processor, the terminal device executes the following steps: in response to receiving the authorization information corresponding to the version information of the target system software upgrade package sent by the management device, if it is determined that the authorization information is to allow the terminal device to obtain the target system software upgrade package from the OTA server, then it is determined that the target system software upgrade package can be obtained from the OTA server, and the target system software upgrade package is obtained from the OTA server; in response to receiving the authorization information corresponding to the version information of the target system software upgrade package sent by the management device, if it is determined that the authorization information is not to allow the terminal device to obtain the target system software upgrade package from the OTA server, then it is determined that the target system software upgrade package cannot be obtained from the OTA server, and the OTA upgrade process is determined to be ended.
[0041] In a possible implementation manner, when the program instructions are executed by the processor, the terminal device executes the following steps: requesting the management device to join the group managed by the management device.
[0042] In a possible implementation, when the program instructions are executed by the processor, the terminal device executes the following steps: sending identification information of the terminal device to the management device; and determining that the terminal device has joined the group if a confirmation message sent by the management device is received.
[0043] In a fourth aspect, an embodiment of the present application provides a management device, comprising: a memory and a processor, the memory and the processor being coupled; the memory stores program instructions, and when the program instructions are executed by the processor, the management device executes the following steps: receiving a query request sent by a terminal device, the query request is used to query the authorization information of a target system software upgrade package; based on the query request, obtaining authorization information corresponding to the target system software upgrade package from a local cache; the authorization information includes available or unavailable, the authorization information being available is used to indicate that the terminal device is allowed to perform a system software upgrade based on the target system software upgrade package, and the authorization information being unavailable is used to indicate that the terminal device is not allowed to perform a system software upgrade based on the target system software upgrade package; sending authorization information to the terminal device.
[0044] In one possible implementation, when the program instructions are executed by the processor, the management device performs the following steps: after detecting that the version information of at least one system software upgrade package on the OTA server is not cached locally, obtain the version information of at least one system software upgrade package; according to preset rules and / or user instructions, determine whether to allow the terminal device to perform system software upgrade based on at least one system software upgrade package; if the determination is yes, mark the version information of at least one system software upgrade package as available; if the determination is no, mark the version information of at least one system software upgrade package as unavailable.
[0045] In one possible implementation, when the program instructions are executed by the processor, the management device performs the following steps: detecting whether the terminal device belongs to a group managed by the management device; wherein, if the processor determines that the terminal device belongs to a group managed by the management device, then based on the query request, obtaining authorization information corresponding to the target system software upgrade package from the local cache.
[0046] In one possible implementation, the query request includes version information of the target system software upgrade package. When the program instructions are executed by the processor, the management device executes the following steps: matching the version information with at least one version information cached locally; and obtaining authorization information corresponding to the successfully matched version information.
[0047] In one possible implementation, when the program instructions are executed by the processor, the management device executes the following steps: querying the group to which the terminal device belongs; querying the authorization information of the group corresponding to the target system software upgrade package, wherein the authorization information is available and is used to indicate that the management device allows one or more terminal devices in the group to perform system software upgrade based on the target system software upgrade package, and the authorization information is unavailable and is used to indicate that the management device does not allow one or more terminal devices in the group to perform system software upgrade based on the target system software upgrade package.
[0048] In the fifth aspect, an embodiment of the present application provides a terminal device, an acquisition module, a transceiver module, and a processing module, wherein the acquisition module is used to access the OTA server to obtain the version information of the target system software upgrade package on the OTA server whose version is higher than the current system software version of the terminal device; the transceiver module is used to request the management device for authorization information corresponding to the version information of the target system software upgrade package; the processing module is used to determine that the target system software upgrade package can be obtained from the OTA server in response to receiving the authorization information corresponding to the version information of the target system software upgrade package sent by the management device; the acquisition module is also used to obtain the target system software upgrade package from the OTA server; wherein the authorization information is used to indicate whether the terminal device is allowed to obtain the target system software upgrade package from the OTA server.
[0049] In one possible implementation, the processing module is specifically used to: receive authorization information corresponding to the version information of the target system software upgrade package sent by the management device; wherein, if the authorization information includes an available mark, it is determined that the authorization information corresponding to the version information of the target system software upgrade package is to allow the terminal device to obtain the target system software upgrade package from the OTA server.
[0050] In one possible implementation, the processing module is specifically used to: receive version information of at least one system software upgrade package sent by a management device and authorization information corresponding to the version information of at least one system software upgrade package; match the version information of the target system software upgrade package with the version information of at least one system software upgrade package, and determine the authorization information corresponding to the version information of the successfully matched system software upgrade package; wherein, if the authorization information includes an available mark, it is determined that the authorization information corresponding to the version information of the target system software upgrade package is to allow the terminal device to obtain the target system software upgrade package from the OTA server.
[0051] In one possible implementation, the processing module is specifically used for: the terminal device receives a response message sent by the management device; wherein, if the response message includes version information of the target system software upgrade package, then it is determined that the authorization information corresponding to the version information of the target system software upgrade package is to allow the terminal device to obtain the target system software upgrade package from the OTA server.
[0052] In a possible implementation, the transceiver module is used to send a query request message to the management device, where the query request message includes version information of the target system software upgrade package.
[0053] In a possible implementation, the processing module is used to respond to the authorization information corresponding to the version information of the target system software upgrade package sent by the management device, and if the terminal device determines that the authorization information allows the terminal device to obtain the target system software upgrade package from the OTA server, it is determined that the target system software upgrade package can be obtained from the OTA server. The transceiver module is used to obtain the target system software upgrade package from the OTA server;
[0054] The processing module is also used to respond to the authorization information corresponding to the version information of the target system software upgrade package sent by the management device. If the terminal device determines that the authorization information does not allow the terminal device to obtain the target system software upgrade package from the OTA server, it is determined that the target system software upgrade package cannot be obtained from the OTA server, and the OTA upgrade process is determined to be ended.
[0055] In a possible implementation, the transceiver module is further configured to request the management device to join a group managed by the management device.
[0056] In a possible implementation, the transceiver module is further configured to send identification information of the terminal device to the management device; if a confirmation message sent by the management device is received, the terminal device determines that it has joined the group.
[0057] In a sixth aspect, an embodiment of the present application provides a management device, comprising: a transceiver module and a processing module, wherein the transceiver module is used to receive a query request sent by a terminal device, the query request is used to query the authorization information of a target system software upgrade package; the processing module is used to obtain the authorization information corresponding to the target system software upgrade package from a local cache based on the query request; the authorization information includes available or unavailable, the authorization information being available is used to indicate that the terminal device is allowed to perform a system software upgrade based on the target system software upgrade package, and the authorization information being unavailable is used to indicate that the terminal device is not allowed to perform a system software upgrade based on the target system software upgrade package; the transceiver module is also used to send authorization information to the terminal device.
[0058] In one possible implementation, the processing module is also used to: after detecting that the version information of at least one system software upgrade package on the OTA server is not cached locally, obtain the version information of at least one system software upgrade package; determine whether the terminal device is allowed to perform system software upgrade based on at least one system software upgrade package according to preset rules and / or user instructions; if the determination is yes, mark the version information of at least one system software upgrade package as available; if the determination is no, mark the version information of at least one system software upgrade package as unavailable.
[0059] In one possible implementation, the processing module is also used to detect whether the terminal device belongs to a group managed by the management device; wherein, if the processing module determines that the terminal device belongs to a group managed by the management device, then based on the query request, the authorization information corresponding to the target system software upgrade package is obtained from the local cache.
[0060] In a possible implementation, the query request includes version information of the target system software upgrade package, and the processing module is further used to match the version information with at least one version information cached locally; and obtain authorization information corresponding to the successfully matched version information.
[0061] In one possible implementation, the processing module is also used to query the group to which the terminal device belongs; the queried group corresponds to the authorization information of the target system software upgrade package, wherein the authorization information is available and is used to indicate that the management device allows one or more terminal devices in the group to perform system software upgrade based on the target system software upgrade package, and the authorization information is unavailable and is used to indicate that the management device does not allow one or more terminal devices in the group to perform system software upgrade based on the target system software upgrade package.
[0062] In a seventh aspect, an embodiment of the present application provides a computer-readable medium for storing a computer program, wherein the computer program includes instructions for executing the method in the first aspect or any possible implementation of the first aspect.
[0063] In an eighth aspect, an embodiment of the present application provides a computer-readable medium for storing a computer program, wherein the computer program includes instructions for executing the method in the second aspect or any possible implementation of the second aspect.
[0064] In a ninth aspect, an embodiment of the present application provides a computer program comprising instructions for executing the method in the first aspect or any possible implementation of the first aspect.
[0065] In a tenth aspect, an embodiment of the present application provides a computer program comprising instructions for executing the method in the second aspect or any possible implementation of the second aspect.
[0066] In an eleventh aspect, an embodiment of the present application provides a chip, the chip comprising a processing circuit and a transceiver pin, wherein the transceiver pin and the processing circuit communicate with each other through an internal connection path, and the processing circuit executes the method in the first aspect or any possible implementation of the first aspect to control the receiving pin to receive a signal and control the transmitting pin to send a signal.
[0067] In a twelfth aspect, an embodiment of the present application provides a chip, the chip comprising a processing circuit and a transceiver pin, wherein the transceiver pin and the processing circuit communicate with each other through an internal connection path, and the processing circuit executes the method in the second aspect or any possible implementation of the second aspect to control the receiving pin to receive a signal, and to control the sending pin to send a signal.
[0068] In the thirteenth aspect, an embodiment of the present application provides an OTA system software upgrade system, which includes the management device and terminal involved in the first and second aspects above. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] Figure 1 is a schematic diagram of a communication system provided in an embodiment of the present application;
[0070] Figure 2 is a schematic diagram of a mobile phone structure shown as an example;
[0071] Figure 3 It is a flowchart of an OTA system software upgrade control method provided in an embodiment of the present application;
[0072] Figure 4 is one of the flowcharts of an OTA system software upgrade control method shown as an example;
[0073] Figure 5 is a schematic diagram of an exemplary system software upgrade scenario;
[0074] Figure 6 is one of the flowcharts of an OTA system software upgrade control method shown as an example;
[0075] Figure 7 is one of the flowcharts of an OTA system software upgrade control method shown as an example;
[0076] Figure 8 is one of the flowcharts of an OTA system software upgrade control method shown as an example;
[0077] Fig. 9 It is a structural diagram of a management device provided in an embodiment of the present application;
[0078] Fig.10 It is a structural diagram of a terminal device provided in an embodiment of the present application;
[0079] Fig.11 It is a structural schematic diagram of a device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0080] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0081] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0082] The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects rather than to describe a specific order of objects. For example, a first target object and a second target object are used to distinguish different target objects rather than to describe a specific order of target objects.
[0083] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0084] In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more than two. For example, multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.
[0085] Before describing the technical solution of the embodiment of the present application, the communication system of the embodiment of the present application is first described in conjunction with the accompanying drawings. Figure 1 , is a schematic diagram of a communication system provided in an embodiment of the present application. The communication system includes an OTA server, a terminal device A, a terminal device B, and a management device.
[0086] It should be noted that in actual applications, for enterprises or other organizations, a management device can usually be set up (the setting method of the management device will be described in the following embodiments), and the management device can be used to control the system software upgrade of one or more terminal devices within the enterprise. In addition, the management device can be connected to one or more OTA servers, where multiple OTA servers can be used to provide system software upgrade packages for corresponding systems or terminal devices. Optionally, different system software, such as Android, and different terminal device manufacturers may correspond to different OTA servers. Each terminal device can be connected to the corresponding OTA server to download the system software upgrade package from the OTA server. It should be further noted that Figure 1 The number of devices is only an illustrative example, and the OTA server, management device and terminal device can be one or more.
[0087] Still refer to Figure 1 In this application, a detailed description is given by taking the example that the terminal device cluster belongs to the same enterprise A, that is, the terminal devices are all terminal devices used by the enterprise employees.
[0088] In the specific implementation of the embodiments of the present application, the terminal device may be a personal computer, a smart phone, a tablet computer, etc., a vehicle-mounted device, a smart home appliance, an artificial intelligence device, etc. Optionally, the management device may also be a terminal device, such as a smart phone or a tablet computer, or any other device that can be used to execute the solution described in the present application.
[0089] Figure 2 An exemplary structural diagram showing a terminal device as a mobile phone is shown. Figure 2 , the mobile phone 100 includes: application processor 101, microcontroller unit (MCU) 102, memory 103, modem 104, radio frequency (RF) module 105, wireless fidelity (Wi-Fi) module 106, Bluetooth module 107, sensor 108, positioning module 109, input / output (I / O) device 110 and other components. These components can communicate through one or more communication buses or signal lines. Those skilled in the art can understand that Figure 2 The hardware structure shown in the figure does not constitute a limitation on the mobile phone. The mobile phone 100 may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0090] Combine the following Figure 2 The various components of the terminal device 100 are described in detail:
[0091] The application processor 101 is the control center of the mobile phone 100, and uses various interfaces and buses to connect various components of the terminal device 100. In some embodiments, the processor 101 may include one or more processing units.
[0092] The memory 103 stores computer programs such as Figure 2 The operating system 103a and application 103b shown. The application processor 101 is configured to execute the computer program in the memory 103, so as to implement the functions defined by the computer program, for example, the application processor 101 executes the operating system 103a to implement various functions of the operating system on the terminal device 100. The memory 103 also stores other data besides the computer program, such as data generated during the operation of the operating system 103a and the application 103b, for example, the system software upgrade package involved in the embodiment of the present application. The memory 103 is a non-volatile storage medium, generally including internal memory and external memory. The internal memory includes but is not limited to random access memory (Random Access Memory, RAM), read-only memory (Read-Only Memory, ROM), or cache (cache), etc. The external memory includes but is not limited to flash memory, hard disk, optical disk, universal serial bus (universal serial bus, USB) disk, etc. The computer program is usually stored in the external memory, and the processor loads the program from the external memory to the internal memory before executing the computer program.
[0093] The memory 103 may be independent and connected to the application processor 101 via a bus; the memory 103 may also be integrated with the application processor 101 into a chip subsystem.
[0094] MCU 102 is a coprocessor for acquiring and processing data from sensor 108. The processing power and power consumption of MCU 102 are less than those of application processor 101, but it has the feature of "always on". It can continuously collect and process sensor data when application processor 101 is in sleep mode, and ensure the normal operation of the sensor with extremely low power consumption. In one embodiment, MCU 103 can be a sensor hub chip. Sensor 108 can include a light sensor and a motion sensor. Specifically, the light sensor can include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of display 110a according to the brightness of the ambient light, and the proximity sensor can turn off the power of the display screen when the mobile phone 100 moves to the ear. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary; the sensor 108 can also include other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc., which will not be repeated here. The MCU 102 and the sensor 108 may be integrated into the same chip, or may be separate components connected via a bus.
[0095] Modem 104 and radio frequency module 105 constitute the communication subsystem of mobile phone 100, which is used to implement the main functions of wireless communication standard protocols such as 3GPP and ETSI. Among them, modem 104 is used for encoding and decoding, modulation and demodulation of signals, equalization, etc. Radio frequency module 105 is used for receiving and sending wireless signals, and radio frequency module 105 includes but is not limited to antenna, at least one amplifier, coupler, duplexer, etc. Radio frequency module 105 cooperates with modem 104 to realize wireless communication function. Modem 104 can be used as a separate chip, or it can be formed into a system-level chip or integrated circuit with other chips or circuits. These chips or integrated circuits can be applied to all terminal devices that realize wireless communication functions, including: mobile phones, computers, notebooks, tablets, routers, wearable devices, cars, home appliances, etc.
[0096] The mobile phone 100 can also use a Wi-Fi module 106, a Bluetooth module 107, etc. for wireless communication. The Wi-Fi module 106 is used to provide the mobile phone 100 with network access that complies with Wi-Fi related standard protocols. The mobile phone 100 can access a Wi-Fi access point through the Wi-Fi module 106 to access the Internet. In some other embodiments, the Wi-Fi module 106 can also be used as a Wi-Fi wireless access point to provide Wi-Fi network access for other terminal devices. The Bluetooth module 107 is used to implement short-range communication between the mobile phone 100 and other terminal devices (such as mobile phones, smart watches, etc.). The Wi-Fi module 106 in the embodiment of the present application can be an integrated circuit or a Wi-Fi chip, etc., and the Bluetooth module 107 can be an integrated circuit or a Bluetooth chip, etc.
[0097] The positioning module 109 is used to determine the geographical location of the terminal device 100. The Wi-Fi module 106, the Bluetooth module 107 and the positioning module 198 can be separate chips or integrated circuits, or can be integrated together.
[0098] The input / output device 110 includes but is not limited to: a display 110 a , a touch screen 110 b , and an audio circuit 110 c and the like.
[0099] The display (also called display screen) 110a is used to display information input by the user or information presented to the user. The touch screen 110b may be overlaid on the display 110a. When the touch screen 110b detects a touch event, it is transmitted to the application processor 101 to determine the type of the touch event. Subsequently, the application processor 101 may provide corresponding visual output on the display 110a according to the type of the touch event.
[0100] Furthermore, the operating system 103a installed in the mobile phone 100 can be Or other operating systems, the embodiments of the present application do not impose any limitations on this.
[0101] Combined with the above Figure 2 The application scenario schematic diagram shown below introduces the specific implementation plan of this application:
[0102] Specifically, in this application, Figure 1The application scenario in which the terminal device cluster belongs to enterprise A is explained as an example. This application sets a management device in enterprise A, and the management device can obtain the version information on the OTA server, that is, the version information of the system software upgrade package. In this application, the management device can authenticate and authorize the version information of each system software upgrade package on the OTA server to manage whether one or more terminal devices within the enterprise can be upgraded based on the system software upgrade package on the OTA server, and the management device can manage and control OTA upgrades without downloading the system software upgrade package. In addition, the management device in the present application can be any terminal device such as a mobile phone or a tablet that can execute the method described in this application, thereby effectively simplifying the system layout and providing an OTA system software upgrade control method with a simple implementation method.
[0103] Specifically, in this application, the management device can realize the management and control of the system software upgrade of each terminal device in the enterprise based on different management methods, specifically:
[0104] In one possible implementation, after the management device obtains the version information of each system software upgrade package on the OTA server, it can mark each version information to indicate whether each terminal device within the enterprise is allowed to upgrade a certain system software version, refer to scenario one.
[0105] In one possible implementation, after the management device obtains the version information of each system software upgrade package on the OTA server, it can only record the version information of the successful authentication. That is, the management device only records the version information of the upgrade package that allows one or more terminal devices within the enterprise to perform system upgrades, refer to scenario two.
[0106] It should be noted that the version information of the system software upgrade package involved in this application can be used to indicate the system software version, or can be called the version of the system software upgrade package, or can also be called the system version. This application does not make any limitation.
[0107] Several specific embodiments are used below to explain in detail the technical solution of the above method embodiment.
[0108] Scene 1
[0109] Combination Figure 1 and Figure 2 ,like Figure 3 FIG. 1 is a flow chart of the OTA system software upgrade control method in an embodiment of the present application. Figure 3 middle:
[0110] Step 101: Set a management device and members of a management group to which the management device belongs.
[0111] Optionally, in the present application, the management device and the terminal device may pre-install an upgrade control tool, or may be an application package (APK), which includes an upgrade control program. When the upgrade program instructions are run by the managed device or the terminal device, the management device or the terminal device can execute the OTA upgrade method described in the present application.
[0112] Optionally, in the present application, a management device may be set up first, and multiple terminal devices may be bound to the management device to form a management group. Optionally, a management group may be established first, and a terminal device may be selected as a management device in the management group.
[0113] Optionally, the management device in the present application can be a mobile phone, tablet, computer and other devices. The management device can be specified by the user, and the terminal device designated as the management device can send its own identification information to the OTA server, and after receiving the response message from the OTA server, determine that the administrator identity of the terminal device has taken effect, that is, the terminal device can be used as a management device to manage the system software upgrades of the members (i.e., terminal devices) in its management group. Optionally, the identification information can be the serial number (SN) of the electronic device. The identification information can also be the international mobile equipment identification number (IEMI) of the electronic device, or other identification of the electronic device, such as the media access control (MAC) address.
[0114] Subsequently, the terminal device can be bound to the management device, which can also be understood as adding the terminal device (non-management device) to the management group to which the management device belongs. Exemplarily, each terminal device sends its identification information (such as SN number) to the management device. If a corresponding message returned by the management device is received, it is determined that the binding is successful, that is, it has successfully joined the management group. Optionally, the management device can store the received identification information locally to record the identities of the group members it can manage. It should be noted that before sending the identification information, each terminal device has pre-acquired the identification information and / or address information of the management device. The specific acquisition method can be a management device broadcast, or it can be manually added, which is not limited in this application. Optionally, a new terminal device can also be added to the management group in the above manner.
[0115] For example, in order to facilitate the work of enterprise employees, the enterprise may purchase multiple mobile devices in bulk for use by enterprise employees. In order to ensure the information security of enterprise employees when using these mobile devices to access enterprise intranet resources, these mobile devices need to be uniformly managed and controlled. When the enterprise purchases these mobile devices, the equipment manufacturer (such as the equipment manufacturer or the equipment sales manufacturer) can grant the authorized login account information and the device information list bound to the authorized login account information to the enterprise's IT administrator. Among them, the device information list bound to the authorized login account information includes the identifiers of the mobile devices purchased in bulk by the enterprise. The management device can only manage and control the terminal devices corresponding to the identifiers contained in the device information list bound to the authorized login account information and upgrade the terminal device system.
[0116] After the enterprise's IT administrator obtains the authorized login account information and the device information list bound to the authorized login account information, the above-mentioned list of devices to be controlled can be obtained according to the device information list. The list of devices to be controlled can include all identifiers in the device information list, or some identifiers in the device information list.
[0117] Step 102: The management device obtains version information from the OTA server and marks the version information.
[0118] Specifically, in the present application, the management device may obtain version information on the OTA server, and the version information includes but is not limited to: the name and version number of the system software upgrade package on the OTA server.
[0119] Exemplarily, the management device may periodically scan the OTA server to obtain whether there is an updated system software upgrade package on the OTA server, wherein the updated system software upgrade package refers to the version information of the system software upgrade package that is not stored in the management device. In one example, if the management device detects that there is an updated system software upgrade package on the OTA server, the management device obtains the version information of the system software upgrade package.
[0120] In the present application, after the management device obtains the version information, it can mark the version information, wherein the mark can also be understood as the authorization information described in the present application, and the mark includes: available or unavailable. Among them, the version information marked as available means that one or more terminal devices among the terminal devices managed by the management device can perform a system upgrade based on the upgrade package of this version. Conversely, the version information marked as unavailable means that one or more terminal devices among the terminal devices managed by the management device cannot use the upgrade package for system upgrade. It should be noted that the form of the mark can be set based on actual needs, for example: marked as "OK" means available, and marked as "NG" means unavailable, which is not limited in this application.
[0121] In one possible implementation, the management device may mark the version information based on a pre-set marking strategy. Optionally, the marking strategy may include, but is not limited to: functional strategy, interface strategy, etc. Among them, the functional strategy means that the management device can determine whether a new system software upgrade package is available based on the functional strategy. For example, the enterprise software in the terminal device needs to enable function A (such as a map function). If function A is disabled in the new system software upgrade package on the OTA server, the terminal device can determine that the new system software upgrade package is unavailable based on the functional strategy. The interface strategy is similar, that is, the terminal device can determine whether the new system software upgrade package is available based on the setting of the interface in the interface strategy.
[0122] In a possible implementation, the management device may receive an instruction triggered by an operator, and generate a mark corresponding to the version information based on the instruction. For example, the operator may determine whether the terminal device can be upgraded based on the new system software upgrade package based on the compatibility of the new system software upgrade package with the enterprise software in the terminal device. If it is determined that the upgrade is not possible, the management device may be instructed to mark the version information of the upgrade package as unavailable. If it is determined that the upgrade is possible, the management device may be instructed to mark the version information of the upgrade package as available.
[0123] Step 103: The terminal device obtains version information from the OTA server, and obtains a tag corresponding to the version information from the management device.
[0124] Specifically, in the present application, the terminal device can obtain the version information of the target system software upgrade package on the OTA server whose version is higher than the current system software version of the terminal device by accessing OTA. It should be noted that the current system software version of the terminal device refers to the system software version that has been downloaded, or downloaded and installed. That is to say, in the present application, the terminal device can periodically detect whether there is a system software upgrade package on the OTA server that the terminal device has not upgraded and stored. Exemplarily, the terminal device can obtain the version information corresponding to the system software upgrade package on the OTA server, such as the version number, by periodically scanning the OTA server. The terminal device can compare the latest version information of the OTA server with the version information of the current system software of the terminal device to determine whether there is a system software upgrade package on the OTA that the terminal device can use for upgrading. The above-mentioned detection method is only an exemplary example. The specific detection details or other detection methods can refer to the existing technology, which will not be repeated in this application.
[0125] Optionally, when the terminal device detects that there is an upgrade package on the OTA server that the terminal device has not upgraded based on the system software upgrade package and has not stored, the terminal device obtains version information of the upgrade package from the OTA server.
[0126] In a possible implementation, the terminal may send a query request message to the management device, which may carry the version information of the system software upgrade package to be queried (i.e., the target system software upgrade package described in this application), and is used to indicate the authorization status corresponding to the version information of the target system software upgrade package, i.e., the tag of the version information of the target system software upgrade package. In response to the message, the management device sends a query response message to the terminal, and the response message may carry the version information of the target system software upgrade package and the corresponding tag.
[0127] In another possible implementation, the terminal may send a query request message to the management device, which is used to query the tags corresponding to the version information of each system software upgrade package on the management device. In response to the message, the management device sends a query response message to the terminal, which carries the tags corresponding to the version information of each system software upgrade package stored on the management device.
[0128] Optionally, in this application, the APK in the terminal device can be started after obtaining the version information on the OTA server, that is, the APK is used to request the management device for a version information tag and perform two-factor verification. Optionally, the APK in the terminal device can also be started periodically, that is, all steps performed by the terminal device in this application are controlled by the APK, including: joining the management group (i.e. binding with the management device), scanning the OTA server, and two-factor verification related steps.
[0129] Step 104: The terminal device determines whether it is upgradeable based on the mark corresponding to the version information.
[0130] Specifically, in the present application, after the terminal device obtains the version information and the corresponding mark from the management device, it can perform two-factor verification, that is, determine whether the version information returned by the management device is consistent with the version information obtained by the terminal device from the OTA server, and under the condition of consistency, determine whether the mark corresponding to the version information indicates that the terminal device is allowed to upgrade the system software based on the system software upgrade package corresponding to the version information.
[0131] In one possible implementation, as described in step 103, if the management device returns a tag corresponding to the version information of each system software upgrade package, the terminal device can match the version information obtained from the OTA server with the version information obtained from the management device, and obtain the tag corresponding to the successfully matched version information.
[0132] In another possible implementation, as described in step 103, if the management device returns a mark corresponding to the version information requested by the terminal (i.e., the version information of the target system software upgrade package), the terminal can compare the version information obtained from the OTA server with the version information obtained from the management device. If they are consistent, subsequent operations are performed.
[0133] In one example, if the mark corresponding to the version information is available, the terminal device can determine that the system software can be upgraded based on the system software upgrade package corresponding to the version information. The terminal device can download the system software upgrade package from the OTA server, and upgrade the system software based on the system software upgrade package after obtaining permission (for example, the user clicks the confirm upgrade button). In another example, if the mark corresponding to the version information is unavailable, the APK in the terminal will interrupt the upgrade process, and the upgrade process ends. Optionally, the terminal device may re-execute steps 103 and 104 in the next scanning cycle. If the mark corresponding to the version information is modified to available, the terminal device is upgraded based on the system software upgrade package corresponding to the version information.
[0134] In a possible implementation, the terminal device detects multiple system software upgrade packages available for upgrade on the OTA server, and the terminal device can obtain version information corresponding to the multiple upgrade packages from the OTA server. Accordingly, in step 103, the terminal device can obtain tags corresponding to the multiple version information from the management device. And in step 104, the terminal device can determine whether multiple versions are available for upgrade based on the tags corresponding to the multiple version information.
[0135] In a possible implementation, in step 102, after the management device obtains the new version information, it may mark the new version information as unavailable by default. Optionally, if the management device receives an instruction or determines that the version is available, it changes the default value (i.e., marked as unavailable) to available.
[0136] In one possible implementation, in step 103, due to the different scanning cycles of the terminal device and the management device, it may happen that the terminal device scans that there is an updated system software upgrade package on the OTA server, but the management device has not yet scanned the OTA and has not obtained the version information of the updated system software upgrade package. In this case, after the terminal device obtains the version information from the OTA server, it detects that the management device has the version information and its corresponding mark, then the terminal device can detect again whether the management device has the version information after a predetermined time interval (which can be set based on actual needs).
[0137] In one possible implementation, the management device may manage the upgrade of different system software. For example: OTA server A stores system software A and its system software upgrade package, and OTA server B stores system software B and its system software upgrade package. In step 103, the management device may communicate with OTA server A and OTA server B respectively to obtain the version information of system software A and the version information of system software B, and mark the version information of each system software respectively. Optionally, the management device may obtain the type of system software of each terminal device while obtaining the identification information of the terminal devices in the management group, and group the terminal devices based on the type of system software. In step 103, the management device may authorize (i.e. mark) the version of the system software upgrade package corresponding to each group.
[0138] In a possible implementation, the management device can group members based on user instructions, and after obtaining updated version information, the management device can authorize the version of the system software upgrade package corresponding to each group. For example, the management device obtains version 1.0, and for the terminal devices in group 1, version 1.0 is marked as available, and for the terminal devices in group 2, version 1.0 is marked as unavailable, thereby improving the flexibility of system software upgrade control.
[0139] exist Figure 3 Based on the embodiment shown, Figure 4 As shown, it exemplarily shows a flow chart of an OTA system software upgrade control method. Figure 4 middle:
[0140] Step 201, setting management equipment.
[0141] For example, Figure 4 As shown, mobile phone 1 (hereinafter referred to as management device) sends the SN number to the OTA server, and the OTA server stores the SN number of the management device locally and sends a response message to the management device. If the management device receives the response message from the OTA server, it is determined that the management device has been added to the communication network as an administrator.
[0142] Step 202: The terminal devices (mobile phone 2 and mobile phone 3) are bound to the management device.
[0143] For example, after a corporate customer purchases a batch of mobile phones (for example, including mobile phone 2 and mobile phone 3), mobile phone 2 and mobile phone 3 can obtain the address information and / or identification information such as SN number of the management device (mobile phone 1). Based on the address information and / or identification information, mobile phone 2 and mobile phone 3 send their respective identification information (taking SN number as an example) to the management device.
[0144] Optionally, in this embodiment, the mobile phones and management devices purchased by enterprise customers are pre-installed with APK by the manufacturer. Optionally, the enterprise can also purchase APK separately (including APK corresponding to the management device and APK corresponding to the terminal device), and install the APK corresponding to the management device on the electronic device designated as the management device, and install the APK corresponding to the terminal device on the mobile phones of employees who need to be managed in the enterprise. This application is not limited.
[0145] It should be noted that in order to distinguish between terminal devices used by enterprise employees and terminal devices used by ordinary consumers, the APK and administrator device permissions and the addition of management group members described in this application need to be strictly controlled (the control method is not limited) to prevent ordinary consumers' mobile phones from being passively added to the management group without their knowledge. Exemplary control methods can be: even if ordinary devices (referring to mobile phones used by non-enterprise personnel) obtain the upgrade control tool, the condition for its successful installation of the upgrade control tool requires confirmation by the enterprise administrator.
[0146] The management device (specifically, the APK in the management device) receives the SN numbers sent by mobile phone 2 and mobile phone 3, records the SN numbers locally, and returns a response message to mobile phone 2 and mobile phone 3. After receiving the response message, mobile phone 2 and mobile phone 3 determine that they have been successfully bound to the management device, that is, they have successfully joined the management group to which the management device belongs.
[0147] Step 203: The management device obtains version information from the OTA server.
[0148] Specifically, the management device may periodically scan the OTA server to detect whether there is an updated system software upgrade package on the OTA server, that is, a system software upgrade package corresponding to the version information not stored in the management device. The specific scanning method can refer to the existing technology, and this application will not elaborate on it.
[0149] For example, Figure 5 As shown, the versions of the system software upgrade package currently stored on the OTA server are sorted from low to high, including version 1.0, version 2.0, and version 3.0. The management device can detect that the latest version of the system software upgrade package on the current OTA server is version 3.0 by scanning the OTA server. The management device detects whether the version information corresponding to the version has been obtained. If the version information is not cached locally, the version information corresponding to the version (i.e., version number) is obtained from the OTA server. In this embodiment, the management device detects that no information corresponding to version 3.0 is stored locally, and the management device obtains the version information (i.e., version 3.0) of the system software upgrade package from the OTA server.
[0150] Step 204: The management device marks the version information.
[0151] Still refer to Figure 4 Optionally, after acquiring the version information, the management device may authorize the version information based on user instructions, and store the authorization result and the version information locally in correspondence.
[0152] For example, Figure 5 As shown, the management device may mark version 3.0 as unavailable based on a user instruction, wherein both version 1.0 and version 2.0 have been marked as available.
[0153] Step 205: The terminal devices (mobile phone 2 and mobile phone 3) obtain version information from the OTA server.
[0154] Specifically, mobile phone 2 and mobile phone 3 may also periodically scan the OTA server to detect whether the OTA server has a system software upgrade package that mobile phone 2 and / or mobile phone 3 has not upgraded and downloaded.
[0155] For example, refer to Figure 5 , the following is explained by taking the current system software version of mobile phone 2 as 2.0 and the current system software version of mobile phone 3 as 1.0 as an example.
[0156] Mobile phone 2 scans the OTA server and determines that the upgrade package versions currently available on the OTA server include version 1.0, version 2.0, and version 3.0. Mobile phone 2 compares the current version available on the OTA server with the system software upgrade package version of mobile phone 2 and confirms that the OTA server has a system software upgrade package available for mobile phone 2 to upgrade, namely version 3.0. Mobile phone 2 can further determine that if the upgrade package is not stored locally, it will obtain the version information of the upgrade package from the OTA server, namely the version number is 3.0.
[0157] Mobile phone 3 scans the OTA server, determines that the upgradeable versions are version 2.0 and version 3.0, and obtains version information from the OTA server. The specific details are similar to those of mobile phone 2 and are not repeated here.
[0158] Step 206: The terminal devices (mobile phone 2 and mobile phone 3) obtain the tag corresponding to the version information from the management device.
[0159] Specifically, the terminal device (specifically the APK in the terminal device) can obtain the version information corresponding to the upgrade package that needs to be upgraded from the management device, that is, the mark corresponding to the version information obtained from the OTA server, to determine whether the terminal device is allowed to upgrade based on the upgrade package.
[0160] For example, mobile phone 2 may send a query request to the management device, and the query request carries version information, namely version 3.0. After receiving the version information, the management device matches the version information with one or more local version information, and obtains the tag corresponding to the successfully matched version information. Figure 4 As shown, the management device finds that the mark corresponding to version 3.0 is unavailable, so the management device sends a query response to mobile phone 2, and the query response carries version information (ie, version 3.0) and the corresponding mark (ie, unavailable).
[0161] For example, mobile phone 3 may send a query request to the management device, and the query request carries version information, including version 2.0 and version 3.0. After the query, the management device sends a query response to mobile phone 3, and the message carries version 2.0 and its mark (i.e., available) and version 3.0 and its mark (i.e., unavailable).
[0162] Step 207: The terminal device (mobile phone 2 and mobile phone 3) determines whether an upgrade is possible based on the mark corresponding to the version information.
[0163] Exemplarily, after receiving the query response from the management device, mobile phone 2 obtains the mark corresponding to version information 3.0 as unavailable, and the process ends. Optionally, mobile phone 2 can repeat steps 203-207 again in the next scanning cycle. If the mark of version 3.0 in the management device is changed to available, mobile phone 2 determines that it can be upgraded.
[0164] Exemplarily, based on the version information and its corresponding mark obtained from the management device, mobile phone 3 can determine that mobile phone 3 can be upgraded based on the upgrade package corresponding to version 2.0, but cannot be upgraded based on the upgrade package corresponding to version 3.0. The specific details are similar to those of mobile phone 2 and are not repeated here.
[0165] Optionally, after the terminal device determines that the upgrade can be performed, step 208 is executed, otherwise, steps 203-207 are repeated in the next scanning cycle.
[0166] Step 208: Mobile phone 3 upgrades the system software.
[0167] For example, after the mobile phone 3 determines that it can be upgraded based on the upgrade package corresponding to version 2.0, it can download the system software upgrade package corresponding to version 2.0 from the OTA server. After the download is complete, the mobile phone 3 can prompt the user that there is currently an upgradeable version, and after the user allows, the system software is upgraded based on the upgrade package.
[0168] exist Figure 3 Based on the embodiment shown, Figure 6 As shown, it exemplarily shows a flow chart of an OTA system software upgrade control method, specifically:
[0169] As mentioned above, enterprises can purchase terminal devices in batches and manage them in groups according to model, department or employee category, and manage the system software version upgrades of each group separately. For example: an enterprise purchases 1,000 Huawei mobile phones and Huawei mobile phones as management devices. The management devices and 1,000 Huawei mobile phones are pre-installed with the upgrade control APK.
[0170] Exemplarily, the 1,000 Huawei mobile phones include four device models, namely: HUAWEI Mate 20Pro, HUAWEI Mate 20, HUAWEI Mate 10 and HUAWEI nova 4.
[0171] Step 301, setting management equipment.
[0172] Step 302: The terminal devices (mobile phone 2, mobile phone 3 and mobile phone 4) are bound to the management device.
[0173] Exemplarily, in this embodiment, mobile phones are grouped according to their respective types. Specifically, 1,000 Huawei mobile phones can send their respective identification information and corresponding mobile phone models to the management device. The management device can divide the 1,000 mobile phones into four groups according to the mobile phone models of the mobile phones, including: HUAWEI Mate 20Pro, HUAWEI Mate 20, HUAWEI Mate 10 and HUAWEI nova 4. Among them, a model represents the group name of a group. After the grouping is successful, the management device sends a response message to each terminal device to indicate that the binding is successful.
[0174] The following takes mobile phone 1 as a management device and mobile phones 2, 3 and 4 as terminal devices as an example to describe in detail the system software upgrade control in a group scenario.
[0175] Exemplarily, the mobile phone models of mobile phone 2 and mobile phone 3 are HUAWEI Mate 20Pro, and the mobile phone model of mobile phone 4 is HUAWEI Mate 10. Specifically, mobile phone 2, mobile phone 3 and mobile phone 4 respectively send their respective identification information (such as SN number) to the management device to bind with the management device. The specific binding process can be referred to above and will not be repeated here.
[0176] Exemplarily, the management device divides mobile phone 2 and mobile phone 3 into the HUAWEI Mate 20Pro group based on user instructions (i.e., grouping by mobile phone model). For the sake of convenience, the HUAWEI Mate 20Pro group is referred to as group 1 below, and mobile phone 4 is divided into the HUAWEI Mate 10 group. For the sake of convenience, the HUAWEI Mate 10 group is referred to as group 2 below. It should be noted that the upgrade control process for other mobile phones and other groups (such as the HUAWEI Mate20 group and the HUAWEI nova 4 group) of the 1000 mobile phones is the same as the steps in this embodiment, and will not be repeated in this embodiment.
[0177] Optionally, the management device may generate a group list, each group corresponding to its own list, the list including the SN number of each mobile phone in the group.
[0178] Step 303: The management device obtains version information from the OTA server.
[0179] Step 304: The management device marks the version information.
[0180] Optionally, in this embodiment, the management device may authorize the system software version for each group separately. For example, the management device may authorize version 3.0 to group 1 as available, that is, mark version 3.0 corresponding to group 1 as available, and authorize version 3.0 to group 2 as unavailable, that is, mark version 3.0 corresponding to group 1 as unavailable, refer to Figure 7 .
[0181] Step 305: The terminal devices (mobile phone 2, mobile phone 3 and mobile phone 4) obtain version information from the OTA server.
[0182] For example, refer to Figure 7 , take the current system software version of mobile phone 2 as 2.0, the current system software version of mobile phone 3 as 1.0, and the current system software version of mobile phone 4 as 2.0 as an example for explanation. Correspondingly, mobile phone 2 obtains version information (version 3.0) from the OTA server, mobile phone 3 obtains version information (version 2.0 and version 3.0) from the OTA server, and mobile phone 4 obtains version information (version 3.0) from the OTA server. The specific acquisition method can refer to the above embodiment, which will not be repeated here.
[0183] Step 306: The terminal devices (mobile phone 2, mobile phone 3 and mobile phone 4) obtain the mark corresponding to the version information from the management device.
[0184] Exemplarily, mobile phone 2 sends a query request to the management device to query the mark of version 3.0. Mobile phone 3 sends a query request to the management device to query the marks of version 2.0 and version 3.0. Mobile phone 4 sends a query request to the management device to query the mark of version 3.0.
[0185] Based on the SN number of mobile phone 2, the management device finds that mobile phone 2 belongs to group 1. The management device queries the system software version authorization of group 1 based on group 1, and finds that the mark corresponding to version 3.0 of group 1 is available. The management device sends version information 3.0 and its corresponding mark (available) to mobile phone 2. Similar to mobile phone 2, mobile phone 3 obtains the mark corresponding to version 2.0 as available and the mark corresponding to version 3.0 as available from the management device. Mobile phone 4 obtains the mark corresponding to version 3.0 as unavailable from the management device.
[0186] Step 307: The terminal device (mobile phone 2, mobile phone 3 and mobile phone 4) determines whether an upgrade is possible based on the mark corresponding to the version information.
[0187] Exemplarily, mobile phone 2 determines that it can be upgraded to version 3.0, mobile phone 3 determines that it can be upgraded to version 3.0, and mobile phone 4 determines that it cannot be upgraded to version 3.0. The specific details refer to the above embodiment and are not repeated here.
[0188] Step 308: Mobile phone 2 and mobile phone 3 upgrade the system software.
[0189] Scene 2
[0190] Combination Figure 1 and Figure 2 ,like Figure 8 FIG. 1 is a flow chart of an OTA system software upgrade control method in an embodiment of the present application. Figure 8 middle:
[0191] Step 401: Set a management device and members of a management group to which the management device belongs.
[0192] The specific steps are the same as those in scenario 1 and will not be repeated here.
[0193] Step 402: The management device obtains version information from the OTA server and stores the version information of the system software upgrade package that allows the terminal device to be upgraded.
[0194] Specifically, in this embodiment, after the management device obtains the version information of each system software upgrade package on the OTA server, it can store only the version information of the system software upgrade package that allows the terminal device to perform according to the user's instructions.
[0195] Optionally, for a group management scenario, the management device may record, in a group list corresponding to each group, version information of an upgrade package that can be used for system upgrades of terminal devices in the group.
[0196] Step 403: The terminal device obtains version information from the OTA server, and obtains authorization information corresponding to the version information from the management device.
[0197] Specifically, after the terminal device obtains the version information of the target system software upgrade package from the OTA server, it can obtain the authorization information corresponding to the version information of the target system software upgrade package from the management device.
[0198] In a possible implementation, the terminal device sends a query request message to the management device, which may carry the version information of the system software upgrade package to be queried (i.e., the target system software upgrade package described in this application), and is used to indicate the authorization status corresponding to the version information of the target system software upgrade package. In response to the message, the management device queries locally whether the version information of the target system software upgrade package is stored. If so, the management device sends a query response message to the terminal, and the response message may carry the version information of the target system software upgrade package. If not, the management device may optionally send a query response message to the terminal device, and the message may not include any information, or may include information indicating that the version information of the target system software upgrade package is not authorized.
[0199] In another possible implementation, the terminal may send a query request message to the management device, which is used to query the authorization information of the version information of each system software upgrade package on the management device. In response to the message, the management device obtains the version information of the system software version that is allowed to be upgraded by the terminal device stored locally, and sends a query response message to the terminal, which carries the version information of the system software version that is allowed to be upgraded by the terminal device stored on the management device.
[0200] Step 404: The terminal device determines whether it is upgradeable based on the authorization information corresponding to the version information.
[0201] Specifically, in the present application, after the terminal device obtains the version information and the corresponding mark from the management device, it can perform two-factor authentication.
[0202] In one possible implementation, as described in step 103, if the management device returns the version information of each system software upgrade package stored on the management device that allows the terminal device to be upgraded, the terminal device can match the version information obtained from the OTA server with the version information obtained from the management device. If the match is successful, it is determined that the authorization information corresponding to the version information is available, that is, the terminal device is allowed to upgrade based on the system software upgrade package corresponding to the version information.
[0203] In another possible implementation, as described in step 103, if the management device returns the version information requested by the terminal (i.e., the version information of the target system software upgrade package), the terminal can compare the version information obtained from the OTA server with the version information obtained from the management device. If they are consistent, it is determined that the authorization information corresponding to the version information is available, that is, the terminal device is allowed to upgrade based on the system software upgrade package corresponding to the version information.
[0204] Optionally, in this application, if the terminal device determines that the system software can be upgraded based on the system software upgrade package corresponding to the version information, the terminal device can download the system software upgrade package from the OTA server, and upgrade the system software based on the system software upgrade package after obtaining permission (for example, the user clicks the confirm upgrade button). Optionally, if the terminal device determines that the authorization information corresponding to the version information is unavailable, that is, it is determined that the system software cannot be upgraded based on the system software upgrade package corresponding to the version information, the APK in the terminal will interrupt the upgrade process, that is, the upgrade process ends.
[0205] In a possible implementation, the verification step in the embodiment of the present application, that is, the step of determining whether the terminal device can be upgraded, can also be performed by the management device. Specifically, the management device can record the identification information of each terminal device, the type of system software, and the current system software version. Optionally, the management device obtains the version information of each system software upgrade package from the OTA server, and after marking the version information, it can determine whether each terminal device can be upgraded based on the system software upgrade package based on the marking result and the current system software version of each terminal device. For example: the management device records the SN number of mobile phone 2, the type of system software is system software A, and the current system software version of mobile phone 2 is version 2.0. The management device obtains the latest upgrade package version of system software A from the OTA server as version 3.0, and based on the user instruction, marks version 3.0 as available. The management device traverses the relevant information of each terminal device recorded locally, and determines that mobile phone 2 can be upgraded based on the system software upgrade package of version 3.0. The management device can then send an indication message to mobile phone 2 to indicate that mobile phone 2 can download the system software upgrade package with version number 3.0 from the OTA server.
[0206] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the interaction between various network elements. It can be understood that in order to realize the above functions, the management device and the terminal include hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed in this document, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0207] The embodiment of the present application can divide the functional modules of the management device and the terminal according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0208] Fig. 9 The following is a schematic diagram of the management device structure. Fig. 9 The management device 200 may include: a transceiver module 201 and a processing module 202, wherein the transceiver module 201 is used to receive a query request sent by a terminal device, and the query request is used to query the authorization information of the target system software upgrade package; the processing module 202 is used to obtain the authorization information corresponding to the target system software upgrade package from the local cache based on the query request; the authorization information includes available or unavailable, and the authorization information is available for indicating that the terminal device is allowed to perform system software upgrade based on the target system software upgrade package, and the authorization information is unavailable for indicating that the terminal device is not allowed to perform system software upgrade based on the target system software upgrade package; the transceiver module is also used to send authorization information to the terminal device.
[0209] Based on the above technical solution, the processing module 202 is also used to: after detecting that the version information of at least one system software upgrade package on the OTA server is not cached locally, obtain the version information of at least one system software upgrade package; determine whether to allow the terminal device to perform system software upgrade based on at least one system software upgrade package according to preset rules and / or user instructions; if the determination is yes, mark the version information of at least one system software upgrade package as available; if the determination is no, mark the version information of at least one system software upgrade package as unavailable.
[0210] Based on the above technical solution, the processing module 202 is also used to detect whether the terminal device belongs to the group managed by the management device; wherein, the processing module determines that the terminal device belongs to the group managed by the management device, then based on the query request, obtains the authorization information corresponding to the target system software upgrade package from the local cache.
[0211] Based on the above technical solution, the query request includes the version information of the target system software upgrade package, and the processing module 202 is further used to match the version information with at least one version information cached locally; and obtain the authorization information corresponding to the successfully matched version information.
[0212] Based on the above technical solution, the processing module 202 is also used to query the group to which the terminal device belongs; the query group corresponds to the authorization information of the target system software upgrade package, wherein the authorization information is available and is used to indicate that the management device allows one or more terminal devices in the group to perform system software upgrade based on the target system software upgrade package, and the authorization information is unavailable and is used to indicate that the management device does not allow one or more terminal devices in the group to perform system software upgrade based on the target system software upgrade package.
[0213] Fig.10 The following is a schematic diagram of the terminal structure. Fig.10 The terminal 300 includes an acquisition module 301, a transceiver module 302, and a processing module 303, wherein the acquisition module 301 is used to access the OTA server to obtain the version information of the target system software upgrade package on the OTA server whose version is higher than the current system software version of the terminal device; the transceiver module 302 is used to request the management device for authorization information corresponding to the version information of the target system software upgrade package; the processing module 303 is used to determine that the target system software upgrade package can be obtained from the OTA server in response to receiving the authorization information corresponding to the version information of the target system software upgrade package sent by the management device; the acquisition module is also used to obtain the target system software upgrade package from the OTA server; wherein the authorization information is used to indicate whether the terminal device is allowed to obtain the target system software upgrade package from the OTA server.
[0214] Based on the above technical solution, the processing module 303 is specifically used to: receive the authorization information corresponding to the version information of the target system software upgrade package sent by the management device; wherein, if the authorization information includes an available mark, it is determined that the authorization information corresponding to the version information of the target system software upgrade package is to allow the terminal device to obtain the target system software upgrade package from the OTA server.
[0215] Based on the above technical solution, the processing module 303 is specifically used to: receive the version information of at least one system software upgrade package sent by the management device and the authorization information corresponding to the version information of at least one system software upgrade package; match the version information of the target system software upgrade package with the version information of at least one system software upgrade package, and determine the authorization information corresponding to the version information of the successfully matched system software upgrade package; wherein, if the authorization information includes an available mark, it is determined that the authorization information corresponding to the version information of the target system software upgrade package is to allow the terminal device to obtain the target system software upgrade package from the OTA server.
[0216] Based on the above technical solution, the processing module 303 is specifically used for: the terminal device receives a response message sent by the management device; wherein, if the response message includes the version information of the target system software upgrade package, then the authorization information corresponding to the version information of the target system software upgrade package is determined to allow the terminal device to obtain the target system software upgrade package from the OTA server.
[0217] On the basis of the above technical solution, the transceiver module 302 is used to send a query request message to the management device, and the query request message includes the version information of the target system software upgrade package.
[0218] Based on the above technical solution, the processing module 303 is used to respond to the authorization information corresponding to the version information of the target system software upgrade package sent by the management device, and if the terminal device determines that the authorization information allows the terminal device to obtain the target system software upgrade package from the OTA server, it is determined that the target system software upgrade package can be obtained from the OTA server. The transceiver module 302 is used to obtain the target system software upgrade package from the OTA server;
[0219] The processing module 303 is also used to respond to the authorization information corresponding to the version information of the target system software upgrade package sent by the management device. If the terminal device determines that the authorization information does not allow the terminal device to obtain the target system software upgrade package from the OTA server, it is determined that the target system software upgrade package cannot be obtained from the OTA server, and the OTA upgrade process is determined to be ended.
[0220] On the basis of the above technical solution, the transceiver module 302 is further used to request the management device to join the group managed by the management device.
[0221] On the basis of the above technical solution, the transceiver module 302 is further used to send identification information of the terminal device to the management device; if a confirmation message sent by the management device is received, the terminal device determines that it has joined the group.
[0222] The following describes a device provided by an embodiment of the present application. Fig.11 As shown:
[0223] The device includes a processing module 401 and a communication module 402. Optionally, the device also includes a storage module 403. The processing module 401, the communication module 402 and the storage module 403 are connected via a communication bus.
[0224] The communication module 402 may be a device with transceiver functions, and is used to communicate with other network devices or communication networks.
[0225] The storage module 403 may include one or more memories, and the memory may be a device in one or more devices or circuits for storing programs or data.
[0226] The storage module 403 may exist independently and be connected to the processing module 401 via a communication bus. The storage module may also be integrated with the processing module 401.
[0227] The device 400 may be a terminal in the embodiment of the present application, such as terminal 1 or terminal 2. The schematic diagram of the terminal may be as follows: Figure 2 Optionally, the communication module 402 of the apparatus 400 may include an antenna and a transceiver of a terminal, and optionally, the communication module 402 may also include an output device and an input device.
[0228] The device 400 may be a chip in the terminal in the embodiment of the present application. The communication module 402 may be an input or output interface, a pin or a circuit, etc. Optionally, the storage module may store computer execution instructions of the method on the terminal side so that the processing module 401 executes the method on the terminal side in the above embodiment. The storage module 403 may be a register, a cache or a RAM, etc., and the storage module 403 may be integrated with the processing module 401; the storage module 403 may be a ROM or other type of static storage device that can store static information and instructions, and the storage module 403 may be independent of the processing module 401. Optionally, with the development of wireless communication technology, the transceiver may be integrated in the device 400.
[0229] When the device 400 is a terminal in an embodiment of the present application or a chip in a terminal, the device 400 can implement the method executed by the terminal in the above embodiment.
[0230] The apparatus 400 may be a management device in the embodiment of the present application. Optionally, the communication module 402 of the apparatus 400 may include an antenna and a transceiver of the management device, and the communication module 402 may also include a network interface of the management device.
[0231] The device 400 may be a chip in the management device in the embodiment of the present application. The communication module 402 may be an input or output interface, a pin or a circuit, etc. Optionally, the storage module may store computer execution instructions of the method on the management device side, so that the processing module 401 executes the method on the management device side in the above embodiment. The storage module 403 may be a register, a cache or a RAM, etc., and the storage module 403 may be integrated with the processing module 401; the storage module 403 may be a ROM or other types of static storage devices that can store static information and instructions, and the storage module 403 may be independent of the processing module 401. Optionally, with the development of wireless communication technology, the transceiver may be integrated in the device 400.
[0232] When the apparatus 400 is a management device in an embodiment of the present application or a chip in a management device, the method executed by the management device in the above embodiment can be implemented.
[0233] The present application embodiment also provides a computer-readable storage medium. The method described in the above embodiment can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the function can be stored as one or more instructions or codes on a computer-readable medium or transmitted on a computer-readable medium. Computer-readable media may include computer storage media and communication media, and may also include any medium that can transfer a computer program from one place to another. The storage medium may be any available medium that can be accessed by a computer.
[0234] As an optional design, the computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage devices, or any other medium that can be used to carry or store the required program code in the form of instructions or data structures, and can be accessed by the computer. Moreover, any connection is appropriately referred to as a computer-readable medium. For example, if the software is transmitted from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave), the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave are included in the definition of the medium. Disks and optical disks as used herein include compact disks (CDs), laser disks, optical disks, digital versatile disks (DVDs), floppy disks and blue-ray disks, where disks usually reproduce data magnetically, while optical disks reproduce data optically using lasers. The combination of the above should also be included in the scope of computer-readable media.
[0235] The embodiments of the present application also provide a computer program product. The methods described in the above embodiments can be implemented in whole or in part by software, hardware, firmware or any combination thereof. If implemented in software, they can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the above computer program instructions are loaded and executed on a computer, the process or function described in the above method embodiment is generated in whole or in part. The above computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device or other programmable device.
[0236] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A method for controlling over-the-air OTA system software upgrade, characterized in that: include: The managed terminal device accesses the OTA server to obtain version information of a target system software upgrade package on the OTA server whose version is higher than the current system software version of the managed terminal device; The managed terminal device requests the management terminal device for authorization information corresponding to the version information of the target system software upgrade package; The managed terminal device determines that the target system software upgrade package can be obtained from the OTA server in response to receiving the authorization information corresponding to the version information of the target system software upgrade package sent by the management terminal device, and then obtains the target system software upgrade package from the OTA server; wherein the authorization information is used to indicate whether the managed terminal device is allowed to obtain the target system software upgrade package from the OTA server; In response to receiving the feedback information sent by the management terminal device, the managed terminal device requests the management terminal device for authorization information corresponding to the version information of the target system software upgrade package after a predetermined period of time, wherein the feedback information is used to indicate that the version information of the target system software upgrade package does not exist on the management terminal device.
2. The method according to claim 1, characterized in that The managed terminal device determines, in response to receiving the authorization information corresponding to the version information of the target system software upgrade package sent by the management terminal device, that the target system software upgrade package can be obtained from the OTA server, including: The managed terminal device receives the authorization information corresponding to the version information of the target system software upgrade package sent by the management terminal device; Among them, if the authorization information includes an available mark, it is determined that the authorization information corresponding to the version information of the target system software upgrade package is to allow the managed terminal device to obtain the target system software upgrade package from the OTA server.
3. The method according to claim 1, characterized in that The managed terminal device determines, in response to receiving the authorization information corresponding to the version information of the target system software upgrade package sent by the management terminal device, that the target system software upgrade package can be obtained from the OTA server, including: The managed terminal device receives version information of at least one system software upgrade package sent by the management terminal device and authorization information corresponding to the version information of the at least one system software upgrade package; The managed terminal device matches the version information of the target system software upgrade package with the version information of the at least one system software upgrade package, and determines the authorization information corresponding to the version information of the successfully matched system software upgrade package; Among them, if the authorization information includes an available mark, it is determined that the authorization information corresponding to the version information of the target system software upgrade package is to allow the managed terminal device to obtain the target system software upgrade package from the OTA server.
4. The method according to claim 1, characterized in that: The managed terminal device determines, in response to receiving the authorization information corresponding to the version information of the target system software upgrade package sent by the management terminal device, that the target system software upgrade package can be obtained from the OTA server, including: The managed terminal device receives a response message sent by the management terminal device; Among them, if the response message includes the version information of the target system software upgrade package, it is determined that the authorization information corresponding to the version information of the target system software upgrade package is to allow the managed terminal device to obtain the target system software upgrade package from the OTA server.
5. The method according to any one of claims 2 to 4, characterized in that: The managed terminal device requests the management terminal device for authorization information corresponding to the version information of the target system software upgrade package, including: The managed terminal device sends a query request message to the management terminal device, wherein the query request message includes version information of the target system software upgrade package.
6. The method according to any one of claims 1 to 4, characterized in that: The managed terminal device determines, in response to receiving the authorization information corresponding to the version information of the target system software upgrade package sent by the management terminal device, that the target system software upgrade package can be obtained from the OTA server, and then obtains the target system software upgrade package from the OTA server, including: In response to receiving the authorization information corresponding to the version information of the target system software upgrade package sent by the management terminal device, if the managed terminal device determines that the authorization information allows the managed terminal device to obtain the target system software upgrade package from the OTA server, it is determined that the target system software upgrade package can be obtained from the OTA server, and the target system software upgrade package is obtained from the OTA server; The managed terminal device responds to receiving the authorization information corresponding to the version information of the target system software upgrade package sent by the management terminal device. If the managed terminal device determines that the authorization information does not allow the managed terminal device to obtain the target system software upgrade package from the OTA server, it determines that the target system software upgrade package cannot be obtained from the OTA server, and determines that the OTA upgrade process is ended.
7. The method according to any one of claims 1 to 4, characterized in that: Before the managed terminal device requests the management terminal device for the authorization information corresponding to the version information of the target system software upgrade package, the method further includes: The managed terminal device requests the managing terminal device to join the group managed by the managing terminal device.
8. The method according to claim 7, characterized in that The managed terminal device requests the managing terminal device to join the group managed by the managing terminal device, including: The managed terminal device sends identification information of the managed terminal device to the management terminal device; If the confirmation message sent by the management terminal device is received, the managed terminal device determines that it has joined the group.
9. A managed terminal device, characterized in that: include: a memory and a processor, the memory and the processor being coupled; The memory stores program instructions, and when the program instructions are executed by the processor, the managed terminal device executes the following steps: Access the OTA server to obtain version information of a target system software upgrade package on the OTA server whose version is higher than the current system software version of the managed terminal device; Requesting authorization information corresponding to the version information of the target system software upgrade package from the management terminal device; In response to receiving the authorization information corresponding to the version information of the target system software upgrade package sent by the management terminal device, it is determined that the target system software upgrade package can be obtained from the OTA server, then obtaining the target system software upgrade package from the OTA server; wherein the authorization information is used to indicate whether the managed terminal device is allowed to obtain the target system software upgrade package from the OTA server; In response to receiving feedback information sent by the management terminal device, after a predetermined period of time, the management terminal device is requested for authorization information corresponding to the version information of the target system software upgrade package, wherein the feedback information is used to indicate that the version information of the target system software upgrade package does not exist on the management terminal device.
10. The managed terminal device according to claim 9, characterized in that: When the program instructions are executed by the processor, the managed terminal device executes the following steps: Receiving authorization information corresponding to the version information of the target system software upgrade package sent by the management terminal device; Among them, if the authorization information includes an available mark, it is determined that the authorization information corresponding to the version information of the target system software upgrade package is to allow the managed terminal device to obtain the target system software upgrade package from the OTA server.
11. The managed terminal device according to claim 9, characterized in that: When the program instructions are executed by the processor, the managed terminal device executes the following steps: Receiving version information of at least one system software upgrade package and authorization information corresponding to the version information of at least one system software upgrade package sent by the management terminal device; Matching the version information of the target system software upgrade package with the version information of the at least one system software upgrade package, and determining the authorization information corresponding to the version information of the successfully matched system software upgrade package; Among them, if the authorization information includes an available mark, it is determined that the authorization information corresponding to the version information of the target system software upgrade package is to allow the managed terminal device to obtain the target system software upgrade package from the OTA server.
12. The managed terminal device according to claim 9, characterized in that: When the program instructions are executed by the processor, the managed terminal device executes the following steps: Receiving a response message sent by the management terminal device; Among them, if the response message includes the version information of the target system software upgrade package, it is determined that the authorization information corresponding to the version information of the target system software upgrade package is to allow the managed terminal device to obtain the target system software upgrade package from the OTA server.
13. The managed terminal device according to any one of claims 10 to 12, characterized in that: When the program instructions are executed by the processor, the managed terminal device executes the following steps: A query request message is sent to the management terminal device, wherein the query request message includes version information of the target system software upgrade package.
14. The managed terminal device according to any one of claims 9 to 12, characterized in that: When the program instructions are executed by the processor, the managed terminal device executes the following steps: In response to receiving the authorization information corresponding to the version information of the target system software upgrade package sent by the management terminal device, if it is determined that the authorization information allows the managed terminal device to obtain the target system software upgrade package from the OTA server, it is determined that the target system software upgrade package can be obtained from the OTA server, and the target system software upgrade package is obtained from the OTA server; In response to receiving the authorization information corresponding to the version information of the target system software upgrade package sent by the management terminal device, if it is determined that the authorization information does not allow the managed terminal device to obtain the target system software upgrade package from the OTA server, it is determined that the target system software upgrade package cannot be obtained from the OTA server, and the OTA upgrade process is determined to be ended.
15. The managed terminal device according to any one of claims 9 to 12, characterized in that: When the program instructions are executed by the processor, the managed terminal device executes the following steps: A request is made to the management terminal device to join a group managed by the management terminal device.
16. The managed terminal device according to claim 15, characterized in that: When the program instructions are executed by the processor, the managed terminal device executes the following steps: Sending identification information of the managed terminal device to the management terminal device; If a confirmation message sent by the management terminal device is received, it is determined that the group has been joined.
17. A computer-readable storage medium storing a computer program, wherein the computer-readable storage medium is executed by a terminal to control the terminal to execute the method according to any one of claims 1 to 8.
18. A computer program product comprising instructions, characterized in that When the computer program product is run on an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 8.
