Method for managing terminal device, electronic device and computer readable storage medium
By filtering useless communication messages in smart devices and deciding whether to power off the Wi-Fi module based on the number and duration of wake-ups, the problem of high power consumption caused by frequent wake-ups of the processor in standby mode is solved, achieving longer standby time and Better user experience.
Patent Information
- Application Number
- CN202210487169.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-06
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-05-06
AI Technical Summary
When smart devices are in standby mode, the wireless router frequently sends useless data packets, causing the processor to wake up frequently, increasing power consumption and affecting battery life.
By filtering and processing useless communication messages in electronic devices, using the preset wake-up times and duration to decide whether to power off the Wi-Fi module, reducing the number of useless wake-ups, and switching to mobile when specific conditions are met Communications network to keep communications flowing.
It effectively reduces the power consumption of smart devices in standby mode, extends standby time, improves user experience, and avoids power consumption problems caused by frequent wake-ups.
Smart Images

Figure CN116056190B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent terminals, and in particular to a method for managing terminal equipment, an electronic device and a computer-readable storage medium. Background Art
[0002] With the popularization of smart devices and the development of wireless LAN technology, more and more smart devices are connected to wireless LANs through network devices such as routers. Among them, Wireless Fidelity (Wi-Fi) is a wireless LAN based on the IEEE 802.11b standard. It can be understood that Wi-Fi signals are a broadcast medium, and network devices such as Wi-Fi routers are used to provide WiFi network services to various electronic devices within the coverage range of Wi-Fi signals.
[0003] When an electronic device such as a mobile phone connected to a Wi-Fi router is in standby mode with the screen off, if the connected Wi-Fi router frequently sends data packets to the mobile phone, the Wi-Fi module on the mobile phone will frequently wake up the processor responsible for processing the received data when receiving the data sent by the Wi-Fi router, causing the processor to be unable to remain in a dormant state, resulting in serious power consumption. The processor of the mobile phone may be, for example, an application processor (AP). Summary of the invention
[0004] The embodiments of the present application provide a method for managing terminal devices, an electronic device, and a computer-readable storage medium. The method can ensure that electronic devices such as mobile phones can receive messages normally in standby mode, while effectively shielding network service devices such as routers from frequently sending useless communication messages to electronic devices such as mobile phones, causing the processor to wake up frequently. This can effectively reduce the power consumption of electronic devices such as mobile phones in standby mode, which is beneficial to improving user experience.
[0005] In a first aspect, an embodiment of the present application provides a method for managing a terminal device, which is applied to an electronic device, wherein the electronic device includes a Wi-Fi chip, and the method includes: the electronic device enters a standby state at a first time point, and a first processor in the electronic device enters a sleep state; a first type of communication message sent by a routing device is received through a Wi-Fi connection, wherein the first type of communication message is sent in a broadcast manner and has no target receiving address; the electronic device wakes up the first processor based on the received first type of communication message; within a preset time period after the first time point, based on the first number of wake-up times of the first processor, the Wi-Fi chip is powered off, the wake-up time refers to the number of times the first processor is awakened based on the first type of communication message, wherein the first number is greater than or equal to the preset number.
[0006] The electronic device may be, for example, a mobile phone, etc., the routing device may be, for example, a Wi-Fi router that provides a Wi-Fi hotspot, and the first type of communication message may be, for example, a useless communication message sent by the router to an electronic device such as a mobile phone, i.e., a useless message described in the following embodiments. In other words, the communication message sent by the router to an electronic device such as a mobile phone includes useful communication messages that need to be sent by the first processor to the corresponding application program for response, and useless communication messages that do not need to be sent to the application program for response, i.e., useless messages.
[0007] Therefore, the above method provided in the embodiment of the present application, that is, after the electronic device enters the standby state and the first processor enters the dormant state, if the connected router frequently sends useless communication messages to electronic devices such as mobile phones, causing the first processor of electronic devices such as mobile phones to wake up frequently, then the mobile phones and other electronic devices can control the Wi-Fi module (or the above-mentioned Wi-Fi chip) used to receive the communication messages sent by the router to power off the Wi-Fi module (or the above-mentioned Wi-Fi chip) to reduce the frequency of useless wake-ups of the first processor. Among them, the wake-up frequency of the first processor of electronic devices such as mobile phones can be determined by calculating the number of wake-ups of the first processor per unit time, for example, it can be calculated by dividing the above-mentioned first number by the preset time after the first time point. No limitation is made here.
[0008] In a possible implementation of the first aspect above, the method further includes: the electronic device enters a standby state at a second time point, and the first processor enters a sleep state; receiving a first type of communication message sent by the routing device through a Wi-Fi connection; the electronic device wakes up the first processor based on the received first type of communication message; within a preset time period after the second time point, based on the number of wake-up times of the first processor being a second number, the Wi-Fi chip is not powered off, wherein the second number is less than the preset number.
[0009] That is, the electronic device may enter the standby state again after waking up from the initial standby state, for example, entering the standby state at the above-mentioned second time point. After the electronic device enters the standby state and the first processor also enters the sleep state, if it is detected that the number of wake-up times of the first processor is small due to the receipt of useless messages (that is, the above-mentioned first type of communication messages) sent by the router (that is, the above-mentioned routing device), for example, the second number is less than the preset number, at this time, the wake-up frequency of the first processor of the electronic device is low, and the wake-up of the first processor has little effect on the increased energy consumption of the electronic device. Therefore, at this time, the electronic device can keep the Wi-Fi module working without powering off the Wi-Fi module. In this way, it can be ensured that the Wi-Fi module of the electronic device has little or no effect on energy consumption, and can maintain normal communication with the router to transmit communication messages in a timely manner through the Wi-Fi network.
[0010] In a possible implementation of the first aspect, based on the first processor being woken up a first number of times, powering off the Wi-Fi chip includes: determining that the first number is greater than or equal to a preset number, and powering off the Wi-Fi chip.
[0011] That is, when it is confirmed that the number of wake-up times of the first processor within a preset time exceeds a preset number, the Wi-Fi module (or the above-mentioned Wi-Fi chip) can be powered off. In the following embodiments, it is also possible to determine whether to power off the Wi-Fi module by confirming whether the wake-up frequency of the first processor exceeds a preset frequency threshold, and the embodiments of the present application are not limited to this.
[0012] In a possible implementation of the first aspect above, the first type of communication message includes at least one of the following: a first type of data packet forwarded by a routing device; a management frame sent by a routing device; a PING packet sent by a routing device.
[0013] Among them, the first type of data packet forwarded by the routing device may be, for example, a data packet corresponding to the collected data uploaded by other smart devices connected to the routing device, such as an IPV4 data packet corresponding to the temperature data reported by a smart electric kettle. Figure 1b The above and related descriptions will not be repeated here.
[0014] In a possible implementation of the first aspect above, the preset numbers are different for different first-category communication messages.
[0015] In a possible implementation of the first aspect above, determining that the first number is greater than or equal to a preset number includes any one of the following items: obtaining a first wake-up number when the first processor is awakened based on a first type of data packet forwarded by the routing device, and confirming that the number of the first wake-up number is greater than or equal to a first preset number; obtaining a second wake-up number when the first processor is awakened based on a management frame sent by the routing device, and confirming that the second wake-up number is greater than or equal to a second preset number; obtaining a third wake-up number when the first processor is awakened based on a PING packet sent by the routing device, and confirming that the third wake-up number is greater than or equal to a third preset number.
[0016] That is, for different situations where the first processor is awakened due to the first-class communication messages, the preset number of times the first processor is awakened can be set respectively, for example, for the situation where the first processor is awakened due to the first-class data packet forwarded by the routing device, the first preset number is set; for the situation where the first processor is awakened due to the management frame sent by the routing device, the second preset number is set; and for the situation where the first processor is awakened due to the PING packet sent by the routing device, the third preset number is set. Furthermore, the number of times the first processor is awakened due to different first-class communication messages can be counted respectively and compared with the corresponding preset numbers.
[0017] In a possible implementation of the first aspect above, the condition for powering off the Wi-Fi chip further includes at least one of the following: confirming that the routing device of the Wi-Fi connection is a Wi-Fi hotspot device at a commonly used location; confirming that the mobile communication network is available; confirming that it is in a low-traffic business scenario, wherein the low-traffic business scenario corresponds to a scenario in which the data traffic consumed by transmitting data during the process of running an application on the electronic device is less than the data traffic corresponding to the first traffic threshold.
[0018] That is, when it is determined that the number of wake-up times of the first processor is greater than or equal to the preset number, or when it is determined that the wake-up frequency of the first processor is greater than or equal to the preset frequency threshold, it can be further confirmed that the location of the routing device connected to the Wi-Fi of electronic devices such as mobile phones is a common location, and / or the mobile communication network is available, and / or the mobile phone and other electronic devices are in a low-traffic business scenario, and then the Wi-Fi module (or Wi-Fi chip) is powered off. In this way, it is conducive to adaptively adopting different network management and control strategies according to different Wi-Fi environments and other conditions. It is also conducive to avoiding the problem of easily powering off the Wi-Fi module, which leads to problems such as poor communication of electronic devices such as mobile phones or excessive data traffic consumption of mobile communication networks.
[0019] In a possible implementation of the first aspect above, the availability of the mobile communication network is confirmed in the following manner: detecting that the Internet traffic of the currently used SIM card account is unlimited within the package month; or detecting that the remaining amount of Internet traffic of the currently used SIM card account within the package month exceeds the second traffic threshold.
[0020] In a possible implementation of the first aspect above, the method includes: after the Wi-Fi chip is powered off, the electronic device communicates through a mobile communication network.
[0021] That is, in order to ensure the communication of electronic devices, after the Wi-Fi chip is powered off, the electronic devices can switch the network to the mobile communication network and continue to standby, so as to avoid situations such as mobile phones and other electronic devices being unable to receive useful communication messages in a timely manner.
[0022] In a possible implementation of the first aspect above, the method further includes: detecting a user operation of waking up the electronic device, the electronic device powering on the Wi-Fi chip to resume working of the Wi-Fi chip; or, receiving a second type of communication message, the electronic device powering on the Wi-Fi chip to resume working of the Wi-Fi chip; or, when the data flow required to be consumed by the data to be transmitted exceeds a third flow threshold, the electronic device powering on the Wi-Fi chip to resume working of the Wi-Fi chip.
[0023] For example, when a user unlocks a mobile phone or other electronic device in standby mode by clicking a device power key, verifying a fingerprint, etc., and restores the mobile phone from standby mode to working mode, the powered-off Wi-Fi module must be powered on in time to restore the Wi-Fi network function of the mobile phone or other electronic device. For another example, a mobile phone or other electronic device in standby mode receives a communication message from an external network through a modem, such as a WeChat TM message, etc. At this time, the mobile phone can wake up the first processor and power on the powered-off Wi-Fi module to restore the Wi-Fi network function of the mobile phone or other electronic device. For another example, if a mobile phone or other electronic device sends data to the outside or receives download data in a predetermined time period, such as when the system software on the mobile phone is automatically updated and upgraded at night, the mobile phone can wake up the first processor and power on the powered-off Wi-Fi module to restore the Wi-Fi network function of the mobile phone or other electronic device.
[0024] It can be understood that the above-mentioned data to be transmitted includes data sent by mobile phones and other electronic devices and data received by mobile phones and other electronic devices, which will not be elaborated here.
[0025] In a possible implementation of the first aspect, the first processor is an application processor.
[0026] The process of transmitting the communication message includes the electronic device sending the communication message to the outside through the router and receiving the communication message sent from the external network through the router, which is not limited here.
[0027] In a second aspect, an embodiment of the present application provides an electronic device, comprising: a first processor, a second processor; one or more memories; the one or more memories store one or more programs, and when the one or more programs are executed by the one or more processors, the electronic device executes the method for managing a terminal device provided in the first aspect, wherein the electronic device enters a standby state at a first time point, and the first processor in the electronic device enters a sleep state; the second processor receives a first type of communication message sent by a routing device through a Wi-Fi connection, wherein the first type of communication message is sent in a broadcast manner and has no target receiving address; the second processor wakes up the first processor based on the received first type of communication message; the second processor powers off the Wi-Fi chip within a preset time after the first time point based on the first number of wake-up times of the first processor, wherein the wake-up times refer to the number of times the processor is woken up based on the first type of communication message, wherein the first number is greater than or equal to the preset number.
[0028] In a third aspect, an embodiment of the present application provides a computer-readable storage medium having instructions stored thereon. When the instructions are executed on a computer, the computer executes the method for managing a terminal device provided in the first aspect above.
[0029] In a fourth aspect, an embodiment of the present application provides a computer program product, including a computer program / instructions, which, when executed by a processor, implements the method for managing a terminal device provided in the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1a The figure shows a schematic diagram of an application scenario.
[0031] Figure 1b The figure shows a statistical result diagram of monitoring the sleep and wake-up status of the AP processor of a mobile phone.
[0032] Figure 1c Shown is a mobile phone record corresponding to Figure 1b Screenshot of the AP processor wakeup log for the scenario shown.
[0033] Figure 1d Another schematic diagram of monitoring and statistical results of the sleep and wake-up status of the AP processor of a mobile phone is shown.
[0034] Figure 1e Shown is a mobile phone record corresponding to Figure 1d Screenshot of the AP processor wakeup log for the scenario shown.
[0035] Figure 1f The above-mentioned embodiment provided in this application is shown Figure 1d to Figure 1e The figure shows the power consumption and standby current detection results of the mobile phone during standby.
[0036] Figure 2 The figure is a schematic diagram of an implementation scenario provided by an embodiment of the present application.
[0037] Figure 3 Shown is a schematic structural diagram of a mobile phone provided in an embodiment of the present application.
[0038] Figure 4a The figure shows a schematic diagram of a basic equipment data statistics process provided in an embodiment of the present application.
[0039] Figure 4b The figure is a schematic diagram of an implementation flow of a method for managing terminal devices provided in an embodiment of the present application.
[0040] Figure 5a The figure shows a schematic diagram of an interface for setting data flow related parameters of a mobile communication network provided in an embodiment of the present application.
[0041] Figure 5b Shown is a schematic diagram of a traffic statistics interface provided in an embodiment of the present application.
[0042] Figure 6 The figure is a schematic diagram of Wi-Fi wake-up statistics results provided in an embodiment of the present application.
[0043] Figure 7 The figure is a schematic block diagram of the system architecture of a mobile phone provided in an embodiment of the present application.
[0044] Figure 8 The diagram shows the interaction between various layers of the system when a method for managing terminal devices provided by an embodiment of the present application is implemented in a mobile phone system. DETAILED DESCRIPTION
[0045] Figure 1a According to an embodiment of the present application, a schematic diagram of an application scenario is shown.
[0046] like Figure 1aAs shown, scene 10 includes a mobile phone 100 and a router 200, wherein the mobile phone 100 can communicate with the external network through its own cellular data module, and the mobile phone 100 can also connect to the router 200 through its own Wi-Fi module and communicate with the external network through the router 200. It can be understood that the communication message received by the mobile phone 100 from the router 200 may include management frames, such as Beacon frames, collected data reported by other connected devices that must be forwarded by the router 200, and the Wi-Fi router responds to the detection request of the connected electronic device, or the PING packet generated for detecting the situation of each connected electronic device, etc. Among them, some communication messages are sent by the router 200 to each connected device such as a mobile phone in a broadcast manner, and lack a target receiving address, which is a useless message for electronic devices such as mobile phones. The introduction of specific useless messages will be described in detail below, and will not be repeated here.
[0047] like Figure 1a As shown, the external data packet of the external network can be forwarded to the mobile phone 100 through the router 200. In addition, the router 200 will also send management frames, such as Beacon frames, to the mobile phone 100. Usually, the router sends management frames regularly or sends corresponding management frames in response to requests, but some routers may frequently send management frames to connected mobile phones and other electronic devices due to short factory settings or when there is a safety fault. For example, frequently sending Beacon management frames will cause the Wi-Fi module of the mobile phone 100 to frequently wake up the AP processor, increasing power consumption. In some embodiments, the router 200 may also send some collected data uploaded by some intranet connection devices to the mobile phone 100 and other connection devices in a broadcasting manner. Such data generally does not need to be processed, but will cause the Wi-Fi module of the mobile phone 100 to frequently wake up the AP processor, increasing power consumption, so such data can also be called intranet garbage data. For example, other smart devices in the current Wi-Fi environment, such as a smart electric kettle with Wi-Fi function, upload water temperature data of the Wi-Fi router, etc., can be determined as intranet garbage data.
[0048] As an example, Figure 1b FIG. 1 shows a schematic diagram of monitoring and statistical results of the sleep and wake-up status of the AP processor of the mobile phone 100. Figure 1bAs shown in the figure, the mobile phone 100 was in standby for 6 hours, 37 minutes and 25 seconds during the user's no-operation period at night. There were 2676 cases where the Wi-Fi module received garbage data from the intranet to wake up the AP processor, of which 2674 were wake-ups based on the TCP protocol IPv4 data packets. According to the analysis results of the IPv4 data packets, these frequently received IPv4 data packets are almost useless data packets, so the corresponding 2674 wake-ups are almost useless wake-ups. These useless wake-ups lead to increased power consumption of the mobile phone 100 during standby, and the current is seriously deteriorated.
[0049] Figure 1c A mobile phone 100 records a corresponding Figure 1b Screenshot of the AP processor wakeup log for the scenario shown.
[0050] refer to Figure 1c As shown in the log, we can see that the AP processor is awakened because it receives an IPV4 data packet.
[0051] In other embodiments, the router 200 may also send down an Internet packet explorer (Packet Internet Group, referred to as PING packet) to detect the connection status of devices in the wireless local area network, such as obtaining the number of devices and device information simultaneously connected to the current Wi-Fi network. Under normal circumstances, the frequency of the router 200 sending down PING packets is very low, for example, no more than 5 times within 1 hour, but due to factors such as irregular configuration of some router 200 devices themselves or device failures, the router 200 may also frequently send down PING packets, causing the Wi-Fi module of electronic devices such as the mobile phone 100 to frequently wake up the AP processor, resulting in increased power consumption. No limitation is made here.
[0052] Figure 1d Another schematic diagram of monitoring and statistical results of the sleep and wake-up status of the AP processor of the mobile phone 100 is shown.
[0053] like Figure 1d As shown, during the period when the mobile phone 100 keeps the Wi-Fi module in normal working state and stands by for 1 hour, 18 minutes and 57 seconds, the AP processor is awakened 206 times, wherein the Wi-Fi module receives PING packets frequently sent by the router device in the currently connected Wi-Fi network segment ( Figure 8 The "ICPM REQUEST" shown in the figure causes the AP processor to wake up frequently 128 times. From this, it can be calculated that the frequency of the AP processor being woken up by the PING packet received by the Wi-Fi module is about 2 times per minute on average, and under normal circumstances, the router sends PING packets to the Wi-Fi module of the mobile phone 100 no more than 5 times per hour. Therefore, such frequent PING packet wake-ups will also increase the power consumption of the mobile phone 100 and worsen the standby current.
[0054] Figure 1e A mobile phone 100 records a corresponding Figure 1d Screenshot of the AP processor wakeup log for the scenario shown.
[0055] refer to Figure 1e As shown in the log, the terminal device component wakes up (i.e. Figure 1e The "irq" records shown) are frequent.
[0056] Continue to refer Figure 1e From the logs shown, we can see that the terminal device component that is awakened the most among the multiple terminal device component awakenings (irq) is "wlan0", which indicates the Wi-Fi module of the mobile phone 100. In other words, Figure 1e In the "irq" wake-up record shown, there are multiple cases where the Wi-Fi module wakes up the AP processor.
[0057] Figure 1f Shown above Figure 1d to Figure 1e The diagram shown is a schematic diagram of power consumption and standby current detection results during the standby period of the mobile phone 100.
[0058] like Figure 1f As shown, when the screen starts to turn off, it can be detected that the battery level of the mobile phone 100 is 93%.
[0059] During the screen-off standby period, since the AP processor is frequently awakened, the average operating current of the AP processor during standby is 49mAh.
[0060] When the standby mode ends, refer to Figure 1f As shown, the standby time is 1 hour, 18 minutes and 57 seconds, and it is detected that the battery of the mobile phone 100 is reduced by 2%, that is, the battery of the mobile phone 100 is 91% at this time. It can be inferred that if the standby time is longer, for example, 6 to 8 hours, the mobile phone 100 may be frequently awakened by the AP processor during the standby period, and the current deterioration may be more serious, and the battery may be reduced by 15% to 20%, or even more.
[0061] When the mobile phone 100 is in screen-off standby mode, the Wi-Fi module of the mobile phone 100 frequently receives abnormal wake-up data such as intranet junk data and useless PING packets, which causes the AP processor to wake up frequently and uselessly, resulting in increased power consumption of the mobile phone 100 during standby mode and serious deterioration of current.
[0062] The embodiment of the present application provides a method for managing terminal devices, which can reduce the power consumption of the device in a low-traffic business standby scenario, and is applied to terminal electronic devices such as mobile phones. Specifically, when the method detects that the Wi-Fi module of an electronic device such as a mobile phone frequently receives useless abnormal data, resulting in the useless wake-up of the first processor (such as an AP processor), based on the current scene state of the mobile phone (such as whether it is in a long standby scenario and a low-traffic business scenario, etc.), and the current Wi-Fi network situation, whether the data traffic of the mobile communication network is sufficient and available, etc., further confirm whether the preset power-off conditions for powering off the Wi-Fi module are met. When the Wi-Fi module meets the preset power-off conditions, the Wi-Fi module can be controlled to be powered off, and the router data is no longer received, and the data traffic corresponding to the mobile communication network is switched to standby. When the preset power-off conditions for powering off the Wi-Fi module are not met, the Wi-Fi operation continues, and the data sent by the router continues to be received.
[0063] In this embodiment of the present application, powering off the Wi-Fi module or controlling the Wi-Fi module to power off means disconnecting the power supply circuit of the Wi-Fi module to stop the Wi-Fi module from working.
[0064] Among them, the method of confirming whether the preset power-off condition is met can be, for example: when it is detected that the mobile phone is currently in a long standby state at a common location (i.e., entering a long standby scenario), and the data traffic of the current mobile communication network is sufficient, it can be confirmed that the Wi-Fi module meets the preset power-off condition. Or when it is detected that the mobile phone is currently in a long standby scenario at a common location, the data traffic margin of the current mobile communication network is sufficient, and the current mobile phone has no pending services that require large traffic (such as download tasks, etc.), it can be confirmed that the Wi-Fi module meets the preset power-off condition. Among them, the data traffic of the mobile communication network can be, for example, the Internet traffic corresponding to the SIM card account installed on the mobile phone 100 within the package month.
[0065] It is understandable that when it is confirmed that the Wi-Fi module meets the preset power-off condition, the mobile phone 100 performs power-off processing on the Wi-Fi module. The mobile phone 100 can send a power-off instruction to the Wi-Fi module through the AP processor, for example, which will not be described in detail here.
[0066] In this way, while ensuring that mobile phones and other electronic devices can receive messages normally in standby mode, it is possible to effectively shield network service devices such as routers from sending useless communication messages to mobile phones and other electronic devices, causing the processor to wake up frequently. This can effectively reduce the power consumption of mobile phones and other electronic devices in standby mode, including the power consumption reduced by allowing the processor to enter a sleep state stably, and the power consumption reduced after the Wi-Fi is powered off.
[0067] It is understood that the above-mentioned common locations may be, for example, a user's home or office, where the Wi-Fi network is relatively stable, and the types and number of electronic devices connected to the Wi-Fi router are relatively fixed. Therefore, in common locations, the behavior of a user operating an electronic device such as the mobile phone 100 to enter a long standby state is predictable.
[0068] In addition, in the above-mentioned preset power-off conditions, the process of judging whether the data traffic of the mobile communication network is sufficient and available can be achieved, for example, by judging whether the remaining amount of mobile communication network traffic corresponding to the configuration of electronic devices such as mobile phone 100 is sufficient, whether it is an unlimited traffic package, etc. Among them, the above-mentioned mobile communication network can be, for example, 3G / 4G / 5G network, etc., which is not limited here. Nowadays, the number of users configuring large traffic packages or even unlimited traffic packages for the mobile phones they use is increasing. The user's attention to data traffic is no longer as high as before when using the mobile phone. Therefore, on the premise of identifying that the user has used a large traffic package, if it is determined that the mobile phone is in a long standby state and is in a low-traffic business scenario, the Wi-Fi module can be powered off when it is detected that the Wi-Fi module meets the preset power-off conditions, and the data traffic is switched to continue standby. In this way, it can be ensured that the mobile phone used by the user can still receive messages normally after the Wi-Fi module is powered off.
[0069] It is understandable that if a mobile phone or other electronic device receives useful data, such as useful data sent from an external network forwarded by a router and specifying the recipient's IP address, the mobile phone's Wi-Fi module can still wake up the corresponding processor for processing. In addition, if the frequency of useless data sent by the router is low and does not cause the Wi-Fi module to frequently wake up the corresponding processor to work, mobile phones and other electronic devices can continue to keep the Wi-Fi module working normally, so that a better Wi-Fi network response can be maintained. No restrictions are made here.
[0070] In other embodiments, in the process of determining whether the preset power-off condition is met, it is also possible to detect whether the electronic device is currently executing a large-volume download task, such as downloading a video file, etc. If so, the Wi-Fi module is not powered off. In this way, it is possible to avoid excessive consumption of data traffic of the mobile communication network of the mobile phone when the Wi-Fi module is powered off and switched to data traffic standby, causing losses to the user, thereby resulting in a poor user experience.
[0071] As an example, Figure 2 A schematic diagram of an implementation scenario is shown according to an embodiment of the present application.
[0072] like Figure 2As shown, before the mobile phone 100 detects that the Wi-Fi module frequently wakes up the AP processor, it can first determine whether the data traffic of the mobile communication network is sufficient, such as through the full network aggregation acceleration technology (LinkTurbo), or based on the traffic package data set by the user, to query whether the remaining amount of the current data traffic is sufficient, or whether the data traffic package of the mobile communication network is an unlimited traffic package, etc., to confirm whether there are restrictions on the mobile phone 100 using the mobile communication network standby. In addition, the mobile phone 100 can determine the common places where the user uses the mobile phone 100, such as the user's home or office, by means of address fence (Geo-fencing) technology and the like. As mentioned above, the Wi-Fi network environment of such common places is relatively stable, and the types and numbers of electronic devices connected to the router in the Wi-Fi environment are relatively fixed, so it is helpful to predict the behavior of users operating electronic devices such as mobile phones 100 to enter a long standby state.
[0073] After confirming that the mobile phone 100 has no data traffic usage restrictions and enters a long-term standby state at a common location, the mobile phone 100 can further determine whether the preset power-off conditions for powering off the Wi-Fi module are met when receiving useless data sent by the connected router 200. If so, the mobile phone 100 can control the power-off of the Wi-Fi module to shield these useless data, thereby avoiding the AP processor from being frequently awakened by the received useless data, so as to achieve the purpose of reducing the power consumption of the processor. Among them, the useless data of the router 200 is as described above, for example, it can be frequently sent PING packets, useless Beacon management frames, and intranet junk data, etc., which will not be repeated here.
[0074] Continue as Figure 2 As shown, while the mobile phone 100 is powering off the Wi-Fi module, it can switch to using the data traffic of the mobile communication network to continue standby. At this time, the external data packet sent from the external network can be transmitted to the mobile phone 100 through the mobile communication network, and the mobile phone 100 uses the AP processor to process the received external data packet, thereby avoiding the loss of useful messages transmitted by the external network. It can be understood that in the process of the mobile phone 100 using the mobile communication network to receive and process external data packets from the external network, there is no PING packet and junk data that affects the awakening of the AP processor. At this time, the mobile phone 100 can maintain normal low-power operation in the standby state, thereby maintaining a longer standby time, which is conducive to improving the user experience.
[0075] It can be understood that the method for managing terminal devices provided in the embodiment of the present application can be applicable to electronic devices including but not limited to the above-mentioned mobile phone 100, as well as tablet computers, desktops, laptops, handheld computers, netbooks, and augmented reality (AR) and virtual reality (VR) devices, smart TVs, smart watches and other wearable devices, servers, mobile email devices, car equipment, portable game consoles, portable music players, reader devices, televisions in which one or more processors are embedded or coupled, or other electronic devices that can access the network.
[0076] Figure 3 According to an embodiment of the present application, a structural schematic diagram of a mobile phone 100 is shown.
[0077] The mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, and the like.
[0078] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the mobile phone 100. In other embodiments of the present application, the mobile phone 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0079] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (i.e., the above-mentioned AP processor), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.
[0080] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0081] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0082] In the embodiment of the present application, the memory may store instructions and data for executing the method for managing terminal devices provided in the embodiment of the present application. The processor 110 (e.g., an AP processor) may call the relevant instructions and data in the memory to execute the method for managing terminal devices provided in the embodiment of the present application, so as to achieve the purpose of reducing the processor power consumption of the mobile phone 100 during standby.
[0083] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface 130, etc.
[0084] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the mobile phone 100. In other embodiments of the present application, the mobile phone 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0085] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0086] The wireless communication function of the mobile phone 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0087] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in mobile phone 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0088] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the mobile phone 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0089] The modem processor (commonly referred to as a modem, i.e., Modem) may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and may be arranged in the same device as the mobile communication module 150 or other functional modules.
[0090] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the mobile phone 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0091] In some embodiments, the antenna 1 of the mobile phone 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the mobile phone 100 can communicate with the network and other devices through wireless communication technology. The above wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The above-mentioned GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0092] The mobile phone 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0093] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Mini-LED, Micro-LED, Micro-OLED, quantum dot light-emitting diodes (QLED), etc. In some embodiments, the mobile phone 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0094] The mobile phone 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
[0095] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0096] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the mobile phone 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0097] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the mobile phone 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0098] Video codecs are used to compress or decompress digital videos. Mobile phone 100 may support one or more video codecs. Thus, mobile phone 100 may play or record videos in various coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0099] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, the intelligent cognition of the mobile phone 100 can be realized, such as: image recognition, face recognition, voice recognition, text understanding, etc.
[0100] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0101] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the mobile phone 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the mobile phone 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.
[0102] The mobile phone 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor.
[0103] The key 190 includes a power key, a volume key, etc. The key 190 can be a mechanical key or a touch key. The mobile phone 100 can receive key input and generate key signal input related to the user settings and function control of the mobile phone 100.
[0104] Motor 191 can generate vibration prompts.
[0105] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0106] The SIM card interface 195 is used to connect the SIM card. The SIM card can be connected to and separated from the mobile phone 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The mobile phone 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the above multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The mobile phone 100 interacts with the network through the SIM card to realize functions such as calls and data communications. In some embodiments, the mobile phone 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the mobile phone 100 and cannot be separated from the mobile phone 100.
[0107] Based on the above Figure 2 The implementation scenario shown, and Figure 3 The structure of the electronic device such as the mobile phone 100 shown in the figure, combined with the specific implementation process of the method for managing the terminal device provided by the embodiment of the present application, is introduced in detail.
[0108] It should be noted that the steps in the methods and processes in this application are numbered for ease of reference, rather than to limit the order of precedence. If there is an order between the steps, the written description shall prevail.
[0109] Figure 4a According to the embodiment of the present application, a schematic diagram of a basic equipment data statistics process is shown. It can be understood that Figure 4a The process shown can be executed before implementing the method for managing terminal devices in the embodiment of the present application, and the execution order of each step is not limited to Figure 4a The order shown and described, Figure 4a The implementation entity of each step of the illustrated process may be the mobile phone 100 or other electronic devices, and no limitation is made here.
[0110] like Figure 4a As shown, the process includes the following steps:
[0111] 401a: Obtain the location information of the router to which the mobile phone is connected, and determine the common location of the mobile phone. It should be noted that the router may be a wireless router. The location information of the router is used to indicate the location of the router. For example, if the location information of the router indicates that the router is at home, the location of the router can be determined based on the home address. For another example, the location information of the router may include the location of the mobile phone. Since the mobile phone is connected to the router, the location of the router can be determined based on the location of the mobile phone.
[0112] Exemplarily, the mobile phone 100 can determine the virtual geographic boundary of the location of the currently connected Wi-Fi router through the address fence technology, and determine the location that meets the preset time condition as a frequently used location. The preset time condition can be a time threshold that exceeds a preset time. For example, if the mobile phone 100 recognizes that the duration of connection to a Wi-Fi router exceeds 10 hours in a day, the location of the Wi-Fi router can be determined as a frequently used location for the mobile phone to connect to the router. In other embodiments, the preset time condition can also be a preset time period. For example, the location of the Wi-Fi router connected by the mobile phone 100 from 1:00 to 4:00 in the morning can be determined as a frequently used location. This is not limited here.
[0113] It is understood that the mobile phone 100 can mark the frequently used places identified, for example, the frequently used places identified based on the time period of 1:00 to 4:00 in the morning can be marked as "home". In this way, when the user returns home with the mobile phone 100, the mobile phone 100 can immediately identify the current location as a frequently used place when it connects to the Wi-Fi router at home.
[0114] It is understood that the process of marking the frequently used places by the mobile phone 100 can be completed automatically based on default preset conditions, or can be completed in response to the user inputting the name of the frequently used place. In other embodiments, the mobile phone 100 can also identify whether the location is a frequently used place by identifying the name of the Wi-Fi hotspot provided by the connected router or the device ID of the router, etc., which is not limited here.
[0115] 402a: Obtaining mobile phone data traffic related information.
[0116] Exemplarily, the data traffic information of the mobile phone 100 may include the SIM card inserted into the mobile phone 100, the corresponding mobile communication network traffic package information or data traffic remaining information, etc. The mobile phone 100 can obtain the data traffic information of the mobile communication network based on the traffic package information of the mobile communication network set by the user's operation of the mobile phone 100, such as the total amount of data traffic and the used traffic, etc. The mobile phone 100 can also query the data traffic remaining information of the current mobile communication network by sending a text message to the operator of the SIM card account to obtain the data traffic information of the mobile communication network. In this way, the mobile phone 100, in the process of implementing the method for managing terminal equipment provided by the embodiment of the present application, can determine whether the preset power-off conditions for powering off the Wi-Fi module are met based on the data traffic information of the mobile communication network counted in this step. The details will be described in detail below and will not be repeated here.
[0117] As an example, the interface for the user to operate the mobile phone 100 to set the traffic package related information of the mobile communication network can refer to Figure 5a As shown. The user can set parameters such as "monthly total traffic", "monthly start date" (i.e. monthly traffic update date), and "limit reminder" for traffic for SIM card 1 on the traffic setting interface 500 displayed by the mobile phone 100. If the mobile phone 100 is dual-SIM dual-standby, the user can also set parameters such as "monthly total traffic", "monthly start date", and "limit reminder" for traffic for SIM card 2 on the traffic setting interface 500. No further details are given here. Among them, the "monthly total traffic" can be determined by querying the operator and obtaining the traffic package situation. For example, the mobile phone 100 can, with the authorization of the user, regularly send data traffic query text messages to the corresponding operator based on the installed SIM card, so as to timely update the data traffic related information of the mobile communication network on the mobile phone 100.
[0118] In other embodiments, the LinkTurbo communication framework can be integrated into the application framework layer of the mobile phone 100, and then the applications (such as the power saving wizard, etc.) running on the mobile phone 100 can use the framework service to monitor the use of Wi-Fi data or mobile communication network traffic by each application running on the mobile phone 100, and then obtain the remaining amount of mobile communication network traffic used by the mobile phone 100, whether it is unlimited traffic, etc., and then determine whether the data traffic of the mobile communication network is sufficient and available. In other embodiments, the mobile phone 100 can also use some framework drivers with traffic statistics functions, such as the Dubai driver set in the kernel layer of the system installed in the mobile phone 100, refer to Figure 5bThe Dubai traffic statistics interface shown is used to count the data traffic of the modem transmitter (Tx) and the receiver (Rx), so as to determine the data traffic consumed by the mobile phone 100, and then calculate the remaining data traffic in combination with the total traffic, etc., without limitation.
[0119] Among them, the LinkTurbo communication framework and the introduction of the Dubai driver will be described below in conjunction with the system architecture diagram of the mobile phone 100, and will not be repeated here.
[0120] 403a: Count the standby time period and the standby duration, and determine the standby duration threshold corresponding to the long standby scenario.
[0121] Exemplarily, the mobile phone 100 can determine that it has entered the standby state when it detects the user's lock screen operation, or automatically turns off the screen after no user operation is detected for a certain time threshold. In the standby state, the mobile phone 100 can count the standby time and the time period in a day when the mobile phone 100 is in the standby state for a long time, and then the mobile phone 100 can determine the standby time threshold corresponding to entering the long standby scene in different time periods based on the counted standby time period and standby time information. For example, the mobile phone 100 is usually in the standby state during the time period from 23:00 at night to 6:00 in the morning, so the mobile phone 100 can determine that in the time period from 23:00 at night to 6:00 in the morning, if the standby time exceeds 15 minutes, it is judged that the mobile phone 100 has entered the long standby scene; in other time periods, it can be judged that the mobile phone 100 has entered the long standby scene when it is identified that the standby time exceeds 20 minutes.
[0122] In this way, when the mobile phone 100 implements the method for managing terminal devices provided in the embodiment of the present application, it can determine whether it is in a long standby scenario according to the standby time threshold corresponding to the long standby scenario determined in this step, and then confirm whether it is necessary to count the frequency of useless wake-ups, etc. The details will be described in detail below and will not be repeated here.
[0123] 404a: Count the service traffic data corresponding to the AP processor being in a dormant state in a long standby scenario, and determine the service traffic threshold corresponding to a low service traffic scenario.
[0124] Exemplarily, the above-mentioned sleep state refers to a state in which the processor does not execute instructions and is in a low-power mode. In the sleep state, the core clock and bus clock of the processor may be turned off and all software visible states are maintained, but if data needs to be processed or instructions need to be executed, it may take a long time to wake up. It can be understood that after the mobile phone 100 enters the standby state, the AP processor may continue to execute unfinished processing tasks for a period of time. After completing all processing tasks, the processor of the mobile phone 100 can gradually turn off the kernel and bus, etc., and enter a sleep state to reduce power consumption and reduce power consumption. After the processor of the mobile phone 100 enters the sleep state, some modules of the mobile phone 100 may still work and consume lower business traffic. The mobile phone 100 can count the business traffic data at this time, and determine the business traffic data corresponding to the low business traffic scenario based on the statistical results.
[0125] In this way, when the mobile phone 100 implements the method for managing terminal devices provided in the embodiment of the present application, it can determine whether it is in a low-traffic business scene according to the business traffic threshold corresponding to the low-traffic business scene determined in this step, and then confirm whether the preset power-off conditions for powering off the Wi-Fi module are met. The details will be described in detail below and will not be repeated here.
[0126] Based on the above Figure 4a The basic equipment data collected by the process shown, Figure 4b According to an embodiment of the present application, a schematic diagram of an implementation flow of a method for managing a terminal device is shown. Taking the first processor as an example, it can be understood that: Figure 4b The implementation subject of each step of the illustrated process may be the mobile phone 100 or other electronic devices, and no limitation is made here.
[0127] Specifically, Figure 4b As shown, the process includes the following steps:
[0128] 401b: Detect that the mobile phone enters the standby state, and obtain the status information of the AP processor.
[0129] For example, the mobile phone 100 can determine to enter the standby state when it detects the user's lock screen operation, or automatically turns off the screen after no user operation is detected for a certain time threshold. After entering the standby state, the mobile phone 100 can obtain the state information of the AP processor in real time, including relevant data when the AP processor is executing a processing task, and relevant data when the AP processor is in a dormant state, which is not limited here.
[0130] 402b: Detect that the AP processor wakes up from a sleep state, and determine whether it is a useless wakeup.
[0131] Exemplarily, the mobile phone 100 can detect that the AP processor is awakened from a sleep state based on the acquired processor status information. Furthermore, the mobile phone 100 can determine the reason for waking up the AP processor according to the source and type of data that the AP processor needs to process, so as to determine whether it is a useless wakeup. Among them, in the embodiment of the present application, useless wakeup refers to the Wi-Fi module of the mobile phone 100 receiving some useless messages sent by the Wi-Fi router, causing the Wi-Fi module to wake up the AP processor. The useless message refers to the communication message sent by the Wi-Fi router in a broadcast manner without a target receiving address, the intranet junk data, management frames, PING packets, etc. forwarded by the Wi-Fi router.
[0132] Specifically, as an example, when the Wi-Fi module of the mobile phone 100 receives a communication message data packet sent by the router 200, it will wake up the AP processor to process the received communication message data packet. The AP processor can parse the received communication message data packet. Among them, if the communication message obtained by the analysis is a communication message specified to be sent to a certain application (such as a WeChat TM application), the AP processor can send the communication message obtained by the analysis to the corresponding application for processing, and this type of communication message is a useful message. If the communication message obtained by the analysis is a communication message without a target receiving address, such as intranet junk data, management frames, PING packets, etc. sent by the router in a broadcast manner, this type of communication message is a useless message. At this time, the AP processor can record the type and source (such as a router) of the useless message, and identify and record this wake-up as 1 useless wake-up.
[0133] When the mobile phone 100 detects that the AP processor is awakened, it can count the number of such useless awakenings, and then determine whether the frequency (number of times / statistical duration) of useless awakenings exceeds a preset frequency threshold. Figure 6 As shown in FIG. 1 , the results of the Wi-Fi wake-up statistics show that the mobile phone 100 generated 2674 wake-ups during the standby period (6 hours, 37 minutes and 25 seconds), and these wake-ups were caused by IPV4 packets (i.e. Figure 6 The IPv4 TCP Packet shown in FIG. 4 is caused by assuming that the preset wake-up frequency threshold is 1 time / 5 minutes. At this time, it can be determined that the frequency of useless wake-ups far exceeds the preset frequency threshold. These intranet junk data in the form of IPv4 data packets are usually sent in a broadcast mode and have no target receiving address. For these intranet junk data, the processor can record the source and type of the data packet for determining the useless wake-up frequency in the following step 414.
[0134] It is understandable that the processor can identify the communication messages obtained by parsing and record the sources and types of the identified useless messages by running some software programs with data identification and recording capabilities. The software program can be, for example, a Dubai driver, etc., which is not limited here.
[0135] Among them, the Dubai driver can record the working status, usage time and system events of each structural component of the mobile phone 100. The Dubai driver can also identify the source address (i.e., source) and target receiving address of the communication message obtained by the processor analysis, and identify and record whether the communication message is a useful message or a useless message, as well as the type of useless message. For example, Dubai can identify whether the type of communication message received by the Wi-Fi module is a PING packet sent by a router or a management frame. Dubai can also determine whether the communication message data packet is an external network data packet sent from an external network or a data packet sent from an intranet router based on the source address (e.g., IP address) of the communication message received by the Wi-Fi module. If it is an external network data packet, it can be determined that the communication message is a useful message; if it is an intranet data packet, it can be further determined whether the communication message is a useless message based on whether there is a specific target receiving address. If the communication message has no target receiving address, that is, there is no specific recipient address, such as broadcast data, it can be determined that the data packet is a useless data packet; if there is a specific recipient address, it can be determined that the communication message is a useful message. I will not go into details here.
[0136] 403b: Get the standby time and confirm that the phone has entered the long standby scenario.
[0137] Exemplarily, in the standby state, the mobile phone 100 can record the standby time. When the standby time exceeds the standby time threshold corresponding to the long standby scenario, it can be confirmed that the mobile phone 100 enters the long standby scenario. Among them, the determination of the standby time threshold corresponding to the long standby scenario can refer to the relevant description in the above step 403a, which will not be repeated here.
[0138] 404b: Determine the useless wake-up frequency of the AP processor in the long standby scenario.
[0139] Exemplarily, after determining that the mobile phone 100 has entered the long standby scenario, the mobile phone 100 calculates and determines the useless wake-up frequency of the AP processor according to the standby time obtained and the number of useless wake-ups identified. Among them, the mobile phone 100 can classify the useless wake-ups according to the types of useless messages of the processor waking up the AP processor for the number of useless wake-ups identified, and then calculate and determine the useless wake-up frequencies corresponding to each type of useless message. When executing the following step 405b to determine whether the useless wake-up frequency exceeds the preset frequency threshold, it is also possible to distinguish and compare the useless wake-up frequencies of each type. For details, please refer to the relevant description below, which will not be repeated here.
[0140] It can be understood that after executing the collection of relevant data and status of the above steps 401b to 404b, the mobile phone 100 can continue to execute the following judgment steps 405b, and one or more of 406b to 408b to confirm whether the Wi-Fi module needs to be powered off.
[0141] 405b: Determine whether the useless wake-up frequency exceeds a preset frequency threshold. If the determination result is yes, then the following step 406b may be executed to further determine whether the location of the router to which the mobile phone 100 is connected is a common location, so as to confirm whether the preset power-off condition for powering off the Wi-Fi module is met; if the determination result is no, indicating that the Wi-Fi module does not meet the preset power-off condition, then this process may be terminated.
[0142] That is, when it is determined that the useless wake-up frequency exceeds the preset frequency threshold, the mobile phone 100 can continue to perform one or more of the following judgment steps 406b to 409b to further confirm whether other conditions for powering off the WiFi module are met. In some embodiments, after the mobile phone 100 executes this step to confirm whether the useless wake-up frequency exceeds the preset frequency threshold, it can also execute the following step 410b to power off the Wi-Fi module, which is not limited here.
[0143] Exemplarily, the mobile phone 100 can compare different types of useless wake-up frequencies with the preset frequency thresholds of the corresponding types. When any type of useless wake-up frequency exceeds the frequency threshold of the corresponding type, it can be determined that the useless wake-up frequency exceeds the preset frequency threshold. As an example, the mobile phone 100 can set a first frequency threshold, such as 5 times / hour, corresponding to the useless wake-up of the AP processor caused by the Wi-Fi module receiving PING packets frequently sent from the router 200; the second frequency threshold, such as 1 time / 5 minutes, can be set corresponding to the useless wake-up of the AP processor caused by the Wi-Fi module receiving useless management frames frequently sent from the router 200, such as Beacon management frames, or the useless wake-up of the AP processor caused by the Wi-Fi module receiving junk data packets reported by other smart devices frequently sent from the connected router 200. This is because the normal frequencies of the router 200 sending PING packets, management frames, and forwarding intranet junk data generally vary greatly. For example, the router 200 rarely sends PING packets in a normal state. It may send only one PING packet or no PING packet in an hour, or it may send 2 to 5 times in an hour. Therefore, a smaller frequency threshold can be set corresponding to the useless wake-up frequency caused by PING packets, such as the above 5 times / hour. No limitation is made here.
[0144] 406b: Determine whether the current location of the mobile phone is a common location. If the determination result is yes, the following step 407b can be continued to determine whether the mobile communication network traffic of the mobile phone 100 is available to confirm whether the preset power-off condition for powering off the Wi-Fi module is met; if the determination result is no, indicating that the Wi-Fi module does not meet the preset power-off condition, the current process can be terminated.
[0145] That is, when it is determined that the location of the router currently connected to the mobile phone is a common location, the mobile phone 100 can continue to perform one or more of the following judgment processes in the judgment steps 407b to 408b to further confirm whether other conditions for powering off the WiFi module are met. In some embodiments, after the mobile phone 100 executes this step to confirm whether the location of the router currently connected to the mobile phone is a common location, it can also execute the following step 410b to power off the Wi-Fi module, which is not limited here.
[0146] For example, the mobile phone 100 can obtain the location information of the currently connected Wi-Fi router through the address fence technology to determine whether the current location is a common location. The mobile phone 100 can also determine whether the current location is a common location through its own positioning function, which is not limited here. The specific process of the mobile phone 100 obtaining the location information of the currently connected router can refer to the relevant description in the above step 401a, which will not be repeated here.
[0147] Taking the example of whether the current location of the mobile phone 100 is a common location based on the location information of the currently connected Wi-Fi router obtained, the mobile phone 100 can compare the location information obtained with the common location information determined in the above step 401a, so as to confirm whether the currently connected router is a router in a common location. Based on the common locations where the mobile phone connects to the Wi-Fi router recorded in the above step 401a, the mobile phone 100 can compare the device ID of the currently connected router 200 or the name of the connected Wi-Fi hotspot with the router ID or Wi-Fi hotspot name in the common location to confirm whether the location of the currently connected router is a common location.
[0148] 407b: Determine whether the mobile communication network meets the usage conditions based on the acquired information related to the mobile communication network data flow.
[0149] If the judgment result is yes, the following optional step 408b can be continued to be executed to further determine whether the mobile phone 100 is currently in a low-traffic business scenario to confirm whether the preset power-off conditions for powering off the Wi-Fi module are met, or the following step 410b can be executed to power off the Wi-Fi module; if the judgment result is no, indicating that the Wi-Fi module does not meet the preset power-off conditions, then this process can be ended.
[0150] That is, when it is determined that the current mobile communication network of the mobile phone meets the usage conditions, the mobile phone 100 can continue to perform the following judgment steps 408b to 409b to further confirm whether other conditions for powering off the WiFi module are met. In some embodiments, after the mobile phone 100 performs this step to confirm that the current mobile communication network of the mobile phone meets the usage conditions, it can also perform the following step 410b to power off the Wi-Fi module, which is not limited here.
[0151] Exemplarily, the mobile communication network meets the usage conditions, which mainly means that the consumption of data traffic in the mobile communication network standby mode will not bring a bad experience to the user. For example, when the remaining data traffic of the mobile communication network is sufficient or the traffic package of the mobile communication network is an unlimited traffic package, the user is not sensitive to the data traffic consumption of the mobile communication network. In this case, the data traffic of the mobile communication network can be considered to meet the usage conditions. Based on the data traffic related information of the mobile communication network obtained in the above step 402a, the mobile phone 100 confirms whether the current mobile communication network meets the usage conditions, that is, determines whether it is currently possible to switch from the Wi-Fi network standby mode to the mobile communication network standby mode.
[0152] 408b: Obtain the service flow data of the mobile phone in the standby state.
[0153] For example, when the mobile phone 100 is in standby mode, the AP processor may also process useful messages received by the Wi-Fi module, such as receiving WeChat TM messages, or executing background download tasks in video applications, etc. At this time, the business traffic data of the mobile phone 100 will be relatively large, and the network speed may reach 2M / s, etc. Of course, when the mobile phone 100 is in standby mode, if the AP processor does not perform high-traffic business and does not need to process useful messages, and only processes some useless messages sent by the router, the business traffic data of the mobile phone 100 will be small. At this time, the mobile phone 100 is suitable for turning off the Wi-Fi module to put the AP processor into a stable sleep state to reduce power consumption.
[0154] Therefore, judging whether the mobile phone 100 is currently in a low-traffic service scenario based on the service traffic data of the mobile phone in standby mode is actually a process of confirming whether the AP processor of the mobile phone 100 is suitable for entering a stable sleep state in standby mode. The specific judgment process will be described in the following steps and will not be repeated here.
[0155] 409b: Determine whether the mobile phone is in a low-traffic business scenario based on the business traffic data. If the judgment result is yes, then proceed to the following step 410b to power off the Wi-Fi module; if the judgment result is no, indicating that the Wi-Fi module does not meet the preset power-off condition, then this process can be terminated.
[0156] That is to say, when it is determined that the mobile phone 100 is in a low-traffic business scenario, the mobile phone 100 can execute the following step 410b to power off the Wi-Fi module, and no limitation is made here.
[0157] Exemplarily, the mobile phone 100 can compare the current service traffic data with the service traffic threshold corresponding to the low service traffic scenario confirmed in the above step 404a. If the service traffic data of the mobile phone 100 is less than the service traffic threshold, it can be confirmed that the mobile phone 100 is in a low-traffic service scenario at this time. On the contrary, if the current service traffic data of the mobile phone 100 is large, for example, reaching 2M / s, etc., it indicates that the AP processor of the mobile phone 100 may be executing some background-running application or service download tasks, etc., for example, a video application may be downloading videos in the background. In this case, in order to avoid excessive consumption of data traffic of the mobile communication network, the Wi-Fi module may not be powered off, that is, it can be determined that the Wi-Fi module does not meet the preset power-off conditions at this time.
[0158] Optionally, when the mobile phone 100 turns off the screen and enters the standby state, the mobile phone 100 can also use an application with network speed detection capability such as a mobile phone manager to detect the real-time network speed of the data port of the mobile phone 100 in real time, and / or collect statistics on the traffic consumption of the user's frequently used applications (APP) in the standby state and the time period of version updates, so as to confirm whether the mobile phone 100 is in a low-traffic business scenario.
[0159] Optionally, in the process of implementing the method for managing terminal devices provided in the embodiment of the present application, the mobile phone 100 can execute one or more of the above-mentioned judgment steps 406b, 407b and 409b to confirm whether the preset power-off conditions for powering off the Wi-Fi module are met, and the order of executing each judgment step is not limited to the order of step execution described in the embodiment of the present application, and is not limited here.
[0160] Optionally, when the mobile phone 100 meets at least one of the following conditions, the preset power-off condition is met and the Wi-Fi module is powered off: 1. The current location of the mobile phone 100 is a common location; 2. The mobile communication network of the mobile phone meets the usage conditions; 3. The mobile phone is currently in a low-traffic business scenario. Of course, it can also be determined that the preset power-off condition is met when any two of these conditions are met; or when all three conditions are met, it is determined that the preset power-off condition is met.
[0161] 410b: Power off the Wi-Fi module.
[0162] Exemplarily, after executing one or more of the judgments in steps 406b, 407b, and 409b above, if it is confirmed that the mobile phone 100 meets the preset power-off conditions for powering off the Wi-Fi module, the Wi-Fi module is powered off. Specifically, for example, the awakened AP processor can be used inside the mobile phone 100 to send a power-off instruction to the Wi-Fi module to control the Wi-Fi module to power off and stop receiving useless data. Furthermore, the mobile phone 100 can shield the situation where the Wi-Fi module frequently causes the AP processor to wake up uselessly, thereby causing the AP processor to be unable to be in a stable dormant state. In this way, the power consumption of the AP processor is reduced, which is beneficial to energy saving and consumption reduction of the mobile phone 100 in long standby scenarios.
[0163] 411b: When receiving a data processing request that requires waking up the Wi-Fi module, power on the Wi-Fi module to resume operation of the Wi-Fi module.
[0164] Exemplarily, the data processing request that needs to wake up the Wi-Fi module refers to a data processing request that may require a large amount of traffic to receive a data packet and a large amount of traffic to process the received data. After the Wi-Fi module is powered off, if the mobile phone 100 detects a user operation and lights up the screen, or receives a data packet sent by a modem, or detects that a preset high-traffic task is about to be executed, such as an automatic update version of an application, or an automatic system upgrade, the mobile phone 100 can power on the Wi-Fi module. Specifically, for example, the mobile phone 100 can wake up the AP processor and send a power-on instruction to the Wi-Fi module through the AP processor to control the Wi-Fi to power on and resume work.
[0165] Figure 7 1 is a schematic block diagram of the system architecture of the mobile phone 100 according to an embodiment of the present invention.
[0166] The system architecture of the mobile phone 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention takes the Android system of the layered architecture as an example to exemplify the software structure of the mobile phone 100.
[0167] The layered architecture divides the system into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: application layer (APP layer), application framework layer (FWK layer), Kernel layer and hardware abstraction layer (HAL layer).
[0168] like Figure 7 As shown, the APP layer may include a series of application packages. In the embodiment of the present application, the APP layer may run a "power saving wizard" application, which, when executed by the processor, can interact with other layers of the system to implement the above Figure 4b The steps shown are used to implement the method for managing terminal devices provided in the embodiment of the present application.
[0169] It is understandable that the application packages installed by the APP layer may also include gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications, without limitation here.
[0170] The FWK layer provides an application programming interface (API) and programming framework for applications in the APP layer. The FWK layer may include some predefined functions, as well as a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
[0171] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0172] Content providers are used to store and retrieve data and make it accessible to applications. This data can include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0173] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0174] The phone manager is used to provide communication functions of the mobile phone 100, such as management of call status (including answering, hanging up, etc.).
[0175] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0176] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0177] In the embodiment of the present application, the FWK layer can also provide some system framework services, such as LinkTurbo communication framework services, etc.; some callable functional modules can also be set in the FWK layer, such as scene recognition modules, real-time data acquisition modules, etc. Among them, the LinkTurbo communication framework service is used to obtain the traffic usage of the mobile communication network, that is, it can be used to execute the relevant content in the above step 401. Among them, the scene recognition module is used to identify long standby scenarios and low-traffic business scenarios, etc., that is, it can be used to execute the relevant content in the above step 402, wherein the long standby scenario corresponds to the scenario corresponding to the long standby state described in the above step 402.
[0178] The real-time data collection module is used to count the network speed of the mobile phone 100 based on the Wi-Fi network or the mobile communication network and the external network during operation. The real-time data collection module can be used to timely identify the high-traffic business after the Wi-Fi module is powered off in the above step 410b, so as to wake up the AP processor in time to control the power-on of the Wi-Fi module, so as to avoid a large loss of mobile communication network traffic configured on the mobile phone 100.
[0179] The hardware abstraction layer is an encapsulation of the hardware driver, providing a unified hardware capability general interface for the upper layer. In an embodiment of the present application, the HAL layer can, for example, provide the hardware capabilities of the Wi-Fi module through the Wi-Fi HAL. In other embodiments, the HAL layer can also provide the hardware capabilities of the Wi-Fi module through the WLAN HAL, which is not limited here.
[0180] The kernel layer is the layer between hardware and software. The kernel layer contains at least display drivers, camera drivers, Wi-Fi drivers, sensor drivers, etc.
[0181] In an embodiment of the present application, the Kernel layer may also include a Dubai driver, which is used to record and count the sleep and wake-up of the AP processor in the system, and can identify the data packets received by the Wi-Fi module, that is, it can be used to execute the process of identifying useless wake-ups in the above step 403, which will not be repeated here.
[0182] Figure 8 According to an embodiment of the present application, a schematic diagram of the interaction between various layers of a system when a method for managing a terminal device is implemented in a system of a mobile phone 100 is shown.
[0183] like Figure 8 As shown, the "Power Saving Wizard" application running in the APP layer can call the LinkTurbo communication framework service, scene recognition module and real-time data acquisition module of the FWK layer to obtain the data used to implement the above Figure 4b The data or information required for each step shown. For example, the "Power Saving Wizard" application can obtain the mobile communication network traffic usage information through LinkTurbo, identify the long standby scene and low traffic business scene through the scene recognition module, and the network speed information counted by the real-time data acquisition module, and organize and use them. The "Power Saving Wizard" application running at the APP layer can also call the Dubai driver at the Kernel layer to obtain the statistical result data of the AP processor sleep and wake-up status and the identification result data corresponding to the data packet that causes the AP to wake up.
[0184] When the "Power Saving Wizard" application uses the information obtained by the FWK layer and the data counted or identified by the Kernel layer to determine that the preset power-off conditions for the Wi-Fi module are met, the "Power Saving Wizard" application can call the corresponding interface to send a power-off instruction to the Wi-Fi HAL of the HAL layer to control the Wi-Fi module to power off. It can be understood that when it is necessary to control the Wi-Fi to power on again, the "Power Saving Wizard" application can call the corresponding interface to send a recovery instruction to the Wi-Fi HAL of the HAL layer, which will not be elaborated here.
[0185] References to "one embodiment" or "an embodiment" in the specification mean that the specific features, structures, or characteristics described in conjunction with the embodiment are included in at least one exemplary implementation or technology disclosed according to the embodiment of the present application. The appearance of the phrase "in one embodiment" in various places in the specification does not necessarily all refer to the same embodiment.
[0186] The disclosure of the embodiment of the present application also relates to an operating device for executing the text. The device can be specially constructed for the required purpose or it can include a general-purpose computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program can be stored in a computer-readable medium, such as, but not limited to any type of disk, including a floppy disk, an optical disk, a CD-ROM, a magneto-optical disk, a read-only memory (ROM), a random access memory (RAM), an EPROM, an EEPROM, a magnetic or optical card, an application-specific integrated circuit (ASIC) or any type of medium suitable for storing electronic instructions, and each can be coupled to a computer system bus. In addition, the computer mentioned in the specification may include a single processor or may be an architecture involving multiple processors for increased computing power.
[0187] In addition, the language used in this specification has been primarily selected for readability and instructional purposes and may not be selected to describe or limit the disclosed subject matter. Therefore, the present application embodiment disclosure is intended to illustrate rather than limit the scope of the concepts discussed herein.
Claims
1. A method for managing a terminal device, applied to an electronic device, wherein the electronic device includes a Wi-Fi chip, It is characterized in that The method comprises: The electronic device enters a long standby state at a first time point, and a first processor in the electronic device enters a sleep state; Receiving a first type of communication message sent by a routing device through a Wi-Fi connection, wherein the first type of communication message is sent in a broadcast manner and has no target receiving address; The electronic device wakes up the first processor based on the received first type of communication message; Within a preset time period after the first time point, determining that a first number corresponding to the number of wake-up times of the first processor is greater than or equal to a preset number, and determining whether the current location is a frequently used location, wherein the number of wake-up times refers to the number of times the first processor wakes up based on the first type of communication message, the frequently used location is a location where the electronic device is connected to the first routing device for a time period greater than a preset time period, and the first routing device is a routing device located at the frequently used location; and Determine that the current location is a frequently used location, and obtain relevant information about data traffic corresponding to the mobile communication network; Determining that the mobile communication network meets the usage conditions based on the data traffic related information, and obtaining the service traffic data generated in the long standby state; Based on the service traffic data, it is determined that the device is in a low-traffic service scenario, the Wi-Fi chip is powered off, and the device is switched to the mobile communication network to continue standby. The low-traffic service scenario corresponds to a scenario in which the data traffic consumed by transmitting data during the running of an application by the electronic device is less than a scenario corresponding to a first traffic threshold. The first traffic threshold is a service traffic threshold corresponding to the low-traffic service scenario, and the first traffic threshold is determined based on statistical results of the service traffic data generated in the long-term standby state.
2. The method according to claim 1, It is characterized in that The method further comprises: The electronic device enters a standby state at a second time point, and the first processor enters a sleep state; Receiving the first type of communication message sent by the routing device through a Wi-Fi connection; The electronic device wakes up the first processor based on the received first type of communication message; Within a preset time period after the second time point, based on the first processor being woken up a second number of times, the Wi-Fi chip is not powered off, wherein the second number is less than the preset number.
3. The method according to claim 1, It is characterized in that The first type of communication message includes at least one of the following: A first type of data packet forwarded by the routing device; A management frame sent by the routing device; The routing device sends a PING packet.
4. The method according to claim 3, It is characterized in that Corresponding to different first-category communication messages, the preset number is different.
5. The method according to claim 4, It is characterized in that The determining that the first number is greater than or equal to the preset number includes any one of the following: Obtaining a first wake-up count of the first processor being awakened based on the first type of data packet forwarded by the routing device, and confirming that the number of the first wake-up count is greater than or equal to a first preset number; Obtaining a second wake-up number of times the first processor is awakened based on the management frame sent by the routing device, and confirming that the second wake-up number is greater than or equal to a second preset number; Obtain a third wake-up number of times the first processor is awakened based on a PING packet sent by the routing device, and confirm that the third wake-up number is greater than or equal to a third preset number.
6. The method according to claim 1, It is characterized in that Confirm that the mobile communication network meets the conditions for use by: It is detected that the current SIM card account has unlimited Internet traffic within the package month; or, It is detected that the remaining amount of Internet traffic of the currently used SIM card account in the package month exceeds the second traffic threshold.
7. The method according to claim 1, It is characterized in that The method comprises: After the Wi-Fi chip is powered off, the electronic device communicates via a mobile communication network.
8. The method according to claim 1, It is characterized in that The method further comprises: Upon detecting a user operation of waking up the electronic device, the electronic device powers on the Wi-Fi chip to resume operation of the Wi-Fi chip; or Upon receiving the second type of communication message, the electronic device powers on the Wi-Fi chip to restore the Wi-Fi chip to work; or, When the data flow required for the data to be transmitted exceeds a third flow threshold, the electronic device powers on the Wi-Fi chip to restore the Wi-Fi chip to work.
9. An electronic device, It is characterized in that include: a first processor and a second processor; One or more memories; the one or more memories store one or more programs, and when the one or more programs are executed by the one or more processors, the electronic device executes the method for managing a terminal device according to any one of claims 1 to 8, wherein: The electronic device enters a long standby state at a first time point, and a first processor in the electronic device enters a sleep state; The second processor receives a first type of communication message sent by the routing device through a Wi-Fi connection, wherein the first type of communication message is sent in a broadcast manner and has no target receiving address; The second processor wakes up the first processor based on the received first type of communication message; The second processor determines, within a preset time period after the first time point, that a first number corresponding to the number of wake-up times of the first processor is greater than or equal to a preset number, wherein the number of wake-up times refers to the number of times the processor is awakened based on the first type of communication message; The second processor determines whether the current location is a common location, the common location is a location where the electronic device is connected to the first routing device for a time period greater than a preset time period, and the first routing device is a routing device located at the common location; and Determine that the user is currently in a common location, obtain data traffic related information corresponding to the mobile communication network, and determine whether the mobile communication network meets the usage conditions based on the data traffic related information; Determining that the mobile communication network meets the usage conditions, and obtaining the service flow data generated in the long-term standby state; Based on the service traffic data, it is determined that the device is in a low-traffic service scenario, the Wi-Fi chip is powered off, and the device is switched to the mobile communication network to continue standby. The low-traffic service scenario corresponds to a scenario in which the data traffic consumed by transmitting data during the running of an application by the electronic device is less than a scenario corresponding to a first traffic threshold. The first traffic threshold is a service traffic threshold corresponding to the low-traffic service scenario, and the first traffic threshold is determined based on statistical results of the service traffic data generated in the long-term standby state.
10. A computer-readable storage medium, It is characterized in that The storage medium stores instructions, which, when executed on a computer, cause the computer to execute the method for managing a terminal device according to any one of claims 1 to 8.
Citation Information
Patent Citations
Automatic WIFI connection switching off method and system and mobile terminal
CN105072675A
Network switching processing method and terminal
CN106572487A
Method for preventing WIFI malicious frequent awakening
CN106686633A
Control method of wearable equipment and wearable equipment
CN111148198A
Power consumption control method and device
CN113965981A
