CN114697932A - Method for reducing power consumption and electronic equipment - Google Patents

Method for reducing power consumption and electronic equipment Download PDF

Info

Publication number
CN114697932A
CN114697932A CN202011632891.4A CN202011632891A CN114697932A CN 114697932 A CN114697932 A CN 114697932A CN 202011632891 A CN202011632891 A CN 202011632891A CN 114697932 A CN114697932 A CN 114697932A
Authority
CN
China
Prior art keywords
electronic device
module
message
electronic equipment
connection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011632891.4A
Other languages
Chinese (zh)
Inventor
于佳欣
杨明
韦行海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202011632891.4A priority Critical patent/CN114697932A/en
Publication of CN114697932A publication Critical patent/CN114697932A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

A method for reducing power consumption and an electronic device relate to the technical field of terminals. The power consumption of the electronic device can be reduced. The method comprises the following steps: establishing a Wi-Fi connection with a second electronic device through a Wi-Fi module; if the Wi-Fi module meets the first condition, performing power saving processing on the Wi-Fi module; the first condition includes any one or more of: the number of the first messages received through the Wi-Fi connection in a first time period is larger than or equal to a first threshold value; the number of times of the preset identification position bit errors of the second message received through the Wi-Fi connection in the second time period is larger than or equal to a second threshold value; within a third time period, the number of times of disconnection of the Wi-Fi connection or the number of times of establishment of the Wi-Fi connection is greater than or equal to a third threshold value; the sending period of the third message received through the Wi-Fi connection is inaccurate; the working time of the Wi-Fi module is larger than or equal to a preset time threshold, and the number of the messages sent and/or received through the Wi-Fi connection is smaller than or equal to a first preset number threshold.

Description

Method for reducing power consumption and electronic equipment
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a method for reducing power consumption and an electronic device.
Background
Due to the fact that the cost is lower, the network speed is higher, and therefore Wi-Fi internet surfing becomes the preferred internet surfing mode of many users. For example, when a user uses a mobile phone to connect with a Wi-Fi network, the mobile phone may have high power consumption during the process of using the Wi-Fi network. For example, because the design of the routers of various manufacturers does not adopt a unified standard, the performance of the routers is uneven, and when a mobile phone is connected with some routers, a Wi-Fi chip of the mobile phone may be frequently awakened, so that the Wi-Fi chip is not powered off for a long time, and the power consumption is serious. From the commercial data, the power consumption problem of the Wi-Fi chip of the mobile phone caused by the router becomes the first problem of power consumption.
Disclosure of Invention
According to the method for reducing the power consumption and the electronic equipment, the power consumption of a Wi-Fi module in the electronic equipment can be reduced, and the standby time of the electronic equipment can be prolonged.
In order to achieve the above object, the embodiments of the present application provide the following technical solutions:
in a first aspect, a method for reducing power consumption is provided, and is applied to a first electronic device, where the first electronic device has a Wi-Fi module and a mobile network module, and the method includes: the first electronic equipment establishes Wi-Fi connection with second electronic equipment through the Wi-Fi module, and the first electronic equipment interacts with the second electronic equipment through the Wi-Fi connection; if the first electronic device detects that the first electronic device meets a first condition, the first electronic device performs power saving processing on the Wi-Fi module.
The first condition comprises any one or more of:
the first item: the number of first messages received by the first electronic device from the second electronic device through the Wi-Fi connection in a first time period is greater than or equal to a first threshold value;
the second term is: the number of times of position errors of a preset identification position of a second message received by the first electronic device from the second electronic device through the Wi-Fi connection in a second time period is greater than or equal to a second threshold value;
the third item: within a third time period, the number of times of disconnection of the Wi-Fi connection or the number of times of establishment of the Wi-Fi connection is greater than or equal to a third threshold value;
the fourth item: in a fourth time period, the sending period of a third message received by the first electronic device from the second electronic device through the Wi-Fi connection is inaccurate;
the fifth item: in a fifth time period, the working time of the Wi-Fi module is greater than or equal to a preset time threshold, and the number of fourth messages received by the first electronic device from the second electronic device through the Wi-Fi connection is less than or equal to a first preset number threshold;
the sixth item: in a sixth time period, the working time of the Wi-Fi module is greater than or equal to a preset time threshold, and in the working time period, the number of fifth messages sent to the second electronic equipment by the first electronic equipment through the Wi-Fi connection is less than or equal to a second preset number threshold;
the first message is used for detecting Wi-Fi abnormity according to the number of the first message; the second message is used for detecting Wi-Fi abnormity according to the setting condition of the preset identification position of the message; the third message is used for detecting Wi-Fi abnormity according to the sending period of the message;
the preset identification bit is used for indicating whether a service message to be sent to the first electronic device by the second electronic device exists or not.
When the first electronic device detects the first condition, which means that the power consumption of Wi-Fi is serious, the first electronic device disconnects the Wi-Fi connection, so that the problem that the power consumption of the first electronic device connected with the second electronic device through the Wi-Fi is high due to the fact that the design of the second electronic device is not standard can be solved.
In one possible design, the first packet, the second packet, and the third packet are all non-service packets; the first message comprises any one or more of the following items: unicast messages, multicast messages, Beacon messages, rekey messages, renew messages and router advertisement RA messages; the second message comprises a Beacon message; the preset identification bit of the second message comprises a traffic indication map TIM bit; the correctly set preset identification bit is used for indicating that a service message to be sent to the first electronic equipment by the second electronic equipment exists; the third message comprises a Beacon message.
In a possible design, the sending period of the third packet is inaccurate, including that the sending period of the third packet sent by the second electronic device is not aligned with the receiving period of the third packet received by the first electronic device.
In one possible design, determining that the predetermined flag bit error of the second packet includes: the first electronic equipment receives the second message from the second electronic equipment, and a preset identification position of the second message is set;
the first electronic equipment sends a null frame to the second electronic equipment, and the null frame is used for requesting a service message to the second electronic equipment;
and if the service message is not received from the second electronic equipment in a seventh time period, the first electronic equipment determines that the position of the preset identification position of the second message is wrong.
In one possible design, determining that the transmission period of the third packet is inaccurate includes: if the receiving rate of the third message received from the second electronic device is smaller than or equal to the receiving threshold value in the fourth time period, the first electronic device determines that the sending period of the third message is inaccurate;
the receiving rate of the third packet is a ratio of the number of the actually received third packets to the number of the third packets to be received.
In one possible design, the first period includes a plurality of first cycle periods; the method for detecting, by a first electronic device, that the number of first messages received from a second electronic device through a Wi-Fi connection reaches a first threshold in a first time period includes:
if the first electronic device detects that the number of the first messages reaches a first threshold value in a first cycle time period of continuous preset number, it is determined that the number of the first messages received from the second electronic device through Wi-Fi connection reaches the first threshold value in the first time period.
In one possible design, the third period includes a plurality of second periodic periods; the first electronic device detects that the number of times of Wi-Fi disconnection or the number of times of Wi-Fi connection establishment reaches a third threshold in a third time period, and the method comprises the following steps:
if the Wi-Fi connection disconnection times detected by the first electronic equipment reach a third threshold value within a second period time period of continuous preset number;
or if the Wi-Fi connection establishment times detected by the first electronic equipment reach a third threshold within a second period time period of continuous preset number;
it is determined that the number of Wi-Fi disconnection or Wi-Fi connection establishment detections within the third time period reaches a third threshold.
In one possible design, the second time period includes a plurality of third cycle time periods; the first electronic device detects that the number of times of the preset identification position bit errors of the second message received from the second electronic device through the Wi-Fi connection reaches a second threshold value in a second time period, and the method includes:
if the number of times that the first electronic device detects the preset identification position bit errors of the second message reaches the second threshold value within the third period time period of the continuous preset number, it is determined that the number of times that the preset identification position bit errors of the second message received from the second electronic device through the Wi-Fi connection are detected within the second period time reaches the second threshold value.
It should be noted that, in some scenarios, in the second period of time, the second electronic device may make a bit error of the preset identification position of the second packet in some third period of time, which may be an accidental setting error, where the accidental setting error usually does not or with a small probability cause high power consumption of the first electronic device. Therefore, such accidental set errors are not determined in the present application as a factor that causes high power consumption of the Wi-Fi module. Only if the number of times of the preset identification position bit error of the second message is higher in a plurality of continuous third period time periods, it is likely that the second electronic device is designed in an irregular manner to cause frequent setting errors in each third period time period, and this condition is considered as a factor causing high power consumption of the Wi-Fi module. Therefore, the first electronic device can eliminate the possibility of accidental setting errors by detecting whether the setting errors are frequently set in a plurality of continuous third period time periods, and further more accurately determine whether the Wi-Fi module is high in power consumption caused by factors such as non-standard design of the second electronic device. And when the Wi-Fi module is determined to have high power consumption caused by factors such as non-standard design of the second electronic equipment, the first electronic equipment closes the Wi-Fi module so as to reduce the power consumption of the whole machine.
In one possible design, the method further includes:
after the Wi-Fi module enters the dormant state, if the first electronic device has a service message to be sent, the first electronic device sends the service message to be sent through a mobile network connection established by the mobile network module. Therefore, the first electronic device can still send the service message, and the service of the first electronic device can be ensured not to be influenced.
In one possible design, before the first electronic device controls the Wi-Fi module to enter the sleep state, the method further includes:
the first electronic equipment displays a first interface, and the first interface is used for prompting whether to disconnect the Wi-Fi connection or not to a user;
the first electronic equipment performs power saving processing on the Wi-Fi module, and the processing comprises the following steps: responding to a first instruction input by a user on a first interface, the first electronic equipment performs power saving processing on the Wi-Fi module and disconnects Wi-Fi connection; the first instruction is used for indicating to disconnect the Wi-Fi connection.
In one possible design, before the first electronic device controls the Wi-Fi module to enter the sleep state, the method further includes:
the first electronic equipment displays a second interface, and the second interface is used for prompting whether the network connection is switched from the Wi-Fi connection to the mobile network connection or not to the user;
the first electronic equipment performs power saving processing on the Wi-Fi module, and the processing comprises the following steps: responding to a second instruction input by a user on a second interface, the first electronic equipment performs power saving processing on the Wi-Fi module and switches network connection to mobile network connection; the second instruction is for instructing to switch the network connection to the mobile network connection.
In one possible design, the first electronic device receives an indication that a user starts a first function, or when the first electronic device determines that the first electronic device is in a first preset scene, the first function is started; wherein the first function is a function of reducing power consumption of the first electronic device; the first preset scene includes: the method comprises the steps that the electric quantity of first electronic equipment is lower than a preset value, the number of application programs started by the first electronic equipment is larger than the preset number, the first electronic equipment starts the preset application programs, the screen-off duration of the first electronic equipment exceeds the preset duration within a first preset time period at the current time, the first electronic equipment keeps network connection when being set to be dormant, and the first electronic equipment does not detect any item or any items in progress of an operation.
In one possible design, after the Wi-Fi module enters the sleep state, the method further includes:
and if the first electronic equipment detects that the first electronic equipment is in the second preset scene, waking up the Wi-Fi module, and establishing Wi-Fi connection with the second electronic equipment again through the Wi-Fi module.
The second preset scenario comprises any one or combination of more of the following: the first electronic equipment is charged, the position of the first electronic equipment is moved, the screen-on time of the first electronic equipment reaches a fourth threshold value, the number of the application programs started by the first electronic equipment is smaller than or equal to the preset number, the first electronic equipment detects that a service is in progress at the current time within the preset time period, and the flow of the mobile network reaches a fifth threshold value after the Wi-Fi connection is disconnected.
By the method, the first electronic equipment can wake up the Wi-Fi module in time so as to provide internet surfing services for the user.
In one possible design, the second electronic device includes any one of a wireless router, a CPE.
In one possible design, the first electronic device performs power saving processing on the Wi-Fi module, including: the first electronic equipment controls the Wi-Fi module to enter a sleep state.
In a second aspect, a terminal is provided, which includes: the mobile terminal comprises a processor, a memory, a touch screen, a Wi-Fi module and a bluetooth module, wherein the memory, the touch screen, the Wi-Fi module and the bluetooth module are coupled with the processor, the memory is used for storing computer program codes, the computer program codes comprise computer instructions, and when the processor reads the computer instructions from the memory, the terminal executes the method in the above aspects and any possible implementation manner.
In a third aspect, an electronic device is provided, including: the computer program product comprises a processor, a memory, a Wi-Fi module, and a bluetooth module, the memory, the Wi-Fi module, and the bluetooth module being coupled to the processor, the memory being configured to store computer program code, the computer program code comprising computer instructions that, when read from the memory by the processor, cause the electronic device to perform the method of any of the above aspects and any possible implementation thereof.
In a fourth aspect, an apparatus is provided, where the apparatus is included in a terminal, and the apparatus has a function of implementing a terminal behavior in any one of the methods in the foregoing aspects and possible implementations. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes at least one module or unit corresponding to the above functions. Such as a communication module or unit, a control module or unit, etc.
In a fifth aspect, an apparatus is provided, where the apparatus is included in an electronic device, and the apparatus has a function of implementing the behavior of the electronic device in any one of the methods in the foregoing aspects and possible implementation manners. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes at least one module or unit corresponding to the above functions. Such as a communication module or unit, a control module or unit, etc.
A sixth aspect provides a computer-readable storage medium comprising computer instructions which, when executed on a terminal, cause the terminal to perform the method according to the above aspect and any one of the possible implementations.
A seventh aspect provides a computer-readable storage medium, comprising computer instructions, which, when executed on an electronic device, cause the electronic device to perform the method according to the above aspect and any one of the possible implementations thereof.
An eighth aspect provides a computer program product for causing a computer to perform the method according to the above aspects and any possible implementation thereof when the computer program product runs on the computer.
A ninth aspect provides a chip system comprising a processor, which when executing instructions performs the method according to the above aspects and any possible implementation manner thereof.
Drawings
Fig. 1 is a schematic structural diagram of a communication system according to an embodiment of the present application;
fig. 2A is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 2B is a schematic structural diagram of a terminal according to an embodiment of the present application;
FIG. 3A is a schematic diagram of a user interface of some of the terminals provided by embodiments of the present application;
FIG. 3B is a schematic diagram of a user interface of some of the terminals provided by the embodiments of the present application;
FIG. 3C is a schematic diagram of a user interface of some of the terminals provided by the embodiments of the present application;
fig. 4 is a schematic flowchart of a method for reducing power consumption according to an embodiment of the present application;
fig. 5A is a first flowchart illustrating a method for detecting high power consumption of Wi-Fi according to an embodiment of the present application;
fig. 5B is a scene schematic diagram for detecting the number of first messages according to the embodiment of the present application;
fig. 5C is a scene schematic diagram illustrating detecting a default flag bit error location of a second packet according to the embodiment of the present application;
FIG. 5D is a first scenario diagram illustrating a Wi-Fi disconnection anomaly detection method according to an embodiment of the present disclosure;
FIG. 5E is a schematic diagram of a second scenario for detecting a Wi-Fi disconnection anomaly according to an embodiment of the present application;
fig. 5F is a scene schematic diagram for detecting that a sending period of a third packet is inaccurate, according to the embodiment of the present application;
FIG. 5G is a first schematic view of a scenario of detecting a Wi-Fi abnormality and not powering off provided in the embodiment of the present application;
FIG. 5H is a schematic diagram of a second scenario for detecting a Wi-Fi abnormal power failure according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of a user interface of some of the terminals provided by embodiments of the present application;
fig. 7 is a schematic diagram of a third packet cycle provided in the embodiment of the present application;
fig. 8 is a first exemplary application scenario of a method for reducing power consumption according to an embodiment of the present application;
fig. 9 is a second exemplary application scenario of the method for reducing power consumption according to the embodiment of the present application;
fig. 10 is a schematic structural diagram of a chip system according to an embodiment of the present disclosure.
Detailed Description
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of the present application, "a plurality" means two or more unless otherwise specified.
When a user uses a terminal, the user often needs to surf the internet. In some examples, if a Modem (Modem) is configured, the terminal may establish a communication connection with the second electronic device via the mobile communication network using a wireless communication connection manner, such as 2G/3G/4G/5G, so as to obtain the corresponding service. Or, when the wireless lan module is configured, the terminal may also establish a communication connection with the second electronic device through the configured wireless lan module (such as a Wi-Fi module) by using a connection manner of a wireless lan (e.g., a Wi-Fi network) via the internet or a mobile communication network (or called a mobile network, a mobile data network, etc.). For example, the terminal establishes a communication connection with the wireless router by using a Wi-Fi technology, accesses the internet through the wireless router, and interacts with the second electronic device.
Because the cost of Wi-Fi internet surfing is lower and the internet speed is faster, users usually prefer Wi-Fi internet surfing. It can be seen that the power consumption of the Wi-Fi module is one of the important indexes affecting the endurance of the terminal. Some schemes for reducing the power consumption of Wi-Fi modules have been adopted. For example, after the terminal turns on Wi-Fi, a Wi-Fi module of the terminal automatically scans nearby Wi-Fi signals according to a set time interval. And the scanning frequency of the Wi-Fi module is reduced by setting a longer time interval so as to reduce the power consumption of the Wi-Fi module. For another example, when the terminal has no data transmission, the Wi-Fi module is controlled to enter a sleep state, and when the terminal has data transmission, the Wi-Fi module is waken up again to continue working.
The applicant believes that even though the scanning frequency of the Wi-Fi module is reduced or the Wi-Fi module is controlled to enter the sleep state, the endurance is improved to some extent, due to the fact that the design specification of an Access Point (AP) of a router is not standardized, the Wi-Fi module of a terminal connected with the router still frequently wakes up from the sleep state or the Wi-Fi module is long in working time, and the power consumption of the terminal is high. For example, different routers may set different sending frequencies of a specific packet, which causes different frequencies at which Wi-Fi modules of terminals connected to different routers are awakened, and different power consumptions of the Wi-Fi modules of the terminals. Among them, the Wi-Fi module may consume high power for some terminals connected to the router. Or, the Wi-Fi module of the terminal cannot sleep for a long time after being awakened due to the problem of the router setting, and the Wi-Fi module also has high power consumption. In this embodiment of the present application, a power consumption state of a Wi-Fi module of a terminal connected to a router can be detected, specifically, when the terminal detects that a number of first messages reaches a first threshold in a first time period, and/or detects that a number of preset identification position bit errors of a second message reaches a second threshold in a second time period, and/or detects that a number of times of disconnection of a Wi-Fi connection or a number of times of establishment of the Wi-Fi connection reaches a third threshold in a third time period, and/or detects that a sending cycle of a third message received from a second electronic device through the Wi-Fi connection is inaccurate in a fourth time period, and/or detects that a working duration of the Wi-Fi module is greater than or equal to a preset duration threshold and a number of fourth messages received from the second electronic device through the Wi-Fi connection by the first electronic device is less than or equal to the Fi module in a fifth time period At a first predetermined number threshold; and/or in a sixth time period, the working time of the Wi-Fi module is greater than or equal to a preset time threshold, and the number of fifth messages sent by the first electronic device to the second electronic device through the Wi-Fi connection in the working time is less than or equal to a second preset number threshold, which indicates that the terminal consumes more power due to the Wi-Fi connection, and the power consumption is likely to be caused by the non-standard design of a router connected with the terminal through the Wi-Fi. Then, the terminal closes the Wi-Fi module to reduce high power consumption brought by the Wi-Fi module, reduce power consumption of the terminal on the whole and prolong endurance time of the terminal.
Fig. 1 is a schematic structural diagram of a communication system according to an embodiment of the present application. The communication system comprises a first electronic device 100 and a second electronic device 200. Various application programs can be installed and run on the first electronic device 100, and rich functions are provided for the user. In general, the first electronic device 100 may access the internet or a mobile communication network through the second electronic device 200 to communicate with a server corresponding to each application program.
For example, the first electronic device 100 in the present application may be a mobile phone, a tablet computer, a Personal Computer (PC), a Personal Digital Assistant (PDA), a smart watch, a netbook, a wearable electronic device, an Augmented Reality (AR) device, a Virtual Reality (VR) device, an in-vehicle device, a smart car, a smart audio, a robot, and the like, and the specific form of the first electronic device is not particularly limited in the present application.
Fig. 2A shows a schematic structural diagram of the first electronic device 100. The first electronic device 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, a Subscriber Identity Module (SIM) card interface 195, and the like. Wherein the sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor (which may detect ambient light brightness), a bone conduction sensor, and the like.
It is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit the first electronic device 100. In other embodiments of the present application, the first electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), 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. The different processing units may be separate devices or may be integrated into one or more processors.
The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (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, etc.
The I2C interface is a bi-directional synchronous serial bus that includes a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor, charger, flash, camera 193, etc. through different I2C bus interfaces, respectively. For example: the processor 110 may be coupled to the touch sensor through an I2C interface, such that the processor 110 and the touch sensor communicate through an I2C bus interface to implement the touch functionality of the first electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may communicate audio signals to the wireless communication module 160 via the I2S interface, enabling answering of calls via a bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled by a PCM bus interface. In some embodiments, the audio module 170 may also transmit the audio signal to the wireless communication module 160 through the PCM interface, so as to implement the function of answering a call through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a bluetooth headset.
MIPI interfaces may be used to connect processor 110 with peripheral devices such as display screen 194, camera 193, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the first electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the first electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the first electronic device 100, and may also be used to transmit data between the first electronic device 100 and a peripheral device. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other terminals, such as AR devices, etc.
It should be understood that the connection relationship between the modules illustrated in the embodiment of the present application is only an exemplary illustration, and does not constitute a limitation to the structure of the first electronic device 100. In other embodiments of the present application, the first electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the first electronic device 100. The charging management module 140 may also supply power to the first electronic device 100 through the power management module 141 while charging the battery 142.
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 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the first electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the first electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including wireless communication of 2G/3G/4G/5G, etc. applied to the first electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the first electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments of the present application, the processor 110 detects a Wi-Fi power consumption status, and in particular, when detecting the first condition, may instruct a WLAN module (e.g., a Wi-Fi module) in the wireless communication module to power down. The first condition includes:
the method comprises the steps of detecting that the number of first messages reaches a first threshold value in a first time period and/or detecting that the number of preset identification position bit errors of second messages reaches a second threshold value in a second time period.
The first condition further comprises: and/or the number of times Wi-Fi disconnection and/or connection is detected within a third time period reaches a third threshold.
In the case of WLAN mode power down, the processor 110 may instruct a mobile network connection (4G network connection) established through a mobile communication module, such as a 4G network module, to surf the internet. Upon determining that the first electronic device 100 is in the second preset scenario, the processor 110 wakes up the WLAN module, establishes a WLAN connection between the first electronic device 100 and the second electronic device 200, and interacts with the second electronic device 200 through the WLAN connection. That is, when the Wi-Fi of the first electronic device 100 consumes a large amount of power, the first electronic device 100 controls the WLAN module to be powered off, thereby reducing the power consumption of the WLAN module and reducing the power consumption of the entire first electronic device 100.
In some embodiments, the antenna 1 of the first electronic device 100 is coupled to the mobile communication module 150 and the antenna 2 is coupled to the wireless communication module 160 so that the first electronic device 100 can communicate with networks and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, among others. GNSS may include Global Positioning System (GPS), global navigation satellite system (GLONASS), beidou satellite navigation system (BDS), quasi-zenith satellite system (QZSS), and/or Satellite Based Augmentation System (SBAS).
The first electronic device 100 implements the display function through the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an 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 alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the first electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The first electronic device 100 may implement a photographing function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the first electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the first electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The first electronic device 100 may support one or more video codecs. In this way, the first electronic device 100 can play or record video in a plurality of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. The NPU may implement applications such as intelligent recognition of the first electronic device 100, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the storage capability of the first electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as audio data, a phone book, etc.) created during the use of the first electronic device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like. The processor 110 executes various functional applications and data processing of the first electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The first electronic device 100 can implement an audio function through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into a sound signal. The first electronic device 100 can listen to music through the speaker 170A or listen to a hands-free call.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the first electronic device 100 receives a call or voice information, it can receive voice by placing the receiver 170B close to the ear of a person.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 170C by speaking the user's mouth near the microphone 170C. The first electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the first electronic device 100 may be provided with two microphones 170C to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the first electronic device 100 may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and perform directional recording functions.
The headphone interface 170D is used to connect a wired headphone. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The first electronic device 100 may receive a key input, and generate a key signal input related to user setting and function control of the first electronic device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also respond to different vibration feedback effects for touch operations applied to different areas of the display screen 194. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be brought into and out of contact with the first electronic device 100 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The first electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 195 can be inserted with multiple cards at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The first electronic device 100 interacts with the network through the SIM card to implement functions such as a call and data communication. In some embodiments, the first electronic device 100 employs esims, namely: an embedded SIM card. The eSIM card may be embedded in the first electronic device 100 and cannot be separated from the first electronic device 100.
The software system of the first electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention uses an Android system with a layered architecture as an example to exemplarily illustrate a software structure of the first electronic device 100.
Fig. 2B is a block diagram of a software structure of the first electronic device 100 according to the embodiment of the present invention.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
As shown in fig. 2B, the application layer may include a series of application packages, including an application preset before the first electronic device 100 leaves the factory, or an application installed by a user through, for example, an application market or other means after the first electronic device 100 leaves the factory. These applications include, but are not limited to, applications including camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, browser, wechat, nay, pay, etc. (only some of which are shown). Most of these applications require, among other things, internet access, such as navigation, browser, WeChat, Taobao, Paobao, etc.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2B, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like. The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like. Content providers are used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc. The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures. The phone manager is used to provide the communication function of the first electronic device 100. Such as management of call status (including on, off, etc.). The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like. The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to notify download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, prompting for text information in the status bar, sounding a prompt tone, the first electronic device 100 vibrating, flashing an indicator light, etc.
In some embodiments of the present application, the application framework layer may further include a first module, configured to query, every other timing period, the Wi-Fi module for the number of first messages, and/or for the number of preset identified position errors in the second message, and/or for the receiving rate of the third message, and/or for the number of received fourth messages, and/or for the number of sent fifth messages, and/or for the operating duration of the Wi-Fi module, and accordingly determine whether to control the Wi-Fi module to power down. The first message, the second message, and the third message are all non-traffic messages. If the Wi-Fi module of the first electronic device 100 frequently receives a certain type of first packet within a certain period of time, the Wi-Fi module is frequently awakened, which results in higher power consumption. In order to reduce the overall power consumption of the first electronic device 100, the first module may control the Wi-Fi module to power down through the Wi-Fi driver of the kernel layer. Similarly, if the Wi-Fi module of the first electronic device 100 frequently receives the second packet with the preset identification bit set incorrectly within a certain period of time, higher power consumption will also be generated because the Wi-Fi module cannot sleep for a long time after being awakened. The first module can also control the power-off of the Wi-Fi module through the Wi-Fi drive of the kernel layer.
The application framework layer further comprises a second module and a third module. The second module is used for detecting the event of disconnection or connection of the Wi-Fi. For example, the second module detects a Wi-Fi disconnect event, which sends a broadcast in response to the detected Wi-Fi disconnect event. A third module, which may be a broadcast receiver, may listen for broadcasts from the second module. As a possible implementation, the third module determines whether the Wi-Fi disconnection or connection times reach a third threshold based on the monitored broadcast. After the Wi-Fi disconnection or connection times reach a third threshold value, the Wi-Fi is frequently disconnected and reconnected, so that the power consumption of the Wi-Fi module of the first electronic device is serious, and the third module can drive and control the Wi-Fi module to be powered off through the Wi-Fi of the kernel layer.
In the embodiment of the application, the established Wi-Fi connection is disconnected, and the Wi-Fi connection is reestablished, which can be called as a Wi-Fi disconnection reconnection.
In some embodiments, the first module, the second module, and the third module are used as examples to describe some operations of the frame layer, and in other embodiments, two or three of the above three modules may also be merged. In the embodiment of the present application, specific module settings in the framework layer and operations executed by each module are not limited.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver. In the embodiment of the application, the kernel layer comprises a WLAN driver (such as a Wi-Fi driver) and a mobile network driver.
The second electronic device 200 in this application is a device that can provide a wireless internet access function for the first electronic device 100, such as a wireless router, a Customer Premise Equipment (CPE), and the like.
It should be noted that the structure of the second electronic device 200 may also refer to the structure of the first electronic device 100 in fig. 2A, and the second electronic device 200 may have more or less components than the structure shown in fig. 2A, or combine some components, or split some components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
For example, when the second electronic device 200 is a router, the second electronic device 200 may include a processor, a memory, a wireless communication module, an antenna, a power supply module, and an internet access module for connecting to the internet. Wherein the wireless communication module comprises a Wi-Fi module. Wherein the Wi-Fi module is operable to establish a Wi-Fi connection with the first electronic device 100. In this way, the first electronic device 100 can access the internet using the internet access module of the second electronic device 200.
For other things, please refer to the description of the related structure in the first electronic device 100 of fig. 2A, which is not repeated here.
The technical solutions involved in the following embodiments can be implemented in the first electronic device 100 having the above hardware architecture and software architecture.
The following takes as an example that the first electronic device is the first electronic device 100 shown in fig. 1, and the second electronic device is the second electronic device 200 shown in fig. 1, and details of technical solutions provided by embodiments of the present application are described with reference to the drawings.
In some embodiments, the first electronic device may default to always turn on the first function. A first function, i.e. a function to reduce the power consumption of the first electronic device. The method provided by the embodiment of the application can be used by the first electronic device all the time by default, so that the power consumption of the first electronic device is reduced. For example, in a scenario where a mobile phone is connected to a router in a location such as an airport via Wi-Fi and a user does not carry a charger, the user may need to turn on a function of reducing power consumption all the time.
Or, the first electronic device also reduces power consumption of the first electronic device by using the method provided by the embodiment of the application in the first preset scene. The first preset scenario may include, but is not limited to, a single scenario or a combination of scenarios as follows: the method includes that the first electronic device has a power shortage preset value (for example, the power is less than 20%), the number of applications started by the first electronic device is greater than a preset number (for example, 5), the first electronic device has started a preset application (for example, a specific application is a high power consumption application, for example, an instant messaging application), the current time is within a first preset time period (for example, 0 to 6), the first electronic device is turned off for more than a preset time period (for example, 20min), the first electronic device keeps network connection when setting a sleep mode, the first electronic device does not detect an ongoing service, the ongoing service is not detected within the preset time period, and ambient light brightness is less than or equal to the preset brightness.
The first preset time period may be a time period when there is little or no interaction between the user and the first electronic device, such as a time period when the user sets to enter a sleep mode through the first electronic device, or other time periods.
The first electronic device does not detect that a service is ongoing, such as, but not limited to, a video application, a voice application, a navigation application, a music playing application, is not detected as being running.
For maintaining the network connection during hibernation, the first electronic device may set a switch, and when the switch is turned on, it indicates that the first electronic device is set to always maintain the network connection. Illustratively, as shown in (1) of fig. 3A, in response to an operation of clicking the setting icon 301 by the user, the first electronic device displays a setting interface shown in (2) of fig. 3A, which includes a setting control 302 of the battery. In response to a user selection (e.g., click) operation of the setting control 302, the first electronic device displays a battery setting interface shown in (3) of fig. 3A, which includes a switch 303. When the switch is turned on, the first electronic device always keeps network connection when the first electronic device is in a dormant state. For example, the first electronic device may remain networked when the first electronic device is turned off, and the application program of the first electronic device may obtain the data on the network. When the switch is closed, the first electronic device is disconnected when the first electronic device is in the dormant state. For example, the first electronic device disconnects after a period of time when it detects the screen being turned off. In this case, some applications may be disconnected. In some examples, when the first electronic device is on screen, the user may manually refresh a function in the application program in order to obtain network data sent by the network side during a network outage.
It is understood that the switch 303 may be manually turned on by the user, or may be turned on by default by the first electronic device.
Or, in other examples, a switch may be provided in the first electronic device, and a user may manually turn on or off the function of reducing power consumption of the first electronic device provided by the embodiment of the present application. For example, as shown in (1) of fig. 3B and (2) of fig. 3B, a switch control 304 may be provided in a setting page of the "setting" application for a user to manually turn on or off a function of reducing power consumption of the first electronic device. For another example, as shown in (1) of fig. 3C, in response to a user's operation, such as a click operation, on the setting application 301, the first electronic device displays a setting interface as shown in (2) of fig. 3C, and in response to a user's operation, such as a click operation, on the WLAN switch on the setting interface, the first electronic device displays a WLAN setting interface as shown in (3) of fig. 3C, which includes a switch 305 usable to turn on or off the power consumption reduction function of the embodiment of the present application.
Of course, a switch 308 may be provided on the battery setting interface shown in (3) of fig. 3A to turn on or off the power consumption reduction function according to the embodiment of the present application. The embodiment of the application does not limit which interface is specifically provided with the switch, and the specific display content of the interface is set.
As shown in fig. 4, a schematic flow chart of a method for reducing power consumption of a first electronic device according to an embodiment of the present application is specifically as follows:
s401, the first electronic equipment establishes Wi-Fi connection with the second electronic equipment through the Wi-Fi module and interacts with the second electronic equipment through the Wi-Fi connection.
In some embodiments, after the first electronic device automatically starts the power consumption reduction function or the user manually starts the power consumption reduction function, the first electronic device may automatically start or prompt the user to start a Wi-Fi function and a mobile network function of the first electronic device, and establish a Wi-Fi connection with the second electronic device.
In some embodiments, when the first electronic device turns on Wi-Fi functionality, the user may be asked whether to turn on a reduced power consumption functionality. If the user selects to start the power consumption reduction function, the mobile network function of the first electronic device can be automatically started or prompted to start. Of course, the mobile network function may not be turned on for the moment. In some examples, a Wi-Fi icon, such as Wi-Fi icon 306 shown in (3) of FIG. 3C, may be displayed in the first electronic device status bar when Wi-Fi functionality is turned on. When the mobile network function is turned on, the first electronic device displays a mobile network icon, such as the mobile network icon 307 shown in (3) of fig. 3C, in the status bar.
In still other embodiments, after the first electronic device turns on the Wi-Fi function and the mobile network function simultaneously, the power consumption reduction function may also be turned on automatically, or the user may be asked whether to turn on the power consumption reduction function.
If the first electronic device establishes Wi-Fi connection with the second electronic device for the first time, the user needs to select a Wi-Fi name, input a password, and the like corresponding to the second electronic device, or establish Wi-Fi connection between the first electronic device and the second electronic device by scanning a two-dimensional code and the like in other manners. If the first electronic device is not in Wi-Fi connection with the second electronic device for the first time, and the first electronic device stores information such as a Wi-Fi name and a password corresponding to the second electronic device, the first electronic device can automatically establish Wi-Fi connection with the second electronic device.
Optionally, the first electronic device may establish the mobile network connection while establishing the Wi-Fi connection. As such, the first electronic device has both a Wi-Fi connection and a mobile network connection (e.g., a 4G network connection). So that fast handover to the mobile network occurs when Wi-Fi signals are poor, or when Wi-Fi fails.
It is noted that, in some examples, after the Wi-Fi connection is established between the first electronic device and the second electronic device, the first electronic device may preferentially use the Wi-Fi connection to surf the internet. In this process, the mobile network connection may be automatically disconnected because no message is transmitted within a period of time, and in this case, the mobile network module of the first electronic device may be in a dormant state. In other examples, the first electronic device may also maintain the mobile network connection while the first electronic device transmits messages over the Wi-Fi connection.
S402, if the first electronic equipment determines that the first condition is met, performing power saving processing on the Wi-Fi module.
The first condition includes any one or more of:
the first item: detecting that the number of first messages received from second electronic equipment reaches a first threshold value in a first time period;
the second term is: the first electronic equipment detects that the number of the bit errors of the preset identification position of the second message received from the second electronic equipment reaches a second threshold value in a second time period;
the third item: the first electronic equipment detects that the number of times of Wi-Fi connection disconnection or the number of times of Wi-Fi connection establishment reaches a third threshold value in a third time period;
the fourth item: and in the fourth time period, the sending period of the third message received from the second electronic equipment through the Wi-Fi connection is inaccurate.
The fifth item: in a fifth time period, the working time of the Wi-Fi module is greater than or equal to a preset time threshold, and the number of fourth messages received by the first electronic device from the second electronic device through the Wi-Fi connection is less than or equal to a first preset number threshold;
the sixth item: in a sixth time period, the working time of the Wi-Fi module is greater than or equal to a preset time threshold, and the number of fifth messages sent to the second electronic device by the first electronic device through the Wi-Fi connection is less than or equal to a second preset number threshold.
The first message, the second message and the third message are all non-service messages. The first message is used for detecting Wi-Fi abnormity of the first electronic equipment according to the number of the messages. Namely, the first electronic equipment detects Wi-Fi abnormity according to the quantity abnormity of the first messages received from the Wi-Fi connection. The second message is used for detecting the Wi-Fi abnormity of the first electronic equipment according to the position abnormity of the preset identification. Namely, the first electronic equipment detects the Wi-Fi abnormity according to the setting abnormity of the preset identification position of the second message.
Wherein, the quantity is abnormal, which means that the quantity exceeds the first threshold. For example, the number may be greater than or equal to the first threshold. What is the number anomaly will be explained in conjunction with the specific scheme below.
The non-service message is opposite to the service message, the service message refers to a user data message, and the non-service message is a message except the user data message. Illustratively, non-traffic includes may refer to control messages, such as messages used to measure network connectivity. Specific types of the non-service first packet and the non-service second packet will be given in the following embodiments.
It should be noted that the first electronic device performs power saving processing on the Wi-Fi module, which may be understood as controlling the Wi-Fi module to power down, or may be understood as disconnecting the Wi-Fi connection and controlling the Wi-Fi module (such as a Wi-Fi chip included in the wireless communication module 160 shown in fig. 1) to enter a sleep state. It can also be understood that the Wi-Fi module is in a low power mode of operation. In the low-power-consumption working mode, most functions of the Wi-Fi module can be suspended to reduce the power consumption of the whole Wi-Fi module. For example, the Wi-Fi module entering a sleep state includes the Wi-Fi module being in a sleep (sleep) mode and a deep sleep (deepsleep) mode. The sleep mode refers to that a system running clock of the mobile first electronic device remains unchanged, the WiFi module can be awakened through a serial port or a network data packet, and a General Purpose Input/Output (GPIO) port keeps outputting. The deep Sleep mode is that the system operation clock of the mobile first electronic device is reduced to half, the mobile first electronic device can be awakened through a serial port or a network data packet, the GPIO port keeps outputting, and the awakening response time is slightly longer than that of the Sleep mode.
In some scenarios, when the second electronic device frequently sends the first message unrelated to the service to the first electronic device through the Wi-Fi connection, the Wi-Fi module of the first electronic device is frequently awakened, power consumption of the Wi-Fi module is increased, and power consumption of the first electronic device is further increased.
Optionally, the first message includes, but is not limited to, one or more of the following: unicast messages, multicast messages, rekey messages, renew messages, Router Advertisement (RA) messages.
Wherein, the unicast message: is a message transmitted between transmitting and receiving ends in unicast communication. Unicast communication refers to point-to-point communication between two entities, and both a sending end and a receiving end are uniquely determined. The sender and receiver are configured with unicast addresses. For example, in an IPv4 network, IP addresses between 0.0.0.0 and 223.255.255.255 belong to unicast addresses.
Because the second electronic device (e.g., a router) is not configured or designed in a certain way, it may frequently send unicast messages, such as Internet Control Message Protocol (ICMP) messages, to the first electronic device, i.e., frequently ping the first electronic device. The ICMP message may be used to indicate one or more of whether the network is up, whether the host is reachable, and whether routing is available. Thus, the second electronic device frequently pings the first electronic device, which causes the Wi-Fi module of the first electronic device to be frequently awakened, and the power consumption is high. For example, for a 4000mA handset, a frequent ping message will result in approximately 30% power consumption at 6 hours of night.
Multicast messages: refers to the message transmitted between the transmitting and receiving terminals in multicast communication. Multicast communication means that data is efficiently transmitted to a plurality of receivers at the same time by using a multicast address. The multicast packet includes, but is not limited to, an Aggregated Mac Service Data Unit (AMSDU) and an Aggregated Mac Protocol Data Unit (AMPDU).
Similar to frequently sending unicast messages, the second electronic device frequently sends multicast messages unrelated to the service, and the Wi-Fi module of the first electronic device is frequently awakened, so that the first electronic device has high standby power consumption.
A rekey message: typically for specifying broadcast multicast key updates. Generally, the second electronic device sends a rekey message at a specified time interval to update the broadcast multicast key. When the second electronic device is not designed in a standard or unreasonable configuration, the update time interval may be set to be very short, so that the second electronic device frequently sends a rekey message, and accordingly, the first electronic device is frequently awakened.
A renew message: it is generally used for the first electronic device to update an IP address allocated by a Dynamic Host Configuration Protocol (DHCP). Like the rekey frame, the second electronic device sets an update period of the IP address, and when the update period is set to be very short, the second electronic device may frequently send a renew message to wake up the first electronic device.
It should be noted that, when the first packet is a unicast packet, or a multicast packet, or a rekey packet, or a renew packet, the number of the first packets received by the first electronic device in the first time period reaches the first threshold, which means that the number of the first packets is greater than or equal to the first threshold.
In view of the above scenario, in an embodiment of the present application, when the first electronic device detects that the number of the first messages reaches the first threshold in the first time period, that is, the second electronic device frequently sends the first messages without service to the first electronic device, the first electronic device controls the Wi-Fi module to power down, so as to avoid the Wi-Fi module from generating high power consumption.
Wherein, the first threshold value can be flexibly set. For example, according to big data statistics or experimental tests, a value of the number of the first messages received by the Wi-Fi module in the first time period is obtained, and the power consumption of the Wi-Fi module has a large influence on the cruising ability of the first electronic device, and the value is determined as a first threshold. Moreover, since different first messages may have different degrees of influence on the power consumption of the Wi-Fi module, the first thresholds of different first messages may be the same or different. For example, the first threshold of the rekey packet and the first threshold of the renew packet may be the same or different.
For example, a first threshold corresponding to a certain type of unicast message (e.g., ICMP message) is set. The method can be used for simulating a scene that the router sends the ICMP message to the first electronic device at different frequencies in an experiment, and measuring the power consumption of the first electronic device when the mobile network is started or measuring the power consumption of the first electronic device when the WiFi network is started. An exemplary measurement is shown in table 1. It can be seen that when the frequency of sending the ICMP message by the router is greater than or equal to 1 time/second, the power consumption of using Wi-Fi to surf the internet is greater than that of using the mobile network to surf the internet. Therefore, power consumption can be reduced by turning off Wi-Fi.
TABLE 1
Figure BDA0002880493570000161
It is to be understood that when the frequency at which the ICMP is transmitted per second is obtained, the frequency at which the ICMP is transmitted for the first period of time is obtained. For example, if the power consumption of Wi-Fi is large when an ICMP message is sent 1 time per second, the power consumption of Wi-Fi is large when an ICMP message is sent 10 times within 10 seconds. By analogy, a first threshold corresponding to the ICMP packet in the first time period may be obtained.
It is noted that during the first time period, the first electronic device may detect that the number of the first messages reaches the first threshold. This means that the second electronic device has problems with the setting of such a first message, which may lead to a high power consumption of the first electronic device. The first electronic device may also detect that the number of the plurality of first messages reaches the respective first threshold. This means that the second electronic device has problems with the setting of the various first messages.
For example, in the first time period, it is only detected that the number of received rekey packets is greater than the first threshold corresponding to the rekey packets. For another example, in the first time period, it is detected that the number of received rekey packets is greater than the first threshold corresponding to the rekey packets, and the number of received renew packets is greater than the first threshold corresponding to the renew packets.
The first time period can be flexibly set. The first time period is short in setting, so that the first electronic equipment can inquire the Wi-Fi connection state in time, the setting problem of the second electronic equipment can be found in time, and the Wi-Fi module can be controlled to be powered off in time. The first time period is set to be longer, so that the workload of the first electronic equipment is reduced, and the method is easy to implement.
An implementation manner of the first electronic device determining the number of the received first messages in the first time period is introduced as follows:
in the mode 1, the number of the first electronic device receiving the first message in the first time period reaches a first threshold, which means that the number of the first electronic device receiving the first message in the continuous preset number (for example, continuous 5) of subdivision periods of the first time period reaches a certain threshold. Referring to (1) of fig. 5A, after receiving a message, the Wi-Fi module of the first electronic device parses the message, so as to distinguish different message types. Optionally, the Wi-Fi module may mark different types of messages differently. And counting the number of the received first messages in each type of messages. The framework layer is provided with a timer, the timing period is T, the first module of the framework layer inquires the Wi-Fi module once every other timing period T, and the quantity of the first messages received in the timing period T is inquired. And if the number of the first messages reaches the preset threshold value in the inquiry result of a certain time, calling that the number of the first messages is abnormal, recording one-time abnormality, namely adding one to the abnormal times, and judging whether the total abnormal times reach the preset times or not. If the total abnormal times of a certain type of first message reach the preset times, setting a first identifier of the first type of first message to indicate that the number of the received first message reaches a threshold x in consecutive preset (for example, 5) subdivision time periods of the first time period. That is, the first time period includes a plurality of first cycle time periods, the duration of each first cycle time period is a timing cycle T, when the number of the first packets detected in the first cycle time period of a preset number (for example, 5 consecutive) reaches (is greater than or equal to) a preset threshold, the number of the first packets detected in the first cycle time period is counted for 5 times, and it is determined that the number of the first packets detected in the whole first time period reaches the first threshold. Accordingly, the first flag is set.
Otherwise, when the total abnormal times of a certain type of first messages do not reach the preset times, the number of the first messages is continuously waited to be inquired when the timing period arrives. And when the number of the first messages does not reach the threshold value x as a result of the query at a certain time, resetting the abnormal times, and waiting for the arrival of the timing period again so as to query the number of the first messages.
Setting the first identifier may refer to setting the first identifier to a preset value, such as setting the first identifier to 1. The preset value is not limited to 1, of course.
In the embodiment of the application, the timing period can be flexibly set. For example set to 5 min.
For example, referring to fig. 5A (2), a method flow for the framework layer to query several first packet quantities through the Wi-Fi module is shown, and a specific implementation of the method flow may refer to the flow shown in fig. 5A (1). In fig. 5A (2), when the first identifier corresponding to a certain type of first packet (e.g., a rekey packet) is set, it is determined that the first electronic device detects that the number of received first packets in the first time period reaches the first threshold.
For example, as shown in (1) of fig. 5B, the first module of the framework layer queries the number of the first packets once every timing period T. For example, as shown in (2) of fig. 5B, the threshold is 2, the preset number of times is 5, when the first module arrives at the first T, it is found that the number of the first messages received in the first T is 4 through inquiry, and if the number exceeds the threshold 2, it indicates that the second electronic device frequently sends the first messages in the timing period T, the first module adds one to the number of times of abnormality, where the number of times of abnormality is 1. When the second T arrives, the total number of the first messages is inquired to be 6, and the number 4 of the first messages in the previous T is subtracted, so that the number of the first messages received in the second timing period T is obtained to be 2. And by analogy, the first module inquires the number of the first messages to the Wi-Fi module once every T, after each inquiry, the abnormal times are increased by one, when the first module determines that the abnormal times of certain type of first messages reach 5 times, the second electronic device is determined to frequently send the first messages irrelevant to services in the whole first time period, and the Wi-Fi module can be driven to control the power-off of the Wi-Fi module through the Wi-Fi of the kernel layer, so that the influence of the power consumption of the Wi-Fi module on the cruising ability of the first electronic device is reduced.
For another example, as shown in (3) of fig. 5B, the first module queries the number of the first packets for the third time, and if the query result of the number of the first packets is 1, clears the abnormal times. When the next timing cycle arrives, the number of anomalies will be recalculated.
In the mode 2, the first module of the framework layer inquires the number of the received first messages from the Wi-Fi module every other first time period, and as long as it is determined that the number of the received first messages in the first time period is greater than or equal to a first threshold, the first module of the framework layer can be driven by the Wi-Fi of the kernel layer to control the Wi-Fi module to be powered off. For example, the first time period is 25 minutes, the first message is an ICMP message, and the first threshold is 100. Then, when the number of ICMP messages received within 25 minutes set by the first electronic device reaches 100, it may control the Wi-Fi module to power down. Wherein the number of received first messages in the subdivided period of 30 minutes is not limited. For example, the first electronic device may receive only 10 first messages in the first 20 minutes, and the first electronic device may receive 90 first messages in the last 5 minutes. Or, 4 first messages may be received every minute in 25 minutes. Unlike the implementation shown in fig. 5A and 5B, in the present implementation, it is not required that the first packet number reaches a certain threshold value in each subdivision period (e.g., each T in fig. 5B) included in the first time period.
In still other scenarios, the first electronic device detects that the number of first messages does not reach the first threshold within the first time period. That is, the second electronic device does not frequently send the service-independent message to the first electronic device during the first time period. However, there is still a case where the Wi-Fi module of the first electronic device is mistakenly woken up.
For example, before sending data (i.e., a service message) to the first electronic device, the second electronic device sends a second message to the first electronic device to notify the first electronic device that the second electronic device will reach the first electronic device with data to be sent, so that the first electronic device makes a corresponding preparation for receiving. As a possible implementation manner, the second packet includes a preset identification bit, where the preset identification bit is used to indicate whether there is data (i.e., a service packet) to be sent to the first electronic device by the second electronic device. The correctly set preset identification bit is used for indicating that data to be sent to the first electronic equipment by the second electronic equipment exists. In general, after the first electronic device receives the second message from the second electronic device, if the preset identification bit is set, it indicates that the second electronic device will send data to the first electronic device, and then the first electronic device wakes up the Wi-Fi to wait for receiving the data from the second electronic device.
However, in some cases, the preset identification bit may be set erroneously. For example, when the second electronic device sends the second message (non-service message), the preset identification bit in the second message is set by the second electronic device in error. Then, after receiving the second message, the Wi-Fi module of the first electronic device parses the second message to obtain a preset identification bit in the second message, and if the preset identification bit is found to be set, the first electronic device mistakenly considers that the second electronic device will send data to itself, and then the Wi-Fi module of the first electronic device will maintain working for a period of time to wait for the data of the second electronic device to arrive. In practice, the preset identification bit is set by the second electronic device by mistake, i.e. the second electronic device does not need to send data to the first electronic device. Therefore, the Wi-Fi module of the first electronic device is always in a working state after responding to the preset identification position of the wrong setting, waits for data to arrive, cannot sleep, and generates high power consumption.
And the second message is used for detecting Wi-Fi abnormity according to the setting condition of the preset identification position of the second message. Such as but not limited to a Beacon message. The preset identification bits may be, for example, but not limited to, a Traffic Indication Map (TIM). Generally, when the second electronic device has data to send to the first electronic device, the TIM bit corresponding to the first electronic device is set in the Beacon message (i.e., the TIM bit is set to a preset value). Such as setting the TIM bit to any one of values 1-5. After the first electronic device receives the Beacon message and knows that the TIM corresponding to the first electronic device in the Beacon message is set, the second electronic device considers that data can be sent to the first electronic device, the Wi-Fi module can be controlled to be in a working state (namely, in a wake state), and the Wi-Fi module is controlled to wait for the data, so that the working time of the Wi-Fi module is long. The Wi-Fi module waits for a certain time according to a preset sleep strategy, for example, after the Wi-Fi module is awakened by first electronic equipment, the Wi-Fi module enters a sleep state after keeping a 200ms working state, and accordingly power consumption of the Wi-Fi module is high.
In addition, TIM bits of multiple types of second electronic devices may be set incorrectly at present, and even if no data is sent, the TIM is set all the time (for example, the TIM position is set to 1), so that the Wi-Fi module waits for data which cannot actually arrive for a long time after being awakened, the Wi-Fi module cannot sleep or can sleep for only a short time, and power consumption is high.
In consideration of the fact that the Wi-Fi module may generate high power consumption due to the incorrect setting of the preset identification position of the second message, in this embodiment of the application, when the first electronic device detects that the preset identification position of the second message (for example, TIM of Beacon message) is incorrect, the first electronic device controls the Wi-Fi module to power down.
As a possible implementation manner, the determining, by the first electronic device, the preset identifier position bit error of the second packet may specifically be implemented as: and the Wi-Fi module of the first electronic equipment receives the second message, analyzes the second message to obtain a preset identification position, and finds the preset identification position, and then the Wi-Fi module considers that the second electronic equipment has a service message and sends the service message to the Wi-Fi module. The first electronic device sends a null frame (a kind of data frame) to the second electronic device in order to request the second electronic device to send data to itself. And, the first electronic device waits for data to arrive from the second electronic device. However, in a period of time (i.e., a seventh period of time), the Wi-Fi module does not receive data (i.e., a service packet) from the second electronic device, and then the Wi-Fi module determines that the preset identification bit is set incorrectly, and the second electronic device does not send data to the first electronic device. That is, within a period of time since the second message is received, if the first electronic device does not detect the service message received from the second electronic device through the Wi-Fi connection, the first electronic device determines that the preset identification position of the second message is incorrect.
Optionally, the Wi-Fi module may record a condition that the preset identification bit is set incorrectly, so that a subsequent framework layer queries the number of errors of the preset identification position bit from the Wi-Fi module.
Optionally, if the number of times that the first electronic device detects the preset identification position bit error of the second packet reaches a certain threshold (for example, a threshold r) within a third period time period of a preset number continuously, it is determined that the number of times that the preset identification position bit error of the second packet received from the second electronic device through the Wi-Fi connection is detected within the second period time reaches a second threshold. The first electronic device may set a timing period (i.e., the duration of the third period of time) and detect the number of times the predetermined identification position bit error occurs every other timing period. As shown in (3) of fig. 5A, each time the timing period T6 arrives, the first module of the framework layer queries the number of TIM set errors from the Wi-Fi module. And when the number of the TIM setting errors reaches a threshold value of 6, adding one to the abnormal times, otherwise, resetting the abnormal times when the number of the TIM setting errors does not reach the threshold value of 6. If the abnormal number of times reaches a preset number of times, for example, 6 times, it indicates that the number of TIM set errors reaches the threshold 6 in each timing period T within 6 consecutive timing periods T (i.e., within the second time period). Then, the first module sets a first identifier corresponding to the TIM setting error, which is used to indicate that the number of times that the first electronic device detects the TIM setting error in the second time period reaches a second threshold.
For another example, referring to fig. 5C, the time that the number of TIM erroneous settings is greater than or equal to the threshold within the time T is referred to as a primary anomaly, and when a consecutive preset number of times (for example, 5 times) of anomalies are detected, which indicates that Wi-Fi anomalies are accounted for, the first flag corresponding to the TIM erroneous settings is set, which is used to indicate that the first electronic device detects that the number of times of TIM erroneous settings is greater (reaches the second threshold) within the second time period.
It should be noted that, in the embodiment of the present application, every two sub-periods in the first period, the second period, and the third period may be the same or different.
In other scenarios, when the second electronic device disconnects the Wi-Fi connection with the first electronic device, the Wi-Fi module of the first electronic device may attempt to reestablish the Wi-Fi connection with the second electronic device. Considering that when the second electronic device has certain settings, such as a certain blacklist mechanism may be set, the Wi-Fi connected first electronic device may be frequently kicked off, and the Wi-Fi module of the first electronic device immediately attempts to reconnect to the second electronic device after the Wi-Fi connection is disconnected. Therefore, the first electronic device cannot sleep or the sleep time is short due to repeated disconnection and connection of the Wi-Fi connection, so that the first electronic device consumes serious power. Moreover, when the Wi-Fi is disconnected, the mobile network module (e.g., the modem module) usually sends network status information to the second electronic device, so that the second electronic device knows the Wi-Fi disconnection status, and the modem module consumes very high power, e.g., 20% of power.
Considering that a higher number of Wi-Fi disconnections results in a higher power consumption of the first electronic device, in some further embodiments of the application, the first electronic device may detect the number of Wi-Fi disconnections and/or Wi-Fi connections within the third time period, i.e. the first electronic device may detect only the number of Wi-Fi disconnections, only the number of Wi-Fi connections, or both the number of Wi-Fi disconnections and the number of Wi-Fi connections. When the number of times that the first electronic device detects that the Wi-Fi is disconnected or connected in the third time period reaches the third threshold value, it is indicated that the Wi-Fi module is likely to be frequently awakened, and then, in order to avoid reducing the whole-machine cruising ability of the first electronic device due to high power consumption of the Wi-Fi module, the first electronic device controls the Wi-Fi module to be powered off.
Generally, when the network state changes, such as Wi-Fi disconnection or connection, the Android system generates broadcast. Based on the mechanism, as a possible implementation manner, the first electronic device may determine the number of times of Wi-Fi disconnection and/or the number of times of connection by monitoring a broadcast generated by the system for Wi-Fi disconnection or connection. Specifically, the framework layer is provided with a second module and a third module, wherein the second module is used for detecting a Wi-Fi disconnection event and generating a broadcast aiming at the Wi-Fi disconnection event. And also to detect Wi-Fi connection events and generate broadcasts for the Wi-Fi connection events. And the third module is used for monitoring the broadcast generated aiming at the disconnection and/or connection of the Wi-Fi and calculating the times of the disconnection and/or connection of the Wi-Fi. And when the Wi-Fi disconnection and/or connection times reach a third threshold value in a third time period, the third module can control the Wi-Fi module to power off through the Wi-Fi drive of the kernel layer.
As a possible implementation manner, determining whether the number of times Wi-Fi disconnection and/or connection reaches a third threshold in a third time period may be implemented as: and the third module calculates the Wi-Fi disconnection/connection times once every other timing period. As shown in (5) of fig. 5A, when Wi-Fi is disconnected or connected, the second module of the framework layer may detect the Wi-Fi disconnection or connection event and transmit a broadcast, and accordingly, the third module of the framework layer may listen to the broadcast of the second module. Every other timing period, the third module can calculate the Wi-Fi disconnection or connection times once according to the broadcast times received in the timing period. That is, if the first electronic device detects that the number of times of Wi-Fi disconnection reaches a certain threshold (for example, a threshold y) in a second period time period (a timing period) of a preset number, or if the number of times of Wi-Fi connection establishment reaches a certain threshold (for example, a threshold z) in a second period time period of a preset number, it is determined that the number of times of Wi-Fi disconnection is detected or the number of times of Wi-Fi connection establishment reaches a third threshold in a third time period.
For example, referring to fig. 5D, taking as an example that the first electronic device only calculates the number of times of Wi-Fi disconnection, the timing cycle is 5min, and the threshold of the number of times of Wi-Fi disconnection within 5min is 8 times, the third module calculates the number of times of Wi-Fi disconnection every 5min, and when the calculated number of times of broadcast triggered by the Wi-Fi connection event received within 5min is 10, it indicates that Wi-Fi disconnection has been 10 times (greater than the threshold) within 5min, and adds one to the abnormal number of times; on the contrary, when the calculated broadcast frequency triggered by the Wi-Fi connection event received within 5min is 6, the Wi-Fi is disconnected for 6 times (smaller than the threshold value) within 5min, and the abnormal frequency is cleared. When the accumulated abnormal times reach the preset times (such as 5 times), which indicates that the Wi-Fi disconnection times exceed a certain threshold value within 5 consecutive minutes (namely within a third time period), the third module sets a first identifier corresponding to the Wi-Fi disconnection.
As another possible implementation manner, determining whether the number of times of Wi-Fi disconnection and/or connection within the third time period reaches a third threshold may be implemented as: when receiving a broadcast of Wi-Fi disconnection or connection, a third module (e.g., a broadcast receiver of a framework layer) calculates a time difference (or referred to as a time interval) between two adjacent disconnection or connection, and accumulates a preset number of time differences. Whether the Wi-Fi disconnection and/or connection times in the third time period reach a third threshold (namely, the Wi-Fi disconnection is abnormal in the third time period) is judged by judging whether the sum (totalinterval) of the time differences of the continuous preset number (for example, 5) is smaller than or equal to a time threshold, for example, 5 minutes. The sum of the time differences of the preset number (for example, 5) is less than or equal to the time threshold, for example, 5 minutes, which indicates that there are at least 5 disconnections within 5 minutes, and this case is considered as a Wi-Fi disconnection abnormality within the third time period (i.e., 5 minutes). As a possible implementation manner, the first electronic device maintains an array, and the last preset times, for example, the time difference of 5 times, are stored in the array. For example, referring to fig. 5E (1), after receiving the Wi-Fi disconnection broadcast, the third module calculates a time interval (also referred to as a time difference) between the current Wi-Fi disconnection and the last Wi-Fi disconnection, and accumulates 5 consecutive time intervals, and when the accumulated sum of the time interval 1 and the time interval 5, that is, the total time interval is less than or equal to 5 minutes, indicates that at least 5 times of Wi-Fi abnormal disconnection occur within 5 minutes, the third module may determine that Wi-Fi abnormal disconnection occurs within 5 minutes (that is, the third time period). For another example, referring to (2) in fig. 5E, after receiving the Wi-Fi connection broadcast, the third module calculates a time interval between the present Wi-Fi connection and the last Wi-Fi connection, and accumulates 5 consecutive time intervals, and when the sum of the time intervals 1-5, that is, the total time interval is less than or equal to 5 minutes, indicates that at least 5 times of Wi-Fi abnormal disconnection occur within 5 minutes, the third module may determine that Wi-Fi abnormal disconnection occurs within 5 minutes (that is, within the third time period).
In other embodiments, the first condition may be that a transmission period of the third packet received from the second electronic device over the Wi-Fi connection is inaccurate. And the third message is used for detecting Wi-Fi abnormity according to the sending period of the message. The third message may be, for example, but not limited to, a Beacon message in a non-traffic message.
Beacon message: namely, the Beacon message sent by the second electronic device is mainly used for announcing the existence of the network of the second electronic device and waking up the first electronic device. Specifically, the second electronic device periodically broadcasts a Beacon message (for example, in an association situation, the AP may send the Beacon message every 100 ms), so that the first electronic device knows the existence of the network where the second electronic device is located, and the first electronic device can adjust parameters necessary for joining the network. And the Beacon message carries a TIM bit, and informs the first electronic device whether the first electronic device has data to send to the first electronic device through the TIM bit.
Generally, a first electronic device detects a Beacon message in a scanning (scan) manner, specifically, detects the Beacon message at a plurality of set moments, and when a second electronic device is not designed in a standard manner, timestamps between the first electronic device and the second electronic device are difficult to align, so that a sending period for sending the third message by the second electronic device is not aligned with a receiving period for receiving the third message by the first electronic device. For example, as shown in the upper half of the interaction timing diagram of fig. 7, when the timestamps of the first electronic device and the second electronic device are aligned, the second electronic device sends the Beacon message at a certain sending time, and the first electronic device receives the Beacon message at a corresponding receiving time, generally, the first electronic device can successfully receive the Beacon message. As shown in the lower half of the interactive timing diagram of fig. 7, when the timestamp between the first electronic device and the second electronic device is not aligned with the timestamp, the second electronic device sends the Beacon message at a certain sending time, and because the receiving time of the first electronic device is spaced from the sending time of the second electronic device by the interval t', the first electronic device usually cannot or is difficult to successfully receive the Beacon message. Therefore, when the sending period of the Beacon message sent by the second electronic device is inaccurate, the sending period cannot be aligned with the timestamp of the first electronic device, so that the first electronic device cannot receive the Beacon message at set moments, or can receive the Beacon message only at certain moments, and still more Beacon messages to be received cannot be received. For example, as shown in the lower half of the interaction timing diagram of fig. 7, the second electronic device sends three Beacon messages, and the first electronic device only receives two Beacon messages at corresponding receiving occasions.
Therefore, when the Beacon message sending period is not accurate, once the Wi-Fi module of the first electronic device wakes up, because the Beacon message cannot be received in time, the awake module waits until the Beacon message is received and the TIM is not set (for example, the TIM is 0), and then the sleep module does not sleep. Obviously, the Wi-Fi module of the first electronic device is not powered off for a long time and the power consumption is larger because the design of the second electronic device is not standard and the sending period of the Beacon message is not accurate.
In the embodiment of the application, the first electronic device may determine whether the Wi-Fi of the second electronic device is abnormal by detecting whether a transmission cycle of a third message, such as a Beacon message, is accurate.
As a possible implementation manner, the determining, by the first electronic device, that the sending period of the third packet is inaccurate includes: if the receiving rate of the third message received from the second electronic device is smaller than or equal to the receiving threshold value in the fourth time period, the first electronic device determines that the sending period of the third message is inaccurate.
The fourth time period comprises a plurality of fourth time periods; the first electronic device detecting that a transmission cycle of a third message received from the second electronic device through the Wi-Fi connection is inaccurate in a fourth time period, including:
and if the first electronic equipment detects that the receiving rates of the third messages reach the message threshold value within the fourth period time period of the continuous preset number, determining that the sending period of the third messages received from the second electronic equipment through the Wi-Fi connection is inaccurate within the fourth period time period.
The ratio of the number of the actually received Beacon messages to the number of the Beacon messages to be received can be defined, namely the number of the actually received Beacon messages is divided by the number of the Beacon messages to be received and is recorded as the Beacon receiving rate.
The first electronic device detects that the receiving rate of the Beacon message is smaller than or equal to a certain threshold, which means that the first electronic device only receives a small part of the Beacon message. That is to say, after the Wi-Fi module is awakened, it is likely that the Beacon message cannot be received in time, so that the Wi-Fi module always waits for the Beacon message to arrive, and therefore, the Wi-Fi module has long working time and increases power consumption. For example, the threshold corresponding to the Beacon receiving rate may be 60%, and in this embodiment of the application, when the first electronic device detects that the Beacon receiving rate reaches 60%, the Wi-Fi module may be subjected to power saving processing.
Taking the third message as the Beacon message as an example, fig. 5A (4) shows a procedure for the first electronic device to detect whether the sending period of the Beacon message is accurate. And the Wi-Fi module counts the receiving rate of the Beacon message. The framework layer is provided with a timer, the timing period is T1, and the first module of the framework layer inquires the receiving rate of Beacon in the T1 time period (or inquires the number of actually received Beacon messages and calculates the receiving rate according to the actual receiving number and the number of to-be-received messages) from the Wi-Fi module every other timing period T1. If the query result in a certain T1 time period indicates that the receiving rate of the Beacon message reaches the threshold value 1, the sending period of the Beacon message in the T1 time period is called to be abnormal, one-time abnormality is recorded, namely the number of times of abnormality is increased by one, and whether the total number of times of abnormality reaches the preset number of times is judged. And if the receiving rate of the Beacon message does not reach the threshold value 1 in the query result within a certain T1 time period, clearing 0 the abnormal times, waiting for the arrival of the next timing period T1, querying the Wi-Fi module for the receiving rate of the Beacon message, and judging the relation between the receiving rate of the Beacon message and the threshold value 1.
Next, as shown in (4) in fig. 5A, when the query result in a certain time period T1 is that the reception rate of the Beacon packet reaches threshold 1 (the number of abnormal times is increased by one), if the total number of abnormal times reaches the preset number of times, setting a first identifier corresponding to the abnormality of the transmission cycle of the Beacon packet, which is used to indicate that the transmission cycle of the Beacon packet in the fourth time period is abnormal, that is, the transmission cycles of the Beacon packet in the consecutive preset (for example, 5) subdivision time periods T1 (that is, the fourth time period) of the fourth time period are all abnormal.
For another example, referring to fig. 5F, the first module queries or calculates the receiving rate of the Beacon message every 5 minutes, and when the receiving rate of the Beacon message is less than or equal to the threshold value within 5 minutes, it is called as a primary anomaly. And when 5 times of abnormality occurs continuously, determining that the sending period of the Beacon message is inaccurate in the fourth time period (namely 25 minutes).
In other embodiments, the first condition may also be that, in a fifth time period, the working time of the Wi-Fi module is greater than or equal to a preset time threshold, and the number of fourth messages received by the first electronic device from the second electronic device through the Wi-Fi connection is less than or equal to a first preset number threshold; in a sixth time period, the working time of the Wi-Fi module is greater than or equal to a preset time threshold, and the number of fifth messages sent to the second electronic device by the first electronic device through the Wi-Fi connection is less than or equal to a second preset number threshold.
The fourth message may be a non-traffic message (such as a control message) or a traffic message. The fifth message may be a traffic message or a non-traffic message.
Normally, the Wi-Fi module is in an operating state to be able to send and receive messages (including traffic messages and non-traffic messages) in time. For example, when more messages need to be transmitted and received, the Wi-Fi module may need to be in an operating state for a long time in order to normally transmit and receive the messages. However, the applicant has noted that in some scenarios, the Wi-Fi module has a lower number of messages sent and received, although it has a longer operating time. This means that the Wi-Fi module may be abnormal. For example, when the state machine of the Wi-Fi module is abnormal, the Wi-Fi module may not be powered off, so that even if no or few messages need to be received and sent, the Wi-Fi module is always in a working state, resulting in high power consumption. This phenomenon may be referred to as a Wi-Fi module not powering down abnormally. In order to avoid this phenomenon, in the embodiment of the present application, when it is detected that the Wi-Fi module has a long operating time (greater than or equal to a threshold), and the number of messages received/sent by/from the Wi-Fi module is small (less than or equal to a certain threshold), power saving processing is performed on the Wi-Fi module.
As a possible implementation manner, in a fifth time period, the determining, by the first electronic device, that the working time of the Wi-Fi module is greater than or equal to a preset time threshold, and the number of fourth packets received by the first electronic device from the second electronic device through the Wi-Fi connection is less than or equal to a first preset number threshold includes:
if the working time of the Wi-Fi module is greater than or equal to a certain threshold (such as a threshold t) and the receiving number of the fourth messages is less than or equal to a certain threshold (such as a threshold s) within a fifth period of time of a preset number, it is determined that the working time of the Wi-Fi module is greater than or equal to the preset time threshold by the first electronic device within the fifth period of time, and the number of the fourth messages received by the first electronic device from the second electronic device through the Wi-Fi connection is less than or equal to the first preset number threshold.
The fourth message may be any message that the first electronic device is capable of receiving from the second electronic device over a Wi-Fi connection. Illustratively, as shown in (6) in fig. 5A, the flow of the first electronic device detecting whether the Wi-Fi module is not powered down due to an abnormality is shown. And the Wi-Fi module counts the receiving quantity of the fourth message and the working time of the Wi-Fi module. The first module of the framework layer queries, every timing cycle T7 (i.e., a fifth cycle time period), the Wi-Fi module about the number of received fourth messages in the T7 time period and the operating time length of the Wi-Fi module. If the query result in a certain time period T7 is that the receiving number of the fourth messages is smaller than or equal to a threshold u, and the working time of the Wi-Fi module is greater than or equal to a threshold T, it is called that the Wi-Fi module is abnormal and does not power off in the time period T7, and one abnormality is recorded, that is, the number of times of abnormality is increased by one, and whether the total number of times of abnormality reaches a preset number of times is judged. If the receiving number of the fourth message of the query result in a certain T7 time period is greater than the threshold value u, or the working time of the Wi-Fi module is less than the threshold value T, clearing the abnormal times to 0, waiting for the next timing period T7 to arrive, querying the Wi-Fi module for the receiving number of the fourth message and the working time of the Wi-Fi module, judging the relationship between the receiving number of the fourth message and the threshold value u, and judging the relationship between the working time of the Wi-Fi module and the threshold value T.
Next, as shown in (6) in fig. 5A, in a case that the query result in a certain period T7 is that the number of received fourth messages is less than or equal to the threshold u, and the working time of the Wi-Fi module is greater than or equal to the threshold T (the number of abnormal times is added by one), if the total number of abnormal times reaches the preset number of times, setting a first identifier corresponding to the abnormal non-power-off state of the Wi-Fi module, which is used for indicating that the Wi-Fi module is not powered off due to the abnormality in a fifth period of time.
For another example, referring to fig. 5G, the first module in the framework layer queries, every 5 minutes (i.e., a fifth period time period), how many messages are received in the 5 minutes and queries the working time length (marked by a shadow) of the Wi-Fi module in the 5 minutes, and when the working time length of the Wi-Fi module is greater than or equal to the threshold t and the received number of messages is less than or equal to the threshold within the 5 minutes, it is called an anomaly. When 5 times of abnormality occurs continuously, it is determined that the Wi-Fi module is abnormal in a fifth time period (namely 25 minutes) and is not powered off for a long time, and a first identifier corresponding to the abnormal non-powered off state of the Wi-Fi module is set.
As a possible implementation manner, in a sixth time period, the working time of the Wi-Fi module is greater than or equal to a preset time threshold, and the number of fifth messages sent by the first electronic device to the second electronic device through the Wi-Fi connection is less than or equal to a second preset number threshold, including: if the working time lengths of the Wi-Fi modules are greater than or equal to a certain threshold (such as a threshold v) and the sending number of the fifth messages is less than or equal to a certain threshold (such as a threshold w) within a sixth period of time of a preset number, it is determined that the working time lengths of the Wi-Fi modules are greater than or equal to a preset time length threshold within the sixth period of time, and the number of the fifth messages sent to the second electronic device by the first electronic device through the Wi-Fi connection is less than or equal to a second preset number threshold within the sixth period of time. A flowchart corresponding to the flow can be seen in fig. 5A (7), and a specific implementation of the corresponding step can be seen in fig. 5A (6).
In other embodiments, when determining whether the Wi-Fi module is abnormal and causes no power down, the first electronic device may also detect the number of received messages and the number of sent messages. For example, referring to fig. 5H, when the first electronic device detects that the working time of the Wi-Fi module is long and the number of the sent messages and the number of the received messages are small in a period of time, it indicates that the Wi-Fi module may not be powered off for a long time due to an abnormality, and the first electronic device may control the Wi-Fi module to be powered off, so as to reduce the power consumption of the whole device.
In this embodiment of the application, the first electronic device may detect any one or more of the following states: detecting that the number of the first messages reaches a first threshold value in a first time period; detecting that Wi-Fi disconnection and/or connection times within a third time period reach a third threshold; detecting that the number of the bit errors of the preset identification position of the second message reaches a second threshold value in a second time period; in a fourth time period, the sending period of a third message received by the first electronic device from the second electronic device through the Wi-Fi connection is inaccurate; in a fifth time period, the working time of the Wi-Fi module is greater than or equal to a preset time threshold, and the number of fourth messages received by the first electronic device from the second electronic device through the Wi-Fi connection is less than or equal to a first preset number threshold; in a sixth time period, the working time of the Wi-Fi module is greater than or equal to a preset time threshold, and in the working time period, the number of fifth messages sent to the second electronic device by the first electronic device through the Wi-Fi connection is less than or equal to a second preset number threshold. These states may be referred to as Wi-Fi high power consumption states, or Wi-Fi super power consumption thresholds, or Wi-Fi anomalies. Illustratively, the first electronic device detects that any one of the first identifiers is set, which indicates that the Wi-Fi power consumption super-threshold is detected. Any first identifier includes a first identifier corresponding to the abnormal Beacon packet sending period shown in (4) of fig. 5A, or a first identifier corresponding to (2) some kind of multicast packet shown in fig. 5A, a first identifier corresponding to some kind of unicast packet, a first identifier corresponding to rekey packet, and a first identifier corresponding to renew packet, or a first identifier corresponding to the TIM setting error shown in (3) of fig. 5A, or a first identifier corresponding to the Wi-Fi disconnection event shown in (5) of fig. 5A.
When the first electronic device detects that the power consumption of the Wi-Fi exceeds the threshold, the Wi-Fi module can be controlled to power off, so that the Wi-Fi module is not frequently waken up any more, or the Wi-Fi module is prevented from not powering off for a long time after being waken up.
In some embodiments, after detecting that the power consumption of the Wi-Fi exceeds the threshold, the terminal may further detect whether a service is in progress, and may control the Wi-Fi module to power down in the case where it is determined that no service is in progress, so as to avoid an influence of the power down of the Wi-Fi module on the service.
In some embodiments, under some of the first preset scenarios mentioned above, for example, when the Wi-Fi high power consumption state is detected when the first electronic device is turned off, the first electronic device may not prompt the user to automatically control the Wi-Fi module to power down.
In other embodiments, in a case that the first electronic device always turns on the power consumption reduction function according to the embodiment of the present application by default, or the first electronic device turns on the power consumption reduction function switch in fig. 3B or fig. 3C or fig. 3A, the first electronic device may execute the power consumption reduction method according to the embodiment of the present application. In some scenarios, such as when the first electronic device is turned on, and the first electronic device detects a Wi-Fi power-high consumption state, such as when the number of first messages received from the second electronic device in the first time period reaches a first threshold, the first electronic device may prompt the user to switch the network connection from the Wi-Fi connection to the mobile data connection, such as popping up a prompt box 601 "detect Wi-Fi power-high consumption, switch to the mobile data connection? ". When the first electronic device receives a first instruction of the user, that is, the user selects to switch the network connection from the Wi-Fi connection to the mobile data connection, for example, click a switch button shown in (1) of fig. 6, the first electronic device controls the Wi-Fi module to power off again, and switches the network connection to the mobile data connection. Therefore, the first electronic device can use the mobile data connection after the Wi-Fi module is powered off.
The user may also check the "no more prompts" option as shown in (1) of fig. 6 and click the toggle button. Therefore, subsequently, under the condition that the Wi-Fi function and the mobile data function are both started, when the Wi-Fi module is powered off (namely, the Wi-Fi connection is disconnected), the first electronic device does not prompt the user any more, but automatically uses the mobile data connection.
In other embodiments, when the first electronic device is turned on, and the first electronic device detects that the Wi-Fi consumes high power, the user may also be only prompted whether to turn off the Wi-Fi module. For example, the prompt box 602 shown in (2) of fig. 6 pops up. When the user clicks a close button such as that shown in (2) of fig. 6, the first electronic device controls the Wi-Fi module to power down.
Of course, the user may also set in the first electronic device, in which scenes the user is prompted whether to turn off the Wi-Fi module or whether to switch to the mobile network module. For example, the setting is performed on the setting interface shown in fig. 3A, or other setting methods are adopted. In this way, the first electronic device may have different prompting schemes in different scenes according to the setting of the user. Or, in other embodiments, the first electronic device may also automatically learn the usage habits of the user, and save different prompting requirements of the user in different scenes, so as to perform different prompting schemes. For example, when the user is in a scene such as an airport, the user is likely not to carry the charger, and in order to reduce power consumption during the screen-on notification, the first electronic device may not prompt the user, but directly control the Wi-Fi module to power off.
Of course, the first electronic device may prompt the user in other prompting manners, and the prompting manner is not limited in the embodiment of the present application. For example, in a scene such as daytime or when the user is using the first electronic device, the first electronic device plays a voice "detects that Wi-Fi consumes high power, and whether to switch to a mobile data connection".
In still other embodiments, the first electronic device is on screen, the user is launching the immersive application and is using the application, and the first electronic device does not prompt the user when detecting the Wi-Fi high power consumption state in order not to break the user's immersive experience.
Optionally, when detecting that the Wi-Fi consumes high power, the first electronic device may automatically switch to the mobile network if it is determined that the traffic of the mobile network does not exceed the set threshold. Optionally, the first electronic device monitors the mobile network traffic, and when the first electronic device determines that the mobile network traffic exceeds the set threshold, the mobile network connection is disconnected.
Or optionally, in order to avoid a short network disconnection phenomenon caused by time delay generated by switching the Wi-Fi connection to the mobile network connection, the first electronic device continues to use the Wi-Fi connection to acquire the network service, and may delay the power-off time of the Wi-Fi module.
Immersive applications may be such as, but not limited to, large handgames and the like. Delaying the Wi-Fi module from powering down may be when the immersive application finishes running, or at other times.
It should be noted that if the immersive application finishes running within a short time after the Wi-Fi high power consumption state is detected, the first electronic device may directly control the Wi-Fi module to power down. It is also possible that the immersive application may end up running long after the Wi-Fi high power consumption state is detected, at which point Wi-Fi power consumption may return to normal. Then, the first electronic device can restart the detection of whether the Wi-Fi consumes high power or not in a round, and control the Wi-Fi module to power down when the Wi-Fi consumes high power.
According to the embodiment of the application, after the first electronic device detects that the Wi-Fi is high in power consumption, whether a user is prompted to power off a Wi-Fi module or not, and the prompting mode and the prompting time are not limited.
At present, when the Wi-Fi module of the first electronic device connected to the second electronic device consumes power seriously due to the non-standard design of the second electronic device, there is no forward solution, i.e., all manufacturers cannot be required to control the working modes of data packets, messages, frames, etc. according to the unified standard.
According to the method for reducing power consumption of the first electronic device, when the first electronic device detects that the number of the first messages reaches the first threshold value in the first time period, and/or detects that Wi-Fi is disconnected and/or connected for a third time period, and/or detects that the number of the preset identification position errors of the second messages reaches the second threshold value in the second time period, it means that Wi-Fi connection causes high power consumption, and therefore the first electronic device disconnects WiFi connection. The problem that the power consumption of first electronic equipment connected with second electronic equipment through Wi-Fi is high due to the fact that the second electronic equipment is not designed in a standard mode is solved.
For example, taking a mobile phone with a battery capacity of 4000mAh as an example, a user may expect that the standby power of the mobile phone is reduced by less than 5%, but the current router design is not standardized, which may cause the power consumption of the mobile phone to be more than 20% after the mobile phone is standby for 6 hours, even the power consumption reaches 50%. By using the method for reducing the power consumption of the first electronic equipment, the power consumption can be reduced to about 3% -5% after the first electronic equipment is standby for 6 hours, and the cruising requirement of a user is met.
In some embodiments, after the Wi-Fi module of the first electronic device is powered off, that is, the Wi-Fi connection is disconnected, the first electronic device may not use the mobile network connection, that is, the Wi-Fi connection and the mobile network connection are both disconnected, or the Wi-Fi module and the mobile network module both enter a sleep state. For example, under the condition of turning off the screen, the first electronic device detects that the Wi-Fi module consumes high power and controls the Wi-Fi module to power down. Then, because the user does not light the screen, which indicates that the user may not want to network the first electronic device at that time, the first electronic device may not switch the network connection to the mobile network connection, that is, the first electronic device may be in a network disconnection state, so as to further reduce the power consumption of the whole device.
The first period, the second period, and the third period may be independently set. Two of the three time periods, i.e., the first time period, the second time period, and the third time period, may be the same, may also be different, may also be the same for all three time periods, or may be designed in other ways.
In other embodiments, after the Wi-Fi module of the first electronic device is powered down, the first electronic device may use the mobile network connection to network for some services. That is, after step S402, the first electronic device may further perform step S403 as follows:
and S403, after the Wi-Fi module is subjected to power saving processing, the first electronic device sends a service message to be sent through mobile network connection.
It can be understood that, since the Wi-Fi module consumes more power, the first electronic device may wake up a mobile network (for example, a 4G network) module with lower power consumption than the Wi-Fi module, and communicate through the mobile network module.
In some embodiments, before step S403, the mobile network connection of the first electronic device remains in a connected state, that is, the mobile network module is in an awake state, and then the first electronic device sends the service packet directly through the mobile network connection established by the mobile network module.
In other embodiments, the mobile network module is in a dormant state prior to step S403. Then, after the Wi-Fi module enters the sleep state, if the first electronic device has a service packet to be sent, the mobile network module needs to be awakened first, a mobile network connection is established through the mobile network module, and the service packet is sent through the mobile network connection.
After the Wi-Fi module is powered off, the first electronic device can automatically use the mobile network to connect to acquire the network service under the condition that the mobile network flow is determined not to exceed the set threshold. Alternatively, the user is asked whether to use the mobile network connection to obtain network services. For example, when the user does not manually start the mobile network function before, the first electronic device controls the Wi-Fi module to power off, and asks the user whether to use the mobile network connection to obtain the network service.
In this way, the first electronic device can interact with an internet device, such as a server of a hand-game application program, through a mobile network connection, so as to obtain corresponding hand-game data and continue to operate the hand-game.
In some embodiments, after the first electronic device sends a service packet to be sent, if the first electronic device does not send or receive other service packets within a period of time, the mobile network module is controlled to enter the dormant state, so as to reduce power consumption.
S404, if the first electronic device detects that the first electronic device is in a second preset scene, the Wi-Fi module is awakened, and the first electronic device interacts with the second electronic device through Wi-Fi connection.
It can be understood that the first electronic device continuously detects the use state of the first electronic device
The second preset scenario includes, but is not limited to, a combination of one or more of the following: the method comprises the steps that first electronic equipment is charged, the first electronic equipment moves in position, the first electronic equipment is turned on and unlocked, the screen turning-on time of the first electronic equipment reaches a fourth threshold value, the number of application programs started by the first electronic equipment is smaller than or equal to a preset number, the flow of a mobile network reaches a fifth threshold value after Wi-Fi connection is disconnected within a second preset time period (such as 20: 00-22: 00), and the alarm clock reaches the timing moment.
Wherein the first electronic device is moved in position, meaning that the user may be about to use the first electronic device for a service. The first electronic device is turned on, which may be in response to an unlocking instruction of the first electronic device by a user, indicating that the user may use the first electronic device.
It can be understood that in some scenarios, the user may light up the screen of the first electronic device and may want to use the first electronic device to surf the internet. The first electronic device may wake up the Wi-Fi module upon detecting that the screen is illuminated.
In some scenarios, it may be a false touch or not want to use the first electronic device for internet access when the user lights the first electronic device. The first electronic device may wake up the Wi-Fi module if the user lights up the screen and unlocks the first electronic device.
In some scenarios, the user may set an alarm clock in the first electronic device, such as setting 8 o' clock in the morning to get up. Then the first electronic device may resume the Wi-Fi connection at 8 points so that the user may surf the internet using the Wi-Fi connection.
The fifth threshold may be set according to a user traffic package or a user traffic setting. For example, if the user sets the upper flow limit per day to 500M, the fifth threshold may be set to 500M, or other values.
In some embodiments of the application, if the first electronic device still maintains the mobile network connection when the first electronic device determines that the first electronic device is in the second preset scenario, the mobile network connection may be actively disconnected, the Wi-Fi module is awakened, the Wi-Fi connection is established, and the Wi-Fi connection mode is adopted to interact with the second electronic device. In some examples, the first electronic device may also wake up the Wi-Fi module to establish a Wi-Fi connection without disconnecting the mobile network connection.
Or in other embodiments, the first electronic device wakes up the Wi-Fi module and communicates with the second electronic device through the Wi-Fi module once detecting the departure from the first preset scene.
Fig. 8 or fig. 9 shows an exemplary application scenario of the technical solution of the embodiment of the present application. As shown in fig. 8, in the sleep process of the user, when the mobile phone detects that a first preset scene is met, for example, the mobile phone is in a long-time screen off state and Wi-Fi is in a connected state, the mobile phone automatically starts Wi-Fi abnormality detection, and when the mobile phone detects that a first condition is met, that is, when the Wi-Fi is abnormal, the mobile phone automatically performs power saving processing on the Wi-Fi module, for example, controls the Wi-Fi module to perform a sleep state, so as to reduce the power consumption of the mobile phone.
Of course, the technical solution of the embodiment of the present application may also be applied to other similar scenes, and optionally, the scene may be other scenes in which the user does not use the mobile phone for a long time. For example, the user is not sleeping, but is busy working and is occupied with a scene of operating the mobile phone.
In other embodiments, in a scenario where a user operates a mobile phone, the power consumption reduction method according to the embodiment of the present application may also be used. For example, as shown in fig. 9, the user's cell phone is low, but the user may not carry the charger. When the mobile phone detects that the electric quantity is insufficient and the Wi-Fi is in a connection state, the Wi-Fi abnormity detection function can be started. During this time, the user may be operating the handset at all times. When the mobile phone detects a Wi-Fi abnormality, the user may be prompted with "detect high power consumption of Wi-Fi, switch to mobile data connection? (there may be other prompting means) "of course, the mobile phone may also directly control the Wi-Fi to power down without prompting the user, so as to reduce the power consumption of the mobile phone.
The embodiment of the present application further provides a chip system, as shown in fig. 10, the chip system includes at least one processor 1101 and at least one interface circuit 1102. The processor 1101 and the interface circuit 1102 may be interconnected by wires. For example, the interface circuit 1102 may be used to receive signals from other devices (e.g., a memory of the first electronic device 100). As another example, the interface circuit 1102 may be used to send signals to other devices (e.g., the processor 1101). Illustratively, the interface circuit 1102 may read instructions stored in the memory and send the instructions to the processor 1101. The instructions, when executed by the processor 1101, may cause the first electronic device to perform the various steps performed by the first electronic device 100 (e.g., a cell phone) in the embodiments described above. Of course, the chip system may further include other discrete devices, which is not specifically limited in this embodiment of the present application.
The embodiment of the present application further provides an apparatus, where the apparatus is included in a first electronic device or a second electronic device, and the apparatus has a function of implementing a behavior of the first electronic device or the second electronic device in any one of the above-mentioned embodiments. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes at least one module or unit corresponding to the above functions. Such as detection modules or units, and determination modules or units, etc.
Embodiments of the present application further provide a computer-readable storage medium, which includes computer instructions, and when the computer instructions are executed on a first electronic device or a second electronic device, the first electronic device or the second electronic device is caused to perform any one of the methods in the foregoing embodiments.
The embodiments of the present application also provide a computer program product, which when run on a computer, causes the computer to execute any one of the methods in the above embodiments.
It is to be understood that, in order to implement the above functions, the first electronic device and the like include hardware structures and/or software modules for executing the respective functions. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present embodiments.
In the embodiment of the present application, the first electronic device and the like may be divided into functional modules according to the method example, for example, each functional module may be divided for each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, the division of the modules in the embodiment of the present invention is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
Each functional unit in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or make a contribution to the prior art, or all or part of the technical solutions may be implemented in the form of a software product stored in a storage medium and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard drive, read only memory, random access memory, magnetic or optical disk, and the like.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (15)

