Upgrading method, device, equipment and storage medium
By obtaining the application installation package information and usage information in air-conditioning equipment and smart home devices, the upgrade process is optimized, and the problem of slow upgrade speed and affecting user experience is solved, achieving a more efficient and stable upgrade experience.
Patent Information
- Application Number
- CN202210567190.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-23
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2042-05-23
AI Technical Summary
When upgrading system versions or applications, existing air-conditioning equipment and smart home devices will occupy network bandwidth and system memory, resulting in slow upgrade speed and affecting user experience.
By obtaining the installation package information of the application in the device, download the upgrade installation package when the network is in good condition, and determine the appropriate upgrade time based on the application usage information to ensure that the upgrade is low in memory usage and non-run time.
Rationally allocate network bandwidth and device memory, improve upgrade efficiency and user experience, and reduce interruptions and impacts during the upgrade process.
Smart Images

Figure CN114895940B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of smart home technology, and in particular to an upgrade method, device, equipment and storage medium. Background Art
[0002] With the development of technology, air conditioning equipment not only takes on the responsibility of creating a comfortable indoor temperature environment, but also carries more and more other functions. In addition to air conditioning equipment, there are now more and more smart home devices with screens. In addition to basic functions, they can also realize functions such as watching videos, intelligent voice, and listening to music. And this type of smart home equipment not only needs to upgrade the system software related to basic functions, but also various auxiliary applications.
[0003] At present, for air conditioning systems, due to cost control issues, the configuration of air conditioning equipment is generally worse than that of devices such as smartphones. When upgrading new system versions or applications, they are all upgraded through OTA upgrade, which downloads the resources required for the upgrade to the local computer before installing and updating. This upgrade method will occupy network bandwidth resources during downloading, and will occupy system memory or interrupt the air conditioning function during installation. Therefore, the existing technology has a poor upgrade speed during upgrading, which is easy to affect the user experience. Summary of the invention
[0004] In view of this, in order to solve the above technical problems or part of the technical problems, the embodiments of the present invention provide an upgrading method, device, equipment and storage medium.
[0005] In a first aspect, an embodiment of the present invention provides an upgrade method, including:
[0006] Obtaining installation package information corresponding to the application in the first device;
[0007] When the current network status meets the preset status, obtaining the upgrade installation package of the application according to the installation package information;
[0008] Obtaining usage information of the application;
[0009] Determining an upgrade time of the application program according to the usage information;
[0010] The application is upgraded according to the upgrade time and the upgrade installation package.
[0011] In a possible implementation, obtaining installation package information corresponding to the application in the first device includes:
[0012] When the first device is in a preset mode, an installation package version and an installation package size corresponding to the application are obtained as the installation package information.
[0013] In a possible implementation, when the current network state meets the preset state, obtaining the upgrade installation package of the application according to the installation package information includes:
[0014] Get the current network bandwidth usage;
[0015] When the occupancy rate is less than a first set threshold, determining that the current network state meets a preset state;
[0016] When the installation package version is inconsistent with the version of the application, the installation package corresponding to the installation package version is downloaded as the upgrade installation package.
[0017] In a possible implementation, the obtaining the upgrade installation package of the application according to the installation package information includes:
[0018] When there are multiple applications and there are upgrade installation packages at the same time;
[0019] The downloading operation of the upgrade installation packages is performed sequentially according to the installation package sizes of the multiple upgrade installation packages.
[0020] In a possible implementation, the obtaining the upgrade installation package of the application according to the installation package information includes:
[0021] During the process of downloading the upgrade installation package, when it is detected that the occupancy rate is not less than the first set threshold, stopping downloading the upgrade installation package;
[0022] When it is detected that the occupancy rate changes from being not less than the first set threshold to being less than the first set threshold, reacquiring the installation package information corresponding to the application to obtain new installation package information;
[0023] When the new installation package version is consistent with the installation package version, continue to download the upgrade installation package.
[0024] In a possible implementation, obtaining usage information of the application includes:
[0025] Obtaining the usage time of the application within a preset time;
[0026] Acquire the current memory occupancy rate of the first device, and use the usage time and the memory occupancy rate as the usage information;
[0027] Determining the upgrade time of the application according to the usage information includes:
[0028] A time period not corresponding to the use time is determined as the upgrade time. During the upgrade time, the memory occupancy rate is less than a second set threshold, and the application is in a non-running state.
[0029] In a possible implementation, the obtaining the upgrade installation package of the application according to the installation package information includes:
[0030] When the version of the installation package is inconsistent with the version of the application, obtaining a first memory occupancy rate of the first device and a second memory occupancy rate of a second device, where the second device is an auxiliary device of the first device, or an operating system of the first device is the same as an operating system of the second device;
[0031] When the second memory occupancy rate is less than the first memory occupancy rate, controlling the second device to download the installation package corresponding to the installation package version;
[0032] An installation package corresponding to the installation package version sent by the second device is received as the upgrade installation package.
[0033] In a second aspect, an embodiment of the present invention provides an upgrading device, including:
[0034] An acquisition module, used to acquire installation package information corresponding to the application in the first device;
[0035] The acquisition module is further configured to acquire the upgrade installation package of the application according to the installation package information when the current network state meets the preset state;
[0036] The acquisition module is further used to acquire usage information of the application;
[0037] A processing module, used to determine the upgrade time of the application program according to the usage information;
[0038] An upgrade module is used to upgrade the application according to the upgrade time and the upgrade installation package.
[0039] In a third aspect, an embodiment of the present invention provides a device, comprising: a processor and a memory, wherein the processor is used to execute an upgrade program stored in the memory to implement the upgrade method described in any one of the first aspects above.
[0040] In a fourth aspect, an embodiment of the present invention provides a storage medium, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the upgrade method described in any one of the first aspects above.
[0041] The upgrade solution provided by the embodiment of the present invention obtains installation package information corresponding to an application in a first device; when the current network status meets the preset status, obtains the upgrade installation package of the application according to the installation package information; obtains usage information of the application; determines the upgrade time of the application according to the usage information; and upgrades the application according to the upgrade time and the upgrade installation package, so as to download the upgrade installation package according to the network status and install the installation package according to the application usage information, reasonably allocates network bandwidth resources and memory occupancy of the device, improves upgrade efficiency and rationality, and enhances user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 A flowchart of an upgrade method provided by an embodiment of the present invention;
[0043] Figure 2 A flowchart of another upgrading method provided by an embodiment of the present invention;
[0044] Figure 3 A flowchart of a method for obtaining an upgrade installation package provided by an embodiment of the present invention;
[0045] Figure 4 A schematic diagram of the structure of an upgrading device provided by an embodiment of the present invention;
[0046] Figure 5 A schematic diagram of the structure of a device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0048] To facilitate understanding of the embodiments of the present invention, specific embodiments will be further explained below in conjunction with the accompanying drawings. The embodiments do not constitute a limitation on the embodiments of the present invention.
[0049] Figure 1 A flowchart of an upgrade method provided by an embodiment of the present invention is shown as follows: Figure 1 As shown, the method specifically includes:
[0050] S11, obtaining installation package information corresponding to the application in the first device;
[0051] The upgrade method provided in the embodiment of the present invention is applied to smart home devices, which may be: air conditioning equipment, air conditioning equipment, humidity control equipment, lighting equipment, smart TV equipment, etc. The download time and the upgrade time are determined specifically according to the current network status and the usage of the device, so as to upgrade the application program or device system of the device within the optimal upgrade time.
[0052] In this embodiment, the first device may be a smart air-conditioning device, and the application in the first device needs to be updated or upgraded. The application may include voice, music, video software or air-conditioning system software. The installation package information includes but is not limited to the identification information, version information, size information, etc. of the installation package.
[0053] Specifically, the first device is connected to the server for communication, and obtains identification information, version information, size information, etc. of the installation package corresponding to each application from the server at preset intervals as installation package information.
[0054] S12. When the current network status meets the preset status, obtaining the upgrade installation package of the application according to the installation package information;
[0055] In this embodiment, the current network status can represent the current network occupancy, and meeting the preset status represents that the current network status is good and suitable for downloading the upgrade installation package. When the network occupancy is less than the set threshold, it means that the current network status meets the preset status, and the upgrade installation package can be downloaded at this time. When the network occupancy is not less than the set threshold, it means that the current network status does not meet the preset status, and the upgrade installation package is not downloaded at this time.
[0056] Specifically, when it is determined that an application needs to be upgraded, the current network speed is obtained, and the network occupancy is determined based on the current network speed. When the network occupancy is less than a set threshold, the upgrade installation package of the application is downloaded from the server through the identification information in the installation package information.
[0057] S13, obtaining usage information of the application;
[0058] In this embodiment, the usage information includes the running time of the application that needs to be upgraded. The running time can be the time period during which the application is frequently running in history, or can be set by the user. In order not to affect the user's use of the application, the upgrade is not performed during the running time. Since the upgrade will occupy the memory of the device, the usage information also includes the memory usage rate in the current device.
[0059] Specifically, a detection cycle is preset (for example, 24 hours is one cycle) to obtain the application running time period of the historical detection cycle, and to obtain the current memory occupancy rate as the usage information.
[0060] S14. Determine an upgrade time of the application program according to the usage information; and upgrade the application program according to the upgrade time and the upgrade installation package.
[0061] In this embodiment, the upgrade time is a time period when the non-operating time and the memory usage rate is less than a set threshold. After the upgrade installation package is downloaded, the upgrade is not installed first, and the upgrade installation package is stored in the device. According to the usage information, a time period when the non-operating time and the memory usage rate is less than a set threshold is determined as the upgrade time. During the upgrade time, the application is updated and upgraded through the upgrade installation package.
[0062] The upgrade method provided by the embodiment of the present invention obtains installation package information corresponding to an application in a first device; when the current network state meets the preset state, obtains the upgrade installation package of the application according to the installation package information; obtains usage information of the application; determines the upgrade time of the application according to the usage information; and upgrades the application according to the upgrade time and the upgrade installation package, so as to download the upgrade installation package according to the network status and install the installation package according to the application usage information, reasonably allocates network bandwidth resources and memory occupancy of the device, improves upgrade efficiency and rationality, and enhances user experience.
[0063] Figure 2 A flowchart of another upgrade method provided by an embodiment of the present invention is shown as follows: Figure 2 As shown, the method specifically includes:
[0064] S21. When the first device is in a preset mode, obtaining an installation package version and an installation package size corresponding to the application as the installation package information;
[0065] In this embodiment, the preset mode is a mode for upgrading the application. In this mode, the installation package information can be obtained. The installation package information is the version and size of the installation package corresponding to the application in the device. The installation package version is used to determine whether the application on the current device needs to be upgraded.
[0066] Specifically, the user can send control instructions through the remote control of the first device or the terminal connected to the first device, or control the first device to enter a preset upgrade mode through voice control. In the upgrade mode, the first device communicates with the server and obtains the installation package version and installation package size corresponding to the application from the server as the installation package information.
[0067] S22, obtaining the occupancy rate of the current network bandwidth; when the occupancy rate is less than a first set threshold, determining that the current network state meets the preset state;
[0068] In this embodiment, network testing is performed regularly. When users use various applications, they will occupy bandwidths of different sizes. The current maximum network bandwidth (equivalent to available network resources) can be determined through network testing.
[0069] Furthermore, a first set threshold is determined according to the current maximum network bandwidth, and the first set threshold is less than the current maximum network bandwidth. The current network condition and the average network speed are obtained, and the current network bandwidth occupancy rate is determined according to the network condition and the average network speed. The bandwidth occupancy rate can represent the current network state. When the bandwidth occupancy rate is less than the set threshold, it is determined that the current network state meets the preset state, and meeting the preset state indicates that the network state is good and can be downloaded.
[0070] For example, it may be set that when the bandwidth occupancy rate is less than 50% of the maximum network bandwidth, it is determined that the current network state meets the preset state.
[0071] S23. When the version of the installation package is inconsistent with the version of the application, downloading the installation package corresponding to the version of the installation package as the upgrade installation package;
[0072] In this embodiment, when it is determined that the current network status meets the preset status, the version of each application in the list of installed applications in the first device is obtained, and it is determined whether the version of the application is consistent with the corresponding installation package version. If they are consistent, it means that the application is already the latest version and there is no need to download the upgrade installation package for upgrading. If they are inconsistent, the application is determined to be an application to be upgraded. At this time, the installation package corresponding to the installation package version is downloaded as the upgrade installation package of the application to be upgraded.
[0073] In a possible implementation, when there are multiple applications and there are upgrade installation packages at the same time, the download operation of the upgrade installation packages is performed in sequence according to the sizes of the multiple upgrade installation packages.
[0074] Specifically, when it is determined that multiple applications in the first device are applications to be upgraded, the multiple applications are recorded in a queue of applications to be updated, and the applications in the queue are sorted by the size of the installation packages to be downloaded, and the smaller the installation package, the higher the position in the queue. After the queue is generated, when it is determined that the current network status meets the preset status, the installation packages are downloaded in order from small to large as upgrade installation packages, so that smaller applications are downloaded first.
[0075] S24. During the process of downloading the upgrade installation package, when it is detected that the occupancy rate is not less than the first set threshold, stop downloading the upgrade installation package; when it is detected that the occupancy rate changes from being not less than the first set threshold to being less than the first set threshold, reacquire the installation package information corresponding to the application to obtain new installation package information;
[0076] In this embodiment, a first set threshold is set to determine whether the current network bandwidth occupancy rate meets a preset condition. When it is detected that the occupancy rate changes from less than the first set threshold to not less than the first set threshold, it indicates that the current network resource occupancy rate is high or the current network condition has deteriorated, and the download of the upgrade installation package is suspended at this time. When it is detected that the occupancy rate changes from not less than the first set threshold to less than the first set threshold, a new version of the installation package may appear at this time, so it is necessary to re-acquire the installation package information corresponding to the application from the server to obtain the new installation package information.
[0077] S25. When the new installation package version is consistent with the installation package version, continue downloading the upgrade installation package;
[0078] In this embodiment, it is determined whether the new installation package version in the new installation package information is consistent with the installation package version corresponding to the upgrade installation package whose download is suspended. If they are consistent, it means that no new upgrade installation package appears and the upgrade installation package can continue to be downloaded.
[0079] In one possible implementation, when the new installation package version is inconsistent with the installation package version corresponding to the upgrade installation package that was suspended from downloading, when it is determined that the current network status meets the preset status, a new upgrade installation package corresponding to the new installation package version is downloaded as the upgrade installation package of the application, and the old downloaded file is deleted and replaced with the new version of the upgrade installation package.
[0080] S26, obtaining the usage time of the application within a preset time; obtaining the current memory occupancy rate of the first device, and using the usage time and the memory occupancy rate as the usage information;
[0081] In this embodiment, the usage time is the running time of the application to be upgraded, which can be the time period during which the application is frequently run in the past, or can be set by the user. The memory occupancy rate represents the system resource occupancy of the first device.
[0082] Specifically, the system of the first device in the upgrade mode records the startup time and shutdown time of each application every day, determines the user's usage of a single application through the startup and shutdown time, and obtains the common time period as the usage time. The system determines the memory usage rate based on the current memory and CPU usage and the running status of the application, and uses the usage time and memory usage rate as the usage information.
[0083] For example, the user's usage habits of an application can be calculated by counting the time the user uses an application over a period of time (such as a month). According to the usage habits, it is determined that the user often uses QQ Music to listen to music from 7 to 10 p.m., and this time period is regarded as the usage time.
[0084] S27, determining that the time period not corresponding to the usage time is the upgrade time, during which the memory occupancy rate is less than a second set threshold, and the application is in a non-operating state; and upgrading the application according to the upgrade time and the upgrade installation package.
[0085] In this embodiment, a first threshold is set to determine whether the system resource usage is suitable for upgrading. The memory usage is determined to be less than the second set value, and the application is not in operation and is in a time period corresponding to the non-use time as the upgrade time, and the application is updated and upgraded within the upgrade time.
[0086] Specifically, during non-use time, determine whether the memory occupancy rate is less than the second threshold, and determine whether the application is running. If the memory occupancy rate is not less than the second threshold, or the application is running, it will not be upgraded, and will be determined again after a set period of time.
[0087] For example, in upgrade mode, the installation package version of the music player software of the air conditioner is 2.0, the installation package size is 20M, the installation package version of the video software is 3.0, the installation package size is 10M, and it is inconsistent with the application version, and the bandwidth occupancy rate is less than the first set threshold. First, download the small video software installation package, and then download the music player software installation package. At this time, the bandwidth occupancy rate is less than the first set threshold, and the download is stopped. When the bandwidth occupancy rate is less than the first set threshold, the new installation package version of the music player software is 4.0, which is inconsistent with 2.0, so the 4.0 installation package is downloaded and the 2.0 installation package is deleted. After the download is completed, when the memory occupancy rate is less than the second set threshold and it is in non-use time, and the application is not running, update.
[0088] The upgrade method provided by the embodiment of the present invention, when the first device is in the preset mode, obtains the installation package version and installation package size corresponding to the application as the installation package information; obtains the occupancy rate of the current network bandwidth; when the occupancy rate is less than the first set threshold, determines that the current network state meets the preset state; when the installation package version is inconsistent with the version of the application, downloads the installation package corresponding to the installation package version as the upgrade installation package; during the download of the upgrade installation package, when it is detected that the occupancy rate is not less than the first set threshold, stops downloading the upgrade installation package; when it is detected that the occupancy rate changes from not less than the first set threshold to less than the first set threshold, re-acquires the installation package information corresponding to the application to obtain new installation package information; when the new installation package version is consistent with the installation package version, continues to download the upgrade installation package; determines that the time period corresponding to the non-use time is the upgrade time, and upgrades the application within the upgrade time. In this way, reasonable allocation of network resources is achieved, the installation package is downloaded when the network occupancy rate is low, and the update is performed when the memory occupancy rate is low and the non-use time, so as to avoid affecting the user's use of the application, improve the upgrade efficiency, and enhance the user experience.
[0089] Figure 3 A flowchart of a method for obtaining an upgrade installation package provided by an embodiment of the present invention is shown as follows: Figure 3 As shown, the method specifically includes:
[0090] S31. When the first device is in a preset mode, obtaining an installation package version and an installation package size corresponding to the application as the installation package information;
[0091] In this embodiment, this step is similar to S21, and the details can be referred to Figure 2 For the sake of brevity, the relevant description in is not repeated here.
[0092] S32: when the version of the installation package is inconsistent with the version of the application, obtaining a first memory occupancy rate of the first device and a second memory occupancy rate of the second device;
[0093] In this embodiment, the second device is an auxiliary device of the first device, or the operating system of the first device is the same as the operating system of the second device (for example, both are Android systems), and the number of second devices can be multiple. The upgrade installation packages of the applications or systems of the first device and the second device can be reused. When the first device needs to upgrade the application or system, the CPU occupancy rate, memory occupancy rate, and operating status of the first device and the second device are sent to the server, and the first memory occupancy rate of the first device and the second memory occupancy rate of at least one second device are determined.
[0094] S33: when the second memory occupancy rate is less than the first memory occupancy rate, controlling the second device to download the installation package corresponding to the installation package version;
[0095] In this embodiment, a second device that is the most idle is selected according to the plurality of second memory occupancy rates and the first memory occupancy rate. Specifically, a second device corresponding to the second memory occupancy rate that is the smallest and smaller than the first memory occupancy rate is selected from the plurality of second memory occupancy rates as the target second device. The target second device is connected to the server for communication and communicates with the server through Figure 2 When the step in determines that the current network status meets the preset status, the installation package is downloaded, and when the target second device does not exist, the upgrade installation package is downloaded through the first device.
[0096] S34. Receive the installation package corresponding to the installation package version sent by the second device as the upgrade installation package.
[0097] In this embodiment, the first device and the second device are connected via Bluetooth broadcast or wifi local area network, and the second device sends the installation package corresponding to the installation package version to the first device. The first device receives the installation package sent by the second device as an upgrade installation package.
[0098] The method for obtaining an upgrade installation package provided in an embodiment of the present invention downloads the upgrade installation package through a second device and then sends the upgrade installation package to a first device for upgrading, thereby avoiding the situation where the device downloads the same upgrade package multiple times when upgrading an application or system, improving upgrade efficiency, reducing network burden and system occupancy, reducing the complexity of the upgrade, and increasing user experience.
[0099] Figure 4 A schematic diagram of the structure of an upgrade device provided by an embodiment of the present invention is shown in FIG. Figure 4 As shown, the device specifically includes:
[0100] The acquisition module 41 is used to acquire the installation package information corresponding to the application in the first device;
[0101] The acquisition module 41 is further configured to acquire the upgrade installation package of the application according to the installation package information when the current network status meets the preset status;
[0102] The acquisition module 41 is further used to acquire usage information of the application;
[0103] A processing module 42, configured to determine an upgrade time of the application program according to the usage information;
[0104] The upgrading module 43 is used to upgrade the application according to the upgrading time and the upgrading installation package.
[0105] In a possible implementation, the acquisition module 41 is specifically configured to acquire, when the first device is in a preset mode, an installation package version and an installation package size corresponding to the application as the installation package information.
[0106] In a possible implementation, the acquisition module 41 is specifically used to acquire the current network bandwidth occupancy rate;
[0107] The processing module 42 is specifically configured to determine that the current network state meets a preset state when the occupancy rate is less than a first set threshold;
[0108] When the installation package version is inconsistent with the version of the application, the installation package corresponding to the installation package version is downloaded as the upgrade installation package.
[0109] In a possible implementation manner, the processing module 42 is specifically used for when there are multiple applications and upgrade installation packages exist at the same time;
[0110] The downloading operation of the upgrade installation packages is performed sequentially according to the installation package sizes of the multiple upgrade installation packages.
[0111] In a possible implementation manner, the processing module 42 is specifically configured to stop downloading the upgrade installation package when it is detected that the occupancy rate is not less than the first set threshold value during the process of downloading the upgrade installation package;
[0112] The acquisition module 41 is specifically configured to reacquire the installation package information corresponding to the application program to obtain new installation package information when detecting that the occupancy rate changes from being not less than the first set threshold to being less than the first set threshold;
[0113] When the new installation package version is consistent with the installation package version, continue to download the upgrade installation package.
[0114] In a possible implementation manner, the acquisition module 41 is specifically used to acquire the usage time of the application within a preset time;
[0115] Acquire the current memory occupancy rate of the first device, and use the usage time and the memory occupancy rate as the usage information;
[0116] The processing module 42 is specifically used to determine that a time period not corresponding to the use time is the upgrade time. During the upgrade time, the memory occupancy rate is less than a second set threshold, and the application is in a non-operating state.
[0117] In a possible implementation, the acquisition module 41 is specifically used to acquire, when the version of the installation package is inconsistent with the version of the application, a first memory occupancy rate of the first device and a second memory occupancy rate of the second device, where the second device is an auxiliary device of the first device, or the operating system of the first device is the same as the operating system of the second device;
[0118] In a possible implementation, the processing module 42 is specifically configured to control the second device to download the installation package corresponding to the installation package version when the second memory occupancy rate is less than the first memory occupancy rate;
[0119] An installation package corresponding to the installation package version sent by the second device is received as the upgrade installation package.
[0120] The upgrading device provided in this embodiment may be as follows Figure 4 The device shown in FIG. 1 may perform the following steps: Figure 1-3 All steps of the upgrade method in Figure 1-3 For details on the technical effects of the upgrade method shown, please refer to Figure 1-3 For the sake of brevity, the relevant description is not repeated here.
[0121] Figure 5 A schematic diagram of a device provided in an embodiment of the present invention is provided. Figure 5 The device 500 shown includes: at least one processor 501, a memory 502, at least one network interface 504 and other user interfaces 503. The various components in the device 500 are coupled together via a bus system 505. It is understood that the bus system 505 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 505 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 505 is not shown in FIG. Figure 5 Various buses are labeled as bus system 505 .
[0122] The user interface 503 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).
[0123] It can be understood that the memory 502 in the embodiment of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct RAM bus random access memory (DRRAM). The memory 502 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0124] In some implementations, the memory 502 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 5021 and an application program 5022 .
[0125] The operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 5022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application 5022.
[0126] In the embodiment of the present invention, by calling the program or instruction stored in the memory 502, specifically, the program or instruction stored in the application 5022, the processor 501 is used to execute the method steps provided by each method embodiment, for example, including:
[0127] Obtaining installation package information corresponding to the application in the first device;
[0128] When the current network status meets the preset status, obtaining the upgrade installation package of the application according to the installation package information;
[0129] Obtaining usage information of the application;
[0130] Determining an upgrade time of the application program according to the usage information;
[0131] The application is upgraded according to the upgrade time and the upgrade installation package.
[0132] In a possible implementation, when the first device is in a preset mode, an installation package version and an installation package size corresponding to the application are obtained as the installation package information.
[0133] In a possible implementation, obtaining the current network bandwidth occupancy rate;
[0134] When the occupancy rate is less than a first set threshold, determining that the current network state meets a preset state;
[0135] When the installation package version is inconsistent with the version of the application, the installation package corresponding to the installation package version is downloaded as the upgrade installation package.
[0136] In a possible implementation manner, when there are multiple applications and upgrade installation packages exist at the same time;
[0137] The downloading operation of the upgrade installation packages is performed sequentially according to the installation package sizes of the multiple upgrade installation packages.
[0138] In a possible implementation, during the process of downloading the upgrade installation package, when it is detected that the occupancy rate is not less than the first set threshold, the downloading of the upgrade installation package is stopped;
[0139] When it is detected that the occupancy rate changes from being not less than the first set threshold to being less than the first set threshold, reacquiring the installation package information corresponding to the application to obtain new installation package information;
[0140] When the new installation package version is consistent with the installation package version, continue to download the upgrade installation package.
[0141] In a possible implementation, obtaining usage time of the application within a preset time;
[0142] Acquire the current memory occupancy rate of the first device, and use the usage time and the memory occupancy rate as the usage information;
[0143] Determining the upgrade time of the application according to the usage information includes:
[0144] A time period not corresponding to the use time is determined as the upgrade time. During the upgrade time, the memory occupancy rate is less than a second set threshold, and the application is in a non-running state.
[0145] In a possible implementation, when the version of the installation package is inconsistent with the version of the application, a first memory occupancy rate of the first device and a second memory occupancy rate of a second device are obtained, where the second device is an auxiliary device of the first device, or an operating system of the first device is the same as an operating system of the second device;
[0146] When the second memory occupancy rate is less than the first memory occupancy rate, controlling the second device to download the installation package corresponding to the installation package version;
[0147] An installation package corresponding to the installation package version sent by the second device is received as the upgrade installation package.
[0148] The method disclosed in the above embodiment of the present invention can be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 501 or the instruction in the form of software. The above processor 501 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the above method in combination with its hardware.
[0149] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.
[0150] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0151] The device provided in this embodiment can be Figure 5 The device shown in , can be executed as Figure 1-3 All steps of the upgrade method in Figure 1-3 For details on the technical effects of the upgrade method shown, please refer to Figure 1-3 For the sake of brevity, the relevant description is not repeated here.
[0152] The embodiment of the present invention also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.
[0153] When one or more programs in the storage medium can be executed by one or more processors, the upgrade method executed on the device side can be implemented.
[0154] The processor is used to execute the upgrade program stored in the memory to implement the following steps of the upgrade method performed on the device side:
[0155] Obtaining installation package information corresponding to the application in the first device;
[0156] When the current network status meets the preset status, obtaining the upgrade installation package of the application according to the installation package information;
[0157] Obtaining usage information of the application;
[0158] Determining an upgrade time of the application program according to the usage information;
[0159] The application is upgraded according to the upgrade time and the upgrade installation package.
[0160] In a possible implementation, when the first device is in a preset mode, an installation package version and an installation package size corresponding to the application are obtained as the installation package information.
[0161] In a possible implementation, obtaining the current network bandwidth occupancy rate;
[0162] When the occupancy rate is less than a first set threshold, determining that the current network state meets a preset state;
[0163] When the installation package version is inconsistent with the version of the application, the installation package corresponding to the installation package version is downloaded as the upgrade installation package.
[0164] In a possible implementation manner, when there are multiple applications and upgrade installation packages exist at the same time;
[0165] The downloading operation of the upgrade installation packages is performed sequentially according to the installation package sizes of the multiple upgrade installation packages.
[0166] In a possible implementation, during the process of downloading the upgrade installation package, when it is detected that the occupancy rate is not less than the first set threshold, the downloading of the upgrade installation package is stopped;
[0167] When it is detected that the occupancy rate changes from being not less than the first set threshold to being less than the first set threshold, reacquiring the installation package information corresponding to the application to obtain new installation package information;
[0168] When the new installation package version is consistent with the installation package version, continue to download the upgrade installation package.
[0169] In a possible implementation, obtaining usage time of the application within a preset time;
[0170] Acquire the current memory occupancy rate of the first device, and use the usage time and the memory occupancy rate as the usage information;
[0171] Determining the upgrade time of the application according to the usage information includes:
[0172] A time period not corresponding to the use time is determined as the upgrade time. During the upgrade time, the memory occupancy rate is less than a second set threshold, and the application is in a non-running state.
[0173] In a possible implementation, when the version of the installation package is inconsistent with the version of the application, a first memory occupancy rate of the first device and a second memory occupancy rate of a second device are obtained, where the second device is an auxiliary device of the first device, or an operating system of the first device is the same as an operating system of the second device;
[0174] When the second memory occupancy rate is less than the first memory occupancy rate, controlling the second device to download the installation package corresponding to the installation package version;
[0175] An installation package corresponding to the installation package version sent by the second device is received as the upgrade installation package.
[0176] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0177] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0178] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. An upgrade method, It is characterized in that include: Obtaining installation package information corresponding to the application in the first device, the installation package information including: an installation package version; When the current network status meets the preset status, obtaining the upgrade installation package of the application according to the installation package information; Acquire usage information of the application, the usage information including: running time of the application, the running time representing a time period of historical running of the application; Determining an upgrade time of the application according to the usage information, wherein the upgrade time is a non-operating time; Upgrading the application according to the upgrade time and the upgrade installation package; The step of obtaining the upgrade installation package of the application according to the installation package information includes: When the version of the installation package is inconsistent with the version of the application, obtaining a first memory occupancy rate of the first device and a second memory occupancy rate of a second device, where the second device is an auxiliary device of the first device, or an operating system of the first device is the same as an operating system of the second device, and the second device is selected from a plurality of second devices according to the second memory occupancy rate and the first memory occupancy rate; When the second memory occupancy rate is less than the first memory occupancy rate, controlling the second device to download the installation package corresponding to the installation package version; An installation package corresponding to the installation package version sent by the second device is received as the upgraded installation package.
2. The method according to claim 1, It is characterized in that The obtaining the installation package information corresponding to the application in the first device includes: When the first device is in a preset mode, an installation package version and an installation package size corresponding to the application are obtained as the installation package information.
3. The method according to claim 2, It is characterized in that When the current network state meets the preset state, obtaining the upgrade installation package of the application according to the installation package information includes: Get the current network bandwidth usage; When the occupancy rate is less than a first set threshold, determining that the current network state meets a preset state; When the installation package version is inconsistent with the version of the application, the installation package corresponding to the installation package version is downloaded as the upgrade installation package.
4. The method according to claim 3, It is characterized in that The step of obtaining the upgrade installation package of the application according to the installation package information includes: When there are multiple applications and there are upgrade installation packages at the same time; The downloading operation of the upgrade installation packages is performed sequentially according to the installation package sizes of the multiple upgrade installation packages.
5. The method according to claim 4, It is characterized in that The step of obtaining the upgrade installation package of the application according to the installation package information includes: During the process of downloading the upgrade installation package, when it is detected that the occupancy rate is not less than the first set threshold, stopping downloading the upgrade installation package; When it is detected that the occupancy rate changes from being not less than the first set threshold to being less than the first set threshold, reacquiring the installation package information corresponding to the application to obtain new installation package information; When the new installation package version is consistent with the installation package version, continue to download the upgrade installation package.
6. The method according to claim 5, It is characterized in that Get usage information of the application, including: Obtaining the usage time of the application within a preset time; Acquire the current memory occupancy rate of the first device, and use the usage time and the memory occupancy rate as the usage information; Determining the upgrade time of the application according to the usage information includes: A time period not corresponding to the use time is determined as the upgrade time. During the upgrade time, the memory occupancy rate is less than a second set threshold, and the application is in a non-running state.
7. An upgrade device, It is characterized in that include: An acquisition module, configured to acquire installation package information corresponding to the application in the first device, wherein the installation package information includes: an installation package version; The acquisition module is further configured to acquire the upgrade installation package of the application according to the installation package information when the current network state meets the preset state; The acquisition module is further used to acquire usage information of the application, wherein the usage information includes: the running time of the application, wherein the running time represents a time period of historical running of the application; A processing module, used to determine an upgrade time of the application according to the usage information, wherein the upgrade time is a non-operating time; An upgrade module, used to upgrade the application according to the upgrade time and the upgrade installation package; The step of obtaining the upgrade installation package of the application according to the installation package information includes: When the version of the installation package is inconsistent with the version of the application, obtaining a first memory occupancy rate of the first device and a second memory occupancy rate of a second device, where the second device is an auxiliary device of the first device, or an operating system of the first device is the same as an operating system of the second device, and the second device is selected from a plurality of second devices according to the second memory occupancy rate and the first memory occupancy rate; When the second memory occupancy rate is less than the first memory occupancy rate, controlling the second device to download the installation package corresponding to the installation package version; An installation package corresponding to the installation package version sent by the second device is received as the upgraded installation package.
8. A computer device, It is characterized in that include: A processor and a memory, wherein the processor is used to execute an upgrade program stored in the memory to implement the upgrade method according to any one of claims 1 to 6.
9. A storage medium, It is characterized in that The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the upgrading method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Software background adaptive upgrading method and apparatus
CN106331084A
Vehicle remote upgrading method, device and equipment and storage medium
CN111698307A
Patch multiplexing method and system and electronic equipment
CN114356316A