WiFi link sleep awakening method, electronic device and system

By establishing a WiFi direct link between wireless screen projection devices, using the customized 802.11 protocol and BLE connection, low-latency sleep and wake-up of the WiFi link are achieved, solving the problem of WiFi link energy efficiency and recovery delay when wireless screen projection service is suspended.

CN115243398BActive Publication Date: 2025-05-16NOKIA TECHNOLOGIES OY
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110438318.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-22
Publication Date
2025-05-16
Estimated Expiration
2041-04-22

AI Technical Summary

Technical Problem

When the wireless screen projection service is suspended, how to promptly make the WiFi link enter a low-power state, and wake up the WiFi link at low latency when the user operates the device again to restore the wireless screen projection service.

Method used

By establishing a wireless fidelity WiFi direct link between the first electronic device and the second electronic device, the link enters a sleep state by using the custom 802.11 action frame or beacon frame of the custom 802.11 protocol, parameters such as the number of sleep cycles, start time, duration and period are transmitted, so that the link enters a sleep state. When the user operates again, the message is transmitted through the Bluetooth Low Energy BLE connection or directed broadcast, and the wake-up mechanism is triggered and the WiFi link is awakened at low latency.

Benefits of technology

It realizes the fast sleep and energy saving of WiFi links when the wireless screen projection service is suspended; and low-latency wake-up when the user operates again, ensuring the rapid recovery of wireless screen projection service.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115243398B_ABST
    Figure CN115243398B_ABST
Patent Text Reader

Abstract

The present application provides a WiFi link sleep and wake-up method, electronic device and system, which relate to the field of short-range communication. A first electronic device and a second electronic device establish a WiFi direct link, the first electronic device is a GO of WiFi direct connection, and the second electronic device is a GC of WiFi direct connection. The second electronic device can send a first request message to the first electronic device to trigger the first electronic device to enable WiFi link sleep; when the wireless screen projection service is suspended, the WIFI link of the wireless screen projection enters a low power consumption state in time. When the WiFi direct link is dormant, the second electronic device can send a wake-up request message to the first electronic device to trigger the first electronic device to wake up the WiFi link; when the user operates the mobile phone or mobile screen again, the WIFI link exits the low power consumption state with low latency and quickly resumes the wireless screen projection service.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of short-range communications, and in particular to a WiFi link sleep and wake-up method, electronic device, and system. Background Art

[0002] With the development of wireless screen projection technology, its application is becoming more and more widespread. For example, users can wirelessly project the interface of their mobile phone to the display screen of a mobile screen, realizing multi-screen collaboration between the mobile phone and the mobile screen. The mobile phone and the mobile screen are connected via wireless fidelity (WiFi). The mobile phone is the source of wireless screen projection, and the mobile screen is the receiver of wireless screen projection.

[0003] In some scenarios, such as Figure 1A As shown in the figure, if the screen is turned off by pressing the power button or if no operation is performed for a long time, the wireless screen projection service is suspended. Figure 1B As shown, if the mobile screen is turned off by pressing the power button or if there is no operation for a long time, the wireless screen projection service will be suspended.

[0004] The wireless screen projection service is suspended, and the WIFI link used for wireless screen projection needs to enter a low-power state (i.e., sleep) to save energy. When the user operates the phone or mobile screen again (for example, presses the power button or picks up the mobile screen), the phone or mobile screen lights up; the WIFI link used for wireless screen projection needs to be awakened in time, exit the low-power state, and enter the working state to resume the wireless screen projection service.

[0005] How to make the WIFI link of wireless screen projection enter the low power consumption state in time when the wireless screen projection service is suspended; and how to make the WIFI link of wireless screen projection exit the low power consumption state with low latency when the user operates the mobile phone or mobile screen again; is a problem that needs to be solved. Summary of the invention

[0006] The embodiments of the present application provide a WiFi link sleep and wake-up method, electronic device and system, which can enable the WiFi link of the wireless screen projection to enter a low power consumption state in a timely manner when the wireless screen projection service is suspended; when the user operates the mobile phone or mobile screen again, the WiFi link of the wireless screen projection can exit the low power consumption state with low latency and quickly resume the wireless screen projection service.

[0007] In order to achieve the above objectives, this application adopts the following technical solutions:

[0008] In the first aspect, the present application provides a WiFi link sleep method, which is applied to a first electronic device, wherein the first electronic device and a second electronic device establish a wireless fidelity WiFi direct link, wherein the first electronic device is a group owner GO of the WiFi direct link, and the second electronic device is a group visitor GC of the WiFi direct link, and the method comprises: the first electronic device receives a first request message, wherein the first request message is used to trigger the first electronic device to enable WiFi link sleep; the first electronic device sends a first message to the second electronic device; the first message comprises at least one of the sleep cycle number, the sleep start time, the sleep duration, and the sleep cycle; the first electronic device enters WiFi link sleep according to at least one of the sleep cycle number, the sleep start time, the sleep duration, and the sleep cycle. Among them, the sleep cycle number indicates the number of times the WiFi link enters the sleep window during this sleep process, and within the sleep window, the WiFi link does not perform data transmission; the sleep start time indicates the starting time when the WiFi link enters the sleep window for the first time during this sleep process; the sleep duration indicates the duration of the sleep window during this sleep process of the WiFi link; and the sleep cycle indicates the time interval for the WiFi link to enter the sleep window during this sleep process.

[0009] In this method, when the second preset condition is met (for example, the GC screen is off), the GC triggers the GO to enable the WiFi direct link to sleep, without waiting for the GO to actively enable the WiFi direct link to sleep. The WiFi direct link can enter sleep faster, saving energy for the device.

[0010] In combination with the first aspect, in a possible design method, the first request message is a link layer message. For example, the first request message is a first management (action) frame. Among them, the first management (action) frame is a customized 802.11 protocol action frame. In a possible design method, the first request message is a service layer message. For example, the first request message is a pause screen projection request message, which is used to request to pause the transmission of wireless screen projection data.

[0011] In combination with the first aspect, in a possible design, the first message is a first beacon frame, and the number of sleep cycles in the first beacon frame is greater than 0. The number of sleep cycles greater than 0 indicates that WiFi direct link sleep is enabled.

[0012] In combination with the first aspect, in a possible design, the first electronic device sending the first message to the second electronic device includes: the first electronic device sending the first message to the second electronic device in the next beacon frame period after receiving the first request message.

[0013] In the second aspect, the present application provides a WiFi link sleep method, which is applied to a second electronic device, the second electronic device and the first electronic device establish a wireless fidelity WiFi direct link, the first electronic device is a group owner GO of the WiFi direct connection, and the second electronic device is a group visitor GC of the WiFi direct connection, the method comprising: the second electronic device sends a first request message to the first electronic device, the first request message is used to trigger the first electronic device to enable WiFi link sleep; the second electronic device receives the first message; the first message includes at least one of the sleep cycle number, the sleep start time, the sleep duration, and the sleep cycle; the second electronic device enters WiFi link sleep according to at least one of the sleep cycle number, the sleep start time, the sleep duration, and the sleep cycle. Among them, the sleep cycle number indicates the number of times the WiFi link enters the sleep window during this sleep process, and within the sleep window, the WiFi link does not transmit data; the sleep start time indicates the starting time when the WiFi link enters the sleep window for the first time during this sleep process; the sleep duration indicates the duration of the sleep window during this sleep process of the WiFi link; the sleep cycle indicates the time interval for the WiFi link to enter the sleep window during this sleep process.

[0014] In this method, when the second preset condition is met (for example, the GC screen is off), the GC triggers the GO to enable the WiFi direct link to sleep, without waiting for the GO to actively enable the WiFi direct link to sleep. The WiFi direct link can enter sleep faster, saving energy for the device.

[0015] In combination with the second aspect, in a possible design method, the first request message is a link layer message. For example, the first request message is a first management (action) frame. Among them, the first management (action) frame is a customized 802.11 protocol action frame. In a possible design method, the first request message is a service layer message. For example, the first request message is a pause screen projection request message, which is used to request to pause the transmission of wireless screen projection data.

[0016] In combination with the second aspect, in a possible design, the first message is a first beacon frame, and the number of sleep cycles in the first beacon frame is greater than 0. The number of sleep cycles greater than 0 indicates that WiFi direct link sleep is enabled.

[0017] In conjunction with the second aspect, in a possible design, before the second electronic device sends the first request message to the first electronic device, the second electronic device turns off the screen. In other words, when the second electronic device turns off the screen, it sends the first request message to the first electronic device, triggering the first electronic device (GO) to enable WiFi direct link sleep.

[0018] In a third aspect, the present application provides a WiFi link wake-up method, which is applied to a first electronic device, where the first electronic device and a second electronic device establish a wireless fidelity WiFi direct link, and the WiFi direct link is dormant. The method includes: the first electronic device receives a wake-up request message, and the wake-up request message is used to trigger the first electronic device to wake up the WiFi link; the first electronic device sends a wake-up message to the second electronic device; the wake-up message is used to notify the second electronic device to exit the WiFi link dormancy; the first electronic device exits the WiFi link dormancy.

[0019] In this method, when the fourth preset condition is met (for example, the GC screen is on), the GC triggers the GO to wake up the WiFi direct link without waiting for the GO to actively wake up the WiFi direct link; the GC can also actively wake up the WiFi direct link; and low-latency wake-up of the WiFi direct link can be achieved.

[0020] In combination with the third aspect, in a possible design, the method further includes: the first electronic device and the second electronic device establish a low-power Bluetooth BLE connection. In this way, the first electronic device receives a first BLE request message from the second electronic device through the BLE connection, and the first BLE request message includes first indication information, and the first indication information is used to trigger the first electronic device to wake up the WiFi link.

