Control method and related apparatus

By periodically waking the Wi-Fi chip from its sleep state and sending information to maintain the connection, the problem of high power consumption in the sleep state of the Wi-Fi chip is solved, thus reducing power consumption and improving energy efficiency.

CN120091393BActive Publication Date: 2025-11-18HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311594116.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-24
Publication Date
2025-11-18
Estimated Expiration
2043-11-24

AI Technical Summary

Technical Problem

Wi-Fi chips in electronic devices consume a lot of power when in sleep mode, mainly due to increased power consumption caused by frequent wake-ups and communication.

Method used

By waking up the Wi-Fi chip from its dormant state in the first cycle and sending information to maintain the connection with the AP, the frequent reception of beacon frames is avoided, reducing the number of times the chip is woken up. The chip is only woken up to receive beacon frames when necessary.

Benefits of technology

It effectively reduces the power consumption of electronic devices, lowers the power consumption of Wi-Fi chips in sleep mode, and improves the energy efficiency of devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120091393B_ABST
    Figure CN120091393B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a control method and related device, which are applied to the technical field of terminals. The method is applied to an electronic device, the electronic device comprising a first chip and a second chip, and the method comprises: transmitting, by the first chip and an access point (AP), data of an application of the electronic device; wherein the second chip is in a dormant state; during the transmission of the data of the application of the electronic device by the first chip and the AP, waking up the second chip at a first period, and when the second chip is woken up, sending, by the second chip, first information to the AP, the first information being used to indicate that the connection between the second chip and the AP is maintained; wherein between adjacent two times of waking up of the second chip, the second chip does not receive a beacon frame from the AP. In this way, the power consumption of the electronic device can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technology, and in particular to a control method and related device. Background Technology

[0002] Some electronic devices are equipped with wireless fidelity (Wi-Fi) chips. When the Wi-Fi chip is connected to an access point (AP), the electronic device can transmit application data via the Wi-Fi chip and the AP. When the electronic device is not transmitting application data via the Wi-Fi chip and the AP, the Wi-Fi chip can be in a sleep state.

[0003] However, electronic devices suffer from high power consumption when the Wi-Fi chip is in a dormant state. Summary of the Invention

[0004] This application provides a control method and related apparatus, applicable to the field of terminal technology. When an electronic device transmits application data through a Wi-Fi chip and an access point (AP), another Wi-Fi chip in a dormant state is woken up in a first cycle to send information to the AP instructing it to maintain its connection with the AP. The other Wi-Fi chip does not receive beacon frames from the AP between consecutive wake-ups. This reduces the number of times the other Wi-Fi chip is woken up while in a dormant state, thereby reducing the power consumption of the electronic device. When both Wi-Fi chips are in a dormant state, both are woken up in a first cycle to send information to the AP instructing it to maintain its connection with the AP. One of the Wi-Fi chips is then woken up in a second cycle to receive beacon frames from the AP, thus indicating that the electronic device is within the AP's signal range. This eliminates the need to wake up the other Wi-Fi chip in a second cycle, further reducing the power consumption of the electronic device.

[0005] In a first aspect, embodiments of this application propose a control method applied to an electronic device, the electronic device including a first chip and a second chip. The method includes: transmitting application data of the electronic device through the first chip and an access point (AP). The second chip is in a sleep state. During the transmission of application data between the first chip and the AP, the second chip is woken up periodically, and upon wake-up, the second chip sends first information to the AP, the first information indicating the maintenance of the connection between the second chip and the AP. Between two consecutive wake-ups, the second chip does not receive beacon frames from the AP.

[0006] In this way, when the electronic device transmits application data through the first chip and the AP, the second chip, which is in a dormant state, is woken up in the first cycle to send information to the AP to instruct the second chip to maintain the connection between the second chip and the AP. There is no need to wake up the second chip in other cycles to receive beacon frames sent by the AP. This can reduce the number of times the second chip is woken up while it is in a dormant state, thereby reducing the power consumption of the electronic device.

[0007] In one possible implementation, during the process of transmitting application data of an electronic device between the first chip and the access point (AP), the method further includes: a second chip receiving second information transmitted by the first chip in a second cycle, the second information indicating that the second chip maintains a connection with the AP, and the second cycle being shorter than the first cycle. Alternatively, the second chip receives second information transmitted by the system-on-a-chip (SoC) of the electronic device in a second cycle.

[0008] In this way, the second chip, which is in a sleep state, does not need to be woken up according to the second cycle, allowing the sleep-state second chip to know that it is maintaining a connection with the AP. Since the second chip in a sleep state does not need to be woken up according to the second cycle, the power consumption of the electronic device is reduced.

[0009] In one possible implementation, the method further includes: waking up the second chip on a first cycle when both the first and second chips are in a sleep state, and sending first information to the AP through the second chip upon wake-up; and waking up the second chip on a second cycle, and receiving a beacon frame from the AP upon wake-up, where the second cycle is shorter than the first cycle; and waking up the first chip on a first cycle, and sending third information to the AP through the first chip upon wake-up, the third information indicating the maintenance of the connection between the first chip and the AP. Between two consecutive wake-ups of the first chip, the first chip does not receive beacon frames from the AP.

[0010] In this way, when both the first and second chips are in a sleep state, there is no need to wake up the first chip in the second cycle, which can reduce the number of times the first chip is woken up, thereby reducing the power consumption of the electronic device.

[0011] In one possible implementation, the power consumption of the second chip is less than that of the first chip.

[0012] In this way, while both the first and second chips are in a sleep state, the power consumption of the electronic device can be further reduced.

[0013] In one possible implementation, waking up the second chip in a second cycle includes: activating the second chip's radio frequency (RF) receive link in a second cycle, the RF receive link being used to receive beacon frames from the AP. Specifically, the second chip's RF transmit link is deactivated, and between two consecutive activations of the second chip's RF receive link, both the RF receive link and the RF transmit link are deactivated.

[0014] In this way, compared to simultaneously activating the RF receiving link and RF transmitting link of the second chip in the second cycle, this embodiment can reduce the power consumption of the electronic device.

[0015] In one possible implementation, waking up the second chip in a first cycle includes: activating the second chip's radio frequency (RF) transmit link in the first cycle, the RF transmit link being used to send first information to the AP. Specifically, the second chip's RF receive link is deactivated, and between two consecutive activations of the second chip's RF transmit link, both the RF receive link and the RF transmit link are deactivated.

[0016] In this way, compared to simultaneously activating the RF receiving link and RF transmitting link of the second chip in the first cycle, this embodiment can reduce the power consumption of the electronic device.

[0017] In one possible implementation, both the first chip and the second chip are Wi-Fi chips.

[0018] This allows electronic devices to access wireless networks.

[0019] In one possible implementation, the first information is an empty data frame.

[0020] This reduces the amount of data in the initial information.

[0021] In one possible implementation, the method further includes: transmitting application data of the electronic device via a second chip and an access point (AP). The first chip is in a sleep state. During the transmission of application data between the second chip and the AP, the second chip is woken up periodically, and upon wake-up, it sends a first message to the AP instructing that the connection between the second chip and the AP be maintained. Between two consecutive wake-ups, the second chip does not receive beacon frames from the AP.

[0022] In this way, if the AP cannot maintain the connection between the second chip and the AP based on the application data transmitted from the second chip to the AP, the AP can maintain the connection between the second chip and the AP based on the first empty data frame, reducing the probability of application data transmission being interrupted due to the AP's failure to maintain the connection between the second chip and the AP.

[0023] Secondly, embodiments of this application provide a control method applied to an electronic device, the electronic device including a first chip and a second chip. The method includes: when both the first chip and the second chip are in a sleep state, waking up the second chip at a first cycle, and when the second chip is woken up, sending first information to an access point (AP) through the second chip, the first information being used to instruct the second chip to maintain the connection between the second chip and the AP; and waking up the second chip at a second cycle, and receiving a beacon frame from the AP when the second chip is woken up, the second cycle being shorter than the first cycle; and waking up the first chip at the first cycle, and when the first chip is woken up, sending third information to the AP through the first chip, the third information being used to instruct the first chip to maintain the connection between the first chip and the AP. Between two consecutive wake-ups of the first chip, the first chip does not receive beacon frames from the AP.

[0024] In this way, when both the first and second chips are in a sleep state, there is no need to wake up the first chip in the second cycle, which can reduce the number of times the first chip is woken up, thereby reducing the power consumption of the electronic device.

[0025] In one possible implementation, the power consumption of the second chip is less than that of the first chip.

[0026] In this way, while both the first and second chips are in a sleep state, the power consumption of the electronic device can be further reduced.

[0027] In one possible implementation, waking up the first chip in a first cycle includes: activating the first chip's radio frequency (RF) transmit link in the first cycle, the RF transmit link being used to send third information to the AP. Specifically, the first chip's RF receive link is deactivated, and between two consecutive activations of the first chip's RF transmit link, both the RF receive link and the RF transmit link are deactivated.

[0028] In this way, compared to simultaneously activating the RF receiving link and RF transmitting link of the first chip in the first cycle, the embodiments of this application can reduce the power consumption of the electronic device.

[0029] In one possible implementation, both the first chip and the second chip are Wi-Fi chips.

[0030] This allows electronic devices to access wireless networks.

[0031] Thirdly, embodiments of this application provide an electronic device comprising: a processor and a memory. The memory stores computer-executable instructions. The processor executes the computer-executable instructions stored in the memory, causing the electronic device to perform the methods as described in the first or second aspect.

[0032] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements the method as described in the first or second aspect.

[0033] Fifthly, embodiments of this application provide a computer program product, which includes a computer program that, when run, causes a computer to perform the method as described in the first or second aspect.

[0034] In a sixth aspect, embodiments of this application provide a chip, the chip including a processor, the processor being configured to invoke a computer program in memory to perform the methods as described in the first or second aspect.

[0035] It should be understood that the third to sixth aspects of this application correspond to the technical solutions of the first or second aspects of this application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation are similar, and will not be repeated here. Attached Figure Description

[0036] Figure 1 This is a scenario diagram representing one possible implementation.

[0037] Figure 2 This is a schematic diagram illustrating how the Wi-Fi secondary chip communicates with the AP while in a sleep state in a possible implementation.

[0038] Figure 3 This is a schematic diagram illustrating how the Wi-Fi secondary chip communicates with the AP during a sleep state, as provided in an embodiment of this application.

[0039] Figure 4 This is a schematic diagram of the structure of the electronic device 100 provided in the embodiments of this application;

[0040] Figure 5 A block diagram relating to software and hardware of an electronic device provided for embodiments of this application;

[0041] Figure 6 This is a schematic diagram illustrating the communication between the Wi-Fi main chip and the Wi-Fi secondary chip provided in this embodiment of the application and the AP.

[0042] Figure 7 Another block diagram relating to the software and hardware of an electronic device provided for embodiments of this application;

[0043] Figure 8 This is another schematic diagram illustrating the communication between the Wi-Fi main chip and the Wi-Fi secondary chip provided in the embodiments of this application and the AP. Detailed Implementation

[0044] To facilitate a clear description of the technical solutions in the embodiments of this application, some terms and technologies involved in the embodiments of this application will be briefly introduced below:

[0045] 1. Access Point (AP)

[0046] An AP can be understood as a network device, such as a wireless router. An AP enables wireless communication between electronic devices and the internet via Wi-Fi technology.

[0047] 2. Beacon Frame

[0048] A beacon frame can be understood as a wireless signal that is periodically broadcast by an access point (AP) to indicate the presence of a wireless network.

[0049] 3. Some terms

[0050] In the embodiments of this application, terms such as "first" and "second" are used to distinguish identical or similar items with substantially the same function and purpose. For example, "first chip" and "second chip" are used only to distinguish different chips and do not limit their order of execution. Those skilled in the art will understand that terms such as "first" and "second" do not limit the quantity or execution order, and that "first" and "second" do not necessarily imply that they are different.

[0051] It should be noted that, in the embodiments of this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design scheme described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0052] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, a--c, bc, or abc, where a, b, and c can be single or multiple.

[0053] It should be noted that the phrase "at...time" in the embodiments of this application can refer to the instant at which a certain situation occurs, or to a period of time after the occurrence of a certain situation; the embodiments of this application do not specifically limit this. Furthermore, the display interface provided in the embodiments of this application is merely an example, and the display interface may include more or less content.

[0054] Figure 1 A scenario diagram of one possible implementation is shown.

[0055] like Figure 1 As shown, this scenario includes an electronic device 100 and an access point (AP) 104. The electronic device 100 may include a system-on-chip (SoC) 101, a Wi-Fi main chip 102, and a Wi-Fi secondary chip 103. Both the Wi-Fi main chip 102 and the Wi-Fi secondary chip 103 can be connected to the AP 104.

[0056] When both the Wi-Fi main chip 102 and the Wi-Fi secondary chip 103 are connected to the AP 104, there may be scenario one, scenario two, or scenario three.

[0057] Scenario 1: Electronic devices via, for example Figure 1 The main link, consisting of Wi-Fi main chip 102 and AP 104, transmits application data of electronic devices, while Wi-Fi secondary chip 103 is in sleep mode.

[0058] In Scenario 1, the power consumption of the Wi-Fi secondary chip 103 in sleep mode is lower than that when transmitting application data. However, while the Wi-Fi secondary chip 103 is in sleep mode, communication still exists between the Wi-Fi secondary chip 103 and the AP 104, which leads to an increase in the power consumption of the electronic device.

[0059] Scenario 2: Electronic devices via, for example Figure 1 The secondary link shown consists of Wi-Fi secondary chip 103 and AP 104, which transmits application data of electronic devices, while Wi-Fi main chip 102 is in sleep mode.

[0060] In Scenario 2, the power consumption of the Wi-Fi main chip 102 is lower when it is in sleep mode compared to the power consumption when transmitting application data. However, while the Wi-Fi main chip 102 is in sleep mode, there is still communication between the Wi-Fi main chip 102 and the AP 104, which leads to an increase in the power consumption of the electronic device.

[0061] Scenario 3: Electronic devices have neither passed the following procedures: Figure 1The data transmitted via the main link, as shown, was not transmitted through a method such as... Figure 1 The secondary link is used to transmit application data, and both the Wi-Fi main chip 102 and the Wi-Fi secondary chip 103 are in sleep mode.

[0062] In scenario three, although both the Wi-Fi main chip 102 and the Wi-Fi secondary chip 103 are in sleep mode, the Wi-Fi main chip 102 communicates with the AP 104 while the Wi-Fi main chip 102 is in sleep mode, and the Wi-Fi secondary chip 103 also communicates with the AP 104 while the Wi-Fi secondary chip 103 is in sleep mode, which leads to an increase in the power consumption of the electronic device.

[0063] To facilitate understanding of the communication between the Wi-Fi chip in sleep mode and the access point, the following section combines... Figure 2 Taking scenario one as an example, the communication between the Wi-Fi secondary chip 103 and the AP 104 during the sleep state is explained.

[0064] Figure 2 This diagram illustrates a possible implementation in which the Wi-Fi secondary chip communicates with the AP while in sleep mode.

[0065] In this embodiment, the connection between the Wi-Fi secondary chip 103 and the AP 104 can be achieved by the Wi-Fi secondary chip 103 performing a four-way handshake with the AP 104 according to the auth, assoc 4-handshake protocol. The specific implementation principle of the connection between the Wi-Fi main chip 102 and the AP 104 is similar to that of the connection between the Wi-Fi secondary chip 103 and the AP 104, and will not be described again here.

[0066] like Figure 2As shown, in scenario one, while the Wi-Fi secondary chip 103 is in sleep mode, it can be woken up every 100 milliseconds (ms) and receive a beacon frame from the AP 104 upon waking. If the Wi-Fi secondary chip 103 receives a beacon frame from the AP 104 upon waking, it indicates that the Wi-Fi secondary chip 103 remains connected to the AP 104. If the number of times the Wi-Fi secondary chip 103 fails to receive a beacon frame from the AP 104 exceeds a preset value, it indicates that the Wi-Fi secondary chip 103 is outside the signal radiation range of the AP 104, or that the electronic device 100 is outside the signal radiation range of the AP 104, thus indicating that the Wi-Fi secondary chip 103 has disconnected from the AP 104. The Wi-Fi secondary chip 103 can then transmit information indicating the disconnection to the SoC 101, allowing the SoC 101 to transmit application data via other communication links. These other communication links can be mobile communication links. Other communication links do not include the main link and the secondary link.

[0067] While the Wi-Fi secondary chip 103 is in sleep mode, it can be woken up every 11 seconds (s) and send a first null data frame to the AP 104 when it is woken up to maintain the connection between the Wi-Fi secondary chip 103 and the AP 104. This ensures that when the electronic device needs to transmit application data through the Wi-Fi secondary chip 103 and the AP 104, the application data of the electronic device can be transmitted in a timely manner through the Wi-Fi secondary chip 103 and the AP 104.

[0068] like Figure 2 As shown in the embodiment, while the Wi-Fi secondary chip 103 is in sleep mode, it is woken up every 100ms and again every 11s. Each wake-up of the Wi-Fi secondary chip 103 generates power consumption, thus increasing the power consumption of the electronic device. Therefore, in Scenario 1, the Wi-Fi secondary chip 103 is periodically woken up to receive beacon frames from AP 104 and also periodically woken up to send the first empty data frame to AP 104, increasing the power consumption of the electronic device and resulting in the problem of high power consumption in Scenario 1.

[0069] In Scenario 2, while the Wi-Fi main chip 102 is in sleep mode, it is periodically woken up to receive beacon frames from the AP 104 and to send second empty data frames to the AP 104. Each time the Wi-Fi main chip 102 is woken up while in sleep mode, it incurs power consumption, thus increasing the power consumption of the electronic device and resulting in the high power consumption issue in Scenario 2.

[0070] The specific implementation principle of the Wi-Fi main chip 102 being periodically woken up to receive beacon frames is related to... Figure 2 The implementation principle of the Wi-Fi secondary chip 103 being periodically woken up to receive beacon frames, as shown in the embodiment, is similar to that of the Wi-Fi main chip 102 being periodically woken up to send the second empty data frame. Figure 2 The specific implementation principle of the Wi-Fi secondary chip 103 shown in the embodiment being periodically woken up to send the first empty data frame is similar, and will not be described again here.

[0071] In Scenario 3, while the Wi-Fi main chip 102 is in sleep mode, it is periodically woken up to receive beacon frames from the AP 104 and also periodically woken up to send a second empty data frame to the AP 104. Similarly, while the Wi-Fi secondary chip 103 is in sleep mode, it is periodically woken up to receive beacon frames from the AP 104 and also periodically woken up to send a first empty data frame to the AP 104. This increases the power consumption of the electronic device, resulting in a high power consumption issue in Scenario 3.

[0072] In Scenario 3, the implementation principle of the Wi-Fi main chip 102 being periodically woken up to receive beacon frames from AP 104 and periodically woken up to send a second empty data frame to AP 104 is similar to that in Scenario 2. Similarly, the implementation principle of the Wi-Fi secondary chip 103 being periodically woken up to receive beacon frames from AP 104 and periodically woken up to send a first empty data frame to AP 104 is similar to that in Scenario 2. Figure 2 The specific implementation principle of the Wi-Fi secondary chip 103 being periodically woken up to receive beacon frames from AP 104 and periodically woken up to send the first empty data frame to AP 104 in Scenario 1 shown in the embodiment is similar, and will not be repeated here.

[0073] In Scenario 1, the electronic device transmits application data via the main link, indicating that the Wi-Fi main chip 102 and AP 104 are connected, or that the electronic device is within the signal radiation range of AP 104. The Wi-Fi secondary chip 103 is located on the electronic device, indicating that it is also connected to AP 104. Conversely, if the electronic device cannot transmit application data via the main link, it indicates that the Wi-Fi main chip 102 has disconnected from AP 104, or that the electronic device has left the signal radiation range of AP 104, and consequently, that the Wi-Fi secondary chip 103 has disconnected from AP 104. The electronic device can then transmit application data via other communication links. Therefore, in Scenario 1, the electronic device can determine whether it is within the signal radiation range of AP 104 based on the application data transmission status on the main link, without requiring the Wi-Fi secondary chip 103 to be woken up every 100ms to receive beacon frames sent by the AP. It should be understood that the electronic device being within the signal radiation range of the AP indicates that the Wi-Fi chip on the electronic device is also within the signal radiation range of the AP.

[0074] Understandably, in Scenario 2, electronic devices can also know whether they are within the signal radiation range of AP 104 based on the data transmission status of the application in the secondary link, without the Wi-Fi main chip 102 needing to be woken up every 100ms to receive beacon frames sent by the AP. The specific implementation principle is similar to that in Scenario 1.

[0075] In view of this, for scenario one or scenario two, this application proposes a control method. When an electronic device transmits application data through a Wi-Fi chip and an access point (AP), another Wi-Fi chip in a dormant state is woken up in a first cycle to send information to the AP instructing it to maintain the connection between the other Wi-Fi chip and the AP. The other Wi-Fi chip does not receive beacon frames sent by the AP between consecutive wake-ups. This reduces the number of times the other Wi-Fi chip is woken up while in a dormant state, thereby reducing the power consumption of the electronic device.

[0076] For example, regarding scenario one, Figure 3 This illustration shows a schematic diagram of the Wi-Fi secondary chip communicating with the AP during a sleep state, as provided in an embodiment of this application.

[0077] like Figure 3 As shown, in scenario one, the electronic device can transmit application data through the main link, while the Wi-Fi secondary chip 103 can be in sleep mode. The specific implementation principle of the connection between the Wi-Fi secondary chip 103 and the AP 104 can be found in [link to documentation]. Figure 2 The specific implementation principle of the connection between the Wi-Fi secondary chip 103 and the AP 104 in this embodiment, and the specific implementation principle of the connection between the Wi-Fi main chip 102 and the AP 104, can be found in [reference needed]. Figure 2 The specific implementation principle of the connection between the Wi-Fi main chip 102 and the AP 104 in the embodiment will not be described in detail here.

[0078] In scenario one, the electronic device can wake up the Wi-Fi secondary chip 103 in the first cycle, and when the Wi-Fi secondary chip 103 is woken up, it sends a first empty data frame to the AP 104 through the Wi-Fi secondary chip 103. The first empty data frame is used to indicate maintaining the connection between the Wi-Fi secondary chip 103 and the AP 104. The first cycle can be 11 seconds. The Wi-Fi secondary chip 103 does not need to be woken up every 100ms. Compared to... Figure 2 In the embodiment, the number of times the Wi-Fi secondary chip 103 is woken up is reduced. In this embodiment, the number of times the Wi-Fi secondary chip 103 is woken up is reduced, thereby reducing the power consumption of the electronic device.

[0079] Understandably, in scenario two, the number of times the Wi-Fi main chip 102 is woken up will also decrease, thereby reducing the power consumption of the electronic device. The specific implementation principle behind the reduced number of times the Wi-Fi main chip 102 is woken up in scenario two is related to... Figure 3 The specific implementation principle of reducing the number of times the Wi-Fi secondary chip 103 is woken up in Scenario 1 shown in the embodiment is similar, and will not be repeated here.

[0080] In the embodiments of this application, in Scenario 1, the wake-up of the Wi-Fi secondary chip every 100ms is cancelled, reducing the number of times the Wi-Fi secondary chip is woken up, thereby reducing the power consumption of the electronic device. In Scenario 2, the wake-up of the Wi-Fi main chip every 100ms is cancelled, reducing the number of times the Wi-Fi main chip is woken up, thereby reducing the power consumption of the electronic device.

[0081] In scenario three, in one implementation, the Wi-Fi secondary chip 103 is woken up every 100ms to receive beacon frames from the AP, and is also woken up every 11s to send a first empty data frame to the AP. The Wi-Fi main chip 102 is woken up every 100ms to receive beacon frames from the AP, and is also woken up every 11s to send a second empty data frame to the AP.

[0082] Since both the Wi-Fi main chip 102 and the Wi-Fi secondary chip 103 are located on the electronic device, in scenario three, one of the chips can periodically receive beacon frames from the access point (AP), thereby determining whether the electronic device is within the AP's signal range. If the electronic device is within the AP's signal range, it indicates that both the Wi-Fi main chip 102 and the Wi-Fi secondary chip 103 maintain a connection with the AP. If the electronic device is outside the AP's signal range, it indicates that both the Wi-Fi main chip 102 and the Wi-Fi secondary chip 103 have disconnected from the AP.

[0083] To address this, and specifically for scenario three, this application embodiment also provides a control method. When both Wi-Fi chips are in sleep mode, the method wakes both chips in a first cycle to send information to the AP instructing them to maintain their connection with the AP. Then, in a second cycle, one of the Wi-Fi chips is woken up to receive a beacon frame from the AP, thus indicating that the electronic device is within the AP's signal radiation range. This eliminates the need to wake up the other Wi-Fi chip in the second cycle, thereby reducing the power consumption of the electronic device. For example, the first cycle can be 11 seconds, and the second cycle can be 100 milliseconds.

[0084] The electronic devices in this application embodiment may include handheld devices with image processing functions, vehicle-mounted devices, etc. For example, some electronic devices include: mobile phones, tablets, PDAs, laptops, mobile internet devices (MIDs), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self-driving vehicles, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, cellular phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication capabilities, computing devices or other processing devices connected to a wireless modem, in-vehicle devices, wearable devices, terminal devices in 5G networks, or future evolution of public land mobile communication networks. Terminal devices in a network (PLMN), etc., are not limited to this in the embodiments of this application.

[0085] Furthermore, in this embodiment, the electronic device can also be an electronic device in an Internet of Things (IoT) system. The electronic device in this embodiment can also be referred to as: user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent, or user device, etc.

[0086] In this embodiment, the electronic device or various network devices include a hardware layer, an operating system layer running on top of the hardware layer, and an application layer running on top of the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and memory (also called main memory). The operating system can be any one or more computer operating systems that implement business processing through processes, such as Linux, Unix, Android, iOS, or Windows. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software.

[0087] To facilitate understanding of the electronic devices provided in the embodiments of this application, the following is combined with... Figure 4 and Figure 5 This section describes the hardware structure and software architecture of electronic devices.

[0088] Figure 4 A schematic diagram of the structure of the electronic device 100 provided in an embodiment of this application is shown.

[0089] like Figure 4 As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0090] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0091] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module.

[0092] For example, the wireless communication module 160 may include, Figure 1 The Wi-Fi main chip 102 and Wi-Fi secondary chip 103 are shown. The processor 110 may include, for example... Figure 1 The SoC 101 shown is described. The wireless communication module 160 can receive electromagnetic waves via the RF receiving link of the Wi-Fi main chip 102 and / or the RF receiving link of the Wi-Fi sub-chip 103, frequency modulate and filter the electromagnetic wave signal, and send the processed signal to the SoC 101. The wireless communication module 160 can also receive signals to be transmitted from the SoC 101, frequency modulate and amplify them, and transmit them via the RF transmitting link of the Wi-Fi main chip 102 and / or the RF transmitting link of the Wi-Fi sub-chip 103.

[0093] Taking scenario one as an example, the function of the hardware in electronic device 100 will be explained. In scenario one, electronic device 100 can transmit application data to the AP and the Wi-Fi main chip 102 of wireless communication module 160, while the Wi-Fi secondary chip 103 is in sleep mode. Electronic device 100 can wake up the Wi-Fi secondary chip 103 of wireless communication module 160 in the first cycle, and when the Wi-Fi secondary chip 103 is woken up, it sends a first empty data frame to AP 104 through the radio frequency transmission link of the Wi-Fi secondary chip 103. Between two consecutive wake-ups, the Wi-Fi secondary chip 103 will not be woken up. This reduces the number of times the Wi-Fi secondary chip 103 is woken up in scenario one, thereby reducing the power consumption of the electronic device.

[0094] It is understandable that in Scenario 2, the Wi-Fi main chip 102 is in sleep mode, and the specific implementation principle of the Wi-Fi main chip 102 being woken up to communicate with AP 104 is similar to the specific implementation principle of the Wi-Fi secondary chip 103 being woken up to communicate with AP 104 in Scenario 1, which will not be repeated here. In this way, the number of times the Wi-Fi main chip 102 is woken up in Scenario 2 can be reduced, thereby reducing the power consumption of electronic devices.

[0095] Taking scenario three as an example, the function of the hardware in electronic device 100 will be explained. In scenario three, both the Wi-Fi main chip 102 and the Wi-Fi secondary chip 103 of the wireless communication module 160 are in a sleep state. Electronic device 100 can wake up the Wi-Fi secondary chip 103 in a first cycle, and when the Wi-Fi secondary chip 103 is woken up, it sends a first empty data frame to AP 104 through the RF transmission link of the Wi-Fi secondary chip 103. Electronic device 100 can wake up the Wi-Fi secondary chip 103 in a second cycle, and when the Wi-Fi secondary chip 103 is woken up, it receives beacon frames from AP 104 through the RF reception link of the Wi-Fi secondary chip 103. Electronic device 100 can also wake up the Wi-Fi main chip 102 in a first cycle, and when the Wi-Fi main chip 102 is woken up, it sends a second empty data frame to AP 104 through the RF transmission link of the Wi-Fi main chip 102. In this scenario, the Wi-Fi main chip 102 will not be woken up between two consecutive wake-up calls. This reduces the number of times the Wi-Fi main chip 102 is woken up in scenario three, thereby reducing the power consumption of the electronic device.

[0096] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This embodiment of the invention uses the layered architecture Android system as an example to illustrate the software architecture of electronic device 100.

[0097] Figure 5 A block diagram of software and hardware for an electronic device provided in an embodiment of this application is shown.

[0098] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, the Hardware Abstraction Layer (HAL), and the kernel layer. The application layer can include a series of application packages. Figure 5 The application framework layer, HAL, and kernel layer are shown, as are the Wi-Fi main chip 102 and Wi-Fi secondary chip 103 of the hardware layer.

[0099] like Figure 5 As shown, the application framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions.

[0100] The application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, or Figure 5 The upper-layer services shown are 501, etc.

[0101] The Hardware Abstraction Layer (HAL) is an interface layer located between the operating system kernel and the hardware circuitry, with the purpose of abstracting the hardware. The HAL can include, for example,... Figure 5 The chip link control 502 is shown.

[0102] The kernel layer is the layer between hardware and software. The kernel layer includes at least display drivers, camera drivers, audio drivers, and sensor drivers, such as... Figure 5 The main chip driver 503 or the secondary chip driver 504 shown are examples of such drivers.

[0103] The following is combined Figure 5 Taking scenario one as an example, the workflow of the software and hardware of electronic device 100 is illustrated. The AP is not in... Figure 5 As shown in the image.

[0104] like Figure 5As shown, when both the Wi-Fi main chip 102 and the Wi-Fi secondary chip 103 are connected to the AP, and an application is started on the electronic device, if the application priority of the started application corresponds to the main link, the upper-layer service 501 can transmit information A indicating the initiation of the main link to the chip link control 502. The application priority can represent the application's data transmission requirement level. Data transmission requirements can include data transmission rate and / or latency. Optionally, if the data volume of the started application is greater than a preset data volume, or if the sum of the data volumes of multiple started applications is greater than a preset data volume, then the upper-layer service 501 can transmit information A to the chip link control 502.

[0105] Upon receiving information A, the chip link control 502 can transmit information B to the secondary chip driver 504. Information B may indicate that the Wi-Fi secondary chip 103 is in a sleep state and has cancelled the reception of beacon frames. The secondary chip driver 504 can then transmit information B to the Wi-Fi secondary chip 103.

[0106] Upon receiving information B, the Wi-Fi secondary chip 103 can shut down its RF receiving and RF transmitting links. The Wi-Fi secondary chip 103 can also control the first timer to be on and the second timer to be off. The Wi-Fi secondary chip 103 then enters a sleep state.

[0107] Among them, the first timer, which is in the enabled state, can wake up the Wi-Fi sub-chip 103 when the first timer duration reaches the first cycle.

[0108] While the Wi-Fi secondary chip 103 is in sleep mode, when it is woken up by the first timer, its RF receiving link and RF transmitting link can be activated. A first empty data frame is then sent to the AP via the RF transmitting link to maintain the connection between the Wi-Fi secondary chip 103 and the AP. The first cycle is, for example, 11 seconds.

[0109] From the moment the Wi-Fi secondary chip 103 is woken up by the first timer, it can start timing to obtain a first timing duration. When the first timing duration reaches a first duration threshold, the Wi-Fi secondary chip 103 can shut down its RF receiving link and RF transmitting link and enter a sleep state. The first duration threshold is less than a first cycle.

[0110] When the first timer reaches the first cycle after the first timer duration, the first timer, which is in the on state, restarts timing and wakes up the Wi-Fi secondary chip 103 again when the first timer duration reaches the first cycle.

[0111] For the second timer, when it is in the enabled state, the second timer can wake up the Wi-Fi secondary chip 103 when the second timer duration reaches the second cycle. When the second timer is in the disabled state, the second timer will not wake up the Wi-Fi secondary chip 103.

[0112] In Scenario 1, the second timer is in the off state. During the period when the Wi-Fi secondary chip 103 is in the sleep state, the Wi-Fi secondary chip 103 will not be periodically woken up by the second timer. In this way, the number of times the Wi-Fi secondary chip 103 is woken up is reduced, thereby reducing the power consumption of the electronic device.

[0113] Optionally, when the Wi-Fi secondary chip 103 is woken up by the first timer, its RF receiving link can be turned on but its RF transmitting link can be turned on instead, and the first empty data frame can be sent to the AP through the RF transmitting link of the Wi-Fi secondary chip 103. In this way, the power consumption generated by the RF receiving link of the Wi-Fi secondary chip 103 being turned on can be reduced, thereby reducing the power consumption of the electronic device.

[0114] Optionally, the main link can also be a link composed of chip link control 502, main chip driver 503, Wi-Fi main chip 102, and AP. When the upper-layer service 501 transmits information A to chip link control 502, the application data of the electronic device can be transmitted through the main link. Wi-Fi main chip 102 or chip link control 502 can transmit information C to Wi-Fi secondary chip 103 in a second cycle. Information C can indicate that Wi-Fi secondary chip 103 is maintaining a connection with AP. If the number of times Wi-Fi secondary chip 103 does not receive information C exceeds a preset value, it can indicate that the electronic device 100 is not within the signal radiation range of AP 104. In this case, Wi-Fi secondary chip 103 can transmit information to SoC 101 indicating that Wi-Fi secondary chip 103 has disconnected from AP 104. The information indicating that Wi-Fi secondary chip 103 has disconnected from AP 104 can be a disconnection event indicating beacon frame loss.

[0115] Thus, even if the Wi-Fi secondary chip 103 is not woken up in the second cycle, or if the RF receiving link of the Wi-Fi secondary chip 103 is in a closed state, the Wi-Fi secondary chip 103 can know that it is maintaining a connection with the AP. Furthermore, if the Wi-Fi main chip 102 fails to transmit a disconnection event to the SoC of the electronic device due to a malfunction, the Wi-Fi secondary chip 103 can also transmit the disconnection event to the SoC of the electronic device. Applications of the electronic device can receive the disconnection event and perform appropriate processing based on it. For example, the settings application of the electronic device can clear the icon indicating a connected Wi-Fi connection in the status bar upon receiving a disconnection event. The chip link control 502 can belong to the SoC of the electronic device.

[0116] Optionally, if the AP receives the first empty data frame sent by the Wi-Fi secondary chip 103, the AP will not remove the identifier of the Wi-Fi secondary chip 103 from the station set maintained by the AP. The station set may contain the identifiers of Wi-Fi chips connected to the AP. The AP may maintain the connection between the Wi-Fi chip corresponding to the identifier in the station set and the AP. It should be understood that if the AP receives a data frame containing application data sent by the Wi-Fi main chip 102, the AP will not remove the identifier of the Wi-Fi main chip 102 from the station set maintained by the AP. Optionally, if the AP does not receive the first empty data frame sent by the Wi-Fi secondary chip 103 within a preset time period, the AP may remove the identifier of the Wi-Fi secondary chip 103 from the station set, and thus the AP will not maintain the connection between the Wi-Fi secondary chip 103 and the AP. The preset time period may be longer than the first cycle. It should be understood that if the AP does not receive a data frame sent by the Wi-Fi main chip 102 within a preset time period, the AP can remove the identifier of the Wi-Fi main chip 102 from the site set. The site set can be in the form of a queue or a table; this application embodiment does not limit the specific form of the site set.

[0117] Understandably, a higher application priority corresponds to higher data transmission requirements, such as a higher data transmission rate and / or lower latency. Optionally, if the application priority is higher than the preset priority, it can correspond to the primary link. If the application priority is lower than or equal to the preset priority, it can correspond to the secondary link.

[0118] Understandably, in Scenario 2, when both the Wi-Fi main chip 102 and the Wi-Fi secondary chip 103 are connected to the AP and the electronic device's application is started, if the application priority of the started application corresponds to the secondary link, the upper-layer service 501 can transmit information D indicating that the secondary link has been started to the chip link control 502. Optionally, if the data volume of the started application is less than or equal to a preset data volume, or if the sum of the data volumes of multiple started applications is less than or equal to a preset data volume, then the upper-layer service 501 can transmit information D to the chip link control 502.

[0119] Upon receiving information D, the chip link control 502 can transmit information E to the main chip driver 503. Information E may indicate that the Wi-Fi main chip 102 is in a sleep state and has cancelled the reception of beacon frames. The main chip driver 503 can also transmit information E to the Wi-Fi main chip 102.

[0120] Upon receiving information E, the Wi-Fi main chip 102 can shut down its RF receiving and RF transmitting links. The Wi-Fi main chip 102 can also control the third timer to be on and the fourth timer to be off. The Wi-Fi main chip 102 then enters sleep mode.

[0121] Among them, the third timer, which is in the active state, can wake up the Wi-Fi main chip 102 when the third timer duration reaches the first cycle.

[0122] While the Wi-Fi main chip 102 is in sleep mode, when it is woken up by the third timer, its RF receiving link and RF transmitting link can be activated, and a second empty data frame can be sent to the AP via the RF transmitting link. The second empty data frame is used to indicate that the connection between the Wi-Fi main chip 102 and the AP should be maintained.

[0123] From the moment the Wi-Fi main chip 102 is woken up by the first timer, the Wi-Fi main chip 102 can start timing to obtain a third timing duration. When the third timing duration reaches the first duration threshold, the Wi-Fi main chip 102 can shut down the RF receiving link and the RF transmitting link of the Wi-Fi main chip 102 and enter a sleep state.

[0124] When the third timer reaches the first cycle of its third timing duration, the third timer, which is in the active state, restarts timing and wakes up the Wi-Fi main chip 102 again when the third timing duration reaches the first cycle.

[0125] For the fourth timer, when it is enabled, the Wi-Fi main chip 102 will be woken up when the fourth timer duration reaches the second cycle. When it is disabled, the fourth timer will not wake up the Wi-Fi main chip 102.

[0126] In scenario two, the fourth timer is in the off state. While the Wi-Fi main chip 102 is in sleep mode, the Wi-Fi main chip 102 will not be periodically woken up by the fourth timer. This reduces the number of times the Wi-Fi main chip 102 is woken up, thereby reducing the power consumption of the electronic device.

[0127] Optionally, when the Wi-Fi main chip 102 is woken up by the third timer, its RF receiving link can be turned on but its RF transmitting link can be turned on instead. The second empty data frame can then be sent to the AP via the RF transmitting link of the Wi-Fi main chip 102. This reduces the power consumption caused by the RF receiving link of the Wi-Fi main chip 102 being in the on state, thereby reducing the power consumption of the electronic device.

[0128] Optionally, the secondary link can also be a link composed of chip link control 502, secondary chip driver 504, Wi-Fi secondary chip 103, and AP. When the upper-layer service 501 transmits information D to chip link control 502, the application data of the electronic device can be transmitted through the secondary link. Wi-Fi secondary chip 103 or chip link control 502 can transmit information F to Wi-Fi main chip 102 in a second cycle. Information F can indicate that Wi-Fi main chip 102 remains connected to the AP. If the number of times Wi-Fi main chip 102 does not receive information F exceeds a preset value, it can indicate that the electronic device 100 is outside the signal radiation range of AP 104. In this case, Wi-Fi main chip 102 can transmit information to SoC 101 indicating that Wi-Fi main chip 102 has disconnected from AP 104. The information indicating that Wi-Fi main chip 102 has disconnected from AP 104 can be a disconnection event indicating beacon frame loss.

[0129] Thus, even if the Wi-Fi main chip 102 is not woken up in the second cycle, or if the RF receiving link of the Wi-Fi main chip 102 is in a closed state, the Wi-Fi main chip 102 can know that it is maintaining a connection with the AP. Furthermore, if the Wi-Fi secondary chip 103 fails to transmit a disconnection event to the SoC of the electronic device due to a malfunction, the Wi-Fi main chip 102 can still transmit the disconnection event to the SoC of the electronic device.

[0130] Optionally, if the AP receives a second empty data frame sent by the Wi-Fi main chip 102, the AP will not remove the identifier of the Wi-Fi main chip 102 from the site set maintained by the AP, so that the AP can maintain the connection between the Wi-Fi main chip 102 and the AP. It should be understood that if the AP receives an application data frame sent by the Wi-Fi secondary chip 103, the AP will not remove the identifier of the Wi-Fi secondary chip 103 from the site set maintained by the AP, so that the AP can maintain the connection between the Wi-Fi secondary chip 103 and the AP. Optionally, if the AP does not receive a second empty data frame sent by the Wi-Fi main chip 102 within a preset time period, the AP can remove the identifier of the Wi-Fi main chip 102 from the site set, thus the AP will not maintain the connection between the Wi-Fi main chip 102 and the AP. It should be understood that if the AP does not receive a data frame sent by the Wi-Fi secondary chip 103 within a preset time period, the AP can remove the identifier of the Wi-Fi secondary chip 103 from the site set. In this way, the AP will not maintain the connection between the Wi-Fi secondary chip 103 and the AP.

[0131] Regarding scenario one, Figure 6 This illustration shows a schematic diagram of a Wi-Fi main chip and a Wi-Fi secondary chip communicating with an access point (AP) according to an embodiment of this application.

[0132] like Figure 6 As shown, in Scenario 1, the Wi-Fi main chip 102 and the AP can transmit data frames containing application data. The Wi-Fi secondary chip 103 can be woken up in the first cycle, and when woken up, the Wi-Fi secondary chip 103 sends a first empty data frame or a first empty data frame to the AP to maintain the connection between the Wi-Fi secondary chip 103 and the AP. While the Wi-Fi secondary chip 103 is sending the first empty data frame to the AP, the Wi-Fi secondary chip 103 can receive beacon frames from the AP, or it can shut down its radio frequency receiving link and not receive beacon frames from the AP.

[0133] In Scenario 1, the Wi-Fi secondary chip 103 was not woken up in the second cycle, which reduced the number of times the Wi-Fi secondary chip 103 was woken up while in sleep mode, thereby reducing the power consumption of the electronic device.

[0134] Optionally, if the electronic device contains three or more Wi-Fi chips, and only one Wi-Fi chip is transmitting application data while the other Wi-Fi chips are in sleep mode, the specific implementation principle of communication between the other Wi-Fi chips and the access point (AP) is as follows: Figure 6The specific implementation principle of communication between the Wi-Fi secondary chip 103 and the AP in the embodiment is similar, and will not be repeated in this application embodiment. In this way, there is no need to wake up other Wi-Fi chips in the second cycle, thereby reducing the power consumption of electronic devices.

[0135] like Figure 5 and Figure 6 As shown in the embodiment, in Scenario 1, the Wi-Fi secondary chip controls a first timer to be on and a second timer to be off. This allows the secondary chip to be woken up by the first timer in a first cycle to send a first empty data frame to the AP while it is in sleep mode. The second timer does not wake the secondary chip, reducing the number of times the secondary chip is woken up in Scenario 1 and thus reducing the power consumption of the electronic device. In Scenario 1, the power consumption of the electronic device is further reduced by not activating the RF receiving link of the secondary chip when it is woken up. Furthermore, information C is transmitted to the secondary chip in a second cycle via the Wi-Fi main chip or chip link control. This allows the secondary chip to know that it is maintaining a connection with the AP even when it does not receive beacon frames from the AP. It also allows the secondary chip to transmit disconnection events to the SoC of the electronic device even if the main Wi-Fi chip is unable to transmit disconnection events due to a fault. This enables the application of the electronic device to receive the disconnection events and perform appropriate processing based on them.

[0136] like Figure 5 As shown in the embodiment, in scenario two, the Wi-Fi main chip controls the third timer to be on and the fourth timer to be off. This allows the Wi-Fi main chip to be woken up by the third timer in the first cycle to send a second empty data frame to the AP while it is in sleep mode, while the fourth timer does not wake it up. This reduces the number of times the Wi-Fi main chip is woken up in scenario two, thereby reducing the power consumption of the electronic device. In scenario two, the power consumption of the electronic device can be further reduced by not activating the RF receiving link of the Wi-Fi main chip when it is woken up. Furthermore, by controlling the Wi-Fi main chip or the chip link to transmit information F to the Wi-Fi main chip in the second cycle, even when the Wi-Fi main chip does not receive beacon frames from the AP, it can still know that it is connected to the AP. This allows the Wi-Fi main chip to transmit disconnection events to the SoC of the electronic device even if the Wi-Fi secondary chip fails to transmit disconnection events due to a malfunction. This enables the electronic device's applications to receive disconnection events and perform appropriate processing based on them.

[0137] The control methods provided by the embodiments of this application for scenario one or scenario two have been described above. The control method provided by the embodiments of this application for scenario three will be described below.

[0138] For example, regarding scenario three, Figure 7 Another block diagram of software and hardware for an electronic device provided in an embodiment of this application is shown.

[0139] like Figure 7 As shown, when the electronic device receives a user pressing the power button, the SoC of the electronic device can transmit information G indicating that the operating system of the electronic device has entered a sleep state to both the main chip driver 503 and the sub-chip driver 504. The main chip driver 503 transmits information G to the Wi-Fi main chip 102. The sub-chip driver 504 transmits information G to the Wi-Fi sub-chip 103.

[0140] In one possible implementation, upon receiving information G, the Wi-Fi main chip 102 can shut down its radio frequency receiving link and radio frequency transmitting link. The Wi-Fi main chip 102 can also control a third timer to be on and a fourth timer to be off. The Wi-Fi main chip 102 then enters a sleep state.

[0141] Upon receiving information G, the Wi-Fi secondary chip 103 can shut down its RF receiving and RF transmitting links. The Wi-Fi secondary chip 103 can also control both the first and second timers to be on. The Wi-Fi secondary chip 103 then enters a sleep state.

[0142] The second timer, which is in the active state, can wake up the Wi-Fi sub-chip 103 when the second timer duration reaches the second cycle.

[0143] When the Wi-Fi secondary chip 103 is woken up by the second timer, its RF receiving link and RF transmitting link can be activated, and beacon frames from the AP can be received through the RF receiving link. The second period is, for example, 100ms. Optionally, when the Wi-Fi secondary chip 103 is woken up by the second timer, its RF receiving link can be activated, but its RF transmitting link can be deactivated, thus reducing the power consumption of the electronic device.

[0144] From the moment the Wi-Fi secondary chip 103 is woken up by the second timer, it can start timing to obtain a second timing duration. When the second timing duration reaches the second duration threshold, the Wi-Fi secondary chip 103 can control both its RF receiving link and RF transmitting link to be in a closed state. The Wi-Fi secondary chip 103 then enters a sleep state again. The second duration threshold is less than the second cycle. Optionally, the first duration threshold and the second duration threshold can be the same or different. For example, both the first duration threshold and the second duration threshold can be 5ms.

[0145] When the second timing duration of the second timer reaches the second cycle, the second timer, which is in the on state, restarts timing and wakes up the Wi-Fi sub-chip 103 again when the second timing duration reaches the second cycle.

[0146] Optionally, when the Wi-Fi secondary chip 103 receives a beacon frame from the AP, it can transmit information F to the Wi-Fi main chip 102 via the high-speed bus. This way, the Wi-Fi main chip 102 does not need to receive beacon frames from the AP, and therefore does not need to be periodically woken up to activate its RF receiving link, reducing power consumption when the RF receiving link is active, and consequently reducing the power consumption of the electronic device. This allows the Wi-Fi main chip 102 to know that it is maintaining a connection with the AP even when it does not receive a beacon frame from the AP. Furthermore, it allows the main chip 102 to transmit a disconnection event to the electronic device's SoC even if the Wi-Fi secondary chip 103 fails to transmit the disconnection event due to a malfunction.

[0147] Optionally, when the Wi-Fi secondary chip 103 is in sleep mode and the duration for which the Wi-Fi main chip 102 has not transmitted application data frames to the SoC reaches the second duration threshold, the SoC can transmit information G to the Wi-Fi main chip 102 through the main chip driver 503. This allows the Wi-Fi main chip 102 to enter sleep mode after completing the transmission of application data, thereby reducing the power consumption of the electronic device and maintaining the connection between the Wi-Fi main chip 102 and the AP.

[0148] Optionally, if the Wi-Fi main chip 102 is in sleep mode and the duration for which the Wi-Fi secondary chip 103 has not transmitted application data frames to the SoC reaches the second duration threshold, the SoC can transmit information G to the Wi-Fi secondary chip 103 through the secondary chip driver 504. This allows the Wi-Fi secondary chip 103 to enter sleep mode after completing the transmission of application data, thereby reducing the power consumption of the electronic device and maintaining the connection between the Wi-Fi secondary chip 103 and the AP.

[0149] In Scenario 3 shown in this application embodiment, the Wi-Fi secondary chip 103 can be woken up by a first timer in the on state for a first cycle to send a first empty data frame to the AP. The Wi-Fi secondary chip 103 can also be woken up by a second timer in the on state for a second cycle to receive beacon frames from the AP. The Wi-Fi main chip 102 can be woken up by a third timer in the on state for a first cycle to send a second empty data frame to the AP. The fourth timer in the off state will not wake up the Wi-Fi main chip 102, reducing the number of times the Wi-Fi main chip 102 is woken up, thereby reducing the power consumption of the electronic device.

[0150] In another possible implementation, upon receiving information G, the Wi-Fi main chip 102 can shut down its RF receive link and RF transmit link. The Wi-Fi main chip 102 can also control the third and fourth timers to be on. The Wi-Fi main chip 102 then enters a sleep state.

[0151] Upon receiving information G, the Wi-Fi secondary chip 103 can shut down its RF receiving link and RF transmitting link. The Wi-Fi secondary chip 103 can also control the first timer to be on and the second timer to be off. The Wi-Fi secondary chip 103 then enters a sleep state.

[0152] Among them, the fourth timer, which is in the active state, can wake up the Wi-Fi main chip 102 when the fourth timer duration reaches the second cycle.

[0153] When the Wi-Fi main chip 102 is woken up by the fourth timer, its RF receiving link and RF transmitting link can be activated, and beacon frames from the AP can be received through the RF receiving link. Optionally, when the Wi-Fi main chip 102 is woken up by the fourth timer, its RF receiving link can be activated, but its RF transmitting link can be deactivated, thus reducing the power consumption of the electronic device.

[0154] From the moment the Wi-Fi main chip 102 is woken up by the second timer, the Wi-Fi main chip 102 can start timing to obtain a fourth timing duration. When the fourth timing duration reaches the second duration threshold, the Wi-Fi main chip 102 can shut down the RF receiving link and the RF transmitting link of the Wi-Fi main chip 102 and enter a sleep state.

[0155] When the fourth timer reaches the second cycle of its fourth timing duration, the fourth timer, which is in the active state, restarts timing and wakes up the Wi-Fi main chip 102 again when the fourth timing duration reaches the second cycle.

[0156] Optionally, when the Wi-Fi main chip 102 receives a beacon frame from the AP, it can transmit information C to the Wi-Fi secondary chip 103 via the high-speed bus. This way, the Wi-Fi secondary chip 103 does not need to receive beacon frames from the AP, and therefore does not need to be periodically woken up to enable its RF receiving link, reducing power consumption when the RF receiving link is active, and consequently reducing the power consumption of the electronic device. This allows the Wi-Fi secondary chip 103 to know it is maintaining a connection with the AP even when it does not receive a beacon frame from the AP. Furthermore, it enables the Wi-Fi secondary chip 103 to transmit a disconnection event to the electronic device's SoC even if the Wi-Fi main chip 102 is unable to transmit the disconnection event due to a malfunction.

[0157] In Scenario 3 of this application embodiment, the Wi-Fi main chip 102 can be woken up by a third timer in the on state for a first cycle to send a second empty data frame to the AP. The Wi-Fi main chip 102 can also be woken up by a fourth timer in the on state for a second cycle to receive beacon frames from the AP. The Wi-Fi secondary chip 103 can be woken up by a first timer in the on state for a first cycle to send a first empty data frame to the AP. The second timer in the off state will not wake up the Wi-Fi secondary chip 103, reducing the number of times the Wi-Fi secondary chip 103 is woken up, thereby reducing the power consumption of the electronic device.

[0158] Optionally, the power consumption of the Wi-Fi secondary chip 103 can be less than that of the Wi-Fi main chip 102. Thus, in scenario three, waking up the Wi-Fi secondary chip 103 in both the first and second cycles, and waking up the Wi-Fi main chip 102 in the first cycle but not in the second cycle, can reduce the power consumption of the electronic device.

[0159] For scenario three, Figure 8 Another schematic diagram is also shown, illustrating how the Wi-Fi main chip and Wi-Fi secondary chip provided in this embodiment communicate with the AP.

[0160] like Figure 8 As shown, in scenario three, both the Wi-Fi main chip 102 and the Wi-Fi secondary chip 103 are in a sleep state. The Wi-Fi secondary chip 103 can be woken up in a second cycle, and when woken up, it receives beacon frames from the AP. Alternatively, the Wi-Fi secondary chip 103 can be woken up in a first cycle, and when woken up, it sends a first empty data frame or a second empty data frame to the AP to maintain the connection between the Wi-Fi secondary chip 103 and the AP. Similarly, the Wi-Fi main chip 102 can be woken up in a first cycle, and when woken up, it sends a second empty data frame or a second empty data frame to the AP to maintain the connection between the Wi-Fi main chip 102 and the AP.

[0161] When the Wi-Fi secondary chip 103 sends the first empty data frame to the AP, the Wi-Fi secondary chip 103 can receive beacon frames from the AP, and the Wi-Fi secondary chip 103 can also shut down its RF receiving link and not receive beacon frames from the AP. When the Wi-Fi main chip 102 sends the second empty data frame to the AP, the Wi-Fi main chip 102 can receive beacon frames from the AP, and the Wi-Fi main chip 102 can also shut down its RF receiving link and not receive beacon frames from the AP.

[0162] In scenario three, the Wi-Fi main chip 102 was not woken up in the second cycle, which reduced the number of times the Wi-Fi main chip 102 was woken up, thereby reducing the power consumption of the electronic device.

[0163] Optionally, if the electronic device contains three or more Wi-Fi chips, when multiple Wi-Fi chips in the electronic device are in sleep mode, one of the Wi-Fi chips can be woken up in a first cycle to send an empty data frame to the access point (AP). This single Wi-Fi chip can also be woken up in a second cycle to receive beacon frames from the AP. The specific implementation principle is similar to... Figure 8The specific implementation principle of communication between the Wi-Fi secondary chip 103 and the AP in the embodiment is similar, and will not be repeated in this application embodiment. Other Wi-Fi chips among the multiple Wi-Fi chips can be woken up in the first cycle to send empty data frames to the AP. Optionally, when a Wi-Fi chip receives a beacon frame, it can transmit information indicating that the electronic device is within the signal radiation range of the AP to other Wi-Fi chips through a high-speed bus. In this way, there is no need to wake up other Wi-Fi chips in the second cycle, thereby reducing the power consumption of the electronic device.

[0164] This application embodiment also provides a control method applied to an electronic device, the electronic device including a first chip and a second chip, the method comprising:

[0165] Data from electronic devices is transmitted via the first chip and the access point (AP). The second chip is in sleep mode.

[0166] During the process of transmitting application data between the first chip and the access point (AP) for electronic devices, the second chip is woken up according to a first cycle. Upon wake-up, the second chip sends first information to the AP, instructing the second chip to maintain the connection with the AP. Between two consecutive wake-ups, the second chip does not receive beacon frames from the AP. In this embodiment, the first cycle can be 11 seconds.

[0167] For example, in an embodiment of this application, the first chip may be Figure 5 In this embodiment, the Wi-Fi main chip 102 and the second chip can be... Figure 5 In this embodiment, the Wi-Fi secondary chip 103 and the access point (AP) can be... Figure 5 The AP in this embodiment. The first information can be a first empty data frame. The electronic device transmits application data of the electronic device through the Wi-Fi main chip 102 and the AP. The Wi-Fi secondary chip 103 is in a sleep state. During the transmission of application data between the Wi-Fi main chip 102 and the AP, the Wi-Fi secondary chip 103 is woken up according to a first cycle, and when the Wi-Fi secondary chip 103 is woken up, it sends a first empty data frame to the AP. Between two consecutive wake-ups, the Wi-Fi secondary chip 103 does not receive beacon frames from the AP. For the specific implementation principle of this embodiment, please refer to... Figure 5 The specific implementation principle of Scenario 1 in the embodiment will not be repeated here.

[0168] For example, in an embodiment of this application, the first chip may be Figure 5 In the embodiment, the Wi-Fi secondary chip 103, the second chip can be... Figure 5In this embodiment, the Wi-Fi main chip 102 and the access point (AP) can be... Figure 5 The AP in the embodiment. The first information may be Figure 5 The first empty data frame in the embodiment. The first information can be the second empty data frame. The electronic device transmits application data of the electronic device through the Wi-Fi sub-chip 103 and the AP. The Wi-Fi main chip 102 is in a sleep state. During the transmission of application data between the Wi-Fi sub-chip 103 and the AP, the Wi-Fi main chip 102 is woken up according to a first cycle, and when the Wi-Fi main chip 102 is woken up, it sends a second empty data frame to the AP. Between two consecutive wake-ups of the Wi-Fi sub-chip 103, the Wi-Fi sub-chip 103 does not receive beacon frames from the AP. For the specific implementation principle of this embodiment, please refer to [reference needed]. Figure 5 The specific implementation principle of Scenario 2 in the embodiment is similar, and will not be repeated here.

[0169] In this way, when the electronic device transmits application data through the first chip and the AP, the second chip, which is in a dormant state, is woken up in the first cycle to send information to the AP instructing it to maintain the connection between the second chip and the AP. There is no need to wake the second chip in other cycles to receive beacon frames sent by the AP. This reduces the number of times the second chip is woken up while in a dormant state, thereby reducing the power consumption of the electronic device.

[0170] Optionally, during the process of transmitting data between the first chip and the access point (AP) for the electronic device, the method further includes:

[0171] The second chip receives the second information transmitted by the first chip in a second cycle. The second information indicates that the second chip is maintaining a connection with the AP. The second cycle is shorter than the first cycle.

[0172] Alternatively, the second chip receives second information transmitted by the system-on-a-chip (SoC) of the electronic device in a second cycle.

[0173] For example, in the first chip is Figure 5 The Wi-Fi main chip 102 in the embodiment, and the second chip are Figure 5 In the case of the Wi-Fi secondary chip 103 in the embodiment, the first information can be a first empty data frame, and the second information can be... Figure 5 Information C in the embodiment. (e.g.) Figure 5 As shown in Scenario 1 of the embodiment, the Wi-Fi secondary chip 103 can receive information C transmitted by the Wi-Fi main chip 102 to the Wi-Fi secondary chip 103 in a second cycle. Alternatively, the Wi-Fi secondary chip 103 can receive information C transmitted by the SoC through the chip link control 502 in a second cycle. The second cycle can be 100ms.

[0174] For example, in the first chip is Figure 5 In this embodiment, the Wi-Fi secondary chip 103, the second chip is Figure 5 In the case of the Wi-Fi main chip 102 in the embodiment, the first information can be a second empty data frame, and the second information can also be... Figure 5 Information F in the embodiment. For example... Figure 5 As shown in Scenario 2 of the embodiment, the Wi-Fi main chip 102 can receive information F transmitted by the Wi-Fi secondary chip 103 in a second cycle. Alternatively, the Wi-Fi main chip 102 can receive information F transmitted by the SoC through the chip link control 502 in a second cycle.

[0175] In this way, the second chip, which is in a sleep state, does not need to be woken up according to the second cycle, allowing the sleep-state second chip to know that it is maintaining a connection with the AP. Since the second chip in a sleep state does not need to be woken up according to the second cycle, the power consumption of the electronic device is reduced.

[0176] Optionally, the method provided in this application embodiment further includes:

[0177] When both the first and second chips are in sleep mode, the second chip is woken up according to a first cycle, and upon waking, the second chip sends first information to the AP. The second chip is also woken up according to a second cycle, and upon waking, it receives beacon frames from the AP, where the second cycle is shorter than the first cycle.

[0178] The first chip is woken up in the first cycle, and upon wake-up, it sends third information to the AP, instructing the first chip to maintain the connection with the AP. Between two consecutive wake-ups, the first chip does not receive beacon frames from the AP.

[0179] For example, the first chip may be Figure 7 In this embodiment, the Wi-Fi main chip 102 and the second chip can be... Figure 7 In this embodiment, the Wi-Fi secondary chip 103 and the access point (AP) can be... Figure 7 In the embodiment, the first information (AP) can be a first empty data frame, and the third information can be a second empty data frame. For the specific implementation principle of this application embodiment, please refer to [link / reference needed]. Figure 7The specific implementation principle of Scenario 1 in this embodiment is as follows: When both the Wi-Fi main chip 102 and the Wi-Fi secondary chip 103 are in sleep mode, the Wi-Fi secondary chip 103 is woken up in a first cycle, and a first empty data frame is sent to the AP when the Wi-Fi secondary chip 103 is woken up. The Wi-Fi secondary chip 103 is then woken up in a second cycle, and a beacon frame from the AP is received when the Wi-Fi secondary chip 103 is woken up. The Wi-Fi main chip 102 is also woken up in the first cycle, and a second empty data frame is sent to the AP when the Wi-Fi main chip 102 is woken up. Between two consecutive wake-ups of the Wi-Fi main chip 102, the Wi-Fi main chip 102 does not receive beacon frames from the AP.

[0180] For example, the first chip may be Figure 7 In the embodiment, the Wi-Fi secondary chip 103, the second chip can be... Figure 7 In this embodiment, the Wi-Fi main chip 102 and the access point (AP) can be... Figure 7 In the embodiment, the first information can be a second empty data frame, and the third information can be a first empty data frame. For the specific implementation principle of this application embodiment, please refer to... Figure 7 The specific implementation principle of Scenario 2 in this embodiment is as follows: When both the Wi-Fi main chip 102 and the Wi-Fi secondary chip 103 are in sleep mode, the Wi-Fi main chip 102 is woken up in a first cycle, and when the Wi-Fi main chip 102 is woken up, it sends a second empty data frame to the AP. The Wi-Fi main chip 102 is also woken up in a second cycle, and when it is woken up, it receives a beacon frame from the AP. The Wi-Fi secondary chip 103 is woken up in the first cycle, and when it is woken up, it sends a first empty data frame to the AP. Between two consecutive wake-ups of the Wi-Fi secondary chip 103, the Wi-Fi secondary chip 103 does not receive beacon frames from the AP.

[0181] In this way, when both the first and second chips are in a sleep state, there is no need to wake up the first chip in the second cycle, which can reduce the number of times the first chip is woken up, thereby reducing the power consumption of the electronic device.

[0182] Optionally, the power consumption of the second chip is less than that of the first chip.

[0183] In this way, while both the first and second chips are in a sleep state, the power consumption of the electronic device can be further reduced.

[0184] Optionally, waking up the second chip in the second cycle includes:

[0185] The second chip's RF receive link is activated in the second cycle. This RF receive link is used to receive beacon frames from the AP. During this cycle, the second chip's RF transmit link is deactivated. Between two consecutive activations of the second chip's RF receive link, both the RF receive and RF transmit links are deactivated.

[0186] In this way, compared to simultaneously activating the RF receiving link and RF transmitting link of the second chip in the second cycle, the embodiments of this application can reduce the power consumption of the electronic device.

[0187] Optionally, waking up the second chip in the first cycle includes:

[0188] The second chip's RF transmit link is activated in the first cycle, and this RF transmit link is used to send the first information to the AP. During this cycle, the second chip's RF receive link is deactivated. Between two consecutive activations of the second chip's RF transmit link, both the RF receive link and the RF transmit link are deactivated.

[0189] In this way, compared to simultaneously activating the RF receiving link and RF transmitting link of the second chip in the first cycle, the embodiments of this application can reduce the power consumption of the electronic device.

[0190] Optionally, the method provided in this application embodiment further includes:

[0191] Data from electronic devices is transmitted via a second chip and an access point (AP). The first chip is in sleep mode.

[0192] During the data transmission process between the second chip and the AP (Access Point), the second chip is woken up in a first cycle. Upon wake-up, the second chip sends a first message to the AP, instructing that the connection between the second chip and the AP be maintained. Between two consecutive wake-ups, the second chip does not receive beacon frames from the AP.

[0193] For example, in an embodiment of this application, the first chip may be Figure 5 In this embodiment, the Wi-Fi main chip 102 and the second chip can be... Figure 5 In this embodiment, the Wi-Fi secondary chip 103 and the access point (AP) can be... Figure 5The AP in this embodiment. The first information may be a first empty data frame. The electronic device transmits application data of the electronic device through the Wi-Fi sub-chip 103 and the AP. The Wi-Fi main chip 102 is in a sleep state. During the transmission of application data between the Wi-Fi sub-chip 103 and the AP, the Wi-Fi sub-chip 103 is woken up in a first cycle, and when the Wi-Fi sub-chip 103 is woken up, it sends a first empty data frame to the AP. Between two consecutive wake-ups, the Wi-Fi sub-chip 103 does not receive beacon frames from the AP.

[0194] In this way, if the AP cannot maintain the connection between the second chip and the AP based on the application data transmitted from the second chip to the AP, the AP can maintain the connection between the second chip and the AP based on the first empty data frame, reducing the probability of application data transmission being interrupted due to the AP's failure to maintain the connection between the second chip and the AP.

[0195] This application embodiment also provides a control method applied to an electronic device, the electronic device including a first chip and a second chip, the method comprising:

[0196] When both the first and second chips are in sleep mode, the second chip is woken up according to a first cycle. Upon wake-up, the second chip sends a first message to the AP, instructing that the connection between the second chip and the AP be maintained. The second chip is then woken up according to a second cycle, and upon wake-up, it receives beacon frames from the AP. The second cycle is shorter than the first cycle.

[0197] The first chip is woken up in the first cycle, and upon wake-up, it sends third information to the AP, instructing the first chip to maintain the connection with the AP. Between two consecutive wake-ups, the first chip does not receive beacon frames from the AP.

[0198] For example, the first chip may be Figure 7 In this embodiment, the Wi-Fi main chip 102 and the second chip can be... Figure 7 In this embodiment, the Wi-Fi secondary chip 103 and the access point (AP) can be... Figure 7 In the embodiment, the first information (AP) can be a first empty data frame, and the third information can be a second empty data frame. For the specific implementation principle of this application embodiment, please refer to [link / reference needed]. Figure 7 The specific implementation principle of Scenario 1 in the embodiment will not be repeated here.

[0199] For example, the first chip may be Figure 7 In the embodiment, the Wi-Fi secondary chip 103, the second chip can be... Figure 7In this embodiment, the Wi-Fi main chip 102 and the access point (AP) can be... Figure 7 In the embodiment, the first information can be a second empty data frame, and the third information can be a first empty data frame. For the specific implementation principle of this application embodiment, please refer to... Figure 7 The specific implementation principle of Scenario 2 in the embodiment will not be elaborated here.

[0200] In this way, when both the first and second chips are in a sleep state, there is no need to wake up the first chip in the second cycle, which can reduce the number of times the first chip is woken up, thereby reducing the power consumption of the electronic device.

[0201] Optionally, the power consumption of the second chip is less than that of the first chip. This further reduces the power consumption of the electronic device while both the first and second chips are in sleep mode.

[0202] Optionally, waking up the first chip in the first cycle includes:

[0203] The first chip's RF transmit link is activated in the first cycle, and this RF transmit link is used to send third information to the AP. During this cycle, the first chip's RF receive link is deactivated. Between two consecutive activations of the first chip's RF transmit link, both the RF receive link and the RF transmit link are deactivated.

[0204] In this way, compared to simultaneously activating the RF receiving link and RF transmitting link of the first chip in the first cycle, the embodiments of this application can reduce the power consumption of the electronic device.

[0205] This application embodiment also provides a control method applied to an electronic device, the electronic device including a first chip and a second chip, the method comprising:

[0206] Data from electronic devices is transmitted via the first chip and the access point (AP). The second chip is in sleep mode, and the AP does not send beacon frames.

[0207] During the data transmission process between the first chip and the access point (AP) for electronic devices, the second chip is woken up according to a first cycle. Upon wake-up, the second chip sends first information to the AP, instructing that the connection between the second chip and the AP be maintained. Specifically, the second chip does not receive beacon frames, and the connection between the second chip and the AP is maintained.

[0208] For example, in an embodiment of this application, the first chip may be Figure 5 In this embodiment, the Wi-Fi main chip 102 and the second chip can be... Figure 5 In this embodiment, the Wi-Fi secondary chip 103 and the access point (AP) can be... Figure 5The AP in this embodiment. The first information can be a first empty data frame. The electronic device transmits application data of the electronic device through the Wi-Fi main chip 102 and the AP. The Wi-Fi secondary chip 103 is in a sleep state. During the transmission of application data between the Wi-Fi main chip 102 and the AP, the Wi-Fi secondary chip 103 is woken up according to a first cycle. When the Wi-Fi secondary chip 103 is woken up, it sends a first empty data frame to the AP and controls the AP not to send beacon frames. The Wi-Fi secondary chip 103 does not receive beacon frames, and it maintains a connection with the AP.

[0209] For example, in an embodiment of this application, the first chip may be Figure 5 In the embodiment, the Wi-Fi secondary chip 103, the second chip can be... Figure 5 In this embodiment, the Wi-Fi main chip 102 and the access point (AP) can be... Figure 5 The AP in the embodiment. The first information may be Figure 5 The first empty data frame in this embodiment. The first information can be the second empty data frame. The electronic device transmits application data of the electronic device through the Wi-Fi secondary chip 103 and the AP. The Wi-Fi main chip 102 is in a sleep state. During the transmission of application data between the Wi-Fi secondary chip 103 and the AP, the Wi-Fi main chip 102 is woken up according to a first cycle. When the Wi-Fi main chip 102 is woken up, it sends a second empty data frame to the AP and controls the AP not to send beacon frames. The Wi-Fi main chip 102 does not receive beacon frames, and it maintains a connection with the AP.

[0210] In this way, when the electronic device transmits application data through the first chip and the AP, the second chip, which is in a dormant state, is woken up in the first cycle to send information to the AP instructing it to maintain the connection between the second chip and the AP. There is no need to wake the second chip to receive beacon frames in other cycles. This reduces the number of times the second chip is woken up while in a dormant state, thereby reducing the power consumption of the electronic device and maintaining the connection between the second chip and the AP.

[0211] The control method of the embodiments of this application has been described above. The apparatus for executing the above control method provided in the embodiments of this application is described below. Those skilled in the art will understand that the methods and apparatus can be combined with and referenced by each other, and the related apparatus provided in the embodiments of this application can execute the steps in the above control method.

[0212] The control method provided in this application can be applied to electronic devices with communication functions. The electronic devices include terminal devices, and the specific device form of the terminal devices can be referred to the above-mentioned descriptions, which will not be repeated here.

[0213] This application provides an electronic device, which includes a processor and a memory; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory, causing the electronic device to perform the above-described method.

[0214] This application provides a chip. The chip includes a processor, which is used to call a computer program in memory to execute the technical solutions in the above embodiments. Its implementation principle and technical effects are similar to those in the related embodiments described above, and will not be repeated here.

[0215] This application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, it implements the methods described above. The methods described in the above embodiments can be implemented wholly or partially by software, hardware, firmware, or any combination thereof. If implemented in software, the functionality can be stored as one or more instructions or code on or transmitted over the computer-readable medium. The computer-readable medium can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium accessible by a computer.

[0216] In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage or other magnetic storage devices, or any other medium targeted to carry or to store the required program code in the form of instructions or data structures, and accessible by a computer. Furthermore, any connection is appropriately referred to as a computer-readable medium. For example, if software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. As used herein, disks and optical discs include optical discs, laser discs, optical discs, Digital Versatile Discs (DVDs), floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically, while optical discs optically reproduce data using lasers. Combinations of the above should also be included within the scope of computer-readable media.

[0217] This application provides a computer program product, which includes a computer program that, when run, causes a computer to perform the above-described method.

[0218] This application describes embodiments of methods, apparatus (systems), and computer program products according to embodiments of this application with reference to flowchart illustrations and / or block diagrams. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, special-purpose computer, embedded processor, or other programmable device to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing device, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0219] The above specific embodiments further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solution of the present invention should be included within the scope of protection of the present invention.

Claims

1. A control method, characterized in that, Applied to an electronic device, the electronic device including a first chip and a second chip, the method includes: The application data of the electronic device is transmitted through the first chip and the access point (AP); wherein the second chip is in a sleep state; During the transmission of application data of the electronic device between the first chip and the access point (AP), the second chip is woken up in a first cycle, and when the second chip is woken up, the second chip sends a first message to the AP, the first message being used to instruct the second chip to maintain the connection between the second chip and the AP; wherein, between two consecutive wake-ups of the second chip, the second chip does not receive beacon frames from the AP.

2. The method according to claim 1, characterized in that, During the process of transmitting application data of the electronic device between the first chip and the access point (AP), the method further includes: The second chip receives second information transmitted by the first chip in a second cycle, the second information indicating that the second chip remains connected to the AP, and the second cycle being shorter than the first cycle; or... The second chip receives the second information transmitted by the system-on-a-chip (SoC) of the electronic device in the second cycle.

3. The method according to claim 1 or 2, characterized in that, The method further includes: When both the first chip and the second chip are in a sleep state, the second chip is woken up according to the first cycle, and when the second chip is woken up, the first information is sent to the AP through the second chip; and the second chip is woken up according to the second cycle, and when the second chip is woken up, a beacon frame is received from the AP, wherein the second cycle is shorter than the first cycle; The first chip is woken up according to the first cycle, and when the first chip is woken up, the third information is sent to the AP through the first chip. The third information is used to indicate that the connection between the first chip and the AP should be maintained. Between two consecutive wake-ups of the first chip, the first chip does not receive beacon frames from the AP.

4. The method according to claim 3, characterized in that, The power consumption of the second chip is less than that of the first chip.

5. The method according to claim 3 or 4, characterized in that, The step of waking up the second chip according to the second cycle includes: The second chip's radio frequency receiving link is activated according to the second cycle, and the radio frequency receiving link is used to receive beacon frames from the AP; wherein, the second chip's radio frequency transmitting link is closed, and between two consecutive activations of the second chip's radio frequency receiving link, both the second chip's radio frequency receiving link and radio frequency transmitting link are closed.

6. The method according to any one of claims 1-5, characterized in that, The step of waking up the second chip according to the first cycle includes: The second chip's radio frequency transmission link is activated according to the first cycle, and the radio frequency transmission link is used to send the first information to the AP; wherein, the second chip's radio frequency reception link is closed, and between two consecutive activations of the second chip's radio frequency transmission link, both the second chip's radio frequency reception link and radio frequency transmission link are closed.

7. The method according to any one of claims 1-6, characterized in that, Both the first chip and the second chip are Wi-Fi chips.

8. The method according to any one of claims 1-7, characterized in that, The first information is an empty data frame.

9. The method according to any one of claims 1-8, characterized in that, The method further includes: The second chip and the AP transmit application data of the electronic device; wherein the first chip is in a sleep state; During the transmission of application data of the electronic device between the second chip and the AP, the second chip is woken up in a first cycle, and when the second chip is woken up, the second chip sends a first message to the AP, the first message being used to instruct the second chip to maintain the connection between the second chip and the AP; wherein, between two consecutive wake-ups of the second chip, the second chip does not receive beacon frames from the AP.

10. A control method, characterized in that, Applied to an electronic device, the electronic device including a first chip and a second chip, the method includes: When both the first chip and the second chip are in a sleep state, the second chip is woken up in a first cycle, and when the second chip is woken up, the second chip sends first information to the access point (AP) through the second chip. The first information is used to indicate that the connection between the second chip and the AP should be maintained. The second chip is woken up in a second cycle, and when the second chip is woken up, the second cycle is shorter than the first cycle. The first chip is woken up according to the first cycle, and when the first chip is woken up, the third information is sent to the AP through the first chip. The third information is used to indicate that the connection between the first chip and the AP should be maintained. Between two consecutive wake-ups of the first chip, the first chip does not receive beacon frames from the AP.

11. The method according to claim 10, characterized in that, The power consumption of the second chip is less than that of the first chip.

12. The method according to claim 10 or 11, characterized in that, The step of waking up the first chip according to the first cycle includes: The first chip's radio frequency transmission link is activated according to the first cycle, and the radio frequency transmission link is used to send the third information to the AP; wherein, the first chip's radio frequency reception link is closed, and between two consecutive activations of the first chip's radio frequency transmission link, both the first chip's radio frequency reception link and radio frequency transmission link are closed.

13. The method according to any one of claims 10-12, characterized in that, Both the first chip and the second chip are Wi-Fi chips.

14. An electronic device, characterized in that, include: Processor and memory; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the electronic device to perform the method as described in any one of claims 1-13.

15. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-13.

16. A computer program product, characterized in that, Includes a computer program that, when run, causes a computer to perform the method as described in any one of claims 1-13.

17. A chip, characterized in that, The chip includes a processor for calling a computer program in memory to perform the method as described in any one of claims 1-13.

Citation Information

Patent Citations

  • Communication equipment and system and sleep and wake-up method

    CN111163447A

  • Method and device for controlling wireless link, electronic equipment and storage medium

    CN114650561A