1. A method for reducing power consumption, applied to a first electronic device having a Wi-Fi module and a mobile network module, the method comprising:
the first electronic equipment establishes Wi-Fi connection with second electronic equipment through the Wi-Fi module, and the first electronic equipment interacts with the second electronic equipment through the Wi-Fi connection;
if the first electronic equipment determines that a first condition is met, the first electronic equipment performs power saving processing on the Wi-Fi module;
the first condition comprises any one or more of:
the first item: the number of first messages received by the first electronic device from the second electronic device through the Wi-Fi connection in a first time period is greater than or equal to a first threshold value;
the second term is: the number of times of position errors of a preset identification position of a second message received by the first electronic device from the second electronic device through the Wi-Fi connection in a second time period is greater than or equal to a second threshold value;
the third item: within a third time period, the number of times of disconnection of the Wi-Fi connection or the number of times of establishment of the Wi-Fi connection is greater than or equal to a third threshold value;
the fourth item: in a fourth time period, the sending cycle of a third message received by the first electronic device from the second electronic device through the Wi-Fi connection is inaccurate;
the fifth item: in a fifth time period, the working time of the Wi-Fi module is greater than or equal to a preset time threshold, and the number of fourth messages received by the first electronic device from the second electronic device through the Wi-Fi connection is less than or equal to a first preset number threshold;
the sixth item: in a sixth time period, the working time of the Wi-Fi module is greater than or equal to a preset time threshold, and the number of fifth messages sent by the first electronic device to the second electronic device through the Wi-Fi connection is less than or equal to a second preset number threshold;
the first message is used for detecting Wi-Fi abnormity according to the number of the first message; the second message is used for detecting Wi-Fi abnormity according to the setting condition of the preset identification position of the message; the third message is used for detecting Wi-Fi abnormity according to the sending period of the message;
the preset identification bit is used for indicating whether a service message to be sent to the first electronic device by the second electronic device exists or not.
2. The method for reducing power consumption according to claim 1, wherein the first packet, the second packet, and the third packet are non-service packets; the first message comprises any one or more of the following items: unicast messages, multicast messages, rekey messages, renew messages and router announcement RA messages; the second message comprises a Beacon message; the preset identification bit of the second message comprises a traffic indication map TIM bit; the correctly set preset identification bit is used for indicating that a service message to be sent to the first electronic equipment by the second electronic equipment exists; the third message comprises a Beacon message.
3. The method according to claim 1 or 2, wherein the inaccuracy in the transmission period of the third packet comprises misalignment between the transmission period of the third packet transmitted by the second electronic device and the reception period of the third packet received by the first electronic device.
4. The method for reducing power consumption according to any one of claims 1 to 3, wherein the determining, by the first electronic device, that the preset IDENTIFY-LOCATION bit of the second packet is incorrect comprises:
the first electronic equipment receives the second message from the second electronic equipment, and a preset identification position of the second message is set;
the first electronic equipment sends a null frame to the second electronic equipment, and the null frame is used for requesting a service message to the second electronic equipment;
and if the service message is not received from the second electronic equipment in a seventh time period, the first electronic equipment determines that the preset identification position of the second message is wrong.
5. The method for reducing power consumption according to any one of claims 1-4, wherein the determining, by the first electronic device, that the transmission period of the third packet is inaccurate comprises: if the receiving rate of the third message received from the second electronic device is smaller than or equal to the receiving threshold value in the fourth time period, the first electronic device determines that the sending period of the third message is inaccurate;
the receiving rate of the third packet is a ratio of the number of actually received third packets to the number of third packets to be received.
6. The method for reducing power consumption according to any one of claims 1-5, wherein after the first electronic device determines that a first condition is met, before the first electronic device performs power saving processing on the Wi-Fi module, the method further comprises:
the first electronic equipment displays a first interface, and the first interface is used for prompting whether to disconnect Wi-Fi connection or not to a user;
the first electronic equipment performs power saving processing on the Wi-Fi module, and the processing comprises the following steps:
responding to a first instruction input by a user on the first interface, the first electronic equipment performs power saving processing on the Wi-Fi module and disconnects Wi-Fi connection; the first instruction is used for indicating disconnection of Wi-Fi connection.
7. The method for reducing power consumption of any of claims 1-6, wherein after the first electronic device determines that a first condition is met, before the first electronic device performs power saving processing on the Wi-Fi module, the method further comprises:
the first electronic equipment displays a second interface, and the second interface is used for prompting a user whether to switch the network connection from the Wi-Fi connection to the mobile network connection;
the first electronic equipment performs power saving processing on the Wi-Fi module, and the processing comprises the following steps:
responding to a second instruction input by a user on the second interface, the first electronic equipment performs power saving processing on the Wi-Fi module and switches network connection to the mobile network connection; the second instruction is used for indicating the network connection to be switched to the mobile network connection.
8. The method according to any one of claims 1-7, further comprising:
the first electronic device receives an instruction of a user to start a first function, or when the first electronic device determines that the first electronic device is in a first preset scene, the first function is started; wherein the first function is a function of reducing power consumption of the first electronic device; the first preset scene includes: the method comprises the steps that the electric quantity of first electronic equipment is lower than a preset value, the number of application programs started by the first electronic equipment is larger than the preset number, the first electronic equipment starts the preset application programs, the screen-off duration of the first electronic equipment exceeds the preset duration within a first preset time period at the current time, the first electronic equipment keeps network connection when being in a dormant state, the first electronic equipment does not detect ongoing services within a period of time, and the ambient light brightness is smaller than or equal to any one or more of preset brightness.
9. The method for reducing power consumption according to any one of claims 1-8, wherein the method further comprises:
after the first electronic device performs power saving processing on the Wi-Fi module, if the first electronic device has a service message to be sent, the first electronic device sends the service message to be sent through a mobile network connection established by the mobile network module.
10. The method for reducing power consumption according to any one of claims 1-9, wherein after the first electronic device performs power saving processing on the Wi-Fi module, the method further comprises:
if the first electronic equipment detects that the first electronic equipment is in a second preset scene or is no longer in the first preset scene, awakening the Wi-Fi module, and establishing Wi-Fi connection with the second electronic equipment again through the Wi-Fi module;
the second preset scenario comprises any one or combination of more of the following: the method comprises the steps that first electronic equipment is charged, the position of the first electronic equipment is moved, the first electronic equipment is turned on, the screen turning-on time of the first electronic equipment reaches a fourth threshold value, the number of application programs started by the first electronic equipment is smaller than or equal to a preset number, and the flow of a mobile network reaches a fifth threshold value after the Wi-Fi connection is disconnected within a preset time period at the current time.
11. The method for reducing power consumption according to any one of claims 1 to 10, wherein the first electronic device performs power saving processing on the Wi-Fi module, and the method comprises: the first electronic equipment controls the Wi-Fi module to enter a sleep state.
12. The method for reducing power consumption of any of claims 1-11, wherein the second electronic device comprises any of a wireless router, a CPE.
13. An electronic device, comprising: a processor, a memory, a touchscreen, a Wi-Fi module, and a mobile network module, the memory, the touchscreen, the Wi-Fi module, the mobile network module coupled with the processor, the memory for storing computer program code, the computer program code comprising computer instructions that, when read from the memory by the processor, cause the electronic device to perform the method of reducing power consumption of any of claims 1-12.
14. A computer readable storage medium comprising computer instructions which, when executed on an electronic device, cause the electronic device to perform the method of reducing power consumption of any of claims 1-12.
15. A chip system comprising one or more processors, wherein when the one or more processors execute instructions, the one or more processors perform the method of reducing power consumption of any of claims 1-12.
CN202011632891.4A 2020-12-31 2020-12-31 Method for reducing power consumption and electronic equipment Pending CN114697932A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011632891.4A CN114697932A (en) 2020-12-31 2020-12-31 Method for reducing power consumption and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011632891.4A CN114697932A (en) 2020-12-31 2020-12-31 Method for reducing power consumption and electronic equipment

Publications (1)

Publication Number Publication Date
CN114697932A true CN114697932A (en) 2022-07-01

Family

ID=82134139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011632891.4A Pending CN114697932A (en) 2020-12-31 2020-12-31 Method for reducing power consumption and electronic equipment

Country Status (1)

Country Link
CN (1) CN114697932A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024109197A1 (en) * 2022-11-24 2024-05-30 荣耀终端有限公司 Method for reducing power consumption and electronic device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653006A (en) * 2015-12-29 2016-06-08 北京金山安全软件有限公司 Method and device for saving electric quantity and electronic equipment
CN105898809A (en) * 2016-05-25 2016-08-24 努比亚技术有限公司 WiFi connection management device and method, and mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653006A (en) * 2015-12-29 2016-06-08 北京金山安全软件有限公司 Method and device for saving electric quantity and electronic equipment
CN105898809A (en) * 2016-05-25 2016-08-24 努比亚技术有限公司 WiFi connection management device and method, and mobile terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024109197A1 (en) * 2022-11-24 2024-05-30 荣耀终端有限公司 Method for reducing power consumption and electronic device

Similar Documents

Publication Publication Date Title
EP4080834A1 (en) Notification processing system and method, and electronic device
WO2022257977A1 (en) Screen projection method for electronic device, and electronic device
CN112533269B (en) Data receiving and sending method, electronic equipment and computer readable storage medium
WO2020143380A1 (en) Data transmission method and electronic device
CN111405681B (en) Wi-Fi Aware link establishment method, wi-Fi Aware link establishment system, electronic equipment and storage medium
WO2021082829A1 (en) Bluetooth connection method and related apparatus
WO2021217644A1 (en) Wake-up signal configuration method and device, wake-up method and device, and storage medium
CN113133095B (en) Method for reducing power consumption of mobile terminal and mobile terminal
US20220369394A1 (en) Bluetooth reconnection method and related apparatus
CN112954819B (en) Equipment networking method, electronic equipment and system
EP4177746A1 (en) Task processing method and related apparatus
CN113676339B (en) Multicast method, device, terminal equipment and computer readable storage medium
CN113472477B (en) Wireless communication system and method
CN114697932A (en) Method for reducing power consumption and electronic equipment
CN112469012A (en) Bluetooth communication method and related device
CN113518344B (en) User equipment and energy saving method and medium thereof
WO2022147730A1 (en) Power-saving signal processing method and apparatus, communication device, and storage medium
WO2022205046A1 (en) Information transmission method and apparatus, communication device, and storage medium
CN114697438B (en) Method, device, equipment and storage medium for carrying out call by utilizing intelligent equipment
CN116709476B (en) Method and device for waking up equipment, electronic equipment and storage medium
WO2024109197A1 (en) Method for reducing power consumption and electronic device
WO2023226645A9 (en) Communication method, communication system, and electronic device
WO2023061217A1 (en) Data transmission method and apparatus
CN116056190A (en) Method for managing terminal device, electronic device and computer readable storage medium
CN118057881A (en) Standby method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination