WO2022257639A1 - Method for reducing power consumption of terminal device, and terminal device - Google Patents

Method for reducing power consumption of terminal device, and terminal device Download PDF

Info

Publication number
WO2022257639A1
WO2022257639A1 PCT/CN2022/089658 CN2022089658W WO2022257639A1 WO 2022257639 A1 WO2022257639 A1 WO 2022257639A1 CN 2022089658 W CN2022089658 W CN 2022089658W WO 2022257639 A1 WO2022257639 A1 WO 2022257639A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
service
external device
interface
type
Prior art date
Application number
PCT/CN2022/089658
Other languages
French (fr)
Chinese (zh)
Inventor
马园
顾启蒙
赵京
Original Assignee
荣耀终端有限公司
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 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Publication of WO2022257639A1 publication Critical patent/WO2022257639A1/en

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

Definitions

  • the embodiment of the present application relates to the Universal Serial Bus USB Type-C interface technology, and in particular to a method for reducing power consumption of a terminal device and the terminal device.
  • the universal serial bus Type-C (universal serial bus Type-C, USB Type-C) interface has been widely popularized and accepted in terminal equipment due to its convenience of front and back insertion, strong compatibility and fast charging advantages. application.
  • the terminal device can charge the wireless headset through the Type-C interface, read the data of the U disk, etc.
  • the terminal device charges the headset in a long standby state.
  • the application processor application processor, AP
  • the terminal device charges the headset in a long standby state.
  • the application processor application processor, AP
  • the terminal device charges the headset in a long standby state.
  • the application processor application processor, AP
  • Embodiments of the present application provide a method for reducing power consumption of a terminal device and the terminal device, which can reduce power consumption of the terminal device when the terminal device is in a long standby state and executes services related to external devices.
  • the embodiment of the present application provides a method for reducing power consumption of a terminal device.
  • the execution subject of the method may be the terminal device or a chip in the terminal device.
  • the following description takes the terminal device as an example for execution.
  • the terminal device includes an application processor AP and a first Type-C interface
  • the external device includes a second Type-C interface.
  • services related to the external device are executed. It should be understood that the service related to the terminal device and the external device may be: data transmission between the terminal device and the external device, or charging of the external device by the terminal device.
  • the terminal device controlling the AP to sleep may be understood as: the terminal device may close all processes in the AP and control the AP to sleep.
  • the terminal device when the terminal device is in the long-standby state, even if the terminal device completes the business related to the external device, the AP will not go to sleep, and is always in the working state, so the power consumption of the terminal device is large.
  • the terminal device when the terminal device is in the long standby state, the terminal device can detect whether the business related to the external device is completed, and then can respond to the terminal device completing the business, and control the AP to sleep, so that the power consumption of the terminal device can be reduced , which in turn can increase the battery life of the terminal device.
  • the reason why the AP does not sleep in the prior art is that the AP includes a USB module, and the USB module is used to manage services related to the terminal device and external devices, even if The terminal device completes the service, but the USB module does not sleep, which causes the AP to fail to sleep.
  • the terminal device when the terminal device is in the long standby state, the terminal device detects whether the terminal device has completed the service in response to detecting that the terminal device is in the long standby state, and when the terminal device completes the service, it can
  • the USB module is controlled to sleep, so that the AP sleeps, thereby reducing the power consumption of the terminal device.
  • the terminal device being in the long standby state may be understood as: the terminal device is in a screen-off state, and the screen-off duration is greater than or equal to a preset duration, and the terminal device is in a static state.
  • the terminal device can always detect the motion state and screen state of the terminal device, and then determine whether the terminal device is in the long standby state.
  • the motion state includes: a static state and a non-stationary state
  • the screen state includes: a screen-off state and a screen-on state.
  • the terminal device determines that the terminal device is in the long-standby state in response to detecting that the terminal device is in the screen-off state, and the screen-off time is greater than or equal to a preset duration, and that the terminal device is in a static state.
  • the service includes: the terminal device charges the terminal device, or transmits data between the terminal device and the external device:
  • 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 service completion signal to the terminal device. In this way, the terminal device may determine whether the terminal device completes the service based on whether the service completion signal from the external device is received. Wherein, if the signal from the external device is received, it is determined that the terminal device has completed the service; if the signal from the external device is not received, it is determined that the terminal device has not completed the service. business.
  • the manner in which the external device detects whether the terminal device completes the service may be as follows:
  • the external device may detect whether the terminal device completes the business related to the external device: the external device detects whether the power of the external device is reaching the preset power level, to detect whether the terminal device completes the service. Wherein, if the power quantity reaches the preset power quantity, it is determined that the terminal device has completed the service; if the power quantity is less than the preset power quantity, it is determined that the terminal device has not completed the service.
  • the transmission data is data received by the external device from the terminal device
  • the data includes at least one data stream.
  • the external device detects whether there is a data stream from the terminal device within a preset time period after receiving the data stream from the terminal device; if it exists, it is determined that the terminal device has not completed the service; if it does not exist, Then it is determined that the terminal device completes the service.
  • the transmission data is data sent by the external device to the terminal device
  • the data includes at least one data stream
  • the external device detects whether all data streams have been sent based on the identification of the data stream; if so, Then determine that the terminal device has completed the service; if not, determine that the terminal device has not completed the service.
  • the manner in which the external device sends a service completion signal to the terminal device may be as follows: the first Type-C interface includes a first function extension pin, and the second Type-C interface includes a second function extension pin, 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 expansion pin and the second function expansion pin pin connection.
  • the external device may send a service completion signal to the second function expansion pin through the second function expansion pin. In this way, the terminal device can receive the signal from the second function expansion pin based on the first function expansion pin.
  • the terminal device may also detect whether the terminal device completes the service by itself.
  • the following is an exemplary way for a terminal device to detect whether the terminal device completes the service:
  • the transmission data is data received by the terminal device from the external device
  • the data includes at least one data stream
  • the terminal device receives the data stream from the external device within a preset period of time , can detect whether there is a data flow from the external device. Wherein, if there is a data flow from the external device, it is determined that the terminal device has not completed the service; if there is no data flow from the external device, it is determined that the terminal device has completed the service.
  • the transmission data is data sent by the terminal device to the external device
  • the data includes at least one data stream
  • the terminal device detects whether all data streams have been sent based on the identification of the data stream; if the terminal If the device has sent all the data streams, it is determined that the terminal device has completed the service; if the terminal device has not sent all the data streams, it is determined that the terminal device has not completed the service.
  • the terminal device can detect whether the terminal device has completed the service related to the external device by itself or through the external device, and then control the AP to sleep when the terminal device completes the service, thereby reducing the power consumption of the terminal device. Purpose.
  • the AP of the terminal device can sleep when the terminal device completes the business related to the external device.
  • the power consumption of the device is not limited to the battery.
  • the terminal device detects that the terminal device turns on or moves, it controls the AP to exit sleep. In this way, the AP can work normally to implement various functions of the terminal device, which will not be described in detail in this embodiment of the present application.
  • the 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 device includes a first Type-C interface
  • the external device includes a second Type-C interface
  • the method includes: when the external device passes through the second Type-C interface, the first Type-C
  • the C interface is connected to the terminal device, it is detected whether the terminal device has completed a service related to the external device; in response to detecting that the terminal device has completed the service, sending a service completion signal to the terminal device.
  • the service includes: the terminal device charging the terminal device, or transmitting data between the terminal device and the external device.
  • the detecting whether the terminal device completes the service related to the external device includes: detecting that the external device Whether the power of the device reaches the preset power to detect whether the terminal device completes the service; if the power reaches the preset power, it is determined that the terminal device completes the business; if the power is less than the If the power is preset, it is determined that the terminal device has not completed the service.
  • the transmission data is data received by the external device from the terminal device
  • the data includes at least one data stream
  • the detecting whether the terminal device completes the communication with the Services related to external equipment including: within a preset period of time after receiving the data stream from the terminal equipment, detecting whether there is a data stream from the terminal equipment; if there is, determining that the terminal equipment has not completed the service; if it does not exist, it is determined that the terminal device completes the service.
  • the transmission data is data sent by the external device to the terminal device
  • the data includes at least one data stream
  • the detecting whether the terminal device completes communication with the external device Device-related services include: based on the identification of data streams, detecting whether all data streams have been sent; if so, determining that the terminal device has completed the service; if not, determining that the terminal device has not completed the service.
  • the first Type-C interface includes a first function expansion pin
  • the second Type-C interface includes a second function expansion pin.
  • the sending the service completion signal to the terminal device includes: sending the signal to the first function extension pin through the second function extension pin.
  • an embodiment of the present application provides a terminal device, the terminal device includes an application processor AP and a first Type-C interface; the AP is configured to: when the terminal device passes through the first Type-C When the C interface and the second Type-C interface of the external device are connected to the external device, perform services related to the external device; in response to detecting that the terminal device is in a long standby state, detect whether the terminal device is completed The business; in response to detecting that the terminal device completes the business, go to sleep.
  • the AP includes a USB module configured to manage the service, and the AP is specifically configured to: control the USB module to sleep, so that the AP sleeps.
  • the AP is specifically configured to: detect a motion state and a screen state of the terminal device, the motion state includes: a static state and a non-stationary state, and the screen state includes: an off screen state and bright screen state; in response to detecting that the terminal device is in the off-screen state, and the off-screen duration is greater than or equal to a preset duration, and that the terminal device is in a static state, it is determined that the terminal device is in a long standby state.
  • the terminal device further includes: a transceiver.
  • the AP is specifically configured to: determine whether the terminal device completes the service based on whether the service completion signal from the external device is received; if the transceiver receives the signal from the external device, then Determine that the terminal device has completed the service; if the transceiver does not receive the signal from the external device, determine that the terminal device has not completed the service.
  • the first Type-C interface includes a first function extension pin
  • the second Type-C interface includes a second function extension pin.
  • the transceiver is further configured to receive the signal from the second function expansion pin based on the first function expansion pin.
  • the service includes: the terminal device charging the terminal device, or transmitting data between the terminal device and the external device.
  • the transmission data 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: detect whether there is a data stream from the external device within a preset time period after the transceiver receives the data stream from the external device. If it exists, it is determined that the terminal device has not completed the service; if it does not exist, it is determined that the terminal device has completed the service.
  • the transmission data 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 used to: detect whether all data streams have been sent based on the identification of the data stream; if so, determine that the terminal device has completed the service; if not, determine that the terminal device has not completed the service .
  • the AP is further configured to: in response to detecting that the terminal device turns on or moves, controls the AP to exit dormancy.
  • the embodiment of the present application provides an external device, including: a processor, a transceiver, and a second Type-C interface; the processor is configured to connect the external device through the second Type-C interface .
  • the first Type-C interface of the terminal device is connected to the terminal device, detecting whether the terminal device completes the business related to the external device; the transceiver is configured to respond to detecting that the terminal device has completed For the service, send a service completion signal to the terminal device.
  • the service includes: the terminal device charging the terminal device, or transmitting data between the terminal device and the external device.
  • the processor is specifically configured to: detect whether the power of the external device reaches a preset power, to detect Whether the terminal device completes the service; if the power reaches the preset power, it is determined that the terminal device completes the business; if the power is less than the preset power, it is determined that the terminal device has not Complete said business.
  • the transmission data 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: within a preset period of time after the transceiver receives the data stream from the terminal device, detect whether there is a data stream from the terminal device; if there is, determine that the terminal device is not Complete the service; if it does not exist, determine that the terminal device completes the service.
  • the transmission data 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: detect whether all data streams have been sent based on the identifier of the data stream; if yes, determine that the terminal device has completed the service; if not, determine that the terminal device has not completed the service. business.
  • the first Type-C interface includes a first function expansion pin
  • the second Type-C interface includes a second function expansion pin.
  • the transceiver is further configured to send the signal to the first function expansion pin through the second function expansion pin.
  • an embodiment of the present application provides a system for reducing power consumption of a terminal device, and the system includes: the terminal device in the above third aspect and the external device in the fourth aspect.
  • the embodiment of the present application provides an electronic device, which may be the terminal device in the third aspect, or the external device in 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 used to store computer-executable program codes, and the program codes include instructions; when the processor executes the instructions, the instructions cause the electronic device to execute the methods in the first aspect and the second aspect.
  • the embodiment of the present application provides an electronic device, which may be the terminal device in the third aspect, or the external device in the fourth aspect, or may also be a chip in the terminal device or a chip in the external device.
  • the electronic device includes a unit, module or circuit for executing the methods provided in the above first aspect and second aspect.
  • the embodiments of the present application provide a computer program product including instructions, which, when run on a computer, cause the computer to execute the methods in the first aspect and the second aspect above.
  • the embodiment of the present application provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer executes the above-mentioned first aspect and the second aspect. method.
  • Embodiments of the present application provide a method for reducing power consumption of a terminal device and the terminal device.
  • the terminal device includes an application processor AP and a first Type-C interface
  • the external device includes a second Type-C interface.
  • the method includes: when the terminal device is connected to the external device through the first Type-C interface and the second Type-C interface, executing services related to the external device; in response to detecting that the terminal device is in a long standby state, detecting whether the terminal device is Complete the service; in response to detecting that the terminal device completes the service, control the AP to sleep.
  • the AP of the terminal device can sleep when the terminal device completes the business related to the external device. On the one hand, it can reduce the power consumption of the terminal equipment and increase the battery life of the terminal equipment.
  • Figure 1 is a schematic diagram of a scene applicable to this application.
  • FIG. 2 is a schematic diagram of a Type-C interface of a terminal device and an external device applicable to an embodiment of the present application;
  • FIG. 3 is a schematic structural diagram of a terminal device provided in an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of another terminal device provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a terminal device and an external device provided by 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 provided in an embodiment of the present application
  • FIG. 7 is a schematic flowchart of another embodiment of a method for reducing power consumption of a terminal device provided in an embodiment of the present application.
  • FIG. 8 is a schematic flowchart of another embodiment of a method for reducing power consumption of a terminal device provided in an embodiment of the present application.
  • FIG. 1 is a schematic diagram of a scenario applicable to this application.
  • the scenario may include a terminal device 100 and an external device 200, and both the terminal device 100 and the external device 200 are provided with a Universal Serial Bus Type-C (universal serial bus Type-C, USB Type-C) interface, The following is referred to as Type-C interface for short.
  • the external device 200 may be connected to the Type-C interface on the terminal device 100 through the Type-C interface on the external device 200 .
  • the Type-C interface on the external device 200 may be called a Type-C male connector
  • the Type-C interface on the terminal device 100 may be called a female connector. It should be understood that in FIG.
  • the terminal device 100 is used as a mobile phone
  • the external device 200 is used as an earphone for example.
  • the mobile phone can charge the earphone.
  • FIG. 1 The Type-C interface on the external device 200 is shown, and the Type-C interface on the terminal device 100 is not shown.
  • the Type-C interface of the earphone shown in FIG. 1 is an example, and does not limit the form of the Type-C interface of the external device 200 in this application.
  • the external device 200 may be a USB flash drive. When the mobile phone and the USB flash drive are connected through a Type-C interface, the mobile phone can read data in the USB flash drive.
  • the terminal device 100 may be, but not limited to, an electronic device provided with a Type-C interface such as a mobile phone, a tablet computer, a notebook computer, a wearable device, and a speaker.
  • the terminal device 100 may also be a personal digital assistant (PDA), a handheld device with wireless communication capabilities, a computing device, a virtual reality (virtual reality, VR) terminal device, a drone device, an augmented reality (augmented reality, AR) terminal equipment, etc.
  • the form of the terminal device 100 is not limited.
  • the external device 200 may be an earphone, a USB flash drive, a mobile hard disk, or an electronic device including a Type-C interface, or an adapter device including a Type-C interface, etc.
  • the form of the external device 200 is not specified in the embodiment of the present application. limited.
  • FIG. 2 is a schematic diagram of Type-C interfaces of a terminal device and an external device applicable to an embodiment of the present application.
  • both the terminal device 100 and the external device 200 are provided with Type-C interfaces, and the pins contained in the Type-C interfaces on the terminal device 100 and the external device 200, and the functions of the pins may be the same.
  • the function of each pin in the Type-C interface will be described below by taking the Type-C interface on the terminal device 100 as an example.
  • the Type-C interface includes 24 pins, which are A1-A12 and B1-B12. Because the functions of A1-A12 and B1-B12 are the same, the following uses pins A1-A12 as an example to illustrate the function of each pin.
  • Pins A1, A12 ground pins.
  • Pins A2, A3 data transmission (TX) pins, which can be used to be compatible with USB3.0 and USB3.1.
  • Pins A4 and A9 connected to the power supply module in the terminal device, so that the terminal device supplies power to the Type-C interface, that is, the terminal device provides V BUS for the Type-C interface.
  • Pin A5 external device detection pin, used to detect the type of external device.
  • the type of the external device may include: a downstream facing port (downstream facing port, DFP) device and an upstream facing port (upstream facing port, UFP) device.
  • the DFP device may be called a master device, and the UFP device may be called a slave device.
  • the DFP device can be used to provide V BUS and/or provide data, and the UFP device can be used to take power from the DFP device and/or provide data.
  • a power adapter can be regarded as a DFP device, and a USB flash drive and a mobile hard disk can be regarded as a UFP device.
  • Pins A6, A7 data transmission pins, used to transmit audio and video streams or files, etc. Pins A6 and A7 can be used to be compatible with USB2.0.
  • Pin A8 Function expansion pin.
  • Pins A10, A11 Data receiving (RX) pins, which can be used to be compatible with USB3.0 and USB3.1.
  • the functions of the above pins are the functions of the pins in the existing terminal device 100 .
  • the pins in the Type-C interface of the external device 200 are connected to the pins in the Type-C interface of the terminal device 100 in one-to-one correspondence, such as external
  • the pin A1 in the device 200 is connected to the pin A1 in the terminal device 100
  • the pin A2 in the external device 200 is connected to the pin A2 in the terminal device 100 , and so on.
  • FIG. 3 is a schematic structural diagram of a terminal device provided in an embodiment of the present application.
  • the terminal device 100 may include: an application processor (application processor, AP) and a baseband processor (baseband processor, BP), and BP is not shown in FIG. 3 .
  • the AP may include: a system management module and a USB module. Wherein, the system management module is used to detect the screen state of the terminal device 100, and the screen state may include but not limited to an off-screen state and an on-screen state.
  • the USB module is used for managing charging of the external device 200 by the terminal device 100 and data transmission between the terminal device 100 and the external device 200 . It should be understood that the USB module can be understood as a USB software module that drives hardware in the terminal device 100 .
  • the system management module when the terminal device 100 is not connected to the external device 200, if the screen of the terminal device 100 is off, the system management module responds to detecting that the screen of the terminal device 100 is off, and the duration of the screen off of the terminal device 100 is greater than or equal to The USB module sleeps for a preset time. Wherein, if the off-screen 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 will process the data collected by the gyroscope and acceleration sensor in the terminal device 100, Cause AP not to sleep.
  • the motion state module sleeps, the USB module sleeps, and then the AP sleeps.
  • the "long standby state" in the following embodiments represents when the screen-off duration of the terminal device 100 is greater than or equal to a preset duration, and the terminal device 100 is in a static state.
  • the terminal device 100 can charge the external device 200 through the Type-C interface, or the terminal device 100 and the external device 200 can transmit data through the Type-C interface.
  • the terminal device 100 is in the long standby state to charge the headset, or perform data transmission with the external device 200, because of the USB module, it is necessary to manage the charging of the terminal device 100 to the external device 200 and the data between the terminal device 100 and the external device 200 For transmission, the USB module needs to perform services, so the USB module does not sleep, which in turn causes the AP to fail to sleep.
  • these tasks are completed very quickly because the amount of power required to fully charge the earphones is very small, and the amount of data transmitted between the terminal device 100 and the external device 200 is not large, but
  • the USB module is not aware of whether the task is completed, and will still be in the working state without sleeping, which leads to the inability of the AP to sleep, and the power consumption of the terminal device 100 is large.
  • An embodiment of the present application provides a method for reducing power consumption of a terminal device.
  • the terminal device When the terminal device is in a long standby state and is charging an external device or transmitting data, if the charging or data transmission is completed, the USB module in the terminal device can be released. Hold the lock and go to sleep, so that the AP can sleep, which can reduce the power consumption of the terminal device in the long standby state.
  • the terminal device 100 charging the external device 200, or performing data transmission between the terminal device 100 and the external device 200 can be understood as an example of the terminal device 100 performing services related to external devices.
  • This application The method provided in the embodiment can also be applied to the terminal device 100 performing other services related to external devices, such as writing data into a USB flash drive, 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.
  • the AP may include: a system management module, a USB module, and a first configuration channel (configuration channel, CC) logic detection chip.
  • the external device includes: a processor, and a second CC logic detection chip.
  • the system management module, the USB module, and the first CC logic detection chip can be independently configured devices, and can also be integrated into one chip for implementation.
  • the system management module and the USB module, And the first CC logic detection chip is an independently configured device as an example for illustration.
  • the external device when the terminal device is in the long standby state, when the terminal device executes and completes the business related to the external device, the external device can extend the pin (such as pin A8 or pin A8 or B8) Send a signal that the service is completed to the function expansion pin (such as pin A8 or B8) in the terminal device, that is, the external device sends a signal that the service is completed to the USB module of the terminal device, so as to notify the USB module that the service is completed and can sleep.
  • the pin such as pin A8 or pin A8 or B8
  • the signal transmitted by the distribution function expansion pin can be set at the production stage of the terminal device, and the process can be carried out by the first CC logic detection chip and the second CC logic detection chip for logic detection, mode Configuration, etc., to achieve the purpose of sending a signal of service completion to the USB module through the function expansion pin after the external device detects that the service is completed.
  • the function expansion pin in the terminal device may be called a first function expansion pin
  • the function expansion pin in the external device may be called a second function expansion pin.
  • the processor of the external device is used to detect whether the transaction is completed.
  • the first CC logic detection chip and the second CC logic detection chip are used to assist the signal interaction between the processor of the external device and the USB module.
  • Fig. 5 shows a schematic structural diagram of a terminal device and an external device. It should be understood that Fig. 5 shows part of the connection relationship between the system management module and the USB module, and the rest of the connection relationship can refer to the current terminal The connection relationship in the device. Based on the structure shown in FIG. 5 , the method for reducing the power consumption of the terminal device provided by the embodiment of the present application will be described below in combination with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
  • FIG. 6 is a schematic flowchart of an embodiment of a method for reducing power consumption of a terminal device provided in an embodiment of the present application.
  • the method for reducing the power consumption of terminal equipment provided by the embodiment of the present application includes:
  • the system management module sends a first message to the USB module in response to detecting that the terminal device is in the long standby state, where the first message is used to instruct the terminal device to enter the long standby state.
  • the long standby state means: the screen-off duration of the terminal device is greater than or equal to a preset duration, and the terminal device is in a static state.
  • the user may press a switch button on the terminal device to turn off the screen of the terminal device.
  • the user does not operate the touch screen of the terminal device for a long time (such as the first period of time), and the screen of the terminal device is turned off.
  • the system management module may detect that the screen of the terminal device is off, and then, in response to detecting that the screen of the terminal is off, start recording the duration of the screen of the terminal device to obtain the duration of the screen of the terminal device.
  • the system management module may determine whether the screen of the terminal device is off based on a broadcast message from the system. Wherein, when the system management module receives a screen-off broadcast message from the system, it detects that the screen of the terminal device is off.
  • the terminal device includes a gyroscope, an acceleration sensor, etc., and the gyroscope, the acceleration sensor, etc. can collect the motion state data of the terminal device, and report it to the system management module.
  • the motion state of the device When the off-screen duration of the terminal device is greater than or equal to the preset duration, and the terminal device is in a static state, the system management module determines that the terminal device is in a long standby state.
  • the process of how the system management module acquires the motion state of the terminal device based on the motion state data is not described in detail.
  • the system management module when it detects that the terminal device is in the long standby state, it may send a first message to the USB module to notify the USB module that the terminal device enters the long standby state.
  • the USB module sleeps in response to detecting that the terminal device finishes executing services related to the external device.
  • the processor of the external device can detect whether the transaction is completed. Exemplarily, if the service is for the terminal device to charge the external device, the processor of the external device can 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 level), it can be determined that the service is completed. If the power of the external device is less than the preset power, the external device may determine that the terminal device has not completed the charging service.
  • the service is that the terminal device reads data in the external device, that is, the external device transmits data to the terminal device.
  • data is composed of at least one data stream, and each data stream has a corresponding identifier, that is, an identifier of the data stream.
  • the data consists of three data streams, and the identifiers of the three data streams may be respectively: data stream 1, data stream 2, and data stream 3.
  • the processor of the external device may detect the identifiers of the transmitted data streams, and when all the data streams are transmitted, the processor of the external device determines that the data transmission is completed, that is, the service is completed. If there is still an unsent data flow in the external device, the external device determines that the data transmission is not completed, that is, the service is not completed.
  • the processor of the external device when the processor of the external device detects that the service is completed, it sends a service completion signal to the USB module through the second function expansion pin and the first function expansion pin, so as to notify the USB module that the service is completed.
  • the USB module receives a service completion signal from the processor of the external device through the first function expansion pin, it can be determined that the terminal device has finished executing services related to the external device, and then the USB module can go to sleep.
  • the fact that the USB module is in the working state and not sleeping can be interpreted as: the USB module is locked.
  • the sleep of the USB module can be understood as: the USB module releases the lock.
  • the wakelock in the Android system is a lock mechanism. If the application or any module in the terminal device holds this lock (that is, holds the lock), the system cannot enter sleep mode.
  • the lock held by the USB module can be understood as: the USB module holds the lock, and thus the AP cannot sleep.
  • the lock in the Android system can be timed out or not. The timed out lock will be automatically unlocked after the time elapses.
  • the system will enter sleep mode. It should be understood that in the embodiment of the present application, there is no limitation on the lock timeout or no timeout. In the embodiment of the present application, the process of holding and releasing the lock will not be described in detail, and details can be referred to the current relevant description.
  • the USB module itself can detect whether the transaction is completed. Exemplarily, 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 relevant description above, the USB module can detect the identifiers of the transmitted data streams, and when all the data streams are transmitted, the USB module determines that the data transmission is completed, that is, the service is completed. If there is still an unsent data stream, the USB module determines that the data transmission is not completed, that is, the service is not completed.
  • the USB module can detect whether there is a data stream from the external device within a preset period of time, If there is a data stream from the external device within the preset time period, the USB module can determine that the data transmission has not been completed; if there is no data stream from the external device within the preset time period, the USB module can determine that the data transmission is completed, that is, the business is completed .
  • the USB module itself can detect whether the terminal device has finished executing the service related to the external device, and the USB module can sleep when detecting that the service is completed.
  • S602 may be replaced by: the USB module sleeps in response to detecting that the terminal device completes services related to the external device.
  • the USB module can release the lock and go to sleep, and then all the modules in the AP can perform sleep, and then the AP can Dormancy can reduce the power consumption of terminal equipment.
  • the USB module in the terminal device can detect whether the terminal device has finished executing the business related to the external device, or the external device can detect whether the terminal device has finished executing the business related to the external device, and then send the business to the USB module
  • the completion signal is used to notify the USB module that the service is completed, and then the USB module can release the lock and go to sleep when detecting the completion of the service, so that the AP can also sleep, thereby reducing the power consumption of the terminal device.
  • the AP in the terminal device when the screen of the terminal device is turned on, the AP in the terminal device can exit the sleep state, and the USB module in the AP can switch from the sleep state to the working state, so that the terminal device can work normally. That is, after the above S602, it may also include:
  • the system management module sends a second message to the USB module in response to detecting that the terminal device turns on or moves, and the second message is used to instruct the terminal device to exit the long standby state.
  • the terminal device When the screen of the terminal device turns on or the terminal device moves, the terminal device exits the long standby state.
  • the user may press a switch button on the terminal device to turn on the screen of the terminal device.
  • the terminal device is in a static state, and when the user picks up the terminal device, the screen of the terminal device is turned on, and the method of turning on the terminal device is not limited in the embodiment of the present application.
  • the system management module may detect that the screen of the terminal device is on, and then in response to detecting that the screen of the terminal device is on, send a second message to the USB module to notify the USB module that the terminal device exits the long standby state.
  • the system management module may determine whether the screen of the terminal device is turned on based on a broadcast message from the system. Wherein, when the system management module receives a screen bright broadcast message from the system, it can determine that the terminal device bright screen.
  • the system management module can obtain whether the terminal device is in a motion state or a static state based on motion state data collected by a gyroscope, an acceleration sensor, and the like. It should be understood that the movement of the terminal device means that the terminal device switches 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 the screen is turned on, the AP exits the dormancy state and enters the working state.
  • the USB module switches from the dormant state to the working state.
  • the USB module After receiving the second message from the system management module, the USB module can switch from the dormant state to the working state. In other words, the USB module may perform locking in response to receiving the second message from the system management module.
  • the AP in the terminal device when the terminal device turns on the screen or moves, the AP in the terminal device can exit the dormancy state, the USB module in the AP can switch from the dormant state to the working state, and the terminal device can work normally.
  • the above S602 may be replaced with S602A-S604A.
  • the USB module detects whether the terminal device has finished performing services related to the external device; if yes, execute S604A, if not, execute S603A.
  • the USB module can detect whether the terminal device has finished executing services related to the external device by itself.
  • the manner in which the USB module detects whether the terminal device finishes executing the service related to the external device may be: whether the USB module receives a signal from the processor of the external device that the service is completed. Wherein, if the USB module has received the service completion signal from the processor of the external device, it is determined that the service has been completed; if the USB module has not received the service completion signal from the processor of the external device, it is determined that the service is not completed.
  • the USB module is locked, and goes to sleep in response to detecting that the terminal device finishes executing services related to the external device.
  • the USB When the service is not completed, the USB will hold a lock to ensure that the terminal device continues to perform services related to the external device. In this way, when the USB module detects that the terminal device has finished performing services related to the external device, it can release the lock and go to sleep. Wherein, the USB module detects that the terminal device finishes executing services related to the external device, and reference may be made to relevant descriptions in the foregoing embodiments.
  • the USB module when the USB module receives the first message from the system management module, it can detect whether the service is completed, and the USB module can release the lock after detecting that the service is completed, and go to sleep, thereby reducing the function of the terminal device. consumption.
  • the system management module and the USB module can be set separately in the terminal device, or the system management module and the USB module can be integrated and set as one.
  • This embodiment of the present application does not limit this, but no matter which For each setting form, the terminal device can perform the following steps:
  • the terminal device detects that an external device is connected to the terminal device through the Type-C, and the terminal executes services related to the external device.
  • Services related to external devices may include: the terminal device charges the external device, or transmits data between the terminal device and the external device, where the data transmission 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.
  • the terminal device detects a motion state and a screen state of the terminal device.
  • the motion state of the terminal device may include: a static state and a non-stationary state. It should be understood that the terminal device in the moving state in the foregoing embodiment may be understood as: the terminal device is in a non-stationary state.
  • the terminal device controls the AP to sleep in response to detecting that the terminal device is in the long standby state and has finished executing services related to the external device.
  • the terminal device controlling the AP to sleep may be: the terminal device controlling the AP to release all processes therein.
  • the reason why the AP cannot sleep is that the USB function is still running, where the USB function may include but not limited to: transmitting data with an external device or charging the external device. Therefore, the above S803 can be replaced by: the terminal device, based on the motion state and screen state of the terminal device, in response to detecting that the terminal device is in the long standby state and has finished executing services related to the external device, stops executing the USB function and makes the AP sleep.
  • the terminal device controls the USB module to sleep.
  • the terminal device controls the AP to exit dormancy in response to detecting the motion of the terminal device or turning on the screen of the terminal device.
  • the AP when the terminal device is in motion, the AP needs to obtain the motion state of the terminal device based on the motion state data of the terminal device, therefore, the AP exits dormancy.
  • the AP exits the sleep state, and the USB module can receive the second message from the system management module, and the USB module switches from the sleep state to the working state.
  • the movement of the terminal device may be understood as: the terminal device switches from a stationary state to a non-stationary state.
  • the terminal device can integrate the functions of the system management module and the USB module, so as to control the USB module to sleep when the terminal device is in the long standby state, so as to reduce the power consumption of the terminal device.
  • the terminal device can integrate the functions of the system management module and the USB module, so as to control the USB module to sleep when the terminal device is in the long standby state, so as to reduce the power consumption of the terminal device.
  • FIG. 8 reference may be made to relevant descriptions of the foregoing embodiments.
  • the embodiment of the present application provides a terminal device, the terminal device includes an application processor AP and a first Type-C interface; the AP is configured to: when the terminal device passes through the first Type-C interface When a Type-C interface and the second Type-C interface of the external device are connected to the external device, perform services related to the external device; in response to detecting that the terminal device is in a long standby state, detect the terminal Whether the device completes the service; in response to detecting that the terminal device completes the service, go to sleep.
  • the AP includes a USB module configured to manage the service, and the AP is specifically configured to: control the USB module to sleep, so that the AP sleeps.
  • the AP is specifically configured to: detect a motion state and a screen state of the terminal device, the motion state includes: a static state and a non-stationary state, and the screen state includes: an off screen state and bright screen state; in response to detecting that the terminal device is in the off-screen state, and the off-screen duration is greater than or equal to a preset duration, and that the terminal device is in a static state, it is determined that the terminal device is in a long standby state.
  • the terminal device further includes: a transceiver.
  • the AP is specifically configured to: determine whether the terminal device completes the service based on whether the service completion signal from the external device is received; if the transceiver receives the signal from the external device, then Determine that the terminal device has completed the service; if the transceiver does not receive the signal from the external device, determine that the terminal device has not completed the service.
  • the first Type-C interface includes a first function extension pin
  • the second Type-C interface includes a second function extension pin.
  • the transceiver is further configured to receive the signal from the second function expansion pin based on the first function expansion pin.
  • the service includes: the terminal device charging the terminal device, or transmitting data between the terminal device and the external device.
  • the transmission data 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: detect whether there is a data stream from the external device within a preset time period after the transceiver receives the data stream from the external device. If it exists, it is determined that the terminal device has not completed the service; if it does not exist, it is determined that the terminal device has completed the service.
  • the transmission data 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 used to: detect whether all data streams have been sent based on the identification of the data stream; if so, determine that the terminal device has completed the service; if not, determine that the terminal device has not completed the service .
  • the AP is further configured to: in response to detecting that the terminal device turns on or moves, controls the AP to exit dormancy.
  • the embodiment of the present application provides an external device, including: a processor, a transceiver, and a second Type-C interface; - When the C interface and the first Type-C interface of the terminal device are connected to the terminal device, it is detected whether the terminal device completes the business related to the external device; the transceiver is used to respond to the detection of the The terminal device completes the service, and sends a service completion signal to the terminal device.
  • the service includes: the terminal device charging the terminal device, or transmitting data between the terminal device and the external device.
  • the processor is specifically configured to: detect whether the power of the external device reaches a preset power, to detect Whether the terminal device completes the service; if the power reaches the preset power, it is determined that the terminal device completes the business; if the power is less than the preset power, it is determined that the terminal device has not Complete said business.
  • the transmission data 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: within a preset period of time after the transceiver receives the data stream from the terminal device, detect whether there is a data stream from the terminal device; if there is, determine that the terminal device is not Complete the service; if it does not exist, determine that the terminal device completes the service.
  • the transmission data 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: detect whether all data streams have been sent based on the identifier of the data stream; if yes, determine that the terminal device has completed the service; if not, determine that the terminal device has not completed the service. business.
  • the first Type-C interface includes a first function expansion pin
  • the second Type-C interface includes a second function expansion pin.
  • the transceiver is further configured to send the signal to the first function expansion pin through the second function expansion pin.
  • the terminal device in the embodiment of the present application can perform the actions of the terminal device in the above-mentioned embodiment, and the external device can perform the actions of the external device in the above-mentioned embodiment, thereby achieving the same technical effect as the above-mentioned embodiment, here I won't go into details.
  • an embodiment of the present application provides a system for reducing power consumption of a terminal device.
  • the system may include the terminal device and the external device in the above embodiment, wherein the terminal device can execute the terminal device in the above embodiment.
  • the actions of the external device can execute the actions of the external device in the above-mentioned embodiment, and then achieve the same technical effect as that of the above-mentioned embodiment.
  • the terminal device and the external device provided in the embodiments of the present application further include a memory.
  • 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 high-speed random-access memory (random-access memory, RAM), and may also include a non-volatile memory (non-volatile memory, such as at least one disk memory, and various instructions may be stored in the memory for use To complete various processing functions and implement the method steps of the present application.
  • the transceiver may be integrated in the transceiver of the terminal device, or may be a transceiver antenna independently set on the terminal device.
  • the above-mentioned memory is used to store computer-executable program codes, and the program codes include instructions; when the processor terminal device executes the instructions, the instructions cause the processor terminal device of the terminal device to perform the actions in the above-mentioned method embodiments, The implementation principles and technical effects are similar, and will not be repeated here.
  • the terminal device involved in this application may further include: a power supply, a communication bus, and a communication port.
  • the communication bus is used to realize the communication connection between the components.
  • the above-mentioned communication port is used to realize connection and communication between the terminal device and other peripheral devices.
  • the above modules may be one or more integrated circuits configured to implement the above method, for example: one or more application specific integrated circuits (ASIC), or one or more microprocessors device (digital signal processor, DSP), or, one or more field programmable gate arrays (field programmable gate array, FPGA), etc.
  • ASIC application specific integrated circuits
  • DSP digital signal processor
  • FPGA field programmable gate array
  • the processing element may be a general-purpose processor, such as a central processing unit (central processing unit, CPU) or other processors that can call program codes.
  • these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).
  • SOC system-on-a-chip
  • a computer program product includes one or more computer instructions.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) to another website site, computer, server or data center.
  • DSL digital subscriber line
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, etc. integrated with one or more available media.
  • Available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)).
  • plural herein means two or more.
  • the term “and/or” in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist simultaneously, and there exists alone B these three situations.
  • the character "/" in this paper generally indicates that the contextual objects are an “or” relationship; in the formula, the character "/" indicates that the contextual objects are a "division" relationship.

Abstract

Provided in the embodiments of the present application are a method for reducing the power consumption of a terminal device, and a terminal device, wherein the terminal device comprises an application processor (AP) and a first Type-C interface, and an external device comprises a second Type-C interface. The method comprises: when a terminal device is connected to an external device by means of a first Type-C interface and a second Type-C interface, executing a service related to the external device; in response to monitoring that the terminal device is in a long standby state, detecting whether the terminal device has completed the service; and in response to monitoring that the terminal device has completed the service, controlling an AP to go into a sleep state. In the embodiments of the present application, when a terminal device is in a long standby state, an AP of the terminal device may go into a sleep state after the terminal device has completed a service related to an external device, such that the terminal device is not influenced when executing the service related to the external device, and the power consumption of the terminal device can also be reduced.

Description

降低终端设备功耗的方法和终端设备Method for reducing power consumption of terminal equipment and terminal equipment
本申请要求于2021年06月10日提交中国专利局、申请号为202110649614.2、申请名称为“降低终端设备功耗的方法和终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202110649614.2 and the application title "Method for Reducing Power Consumption of Terminal Equipment and Terminal Equipment" submitted to the China Patent Office on June 10, 2021, the entire contents of which are hereby incorporated by reference In this application.
技术领域technical field
本申请实施例涉及通用串行总线USB Type-C接口技术,尤其涉及一种降低终端设备功耗的方法和终端设备。The embodiment of the present application relates to the Universal Serial Bus USB Type-C interface technology, and in particular to a method for reducing power consumption of a terminal device and the terminal device.
背景技术Background technique
通用串行总线Type-C(universal serial bus Type-C,USB Type-C)接口凭借其正反插的便捷性、强大的兼容性以及快速充电的优势,在终端设备上得到了广泛的普及和应用。终端设备可以通过Type-C接口给无线耳机充电,读取U盘的数据等。The universal serial bus Type-C (universal serial bus Type-C, USB Type-C) interface has been widely popularized and accepted in terminal equipment due to its convenience of front and back insertion, strong compatibility and fast charging advantages. application. The terminal device can charge the wireless headset through the Type-C interface, read the data of the U disk, etc.
目前,终端设备在长待机状态下给耳机充电,充电完成后终端设备中的应用处理器(application processor,AP)一直处于工作状态不休眠,终端设备的功耗大。At present, the terminal device charges the headset in a long standby state. After the charging is completed, the application processor (application processor, AP) in the terminal device is always in a working state without sleeping, and the power consumption of the terminal device is large.
发明内容Contents of the invention
本申请实施例提供一种降低终端设备功耗的方法和终端设备,可以在终端设备处于长待机状态执行与外部设备相关的业务时,降低终端设备的功耗。Embodiments of the present application provide a method for reducing power consumption of a terminal device and the terminal device, which can reduce power consumption of the terminal device when the terminal device is in a long standby state and executes services related to external devices.
第一方面,本申请实施例提供一种降低终端设备功耗的方法,该方法的执行主体可以为终端设备或终端设备中的芯片,下述以执行主体为终端设备为例进行说明。其中,终端设备中包括应用处理器AP和第一Type-C接口,外部设备包括第二Type-C接口。本申请实施例中,当所述终端设备通过所述第一Type-C接口、所述第二Type-C接口与所述外部设备连接时,执行与所述外部设备相关的业务。应理解,终端设备与外部设备相关的业务可以为:终端设备与外部设备之间进行数据传输,或者终端设备为外部设备进行充电。当终端设备处于长待机状态时,响应于检测到所述终端设备处于长待机状态,检测所述终端设备是否完成所述业务,其中,响应于检测到所述终端设备完成所述业务,控制所述AP休眠。在一种实施例中,终端设备控制AP休眠可以理解为:终端设备可以关闭AP中所有的进程,控制AP休眠。In the first aspect, the embodiment of the present application provides a method for reducing power consumption of a terminal device. The execution subject of the method may be the terminal device or a chip in the terminal device. The following description takes the terminal device as an example for execution. Wherein, the terminal device includes an application processor AP and a first Type-C interface, and the external device includes a second Type-C interface. In this embodiment of the present application, when the terminal device is connected to the external device through the first Type-C interface and the second Type-C interface, services related to the external device are executed. It should be understood that the service related to the terminal device and the external device may be: data transmission between the terminal device and the external device, or charging of the external device by the terminal device. When the terminal device is in the long standby state, in response to detecting that the terminal device is in the long standby state, detecting whether the terminal device has completed the service, wherein, in response to detecting that the terminal device has completed the service, controlling the The above AP sleeps. In an embodiment, the terminal device controlling the AP to sleep may be understood as: the terminal device may close all processes in the AP and control the AP to sleep.
应理解,已有的技术方案中,当终端设备处于长待机状态时,即使终端设备完成与外部设备相关的业务,AP也不会休眠,一直处于工作状态,如此终端设备的功耗大。本申请实施例中,当终端设备处于长待机状态时,终端设备可以检测是否完成与外部设备相关的业务,进而可以响应于终端设备完成该业务,控制AP休眠,如此可以降低终端设备的功耗,进而可以提高终端设备的续航时长。It should be understood that in the existing technical solutions, when the terminal device is in the long-standby state, even if the terminal device completes the business related to the external device, the AP will not go to sleep, and is always in the working state, so the power consumption of the terminal device is large. In the embodiment of this application, when the terminal device is in the long standby state, the terminal device can detect whether the business related to the external device is completed, and then can respond to the terminal device completing the business, and control the AP to sleep, so that the power consumption of the terminal device can be reduced , which in turn can increase the battery life of the terminal device.
在一种可能的实现方式中,当终端设备处于长待机状态时,现有技术中AP不休眠的 原因是:AP中包括USB模块,USB模块用于管理终端设备与外部设备相关的业务,即使终端设备完成该业务,但USB模块不休眠,进而导致AP无法休眠。In a possible implementation, when the terminal device is in the long standby state, the reason why the AP does not sleep in the prior art is that the AP includes a USB module, and the USB module is used to manage services related to the terminal device and external devices, even if The terminal device completes the service, but the USB module does not sleep, which causes the AP to fail to sleep.
本申请实施例中,当终端设备处于长待机状态时,终端设备响应于检测到所述终端设备处于长待机状态,检测所述终端设备是否完成所述业务,当终端设备完成该业务时,可以控制USB模块休眠,以使所述AP休眠,进而降低终端设备的功耗。In the embodiment of the present application, when the terminal device is in the long standby state, the terminal device detects whether the terminal device has completed the service in response to detecting that the terminal device is in the long standby state, and when the terminal device completes the service, it can The USB module is controlled to sleep, so that the AP sleeps, thereby reducing the power consumption of the terminal device.
应理解,终端设备处于长待机状态可以理解为:终端设备处于灭屏状态,且灭屏时长大于或等于预设时长,以及所述终端设备处于静止状态。如此,终端设备可以一直检测终端设备的运动状态和屏幕状态,进而确定终端设备是否处于长待机状态。其中,所述运动状态包括:静止状态和非静止状态,所述屏幕状态包括:灭屏状态和亮屏状态。终端设备响应于检测到所述终端设备处于灭屏状态,且灭屏时长大于或等于预设时长,以及所述终端设备处于静止状态,确定所述终端设备处于长待机状态。It should be understood that the terminal device being in the long standby state may be understood as: the terminal device is in a screen-off state, and the screen-off duration is greater than or equal to a preset duration, and the terminal device is in a static state. In this way, the terminal device can always detect the motion state and screen state of the terminal device, and then determine whether the terminal device is in the long standby state. Wherein, the motion state includes: a static state and a non-stationary state, and the screen state includes: a screen-off state and a screen-on state. The terminal device determines that the terminal device is in the long-standby state in response to detecting that the terminal device is in the screen-off state, and the screen-off time is greater than or equal to a preset duration, and that the terminal device is in a static state.
关于上述终端设备检测到终端设备是否完成所述业务,下面从如下两方面进行介绍。在一种实施例中,所述业务包括:所述终端设备为所述终端设备充电,或者所述终端设备和所述外部设备之间传输数据:Regarding whether the terminal device detects whether the terminal device completes the service, the following two aspects will be introduced below. In an embodiment, the service includes: the terminal device charges the terminal device, or transmits data between the terminal device and the external device:
在一种可能的实现方式中,外部设备可以检测终端设备是否完成所述业务,进而在外部设备检测到终端设备完成该业务时,外部设备可以向终端设备发送业务完成的信号。如此,终端设备可以基于是否接收到来自所述外部设备的业务完成的信号,确定所述终端设备是否完成所述业务。其中,若接收到来自所述外部设备的所述信号,则确定所述终端设备完成所述业务;若未接收到来自所述外部设备的所述信号,则确定所述终端设备未完成所述业务。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 service completion signal to the terminal device. In this way, the terminal device may determine whether the terminal device completes the service based on whether the service completion signal from the external device is received. Wherein, if the signal from the external device is received, it is determined that the terminal device has completed the service; if the signal from the external device is not received, it is determined that the terminal device has not completed the service. business.
在该方式中,外部设备检测终端设备是否完成所述业务的方式可以为:In this manner, the manner in which the external device detects whether the terminal device completes the service may be as follows:
其一,当所述业务包括所述终端设备为所述终端设备充电时,外部设备检测所述终端设备是否完成与所述外部设备相关的业务可以为:外部设备检测所述外部设备的电量是否达到预设电量,以检测所述终端设备是否完成所述业务。其中,若所述电量达到所述预设电量,则确定所述终端设备完成所述业务;若所述电量小于所述预设电量,则确定所述终端设备未完成所述业务。First, when the service includes the terminal device charging the terminal device, the external device may detect whether the terminal device completes the business related to the external device: the external device detects whether the power of the external device is reaching the preset power level, to detect whether the terminal device completes the service. Wherein, if the power quantity reaches the preset power quantity, it is determined that the terminal device has completed the service; if the power quantity is less than the preset power quantity, it is determined that the terminal device has not completed the service.
其二,当所述传输数据为所述外部设备接收来自所述终端设备的数据时,所述数据包括至少一个数据流。外部设备在接收来自所述终端设备的数据流后的预设时长内,检测是否存在来自所述终端设备的数据流;若存在,则确定所述终端设备未完成所述业务;若不存在,则确定所述终端设备完成所述业务。Second, when the transmission data is data received by the external device from the terminal device, the data includes at least one data stream. The external device detects whether there is a data stream from the terminal device within a preset time period after receiving the data stream from the terminal device; if it exists, it is determined that the terminal device has not completed the service; if it does not exist, Then it is determined that the terminal device completes the service.
其三,当所述传输数据为所述外部设备向所述终端设备发送数据时,所述数据包括至少一个数据流,外部设备基于数据流的标识,检测是否已发送所有的数据流;若是,则确定所述终端设备完成所述业务;若否,则确定所述终端设备未完成所述业务。Third, when the transmission data is data sent by the external device to the terminal device, the data includes at least one data stream, and the external device detects whether all data streams have been sent based on the identification of the data stream; if so, Then determine that the terminal device has completed the service; if not, determine that the terminal device has not completed the service.
如上实施例中,关于外部设备向终端设备发送业务完成的信号的方式可以为:所述第一Type-C接口包括第一功能扩展引脚,所述第二Type-C接口包括第二功能扩展引脚,当所述终端设备通过所述第一Type-C接口、所述第二Type-C接口与所述外部设备连接时,所述第一功能扩展引脚和所述第二功能扩展引脚连接。其中,外部设备可以通过第二功能扩展引脚,向所述第二功能扩展引脚发送业务完成的信号。如此,终端设备可以基于所述第一功能扩展引脚,接收来自所述第二功能扩展引脚的所述信号。As in the above embodiment, the manner in which the external device sends a service completion signal to the terminal device may be as follows: the first Type-C interface includes a first function extension pin, and the second Type-C interface includes a second function extension pin, 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 expansion pin and the second function expansion pin pin connection. Wherein, the external device may send a service completion signal to the second function expansion pin through the second function expansion pin. In this way, the terminal device can receive the signal from the second function expansion pin based on the first function expansion pin.
在一种可能的实现方式中,终端设备也可以自己检测终端设备是否完成所述业务。下述示例性的例举终端设备检测终端设备是否完成所述业务的方式:In a possible implementation manner, the terminal device may also detect whether the terminal device completes the service by itself. The following is an exemplary way for a terminal device to detect whether the terminal device completes the service:
其一,当所述传输数据为所述终端设备接收来自所述外部设备的数据时,所述数据包括至少一个数据流,终端设备在接收来自所述外部设备的数据流后的预设时长内,可以检测是否存在来自所述外部设备的数据流。其中,若存在来自所述外部设备的数据流,则确定所述终端设备未完成所述业务;若不存在来自所述外部设备的数据流,则确定所述终端设备完成所述业务。Firstly, 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 receives the data stream from the external device within a preset period of time , can detect whether there is a data flow from the external device. Wherein, if there is a data flow from the external device, it is determined that the terminal device has not completed the service; if there is no data flow from the external device, it is determined that the terminal device has completed the service.
其二,当所述传输数据为所述终端设备向所述外部设备发送数据时,所述数据包括至少一个数据流,终端设备基于数据流的标识,检测是否已发送所有的数据流;若终端设备已发送所有的数据流,则确定所述终端设备完成所述业务;若终端设备未发送所有的数据流,则确定所述终端设备未完成所述业务。Second, when the transmission data is data sent by the terminal device to the external device, the data includes at least one data stream, and the terminal device detects whether all data streams have been sent based on the identification of the data stream; if the terminal If the device has sent all the data streams, it is determined that the terminal device has completed the service; if the terminal device has not sent all the data streams, it is determined that the terminal device has not completed the service.
如上实施例中,终端设备可以自己检测,或者通过外部设备检测,终端设备是否完成与外部设备相关的业务,进而在终端设备完成该业务时,控制AP休眠,进而达到降低终端设备的功耗的目的。In the above embodiment, the terminal device can detect whether the terminal device has completed the service related to the external device by itself or through the external device, and then control the AP to sleep when the terminal device completes the service, thereby reducing the power consumption of the terminal device. Purpose.
如上,终端设备处于长待机状态时,终端设备终端的AP可以在终端设备完成与外部设备相关的业务时进行休眠,一方面不影响终端设备执行与外部设备相关的业务,另一方面可以降低终端设备的功耗。As above, when the terminal device is in the long standby state, the AP of the terminal device can sleep when the terminal device completes the business related to the external device. The power consumption of the device.
在一种可能的实现方式中,终端设备若检测到所述终端设备亮屏或运动,控制所述AP退出休眠。如此,AP可以正常工作,以实现终端设备的各种功能,本申请实施例对此不作详细描述。In a possible implementation manner, if the terminal device detects that the terminal device turns on or moves, it controls the AP to exit sleep. In this way, the AP can work normally to implement various functions of the terminal device, which will not be described in detail in this embodiment of the present application.
第二方面,本申请实施例提供一种降低终端设备功耗的方法,应用于外部设备。其中,终端设备包括第一Type-C接口,所述外部设备包括第二Type-C接口,所述方法包括:当所述外部设备通过所述第二Type-C接口、所述第一Type-C接口与所述终端设备连接时,检测所述终端设备是否完成与所述外部设备相关的业务;响应于检测到所述终端设备完成所述业务,向所述终端设备发送业务完成的信号。In a second aspect, the embodiment of the present application provides a method for reducing power consumption of a terminal device, which is applied to an external device. Wherein, the terminal device includes a first Type-C interface, and the external device includes a second Type-C interface, and the method includes: when the external device passes through the second Type-C interface, the first Type-C When the C interface is connected to the terminal device, it is detected whether the terminal device has completed a service related to the external device; in response to detecting that the terminal device has completed the service, sending a service completion signal to the terminal device.
在一种可能的实现方式中,所述业务包括:所述终端设备为所述终端设备充电,或者所述终端设备和所述外部设备之间传输数据。In a possible implementation manner, the service includes: the terminal device charging the terminal device, or transmitting data between the terminal device and the external device.
在一种可能的实现方式中,当所述业务包括所述终端设备为所述终端设备充电时,所述检测所述终端设备是否完成与所述外部设备相关的业务,包括:检测所述外部设备的电量是否达到预设电量,以检测所述终端设备是否完成所述业务;若所述电量达到所述预设电量,则确定所述终端设备完成所述业务;若所述电量小于所述预设电量,则确定所述终端设备未完成所述业务。In a possible implementation manner, when the service includes charging the terminal device by the terminal device, the detecting whether the terminal device completes the service related to the external device includes: detecting that the external device Whether the power of the device reaches the preset power to detect whether the terminal device completes the service; if the power reaches the preset power, it is determined that the terminal device completes the business; if the power is less than the If the power is preset, it is determined that the terminal device has not completed 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, and the detecting whether the terminal device completes the communication with the Services related to external equipment, including: within a preset period of time after receiving the data stream from the terminal equipment, detecting whether there is a data stream from the terminal equipment; if there is, determining that the terminal equipment has not completed the service; if it does not exist, it is determined that the terminal device 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, and the detecting whether the terminal device completes communication with the external device Device-related services include: based on the identification of data streams, detecting whether all data streams have been sent; if so, determining that the terminal device has completed the service; if not, determining that the terminal device has not completed the service.
在一种可能的实现方式中,所述第一Type-C接口包括第一功能扩展引脚,所述第二Type-C接口包括第二功能扩展引脚,当所述外部设备通过所述第二Type-C接口、所述第一Type-C接口与所述终端设备连接时,所述第一功能扩展引脚和所述第二功能扩展引脚连接;In a possible implementation manner, the first Type-C interface includes a first function expansion pin, and the second Type-C interface includes a second function expansion pin. When the external device passes through the first Two Type-C interfaces, when the first Type-C interface is connected to the terminal device, the first function expansion pin is connected to the second function expansion pin;
所述向所述终端设备发送业务完成的信号,包括:通过所述第二功能扩展引脚,向所述第一功能扩展引脚发送所述信号。The sending the service completion signal to the terminal device includes: sending the signal to the first function extension pin through the second function extension pin.
第三方面,本申请实施例提供一种终端设备,所述终端设备包括应用处理器AP和第一Type-C接口;所述AP,用于:当所述终端设备通过所述第一Type-C接口、外部设备的第二Type-C接口与所述外部设备连接时,执行与所述外部设备相关的业务;响应于检测到所述终端设备处于长待机状态,检测所述终端设备是否完成所述业务;响应于检测到所述终端设备完成所述业务,进行休眠。In a third aspect, an embodiment of the present application provides a terminal device, the terminal device includes an application processor AP and a first Type-C interface; the AP is configured to: when the terminal device passes through the first Type-C When the C interface and the second Type-C interface of the external device are connected to the external device, perform services related to the external device; in response to detecting that the terminal device is in a long standby state, detect whether the terminal device is completed The business; in response to detecting that the terminal device completes the business, go to sleep.
在一种可能的实现方式中,所述AP包括USB模块,所述USB模块用于管理所述业务,所述AP,具体用于:控制所述USB模块休眠,以使所述AP休眠。In a possible implementation manner, the AP includes a USB module configured to manage the service, and the AP is specifically configured to: control the USB module to sleep, so that the AP sleeps.
在一种可能的实现方式中,所述AP,具体用于:检测所述终端设备的运动状态和屏幕状态,所述运动状态包括:静止状态和非静止状态,所述屏幕状态包括:灭屏状态和亮屏状态;响应于检测到所述终端设备处于灭屏状态,且灭屏时长大于或等于预设时长,以及所述终端设备处于静止状态,确定所述终端设备处于长待机状态。In a possible implementation manner, the AP is specifically configured to: detect a motion state and a screen state of the terminal device, the motion state includes: a static state and a non-stationary state, and the screen state includes: an off screen state and bright screen state; in response to detecting that the terminal device is in the off-screen state, and the off-screen duration is greater than or equal to a preset duration, and that the terminal device is in a static state, it is determined that the terminal device is in a long standby state.
在一种可能的实现方式中,终端设备还包括:收发器。所述AP,具体用于:基于是否接收到来自所述外部设备的业务完成的信号,确定所述终端设备是否完成所述业务;若收发器接收到来自所述外部设备的所述信号,则确定所述终端设备完成所述业务;若收发器未接收到来自所述外部设备的所述信号,则确定所述终端设备未完成所述业务。In a possible implementation manner, the terminal device further includes: a transceiver. The AP is specifically configured to: determine whether the terminal device completes the service based on whether the service completion signal from the external device is received; if the transceiver receives the signal from the external device, then Determine that the terminal device has completed the service; if the transceiver does not receive the signal from the external device, determine that the terminal device has not completed the service.
在一种可能的实现方式中,所述第一Type-C接口包括第一功能扩展引脚,所述第二Type-C接口包括第二功能扩展引脚,当所述终端设备通过所述第一Type-C接口、所述第二Type-C接口与所述外部设备连接时,所述第一功能扩展引脚和所述第二功能扩展引脚连接。In a possible implementation manner, the first Type-C interface includes a first function extension pin, and the second Type-C interface includes a second function extension pin. When the terminal device passes through the first When a Type-C interface and the second Type-C interface are connected to the external device, the first function expansion pin is connected to the second function expansion pin.
所述收发器,还用于基于所述第一功能扩展引脚,接收来自所述第二功能扩展引脚的所述信号。The transceiver is further configured to receive the signal from the second function expansion pin based on the first function expansion pin.
在一种可能的实现方式中,所述业务包括:所述终端设备为所述终端设备充电,或者所述终端设备和所述外部设备之间传输数据。In a possible implementation manner, the service includes: the terminal device charging the terminal device, or transmitting data between the terminal device and the external device.
在一种可能的实现方式中,当所述传输数据为所述终端设备接收来自所述外部设备的数据时,所述数据包括至少一个数据流。所述AP,具体用于:在收发器接收来自所述外部设备的数据流后的预设时长内,检测是否存在来自所述外部设备的数据流。若存在,则确定所述终端设备未完成所述业务;若不存在,则确定所述终端设备完成所述业务。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: detect whether there is a data stream from the external device within a preset time period after the transceiver receives the data stream from the external device. If it exists, it is determined that the terminal device has not completed the service; if it does not exist, it is determined that the terminal device has completed the service.
在一种可能的实现方式中,当所述传输数据为所述终端设备向所述外部设备发送数据时,所述数据包括至少一个数据流。所述AP,具体用于:基于数据流的标识,检测是否已发送所有的数据流;若是,则确定所述终端设备完成所述业务;若否,则确定所述终端设备未完成所述业务。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 used to: detect whether all data streams have been sent based on the identification of the data stream; if so, determine that the terminal device has completed the service; if not, determine that the terminal device has not completed the service .
在一种可能的实现方式中,所述AP,还用于:响应于检测到所述终端设备亮屏或运动,控制所述AP退出休眠。In a possible implementation manner, the AP is further configured to: in response to detecting that the terminal device turns on or moves, controls the AP to exit dormancy.
第四方面,本申请实施例提供一种外部设备,包括:处理器、收发器和第二Type-C接口;所述处理器,用于当所述外部设备通过所述第二Type-C接口、终端设备的第一Type-C接口与所述终端设备连接时,检测所述终端设备是否完成与所述外部设备相关的业务;所述收发器,用于响应于检测到所述终端设备完成所述业务,向所述终端设备发送业务完成的信号。In a fourth aspect, the embodiment of the present application provides an external device, including: a processor, a transceiver, and a second Type-C interface; the processor is configured to connect the external device through the second Type-C interface . When the first Type-C interface of the terminal device is connected to the terminal device, detecting whether the terminal device completes the business related to the external device; the transceiver is configured to respond to detecting that the terminal device has completed For the service, send a service completion signal to the terminal device.
在一种可能的实现方式中,所述业务包括:所述终端设备为所述终端设备充电,或者所述终端设备和所述外部设备之间传输数据。In a possible implementation manner, the service includes: the terminal device charging the terminal device, or transmitting data between the terminal device and the external device.
在一种可能的实现方式中,当所述业务包括所述终端设备为所述终端设备充电时,所述处理器,具体用于:检测所述外部设备的电量是否达到预设电量,以检测所述终端设备是否完成所述业务;若所述电量达到所述预设电量,则确定所述终端设备完成所述业务;若所述电量小于所述预设电量,则确定所述终端设备未完成所述业务。In a possible implementation manner, when the service includes charging the terminal device by the terminal device, the processor is specifically configured to: detect whether the power of the external device reaches a preset power, to detect Whether the terminal device completes the service; if the power reaches the preset power, it is determined that the terminal device completes the business; if the power is less than the preset power, it is determined that the terminal device has not Complete said business.
在一种可能的实现方式中,当所述传输数据为所述外部设备接收来自所述终端设备的数据时,所述数据包括至少一个数据流。所述处理器,具体用于:在收发器接收来自所述终端设备的数据流后的预设时长内,检测是否存在来自所述终端设备的数据流;若存在,则确定所述终端设备未完成所述业务;若不存在,则确定所述终端设备完成所述业务。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: within a preset period of time after the transceiver receives the data stream from the terminal device, detect whether there is a data stream from the terminal device; if there is, determine that the terminal device is not Complete the service; if it does not exist, determine that the terminal device 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: detect whether all data streams have been sent based on the identifier of the data stream; if yes, determine that the terminal device has completed the service; if not, determine that the terminal device has not completed the service. business.
在一种可能的实现方式中,所述第一Type-C接口包括第一功能扩展引脚,所述第二Type-C接口包括第二功能扩展引脚,当所述外部设备通过所述第二Type-C接口、所述第一Type-C接口与所述终端设备连接时,所述第一功能扩展引脚和所述第二功能扩展引脚连接。In a possible implementation manner, the first Type-C interface includes a first function expansion pin, and the second Type-C interface includes a second function expansion pin. When the external device passes through the first When two Type-C interfaces and the first Type-C interface are connected to the terminal device, the first function expansion pin is connected to the second function expansion pin.
所述收发器,还用于通过所述第二功能扩展引脚,向所述第一功能扩展引脚发送所述信号。The transceiver is further configured to send the signal to the first function expansion pin through the second function expansion pin.
第五方面,本申请实施例提供一种降低终端设备功耗的系统,该系统包括:如上第三方面的终端设备和第四方面的外部设备。In a fifth aspect, an embodiment of the present application provides a system for reducing power consumption of a terminal device, and the system includes: the terminal device in the above third aspect and the external device in the fourth aspect.
第六方面,本申请实施例提供一种电子设备,该电子设备可以为第三方面的终端设备、或第四方面的外部设备,或者也可以为终端设备中的芯片或外部设备中的芯片。该电子设备可以包括:处理器、存储器。存储器用于存储计算机可执行程序代码,程序代码包括指令;当处理器执行指令时,指令使所述电子设备执行如第一方面、第二方面中的方法。In a sixth aspect, the embodiment of the present application provides an electronic device, which may be the terminal device in the third aspect, or the external device in 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 used to store computer-executable program codes, and the program codes include instructions; when the processor executes the instructions, the instructions cause the electronic device to execute the methods in the first aspect and the second aspect.
第七方面,本申请实施例提供一种电子设备,该电子设备可以为第三方面的终端设备、或第四方面的外部设备,或者也可以为终端设备中的芯片或外部设备中的芯片。该电子设备包括用于执行以上第一方面、第二方面所提供的方法的单元、模块或电路。In a seventh aspect, the embodiment of the present application provides an electronic device, which may be the terminal device in the third aspect, or the external device in the fourth aspect, or may also be a chip in the terminal device or a chip in the external device. The electronic device includes a unit, module or circuit for executing the methods provided in the above first aspect and second aspect.
第八方面,本申请实施例提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面、第二方面中的方法。In an eighth aspect, the embodiments of the present application provide a computer program product including instructions, which, when run on a computer, cause the computer to execute the methods in the first aspect and the second aspect above.
第九方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质中 存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面、第二方面中的方法。In the ninth aspect, the embodiment of the present application provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer executes the above-mentioned first aspect and the second aspect. method.
上述第二方面至第九方面的各可能的实现方式,其有益效果可以参见上述第一方面所带来的有益效果,在此不加赘述。For the beneficial effects of the possible implementation manners of the second aspect to the ninth aspect above, reference may be made to the beneficial effects brought about by the first aspect above, which will not be repeated here.
本申请实施例提供一种降低终端设备功耗的方法和终端设备,终端设备包括应用处理器AP和第一Type-C接口,外部设备包括第二Type-C接口。该方法包括:当终端设备通过第一Type-C接口、第二Type-C接口与外部设备连接时,执行与外部设备相关的业务;响应于检测到终端设备处于长待机状态,检测终端设备是否完成业务;响应于检测到终端设备完成业务,控制AP休眠。本申请实施例中,终端设备处于长待机状态时,终端设备终端的AP可以在终端设备完成与外部设备相关的业务时进行休眠,一方面不影响终端设备执行与外部设备相关的业务,另一方面可以降低终端设备的功耗,增加终端设备的续航时长。Embodiments of the present application provide a method for reducing power consumption of a terminal device and the terminal device. The terminal device includes an application processor AP and a first Type-C interface, and the external device includes a second Type-C interface. The method includes: when the terminal device is connected to the external device through the first Type-C interface and the second Type-C interface, executing services related to the external device; in response to detecting that the terminal device is in a long standby state, detecting whether the terminal device is Complete the service; in response to detecting that the terminal device completes the service, control the AP to sleep. In the embodiment of this application, when the terminal device is in the long-standby state, the AP of the terminal device can sleep when the terminal device completes the business related to the external device. On the one hand, it can reduce the power consumption of the terminal equipment and increase the battery life of the terminal equipment.
附图说明Description of drawings
图1为本申请适用的一种场景示意图;Figure 1 is a schematic diagram of a scene applicable to this application;
图2为本申请实施例适用的终端设备和外部设备的Type-C接口的示意图;FIG. 2 is a schematic diagram of a Type-C interface of a terminal device and an external device applicable to an embodiment of the present application;
图3为本申请实施例提供的一种终端设备的结构示意图;FIG. 3 is a schematic structural diagram of a terminal device provided in an embodiment of the present application;
图4为本申请实施例提供的另一种终端设备的结构示意图;FIG. 4 is a schematic structural diagram of another terminal device provided by an embodiment of the present application;
图5为本申请实施例提供的终端设备和外部设备的结构示意图;FIG. 5 is a schematic structural diagram of a terminal device and an external device provided by an embodiment of the present application;
图6为本申请实施例提供的降低终端设备功耗的方法的一种实施例的流程示意图;FIG. 6 is a schematic flowchart of an embodiment of a method for reducing power consumption of a terminal device provided in an embodiment of the present application;
图7为本申请实施例提供的降低终端设备功耗的方法的另一种实施例的流程示意图;FIG. 7 is a schematic flowchart of another embodiment of a method for reducing power consumption of a terminal device provided in an embodiment of the present application;
图8为本申请实施例提供的降低终端设备功耗的方法的另一种实施例的流程示意图。FIG. 8 is a schematic flowchart of another embodiment of a method for reducing power consumption of a terminal device provided in an embodiment of the present application.
具体实施方式Detailed ways
图1为本申请适用的一种场景示意图。参照图1,该场景中可以包括终端设备100和外设备200,终端设备100和外部设备200上均设置有通用串行总线Type-C(universal serial bus Type-C,USB Type-C)接口,下述简称为Type-C接口。外部设备200可以通过外部设备200上Type-C接口,与终端设备100上Type-C接口连接。在一种实施例中,外部设备200上Type-C接口可以称为Type-C公头,终端设备100上Type-C接口可以称为母头。应理解,图1中以终端设备100为手机,以外部设备200为耳机为例进行说明,当手机和耳机通过Type-C接口连接时,手机可以对耳机进行充电,图1中为了便于说明,示出了外部设备200上Type-C接口,未示出终端设备100上Type-C接口。应注意的是,图1中示出的耳机的Type-C接口为一种示例,并不对本申请中外部设备200的Type-C接口的形式造成限制。在一种实施例中,外部设备200可以为U盘,当手机和U盘通过Type-C接口连接时,手机可以读取U盘中的数据。FIG. 1 is a schematic diagram of a scenario applicable to this application. Referring to FIG. 1 , the scenario may include a terminal device 100 and an external device 200, and both the terminal device 100 and the external device 200 are provided with a Universal Serial Bus Type-C (universal serial bus Type-C, USB Type-C) interface, The following is referred to as Type-C interface for short. The external device 200 may be connected to the Type-C interface on the terminal device 100 through the Type-C interface on the external device 200 . In an embodiment, the Type-C interface on the external device 200 may be called a Type-C male connector, and the Type-C interface on the terminal device 100 may be called a female connector. It should be understood that in FIG. 1, the terminal device 100 is used as a mobile phone, and the external device 200 is used as an earphone for example. When the mobile phone and the earphone are connected through the Type-C interface, the mobile phone can charge the earphone. For the convenience of illustration, in FIG. 1, The Type-C interface on the external device 200 is shown, and the Type-C interface on the terminal device 100 is not shown. It should be noted that the Type-C interface of the earphone shown in FIG. 1 is an example, and does not limit the form of the Type-C interface of the external device 200 in this application. In one embodiment, the external device 200 may be a USB flash drive. When the mobile phone and the USB flash drive are connected through a Type-C interface, the mobile phone can read data in the USB flash drive.
在一种实施例中,终端设备100可以但不限于为:手机、平板电脑、笔记本电脑、可穿戴设备、音箱等设置有Type-C接口的电子设备。可选的,终端设备100还可以为个人数字处理(personal digital assistant,PDA)、具有无线通信能力的手持设备、计算设备、虚拟现实(virtual reality,VR)终端设备、无人机设备、增强现实(augmented reality,AR)终端设备等。本申请实施例中对终端设备100的形态不做限定。外部设备200可以为耳机、 U盘、移动硬盘,或者包含有Type-C接口的电子设备,或者包含有Type-C接口的转接设备等,本申请实施例中对外部设备200的形态不做限定。In an embodiment, the terminal device 100 may be, but not limited to, an electronic device provided with a Type-C interface such as a mobile phone, a tablet computer, a notebook computer, a wearable device, and a speaker. Optionally, the terminal device 100 may also be a personal digital assistant (PDA), a handheld device with wireless communication capabilities, a computing device, a virtual reality (virtual reality, VR) terminal device, a drone device, an augmented reality (augmented reality, AR) terminal equipment, etc. In the embodiment of the present application, the form of the terminal device 100 is not limited. The external device 200 may be an earphone, a USB flash drive, a mobile hard disk, or an electronic device including a Type-C interface, or an adapter device including a Type-C interface, etc. The form of the external device 200 is not specified in the embodiment of the present application. limited.
图2为本申请实施例适用的终端设备和外部设备的Type-C接口的示意图。参照图2,终端设备100和外部设备200上均设置有Type-C接口,终端设备100和外部设备200上的Type-C接口中包含的引脚,以及引脚的作用可以相同。下述以终端设备100上的Type-C接口为例说明Type-C接口中每个引脚的作用。其中,Type-C接口包括24个引脚,分别为A1-A12,以及B1-B12。因为A1-A12与B1-B12的功能相同,下述以引脚A1-A12为例,说明每个引脚的作用。FIG. 2 is a schematic diagram of Type-C interfaces of a terminal device and an external device applicable to an embodiment of the present application. Referring to FIG. 2 , both the terminal device 100 and the external device 200 are provided with Type-C interfaces, and the pins contained in the Type-C interfaces on the terminal device 100 and the external device 200, and the functions of the pins may be the same. The function of each pin in the Type-C interface will be described below by taking the Type-C interface on the terminal device 100 as an example. Among them, the Type-C interface includes 24 pins, which are A1-A12 and B1-B12. Because the functions of A1-A12 and B1-B12 are the same, the following uses pins A1-A12 as an example to illustrate the function of each pin.
引脚A1、A12:接地引脚。Pins A1, A12: ground pins.
引脚A2、A3:数据发送(TX)引脚,可以用于兼容USB3.0和USB3.1。Pins A2, A3: data transmission (TX) pins, which can be used to be compatible with USB3.0 and USB3.1.
引脚A4、A9:与终端设备中的供电模块连接,以使得终端设备为Type-C接口供电,即终端设备为Type-C接口提供V BUSPins A4 and A9: connected to the power supply module in the terminal device, so that the terminal device supplies power to the Type-C interface, that is, the terminal device provides V BUS for the Type-C interface.
引脚A5:外部设备检测引脚,用于检测外部设备的类型。其中,外部设备的类型可以包括:下行端口(downstream facing port,DFP)设备和上行端口(upstream facing port,UFP)设备。在一种实施例中,DFP设备可以称为主设备,UFP设备可以称为从设备。DFP设备可以用于提供V BUS和/或提供数据,UFP设备可以用于从DFP设备中取电和/或提供数据。示例性的,电源适配器可以看做DFP设备,U盘和移动硬盘可以看做UFP设备。 Pin A5: external device detection pin, used to detect the type of external device. Wherein, the type of the external device may include: a downstream facing port (downstream facing port, DFP) device and an upstream facing port (upstream facing port, UFP) device. In an embodiment, the DFP device may be called a master device, and the UFP device may be called a slave device. The DFP device can be used to provide V BUS and/or provide data, and the UFP device can be used to take power from the DFP device and/or provide data. Exemplarily, a power adapter can be regarded as a DFP device, and a USB flash drive and a mobile hard disk can be regarded as a UFP device.
引脚A6、A7:数据传输引脚,用于传输音视频流或文件等。引脚A6、A7可以用于兼容USB2.0。Pins A6, A7: data transmission pins, used to transmit audio and video streams or files, etc. Pins A6 and A7 can be used to be compatible with USB2.0.
引脚A8:功能扩展引脚。Pin A8: Function expansion pin.
引脚A10、A11:数据接收(RX)引脚,可以用于兼容USB3.0和USB3.1。Pins A10, A11: Data receiving (RX) pins, which can be used to be compatible with USB3.0 and USB3.1.
如上引脚的作用是目前已有的终端设备100中的引脚的作用。目前,当外部设备200通过Type-C接口与终端设备100连接时,外部设备200的Type-C接口中的引脚与终端设备100的Type-C接口中的引脚一一对应连接,如外部设备200中的引脚A1与终端设备100中的引脚A1连接,外部设备200中的引脚A2与终端设备100中的引脚A2连接……,以此类推。The functions of the above pins are the functions of the pins in the existing terminal device 100 . At present, when the external device 200 is connected to the terminal device 100 through the Type-C interface, the pins in the Type-C interface of the external device 200 are connected to the pins in the Type-C interface of the terminal device 100 in one-to-one correspondence, such as external The pin A1 in the device 200 is connected to the pin A1 in the terminal device 100 , the pin A2 in the external device 200 is connected to the pin A2 in the terminal device 100 , and so on.
图3为本申请实施例提供的一种终端设备的结构示意图。参照图3,终端设备100可以包括:应用处理器(application processor,AP)和基带处理器(baseband processor,BP),图3中未示出BP。AP可以包括:系统管理模块和USB模块。其中,系统管理模块,用于检测终端设备100的屏幕状态,屏幕状态可以包括但不限于灭屏状态和亮屏状态。USB模块,用于管理终端设备100对外部设备200的充电,以及终端设备100与外部设备200之间的数据传输等。应理解,USB模块可以理解为驱动终端设备100中的硬件的USB的软件模块。FIG. 3 is a schematic structural diagram of a terminal device provided in an embodiment of the present application. Referring to FIG. 3 , the terminal device 100 may include: an application processor (application processor, AP) and a baseband processor (baseband processor, BP), and BP is not shown in FIG. 3 . The AP may include: a system management module and a USB module. Wherein, the system management module is used to detect the screen state of the terminal device 100, and the screen state may include but not limited to an off-screen state and an on-screen state. The USB module is used for managing charging of the external device 200 by the terminal device 100 and data transmission between the terminal device 100 and the external device 200 . It should be understood that the USB module can be understood as a USB software module that drives hardware in the terminal device 100 .
在一种实施例中,终端设备100未连接外部设备200时,若终端设备100灭屏,则系统管理模块响应于检测到终端设备100灭屏,且在终端设备100的灭屏时长大于或等于预设时长时,USB模块休眠。其中,若终端设备100的灭屏时长大于或等于预设时长时,且终端设备100处于运动状态,则AP中的运动状态模块会处理终端设备100中的陀螺仪和加速度传感器等采集的数据,导致AP不休眠。若终端设备100的灭屏时长大于或等于预设时长时,且终端设备100处于静止状态,运动状态模块休眠,以及USB模块休眠,进而 AP休眠。应理解,下述实施例中以“长待机状态”表征终端设备100的灭屏时长大于或等于预设时长时,且终端设备100处于静止状态。In one embodiment, when the terminal device 100 is not connected to the external device 200, if the screen of the terminal device 100 is off, the system management module responds to detecting that the screen of the terminal device 100 is off, and the duration of the screen off of the terminal device 100 is greater than or equal to The USB module sleeps for a preset time. Wherein, if the off-screen 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 will process the data collected by the gyroscope and acceleration sensor in the terminal device 100, Cause AP not to sleep. If the off-screen 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, the motion state module sleeps, the USB module sleeps, and then the AP sleeps. It should be understood that the "long standby state" in the following embodiments represents when the screen-off duration of the terminal device 100 is greater than or equal to a preset duration, and the terminal device 100 is in a static state.
在一种实施例中,若终端设备100连接外部设备200时,终端设备100可以通过Type-C接口为外部设备200进行充电,或者终端设备100和外部设备200可以通过Type-C接口传输数据。当终端设备100在长待机状态时给耳机充电,或者与外部设备200进行数据传输,因为USB模块,需要管理终端设备100对外部设备200的充电,以及终端设备100与外部设备200之间的数据传输,USB模块需要执行业务,因此USB模块不休眠,进而导致AP无法休眠。In one embodiment, if the terminal device 100 is connected to the external device 200, the terminal device 100 can charge the external device 200 through the Type-C interface, or the terminal device 100 and the external device 200 can transmit data through the Type-C interface. When the terminal device 100 is in the long standby state to charge the headset, or perform data transmission with the external device 200, because of the USB module, it is necessary to manage the charging of the terminal device 100 to the external device 200 and the data between the terminal device 100 and the external device 200 For transmission, the USB module needs to perform services, so the USB module does not sleep, which in turn causes the AP to fail to sleep.
目前,因为耳机充满电需要的电量很小,且终端设备100与外部设备200之间传输的数据量不大时,这些任务(如充电任务和/或数据传输任务)很快就完成了,但是现有技术中,当终端设备处于长待机状态时,USB模块对任务是否完成不感知,仍会处于工作状态不休眠,则导致AP无法休眠,终端设备100的功耗大。At present, these tasks (such as charging tasks and/or data transmission tasks) are completed very quickly because the amount of power required to fully charge the earphones is very small, and the amount of data transmitted between the terminal device 100 and the external device 200 is not large, but In the prior art, when the terminal device is in the long-standby state, the USB module is not aware of whether the task is completed, and will still be in the working state without sleeping, which leads to the inability of the AP to sleep, and the power consumption of the terminal device 100 is large.
本申请实施例中提供一种降低终端设备功耗的方法,终端设备在处于长待机状态且为外部设备充电或者进行传输数据时,若充电完成或数据传输完成,终端设备中的USB模块可以释放持锁,进行休眠,进而使得AP可以休眠,能够降低长待机状态下终端设备的功耗。An embodiment of the present application provides a method for reducing power consumption of a terminal device. When the terminal device is in a long standby state and is charging an external device or transmitting data, if the charging or data transmission is completed, the USB module in the terminal device can be released. Hold the lock and go to sleep, so that the AP can sleep, which can reduce the power consumption of the terminal device in the long standby state.
应理解的是,如上所示的终端设备100为外部设备200充电,或者终端设备100与外部设备200之间进行数据传输,可以理解为终端设备100执行与外部设备相关的业务的示例,本申请实施例提供的方法还可以应用在终端设备100执行与外部设备相关的其他业务中,比如将数据写入U盘,投屏等。It should be understood that, as shown above, the terminal device 100 charging the external device 200, or performing data transmission between the terminal device 100 and the external device 200, can be understood as an example of the terminal device 100 performing services related to external devices. This application The method provided in the embodiment can also be applied to the terminal device 100 performing other services related to external devices, such as writing data into a USB flash drive, projecting a screen, and the like.
图4为本申请实施例提供的另一种终端设备的结构示意图。参照图4,AP可以包括:系统管理模块、USB模块,以及第一配置通道(configuration channel,CC)逻辑检测芯片。外部设备中包括:处理器,以及第二CC逻辑检测芯片。系统管理模块、USB模块可以参照上述的相关描述。在一种实施例中,系统管理模块、USB模块,以及第一CC逻辑检测芯片可以是独立设置的器件,也可以集成在一个芯片中实现,下述实施例中以系统管理模块、USB模块,以及第一CC逻辑检测芯片为独立设置的器件为例进行说明。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: a system management module, a USB module, and a first configuration channel (configuration channel, CC) logic detection chip. The external device includes: a processor, and a second CC logic detection chip. For the system management module and the USB module, reference may be made to the relevant description above. In one embodiment, the system management module, the USB module, and the first CC logic detection chip can be independently configured devices, and can also be integrated into one chip for implementation. In the following embodiments, the system management module and the USB module, And the first CC logic detection chip is an independently configured device as an example for illustration.
应注意的是,本申请实施例中,在终端设备处于长待机状态时,终端设备执行完成与外部设备相关的业务时,外部设备可以通过外部设备中的功能扩展引脚(如引脚A8或B8)向终端设备中的功能扩展引脚(如引脚A8或B8)发送业务完成的信号,即外部设备向终端设备的USB模块发送业务完成的信号,以及时通知USB模块业务完成可以休眠。应理解,在该种实施例中,可以在终端设备的生产阶段,设置分配功能扩展引脚传输的信号,该过程可以通过第一CC逻辑检测芯片和第二CC逻辑检测芯片进行逻辑检测、模式配置等,以达到外部设备在检测到业务完成后,通过功能扩展引脚向USB模块发送业务完成的信号的目的。具体的过程可以参照下述实施例的相关描述。在一种实施例中,终端设备中的功能扩展引脚可以称为第一功能扩展引脚,外部设备中的功能扩展引脚可以称为第二功能扩展引脚。It should be noted that in the embodiment of the present application, when the terminal device is in the long standby state, when the terminal device executes and completes the business related to the external device, the external device can extend the pin (such as pin A8 or pin A8 or B8) Send a signal that the service is completed to the function expansion pin (such as pin A8 or B8) in the terminal device, that is, the external device sends a signal that the service is completed to the USB module of the terminal device, so as to notify the USB module that the service is completed and can sleep. It should be understood that in this kind of embodiment, the signal transmitted by the distribution function expansion pin can be set at the production stage of the terminal device, and the process can be carried out by the first CC logic detection chip and the second CC logic detection chip for logic detection, mode Configuration, etc., to achieve the purpose of sending a signal of service completion to the USB module through the function expansion pin after the external device detects that the service is completed. For the specific process, reference may be made to the relevant description of the following embodiments. In an embodiment, the function expansion pin in the terminal device may be called a first function expansion pin, and the function expansion pin in the external device may be called a second function expansion pin.
换句话说,外部设备的处理器,用于检测业务是否完成。第一CC逻辑检测芯片和第二CC逻辑检测芯片,用于辅助外部设备的处理器和USB模块之间完成信号的交互。In other words, the processor of the external device is used to detect whether the transaction is completed. The first CC logic detection chip and the second CC logic detection chip are used to assist the signal interaction between the processor of the external device and the USB module.
在图4的基础上,图5示出了终端设备和外部设备的结构示意图,应理解,图5中示出了系统管理模块、USB模块等的部分连接关系,其余的连接关系可以参照目前终端设备中的连接关系。基于图5所示的结构,下面结合具体的实施例对本申请实施例提供的降低终端设备功耗的方法进行说明。下面这几个实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。On the basis of Fig. 4, Fig. 5 shows a schematic structural diagram of a terminal device and an external device. It should be understood that Fig. 5 shows part of the connection relationship between the system management module and the USB module, and the rest of the connection relationship can refer to the current terminal The connection relationship in the device. Based on the structure shown in FIG. 5 , the method for reducing the power consumption of the terminal device provided by the embodiment of the present application will be described below in combination with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
图6为本申请实施例提供的降低终端设备功耗的方法的一种实施例的流程示意图。参照图6,本申请实施例提供的降低终端设备功耗的方法包括:FIG. 6 is a schematic flowchart of an embodiment of a method for reducing power consumption of a terminal device provided in an embodiment of the present application. Referring to Figure 6, the method for reducing the power consumption of terminal equipment provided by the embodiment of the present application includes:
S601,系统管理模块响应于检测到终端设备处于长待机状态,向USB模块发送第一消息,第一消息用于指示终端设备进入长待机状态。S601. The system management module sends a first message to the USB module in response to detecting that the terminal device is in the long standby state, where the first message is used to instruct the terminal device to enter the long standby state.
应理解,长待机状态表征:终端设备的灭屏时长大于或等于预设时长,且终端设备处于静止状态。在一种实施例中,用户可以按压终端设备上的开关按键,使得终端设备灭屏。或者,用户长时间(如第一时长)未操作终端设备的触摸屏,终端设备灭屏,本申请实施例中对终端灭屏的方式不做限制。系统管理模块可以检测终端设备灭屏,进而响应于检测到终端灭屏,开始记录终端设备的灭屏的时长,以获取终端设备的灭屏时长。在一种实施例中,系统管理模块可以基于来自系统的广播消息,确定终端设备是否灭屏。其中,当系统管理模块接收到来自系统的灭屏广播消息,即检测到终端设备灭屏。It should be understood that the long standby state means: the screen-off duration of the terminal device is greater than or equal to a preset duration, and the terminal device is in a static state. In one embodiment, the user may press a switch button on the terminal device to turn off the screen of the terminal device. Alternatively, the user does not operate the touch screen of the terminal device for a long time (such as the first period of time), and the screen of the terminal device is turned off. In this embodiment of the present application, there is no limitation on the method of turning off the terminal screen. The system management module may detect that the screen of the terminal device is off, and then, in response to detecting that the screen of the terminal is off, start recording the duration of the screen of the terminal device to obtain the duration of the screen of the terminal device. In an embodiment, the system management module may determine whether the screen of the terminal device is off based on a broadcast message from the system. Wherein, when the system management module receives a screen-off broadcast message from the system, it detects that the screen of the terminal device is off.
在一种实施例中,终端设备中包括陀螺仪、加速度传感器等,陀螺仪、加速度传感器等可以采集终端设备的运动状态数据,上报至系统管理模块,系统管理模块可以基于运动状态数据,获取终端设备的运动状态。当终端设备灭屏时长大于或等于预设时长,且终端设备处于静止状态,则系统管理模块确定终端设备处于长待机状态。本申请实施例中对系统管理模块如何基于运动状态数据,获取终端设备的运动状态的过程不做赘述。In one embodiment, the terminal device includes a gyroscope, an acceleration sensor, etc., and the gyroscope, the acceleration sensor, etc. can collect the motion state data of the terminal device, and report it to the system management module. The motion state of the device. When the off-screen duration of the terminal device is greater than or equal to the preset duration, and the terminal device is in a static state, the system management module determines that the terminal device is in a long standby state. In the embodiment of the present application, the process of how the system management module acquires the motion state of the terminal device based on the motion state data is not described in detail.
其中,系统管理模块响应于检测到终端设备处于长待机状态时,可以向USB模块发送第一消息,以通知USB模块终端设备进入长待机状态。Wherein, when the system management module detects that the terminal device is in the long standby state, it may send a first message to the USB module to notify the USB module that the terminal device enters the long standby state.
S602,USB模块响应于检测到终端设备执行完与外部设备相关的业务,进行休眠。S602. The USB module sleeps in response to detecting that the terminal device finishes executing services related to the external device.
在一种实施例中,外部设备的处理器可以检测业务是否完成。示例性的,若业务为终端设备为外部设备充电,外部设备的处理器可以检测外部设备的电量,当电量充满(如外部设备的电量达到预设电量)时,可以确定业务完成。若外部设备的电量小于预设电量时,外部设备可以确定终端设备还没完成该充电业务。In one embodiment, the processor of the external device can detect whether the transaction is completed. Exemplarily, if the service is for the terminal device to charge the external device, the processor of the external device can 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 level), it can be determined that the service is completed. If the power of the external device is less than the preset power, the external device may determine that the terminal device has not completed the charging service.
示例性的,若业务为终端设备读取外部设备中的数据,即外部设备向终端设备传输数据。应理解,数据是由至少一个数据流组成,每个数据流有对应的标识,即数据流的标识。示例性的,数据由3个数据流组成,该三个数据流的标识分别可以为:数据流1、数据流2和数据流3。外部设备的处理器可以检测已传输的数据流的标识,当所有的数据流传输完成时,外部设备的处理器确定数据传输完成,即业务完成。若外部设备中还存在未发送的数据流,则外部设备确定数据传输未完成,即业务未完成。Exemplarily, 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. It should be understood that data is composed of at least one data stream, and each data stream has a corresponding identifier, that is, an identifier of the data stream. Exemplarily, the data consists of three data streams, and the identifiers of the three data streams may be respectively: data stream 1, data stream 2, and data stream 3. The processor of the external device may detect the identifiers of the transmitted data streams, and when all the data streams are transmitted, the processor of the external device determines that the data transmission is completed, that is, the service is completed. If there is still an unsent data flow in the external device, the external device determines that the data transmission is not completed, that is, the service is not completed.
该种实施例中,外部设备的处理器检测到业务完成时,通过第二功能扩展引脚、第一功能扩展引脚向USB模块发送业务完成的信号,以通知USB模块业务完成。相应的,当USB模块通过第一功能扩展引脚,接收来自外部设备的处理器的业务完成的信号,可以确定终端设备执行完与外部设备相关的业务,进而USB模块可以进行休眠。In this embodiment, when the processor of the external device detects that the service is completed, it sends a service completion signal to the USB module through the second function expansion pin and the first function expansion pin, so as 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 expansion pin, it can be determined that the terminal device has finished executing services related to the external device, and then the USB module can go to sleep.
在一种实施例中,USB模块处于工作状态不休眠可以理解为:USB模块持锁。USB 模块休眠可以理解为:USB模块释放持锁。以安卓android系统为例,安卓系统中的wakelock是一种锁的机制,如果终端设备中的应用或者任一模块拿着这个锁(即持锁),系统就无法进入休眠。本申请实施例中,USB模块持锁可以理解为:USB模块拿着这个锁,进而AP无法休眠。在一种实施例中,安卓系统中的锁可以是有超时的或者是没有超时的,超时的锁会在时间过去以后自动解锁,如果没有应用或模块持锁或者超时了,系统会进入休眠。应理解,本申请实施例中对锁超时的或者是没有超时不做限制。本申请实施例中对持锁和释放持锁的过程不做赘述,具体可以参照目前的相关描述。In one embodiment, the fact that the USB module is in the working state and not sleeping can be interpreted as: the USB module is locked. The sleep of the USB module can be understood as: the USB module releases the lock. Taking the Android system as an example, the wakelock in the Android system is a lock mechanism. If the application or any module in the terminal device holds this lock (that is, holds the lock), the system cannot enter sleep mode. In the embodiment of the present application, the lock held by the USB module can be understood as: the USB module holds the lock, and thus the AP cannot sleep. In one embodiment, the lock in the Android system can be timed out or not. The timed out lock will be automatically unlocked after the time elapses. If there is no application or module holding the lock or the timeout expires, the system will enter sleep mode. It should be understood that in the embodiment of the present application, there is no limitation on the lock timeout or no timeout. In the embodiment of the present application, the process of holding and releasing the lock will not be described in detail, and details can be referred to the current relevant description.
在一种实施例中,USB模块自身可以检测业务是否完成。示例性的,若业务为终端设备在外部设备中写入数据,即终端设备向外部设备传输数据。依据上述的相关描述,USB模块可以检测已传输的数据流的标识,当所有的数据流传输完成时,USB模块确定数据传输完成,即业务完成。若还存在未发送的数据流,则USB模块确定数据传输未完成,即业务未完成。In one embodiment, the USB module itself can detect whether the transaction is completed. Exemplarily, 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 relevant description above, the USB module can detect the identifiers of the transmitted data streams, and when all the data streams are transmitted, the USB module determines that the data transmission is completed, that is, the service is completed. If there is still an unsent data stream, the USB module determines that the data transmission is not completed, that is, the service is not completed.
在一种实施例中,示例性的,若业务为终端设备读取外部设备中的数据,即外部设备向终端设备传输数据,USB模块可以检测预设时长内是否存在来自外部设备的数据流,若在预设时长内存在来自外部设备的数据流,USB模块可以确定数据传输还未完成,若在预设时长内不存在来自外部设备的数据流,USB模块可以确定数据传输完成,即业务完成。In one 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 can detect whether there is a data stream from the external device within a preset period of time, If there is a data stream from the external device within the preset time period, the USB module can determine that the data transmission has not been completed; if there is no data stream from the external device within the preset time period, the USB module can determine that the data transmission is completed, that is, the business is completed .
在该种实施例中,USB模块自己可以检测终端设备是否执行完与外部设备相关的业务,USB模块可以在检测到业务完成时,进行休眠。在一种实施例中,S602可以替换为:USB模块响应于检测到终端设备完成与外部设备相关的业务,进行休眠。In this embodiment, the USB module itself can detect whether the terminal device has finished executing the service related to the external device, and the USB module can sleep when detecting that the service is completed. In an embodiment, S602 may be replaced by: the USB module sleeps in response to detecting that the terminal device completes services related to the external device.
如上所述,在终端设备处于长待机状态时,在终端设备执行完与外部设备相关的业务时,USB模块可以释放持锁,进行休眠,进而AP中的所有模块均可以执行休眠,进而AP可以休眠,可以降低终端设备的功耗。As mentioned above, when the terminal device is in the long standby state, when the terminal device finishes executing the business related to the external device, the USB module can release the lock and go to sleep, and then all the modules in the AP can perform sleep, and then the AP can Dormancy can reduce the power consumption of terminal equipment.
本申请实施例中,终端设备中的USB模块自己可以检测终端设备是否执行完与外部设备相关的业务,或者外部设备可以检测终端设备是否执行完与外部设备相关的业务,进而向USB模块发送业务完成的信号,以通知USB模块业务完成,进而USB模块可以在检测到业务完成时释放持锁,进行休眠,使得AP也能够休眠,进而降低终端设备的功耗。In the embodiment of this application, the USB module in the terminal device can detect whether the terminal device has finished executing the business related to the external device, or the external device can detect whether the terminal device has finished executing the business related to the external device, and then send the business to the USB module The completion signal is used to notify the USB module that the service is completed, and then the USB module can release the lock and go to sleep when detecting the completion of the service, so that the AP can also sleep, thereby reducing the power consumption of the terminal device.
在一种实施例中,终端设备亮屏时,终端设备中的AP可以退出休眠,AP中的USB模块可以从休眠状态切换至工作状态,使得终端设备正常工作。即上述S602之后还可以包括:In one embodiment, when the screen of the terminal device is turned on, the AP in the terminal device can exit the sleep state, and the USB module in the AP can switch from the sleep state to the working state, so that the terminal device can work normally. That is, after the above S602, it may also include:
S603,系统管理模块响应于检测到终端设备亮屏或运动,向USB模块发送第二消息,第二消息用于指示终端设备退出长待机状态。S603, the system management module sends a second message to the USB module in response to detecting that the terminal device turns on or moves, and the second message is used to instruct the terminal device to exit the long standby state.
终端设备亮屏或者终端设备运动,终端设备退出长待机状态。在一种实施例中,当终端设备灭屏时,用户可以按压终端设备上的开关按键,使得终端设备亮屏。或者,终端设备处于静止状态,用户拿起终端设备时,终端设备亮屏,本申请实施例中对终端亮屏的方式不做限制。When the screen of the terminal device turns on or the terminal device moves, the terminal device exits the long standby state. In an embodiment, when the screen of the terminal device is off, the user may press a switch button on the terminal device to turn on the screen of the terminal device. Alternatively, the terminal device is in a static state, and when the user picks up the terminal device, the screen of the terminal device is turned on, and the method of turning on the terminal device is not limited in the embodiment of the present application.
系统管理模块可以检测终端设备亮屏,进而响应于检测到终端设备亮屏,向USB模块发送第二消息,以通知USB模块终端设备退出长待机状态。在一种实施例中,系统管理模块可以基于来自系统的广播消息,确定终端设备是否亮屏。其中,当系统管理模块接收到 来自系统的亮屏广播消息,可以确定终端设备亮屏。The system management module may detect that the screen of the terminal device is on, and then in response to detecting that the screen of the terminal device is on, send a second message to the USB module to notify the USB module that the terminal device exits the long standby state. In an embodiment, the system management module may determine whether the screen of the terminal device is turned on based on a broadcast message from the system. Wherein, when the system management module receives a screen bright broadcast message from the system, it can determine that the terminal device bright screen.
其中,系统管理模块可以基于陀螺仪、加速度传感器等采集的运动状态数据,获取终端设备处于运动状态或静止状态。应理解,终端设备运动指的是:终端设备从静止状态切换为运动状态。应理解,当系统管理模块检测到终端设备运动或亮屏时,AP退出休眠,进入工作状态。Wherein, the system management module can obtain whether the terminal device is in a motion state or a static state based on motion state data collected by a gyroscope, an acceleration sensor, and the like. It should be understood that the movement of the terminal device means that the terminal device switches 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 the screen is turned on, the AP exits the dormancy state and enters the working state.
S604,USB模块从休眠状态切换至工作状态。S604, the USB module switches from the dormant state to the working state.
USB模块接收到来自系统管理模块的第二消息,可以从休眠状态切换至工作状态。换句话说,USB模块可以响应于接收到来自系统管理模块的第二消息,执行持锁。After receiving the second message from the system management module, the USB module can switch from the dormant state to the working state. In other words, the USB module may perform locking in response to receiving the second message from the system management module.
本申请实施例中,在终端设备亮屏或者运动时,终端设备中的AP可以退出休眠,AP中的USB模块可以从休眠状态切换至工作状态,终端设备可以正常工作。In the embodiment of the present application, when the terminal device turns on the screen or moves, the AP in the terminal device can exit the dormancy state, the USB module in the AP can switch from the dormant state to the working state, and the terminal device can work normally.
在一种实施例中,参照图7,上述S602可以替换为S602A-S604A。In an embodiment, referring to FIG. 7 , the above S602 may be replaced with S602A-S604A.
S602A,USB模块检测终端设备是否执行完与外部设备相关的业务;若是,执行S604A,若否,执行S603A。S602A, the USB module detects whether the terminal device has finished performing services related to the external device; if yes, execute S604A, if not, execute S603A.
参照如上实施例中的相关描述,在一种实施例中,USB模块可以自己检测终端设备是否执行完与外部设备相关的业务。或者,在一种实施例中,USB模块检测终端设备是否执行完与外部设备相关的业务的方式可以为:USB模块是否接收到来自外部设备的处理器的业务完成的信号。其中,若USB模块已接收到来自外部设备的处理器的业务完成的信号,则确定业务已完成,若USB模块未接收到来自外部设备的处理器的业务完成的信号,则确定业务未完成。Referring to the relevant descriptions in the above embodiments, in one embodiment, the USB module can detect whether the terminal device has finished executing services related to the external device by itself. Alternatively, in an embodiment, the manner in which the USB module detects whether the terminal device finishes executing the service related to the external device may be: whether the USB module receives a signal from the processor of the external device that the service is completed. Wherein, if the USB module has received the service completion signal from the processor of the external device, it is determined that the service has been completed; if the USB module has not received the service completion signal from the processor of the external device, it is determined that the service is not completed.
S603A,USB模块持锁,且响应于检测到终端设备执行完与外部设备相关的业务,进行休眠。S603A, the USB module is locked, and goes to sleep in response to detecting that the terminal device finishes executing services related to the external device.
当业务未完成时,USB会持锁,以保证终端设备继续执行与外部设备相关的业务。如此,当USB模块检测到终端设备执行完与外部设备相关的业务时,可以释放持锁,进行休眠。其中,USB模块检测到终端设备执行完与外部设备相关的业务,可以参照上述实施例的相关描述。When the service is not completed, the USB will hold a lock to ensure that the terminal device continues to perform services related to the external device. In this way, when the USB module detects that the terminal device has finished performing services related to the external device, it can release the lock and go to sleep. Wherein, the USB module detects that the terminal device finishes executing services related to the external device, and reference may be made to relevant descriptions in the foregoing embodiments.
S604A,进行休眠。S604A, go to sleep.
在一种实施例中,“是否执行完”可以替换为“是否完成”。相应的,“执行完”可以替换为“完成”,“未执行完”可以替换为“未完成”。In one embodiment, "whether the execution is finished" can be replaced with "whether it is completed". Correspondingly, "executed" can be replaced with "completed", and "not executed" can be replaced with "not completed".
本申请实施例中,USB模块在接收到来自系统管理模块的第一消息时,可以检测业务是否完成,USB模块可以在检测到业务完成后释放持锁,进行休眠,进而可以降低终端设备的功耗。In the embodiment of the present application, when the USB module receives the first message from the system management module, it can detect whether the service is completed, and the USB module can release the lock after detecting that the service is completed, and go to sleep, thereby reducing the function of the terminal device. consumption.
参照图8,在一种实施例中,终端设备中可以单独设置系统管理模块、USB模块,也可以将系统管理模块和USB模块集成为一体设置,本申请实施例对此不作限制,但无论哪种设置形式,终端设备均可以执行如下步骤:Referring to FIG. 8 , in one embodiment, the system management module and the USB module can be set separately in the terminal device, or the system management module and the USB module can be integrated and set as one. This embodiment of the present application does not limit this, but no matter which For each setting form, the terminal device can perform the following steps:
S801,终端设备检测外部设备通过Type-C与终端设备连接,终端执行与外部设备相关的业务。S801. The terminal device detects that an external device is connected to the terminal device through the Type-C, and the terminal executes services related to the external device.
与外部设备相关的业务可以包括:终端设备为外部设备充电,或者终端设备与外部设 备之间传输数据,其中,终端设备与外部设备之间传输数据可以为:终端设备向外部设备发送数据,或者外部设备向终端设备发送数据。Services related to external devices may include: the terminal device charges the external device, or transmits data between the terminal device and the external device, where the data transmission 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,终端设备检测终端设备的运动状态和屏幕状态。S802. The terminal device detects a motion state and a screen state of the terminal device.
在一种实施例中,终端设备的运动状态可以包括:静止状态和非静止状态。应理解,上述实施例中的终端设备处于运动状态可以理解为:终端设备处于非静止状态。In an embodiment, the motion state of the terminal device may include: a static state and a non-stationary state. It should be understood that the terminal device in the moving state in the foregoing embodiment may be understood as: the terminal device is in a non-stationary state.
S803,终端设备基于终端设备的运动状态和屏幕状态,响应于检测到终端设备处于长待机状态,且执行完与外部设备相关的业务,控制AP休眠。S803. Based on the motion state and screen state of the terminal device, the terminal device controls the AP to sleep in response to detecting that the terminal device is in the long standby state and has finished executing services related to the external device.
在一种实施例中,终端设备控制AP休眠可以为:终端设备控制AP释放其中所有的进程。In an embodiment, the terminal device controlling the AP to sleep may be: the terminal device controlling the AP to release all processes therein.
在一种实施例中,AP无法休眠的原因是USB功能还在运行,其中USB功能可以包括但不限于:与外部设备进行传输数据或者为外部设备进行充电。因此上述S803可以替换为:终端设备基于终端设备的运动状态和屏幕状态,响应于检测到终端设备处于长待机状态,且执行完与外部设备相关的业务,则停止执行USB功能,使得AP休眠。In one embodiment, the reason why the AP cannot sleep is that the USB function is still running, where the USB function may include but not limited to: transmitting data with an external device or charging the external device. Therefore, the above S803 can be replaced by: the terminal device, based on the motion state and screen state of the terminal device, in response to detecting that the terminal device is in the long standby state and has finished executing services related to the external device, stops executing the USB function and makes the AP sleep.
在一种实施例中,参照上述实施例,执行USB功能的为AP中的USB模块,因此终端设备停止执行USB功能可以理解为:终端设备控制USB模块休眠。In one embodiment, referring to the foregoing embodiment, it is the USB module in the AP that executes the USB function. Therefore, stopping the execution of the USB function by the terminal device can be understood as: the terminal device controls the USB module to sleep.
S804,终端设备响应于检测到终端设备运动或者终端设备亮屏,控制AP退出休眠。S804. The terminal device controls the AP to exit dormancy in response to detecting the motion of the terminal device or turning on the screen of the terminal device.
其中,在终端设备运动时,AP需要基于终端设备的运动状态数据,获取终端设备的运动状态,因此,AP退出休眠。在终端设备亮屏时,AP退出休眠,且USB模块可以接收来自系统管理模块的第二消息,USB模块从休眠状态切换至工作状态。Wherein, when the terminal device is in motion, the AP needs to obtain the motion state of the terminal device based on the motion state data of the terminal device, therefore, the AP exits dormancy. When the screen of the terminal device is on, the AP exits the sleep state, and the USB module can receive the second message from the system management module, and the USB module switches from the sleep state to the working state.
在一种实施例中,终端设备运动可以理解为:终端设备从静止状态切换至非静止状态。In an embodiment, the movement of the terminal device may be understood as: the terminal device switches from a stationary state to a non-stationary state.
如上,终端设备可以集成系统管理模块、USB模块的功能,以实现终端设备在长待机状态时,控制USB模块休眠,以达到降低终端设备的功耗的目的。图8所示的示例,可以参照上述实施例的相关描述。As above, the terminal device can integrate the functions of the system management module and the USB module, so as to control the USB module to sleep when the terminal device is in the long standby state, so as to reduce the power consumption of the terminal device. For the example shown in FIG. 8 , reference may be made to relevant descriptions of the foregoing embodiments.
在一种实施例中,本申请实施例提供一种终端设备,所述终端设备包括应用处理器AP和第一Type-C接口;所述AP,用于:当所述终端设备通过所述第一Type-C接口、外部设备的第二Type-C接口与所述外部设备连接时,执行与所述外部设备相关的业务;响应于检测到所述终端设备处于长待机状态,检测所述终端设备是否完成所述业务;响应于检测到所述终端设备完成所述业务,进行休眠。In an embodiment, the embodiment of the present application provides a terminal device, the terminal device includes an application processor AP and a first Type-C interface; the AP is configured to: when the terminal device passes through the first Type-C interface When a Type-C interface and the second Type-C interface of the external device are connected to the external device, perform services related to the external device; in response to detecting that the terminal device is in a long standby state, detect the terminal Whether the device completes the service; in response to detecting that the terminal device completes the service, go to sleep.
在一种可能的实现方式中,所述AP包括USB模块,所述USB模块用于管理所述业务,所述AP,具体用于:控制所述USB模块休眠,以使所述AP休眠。In a possible implementation manner, the AP includes a USB module configured to manage the service, and the AP is specifically configured to: control the USB module to sleep, so that the AP sleeps.
在一种可能的实现方式中,所述AP,具体用于:检测所述终端设备的运动状态和屏幕状态,所述运动状态包括:静止状态和非静止状态,所述屏幕状态包括:灭屏状态和亮屏状态;响应于检测到所述终端设备处于灭屏状态,且灭屏时长大于或等于预设时长,以及所述终端设备处于静止状态,确定所述终端设备处于长待机状态。In a possible implementation manner, the AP is specifically configured to: detect a motion state and a screen state of the terminal device, the motion state includes: a static state and a non-stationary state, and the screen state includes: an off screen state and bright screen state; in response to detecting that the terminal device is in the off-screen state, and the off-screen duration is greater than or equal to a preset duration, and that the terminal device is in a static state, it is determined that the terminal device is in a long standby state.
在一种可能的实现方式中,终端设备还包括:收发器。所述AP,具体用于:基于是否接收到来自所述外部设备的业务完成的信号,确定所述终端设备是否完成所述业务;若收发器接收到来自所述外部设备的所述信号,则确定所述终端设备完成所述业务;若收发器未接收到来自所述外部设备的所述信号,则确定所述终端设备未完成所述业务。In a possible implementation manner, the terminal device further includes: a transceiver. The AP is specifically configured to: determine whether the terminal device completes the service based on whether the service completion signal from the external device is received; if the transceiver receives the signal from the external device, then Determine that the terminal device has completed the service; if the transceiver does not receive the signal from the external device, determine that the terminal device has not completed the service.
在一种可能的实现方式中,所述第一Type-C接口包括第一功能扩展引脚,所述第二Type-C接口包括第二功能扩展引脚,当所述终端设备通过所述第一Type-C接口、所述第二Type-C接口与所述外部设备连接时,所述第一功能扩展引脚和所述第二功能扩展引脚连接。In a possible implementation manner, the first Type-C interface includes a first function extension pin, and the second Type-C interface includes a second function extension pin. When the terminal device passes through the first When a Type-C interface and the second Type-C interface are connected to the external device, the first function expansion pin is connected to the second function expansion pin.
所述收发器,还用于基于所述第一功能扩展引脚,接收来自所述第二功能扩展引脚的所述信号。The transceiver is further configured to receive the signal from the second function expansion pin based on the first function expansion pin.
在一种可能的实现方式中,所述业务包括:所述终端设备为所述终端设备充电,或者所述终端设备和所述外部设备之间传输数据。In a possible implementation manner, the service includes: the terminal device charging the terminal device, or transmitting data between the terminal device and the external device.
在一种可能的实现方式中,当所述传输数据为所述终端设备接收来自所述外部设备的数据时,所述数据包括至少一个数据流。所述AP,具体用于:在收发器接收来自所述外部设备的数据流后的预设时长内,检测是否存在来自所述外部设备的数据流。若存在,则确定所述终端设备未完成所述业务;若不存在,则确定所述终端设备完成所述业务。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: detect whether there is a data stream from the external device within a preset time period after the transceiver receives the data stream from the external device. If it exists, it is determined that the terminal device has not completed the service; if it does not exist, it is determined that the terminal device has completed the service.
在一种可能的实现方式中,当所述传输数据为所述终端设备向所述外部设备发送数据时,所述数据包括至少一个数据流。所述AP,具体用于:基于数据流的标识,检测是否已发送所有的数据流;若是,则确定所述终端设备完成所述业务;若否,则确定所述终端设备未完成所述业务。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 used to: detect whether all data streams have been sent based on the identification of the data stream; if so, determine that the terminal device has completed the service; if not, determine that the terminal device has not completed the service .
在一种可能的实现方式中,所述AP,还用于:响应于检测到所述终端设备亮屏或运动,控制所述AP退出休眠。In a possible implementation manner, the AP is further configured to: in response to detecting that the terminal device turns on or moves, controls the AP to exit dormancy.
在一种实施例中,本申请实施例提供一种外部设备,包括:处理器、收发器和第二Type-C接口;所述处理器,用于当所述外部设备通过所述第二Type-C接口、终端设备的第一Type-C接口与所述终端设备连接时,检测所述终端设备是否完成与所述外部设备相关的业务;所述收发器,用于响应于检测到所述终端设备完成所述业务,向所述终端设备发送业务完成的信号。In one embodiment, the embodiment of the present application provides an external device, including: a processor, a transceiver, and a second Type-C interface; - When the C interface and the first Type-C interface of the terminal device are connected to the terminal device, it is detected whether the terminal device completes the business related to the external device; the transceiver is used to respond to the detection of the The terminal device completes the service, and sends a service completion signal to the terminal device.
在一种可能的实现方式中,所述业务包括:所述终端设备为所述终端设备充电,或者所述终端设备和所述外部设备之间传输数据。In a possible implementation manner, the service includes: the terminal device charging the terminal device, or transmitting data between the terminal device and the external device.
在一种可能的实现方式中,当所述业务包括所述终端设备为所述终端设备充电时,所述处理器,具体用于:检测所述外部设备的电量是否达到预设电量,以检测所述终端设备是否完成所述业务;若所述电量达到所述预设电量,则确定所述终端设备完成所述业务;若所述电量小于所述预设电量,则确定所述终端设备未完成所述业务。In a possible implementation manner, when the service includes charging the terminal device by the terminal device, the processor is specifically configured to: detect whether the power of the external device reaches a preset power, to detect Whether the terminal device completes the service; if the power reaches the preset power, it is determined that the terminal device completes the business; if the power is less than the preset power, it is determined that the terminal device has not Complete said business.
在一种可能的实现方式中,当所述传输数据为所述外部设备接收来自所述终端设备的数据时,所述数据包括至少一个数据流。所述处理器,具体用于:在收发器接收来自所述终端设备的数据流后的预设时长内,检测是否存在来自所述终端设备的数据流;若存在,则确定所述终端设备未完成所述业务;若不存在,则确定所述终端设备完成所述业务。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: within a preset period of time after the transceiver receives the data stream from the terminal device, detect whether there is a data stream from the terminal device; if there is, determine that the terminal device is not Complete the service; if it does not exist, determine that the terminal device 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: detect whether all data streams have been sent based on the identifier of the data stream; if yes, determine that the terminal device has completed the service; if not, determine that the terminal device has not completed the service. business.
在一种可能的实现方式中,所述第一Type-C接口包括第一功能扩展引脚,所述第二Type-C接口包括第二功能扩展引脚,当所述外部设备通过所述第二Type-C接口、所述第 一Type-C接口与所述终端设备连接时,所述第一功能扩展引脚和所述第二功能扩展引脚连接。In a possible implementation manner, the first Type-C interface includes a first function expansion pin, and the second Type-C interface includes a second function expansion pin. When the external device passes through the first When two Type-C interfaces and the first Type-C interface are connected to the terminal device, the first function expansion pin is connected to the second function expansion pin.
所述收发器,还用于通过所述第二功能扩展引脚,向所述第一功能扩展引脚发送所述信号。The transceiver is further configured to send the signal to the first function expansion pin through the second function expansion pin.
应理解,本申请实施例中的终端设备能够执行上述实施例中的终端设备的动作,外部设备能够执行上述实施例中的外部设备的动作,进而达到与上述实施例相同的技术效果,在此不做赘述。It should be understood that the terminal device in the embodiment of the present application can perform the actions of the terminal device in the above-mentioned embodiment, and the external device can perform the actions of the external device in the above-mentioned embodiment, thereby achieving the same technical effect as the above-mentioned embodiment, here I won't go into details.
在一种实施例中,本申请实施例提供一种降低终端设备功耗的系统,该系统可以包括如上实施例中的终端设备和外部设备,其中,终端设备能够执行上述实施例中的终端设备的动作,外部设备能够执行上述实施例中的外部设备的动作,进而达到与上述实施例相同的技术效果。In an embodiment, an embodiment of the present application provides a system for reducing power consumption of a terminal device. The system may include the terminal device and the external device in the above embodiment, wherein the terminal device can execute the terminal device in the above embodiment. The actions of the external device can execute the actions of the external device in the above-mentioned embodiment, and then achieve the same technical effect as that of the above-mentioned embodiment.
在一种实施例中,本申请实施例提供的终端设备以及外部设备,还包括存储器。下述以终端设备为例进行说明,存储器和收发器可以耦合至处理器,处理器控制收发器执行上述终端设备的收发动作,以实现终端设备与外部设备之间的交互。存储器可以包含高速随机存取存储器(random-access memory,RAM),也可以包括非易失性存储器(non-volatile memory,NVM),例如至少一个磁盘存储器,存储器中可以存储各种指令,以用于完成各种处理功能以及实现本申请的方法步骤。收发器可以集成在终端设备的收发信机中,也可以为终端设备上独立设置的收发天线。在本申请实施例中,上述存储器用于存储计算机可执行程序代码,程序代码包括指令;当处理器终端设备执行指令时,指令使终端设备的处理器终端设备执行上述方法实施例中的动作,其实现原理和技术效果类似,在此不再赘述。可选的,本申请涉及的终端设备还可以包括:电源、通信总线以及通信端口。通信总线用于实现元件之间的通信连接。上述通信端口用于实现终端设备与其他外设之间的连接通信。In an embodiment, the terminal device and the external device provided in the embodiments of the present application further include a memory. The following uses a terminal device as an example for illustration. 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 high-speed random-access memory (random-access memory, RAM), and may also include a non-volatile memory (non-volatile memory, NVM), such as at least one disk memory, and various instructions may be stored in the memory for use To complete various processing functions and implement the method steps of the present application. The transceiver may be integrated in the transceiver of the terminal device, or may be a transceiver antenna independently set on the terminal device. In the embodiment of the present application, the above-mentioned memory is used to store computer-executable program codes, and the program codes include instructions; when the processor terminal device executes the instructions, the instructions cause the processor terminal device of the terminal device to perform the actions in the above-mentioned method embodiments, The implementation principles and technical effects are similar, and will not be repeated here. Optionally, the terminal device involved in this application may further include: a power supply, a communication bus, and a communication port. The communication bus is used to realize the communication connection between the components. The above-mentioned communication port is used to realize connection and communication between the terminal device and other peripheral devices.
需要说明的是,以上这些模块可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个专用集成电路(application specific integrated circuit,ASIC),或,一个或多个微处理器(digital signal processor,DSP),或,一个或者多个现场可编程门阵列(field programmable gate array,FPGA)等。再如,当以上某个模块通过处理元件调度程序代码的形式实现时,该处理元件可以是通用处理器,例如中央处理器(central processing unit,CPU)或其它可以调用程序代码的处理器。再如,这些模块可以集成在一起,以片上系统(system-on-a-chip,SOC)的形式实现。It should be noted that the above modules may be one or more integrated circuits configured to implement the above method, for example: one or more application specific integrated circuits (ASIC), or one or more microprocessors device (digital signal processor, DSP), or, one or more field programmable gate arrays (field programmable gate array, FPGA), etc. For another example, when one of the above modules is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (central processing unit, CPU) or other processors that can call program codes. For another example, these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个 可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. A computer can be a general purpose computer, special purpose computer, computer network, or other programmable device. Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, etc. integrated with one or more available media. Available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)).
本文中的术语“多个”是指两个或两个以上。本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系;在公式中,字符“/”,表示前后关联对象是一种“相除”的关系。The term "plurality" herein means two or more. The term "and/or" in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist simultaneously, and there exists alone B these three situations. In addition, the character "/" in this paper generally indicates that the contextual objects are an "or" relationship; in the formula, the character "/" indicates that the contextual objects are a "division" relationship.
可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。在本申请的实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请的实施例的实施过程构成任何限定。It can be understood that the various numbers involved in the embodiments of the present application are only for convenience of description, and are not used to limit the scope of the embodiments of the present application. In the embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the order of execution, and the execution order of the processes should be determined by their functions and internal logic, and should not constitute a component of the implementation process of the embodiments of the present application. Any restrictions.

Claims (12)

  1. 一种降低终端设备功耗的方法,其特征在于,应用于终端设备,所述终端设备包括应用处理器AP和第一Type-C接口,外部设备包括第二Type-C接口,所述方法包括:A method for reducing power consumption of a terminal device, characterized in that it is applied to a terminal device, the terminal device includes an application processor AP and a first Type-C interface, and the external device includes a second Type-C interface, and the method includes :
    当所述终端设备通过所述第一Type-C接口、所述第二Type-C接口与所述外部设备连接时,执行与所述外部设备相关的业务;When the terminal device is connected to the external device through the first Type-C interface and the second Type-C interface, execute services related to the external device;
    响应于检测到所述终端设备处于长待机状态,检测所述终端设备是否完成所述业务;In response to detecting that the terminal device is in a long standby state, detecting whether the terminal device completes the service;
    响应于检测到所述终端设备完成所述业务,控制所述AP休眠。In response to detecting that the terminal device completes the service, controlling the AP to sleep.
  2. 根据权利要求1所述的方法,其特征在于,所述AP包括USB模块,所述USB模块用于管理所述业务,所述控制所述AP休眠,包括:The method according to claim 1, wherein the AP includes a USB module, the USB module is used to manage the service, and the controlling the AP to sleep includes:
    控制所述USB模块休眠,以使所述AP休眠。controlling the USB module to sleep, so that the AP sleeps.
  3. 根据权利要求1或2所述的方法,其特征在于,所述检测到所述终端设备处于长待机状态,包括: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 screen state of the terminal device, the motion state includes: a static state and a non-stationary state, and the screen state includes: an off-screen state and a bright-screen state;
    响应于检测到所述终端设备处于灭屏状态,且灭屏时长大于或等于预设时长,以及所述终端设备处于静止状态,确定所述终端设备处于长待机状态。In response to detecting that the terminal device is in a screen-off state, and the screen-off time is greater than or equal to a preset time length, and that the terminal device is in a static state, it is determined that the terminal device is in a long standby state.
  4. 根据权利要求1-3中任一项所述的方法,其特征在于,所述检测所述终端设备是否完成所述业务,包括:The method according to any one of claims 1-3, wherein the detecting whether the terminal device completes the service comprises:
    基于是否接收到来自所述外部设备的业务完成的信号,确定所述终端设备是否完成所述业务;determining whether the terminal device completes the service based on whether a service completion signal from the external device is received;
    若接收到来自所述外部设备的所述信号,则确定所述终端设备完成所述业务;If the signal from the external device is received, determine that the terminal device completes the service;
    若未接收到来自所述外部设备的所述信号,则确定所述终端设备未完成所述业务。If the signal from the external device is not received, it is determined that the terminal device has not completed the service.
  5. 根据权利要求4所述的方法,其特征在于,所述第一Type-C接口包括第一功能扩展引脚,所述第二Type-C接口包括第二功能扩展引脚,当所述终端设备通过所述第一Type-C接口、所述第二Type-C接口与所述外部设备连接时,所述第一功能扩展引脚和所述第二功能扩展引脚连接;The method according to claim 4, wherein the first Type-C interface includes a first function extension pin, and the second Type-C interface includes a second function extension pin, when the terminal device When connecting to the external device through the first Type-C interface and the second Type-C interface, the first function expansion pin is connected to the second function expansion pin;
    所述接收到来自所述外部设备的所述信号,包括:Said receiving said signal from said external device includes:
    基于所述第一功能扩展引脚,接收来自所述第二功能扩展引脚的所述信号。The signal from the second function expansion pin is received based on the first function expansion pin.
  6. 根据权利要求1-5中任一项所述的方法,其特征在于,所述业务包括:所述终端设备为所述终端设备充电,或者所述终端设备和所述外部设备之间传输数据。The method according to any one of claims 1-5, wherein the service includes: charging the terminal device by the terminal device, or transmitting data between the terminal device and the external device.
  7. 根据权利要求6所述的方法,其特征在于,当所述传输数据为所述终端设备接收来自所述外部设备的数据时,所述数据包括至少一个数据流,所述检测所述终端设备是否完成所述业务,包括:The method according to claim 6, wherein 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 detecting whether the terminal device Complete the business described, including:
    在接收来自所述外部设备的数据流后的预设时长内,检测是否存在来自所述外部设备的数据流;Detecting whether there is a data stream from the external device within a preset time period after receiving the data stream from the external device;
    若存在,则确定所述终端设备未完成所述业务;If it exists, determine that the terminal device has not completed the service;
    若不存在,则确定所述终端设备完成所述业务。If not, it is determined that the terminal device completes the service.
  8. 根据权利要求6所述的方法,其特征在于,当所述传输数据为所述终端设备向所述外部设备发送数据时,所述数据包括至少一个数据流,所述检测所述终端设备是否完成所 述业务,包括:The method according to claim 6, wherein when the transmission data is data sent by the terminal device to the external device, the data includes at least one data stream, and the detection of whether the terminal device is completed Said business, including:
    基于数据流的标识,检测是否已发送所有的数据流;Based on the identification of the data stream, detect whether all the data streams have been sent;
    若是,则确定所述终端设备完成所述业务;If yes, determine that the terminal device completes the service;
    若否,则确定所述终端设备未完成所述业务。If not, it is determined that the terminal device has not completed the service.
  9. 根据权利要求1-8中任一项所述的方法,其特征在于,所述控制所述AP休眠之后,还包括:The method according to any one of claims 1-8, wherein after controlling the AP to sleep, further comprising:
    响应于检测到所述终端设备亮屏或运动,控制所述AP退出休眠。In response to detecting that the screen of the terminal device turns on or moves, the AP is controlled to exit dormancy.
  10. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    当所述终端设备通过所述第一Type-C接口、所述第二Type-C接口与所述外部设备连接时,执行与所述外部设备相关的业务;When the terminal device is connected to the external device through the first Type-C interface and the second Type-C interface, perform services related to the external device;
    响应于检测到所述终端设备处于长待机状态,检测所述终端设备是否完成所述业务;In response to detecting that the terminal device is in a long standby state, detecting whether the terminal device completes the service;
    响应于检测到所述终端设备完成所述业务,控制所述AP休眠;controlling the AP to sleep in response to detecting that the terminal device completes the service;
    所述AP包括USB模块,所述USB模块用于管理所述业务;所述检测所述终端设备是否完成所述业务,包括:The AP includes a USB module, and the USB module is used to manage the service; the detecting whether the terminal device completes the service includes:
    所述USB模块检测所述终端设备基于是否接收到来自所述外部设备的业务完成的信号,确定所述终端设备是否完成所述业务;The USB module detects whether the terminal device completes the service based on whether it receives a service completion signal from the external device;
    若所述USB模块接收到来自所述外部设备的所述信号,则确定所述终端设备完成所述业务;If the USB module receives the signal from the external device, then determine that the terminal device completes the service;
    若所述USB模块未接收到来自所述外部设备的所述信号,则确定所述终端设备未完成所述业务。If the USB module does not receive the signal from the external device, it is determined that the terminal device has not completed the service.
  11. 一种终端设备,其特征在于,所述终端设备包括应用处理器AP和第一Type-C接口;A terminal device, characterized in that the terminal device includes an application processor AP and a first Type-C interface;
    所述AP,用于:The AP for:
    当所述终端设备通过所述第一Type-C接口、外部设备的第二Type-C接口与所述外部设备连接时,执行与所述外部设备相关的业务;When the terminal device is connected to the external device through the first Type-C interface and the second Type-C interface of the external device, perform services related to the external device;
    响应于检测到所述终端设备处于长待机状态,检测所述终端设备是否完成所述业务;In response to detecting that the terminal device is in a long standby state, detecting whether the terminal device completes the service;
    响应于检测到所述终端设备完成所述业务,进行休眠。Sleeping is performed in response to detecting that the terminal device completes the service.
  12. 一种计算机可读存储介质,其特征在于,所述计算机存储介质存储有计算机指令,当所述计算机指令被计算机执行时,使得所述计算机执行权利要求1-10中任一项所述的方法。A computer-readable storage medium, characterized in that the computer storage medium stores computer instructions, and when the computer instructions are executed by a computer, the computer executes the method according to any one of claims 1-10 .
PCT/CN2022/089658 2021-06-10 2022-04-27 Method for reducing power consumption of terminal device, and terminal device WO2022257639A1 (en)

Applications Claiming Priority (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
CN202110649614.2 2021-06-10

Publications (1)

Publication Number Publication Date
WO2022257639A1 true WO2022257639A1 (en) 2022-12-15

Family

ID=78787439

Family Applications (1)

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

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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103138342A (en) * 2013-01-29 2013-06-05 深圳市中远航科技有限公司 Wireless charging mobile power source
CN103208848A (en) * 2013-03-14 2013-07-17 深圳市中远航科技有限公司 Wireless charging power supply
CN104518526A (en) * 2013-09-26 2015-04-15 夏雪飞 Power bank with wireless charging function
CN107071162A (en) * 2017-03-30 2017-08-18 努比亚技术有限公司 Dormancy control system and its dormancy control method
US20190305580A1 (en) * 2015-03-10 2019-10-03 Samsung Electronics Co., Ltd. Method and apparatus for wireless charging
CN111050388A (en) * 2019-12-03 2020-04-21 Oppo广东移动通信有限公司 Doze mode control method, device, mobile terminal and storage medium
CN113766614A (en) * 2021-06-10 2021-12-07 荣耀终端有限公司 Method for reducing power consumption of terminal equipment and terminal equipment

Family Cites Families (5)

* 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
CN109193888B (en) * 2018-10-23 2024-04-02 珠海一微半导体股份有限公司 Wireless charging power supply system with Type-c interface and charging method
CN109286220B (en) * 2018-11-13 2021-05-07 Oppo(重庆)智能科技有限公司 Charging circuit, charging processing method, electronic device, and storage medium
CN110323808B (en) * 2019-07-30 2022-05-17 Oppo广东移动通信有限公司 Charging stop method, charging stop 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

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103138342A (en) * 2013-01-29 2013-06-05 深圳市中远航科技有限公司 Wireless charging mobile power source
CN103208848A (en) * 2013-03-14 2013-07-17 深圳市中远航科技有限公司 Wireless charging power supply
CN104518526A (en) * 2013-09-26 2015-04-15 夏雪飞 Power bank with wireless charging function
US20190305580A1 (en) * 2015-03-10 2019-10-03 Samsung Electronics Co., Ltd. Method and apparatus for wireless charging
CN107071162A (en) * 2017-03-30 2017-08-18 努比亚技术有限公司 Dormancy control system and its dormancy control method
CN111050388A (en) * 2019-12-03 2020-04-21 Oppo广东移动通信有限公司 Doze mode control method, device, mobile terminal and storage medium
CN113766614A (en) * 2021-06-10 2021-12-07 荣耀终端有限公司 Method for reducing power consumption of terminal equipment and terminal equipment

Also Published As

Publication number Publication date
CN113766614B (en) 2023-04-18
CN113766614A (en) 2021-12-07

Similar Documents

Publication Publication Date Title
WO2022257639A1 (en) Method for reducing power consumption of terminal device, and terminal device
US20230236650A1 (en) Low-Latency Low-Power Consumption Peripheral Device for Conferencing
WO2019179143A1 (en) Peripheral device, conference tool, conference tool system and wireless screen casting device
JP5335919B2 (en) USB remote wakeup
US9772653B2 (en) Mechanism for charging portable device with USB dock
US20200301497A1 (en) Power supply control method of intelligent lock, intelligent lock system and storage medium
CN109286770A (en) Terminal device and data communications method with USB Type-C interface
EP3780328B1 (en) Reverse charging device
WO2023179425A1 (en) Input device connection method, device, and system
US9781682B2 (en) Method for power-on control of mobile terminal
US20130103861A1 (en) Wake up state synchronization method between docked terminals and docking system using the same
WO2020253544A1 (en) Connector and second electronic device comprising same
JP7270719B2 (en) Terminal and Type C interface anti-corrosion method
TW201901459A (en) Method for controlling audio device and system thereof
KR100675841B1 (en) Universal serial bus apparatus and method for managing power in universal serial bus apparatus
CN107153621B (en) Equipment identification method and device
CN111752362A (en) Method, device and storage medium for preventing interface from being corroded
WO2023045683A1 (en) Charging control method, electronic device, and charging control system
CN108966079B (en) Control method and system of audio device
EP4173895A1 (en) Function conflict processing method and apparatus, and electronic device, and readable storage medium
CN220855652U (en) Docking station
WO2022161001A1 (en) Connection control method and device
WO2024046315A1 (en) Event processing method and apparatus for input device
US11971763B2 (en) Connector and wearable device
WO2023020496A1 (en) Display method, chip, and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22819241

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE