CN113766614B - Method for reducing power consumption of terminal equipment and terminal equipment - Google Patents

Method for reducing power consumption of terminal equipment and terminal equipment Download PDF

Info

Publication number
CN113766614B
CN113766614B CN202110649614.2A CN202110649614A CN113766614B CN 113766614 B CN113766614 B CN 113766614B CN 202110649614 A CN202110649614 A CN 202110649614A CN 113766614 B CN113766614 B CN 113766614B
Authority
CN
China
Prior art keywords
service
terminal equipment
terminal device
terminal
equipment
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.)
Active
Application number
CN202110649614.2A
Other languages
Chinese (zh)
Other versions
CN113766614A (en
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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202110649614.2A priority Critical patent/CN113766614B/en
Publication of CN113766614A publication Critical patent/CN113766614A/en
Priority to PCT/CN2022/089658 priority patent/WO2022257639A1/en
Application granted granted Critical
Publication of CN113766614B publication Critical patent/CN113766614B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04W52/0254Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity detecting a user operation or a tactile contact or a motion of the device
    • 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/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0264Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
    • 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

Abstract

The embodiment of the application provides a method for reducing power consumption of terminal equipment and the terminal equipment. The method comprises the following steps: when the terminal equipment is connected with external equipment through the first Type-C interface and the second Type-C interface, executing business related to the external equipment; detecting whether the terminal equipment completes the service or not in response to the detection that the terminal equipment is in the long standby state; and controlling the AP to sleep in response to the detection that the terminal equipment completes the service. In the embodiment of the application, when the terminal device is in the long standby state, the AP of the terminal device terminal can sleep when the terminal device completes the service related to the external device, on one hand, the terminal device is not affected to execute the service related to the external device, and on the other hand, the power consumption of the terminal device can be reduced.

Description

Method for reducing power consumption of terminal equipment and terminal equipment
Technical Field
The embodiment of the application relates to the USB Type-C interface technology, in particular to a method for reducing power consumption of terminal equipment and the terminal equipment.
Background
The universal serial bus Type-C (USB Type-C) interface is widely popularized and applied to terminal equipment by virtue of the convenience of positive and negative insertion, strong compatibility and the advantage of quick charging. Terminal equipment can charge for wireless earphone through Type-C interface, reads the data of USB flash disk etc..
At present, a terminal device charges an earphone in a long standby state, an Application Processor (AP) in the terminal device is always in a working state and does not sleep after charging is completed, and power consumption of the terminal device is large.
Disclosure of Invention
The embodiment of the application provides a method for reducing power consumption of a terminal device and the terminal device, which can reduce the power consumption of the terminal device when the terminal device is in a long standby state and executes a service related to an external device.
In a first aspect, an execution subject of the method may be a terminal device or a chip in the terminal device, and the following description takes the execution subject as the terminal device as an example. The terminal equipment comprises an application processor AP and a first Type-C interface, and the external equipment comprises a second Type-C interface. In the embodiment of the application, when the terminal device is connected with the external device through the first Type-C interface and the second Type-C interface, the service related to the external device is executed. It should be understood that the service related to the terminal device and the external device may be: and data transmission is carried out between the terminal equipment and the external equipment, or the terminal equipment charges the external equipment. And when the terminal equipment is in the long standby state, responding to the detection that the terminal equipment is in the long standby state, and detecting whether the terminal equipment completes the service, wherein responding to the detection that the terminal equipment completes the service, and controlling the AP to sleep. In one embodiment, the controlling the AP to sleep by the terminal device may be understood as: the terminal device may close all processes in the AP and control the AP to sleep.
It should be understood that, in the existing technical solution, when the terminal device is in the long standby state, even if the terminal device completes the service related to the external device, the AP is not dormant and is always in the working state, so that the power consumption of the terminal device is large. In the embodiment of the application, when the terminal equipment is in a long standby state, the terminal equipment can detect whether to complete the service related to the external equipment or not, and then can respond to the terminal equipment to complete the service, control the AP dormancy, so that the power consumption of the terminal equipment can be reduced, and further the duration of the terminal equipment can be prolonged.
In one possible implementation manner, when the terminal device is in the long standby state, the reason why the AP is not dormant in the prior art is: the AP comprises a USB module, wherein the USB module is used for managing the service related to the terminal equipment and the external equipment, and even if the terminal equipment completes the service, the USB module is not dormant, so that the AP cannot be dormant.
In the embodiment of the application, when the terminal equipment is in the long standby state, the terminal equipment detects whether the terminal equipment completes the service or not in response to the detection that the terminal equipment is in the long standby state, and when the terminal equipment completes the service, the terminal equipment can control the USB module to sleep so that the AP sleeps, and the power consumption of the terminal equipment is further reduced.
It should be understood that the terminal device in the long standby state may be understood as: the terminal equipment is in a screen-off state, the screen-off duration is greater than or equal to the preset duration, and the terminal equipment is in a static state. Therefore, the terminal equipment can always detect the motion state and the screen state of the terminal equipment, and further determine whether the terminal equipment is in the long standby state. Wherein the motion state comprises: a stationary state and a non-stationary state, the screen state including: a screen-off state and a screen-on state. And the terminal equipment responds to the detection that the terminal equipment is in a screen-off state, the screen-off time is longer than or equal to the preset time, and the terminal equipment is in a static state, and the terminal equipment is determined to be in a long standby state.
The following two aspects are described with respect to the above terminal device detecting whether the terminal device completes the service. In one embodiment, the service includes: the terminal equipment charges the external equipment, or the terminal equipment and the external equipment transmit data:
in a possible implementation manner, the external device may detect whether the terminal device completes the service, and then when the external device detects that the terminal device completes the service, the external device may send a signal indicating that the service is completed to the terminal device. In this way, the terminal device may determine whether the terminal device completes the service based on whether a signal of service completion is received from the external device. If the signal from the external equipment is received, the terminal equipment is determined to finish the service; if the signal from the external equipment is not received, the terminal equipment is determined not to finish the service.
In this manner, the manner for the external device to detect whether the terminal device completes the service may be:
first, when the service includes that the terminal device charges the external device, the external device detecting whether the terminal device completes the service related to the external device may be: and the external equipment detects whether the electric quantity of the external equipment reaches a preset electric quantity so as to detect whether the terminal equipment completes the service. If the electric quantity reaches the preset electric quantity, determining that the terminal equipment completes the service; and if the electric quantity is smaller than the preset electric quantity, determining that the terminal equipment does not finish the service.
Secondly, when the transmission data is data received by the external device from the terminal device, the data comprises at least one data stream. The external equipment detects whether the data stream from the terminal equipment exists within a preset time after receiving the data stream from the terminal equipment; if yes, determining that the terminal equipment does not finish the service; and if the service does not exist, determining that the terminal equipment completes the service.
Thirdly, when the transmission data is data sent to the terminal device by the external device, the data comprises at least one data stream, and the external device detects whether all the data streams have been sent or not based on the identification of the data stream; if so, determining that the terminal equipment completes the service; if not, determining that the terminal equipment does not finish the service.
As in the above embodiment, the manner for the external device to send the service complete signal to the terminal device may be as follows: the first Type-C interface comprises a first function extension pin, the second Type-C interface comprises a second function extension pin, and when the terminal equipment is connected with the external equipment through the first Type-C interface and the second Type-C interface, the first function extension pin is connected with the second function extension pin. The external device may send a service completion signal to the second function extension pin through the second function extension pin. In this way, the terminal device may receive the signal from the second function extension pin based on the first function extension pin.
In a possible implementation manner, the terminal device may also detect whether the terminal device completes the service. The following exemplary examples illustrate the manner in which the terminal device detects whether the terminal device has completed the service:
first, when the transmission data is data received by the terminal device from the external device, the data includes at least one data stream, and the terminal device may detect whether the data stream from the external device exists within a preset time period after receiving the data stream from the external device. If the data stream from the external equipment exists, determining that the terminal equipment does not finish the service; and if the data stream from the external equipment does not exist, determining that the terminal equipment completes the service.
Secondly, when the transmission data is data sent by the terminal device to the external device, the data comprises at least one data stream, and the terminal device detects whether all the data streams have been sent or not based on the identification of the data stream; if the terminal equipment has sent all data streams, determining that the terminal equipment completes the service; and if the terminal equipment does not send all the data streams, determining that the service is not finished by the terminal equipment.
As in the above embodiment, the terminal device may detect itself or detect, through the external device, whether the terminal device completes the service related to the external device, and then when the terminal device completes the service, the AP is controlled to sleep, thereby achieving the purpose of reducing the power consumption of the terminal device.
As described above, when the terminal device is in the long standby state, the AP of the terminal device may sleep when the terminal device completes the service related to the external device, which does not affect the terminal device to execute the service related to the external device, and may reduce the power consumption of the terminal device.
In a possible implementation manner, if the terminal device detects that the terminal device is on the screen or moves, the AP is controlled to exit from the sleep mode. Thus, the AP may normally operate to implement various functions of the terminal device, which is not described in detail in this embodiment of the present application.
In a second aspect, an embodiment of the present application provides a method for reducing power consumption of a terminal device, which is applied to an external device. The terminal equipment comprises a first Type-C interface, the external equipment comprises a second Type-C interface, and the method comprises the following steps: when the external equipment is connected with the terminal equipment through the second Type-C interface and the first Type-C interface, detecting whether the terminal equipment completes the service related to the external equipment or not; and responding to the detection that the terminal equipment completes the service, and sending a service completion signal to the terminal equipment.
In one possible implementation, the service includes: and the terminal equipment charges the external equipment, or data is transmitted between the terminal equipment and the external equipment.
In a possible implementation manner, when the service includes that the terminal device charges the external device, the detecting whether the terminal device completes the service related to the external device includes: detecting whether the electric quantity of the external equipment reaches a preset electric quantity so as to detect whether the terminal equipment completes the service; if the electric quantity reaches the preset electric quantity, determining that the terminal equipment completes the service; and if the electric quantity is smaller than the preset electric quantity, determining that the terminal equipment does not finish the service.
In a possible implementation manner, when the data is transmitted to the external device and received from the terminal device, where the data includes at least one data stream, the detecting whether the terminal device completes a service related to the external device includes: detecting whether the data stream from the terminal equipment exists within a preset time length after the data stream from the terminal equipment is received; if yes, determining that the terminal equipment does not finish the service; and if the service does not exist, determining that the terminal equipment completes the service.
In a possible implementation manner, when the transmission data is data sent by the external device to the terminal device, where the data includes at least one data stream, the detecting whether the terminal device completes a service related to the external device includes: detecting whether all data streams have been sent based on the identification of the data streams; if so, determining that the terminal equipment completes the service; if not, determining that the terminal equipment does not finish the service.
In a possible implementation manner, the first Type-C interface includes a first function extension pin, the second Type-C interface includes a second function extension pin, and when the external device is connected to the terminal device through the second Type-C interface and the first Type-C interface, the first function extension pin is connected to the second function extension pin;
the sending the signal of the service completion to the terminal device includes: and sending the signal to the first function extension pin through the second function extension pin.
In a third aspect, an embodiment of the present application provides a terminal device, where the terminal device includes an application processor AP and a first Type-C interface; the AP is used for: when the terminal equipment is connected with the external equipment through the first Type-C interface and a second Type-C interface of the external equipment, executing a service related to the external equipment; detecting whether the terminal equipment completes the service or not in response to the detection that the terminal equipment is in a long standby state; and responding to the detection that the terminal equipment completes the service, and performing dormancy.
In a possible implementation manner, the AP includes a USB module, where the USB module is configured to manage the service, and the AP is specifically configured to: and controlling the USB module to sleep so as to enable the AP to sleep.
In a possible implementation manner, the AP is specifically configured to: detecting the motion state and the screen state of the terminal equipment, wherein the motion state comprises the following steps: a stationary state and a non-stationary state, the screen state including: a screen-off state and a screen-on state; and responding to the detection that the terminal equipment is in a screen-off state, the screen-off time is longer than or equal to the preset time, and the terminal equipment is in a static state, and determining that the terminal equipment is in a long standby state.
In a possible implementation manner, the terminal device further includes: a transceiver. The AP is specifically configured to: determining whether the terminal device completes the service based on whether a signal of service completion from the external device is received; if the transceiver receives the signal from the external equipment, the terminal equipment is determined to finish the service; and if the transceiver does not receive the signal from the external equipment, determining that the terminal equipment does not finish the service.
In a possible implementation manner, the first Type-C interface includes a first function extension pin, the second Type-C interface includes a second function extension pin, and when the terminal device is connected to the external device through the first Type-C interface and the second Type-C interface, the first function extension pin and the second function extension pin are connected.
The transceiver is further configured to receive the signal from the second function extension pin based on the first function extension pin.
In one possible implementation, the service includes: and the terminal equipment charges the external equipment, or data is transmitted between the terminal equipment and the external equipment.
In a possible implementation manner, when the transmission data is data received by the terminal device from the external device, the data includes at least one data stream. The AP is specifically configured to: and detecting whether the data stream from the external equipment exists or not within a preset time length after the transceiver receives the data stream from the external equipment. If yes, determining that the terminal equipment does not finish the service; and if the service does not exist, determining that the terminal equipment completes the service.
In a possible implementation manner, when the transmission data is data sent by the terminal device to the external device, the data includes at least one data stream. The AP is specifically configured to: detecting whether all data streams have been sent based on the identification of the data streams; if so, determining that the terminal equipment completes the service; if not, determining that the terminal equipment does not finish the service.
In one possible implementation, the AP is further configured to: and controlling the AP to exit the sleep mode in response to the detection of the screen lightening or movement of the terminal equipment.
In a fourth aspect, an embodiment of the present application provides an external device, including: the processor, the transceiver and the second Type-C interface; the processor is configured to detect whether the terminal device completes a service related to the external device when the external device is connected to the terminal device through the second Type-C interface and a first Type-C interface of the terminal device; and the transceiver is used for responding to the detection that the terminal equipment completes the service and sending a service completion signal to the terminal equipment.
In one possible implementation, the service includes: and the terminal equipment charges the external equipment or transmits data between the terminal equipment and the external equipment.
In a possible implementation manner, when the service includes that the terminal device charges the external device, the processor is specifically configured to: detecting whether the electric quantity of the external equipment reaches a preset electric quantity so as to detect whether the terminal equipment completes the service; if the electric quantity reaches the preset electric quantity, determining that the terminal equipment completes the service; and if the electric quantity is smaller than the preset electric quantity, determining that the terminal equipment does not finish the service.
In a possible implementation manner, when the transmission data is data received by the external device from the terminal device, the data includes at least one data stream. The processor is specifically configured to: detecting whether the data stream from the terminal equipment exists or not within a preset time length after the transceiver receives the data stream from the terminal equipment; if yes, determining that the terminal equipment does not finish the service; and if the service does not exist, determining that the terminal equipment completes the service.
In a possible implementation manner, when the transmission data is data sent from the external device to the terminal device, the data includes at least one data stream. The processor is specifically configured to: detecting whether all data streams have been sent based on the identification of the data streams; if so, determining that the terminal equipment completes the service; if not, determining that the terminal equipment does not finish the service.
In a possible implementation manner, the first Type-C interface includes a first function extension pin, the second Type-C interface includes a second function extension pin, and when the external device is connected to the terminal device through the second Type-C interface and the first Type-C interface, the first function extension pin is connected to the second function extension pin.
The transceiver is further configured to send the signal to the first function extension pin through the second function extension pin.
In a fifth aspect, an embodiment of the present application provides a system for reducing power consumption of a terminal device, where the system includes: the terminal device of the third aspect and the external device of the fourth aspect as described above.
In a sixth aspect, an embodiment of the present application provides an electronic device, where the electronic device may be the terminal device of the third aspect or the external device of the fourth aspect, or may also be a chip in the terminal device or a chip in the external device. The electronic device may include: a processor and a memory. The memory is for storing computer executable program code, the program code comprising instructions; when executed by a processor, the instructions cause the electronic device to perform the method as in the first aspect, the second aspect.
In a seventh aspect, an embodiment of the present application provides an electronic device, where the electronic device may be the terminal device of the third aspect or the external device of the fourth aspect, or may also be a chip in the terminal device or a chip in the external device. The electronic device comprises means, modules or circuits for performing the methods provided in the first and second aspects above.
In an eighth aspect, embodiments of the present application provide a computer program product containing instructions, which when run on a computer, cause the computer to perform the method in the first and second aspects.
In a ninth aspect, embodiments of the present application provide a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to perform the method in the first and second aspects.
For the beneficial effects of the possible implementation manners of the second aspect to the ninth aspect, reference may be made to the beneficial effects brought by the first aspect, which are not repeated herein.
The embodiment of the application provides a method for reducing power consumption of terminal equipment and the terminal equipment. The method comprises the following steps: when the terminal equipment is connected with external equipment through the first Type-C interface and the second Type-C interface, executing business related to the external equipment; detecting whether the terminal equipment completes the service or not in response to the detection that the terminal equipment is in the long standby state; and controlling the AP to sleep in response to the detection that the terminal equipment completes the service. In the embodiment of the application, when the terminal device is in the long standby state, the AP of the terminal device terminal can sleep when the terminal device completes the service related to the external device, on one hand, the terminal device is not affected to execute the service related to the external device, on the other hand, the power consumption of the terminal device can be reduced, and the duration of the terminal device is increased.
Drawings
Fig. 1 is a schematic view of a scenario in which the present application is applicable;
fig. 2 is a schematic diagram of a Type-C interface of a terminal device and an external device, to which the embodiment of the present application is applicable;
fig. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another terminal device provided in the embodiment of the present application;
fig. 5 is a schematic structural diagram of a terminal device and an external device according to an embodiment of the present application;
fig. 6 is a schematic flowchart of an embodiment of a method for reducing power consumption of a terminal device according to an embodiment of the present application;
fig. 7 is a flowchart illustrating another embodiment of a method for reducing power consumption of a terminal device according to an embodiment of the present application;
fig. 8 is a flowchart illustrating another embodiment of a method for reducing power consumption of a terminal device according to an embodiment of the present application.
Detailed Description
Fig. 1 is a schematic view of a scenario applicable to the present application. Referring to fig. 1, the terminal device 100 and the external device 200 may be included in the scenario, and a Universal Serial Bus (USB) Type-C (universal serial bus Type-C) interface, which is referred to as a Type-C interface for short below, is disposed on each of the terminal device 100 and the external device 200. External device 200 can be connected with Type-C interface on terminal device 100 through Type-C interface on external device 200. In one embodiment, the Type-C interface on the external device 200 can be referred to as a Type-C male connector, and the Type-C interface on the terminal device 100 can be referred to as a female connector. It should be understood that fig. 1 illustrates the terminal device 100 as a mobile phone and the external device 200 as an earphone, and the mobile phone can charge the earphone when the mobile phone and the earphone are connected through a Type-C interface, for convenience of illustration, the Type-C interface on the external device 200 is shown in fig. 1, and the Type-C interface on the terminal device 100 is not shown. It should be noted that the Type-C interface of the headset shown in fig. 1 is an example, and does not limit the form of the Type-C interface of the external device 200 in the present application. In one embodiment, the external device 200 may be a usb flash drive, and when the mobile phone and the usb flash drive are connected through the Type-C interface, the mobile phone may read data in the usb flash drive.
In one embodiment, the terminal device 100 may be, but is not limited to: the mobile phone, the tablet computer, the notebook computer, the wearable device, the sound box and other electronic devices are provided with Type-C interfaces. Optionally, the terminal device 100 may also be a Personal Digital Assistant (PDA), a handheld device with wireless communication capability, a computing device, a Virtual Reality (VR) terminal device, an unmanned aerial vehicle device, an Augmented Reality (AR) terminal device, or the like. The form of the terminal device 100 is not limited in the embodiment of the present application. The external device 200 may be an earphone, a usb disk, a mobile hard disk, an electronic device including a Type-C interface, or a switching device including a Type-C interface, and the form of the external device 200 is not limited in this embodiment of the application.
Fig. 2 is a schematic diagram of a Type-C interface of a terminal device and an external device, to which the embodiment of the present application is applied. Referring to fig. 2, a Type-C interface is provided on each of the terminal device 100 and the external device 200, and the pins included in the Type-C interfaces on the terminal device 100 and the external device 200 and the roles of the pins may be the same. The role of each pin in the Type-C interface is described below by taking the Type-C interface on the terminal device 100 as an example. The Type-C interface comprises 24 pins, namely A1-A12 and B1-B12. Since the functions of A1-A12 are the same as those of B1-B12, the following description will take the pins A1-A12 as an example to illustrate the function of each pin.
Pins A1, a12: and a ground pin.
Pins A2, A3: a data Transmit (TX) pin, which may be used to be USB3.0 and USB3.1 compatible.
Pins A4, A9: be connected with the power module among the terminal equipment to make terminal equipment be the power supply of Type-C interface, terminal equipment provides V for Type-C interface promptly BUS
Pin A5: and the external device detection pin is used for detecting the type of the external device. Among them, the types of external devices may include: a downstream port (DFP) device and an upstream port (UFP) device. In one embodiment, the DFP device may be referred to as a master device and the UFP device may be referred to as a slave device. DFP devices can be used to provide V BUS And/or provide data that the UFP device can use to fetch and/or provide data from the DFP device. Illustratively, the power adapter can be regarded as a DFP device, and the usb disk and the removable hard disk can be regarded as a UFP device.
Pins A6, A7: and the data transmission pin is used for transmitting audio and video streams or files and the like. Pins A6, A7 may be used for USB2.0 compatibility.
Pin A8: a function extension pin.
Pins a10, a11: a data Receive (RX) pin that may be used to be USB3.0 and USB3.1 compatible.
The role of the pin as above is that of the pin in the terminal device 100 that is currently available. Currently, when the external device 200 is connected to the terminal device 100 through the Type-C interface, pins in the Type-C interface of the external device 200 are connected to pins in the Type-C interface of the terminal device 100 in a one-to-one correspondence manner, for example, pin A1 in the external device 200 is connected to pin A1 in the terminal device 100, pin A2 in the external device 200 is connected to pin A2 in the terminal device 100, ..., and so on.
Fig. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present application. Referring to fig. 3, the terminal device 100 may include: an Application Processor (AP) and a Baseband Processor (BP), which is not shown in fig. 3. The AP may include: a system management module and a USB module. The system management module is configured to detect a screen state of the terminal device 100, where the screen state may include, but is not limited to, a screen-off state and a screen-on state. A USB module for managing charging of the external device 200 by the terminal device 100, data transmission between the terminal device 100 and the external device 200, and the like. It should be understood that the USB module may be understood as a software module of USB driving hardware in the terminal device 100.
In an embodiment, when the terminal device 100 is not connected to the external device 200, if the terminal device 100 is turned off, the system management module responds to detect that the terminal device 100 is turned off, and when the screen turning-off duration of the terminal device 100 is greater than or equal to the preset duration, the USB module sleeps. If the screen-off duration of the terminal device 100 is greater than or equal to the preset duration, and the terminal device 100 is in a motion state, the motion state module in the AP processes data collected by a gyroscope, an acceleration sensor and the like in the terminal device 100, so that the AP does not sleep. If the screen-off duration of the terminal device 100 is greater than or equal to the preset duration, and the terminal device 100 is in a static state, a motion state module is in a dormant state, and a USB module is in a dormant state, so that the AP is in a dormant state. It should be understood that the screen-off duration of the terminal device 100 is represented by "long standby state" in the following embodiments, and is greater than or equal to the preset duration, and the terminal device 100 is in a stationary state.
In an embodiment, if the terminal device 100 is connected to the external device 200, the terminal device 100 may charge the external device 200 through a Type-C interface, or the terminal device 100 and the external device 200 may transmit data through the Type-C interface. When the terminal device 100 is in the long standby state, the headset is charged, or data transmission is performed with the external device 200, because the USB module needs to manage charging of the terminal device 100 to the external device 200 and data transmission between the terminal device 100 and the external device 200, the USB module needs to execute a service, and thus the USB module does not sleep, which may result in that the AP cannot sleep.
At present, because the amount of power required by the fully charged earphone is small, and the amount of data transmitted between the terminal device 100 and the external device 200 is not large, these tasks (such as the charging task and/or the data transmission task) are completed quickly, but in the prior art, when the terminal device is in a long standby state, the USB module does not sense whether the task is completed, and is still in a working state and does not sleep, which results in that the AP cannot sleep, and the power consumption of the terminal device 100 is large.
The embodiment of the application provides a method for reducing power consumption of terminal equipment, when the terminal equipment is in a long standby state and charges for external equipment or transmits data, if the charging is completed or the data transmission is completed, a USB module in the terminal equipment can release a holding lock to sleep, so that an AP can sleep, and the power consumption of the terminal equipment in the long standby state can be reduced.
It should be understood that, as shown above, the terminal device 100 charges the external device 200, or data transmission is performed between the terminal device 100 and the external device 200, which may be understood as an example where the terminal device 100 executes a service related to the external device, and the method provided in the embodiment of the present application may also be applied to other services that the terminal device 100 executes a service related to the external device, such as writing data into a usb disk, projecting a screen, and the like.
Fig. 4 is a schematic structural diagram of another terminal device provided in an embodiment of the present application. Referring to fig. 4, the ap may include: the system comprises a system management module, a USB module and a first Configuration Channel (CC) logic detection chip. The external device includes: a processor, and a second CC logic detection chip. The system management module and the USB module may refer to the related description above. In an embodiment, the system management module, the USB module, and the first CC logic detection chip may be independently configured devices, or may be integrated into one chip to implement the embodiments.
It should be noted that in this embodiment of the application, when the terminal device is in the long standby state and the terminal device executes a service related to the external device, the external device may send a service completion signal to a function extension pin (e.g., pin A8 or B8) in the terminal device through a function extension pin (e.g., pin A8 or B8) in the external device, that is, the external device sends a service completion signal to a USB module of the terminal device, and then notifies the USB module that the service completion can be dormant. It should be understood that, in this embodiment, a signal transmitted by the function extension pin may be allocated in a production stage of the terminal device, and the process may perform logic detection, mode configuration, and the like through the first CC logic detection chip and the second CC logic detection chip, so as to achieve a purpose that the external device sends a signal of service completion to the USB module through the function extension pin after detecting that the service is completed. Specific procedures can be referred to the following description of the embodiments. In one embodiment, the function extension pin in the terminal device may be referred to as a first function extension pin, and the function extension pin in the external device may be referred to as a second function extension pin.
In other words, the processor of the external device is configured to detect whether the service is completed. And the first CC logic detection chip and the second CC logic detection chip are used for assisting the processor of the external equipment to finish the interaction of signals with the USB module.
On the basis of fig. 4, fig. 5 shows a schematic structural diagram of the terminal device and the external device, and it should be understood that fig. 5 shows a part of connection relationships of the system management module, the USB module, and the like, and the rest of connection relationships may refer to the connection relationships in the current terminal device. Based on the structure shown in fig. 5, the following describes a method for reducing power consumption of a terminal device according to an embodiment of the present application with reference to a specific embodiment. The following several embodiments may be combined with each other and may not be described in detail for the same or similar concepts or processes in some embodiments.
Fig. 6 is a flowchart illustrating an embodiment of a method for reducing power consumption of a terminal device according to an embodiment of the present application. Referring to fig. 6, a method for reducing power consumption of a terminal device according to an embodiment of the present application includes:
s601, the system management module sends a first message to the USB module in response to the detection that the terminal device is in the long standby state, wherein the first message is used for indicating that the terminal device enters the long standby state.
It should be understood that the long standby state characterizes: the screen-off duration of the terminal equipment is greater than or equal to the preset duration, and the terminal equipment is in a static state. In one embodiment, the user may press a switch button on the terminal device to cause the terminal device to turn off the screen. Or, the user does not operate the touch screen of the terminal device for a long time (e.g., the first time), and the terminal device goes out of the screen. The system management module can detect that the terminal equipment is turned off, and then responds to the detection that the terminal is turned off, and starts to record the screen turning-off duration of the terminal equipment so as to obtain the screen turning-off duration of the terminal equipment. In one embodiment, the system management module may determine whether the end-point device is to be turned off based on a broadcast message from the system. When the system management module receives the screen-off broadcast message from the system, the screen-off of the terminal equipment is detected.
In an embodiment, the terminal device includes a gyroscope, an acceleration sensor, and the like, the gyroscope, the acceleration sensor, and the like may acquire motion state data of the terminal device and report the motion state data to the system management module, and the system management module may acquire the motion state of the terminal device based on the motion state data. When the screen-off time of the terminal equipment is greater than or equal to the preset time and the terminal equipment is in a static state, the system management module determines that the terminal equipment is in a long standby state. In this embodiment, details of how the system management module obtains the motion state of the terminal device based on the motion state data are not described.
The system management module may send a first message to the USB module to notify the USB module that the terminal device enters the long standby state in response to detecting that the terminal device is in the long standby state.
S602, the USB module responds to the detection that the terminal equipment finishes the execution of the service related to the external equipment, and carries out dormancy.
In one embodiment, the processor of the external device may detect whether the service is complete. For example, if the service charges the external device for the terminal device, the processor of the external device may detect the power of the external device, and when the power is full (for example, the power of the external device reaches a preset power), it may be determined that the service is completed. If the electric quantity of the external device is less than the preset electric quantity, the external device may determine that the terminal device has not completed the charging service.
Illustratively, if the service reads data in the external device for the terminal device, the external device transmits the data to the terminal device. It is to be understood that the data is composed of at least one data stream, each data stream having a corresponding identification, i.e. an identification of the data stream. Illustratively, the data consists of 3 data streams, and the three data streams may be identified as: data stream 1, data stream 2 and data stream 3. The processor of the external device may detect the identity of the transmitted data stream and when all data streams are transmitted, the processor of the external device determines that the data transmission is complete, i.e. the service is complete. If there is still unsent data stream in the external device, the external device determines that data transmission is not completed, i.e. service is not completed.
In this embodiment, when the processor of the external device detects that the service is completed, the processor sends a service completion signal to the USB module through the second function extension pin and the first function extension pin to notify the USB module that the service is completed. Correspondingly, when the USB module receives a service completion signal from the processor of the external device through the first function extension pin, it may be determined that the terminal device has completed executing the service related to the external device, and the USB module may be in a sleep state.
In one embodiment, the USB module being in the working state without hibernation can be understood as: the USB module holds the lock. USB module hibernation can be understood as: the USB module releases the holding lock. Taking an android system as an example, wakelock in the android system is a lock mechanism, and if an application or any module in the terminal device holds the lock (namely, holds the lock), the system cannot enter the sleep mode. In the embodiment of the present application, the USB module holding lock may be understood as: the USB module holds the lock and the AP cannot sleep. In one embodiment, the lock in the android system may or may not be timed out, the timed out lock will automatically unlock after the time has elapsed, and if no application or module holds the lock or times out, the system will go to sleep. It should be understood that the embodiments of the present application are not limited to the lock timing out or the absence of timing out. In the embodiment of the present application, the process of holding and releasing the lock is not described in detail, and reference may be specifically made to the related description.
In one embodiment, the USB module itself may detect whether the service is complete. Illustratively, if the service is that the terminal device writes data in the external device, that is, the terminal device transmits data to the external device. According to the above description, the USB module may detect the identifier of the transmitted data stream, and when all data streams are transmitted, the USB module determines that the data transmission is completed, i.e. the service is completed. If there is still unsent data stream, the USB module determines that data transmission is not completed, i.e., the service is not completed.
In an embodiment, for example, if the service is that the terminal device reads data in the external device, that is, the external device transmits data to the terminal device, the USB module may detect whether a data stream from the external device exists within a preset time period, if the data stream from the external device exists within the preset time period, the USB module may determine that data transmission is not completed, and if the data stream from the external device does not exist within the preset time period, the USB module may determine that data transmission is completed, that is, the service is completed.
In this embodiment, the USB module may detect whether the terminal device has executed a service related to the external device, and the USB module may sleep when detecting that the service is completed. In one embodiment, S602 may be replaced with: and the USB module responds to the detection that the terminal equipment completes the service related to the external equipment and carries out dormancy.
As described above, when the terminal device is in the long standby state and the terminal device executes the service related to the external device, the USB module may release the holding lock to perform the sleep, and then all the modules in the AP may execute the sleep, and then the AP may sleep, which may reduce the power consumption of the terminal device.
In the embodiment of the application, the USB module in the terminal device can detect whether the terminal device has executed the service related to the external device, or the external device can detect whether the terminal device has executed the service related to the external device, and then send a signal of service completion to the USB module to notify that the service of the USB module is completed, and then the USB module can release the holding lock when detecting that the service is completed, so as to sleep, so that the AP can also sleep, and further, the power consumption of the terminal device is reduced.
In an embodiment, when the terminal device is turned on, the AP in the terminal device may exit from the sleep mode, and the USB module in the AP may be switched from the sleep mode to the operating mode, so that the terminal device operates normally. Namely, the above S602 may further include:
s603, the system management module sends a second message to the USB module in response to the detection of the screen lightening or movement of the terminal equipment, wherein the second message is used for indicating the terminal equipment to exit the long standby state.
And the terminal equipment is on the screen or moves, and the terminal equipment exits the long standby state. In one embodiment, when the terminal device is off, the user can press a switch key on the terminal device, so that the terminal device is on. Or the terminal device is in a static state, and when the user picks up the terminal device, the terminal device lights up the screen.
The system management module can detect that the terminal equipment is on screen, and then sends a second message to the USB module in response to the detection that the terminal equipment is on screen so as to inform the USB module that the terminal equipment exits the long standby state. In one embodiment, the system management module may determine whether the terminal device is on screen based on a broadcast message from the system. When the system management module receives the bright screen broadcast message from the system, it can be determined that the terminal device is bright.
The system management module can acquire the motion state or the static state of the terminal device based on motion state data acquired by a gyroscope, an acceleration sensor and the like. It should be understood that terminal device movement refers to: and the terminal equipment is switched from a static state to a moving state. It should be understood that when the system management module detects that the terminal device is moving or is on screen, the AP exits from sleep and enters a working state.
S604, the USB module is switched from the dormant state to the working state.
The USB module receives a second message from the system management module and can switch from the dormant state to the working state. In other words, the USB module may perform lock holding in response to receiving the second message from the system management module.
In the embodiment of the application, when the terminal equipment is on a screen or moves, the AP in the terminal equipment can quit from the sleep state, the USB module in the AP can be switched to the working state from the sleep state, and the terminal equipment can work normally.
In one embodiment, referring to FIG. 7, S602 may be replaced with S602A-S604A.
S602A, a USB module detects whether the terminal equipment has finished executing the service related to the external equipment; if so, go to S604A, otherwise go to S603A.
Referring to the related description in the above embodiments, in an embodiment, the USB module may detect whether the terminal device has performed the service related to the external device by itself. Or, in an embodiment, the manner for the USB module to detect whether the terminal device has executed the service related to the external device may be: whether the USB module receives a service complete signal from the processor of the external device. If the USB module has received the signal indicating that the service from the processor of the external device is completed, it is determined that the service is completed, and if the USB module has not received the signal indicating that the service from the processor of the external device is completed, it is determined that the service is not completed.
S603A, the USB module is locked, and the terminal equipment is responded to detect that the terminal equipment completes the service related to the external equipment, and the dormancy is carried out.
When the service is not completed, the USB can hold the lock to ensure that the terminal equipment continues to execute the service related to the external equipment. Therefore, when the USB module detects that the terminal equipment finishes executing the service related to the external equipment, the holding lock can be released to carry out dormancy. The USB module detects that the terminal device has executed the service related to the external device, and reference may be made to the relevant description of the above embodiment.
S604A, a sleep is performed.
In one embodiment, "whether to execute" may be replaced with "whether to execute". Accordingly, "executed" may be replaced with "completed" and "unexecuted" may be replaced with "incomplete".
In the embodiment of the application, when receiving the first message from the system management module, the USB module may detect whether the service is completed, and may release the holding lock to sleep after detecting that the service is completed, so as to reduce power consumption of the terminal device.
Referring to fig. 8, in an embodiment, a system management module and a USB module may be separately provided in a terminal device, or the system management module and the USB module may be integrally provided, which is not limited in this application embodiment, but in any setting form, the terminal device may perform the following steps:
s801, the terminal device detects that the external device is connected with the terminal device through Type-C, and the terminal executes the service related to the external device.
The service related to the external device may include: the terminal device charges the external device, or data is transmitted between the terminal device and the external device, where the data transmitted between the terminal device and the external device may be: the terminal device sends data to the external device, or the external device sends data to the terminal device.
S802, the terminal device detects the motion state and the screen state of the terminal device.
In one embodiment, the motion state of the terminal device may include: a quiescent state and a non-quiescent state. It should be understood that, when the terminal device in the above embodiment is in a motion state, it may be understood that: the terminal device is in a non-stationary state.
And S803, the terminal device responds to the detection that the terminal device is in the long standby state and finishes executing the service related to the external device based on the motion state and the screen state of the terminal device, and controls the AP to sleep.
In one embodiment, the controlling the AP to sleep by the terminal device may be: and the terminal equipment controls the AP to release all processes in the AP.
In one embodiment, the reason that the AP cannot sleep is that USB functions are still running, wherein the USB functions may include, but are not limited to: and transmitting data with the external device or charging the external device. Therefore, S803 described above may be replaced with: and the terminal equipment responds to the detection that the terminal equipment is in the long standby state and finishes executing the service related to the external equipment based on the motion state and the screen state of the terminal equipment, stops executing the USB function and enables the AP to be dormant.
In an embodiment, referring to the above embodiment, it is the USB module in the AP that performs the USB function, so that the terminal device stops performing the USB function may be understood as: and the terminal equipment controls the USB module to sleep.
S804, the terminal equipment responds to the detected movement of the terminal equipment or the bright screen of the terminal equipment, and the AP is controlled to exit from the sleep mode.
When the terminal device moves, the AP needs to acquire the motion state of the terminal device based on the motion state data of the terminal device, and thus the AP exits from the sleep mode. When the terminal equipment is on the screen, the AP exits from the sleep state, the USB module can receive a second message from the system management module, and the USB module is switched to the working state from the sleep state.
In one embodiment, the terminal device movement may be understood as: the terminal device switches from a stationary state to a non-stationary state.
As described above, the terminal device may integrate the functions of the system management module and the USB module to control the USB module to sleep when the terminal device is in the long standby state, so as to achieve the purpose of reducing the power consumption of the terminal device. The example shown in fig. 8 may refer to the related description of the above embodiments.
In one embodiment, the present application provides a terminal device, where the terminal device includes an application processor AP and a first Type-C interface; the AP is used for: when the terminal equipment is connected with the external equipment through the first Type-C interface and a second Type-C interface of the external equipment, executing a service related to the external equipment; detecting whether the terminal equipment completes the service or not in response to the detection that the terminal equipment is in a long standby state; and responding to the detection that the terminal equipment completes the service, and performing dormancy.
In a possible implementation manner, the AP includes a USB module, where the USB module is configured to manage the service, and the AP is specifically configured to: and controlling the USB module to sleep so as to enable the AP to sleep.
In a possible implementation manner, the AP is specifically configured to: detecting the motion state and the screen state of the terminal equipment, wherein the motion state comprises the following steps: a stationary state and a non-stationary state, the screen state including: a screen-off state and a screen-on state; and responding to the detection that the terminal equipment is in a screen-off state, the screen-off time is longer than or equal to the preset time, and the terminal equipment is in a static state, and determining that the terminal equipment is in a long standby state.
In a possible implementation manner, the terminal device further includes: a transceiver. The AP is specifically configured to: determining whether the terminal device completes the service based on whether a signal of service completion from the external device is received; if the transceiver receives the signal from the external equipment, the terminal equipment is determined to finish the service; and if the transceiver does not receive the signal from the external equipment, determining that the terminal equipment does not finish the service.
In a possible implementation manner, the first Type-C interface includes a first function extension pin, the second Type-C interface includes a second function extension pin, and when the terminal device is connected to the external device through the first Type-C interface and the second Type-C interface, the first function extension pin and the second function extension pin are connected.
The transceiver is further configured to receive the signal from the second function extension pin based on the first function extension pin.
In one possible implementation, the service includes: and the terminal equipment charges the external equipment or transmits data between the terminal equipment and the external equipment.
In a possible implementation manner, when the transmission data is data received by the terminal device from the external device, the data includes at least one data stream. The AP is specifically configured to: and detecting whether the data stream from the external equipment exists or not within a preset time length after the transceiver receives the data stream from the external equipment. If yes, determining that the terminal equipment does not finish the service; and if the service does not exist, determining that the terminal equipment completes the service.
In a possible implementation manner, when the transmission data is data sent by the terminal device to the external device, the data includes at least one data stream. The AP is specifically configured to: detecting whether all data streams have been sent based on the identification of the data streams; if so, determining that the terminal equipment completes the service; if not, determining that the terminal equipment does not finish the service.
In one possible implementation, the AP is further configured to: and controlling the AP to exit the sleep mode in response to the detection of the screen lightening or movement of the terminal equipment.
In one embodiment, the present application provides an external device, including: the processor, the transceiver and the second Type-C interface; the processor is configured to detect whether the terminal device completes a service related to the external device when the external device is connected to the terminal device through the second Type-C interface and a first Type-C interface of the terminal device; and the transceiver is used for responding to the detection that the terminal equipment completes the service and sending a signal of service completion to the terminal equipment.
In one possible implementation, the service includes: and the terminal equipment charges the external equipment, or data is transmitted between the terminal equipment and the external equipment.
In a possible implementation manner, when the service includes that the terminal device charges the external device, the processor is specifically configured to: detecting whether the electric quantity of the external equipment reaches a preset electric quantity so as to detect whether the terminal equipment completes the service; if the electric quantity reaches the preset electric quantity, determining that the terminal equipment completes the service; and if the electric quantity is smaller than the preset electric quantity, determining that the terminal equipment does not finish the service.
In a possible implementation manner, when the transmission data is data received by the external device from the terminal device, the data includes at least one data stream. The processor is specifically configured to: detecting whether the data stream from the terminal equipment exists or not within a preset time length after the transceiver receives the data stream from the terminal equipment; if yes, determining that the terminal equipment does not finish the service; and if the service does not exist, determining that the terminal equipment completes the service.
In a possible implementation manner, when the transmission data is data sent by the external device to the terminal device, the data includes at least one data stream. The processor is specifically configured to: detecting whether all data streams have been sent based on the identification of the data streams; if so, determining that the terminal equipment completes the service; if not, determining that the terminal equipment does not finish the service.
In a possible implementation manner, the first Type-C interface includes a first function extension pin, the second Type-C interface includes a second function extension pin, and when the external device is connected to the terminal device through the second Type-C interface and the first Type-C interface, the first function extension pin is connected to the second function extension pin.
The transceiver is further configured to send the signal to the first function extension pin through the second function extension pin.
It should be understood that the terminal device in this embodiment of the application can execute the actions of the terminal device in the above embodiment, and the external device can execute the actions of the external device in the above embodiment, so as to achieve the same technical effects as those in the above embodiment, which is not described herein again.
In an embodiment, an embodiment of the present application provides a system for reducing power consumption of a terminal device, where the system may include the terminal device and an external device as in the above embodiments, where the terminal device is capable of executing an action of the terminal device in the above embodiments, and the external device is capable of executing an action of the external device in the above embodiments, so as to achieve the same technical effects as those in the above embodiments.
In an embodiment, the terminal device and the external device provided in the embodiments of the present application further include a memory. In the following description taking the terminal device as an example, the memory and the transceiver may be coupled to the processor, and the processor controls the transceiver to perform the transceiving actions of the terminal device, so as to realize the interaction between the terminal device and the external device. The memory may include a random-access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory, and may store various instructions for performing various processing functions and implementing the method steps of the present application. The transceiver can be integrated in the transceiver of the terminal device, or can be a transmitting-receiving antenna arranged on the terminal device independently. In an embodiment of the present application, the memory is used for storing computer executable program code, and the program code includes instructions; when the processor terminal device executes the instruction, the instruction causes the processor terminal device of the terminal device to execute the actions in the above method embodiments, which have similar implementation principles and technical effects, and are not described herein again. Optionally, the terminal device related to the present application may further include: a power supply, a communication bus, and a communication port. The communication bus is used for realizing communication connection among the elements. The communication port is used for realizing connection communication between the terminal equipment and other peripheral equipment.
It should be noted that the above modules may be one or more integrated circuits configured to implement the above methods, for example: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when some of the above modules are implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. As another example, these modules may be integrated together, implemented in the form of a system-on-a-chip (SOC).
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), among others.
The term "plurality" herein means two or more. The term "and/or" herein is merely an association relationship describing an associated object, and means that there may be three relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship; in the formula, the character "/" indicates that the preceding and following related objects are in a relationship of "division".
It is to be understood that the various numerical references referred to in the embodiments of the present application are merely for descriptive convenience and are not intended to limit the scope of the embodiments of the present application. In the embodiment of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.

Claims (6)

1. A method for reducing power consumption of terminal equipment is characterized by being applied to the terminal equipment, wherein the terminal equipment comprises an application processor AP and a first Type-C interface, the external equipment comprises a second Type-C interface, the first Type-C interface comprises a first function extension pin, and the second Type-C interface comprises a second function extension pin; the AP comprises a USB module, and the USB module is used for managing the service related to the external equipment; the first function extension pin and the second function extension pin are configured to transmit a signal that the service is complete; the method comprises the following steps:
when the terminal equipment is connected with the external equipment through the first Type-C interface and the second Type-C interface, the service is executed; the USB module is connected with the external equipment through the first function extension pin and the second function extension pin; the service comprises the following steps: the terminal equipment charges the external equipment;
detecting whether the terminal equipment completes the service or not in response to the detection that the terminal equipment is in a long standby state; the screen-off time of the long standby state is greater than or equal to a preset time;
controlling the AP to sleep in response to detecting that the terminal equipment completes the service;
wherein, the detecting whether the terminal device completes the service includes:
if the USB module receives a service completion signal from external equipment through a first function extension pin and a second function extension pin, determining that the terminal equipment completes the service;
and if the USB module does not receive the service completion signal from the external equipment, determining that the terminal equipment does not complete the service.
2. The method of claim 1, wherein the controlling the AP to sleep comprises:
and controlling the USB module to sleep so as to enable the AP to sleep.
3. The method according to claim 1 or 2, wherein the detecting that the terminal device is in a long standby state comprises:
detecting the motion state and the screen state of the terminal equipment, wherein the motion state comprises the following steps: a stationary state and a non-stationary state, the screen state including: a screen-off state and a screen-on state;
and responding to the detection that the terminal equipment is in a screen-off state, the screen-off time is longer than or equal to the preset time, and the terminal equipment is in a static state, and determining that the terminal equipment is in a long standby state.
4. The method according to claim 1 or 2, wherein after controlling the AP to sleep, further comprising:
and controlling the AP to exit the sleep mode in response to the detection of the screen lightening or movement of the terminal equipment.
5. A terminal device, characterized in that the terminal device comprises an application processor AP and a first Type-C interface;
the AP is used for:
when the terminal equipment is connected with the external equipment through the first Type-C interface and a second Type-C interface of the external equipment, executing a service for charging the external equipment; the first Type-C interface comprises a first function extension pin, the second Type-C interface comprises a second function extension pin, and the first function extension pin and the second function extension pin are configured to transmit the service completion signal;
detecting whether the terminal equipment completes the service or not in response to the detection that the terminal equipment is in a long standby state; the screen-off time of the long standby state is greater than or equal to a preset time;
responding to the detection that the terminal equipment completes the service, and performing dormancy;
the terminal device further includes: a transceiver;
when the external device is connected with the terminal device through the second Type-C interface and the first Type-C interface, the first function extension pin is connected with the second function extension pin; the transceiver is configured to receive the signal from the second function extension pin based on the first function extension pin; sending the signal to the first function extension pin through the second function extension pin;
the AP is specifically configured to: if the transceiver receives the signal from the external device based on the first function extension pin, determining that the terminal device completes the service; and if the transceiver does not receive the signal from the external equipment, determining that the terminal equipment does not finish the service.
6. A computer-readable storage medium having computer instructions stored thereon which, when executed by a computer, cause the computer to perform the method of any of claims 1-4.
CN202110649614.2A 2021-06-10 2021-06-10 Method for reducing power consumption of terminal equipment and terminal equipment Active CN113766614B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110649614.2A CN113766614B (en) 2021-06-10 2021-06-10 Method for reducing power consumption of terminal equipment and terminal equipment
PCT/CN2022/089658 WO2022257639A1 (en) 2021-06-10 2022-04-27 Method for reducing power consumption of terminal device, and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110649614.2A CN113766614B (en) 2021-06-10 2021-06-10 Method for reducing power consumption of terminal equipment and terminal equipment

Publications (2)

Publication Number Publication Date
CN113766614A CN113766614A (en) 2021-12-07
CN113766614B true CN113766614B (en) 2023-04-18

Family

ID=78787439

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110649614.2A Active CN113766614B (en) 2021-06-10 2021-06-10 Method for reducing power consumption of terminal equipment and terminal equipment

Country Status (2)

Country Link
CN (1) CN113766614B (en)
WO (1) WO2022257639A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113766614B (en) * 2021-06-10 2023-04-18 荣耀终端有限公司 Method for reducing power consumption of terminal equipment and terminal equipment
CN117615429A (en) * 2022-08-22 2024-02-27 华为技术有限公司 Data transmission method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109193888A (en) * 2018-10-23 2019-01-11 珠海市微半导体有限公司 A kind of the wireless charging power-supply system and charging method of Type-c interface
CN109286220A (en) * 2018-11-13 2019-01-29 Oppo(重庆)智能科技有限公司 Charging circuit, charging method, electronic equipment and storage medium
CN110323808A (en) * 2019-07-30 2019-10-11 Oppo广东移动通信有限公司 Charge method of shutting down, device, computer equipment and storage medium
CN112803610A (en) * 2019-11-14 2021-05-14 Oppo广东移动通信有限公司 Device to be charged, system, wireless charging method and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2506839A (en) * 2012-08-10 2014-04-16 Broadcom Corp Management of dormancy timers in wireless communications
CN103138342B (en) * 2013-01-29 2014-12-17 深圳市中远航科技有限公司 Wireless charging mobile power source
CN103208848B (en) * 2013-03-14 2015-12-23 深圳市中远航科技有限公司 A kind of wireless charging power supply
CN104518526A (en) * 2013-09-26 2015-04-15 夏雪飞 Power bank with wireless charging function
KR102154779B1 (en) * 2015-03-10 2020-09-10 삼성전자주식회사 Method and apparatus for wireless charging
CN107071162A (en) * 2017-03-30 2017-08-18 努比亚技术有限公司 Dormancy control system and its dormancy control method
CN111050388B (en) * 2019-12-03 2023-01-06 Oppo广东移动通信有限公司 Doze mode control method, device, mobile terminal and storage medium
CN113766614B (en) * 2021-06-10 2023-04-18 荣耀终端有限公司 Method for reducing power consumption of terminal equipment and terminal equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109193888A (en) * 2018-10-23 2019-01-11 珠海市微半导体有限公司 A kind of the wireless charging power-supply system and charging method of Type-c interface
CN109286220A (en) * 2018-11-13 2019-01-29 Oppo(重庆)智能科技有限公司 Charging circuit, charging method, electronic equipment and storage medium
CN110323808A (en) * 2019-07-30 2019-10-11 Oppo广东移动通信有限公司 Charge method of shutting down, device, computer equipment and storage medium
CN112803610A (en) * 2019-11-14 2021-05-14 Oppo广东移动通信有限公司 Device to be charged, system, wireless charging method and storage medium

Also Published As

Publication number Publication date
CN113766614A (en) 2021-12-07
WO2022257639A1 (en) 2022-12-15

Similar Documents

Publication Publication Date Title
CN113766614B (en) Method for reducing power consumption of terminal equipment and terminal equipment
US20230236650A1 (en) Low-Latency Low-Power Consumption Peripheral Device for Conferencing
US20200301497A1 (en) Power supply control method of intelligent lock, intelligent lock system and storage medium
EP3780328B1 (en) Reverse charging device
EP3112980A1 (en) Circuit, method and device for waking up master mcu
US10644515B2 (en) Information processing system, information processing device, operation device, and power supply method
WO2023179425A1 (en) Input device connection method, device, and system
CN112928787A (en) Charging circuit, electronic equipment, charging control method and device
CN105094968A (en) Method and device for rousing MCU
WO2022262434A1 (en) Power optimization method and electronic device
CN112269086A (en) Charging cable identification method and device, charging cable and readable storage medium
CN106340780A (en) Terminal device and control method thereof
CN111464671A (en) Electronic equipment and charging method thereof
EP4102676A1 (en) Charge control method, charge control apparatus and storage medium
JP7270719B2 (en) Terminal and Type C interface anti-corrosion method
CN111752362A (en) Method, device and storage medium for preventing interface from being corroded
CN107153621B (en) Equipment identification method and device
JP2019185771A (en) Method, device for processing data of bluetooth speaker, and bluetooth speaker
CN106249843B (en) A kind of course control method, device and mobile device
CN104967174A (en) Charging control method and device
CN106329256B (en) USB connecting line, operation method based on USB connecting line and mobile terminal
WO2023240441A1 (en) Charging control method, apparatus and storage medium
CN117194293A (en) OTG equipment control operation method and device, storage medium and mobile terminal
CN116745768A (en) Data processing method and electronic equipment
WO2017132864A1 (en) Method and system for usb host-client mode switching of vr 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
GR01 Patent grant
GR01 Patent grant