[0021] In one implementation, after the first electronic device and the second electronic device establish a BLE connection, the first electronic device is a BLE slave device and the second electronic device is a BLE master device. The second electronic device periodically sends a first BLE request message to the first electronic device. When the fourth preset condition is met, the second electronic device carries the first indication information in the first BLE request message sent to the first electronic device, which is used to trigger the first electronic device to wake up the WiFi link.

[0022] In another implementation, after the first electronic device and the second electronic device establish a BLE connection, when a fourth preset condition is met, the second electronic device sends a first BLE indication message to the first electronic device, and the first BLE indication message is used to trigger the first electronic device to wake up the WiFi link.

[0023] In this method, the first indication information (first BLE request message) is sent through the BLE connection, and the first indication information can also be successfully sent in the WiFi direct link sleep window. The sending of the first BLE request message is not restricted by the sleep window. Even if the sleep window is set for a long time, it does not affect the low-latency wake-up of the WiFi direct link. In addition, setting the sleep window duration longer can also reduce power consumption. In this way, power consumption can be reduced as much as possible, and low-latency wake-up of the WiFi direct link can be guaranteed.

[0024] In combination with the third aspect, in a possible design, the method also includes: the first electronic device and the second electronic device establish a low-power Bluetooth BLE connection, the first electronic device receives a first BLE response message through the BLE connection, the first BLE response message includes first indication information, and the first indication information is used to trigger the first electronic device to wake up the WiFi link; the first BLE response message is sent in response to a first BLE request message sent by the first electronic device to the second electronic device.

[0025] In one implementation, after the first electronic device and the second electronic device establish a BLE connection, the first electronic device is a BLE master device and the second electronic device is a BLE slave device. The first electronic device periodically sends a first BLE request message to the second electronic device. Each time the second electronic device receives the first BLE request message, it sends a first BLE response message to the first electronic device. When the fourth preset condition is met, the second electronic device carries the first indication information in the first BLE response message sent to the first electronic device, which is used to trigger the first electronic device to wake up the WiFi link.

[0026] In this method, the first indication information (first BLE response message) is sent via the BLE connection, and the first indication information can also be successfully sent in the WiFi direct link sleep window. The sending of the first BLE response message is not restricted by the sleep window. Even if the sleep window is set for a long time, it does not affect the low-latency wake-up of the WiFi direct link. In addition, setting the sleep window duration longer can also reduce power consumption. In this way, power consumption can be reduced as much as possible, and low-latency wake-up of the WiFi direct link can be guaranteed.

[0027] In combination with the third aspect, in a possible design, the wake-up request message is a low-power Bluetooth BLE directional broadcast message. In this method, the first electronic device and the second electronic device do not need to establish a BLE connection. GC triggers GO to wake up the WiFi direct link through BLE directional broadcast. In the sleep window of the WiFi direct link, the BLE directional broadcast message can also be sent successfully. In this way, GC can also actively trigger the wake-up of the WiFi direct link instead of waiting for GO to wake up the WiFi direct link; the delay in waking up the WiFi direct link is reduced, and the wireless screen projection service can be restored with low latency. Moreover, the sleep window duration can be set longer, which not only ensures reduced power consumption, but also does not affect the low-latency wake-up of the WiFi direct link.

[0028] In combination with the third aspect, in a possible design, the wake-up request message is a link layer message or a service layer message. The wake-up request message cannot be sent in the dormant window of the WiFi direct link, but can be successfully sent and received in the non-dormant window of the WiFi direct link. The method uses the non-dormant window in the low-power state of the WiFi direct link to send a wake-up request message to trigger the GO to wake up the WiFi direct link; even if the GO and GC do not support BLE, the GC can actively trigger the wake-up of the WiFi direct link.

[0029] In combination with the third aspect, in a possible design method, the first electronic device sending a wake-up message to the second electronic device includes: the first electronic device sending the wake-up message to the second electronic device in the next beacon frame period after receiving the wake-up request message.

[0030] In combination with the third aspect, in a possible design method, the wake-up message includes the number of sleep cycles; the number of sleep cycles indicates the number of times the WiFi link enters the sleep window during the current sleep process. Within the sleep window, the WiFi link does not transmit data; wherein, the number of sleep cycles in the wake-up message is 0, indicating exiting the low power consumption state of the WiFi direct link.

[0031] In a fourth aspect, the present application provides a WiFi link wake-up method, which is applied to a second electronic device, where the second electronic device and the first electronic device establish a wireless fidelity WiFi direct link, and the WiFi direct link is dormant. The method includes: the second electronic device sends a wake-up request message to the first electronic device, where the wake-up request message is used to trigger the first electronic device to wake up the WiFi link; the second electronic device receives the wake-up message; the wake-up message is used to notify the second electronic device to exit the WiFi link dormancy; in response to the wake-up message, the second electronic device exits the WiFi link dormancy.

[0032] In this method, when the fourth preset condition is met (for example, the GC screen is on), the GC triggers the GO to wake up the WiFi direct link without waiting for the GO to actively wake up the WiFi direct link; the GC can also actively wake up the WiFi direct link; and low-latency wake-up of the WiFi direct link can be achieved.

[0033] In combination with the fourth aspect, in a possible design, the method also includes: the first electronic device and the second electronic device establish a low-power Bluetooth BLE connection, the second electronic device sends a first BLE request message to the first electronic device through the BLE connection, the first BLE request message includes first indication information, and the first indication information is used to trigger the first electronic device to wake up the WiFi link.

[0034] In one implementation, after a first electronic device and a second electronic device establish a BLE connection, in response to receiving a first BLE request message through the BLE connection, the second electronic device sends a first BLE response message to the first electronic device through the BLE connection, and the first BLE response message includes first indication information, and the first indication information is used to trigger the first electronic device to wake up the WiFi link.

[0035] In another implementation, after the first electronic device and the second electronic device establish a BLE connection, when a fourth preset condition is met, the second electronic device sends a first BLE indication message to the first electronic device, and the first BLE indication message is used to trigger the first electronic device to wake up the WiFi link.

[0036] In this method, the first indication information (first BLE request message) is sent through the BLE connection, and the first indication information can also be successfully sent in the WiFi direct link sleep window. The sending of the first BLE request message is not restricted by the sleep window. Even if the sleep window is set for a long time, it does not affect the low-latency wake-up of the WiFi direct link. In addition, setting the sleep window duration longer can also reduce power consumption. In this way, power consumption can be reduced as much as possible, and low-latency wake-up of the WiFi direct link can be guaranteed.

[0037] In combination with the fourth aspect, in a possible design, the method also includes: a first electronic device and a second electronic device establish a Bluetooth low energy BLE connection, and in response to receiving a first BLE request message through the BLE connection, the second electronic device sends a first BLE response message to the first electronic device through the BLE connection, and the first BLE response message includes first indication information, and the first indication information is used to trigger the first electronic device to wake up the WiFi link.

[0038] In this method, the first indication information (first BLE response message) is sent via the BLE connection, and the first indication information can also be successfully sent in the WiFi direct link sleep window. The sending of the first BLE response message is not restricted by the sleep window. Even if the sleep window is set for a long time, it does not affect the low-latency wake-up of the WiFi direct link. In addition, setting the sleep window duration longer can also reduce power consumption. In this way, power consumption can be reduced as much as possible, and low-latency wake-up of the WiFi direct link can be guaranteed.

[0039] In combination with the fourth aspect, in a possible design, the wake-up request message is a low-power Bluetooth BLE directional broadcast message. In this method, the first electronic device and the second electronic device do not need to establish a BLE connection. GC triggers GO to wake up the WiFi direct link through BLE directional broadcast. In the sleep window of the WiFi direct link, the BLE directional broadcast message can also be sent successfully. In this way, GC can also actively trigger the wake-up of the WiFi direct link instead of waiting for GO to wake up the WiFi direct link; the delay in waking up the WiFi direct link is reduced, and the wireless screen projection service can be restored with low latency. Moreover, the sleep window duration can be set longer, which not only ensures reduced power consumption, but also does not affect the low-latency wake-up of the WiFi direct link.

[0040] In conjunction with the fourth aspect, in a possible design, the wake-up request message is a link layer message or a service layer message. The wake-up request message cannot be sent in the dormant window of the WiFi direct link, but can be successfully sent and received in the non-dormant window of the WiFi direct link. The method uses the non-dormant window in the low-power state of the WiFi direct link to send a wake-up request message to trigger the GO to wake up the WiFi direct link; even if the GO and GC do not support BLE, the GC can actively trigger the wake-up of the WiFi direct link.

[0041] In combination with the fourth aspect, in a possible design method, the wake-up message includes the number of sleep cycles; the number of sleep cycles indicates the number of times the WiFi link enters the sleep window during the current sleep process. Within the sleep window, the WiFi link does not transmit data; wherein the number of sleep cycles in the wake-up message is 0, indicating exiting the low power consumption state of the WiFi direct link.

[0042] In combination with the fourth aspect, in one possible design, before the second electronic device sends a wake-up request message to the first electronic device, the second electronic device turns on the screen.

[0043] In a fifth aspect, an embodiment of the present application provides an electronic device, which may include a processor and a memory. The processor is configured to support the electronic device to perform the corresponding functions in the above-mentioned first aspect or third aspect method. The memory is used to couple with the processor, which stores the necessary program instructions and data of the electronic device. In addition, the electronic device may also include a communication interface for supporting communication between the electronic device and other electronic devices. The communication interface may be a transceiver or a transceiver circuit.

[0044] In a sixth aspect, an embodiment of the present application provides an electronic device, which may include a processor and a memory. The processor is configured to support the electronic device to perform the corresponding functions in the second aspect or the fourth aspect method. The memory is used to couple with the processor, which stores the necessary program instructions and data of the electronic device. In addition, the electronic device may also include a communication interface for supporting communication between the electronic device and other electronic devices. The communication interface may be a transceiver or a transceiver circuit.

[0045] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes a method as described in any one of the above aspects and possible design methods thereof.

[0046] In an eighth aspect, an embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute a method as described in any one of the above aspects and possible design methods thereof.

[0047] An embodiment of the present application provides a communication system, including the electronic device for implementing the method described in the first aspect or the third aspect, and the electronic device for implementing the method described in the second aspect or the fourth aspect.

[0048] Any of the electronic devices or computer-readable storage media or computer program products or communication systems provided above are used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding schemes in the corresponding methods provided above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1A and Figure 1B A schematic diagram of a scenario applicable to the WiFi link sleep and wake-up method provided in an embodiment of the present application;

[0050] Figure 2 A schematic diagram of a system architecture applicable to the WiFi link sleep and wake-up method provided in an embodiment of the present application;

[0051] Figure 3 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0052] Figure 4 A schematic flow chart of a method for a WiFi direct link to enter and exit a low power consumption state in a WiFi link sleep wakeup method provided in an embodiment of the present application;

[0053] Figure 5A schematic flow chart of a method for enabling WiFi direct link sleep in a GO in a WiFi link sleep wakeup method provided in an embodiment of the present application;

[0054] Figure 6A-6C This is an example diagram of a scenario in which a GO enables a WiFi direct link sleep in the WiFi link sleep wakeup method provided in an embodiment of the present application;

[0055] Figure 7 A schematic flow chart of a method for GC to enable WiFi direct link sleep in a WiFi link sleep wakeup method provided in an embodiment of the present application;

[0056] Figure 8 A schematic flow chart of a method for GC to enable WiFi direct link sleep in a WiFi link sleep wakeup method provided in an embodiment of the present application;

[0057] Fig. 9 This is an example diagram of a GC enabling a WiFi direct link sleep scenario in the WiFi link sleep wakeup method provided in an embodiment of the present application;

[0058] Fig.10 A schematic flow chart of a method for waking up a WiFi direct link by GO in a method for waking up a WiFi link from sleep mode provided in an embodiment of the present application;

[0059] Fig.11 This is an example diagram of a scenario in which a GO wakes up a WiFi direct link in the WiFi link sleep wakeup method provided in an embodiment of the present application;

[0060] Fig.12 A schematic diagram of the process of GC waking up a WiFi direct link in the WiFi link sleep waking up method provided in an embodiment of the present application;

[0061] Fig.13 A schematic diagram of the process of GC waking up a WiFi direct link in the WiFi link sleep waking up method provided in an embodiment of the present application;

[0062] Fig.14 This is an example diagram of a scenario in which a GC wakes up a WiFi direct link in the WiFi link sleep wakeup method provided in an embodiment of the present application;

[0063] Fig.15 A schematic diagram of the process of GC waking up a WiFi direct link in the WiFi link sleep waking up method provided in an embodiment of the present application;

[0064] Fig.16 This is an example diagram of a scenario in which a GC wakes up a WiFi direct link in the WiFi link sleep wakeup method provided in an embodiment of the present application;

[0065] Fig.17A schematic diagram of the process of GC waking up a WiFi direct link in the WiFi link sleep waking up method provided in an embodiment of the present application;

[0066] Fig.18 This is an example diagram of a scenario in which a GC wakes up a WiFi direct link in the WiFi link sleep wakeup method provided in an embodiment of the present application;

[0067] Fig.19 A schematic diagram of the process of GC waking up a WiFi direct link in the WiFi link sleep waking up method provided in an embodiment of the present application;

[0068] Fig. 20 This is an example diagram of a scenario in which a GC wakes up a WiFi direct link in the WiFi link sleep wakeup method provided in an embodiment of the present application;

[0069] Fig.21 A schematic diagram of the process of GC waking up a WiFi direct link in the WiFi link sleep waking up method provided in an embodiment of the present application;

[0070] Fig. 22 This is an example diagram of a scenario in which a GC wakes up a WiFi direct link in the WiFi link sleep wakeup method provided in an embodiment of the present application;

[0071] Fig.23 This is a scene example diagram of a WiFi link sleep wakeup method;

[0072] Fig.24A and Fig. 24B A scenario example diagram of a WiFi link sleep and wake-up method provided in an embodiment of the present application;

[0073] Fig.25 A schematic diagram of the structural composition of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0074] The terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and the appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one or more (including two). The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist; for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0075] References to "one embodiment" or "some embodiments" etc. described in this specification mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Thus, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways. The term "connected" includes direct and indirect connections, unless otherwise stated.

[0076] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.

[0077] In the embodiments of the present application, the words "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.

[0078] The WiFi link sleep wakeup method provided in the embodiment of the present application can be applied to Figure 2The system shown. The system includes a source device 100 and a receiving device 200 for wireless screen projection. The source device 100 and the receiving device 200 work together and share resources. For example, the interface of the source device 100 can be wirelessly projected to the display screen of the receiving device 200, and the user can operate the source device 100 and the receiving device 200 on the receiving device 200. There is a point-to-point (P2P) connection between the source device 100 and the receiving device 200. For example, the WiFi link for wireless screen projection from the source device 100 to the receiving device 200 adopts the WiFi P2P protocol, that is, the WiFi Direct protocol. WiFi Direct is a point-to-point connection technology, in which a TCP / IP link is directly established between two devices without the participation of an access point (AP); one of the two devices in the point-to-point connection acts as an AP, called a group owner (GO); the other device is called a group client (GC), which connects to the GO like connecting to an AP. GO and GC can be not only one-to-one, but also one-to-many. In some examples, the source device 100 acts as a GO and the receiving device 200 acts as a GC; in other examples, the source device 100 acts as a GC and the receiving device 200 acts as a GO; this does not affect the implementation effect of the embodiments of the present application, and the embodiments of the present application do not limit this.

[0079] During the wireless screen projection process from the source device 100 to the receiving device 200, in some scenarios, the source device 100 locks the screen and turns off the screen; for example, the user presses the power button of the source device 100 or does not operate the source device 100 for a long time. In other scenarios, the receiving device 200 locks the screen and turns off the screen; for example, the user presses the power button of the receiving device 200 or does not operate the receiving device 200 for a long time. The source device 100 turns off the screen or the receiving device 200 turns off the screen, the wireless screen projection service is suspended, and the WIFI link used for wireless screen projection enters a low-power state (ie, sleep). When the user operates the source device 100 or the receiving device 200 again (for example, presses the power button of the source device 100 or the receiving device 200), the source device 100 or the receiving device 200 turns on the screen, the WIFI link used for wireless screen projection exits the low-power state, enters the working state, and the wireless screen projection service is restored. The WIFI link does not transmit wireless screen projection service data in a low-power state, and the power consumption is low.

[0080] An embodiment of the present application provides a WiFi link sleep and wake-up method. When the source device 100 turns off the screen, the source device 100 notifies the receiving device 200 to put the WIFI link into a low power consumption state; when the source device 100 turns on the screen, the source device 100 notifies the receiving device 200 to exit the WIFI link from the low power consumption state; when the receiving device 200 turns off the screen, the receiving device 200 notifies the source device 100 to put the WIFI link into a low power consumption state; when the receiving device 200 turns on the screen, the receiving device 200 notifies the source device 100 to exit the WIFI link from the low power consumption state; the WIFI link of the wireless screen projection can enter or exit the low power consumption state with low latency.

[0081] The above-mentioned source device 100 may include a portable computer (such as a mobile phone, etc.), a handheld computer, a tablet computer, a laptop computer, a netbook, a personal computer (PC), a smart home device (such as a smart TV, a smart screen, a large screen, a smart speaker, etc.), a personal digital assistant (PDA), a wearable device (such as a smart watch, a smart bracelet, etc.), an augmented reality (AR)\virtual reality (VR) device, a car computer, etc., and the embodiments of the present application do not impose any restrictions on this.

[0082] The above-mentioned receiving device 200 may include a mobile screen (such as a tablet computer, a laptop computer, a netbook), a personal computer (PC), a portable computer (such as a mobile phone, etc.), a handheld computer, a smart home device (such as a smart TV, a smart screen, a large screen, a smart speaker, etc.), a personal digital assistant (PDA), a car computer, etc., and the embodiments of the present application do not impose any restrictions on this.

[0083] In an example, the source device 100 or the receiving device 200 may include: Figure 3 As shown in the structure. Figure 3 As shown, the electronic device 300 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, a display screen 150, an antenna, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, a sensor module 180, and the like.

[0084] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0085] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0086] The controller can be the nerve center and command center of the electronic device. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.

[0087] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0088] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0089] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to a touch sensor, a charger, a flash, a camera, etc. through different I2C bus interfaces. For example, the processor 110 may be coupled to a touch sensor through an I2C interface, so that the processor and the touch sensor communicate through the I2C bus interface to realize the touch function of the electronic device.

[0090] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.

[0091] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0092] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.

[0093] The MIPI interface can be used to connect the processor 110 with the display screen 150, keyboard and other peripheral devices. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the display screen 150 communicate through the DSI interface to realize the display function of the electronic device.

[0094] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the display screen 150, the wireless communication module 160, the audio module 170, the input device 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0095] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device, and can also be used to transfer data between the electronic device and a peripheral device. For example, the electronic device connects to a peripheral input device, such as a keyboard, a mouse, etc., through the interface; it can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0096] It is understandable that the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0097] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of an electronic device. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.

[0098] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 150, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0099] The electronic device implements the display function through a GPU, a display screen 150, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 150 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0100] The display screen 150 is used to display images, videos, etc. The display screen 150 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device may include 1 or N display screens 150, where N is a positive integer greater than 1. In the embodiment of the present application, the display screen 150 is also referred to as a screen.

[0101] Digital signal processors are used to process digital signals. In addition to processing digital image signals, they can also process other digital signals. For example, when an electronic device selects a frequency point, a digital signal processor is used to perform Fourier transform on the frequency point energy.

[0102] Video codecs are used to compress or decompress digital videos. Electronic devices can support one or more video codecs. In this way, electronic devices can play or record videos in multiple coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0103] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and continuously self-learn. NPU can realize applications such as intelligent cognition of electronic devices, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0104] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.

[0105] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0106] The wireless communication function of the electronic device can be implemented through an antenna, a wireless communication module 160, a modem processor, etc.

[0107] The antenna is used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antenna. For example, the antenna can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0108] The wireless communication module 160 can provide wireless communication solutions for application in electronic devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc.

[0109] The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via an antenna, modulates and filters electromagnetic wave signals, and sends the processed signals to the processor 110 .

[0110] The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify the signal, and convert it into electromagnetic waves for radiation through the antenna.

[0111] In some embodiments, the antenna of the electronic device is coupled to the wireless communication module 160, so that the electronic device can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS) and / or satellite based augmentation system (SBAS).

[0112] The electronic device can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0113] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

[0114] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device can listen to music or listen to a hands-free call through the speaker 170A.

[0115] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.

[0116] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device can be provided with at least one microphone 170C. In other embodiments, the electronic device can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device can also be provided with three, four or more microphones 170C to realize the collection of sound signals, noise reduction, identification of sound sources, and directional recording function, etc.

[0117] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0118] The sensor module 180 may include a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.

[0119] The following takes the mobile phone as GO, the mobile screen as GC, and the mobile phone wirelessly projecting the screen to the mobile screen as an example to introduce in detail the WiFi link sleep and wake-up method provided in the embodiment of the present application.

[0120] like Figure 4As shown, the mobile phone wirelessly projects its screen to the mobile screen. The wireless projection data is transmitted between the mobile phone and the mobile screen via a WiFi direct (Direct) link. When the first preset condition is met, the wireless projection service is suspended, and the mobile phone (GO) enables the WiFi direct link to enter a low-power state (ie, sleep). Among them, the first preset condition includes: the screen of the mobile phone is off; for example, the user presses the power button of the mobile phone when the screen is on, and the screen of the mobile phone is off; for example, the user has not operated the mobile phone for a long time, and the screen of the mobile phone is locked and turned off. When the second preset condition is met, the mobile phone (GO) wakes up the WiFi direct link, the WiFi direct link exits the low-power state, and the wireless projection service is restored. Among them, the second preset condition includes: the screen of the mobile phone is on; for example, the user picks up the mobile phone, and the screen of the mobile phone is on; for example, the user presses the power button of the mobile phone when the screen of the mobile phone is off, and the screen of the mobile phone is on.

[0121] The mobile phone wirelessly projects the screen to the mobile screen. The wireless projection data is transmitted between the mobile phone and the mobile screen via a WiFi direct (Direct) link. When the third preset condition is met, the wireless projection service is suspended, and the mobile screen (GC) enables the WiFi direct link to enter a low-power state (ie, sleep). Among them, the third preset condition includes: the mobile screen is turned off; for example, the user presses the power button of the mobile screen when the mobile screen is on, and the mobile screen is turned off; for example, the user has not operated the mobile screen for a long time, and the mobile screen is locked and turned off. When the fourth preset condition is met, the mobile screen (GC) wakes up the WiFi direct link, the WiFi direct link exits the low-power state, and the wireless projection service is restored. Among them, the fourth preset condition includes: the mobile screen is on; for example, the user picks up the mobile screen, and the mobile screen is on; for example, the user presses the power button of the mobile screen when the mobile screen is off, and the mobile screen is on.

[0122] The WiFi link sleep awakening method provided by the embodiment of the present application is that when the first preset condition is met, the GO enables the WiFi direct link sleep; when the second preset condition is met, the GO wakes up the WiFi direct link; when the third preset condition is met, the GC enables the WiFi direct link sleep; when the fourth preset condition is met, the GC wakes up the WiFi direct link. Both the mobile phone and the mobile screen can enable the WiFi direct link sleep, and both the mobile phone and the mobile screen can wake up the WiFi direct link. The following is a detailed introduction in conjunction with the accompanying drawings.

[0123] Figure 5 A flowchart of a method for enabling WiFi direct link sleep for GO. Figure 5 As shown, the method includes:

[0124] S101. GO sends a first message to GC.

[0125] The GO sends a first message to the GC, where the first message is used to notify the GC to enable WiFi direct link sleep. In one implementation, after the GO sends the first message, the GO enters a WiFi direct link low power consumption state.

[0126] S102: The WiFi direct link enters a low power consumption state.

[0127] GC receives the first message and enters the low-power state of the WiFi direct link. The WIFI link does not transmit wireless screen projection service data in the low-power state. In one example, the low-power state of the WIFI link includes a sleep window and a non-sleep window (ie, a working window); in the sleep window, GO and GC do not transmit data, and the power consumption is low; in the working window, GO and GC can transmit signaling data, and the power consumption is higher. It can be understood that the longer the sleep window, the lower the power consumption of the WIFI link in the low-power state.

[0128] In some examples, the GO enables WiFi Direct link sleep through a sleep notification mechanism (notice of absence, NOA). The GO periodically sends beacon frames to the GC, and the GC listens to the beacon frames. In the embodiment of the present application, the period of the GO sending beacon frames is called the beacon frame period. For example, if the GO sends a beacon frame to the GC every 100ms, the beacon frame period is 100ms.

[0129] Optionally, the beacon frame includes the number of sleep cycles (count); the number of sleep cycles is used to indicate the number of times the sleep window is entered. If GO determines that the WiFi direct link will enter a low-power state, the number of sleep cycles is set to be greater than 0 in the sent beacon frame (the beacon frame with a sleep cycle number greater than 0 is the above-mentioned first message); the number of sleep cycles is greater than 0, indicating that the WiFi direct link will enter a low-power state. Optionally, the beacon frame also includes information such as the sleep start time (start time), the sleep duration (absent period), and the sleep cycle (interval). The sleep start time is used to indicate the starting time of the first entry into the sleep window; the sleep duration is used to indicate the duration of each sleep window; the sleep cycle is used to indicate the time interval for entering the sleep window. Among them, the WiFi direct link does not transmit data in the sleep window, and the power consumption is relatively low; the non-sleep window (working window) of the WiFi direct link in the low-power state can transmit signaling data, and the power consumption is relatively high.

[0130] In one example, if Fig. 6AAs shown, GO periodically sends beacon frames to GC. The number of sleep cycles in the first beacon frame is 2, indicating that the number of times it enters the sleep window is 2 times; the number of sleep cycles in the second beacon frame is 3, indicating that the number of times it enters the sleep window is 3 times; the number of sleep cycles in the third beacon frame is 1, indicating that the number of times it enters the sleep window is 1 time.

[0131] In each beacon frame period, GO switches between the sleep window and the working window according to the parameters such as the number of sleep cycles (count), sleep start time (start time), sleep duration (absent period), and sleep interval in the beacon frame period. GC receives the beacon frame, determines that the number of sleep cycles in the beacon frame is greater than 0, and determines that the WiFi direct link is in a low power state in the beacon frame period. In the beacon frame period, GC switches between the sleep window and the working window according to the parameters such as the number of sleep cycles (count), sleep start time (start time), sleep duration (absent period), and sleep interval in the beacon frame.

[0132] In another example, the parameters indicated by the GO in one beacon frame may be used for multiple beacon frame periods. Figure 6B As shown in the figure, GO periodically sends beacon frames to GC. The number of sleep cycles in the first beacon frame is 6, indicating that the number of times it enters the sleep window is 6 times; the second beacon frame does not include the number of sleep cycles; the number of sleep cycles in the third beacon frame is 1, indicating that the number of times it enters the sleep window is 1. The first beacon frame also includes information such as the start time of sleep, the duration of sleep (absent period), and the interval of sleep. The third beacon frame also includes information such as the start time of sleep, the duration of sleep (absent period), and the interval of sleep.

[0133] After GO sends the first beacon frame, it switches between the sleep window and the working window according to the parameters such as the number of sleep cycles (count), sleep start time (start time), sleep duration (absent period), and sleep period (interval) in the first beacon frame. GC receives the first beacon frame, determines that the number of sleep cycles in the beacon frame is greater than 0, and determines that the WiFi direct link enters a low power state; GC switches between the sleep window and the working window according to the parameters such as the number of sleep cycles (count), sleep start time (start time), sleep duration (absent period), and sleep period (interval) in the first beacon frame. It can be understood that according to the parameters in the first beacon frame, GO and GC enter the sleep window 6 times, and the duration is greater than 1 beacon frame period. The second beacon frame sent by GO to GC does not include parameters such as the number of sleep cycles. After GO sends the third beacon frame, it switches between the sleep window and the working window according to the parameters such as the sleep cycle count, sleep start time, sleep duration, and sleep interval in the third beacon frame. GC receives the third beacon frame, determines that the sleep cycle count in the beacon frame is greater than 0, and determines that the WiFi direct link is in a low power state; GC switches between the sleep window and the working window according to the parameters such as the sleep cycle count, sleep start time, sleep duration, and sleep interval in the third beacon frame.

[0134] In another example, a sleep window may span multiple beacon frame periods. Figure 6CAs shown, GO periodically sends beacon frames to GC. The number of sleep cycles in the first beacon frame is 2, indicating that the number of times the sleep window is entered is 2. After GO sends the first beacon frame, it switches between the sleep window and the working window according to the parameters such as the number of sleep cycles (count), sleep start time (start time), sleep duration (absent period), and sleep period (interval) in the first beacon frame. GC receives the first beacon frame, determines that the number of sleep cycles in the beacon frame is greater than 0, and determines that the WiFi direct link enters a low power state; GC switches between the sleep window and the working window according to the parameters such as the number of sleep cycles (count), sleep start time (start time), sleep duration (absent period), and sleep period (interval) in the first beacon frame. A sleep window spans 2 beacon frame periods. The second and third beacon frames sent by GO to GC do not include parameters such as the number of sleep cycles. It can be understood that in the sleep window, GO can send beacon frames and GC can listen to beacon frames.

[0135] Understandably, in some implementations, the sleep duration is set to a relatively large value, the power consumption of the WiFi direct link is low, but the message can only be sent in the non-sleep window or after exiting the low-power state, affecting the service delay; in other implementations, the sleep duration is set to a relatively small value, the power consumption of the WiFi direct link is high, but the service delay is small. The values ​​of parameters such as the sleep duration can be adjusted according to actual conditions.

[0136] In this method, the GO enables the WiFi direct link to sleep. Taking the mobile phone as the GO and the mobile screen as the GC as an example, if the mobile phone screen is turned off, the mobile phone enables the WiFi direct link to sleep.

[0137] Figure 7 A flowchart of a method for enabling WiFi direct link sleep for GC. Figure 7 As shown, the method includes:

[0138] S201. GC sends a first request message to GO.

[0139] The GC sends a first request message to the GO, where the first request message is used to trigger the GO to enable WiFi direct link sleep.

[0140] In one implementation, the first request message is a link layer message. Exemplarily, the GC sends a first management (action) frame to the GO; the first action frame is used to trigger the GO to enable WiFi direct link sleep. For example, the first management (action) frame is a custom 802.11 protocol action frame.

[0141] In one implementation, the first request message is a service layer message. For example, the first request message is a pause screen projection request message, which is sent through a transmission control protocol (TCP) or user datagram protocol (UDP) service channel. The pause screen projection request message is used to request to pause the transmission of wireless screen projection data.

[0142] S202. The GO sends a first message to the GC.

[0143] The GO receives the first request message and sends a first message to the GC in the next beacon frame period; the first message is used to notify the GC to enable the WiFi direct link sleep. After the GO sends the first message, the GO enters the WiFi direct link low power consumption state.

[0144] S203: The WiFi direct link enters a low power consumption state.

[0145] The GC receives the first message and enters a low power consumption state of the WiFi direct link.

[0146] In one example, if Figure 8As shown, GC determines that the wireless screen projection service is suspended and determines whether to enter the low-power state of the WiFi direct link. For example, if it is determined that the GC screen is turned off, it is determined to enter the low-power state of the WiFi direct link; for example, when the screen is on, the user presses the power button, and it is determined to enter the low-power state of the WiFi direct link. If it is determined to enter the low-power state of the WiFi direct link, GC sends a first request message to GO. GO receives the first request message and determines to enter the low-power state of the WiFi direct link in the next beacon frame. At the time point of sending the next beacon frame, GO sends a first message to GC; for example, the first message is a beacon frame, and the number of sleep cycles in the beacon frame is greater than 0. The beacon frame also includes information such as the sleep start time (start time), the sleep duration (absent period), and the sleep cycle (interval). GO and GC switch between the sleep window and the working window according to parameters such as the sleep cycle count, the sleep start time (start time), the sleep duration (absent period), and the sleep cycle (interval) of the beacon frame.

[0147] In some examples, the GC triggers the GO to enable WiFi Direct link sleep by sending a link layer message to the GO. For example, Fig. 9 As shown, if GC determines that the WiFi direct link has entered a low power state, it sends a first management frame to GO. GO receives the first management frame, and the next beacon frame carries a sleep cycle count greater than 0, and also carries sleep start time (starttime), sleep duration (absent period), sleep cycle (interval) and other information. GC receives the beacon frame, determines that the sleep cycle count in the beacon frame is greater than 0, and determines that the WiFi direct link has entered a low power state. GO and GC switch between the sleep window and the working window according to the sleep cycle count (count), sleep start time (start time), sleep duration (absentperiod), sleep cycle (interval) and other parameters of the beacon frame.

[0148] In this method, the GC enables the WiFi direct link to sleep. Taking the mobile phone as the GO and the mobile screen as the GC as an example, if the mobile screen is turned off, the mobile screen enables the WiFi direct link to sleep.

[0149] Fig.10 A flowchart of a method for waking up a WiFi direct link with a GO is shown below. Fig.10 As shown, the method includes:

[0150] S301. GO sends a second message to GC.

[0151] The GO sends a second message to the GC, and the GO exits the low power consumption state of the WiFi direct link; the second message is used to notify the GC to exit the low power consumption state of the WiFi direct link.

[0152] S302: The WiFi direct link exits the low power consumption state.

[0153] After receiving the second message, the GC exits the low power state of the WiFi direct link. After the WiFi direct link exits the low power state, the wireless screen projection service data transmission can be resumed.

[0154] In some examples, the GO wakes up the WiFi direct link via NOA. Fig.11 As shown, GO periodically sends beacon frames to GC, and the beacon frames include the number of sleep cycles (count). The number of sleep cycles in the beacon frame of NOA sequence number 1 is greater than 0. According to the parameters in the beacon frame, the WiFi direct link enters a low-power state. For example, during the beacon frame period, the mobile phone (GO) receives the operation of the user pressing the power button, and GO determines to wake up the WiFi direct link. GO notifies GC to exit the low-power state of the WiFi direct link in the next beacon frame (beacon frame of NOA sequence number 2); wherein, the number of sleep cycles in the beacon frame of NOA sequence number 2 is equal to 0, indicating that the WiFi direct link exits the low-power state. In this way, after sending the beacon frame of NOA sequence number 2, GO exits the low-power state of the WiFi direct link; GC receives the beacon frame of NOA sequence number 2 and exits the low-power state of the WiFi direct link.

[0155] In this method, the GO wakes up the WiFi direct link. For example, if the mobile phone is used as the GO and the mobile screen is used as the GC, the mobile phone wakes up the WiFi direct link if the screen of the mobile phone is on.

[0156] Fig.12 A flowchart of a method for GC to wake up the WiFi direct link is shown below. Fig.12 As shown, the method includes:

[0157] S401. GC sends a second request message to GO.

[0158] The GC sends a second request message (wake-up request message) to the GO, where the second request message is used to trigger the GO to wake up the WiFi direct link.

[0159] The WiFi direct link is in a low power state, and in the sleep window of the low power state, the GO and the GC do not transmit data. In some embodiments, the GO and the GC establish a low power Bluetooth (bluetooth low energy, BLE) connection, and the GC uses a BLE connection message to send a second request message to the GO. In other embodiments, the GC uses a BLE directed broadcast message to send a second request message to the GO. In other embodiments, the GC sends a second request message to the GO in a non-sleep window in a low power state. For example, the second request message is a link layer message or a service layer message.

[0160] S402. The GO sends a second message to the GC.

[0161] The GO receives the second request message and sends a second message (wake-up message) to the GC in the next beacon frame, and the GO exits the low power consumption state of the WiFi direct link; the second message is used to notify the GC to exit the low power consumption state of the WiFi direct link.

[0162] S403: The WiFi direct link exits the low power consumption state.

[0163] After receiving the second message, the GC exits the low power state of the WiFi direct link. After the WiFi direct link exits the low power state, the wireless screen projection service data transmission can be resumed.

[0164] In this method, the GC triggers the awakening of the WiFi direct link. Taking the mobile phone as the GO and the mobile screen as the GC as an example, if the mobile screen is on, the mobile screen triggers the awakening of the WiFi direct link.

[0165] In some embodiments, the GC sends the second request message to the GO using a BLE connection message.

[0166] After two devices that support BLE communication discover each other via Bluetooth, a BLE connection is established. After the BLE connection is successfully established, BLE communication is in master-slave mode. The two devices that establish a BLE connection are one master device (master) and the other slave device (slave). Usually, the initiator of the BLE connection is called the master device, and the connected device is called the slave device. After the master device sends a Bluetooth data packet to the slave device, the slave device returns the Bluetooth data to the master device within the specified time. The slave device cannot actively send Bluetooth data to the master device.

[0167] In one example, GC is a BLE master device and GO is a BLE slave device. Fig.13As shown, GO sends a first BLE broadcast, and the first BLE broadcast is used for other devices to discover GO. GC listens to GO's first BLE broadcast, that is, it discovers GO. GC sends a BLE connection request to GO, and the BLE connection request is used to request to establish a BLE connection. GO receives the BLE connection request and sends a BLE connection response to GC, and the BLE connection response is used to confirm the establishment of the BLE connection. GC receives the BLE connection response, and the BLE connection is successfully established. During the BLE connection establishment process, GC initiates a BLE connection request, and GC is the BLE master device. GC periodically sends a first BLE request message to GO according to a first duration; for example, the first BLE request message is used to keep the BLE connection between GC and GO alive; for another example, the first BLE request message is used for GC to send Bluetooth data to GO. Each time GO receives the first BLE request message, it returns a first BLE response message to GC; for example, the first BLE response message is used for GO to send Bluetooth data to GC; for another example, the first BLE response message is an empty message. If the WiFi direct link is in a low power state, GC determines to restore the wireless screen projection service; GC determines whether to exit the low power state of the WiFi direct link. For example, if it is determined that the GC screen is on, it is determined to exit the low-power state of the WiFi direct link; for another example, when the screen is off and the user presses the power button, it is determined to exit the low-power state of the WiFi direct link. If it is determined to exit the low-power state of the WiFi direct link, the first indication information is carried in the first BLE request message sent by the next GC to the GO, and the first indication information is used to trigger the GO to wake up the WiFi direct link (to make the WiFi direct link exit the low-power state). After the GO receives the first indication information, it determines to send the second message in the next beacon frame period. At the next beacon frame sending time point, the GO sends the second message to the GC. For example, the second message is a beacon frame, and the number of sleep cycles in the beacon frame is equal to 0; the GC receives the second message; the GO and the GC exit the low-power state of the WiFi direct link. After the WiFi direct link exits the low-power state, the wireless screen projection service data transmission can be restored.

[0168] For example, Fig.14As shown, GO sends the first BLE broadcast. GC listens to the first BLE broadcast of GO and discovers GO. GC sends a BLE generic attribute profile (GATT) long connection request to GO to request the establishment of a BLE GATT long connection. For example, the BLE GATT long connection request is a master send request. GO replies to GC with a BLE GATT long connection response to confirm the establishment of a BLE GATT long connection. For example, the BLE GATT long connection response is a slave send response. GC receives the BLE GATT long connection response, and the BLE GATT long connection is successfully established. As a BLE master device, GC periodically sends the first BLE request message to GO. Each time GO receives the first BLE request message, it replies to GC with a first BLE response message.

[0169] The number of sleep cycles in the beacon frame of NOA sequence number 1 sent by GO to GC is greater than 0, and the WiFi direct link enters a low-power state. For example, within the beacon frame period, the mobile screen (GC) receives the user's operation of pressing the power button, and GC determines to wake up the WiFi direct link. GC carries the first indication information in the next first BLE request message that determines to wake up the WiFi direct link, which is used to trigger GO to wake up the WiFi direct link. After GO receives the first indication information, the number of sleep cycles in the next beacon frame (NOA sequence number 2) is equal to 0. In this way, after sending the beacon frame of NOA sequence number 2, GO exits the low-power state of the WiFi direct link; GC receives the beacon frame of NOA sequence number 2 and exits the low-power state of the WiFi direct link.

[0170] In this method, GC and GO establish a BLE connection, GC is the BLE master device, and GO is the BLE slave device. GC triggers GO to wake up the WiFi direct link by carrying the first indication information in the first BLE request message (second request message). In the WiFi direct link sleep window, the second request message can also be successfully sent and received. In this way, GC can also actively trigger the awakening of the WiFi direct link instead of having to wait for GO to wake up the WiFi direct link; the delay in waking up the WiFi direct link is reduced, and the wireless screen projection service can be restored with low latency.

[0171] Furthermore, it is understandable that within the sleep window, GC and GO do not transmit data, and the power consumption is low. The sleep window duration can be set longer, which can reduce power consumption. In this method, the first BLE request message is not restricted by the sleep window. Even if the sleep window is set for a longer time, it does not affect the low-latency wake-up of the WiFi direct link. In this way, power consumption can be reduced as much as possible, and low-latency wake-up of the WiFi direct link can be guaranteed.

[0172] It should be noted that Fig.14 The duration of the sleep window is less than the beacon frame transmission period. In other embodiments, the duration of the sleep window can also be set to be greater than the beacon frame transmission period; for example, the sleep window duration is 5s and the beacon frame transmission period is 10ms. In this way, the power consumption of the WiFi direct link in a low power state is lower. It can be understood that in the sleep window, the GO and GC do not transmit data, but can send and receive beacon frames, which does not affect the GO sending a beacon frame to wake up the WiFi direct link.

[0173] In another implementation, Fig.15 As shown, after GC and GO establish a BLE connection, if the WiFi direct link is in a low-power state, GC determines to exit the low-power state of the WiFi direct link, and GC sends a first BLE indication message to GO. The first BLE indication message is used to trigger GO to wake up the WiFi direct link. GO receives the first BLE indication message and determines to send a second message in the next beacon frame. At the time point when the next beacon frame is sent, GO sends a second message to GC to exit the low-power state of the WiFi direct link; GC receives the second message and exits the low-power state of the WiFi direct link. After the WiFi direct link exits the low-power state, the wireless screen projection service data transmission can be resumed.

[0174] For example, Fig.16As shown, GO sends the first BLE broadcast. GC listens to GO's first BLE broadcast and discovers GO. GC sends a BLE GATT long connection request to GO, and GO replies to GC with a BLE GATT long connection response, and the BLE GATT long connection is successfully established. The number of sleep cycles in the beacon frame with NOA sequence number 1 sent by GO to GC is greater than 0, and the WiFi direct link enters a low power state. For example, during the beacon frame period, the mobile screen (GC) receives the user's operation of pressing the power button, and GC determines to wake up the WiFi direct link. GC sends the first BLE indication message to GO, which is used to trigger GO to wake up the WiFi direct link. After GO receives the first BLE indication message, the number of sleep cycles in the next beacon frame (NOA sequence number 2) is equal to 0. In this way, after sending the beacon frame with NOA sequence number 2, GO exits the low power state of the WiFi direct link; GC receives the beacon frame with NOA sequence number 2 and exits the low power state of the WiFi direct link.

[0175] In this implementation, GC and GO establish a BLE connection, GC is the BLE master device, and GO is the BLE slave device. GC triggers GO to wake up the WiFi direct link by sending a first BLE indication message (second request message). In the sleep window of the WiFi direct link, the second request message can also be successfully sent and received. In this way, GC can also actively trigger the wake-up of the WiFi direct link instead of having to wait for GO to wake up the WiFi direct link; the delay in waking up the WiFi direct link is reduced, and the wireless screen projection service can be restored with low latency. Moreover, the sleep window duration can be set longer, which not only ensures reduced power consumption, but also does not affect the low-latency wake-up of the WiFi direct link.

[0176] In another example, GO is a BLE master device and GC is a BLE slave device. Fig.17As shown, GC sends a first BLE broadcast, and the first BLE broadcast is used for other devices to discover GC. GO listens to the first BLE broadcast of GC, that is, it discovers GC. GO sends a BLE connection request to GC, and the BLE connection request is used to request to establish a BLE connection. GC receives the BLE connection request and sends a BLE connection response to GO, and the BLE connection response is used to confirm the establishment of the BLE connection. GO receives the BLE connection response, and the BLE connection is successfully established. During the BLE connection establishment process, GO initiates a BLE connection request, and GO is the BLE master device. GO periodically sends a first BLE request message to GC according to a first duration; for example, the first BLE request message is used to keep the BLE connection between GO and GC alive; for another example, the first BLE request message is used for GO to send Bluetooth data to GC. Each time GC receives the first BLE request message, it returns a first BLE response message to GO; for example, the first BLE response message is used for GC to send Bluetooth data to GO; for another example, the first BLE response message is an empty message. If the WiFi direct link is in a low power state, GC determines to restore the wireless screen projection service; GC determines whether to exit the low power state of the WiFi direct link. For example, if it is determined that the GC screen is on, it is determined to exit the low-power state of the WiFi direct link; for another example, if the user presses the power button when the screen is off, it is determined to exit the low-power state of the WiFi direct link. If it is determined to exit the low-power state of the WiFi direct link, the first indication information is carried in the first BLE response message sent by the next GC to the GO, and the first indication information is used to trigger the GO to wake up the WiFi direct link (to exit the low-power state of the WiFi direct link). After the GO receives the first indication information, it determines to send the second message in the next beacon frame. At the time point when the next beacon frame is sent, the GO sends a second message to the GC to exit the low-power state of the WiFi direct link; after the GC receives the second message, it exits the low-power state of the WiFi direct link. After the WiFi direct link exits the low-power state, the wireless screen projection service data transmission can be resumed.

[0177] For example, Fig.18As shown, GC sends the first BLE broadcast. GO listens to the first BLE broadcast of GC and finds GC. GO sends a BLE GATT long connection request to GC to request the establishment of a BLE GATT long connection. For example, the BLE GATT long connection request is a master send request. GC replies to GO with a BLE GATT long connection response to confirm the establishment of a BLE GATT long connection. For example, the BLE GATT long connection response is a slave send response. GO receives the BLE GATT long connection response, and the BLE GATT long connection is successfully established. As a BLE master device, GO periodically sends the first BLE request message to GC. Each time GC receives the first BLE request message, it replies to GO with a first BLE response message.

[0178] The number of sleep cycles in the beacon frame of NOA sequence number 1 sent by GO to GC is greater than 0, and the WiFi direct link enters a low-power state. For example, within the beacon frame period, the mobile screen (GC) receives the user's operation of pressing the power button, and GC determines to wake up the WiFi direct link. GC carries the first indication information in the next first BLE response message that determines to wake up the WiFi direct link, which is used to trigger GO to wake up the WiFi direct link. After GO receives the first indication information, the number of sleep cycles in the next beacon frame (NOA sequence number 2) is equal to 0. In this way, after sending the beacon frame of NOA sequence number 2, GO exits the low-power state of the WiFi direct link; GC receives the beacon frame of NOA sequence number 2 and exits the low-power state of the WiFi direct link.

[0179] In this method, GC and GO establish a BLE connection, GO is a BLE master device, and GC is a BLE slave device. GC triggers GO to wake up the WiFi direct link by carrying the first indication information in the first BLE response message (second request message). In the sleep window of the WiFi direct link, the second request message can also be successfully sent and received. In this way, GC can also actively trigger the awakening of the WiFi direct link instead of waiting for GO to wake up the WiFi direct link; the delay in waking up the WiFi direct link is reduced, and the wireless screen projection service can be restored with low latency. In addition, the sleep window duration can be set longer to ensure reduced power consumption; the period for sending the first BLE request message can be set shorter to ensure low-latency awakening of the WiFi direct link.

[0180] In some other embodiments, the GC sends the second request message to the GO using a BLE directed broadcast message.

[0181] In one example, if Fig.19As shown, the WiFi direct link is in a low-power state, and the GC determines to resume the wireless screen projection service; the GC determines whether to exit the low-power state of the WiFi direct link. For example, if it is determined that the GC screen is on, it is determined to exit the low-power state of the WiFi direct link; for another example, when the screen is off, the user presses the power button, and the WiFi direct link is determined to exit the low-power state. If it is determined to exit the low-power state of the WiFi direct link, the GC sends a first BLE directional broadcast to the GO (the destination address of the first BLE directional broadcast is the address of the GO), and the first BLE directional broadcast is used to trigger the GO to wake up the WiFi direct link (to exit the low-power state of the WiFi direct link). The GO receives the first BLE directional broadcast and determines to send a second message in the next beacon frame. At the time point of sending the next beacon frame, the GO sends a second message to the GC to exit the low-power state of the WiFi direct link; the GC receives the second message and exits the low-power state of the WiFi direct link. When the WiFi direct link exits the low-power state, the wireless screen projection service data transmission can be resumed.

[0182] For example, Fig. 20 As shown, the number of sleep cycles in the beacon frame of NOA sequence number 1 sent by GO to GC is greater than 0, and the WiFi direct link enters a low power state. For example, during the beacon frame period, the mobile screen (GC) receives the user's operation of pressing the power button, and GC determines to wake up the WiFi direct link. GC sends the first BLE directional broadcast to GO, which is used to trigger GO to wake up the WiFi direct link. After GO receives the first BLE directional broadcast, the number of sleep cycles in the next beacon frame (NOA sequence number 2) is equal to 0. In this way, after sending the beacon frame of NOA sequence number 2, GO exits the low power state of the WiFi direct link; GC receives the beacon frame of NOA sequence number 2 and exits the low power state of the WiFi direct link.

[0183] In this method, GC and GO do not need to establish a BLE connection. GC triggers GO to wake up the WiFi direct link through BLE directional broadcast (second request message). In the sleep window of the WiFi direct link, the second request message can also be successfully sent and received. In this way, GC can also actively trigger the wake-up of the WiFi direct link instead of waiting for GO to wake up the WiFi direct link; the delay in waking up the WiFi direct link is reduced, and the wireless screen projection service can be restored with low latency. Moreover, the sleep window duration can be set longer, which not only ensures reduced power consumption, but also does not affect the low-latency wake-up of the WiFi direct link.

[0184] In some other embodiments, the GC sends the second request message to the GO in a non-sleep window in a low power consumption state.

[0185] In one example, if Fig.21 As shown, the WiFi direct link is in a low-power state, and the GC determines to resume the wireless screen projection service; the GC determines whether to exit the low-power state of the WiFi direct link. For example, if it is determined that the GC screen is on, it is determined to exit the low-power state of the WiFi direct link; for another example, when the screen is off and the user presses the power button, it is determined to exit the low-power state of the WiFi direct link. If it is determined to exit the low-power state of the WiFi direct link, the GC sends an exit sleep indication message (a second request message) to the GO in the non-sleep window in the low-power state of the WiFi direct link. The exit sleep indication message is used to trigger the GO to wake up the WiFi direct link (to make the WiFi direct link exit the low-power state). GO receives the exit sleep indication message and determines to send the second message in the next beacon frame. At the time point of sending the next beacon frame, GO sends a second message to GC to exit the low-power state of the WiFi direct link; GC receives the second message and exits the low-power state of the WiFi direct link. When the WiFi direct link exits the low-power state, the wireless screen projection service data transmission can be resumed.

[0186] For example, Fig. 22 As shown, the number of sleep cycles in the beacon frame of NOA sequence number 1 sent by GO to GC is greater than 0, and the WiFi direct link enters a low power consumption state. For example, during the beacon frame period, the mobile screen (GC) receives the user's operation of pressing the power button, and GC determines to wake up the WiFi direct link. GC sends an exit sleep indication message to GO in the non-sleep window to trigger GO to wake up the WiFi direct link. After GO receives the exit sleep indication message, the number of sleep cycles in the next beacon frame (NOA sequence number 2) is equal to 0. In this way, after sending the beacon frame of NOA sequence number 2, GO exits the low power consumption state of the WiFi direct link; GC receives the beacon frame of NOA sequence number 2 and exits the low power consumption state of the WiFi direct link.

[0187] In one implementation, the exit sleep indication message is a link layer message. Exemplarily, the GC sends a second management (action) frame to the GO; the second action frame is used to trigger the GO to wake up the WiFi direct link. For example, the second management (action) frame is a custom 802.11 protocol action frame.

[0188] In another implementation, the exit-sleep indication message is a service layer message, which is sent through a transmission control protocol (TCP) or user datagram protocol (UDP) service channel.

[0189] In this method, GC triggers GO to wake up the WiFi direct link by sending an exit sleep indication message (second request message) to GO. In this way, GC can also actively trigger the awakening of the WiFi direct link instead of having to wait for GO to wake up the WiFi direct link; the delay in waking up the WiFi direct link is reduced, and the wireless screen projection service can be restored with low latency. For example, the exit sleep indication message is a link layer message or a service layer message. The exit sleep indication message cannot be sent in the sleep window of the WiFi direct link, but can be successfully sent and received in the non-sleep window of the WiFi direct link. This method uses the non-sleep window in the low-power state of the WiFi direct link to send a second request message to trigger GO to wake up the WiFi direct link; even if GO and GC do not support BLE, GC can also actively trigger the awakening of the WiFi direct link.

[0190] The WiFi link sleep awakening method provided in the embodiment of the present application not only supports GO to actively enable WiFi direct link sleep and awaken WiFi direct link; it also supports GC to actively trigger to enable WiFi direct link sleep and awaken WiFi direct link. Compared with the solution that only GO can actively enable WiFi direct link sleep and awaken WiFi direct link; in the WiFi link sleep awakening method provided in the embodiment of the present application, GC does not need to wait for GO, actively enables WiFi direct link sleep and awakens WiFi direct link; it can wake up WiFi direct link with low latency and ensure low power consumption of WiFi direct link.

[0191] For example, if only GO is supported to actively enable WiFi direct link sleep and wake up the WiFi direct link, the WiFi direct link wake-up delay and power consumption can be adjusted by adjusting the proportion of sleep windows and non-sleep windows in the low power state of the WiFi direct link. Fig.23 As shown, GO periodically sends beacon frames to GC. In the beacon frame of NOA sequence number 1, the number of sleep cycles is 2, and the WiFi direct link enters a low power state, including 2 sleep windows.

[0192] In one implementation, the proportion of the sleep window and the non-sleep window is adjusted, and the beacon period is set to 100ms. For example, in a beacon period, the working window occupies 1ms, and the average power consumption in the working window is 60mA; when the beacon period arrives, the latency of GO waking up the WiFi direct link sleep process is 12ms, and the average power consumption is 30mA; the sleep duration is 87ms, and the average power consumption in the sleep window is 0.2mA; in this beacon period, the total power consumption is about 4.4mA (60*1%+30*12%+0.2*87%), and GC can only wait for GO to wake up the WiFi direct link when the beacon period arrives, and the maximum wake-up latency is about 100ms.

[0193] In another implementation, the proportion of sleep windows and non-sleep windows is adjusted, and the beacon period is set to 500ms. For example, in a beacon period, the working window occupies 1ms, and the average power consumption in the working window is 60mA; when the beacon period arrives, the delay of GO waking up the WiFi direct link sleep process is 12ms, and the average power consumption is 30mA; the sleep duration is 487ms, and the average power consumption in the sleep window is 0.2mA; in this beacon period, the total power consumption is about 1.0mA, and GC can only wait for GO to wake up the WiFi direct link when the beacon period arrives, and the maximum wake-up delay is about 500ms.

[0194] In the above two implementations, if the sleep cycle is set shorter, the WiFi direct link wake-up latency is low, but the power consumption is high; if the sleep cycle is set longer, the WiFi direct link wake-up latency is high, but the power consumption is low. It is understandable that if only GO is supported to actively enable WiFi direct link sleep and wake up the WiFi direct link, low power consumption and low wake-up latency cannot be met at the same time.

[0195] For example, in the WiFi link sleep wakeup method provided in the embodiment of the present application, the GC and the GO establish a BLE connection, and the GC triggers the GO to wake up the WiFi direct link by sending a BLE connection message to the GO. Fig.24A As shown, after GO (mobile phone) and GC (mobile screen) are close to each other, a BLE GATT long connection is established. GC is the BLE master device and GO is the BLE slave device. The BLE GATT long connection establishment process takes about 300ms and is automatically completed when GO (mobile phone) and GC (mobile screen) are close to each other, without affecting the WiFi direct link wake-up delay; the BLE GATT long connection link maintains power consumption of about 2mA. When GC determines to exit the low power mode, it notifies GO through a BLE GATT message to trigger the wake-up of the WiFi direct link; for example, the master device sending request sent by GC to GO includes the first indication information. In the next beacon frame, GO wakes up the WiFi direct link. The WiFi direct link wake-up delay is the delay between GC sending the master device sending request (including the first indication information) to GO and the next beacon frame. For example, the period for periodic sending of BLE GATT messages is 50ms; the beacon period is 100ms. In Fig.24A In the scenario shown, the time between GC notifying GO to wake up the WiFi direct link through a BLE GATT message and the arrival of the next beacon cycle is less than 2 BLE GATT message sending cycles (i.e., less than one beacon cycle), and the maximum latency of WiFi direct link wakeup is less than 100ms. In other scenarios, for example, Fig. 24BAs shown, after GO (mobile phone) and GC (mobile screen) are close to each other, a BLE GATT long connection is established. GO is the BLE master device and GC is the BLE slave device. When GC determines to exit the low power mode, it notifies GO through a BLE GATT message to trigger the wake-up of the WiFi direct link; for example, the slave device sending response sent by GC to GO includes the first indication information. In the next beacon frame, GO wakes up the WiFi direct link. The WiFi direct link wake-up delay is the delay between GC sending a slave device sending response (including the first indication information) to GO and the next beacon frame. The minimum delay for WiFi direct link wake-up is close to 0.

[0196] exist Fig.24A and Fig. 24B In the scenario shown, the maximum wake-up delay of the WiFi direct link is less than 100ms, and the minimum wake-up delay of the WiFi direct link is close to 0; the BLE GATT long connection link maintains power consumption of about 2mA. This can ensure both low wake-up delay and low power consumption of the WiFi direct link.

[0197] It is understandable that the above-mentioned source device and receiving device include hardware structures and / or software modules corresponding to the execution of each function in order to realize the above-mentioned functions. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of the present application.

[0198] The embodiment of the present application can divide the functional modules of the above-mentioned source device and receiving device according to the above-mentioned method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0199] like Fig.25 As shown, an embodiment of the present application discloses an electronic device 500, which may be a source device or a receiving device in the above embodiments.

[0200] In one example, see Fig.25, which shows a possible structural diagram of the electronic device involved in the above embodiment. The electronic device 500 includes: a processing unit 501, a storage unit 502, a communication unit 503 and a display unit 504. Among them, the processing unit 501 is used to control and manage the actions of the electronic device 500. The storage unit 502 is used to store the program code and data of the electronic device 500. The communication unit 503 is used to support the electronic device 500 to communicate with other electronic devices. The display unit 504 is used to display the interface of the electronic device 500.

[0201] Of course, the unit modules in the electronic device 500 include but are not limited to the processing unit 501, storage unit 502, communication unit 503 and display unit 504. For example, the electronic device 500 may also include a power supply unit, etc. The power supply unit is used to supply power to the electronic device 500.

[0202] The processing unit 501 may be a processor or a controller, for example, a central processing unit (CPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The storage unit 502 may be a memory. The communication unit 503 may be a transceiver, a transceiver circuit, etc. The display unit 504 may be a display screen.

[0203] For example, the processing unit 501 is a processor (such as Figure 3 The processor 110 shown in FIG. 1 ), the storage unit 502 may be a memory (eg, Figure 3 The internal memory 121 shown in FIG. 1 ), the communication unit 503 may be referred to as a communication interface, and includes a wireless communication module (such as Figure 3 The wireless communication module 160 shown in FIG. 1 is a display screen (such as Figure 3 The display screen 150 shown in the figure may be a touch screen in which a display panel and a touch panel may be integrated). The electronic device 500 provided in the embodiment of the present application may be Figure 3 The electronic device 300 shown in FIG. The processor, memory, communication interface, display screen, etc. mentioned above may be connected together, for example, via a bus.

[0204] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program code is stored. When a processor executes the computer program code, the electronic device executes the method in the above embodiment.

[0205] The embodiments of the present application also provide a computer program product. When the computer program product is run on a computer, the computer executes the method in the above embodiments.

[0206] Among them, the electronic device 500, computer-readable storage medium or computer program product provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0207] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0208] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0209] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0210] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROMs, magnetic disks, or optical disks.

[0211] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A WiFi link dormancy method, applied to a first electronic device, wherein the first electronic device and a second electronic device establish a wireless fidelity WiFi direct link, wherein the first electronic device is a group owner GO of the WiFi direct link, and the second electronic device is a group visitor GC of the WiFi direct link, wherein: The method comprises: The first electronic device receives a first request message, where the first request message is used to trigger the first electronic device to enable WiFi link sleep; The first electronic device sends a first message to the second electronic device; the first message includes at least one of the number of sleep cycles, the sleep start time, the sleep duration, and the sleep cycle; wherein the number of sleep cycles indicates the number of times the WiFi link enters the sleep window during the current sleep process, and within the sleep window, the WiFi link does not perform data transmission; the sleep start time indicates the starting time when the WiFi link first enters the sleep window during the current sleep process; the sleep duration indicates the duration of the sleep window during the current sleep process of the WiFi link; and the sleep cycle indicates the time interval for the WiFi link to enter the sleep window during the current sleep process; The first electronic device enters WiFi link sleep according to at least one of the sleep cycle number, the sleep start time, the sleep duration and the sleep cycle.

2. The method according to claim 1, characterized in that The first request message is a link layer message or a service layer message.

3. The method according to claim 2, characterized in that The link layer message is a first management frame.

4. The method according to claim 2, characterized in that: The business layer message is a pause screen projection request message, and the pause screen projection request message is used to request to pause the transmission of wireless screen projection data.

5. The method according to any one of claims 1 to 4, characterized in that: The first message is a first beacon frame, and the number of sleep cycles is greater than 0.

6. The method according to any one of claims 1 to 4, characterized in that: The first electronic device sending a first message to the second electronic device includes: The first electronic device sends a first message to the second electronic device in a next beacon frame period after receiving the first request message.

7. A WiFi link dormancy method, applied to a second electronic device, wherein the second electronic device and a first electronic device establish a wireless fidelity WiFi direct link, wherein the first electronic device is a group owner GO of the WiFi direct connection, and the second electronic device is a group visitor GC of the WiFi direct connection, wherein: The method comprises: The second electronic device sends a first request message to the first electronic device, where the first request message is used to trigger the first electronic device to enable WiFi link sleep; The second electronic device receives a first message; the first message includes at least one of the number of sleep cycles, the sleep start time, the sleep duration, and the sleep cycle; wherein the number of sleep cycles indicates the number of times the WiFi link enters the sleep window during the current sleep process, and within the sleep window, the WiFi link does not perform data transmission; the sleep start time indicates the starting time when the WiFi link first enters the sleep window during the current sleep process; the sleep duration indicates the duration of the sleep window during the current sleep process of the WiFi link; and the sleep cycle indicates the time interval for the WiFi link to enter the sleep window during the current sleep process; The second electronic device enters WiFi link sleep according to at least one of the sleep cycle number, the sleep start time, the sleep duration and the sleep cycle.

8. The method according to claim 7, characterized in that The first request message is a link layer message or a service layer message.

9. The method according to claim 8, characterized in that The link layer message is a first management frame.

10. The method according to claim 8, characterized in that The business layer message is a pause screen projection request message, and the pause screen projection request message is used to request to pause the transmission of wireless screen projection data.

11. The method according to any one of claims 7 to 10, characterized in that: The first message is a first beacon frame, and the number of sleep cycles is greater than 0.

12. The method according to any one of claims 7 to 10, characterized in that: Before the second electronic device sends the first request message to the first electronic device, the method further includes: The screen of the second electronic device is turned off.

13. A WiFi link wake-up method, applied to a first electronic device, wherein the first electronic device and a second electronic device establish a wireless fidelity WiFi direct link, and the WiFi direct link is dormant, characterized in that: The method comprises: The first electronic device receives a wake-up request message, where the wake-up request message is used to trigger the first electronic device to wake up a WiFi link; The first electronic device sends a wake-up message to the second electronic device; the wake-up message is used to notify the second electronic device to exit WiFi link sleep; The first electronic device exits WiFi link sleep.

14. The method according to claim 13, characterized in that The method further includes: establishing a low-power Bluetooth BLE connection between the first electronic device and the second electronic device, The first electronic device receiving the wake-up request message includes: The first electronic device receives a first BLE request message through the BLE connection, where the first BLE request message includes first indication information, and the first indication information is used to trigger the first electronic device to wake up the WiFi link.

15. The method according to claim 13, characterized in that The method further includes: establishing a low-power Bluetooth BLE connection between the first electronic device and the second electronic device, The first electronic device receiving the wake-up request message includes: The first electronic device receives a first BLE response message through the BLE connection, the first BLE response message including first indication information, the first indication information being used to trigger the first electronic device to wake up the WiFi link; the first BLE response message is sent in response to a first BLE request message sent by the first electronic device to the second electronic device.

16. The method according to claim 13, characterized in that The wake-up request message is a low-power Bluetooth BLE directional broadcast message.

17. The method according to claim 13, characterized in that The wake-up request message is a link layer message or a service layer message.

18. The method according to any one of claims 13 to 17, characterized in that: The first electronic device sending a wake-up message to the second electronic device includes: The first electronic device sends a wake-up message to the second electronic device in a next beacon frame period after receiving the wake-up request message.

19. The method according to any one of claims 13 to 17, characterized in that: The wake-up message includes the sleep cycle number; the sleep cycle number indicates the number of times the WiFi link enters the sleep window during the current sleep process. In the sleep window, the WiFi link does not transmit data; the sleep cycle number is 0.

20. A WiFi link wake-up method, applied to a second electronic device, wherein the second electronic device and a first electronic device establish a wireless fidelity WiFi direct link, and the WiFi direct link is dormant, characterized in that: The method comprises: The second electronic device sends a wake-up request message to the first electronic device, where the wake-up request message is used to trigger the first electronic device to wake up the WiFi link; The second electronic device receives a wake-up message; the wake-up message is used to notify the second electronic device to exit WiFi link sleep; In response to the wake-up message, the second electronic device exits WiFi link sleep.

21. The method according to claim 20, characterized in that The method further includes: establishing a low-power Bluetooth BLE connection between the first electronic device and the second electronic device, The second electronic device sending a wake-up request message to the first electronic device includes: The second electronic device sends a first BLE request message to the first electronic device through the BLE connection, where the first BLE request message includes first indication information, and the first indication information is used to trigger the first electronic device to wake up the WiFi link.

22. The method according to claim 20, characterized in that The method further includes: establishing a low-power Bluetooth BLE connection between the first electronic device and the second electronic device, The second electronic device sending a wake-up request message to the first electronic device includes: In response to receiving a first BLE request message through the BLE connection, the second electronic device sends a first BLE response message to the first electronic device through the BLE connection, where the first BLE response message includes first indication information, and the first indication information is used to trigger the first electronic device to wake up the WiFi link.

23. The method according to claim 20, characterized in that The wake-up request message is a low-power Bluetooth BLE directional broadcast message.

24. The method according to claim 20, characterized in that The wake-up request message is a link layer message or a service layer message.

25. The method according to any one of claims 20 to 24, characterized in that: The wake-up message includes the sleep cycle number; the sleep cycle number indicates the number of times the WiFi link enters the sleep window during the current sleep process. In the sleep window, the WiFi link does not transmit data; the sleep cycle number is 0.

26. The method according to any one of claims 20 to 24, characterized in that: Before the second electronic device sends a wake-up request message to the first electronic device, the method further includes: The second electronic device lights up the screen.

27. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores one or more computer programs, and the one or more computer programs include instructions, and when the instructions are executed by the processor, the electronic device executes the method as described in any one of claims 1-26.

28. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, characterized in that: When the instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 26.

29. A computer program product, characterized in that When the computer program product is executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 26.

Citation Information

Patent Citations

  • Power management in device to device communications

    CN106717074A