Control method and related device

By only wake up in the first cycle and sending connection maintenance information when the Wi-Fi chip of the electronic device is in a sleep state, the problem of high power consumption caused by frequent wake-up of the chip is solved, and the power consumption is reduced.

CN120091393AActive Publication Date: 2025-06-03HONOR DEVICE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

When the Wi-Fi chip is in a sleep state, electronic devices have a problem of high power consumption because the chip needs to wake up frequently to receive beacon frames and send connection maintenance information.

Method used

The number of wake-up times of the chip is reduced by waking up the Wi-Fi chip in the sleep state in the first cycle and sending information indicating the maintenance of the connection to the access point AP when it wakes up, and not receiving beacon frames between adjacent two wake-ups.

Benefits of technology

It reduces the number of wake-up times when the Wi-Fi chip is in a sleep state and reduces the power consumption of electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120091393A_ABST
    Figure CN120091393A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a control method and a related device, and is applied to the technical field of terminals. The method is applied to the electronic equipment, the electronic equipment comprises a first chip and a second chip, and the method comprises the following steps: transmitting application data of the electronic equipment through the first chip and an access point (AP); wherein the second chip is in a dormant state; in the process that the first chip and an access point (AP) transmit the data of the application of the electronic equipment, the second chip is awakened according to a first period, and when the second chip is awakened, first information is sent to the AP through the second chip, and the first information is used for indicating to maintain the connection between the second chip and the AP; wherein the second chip does not receive the beacon frame from the AP between two adjacent times of wakeup of the second chip. Therefore, the power consumption of the electronic equipment 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 technologies, and in particular, to a control method and related devices. Background Art

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

[0003] However, when the Wi-Fi chip is in the sleep state, the electronic device has a problem of high power consumption. Summary of the Invention

[0004] Embodiments of this application provide a control method and related devices, which are applied to the field of terminal technologies. When an electronic device transmits the data of an application through one Wi-Fi chip and an AP, the other Wi-Fi chip in the sleep state is woken up at a first period to send information for instructing to maintain the connection between the other Wi-Fi chip and the AP to the AP, where the other Wi-Fi chip does not receive the beacon frame sent by the AP between two adjacent awakenings. In this way, the number of times the other Wi-Fi chip is woken up during the sleep state can be reduced, and thus the power consumption of the electronic device can be reduced. When both Wi-Fi chips are in the sleep state, the two Wi-Fi chips are woken up at a first period to send information for instructing to maintain the connection between the Wi-Fi chip and the AP to the AP, and one of the Wi-Fi chips is woken up at a second period to receive the beacon frame from the AP to know that the electronic device is within the signal radiation range of the AP. In this way, the other Wi-Fi chip does not need to be woken up at the second period, and thus the power consumption of the electronic device can be reduced.

[0005] In a first aspect, an embodiment of this application proposes a control method, which is applied to an electronic device. The electronic device includes a first chip and a second chip. The method includes: transmitting the data of the applications of the electronic device through the first chip and an access point AP. Wherein, the second chip is in the sleep state. During the process of transmitting the data of the applications of the electronic device through the first chip and the access point AP, the second chip is woken up at a first period, and when the second chip is woken up, a first piece of information is sent to the AP through the second chip, and the first piece of information is used to instruct to maintain the connection between the second chip and the AP. Wherein, between two adjacent awakenings of the second chip, the second chip does not receive the beacon frame from the AP.

[0006] In this way, when the first chip and the AP in the electronic device transmit application data, the second chip in the sleep state is woken up at the first period to send information for indicating maintaining the connection between the second chip and the AP to the AP, without waking up the second chip at other periods to receive the beacon frame sent by the AP, which can reduce the number of times the second chip is woken up during the sleep state, and thus can reduce the power consumption of the electronic device.

[0007] In a possible implementation manner, during the process that the first chip and the access point AP transmit the application data of the electronic device, the method further includes: the second chip receives the second information transmitted by the first chip at the second period, where the second information indicates that the second chip maintains a connection with the AP, and the second period is less than the first period. Alternatively, the second chip receives the second information transmitted by the system-on-chip (SoC) of the electronic device at the second period.

[0008] In this way, there is no need to wake up the second chip in the sleep state at the second period, and it can be realized that the second chip in the sleep state can know that it maintains a connection with the AP. Since there is no need to wake up the second chip in the sleep state at the second period, the power consumption of the electronic device is reduced.

[0009] In a possible implementation manner, the method further includes: when both the first chip and the second chip are in the sleep state, waking up the second chip at the first period, and when the second chip is woken up, sending the first information to the AP through the second chip. And waking up the second chip at the second period, and receiving the beacon frame from the AP when the second chip is woken up, where the second period is less than the first period. Waking up the first chip at the first period, and when the first chip is woken up, sending the third information to the AP through the first chip, where the third information is used to indicate maintaining the connection between the first chip and the AP. Among them, between two adjacent awakenings of the first chip, the first chip does not receive the beacon frame from the AP.

[0010] In this way, during the process that both the first chip and the second chip are in the sleep state, there is no need to wake up the first chip at the second period, which can reduce the number of times the first chip is woken up, and thus can reduce the power consumption of the electronic device.

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

[0012] In this way, during the process that both the first chip and the second chip are in the sleep state, the power consumption of the electronic device can be further reduced.

[0013] In a possible implementation, waking up the second chip according to the second period includes: turning on the radio frequency receiving link of the second chip according to the second period, where the radio frequency receiving link is used to receive beacon frames from the AP. Wherein, the radio frequency transmitting link of the second chip is turned off, and between two adjacent turn-ons of the radio frequency receiving link of the second chip, both the radio frequency receiving link and the radio frequency transmitting link of the second chip are turned off.

[0014] In this way, compared with turning on both the radio frequency receiving link and the radio frequency transmitting link of the second chip according to the second period, this embodiment can reduce the power consumption of the electronic device.

[0015] In a possible implementation, waking up the second chip according to the first period includes: turning on the radio frequency transmitting link of the second chip according to the first period, where the radio frequency transmitting link is used to send the first information to the AP. Wherein, the radio frequency receiving link of the second chip is turned off, and between two adjacent turn-ons of the radio frequency transmitting link of the second chip, both the radio frequency receiving link and the radio frequency transmitting link of the second chip are turned off.

[0016] In this way, compared with turning on both the radio frequency receiving link and the radio frequency transmitting link of the second chip according to the first period, this embodiment can reduce the power consumption of the electronic device.

[0017] In a possible implementation, both the first chip and the second chip are Wi-Fi (Wireless Fidelity) chips.

[0018] In this way, the electronic device can access the wireless network.

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

[0020] In this way, the data volume of the first information can be reduced.

[0021] In a possible implementation, the method further includes: transmitting the data of the application of the electronic device through the second chip and the AP. Wherein, the first chip is in a sleep state. During the process of transmitting the data of the application of the electronic device through the second chip and the AP, the second chip is woken up according to the first period, and when the second chip is woken up, the first information is sent to the AP through the second chip, where the first information is used to indicate maintaining the connection between the second chip and the AP. Wherein, between two adjacent wake-ups of the second chip, the second chip does not receive beacon frames from the AP.

[0022] In this way, in the case where the AP cannot maintain the connection between the second chip and the AP based on the data of the application transmitted by 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 the data transmission of the application being interrupted due to the AP not maintaining the connection between the second chip and the AP.

[0023] Second aspect, an embodiment of the present application provides a control method, which is applied to an electronic device. The electronic device includes 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 according to a first period, and when the second chip is woken up, sending first information to an access point AP through the second chip, where the first information is used to indicate maintaining the connection between the second chip and the AP. And waking up the second chip according to a second period, and receiving a beacon frame from the AP when the second chip is woken up, where the second period is less than the first period. Waking up the first chip according to the first period, and when the first chip is woken up, sending third information to the AP through the first chip, where the third information is used to indicate maintaining the connection between the first chip and the AP. Wherein, between two adjacent awakenings of the first chip, the first chip does not receive the beacon frame from the AP.

[0024] In this way, during the process that both the first chip and the second chip are in a sleep state, there is no need to wake up the first chip according to the second period, which can reduce the number of times the first chip is woken up, and thus can reduce the power consumption of the electronic device.

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

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

[0027] In a possible implementation, waking up the first chip according to the first period includes: turning on the radio frequency transmission link of the first chip according to the first period, where the radio frequency transmission link is used to send the third information to the AP. Wherein, the radio frequency reception link of the first chip is closed, and between two adjacent turn-ons of the radio frequency transmission link of the first chip, both the radio frequency reception link and the radio frequency transmission link of the first chip are closed.

[0028] In this way, compared with turning on both the radio frequency reception link and the radio frequency transmission link of the first chip according to the first period, the embodiment of the present application can reduce the power consumption of the electronic device.

[0029] In a possible implementation, both the first chip and the second chip are Wi-Fi (Wireless Fidelity) chips.

[0030] In this way, the electronic device can access the wireless network.

[0031] Third aspect, an embodiment of the present 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, so that the electronic device executes the method in the first aspect or the second aspect.

[0032] Fourthly, an embodiment of the present application provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the method according to the first aspect or the second aspect is implemented.

[0033] Fifthly, an embodiment of the present application provides a computer program product including a computer program. When the computer program is run, the computer is caused to execute the method according to the first aspect or the second aspect.

[0034] Sixthly, an embodiment of the present application provides a chip including a processor for calling a computer program in a memory to execute the method according to the first aspect or the second aspect.

[0035] It should be understood that the third aspect to the sixth aspect of the present application correspond to the technical solutions of the first aspect or the second aspect of the present application, and the beneficial effects obtained by each aspect and the corresponding feasible implementation manners are similar and will not be elaborated herein. Description of the Drawings

[0036] Figure 1 It is a scenario diagram in one of the possible implementation manners;

[0037] Figure 2 It is a schematic diagram of communication between a Wi-Fi sub-chip and an AP during the sleep state in one of the possible implementation manners;

[0038] Figure 3 It is a schematic diagram of communication between a Wi-Fi sub-chip and an AP during the sleep state provided by an embodiment of the present application;

[0039] Figure 4 It is a schematic diagram of the structure of the electronic device 100 provided by an embodiment of the present application;

[0040] Figure 5 It is a block diagram of the software and hardware of the electronic device provided by an embodiment of the present application;

[0041] Figure 6 It is a schematic diagram of communication between a Wi-Fi main chip and a Wi-Fi sub-chip and an AP provided by an embodiment of the present application;

[0042] Figure 7 It is another block diagram of the software and hardware of the electronic device provided by an embodiment of the present application;

[0043] Figure 8 It is another schematic diagram of communication between a Wi-Fi main chip and a Wi-Fi sub-chip and an AP provided by an embodiment of the present application. Detailed Embodiments

[0044] To facilitate a clear description of the technical solutions of the embodiments of the present application, the following briefly introduces some terms and technologies involved in the embodiments of the present application:

[0045] 1. Access Point (AP)

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

[0047] 2. Beacon Frame

[0048] A beacon frame can be understood as a wireless signal periodically broadcast by an AP to indicate the existence of a wireless network.

[0049] 3. Some Terms

[0050] In the embodiments of the present application, terms such as "first" and "second" are used to distinguish identical or similar items with basically the same functions and roles. For example, the first chip and the second chip are only used to distinguish different chips and do not limit their order. Those skilled in the art can understand that terms such as "first" and "second" do not limit the quantity and execution order, and "first", "second", etc. do not necessarily mean different.

[0051] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to give examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the present application should not be construed as being more preferred or having more advantages than other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific manner.

[0052] In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects and indicates that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after. "At least one (item)" or its similar expression refers to any combination of these items, including any combination of single item (item) or plural items (items). For example, at least one (item) of a, b, or c can represent: a, b, c, a - b, a - c, b - c, or a - b - c, where a, b, c can be single or multiple.

[0053] It should be noted that in the embodiments of the present application, "when..." can be at the instant when a certain situation occurs or within a period of time after a certain situation occurs. The embodiments of the present application do not make specific limitations in this regard. In addition, the display interface provided in the embodiments of the present application is only an example, and the display interface may also include more or less content.

[0054] Figure 1 Fig. shows a scenario diagram in one of the possible implementations.

[0055] As Figure 1 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 1, Scenario 2, or Scenario 3.

[0057] Scenario 1: The electronic device transmits the data of the application of the electronic device through the main link composed of the Wi-Fi main chip 102 and the AP 104 as Figure 1 shown, and the Wi-Fi secondary chip 103 is in a sleep state.

[0058] In Scenario 1, compared with the power consumption when the Wi-Fi secondary chip 103 transmits the data of the application, the power consumption of the Wi-Fi secondary chip 103 in the sleep state is lower. However, during the process of the Wi-Fi secondary chip 103 being in the sleep state, there is still communication between the Wi-Fi secondary chip 103 and the AP 104, and this communication causes an increase in the power consumption of the electronic device.

[0059] Scenario 2: The electronic device transmits the data of the application of the electronic device through the secondary link composed of the Wi-Fi secondary chip 103 and the AP 104 as Figure 1 shown, and the Wi-Fi main chip 102 is in a sleep state.

[0060] In Scenario 2, compared with the power consumption when the Wi-Fi main chip 102 transmits the data of the application, the power consumption of the Wi-Fi main chip 102 in the sleep state is lower. However, during the process of the Wi-Fi main chip 102 being in the sleep state, there is also communication between the Wi-Fi main chip 102 and the AP 104, and this communication causes an increase in the power consumption of the electronic device.

[0061] Scenario 3: The electronic device does not transmit through Figure 1The data transmitted by the main link application shown is not the data transmitted by the secondary link application shown in Figure 1 either, and both the Wi-Fi main chip 102 and the Wi-Fi secondary chip 103 are in the sleep state.

[0062] In Scenario 3, although both the Wi-Fi main chip 102 and the Wi-Fi secondary chip 103 are in the sleep state, during the process when the Wi-Fi main chip 102 is in the sleep state, there is communication between the Wi-Fi main chip 102 and the AP 104. During the process when the Wi-Fi secondary chip 103 is in the sleep state, there is also communication between the Wi-Fi secondary chip 103 and the AP 104, which in turn leads to an increase in the power consumption of the electronic device.

[0063] For the convenience of understanding the communication between the Wi-Fi chip in the sleep state and the AP, the following combines Figure 2 , taking Scenario 1 as an example, to illustrate the communication between the Wi-Fi secondary chip 103 and the AP 104 during the process when the Wi-Fi secondary chip 103 is in the sleep state.

[0064] Figure 2 shows a schematic diagram of the communication between the Wi-Fi secondary chip and the AP during the process when the Wi-Fi secondary chip is in the sleep state in a possible implementation manner.

[0065] In the embodiment of the present application, the connection between the Wi-Fi secondary chip 103 and the AP 104 can be achieved after the Wi-Fi secondary chip 103 performs 4 handshakes with the AP 104 according to the four-way handshake protocol (auth, assoc 4-handshake). The specific implementation principle of the connection between the Wi-Fi main chip 102 and the AP 104 is similar to the specific implementation principle of the connection between the Wi-Fi secondary chip 103 and the AP 104, and will not be elaborated here.

[0066] Such as Figure 2As shown, in Scenario 1, during the period when the Wi-Fi secondary chip 103 is in the sleep state, the Wi-Fi secondary chip 103 can be woken up once every 100 milliseconds (ms), and when it is woken up, it receives a beacon frame from the AP 104. If the Wi-Fi secondary chip 103 receives a beacon frame from the AP 104 when it is woken up, it can indicate that the Wi-Fi secondary chip 103 is connected to the AP 104. If the number of times the Wi-Fi secondary chip 103 does not receive a beacon frame from the AP 104 exceeds a preset value, it can indicate that the Wi-Fi secondary chip 103 is not within the signal radiation range of the AP 104, or it can indicate that the electronic device 100 is not within the signal radiation range of the AP 104. Furthermore, it can indicate that the Wi-Fi secondary chip 103 is disconnected from the AP 104. Then, the Wi-Fi secondary chip 103 can transmit information indicating that the Wi-Fi secondary chip 103 is disconnected from the AP 104 to the SoC 101, so that the SoC 101 can transmit application data through other communication links. Among them, other communication links can be mobile communication links. Other communication links do not include the primary link and the secondary link.

[0067] During the period when the Wi-Fi secondary chip 103 is in the sleep state, the Wi-Fi secondary chip 103 can also be woken up once every 11 seconds (s), and when it is woken up, it sends a first null data frame (null data frame) to the AP 104 to maintain the connection between the Wi-Fi secondary chip 103 and the AP 104, so that when the electronic device needs to transmit application data of the electronic device through the Wi-Fi secondary chip 103 and the AP 104, it can timely transmit the application data of the electronic device through the Wi-Fi secondary chip 103 and the AP 104.

[0068] As Figure 2 As shown in the embodiment, during the period when the Wi-Fi secondary chip 103 is in the sleep state, the Wi-Fi secondary chip 103 is woken up once every 100 ms, and is also woken up once every 11 s. Each time the Wi-Fi secondary chip 103 is woken up, power consumption is generated. In this way, the power consumption of the electronic device increases. Therefore, in Scenario 1, the Wi-Fi secondary chip 103 is periodically woken up to receive a beacon frame from the AP 104, and is also periodically woken up to send a first null data frame to the AP 104, which increases the power consumption of the electronic device, resulting in a problem of relatively high power consumption of the electronic device in Scenario 1.

[0069] In Scenario 2, during the process when the Wi-Fi main chip 102 is in the sleep state, the Wi-Fi main chip 102 will also be periodically awakened to receive beacon frames from the AP 104 and will also be periodically awakened to send a second null data frame to the AP 104. During the process when the Wi-Fi main chip 102 is in the sleep state, each time the Wi-Fi main chip 102 is awakened, it will also consume power, thus increasing the power consumption of the electronic device and resulting in a problem of relatively high power consumption of the electronic device in Scenario 2.

[0070] Among them, the specific implementation principle of the Wi-Fi main chip 102 being periodically awakened to receive beacon frames is similar to Figure 2 the specific implementation principle of the Wi-Fi secondary chip 103 being periodically awakened to receive beacon frames shown in the embodiment. The specific implementation principle of the Wi-Fi main chip 102 being periodically awakened to send a second null data frame is similar to Figure 2 the specific implementation principle of the Wi-Fi secondary chip 103 being periodically awakened to send a first null data frame shown in the embodiment, and will not be elaborated here.

[0071] In Scenario 3, during the process when the Wi-Fi main chip 102 is in the sleep state, the Wi-Fi main chip 102 is periodically awakened to receive beacon frames from the AP 104 and will also be periodically awakened to send a second null data frame to the AP 104. During the process when the Wi-Fi secondary chip 103 is in the sleep state, the Wi-Fi secondary chip 103 is periodically awakened to receive beacon frames from the AP 104 and will also be periodically awakened to send a first null data frame to the AP 104. This increases the power consumption of the electronic device, resulting in a problem of relatively high power consumption of the electronic device in Scenario 3.

[0072] Among them, the specific implementation principle of the Wi-Fi main chip 102 being periodically awakened to receive beacon frames from the AP 104 and being periodically awakened to send a second null data frame to the AP 104 in Scenario 3 is similar to the specific implementation principle of the Wi-Fi main chip 102 being periodically awakened to receive beacon frames from the AP 104 and being periodically awakened to send a second null data frame to the AP 104 in Scenario 2 above. The specific implementation principle of the Wi-Fi secondary chip 103 being periodically awakened to receive beacon frames from the AP 104 and being periodically awakened to send a first null data frame to the AP 104 in Scenario 3 is similar to Figure 2 the specific implementation principle of the Wi-Fi secondary chip 103 being periodically awakened to receive beacon frames from the AP 104 and being periodically awakened to send a first null data frame to the AP 104 in Scenario 1 shown in the embodiment, and will not be elaborated here.

[0073] In Scenario 1, the electronic device transmits application data via the main link, which may indicate that the Wi-Fi main chip 102 and the AP 104 are connected, or it may indicate that the electronic device is within the signal radiation range of the AP 104. The Wi-Fi secondary chip 103 is disposed on the electronic device, and thus it can also indicate that the Wi-Fi secondary chip 103 is connected to the AP 104. Correspondingly, if the electronic device cannot transmit application data via the main link, it indicates that the Wi-Fi main chip 102 is disconnected from the AP 104, or it indicates that the electronic device has left the signal radiation range of the AP 104. Consequently, it can be indicated that the Wi-Fi secondary chip 103 is disconnected from the AP 104, and the electronic device can transmit application data via other communication links. Therefore, in Scenario 1, the electronic device can know whether it is within the signal radiation range of the AP 104 based on the transmission situation of application data in the main link, without the need for the Wi-Fi secondary chip 103 to be woken up every 100 ms to receive the beacon frame sent by the AP. It should be understood that the electronic device being within the signal radiation range of the AP can indicate that the Wi-Fi chip on the electronic device is within the signal radiation range of the AP.

[0074] It can be understood that in Scenario 2, the electronic device can also know whether it is within the signal radiation range of the AP 104 based on the transmission situation of application data in the secondary link, without the need for the Wi-Fi main chip 102 to be woken up every 100 ms to receive the beacon frame sent by the AP. The specific implementation principle is similar to that in Scenario 1.

[0075] In view of this, for Scenario 1 or Scenario 2, an embodiment of the present application proposes a control method. When the electronic device transmits application data via one Wi-Fi chip and the AP, the other Wi-Fi chip in the sleep state is woken up at the first period to send information to the AP for indicating to maintain the connection between the other Wi-Fi chip and the AP, where the other Wi-Fi chip does not receive the beacon frame sent by the AP between two adjacent wake-ups. In this way, the number of times the other Wi-Fi chip is woken up during the sleep state can be reduced, and thus the power consumption of the electronic device can be reduced.

[0076] Exemplarily, for Scenario 1, Figure 3 shows a schematic diagram of the communication between the Wi-Fi secondary chip in the sleep state and the AP provided by an embodiment of the present application.

[0077] As Figure 3 shown, in Scenario 1, the electronic device can transmit application data via the main link, and the Wi-Fi secondary chip 103 can be in the sleep state. The specific implementation principle of the connection between the Wi-Fi secondary chip 103 and the AP 104 can be referred toFigure 2 For the specific implementation principle of the connection between the Wi-Fi sub-chip 103 and the AP 104 in the embodiment, the specific implementation principle of the connection between the Wi-Fi main chip 102 and the AP 104 can be referred to Figure 2 For the specific implementation principle of the connection between the Wi-Fi main chip 102 and the AP 104 in the embodiment, it will not be elaborated here.

[0078] In Scenario 1, the electronic device can wake up the Wi-Fi sub-chip 103 at the first period, and when the Wi-Fi sub-chip 103 is woken up, send a first null data frame to the AP 104 through the Wi-Fi sub-chip 103. Among them, the first null data frame is used to indicate maintaining the connection between the Wi-Fi sub-chip 103 and the AP 104. The first period can be 11 seconds. The Wi-Fi sub-chip 103 does not need to be woken up every 100 ms. Compared with Figure 2 the number of times the Wi-Fi sub-chip 103 is woken up in the embodiment, the number of times the Wi-Fi sub-chip 103 is woken up in the embodiment of the present application is reduced, and thus the power consumption of the electronic device can be reduced.

[0079] It can be understood that in Scenario 2, the number of times the Wi-Fi main chip 102 is woken up will also be reduced, and thus the power consumption of the electronic device can be reduced. The specific implementation principle of the reduction in the number of times the Wi-Fi main chip 102 is woken up in Scenario 2 is the same as Figure 3 the specific implementation principle of the reduction in the number of times the Wi-Fi sub-chip 103 is woken up in Scenario 1 shown in the embodiment, and it will not be elaborated here.

[0080] In the embodiment of the present application, in Scenario 1, canceling the wake-up of the Wi-Fi sub-chip every 100 ms reduces the number of times the Wi-Fi sub-chip is woken up, and thus reduces the power consumption of the electronic device. In Scenario 2, canceling the wake-up of the Wi-Fi main chip every 100 ms reduces the number of times the Wi-Fi main chip is woken up, and thus reduces the power consumption of the electronic device.

[0081] For Scenario 3, in one implementation, the Wi-Fi sub-chip 103 is woken up once every 100 ms to receive the beacon frame from the AP, and is also woken up once every 11 s to send a first null data frame to the AP. The Wi-Fi main chip 102 is woken up once every 100 ms to receive the beacon frame from the AP, and is also woken up once every 11 s to send a second null data frame to the AP.

[0082] Since both the Wi-Fi main chip 102 and the Wi-Fi secondary chip 103 are provided on the electronic device, in Scenario 3, one of the Wi-Fi main chip 102 and the Wi-Fi secondary chip 103 can periodically receive beacon frames from the AP, and then it can be determined whether the electronic device is within the signal radiation range of the AP. If the electronic device is within the signal radiation range of the AP, it can indicate that the Wi-Fi main chip 102 is connected to the AP, and the Wi-Fi secondary chip 103 is also connected to the AP. If the electronic device is not within the signal radiation range of the AP, it can indicate that both the Wi-Fi main chip 102 and the Wi-Fi secondary chip 103 are disconnected from the AP.

[0083] In this regard, for Scenario 3, the embodiment of the present application further provides a control method. When both Wi-Fi chips are in the sleep state, the two Wi-Fi chips are awakened according to a first period to send information for instructing to maintain the connection between the Wi-Fi chip and the AP to the AP, and one of the Wi-Fi chips is awakened according to a second period to receive beacon frames from the AP to know that the electronic device is within the signal radiation range of the AP. In this way, the other Wi-Fi chip does not need to be awakened according to the second period, and thus the power consumption of the electronic device can be reduced. Exemplarily, the first period can be 11 s, and the second period can be 100 ms.

[0084] The electronic device according to the embodiment of the present application may include a handheld device, a vehicle-mounted device, etc. with image processing functions. For example, some electronic devices are: mobile phone, tablet computer, handheld computer, laptop computer, mobile internet device (MID), wearable device, virtual reality (VR) device, augmented reality (AR) device, wireless terminal in industrial control, wireless terminal in self-driving, wireless terminal in remote medical surgery, wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart city, wireless terminal in smart home, cellular phone, cordless phone, session initiation protocol (SIP) phone, wireless local loop (WLL) station, personal digital assistant (PDA), handheld device with wireless communication function, computing device or other processing devices connected to a wireless modem, vehicle-mounted device, wearable device, terminal device in a 5G network or terminal device in a future evolved public land mobile network (PLMN), etc. The embodiment of the present application is not limited thereto.

[0085] In addition, in the embodiment of the present application, the electronic device may also be an electronic device in an internet of things (IoT) system. The electronic device in the embodiment of the present application may also be referred to as: user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal, user unit, user station, mobile station, mobile platform, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device, etc.

[0086] In the embodiments of the present application, an electronic device or each network device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and a memory (also known as main memory). The operating system can be any one or more computer operating systems that implement service processing through processes. For example, Linux operating system, Unix operating system, Android operating system, iOS operating system, or Windows operating system, etc. The application layer includes applications such as a browser, an address book, a word processing software, and an instant messaging software.

[0087] To facilitate the understanding of the electronic device provided in the embodiments of the present application, the following combines Figure 4 and Figure 5 to describe the hardware structure and software architecture of the electronic device.

[0088] Figure 4 FIG. shows a schematic structural diagram of an electronic device 100 provided in the embodiments of the present application.

[0089] As Figure 4 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 interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. Among them, the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light 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 can be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the electronic device 100. In some other embodiments of the present application, the electronic device 100 may include more or fewer components than those illustrated, or combine certain components, or split certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0091] Among them, the wireless communication module 160 may provide solutions for wireless communications applied to the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. The wireless communication module 160 may be one or more devices integrating at least one communication processing module.

[0092] Exemplarily, the wireless communication module 160 may include, for example Figure 1 the Wi-Fi main chip 102 and the Wi-Fi sub-chip 103 as shown. The processor 110 may include, for example Figure 1 the SoC 101 as shown. The wireless communication module 160 may receive electromagnetic waves via the radio frequency receiving link of the Wi-Fi main chip 102 and / or the radio frequency receiving link of the Wi-Fi sub-chip 103, perform frequency modulation and filtering processing on the electromagnetic wave signals, and send the processed signals to the SoC 101. The wireless communication module 160 may also receive the signal to be transmitted from the SoC 101, perform frequency modulation and amplification on it, and transmit it via the radio frequency transmitting link of the Wi-Fi main chip 102 and / or the radio frequency transmitting link of the Wi-Fi sub-chip 103.

[0093] Taking Scenario 1 as an example, the functions of the hardware of the electronic device 100 will be described. In Scenario 1, the electronic device 100 can transmit the data of the applications of the electronic device through the Wi-Fi main chip 102 of the AP and the wireless communication module 160, and the Wi-Fi sub-chip 103 is in the sleep state. The electronic device 100 can wake up the Wi-Fi sub-chip 103 of the wireless communication module 160 at the first period, and when the Wi-Fi sub-chip 103 is woken up, send a first null data frame to the AP 104 through the radio frequency transmission link of the Wi-Fi sub-chip 103. Among them, between two adjacent awakenings of the Wi-Fi sub-chip 103, the Wi-Fi sub-chip 103 will not be woken up. In this way, the number of times the Wi-Fi sub-chip 103 is woken up in Scenario 1 is reduced, and thus the power consumption of the electronic device can be reduced.

[0094] It can be understood that in Scenario 2, the Wi-Fi main chip 102 is in the sleep state, and the specific implementation principle of waking up the Wi-Fi main chip 102 to communicate with the AP 104 is similar to the specific implementation principle of waking up the Wi-Fi sub-chip 103 to communicate with the AP 104 in Scenario 1, which will not be elaborated here. In this way, the number of times the Wi-Fi main chip 102 is woken up in Scenario 2 can be reduced, and thus the power consumption of the electronic device can be reduced.

[0095] Taking Scenario 3 as an example, the functions of the hardware of the electronic device 100 will be described. In Scenario 3, both the Wi-Fi main chip 102 and the Wi-Fi sub-chip 103 of the wireless communication module 160 are in the sleep state. The electronic device 100 can wake up the Wi-Fi sub-chip 103 at the first period, and when the Wi-Fi sub-chip 103 is woken up, send a first null data frame to the AP 104 through the radio frequency transmission link of the Wi-Fi sub-chip 103. The electronic device 100 can wake up the Wi-Fi sub-chip 103 at the second period, and when the Wi-Fi sub-chip 103 is woken up, receive a beacon frame from the AP 104 through the radio frequency receiving link of the Wi-Fi sub-chip 103. The electronic device 100 can also wake up the Wi-Fi main chip 102 at the first period, and when the Wi-Fi main chip 102 is woken up, send a second null data frame to the AP 104 through the radio frequency transmission link of the Wi-Fi main chip 102. Among them, between two adjacent awakenings of the Wi-Fi main chip 102, the Wi-Fi main chip 102 will not be woken up. In this way, the number of times the Wi-Fi main chip 102 is woken up in Scenario 3 is reduced, and thus the power consumption of the electronic device can be reduced.

[0096] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservices architecture, or a cloud architecture. In the embodiments of the present invention, taking the Android system with a layered architecture as an example, the software architecture of the electronic device 100 will be exemplarily described.

[0097] Figure 5 Shows a block diagram of software and hardware of an electronic device provided by an embodiment of the present application.

[0098] The layered architecture divides software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom are the application layer, the application framework layer, the Android runtime, the system libraries, the hardware abstraction layer (HAL), and the kernel layer. The application layer may include a series of application packages. Figure 5 Shows the application framework layer, the HAL, and the kernel layer, and also shows the Wi-Fi main chip 102 and the Wi-Fi secondary chip 103 of the hardware layer.

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

[0100] The application framework layer may include a window manager, a content provider, a view system, a telephone manager, a resource manager, a notification manager, or Figure 5 the upper-layer service 501 as shown.

[0101] The hardware abstraction layer is an interface layer located between the operating system kernel and the hardware circuit, and its purpose is to abstract the hardware. The hardware abstraction layer may include the chip link control 502 as Figure 5 shown.

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

[0103] Next, in combination with Figure 5 , taking Scenario 1 as an example, the working processes of the software and hardware of the electronic device 100 are exemplarily described. The AP is not shown in Figure 5 .

[0104] As Figure 5As shown, when both the Wi-Fi main chip 102 and the Wi-Fi secondary chip 103 are connected to the AP and the application of the electronic device is started, if the application priority of the started application corresponds to the main link, the upper-layer service 501 can transmit information A indicating to pull up the main link to the chip link control 502. Among them, the application priority can represent the data transmission requirement level of the application. The data transmission requirement can include the data transmission rate and / or latency. Optionally, if the data volume of the started application is greater than the preset data volume, or the sum of the data volumes of the started multiple applications is greater than the preset data volume, 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. Among them, information B can be information indicating to control the Wi-Fi secondary chip 103 to be in the sleep state and cancel receiving beacon frames. The secondary chip driver 504 can transmit information B to the Wi-Fi secondary chip 103.

[0106] Upon receiving information B, the Wi-Fi secondary chip 103 can turn off the radio frequency receiving link and the radio frequency transmitting link of the Wi-Fi secondary chip 103. The Wi-Fi secondary chip 103 can also control the first timer to be in the on state and control the second timer to be in the off state. The Wi-Fi secondary chip 103 enters the sleep state.

[0107] Among them, the first timer in the on state can wake up the Wi-Fi secondary chip 103 when the first timing duration of the first timer reaches the first period.

[0108] During the process when the Wi-Fi secondary chip 103 is in the sleep state, when the Wi-Fi secondary chip 103 is woken up by the first timer, it can turn on the radio frequency receiving link and the radio frequency transmitting link of the Wi-Fi secondary chip 103, and send a first null data frame to the AP through the radio frequency transmitting link of the Wi-Fi secondary chip 103 to maintain the connection between the Wi-Fi secondary chip 103 and the AP. The first period is, for example, 11s.

[0109] From the start moment when the Wi-Fi secondary chip 103 is woken up by the first timer, the Wi-Fi secondary chip 103 can perform timing to obtain the first timing duration. When the first timing duration reaches the first duration threshold, the Wi-Fi secondary chip 103 can turn off the radio frequency receiving link and the radio frequency transmitting link of the Wi-Fi secondary chip 103 and enter the sleep state. The first duration threshold is less than the first period.

[0110] When the first timing duration of the first timer reaches the first period, the first timer in the on state restarts timing and wakes up the Wi-Fi sub-chip 103 again when the first timing duration reaches the first period.

[0111] For the second timer, the second timer in the on state can wake up the Wi-Fi sub-chip 103 when the second timing duration of the second timer reaches the second period. The second timer in the off state does not wake up the Wi-Fi sub-chip 103.

[0112] In Scenario 1, the second timer is in the off state. During the process when the Wi-Fi sub-chip 103 is in the sleep state, the Wi-Fi sub-chip 103 is not periodically woken up by the second timer. In this way, the number of times the Wi-Fi sub-chip 103 is woken up is reduced, and thus the power consumption of the electronic device can be reduced.

[0113] Optionally, when the Wi-Fi sub-chip 103 is woken up by the first timer, the radio frequency receiving link of the Wi-Fi sub-chip 103 may not be turned on, but the radio frequency transmitting link of the Wi-Fi sub-chip 103 is turned on, and a first null data frame is sent to the AP through the radio frequency transmitting link of the Wi-Fi sub-chip 103. In this way, the power consumption generated when the radio frequency receiving link of the Wi-Fi sub-chip 103 is in the on state can be reduced, and thus the power consumption of the electronic device can be reduced.

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

[0115] In this way, without waking up the Wi-Fi secondary chip 103 in the second period, or when the radio frequency receiving link of the Wi-Fi secondary chip 103 is in the off state, the Wi-Fi secondary chip 103 can know that the Wi-Fi secondary chip 103 is connected to the AP. In addition, when the Wi-Fi primary chip 102 fails to transmit a disconnection event to the SoC of the electronic device, the disconnection event can also be transmitted to the SoC of the electronic device through the Wi-Fi secondary chip 103. An application of the electronic device can obtain the disconnection event to perform corresponding processing based on the disconnection event. For example, the settings application of the electronic device can clear the identifier indicating the connected Wi-Fi in the status bar when obtaining the disconnection event. The chip link control 502 can belong to the SoC of the electronic device.

[0116] Optionally, when the AP receives the first null 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 set of stations maintained by the AP. The set of stations can include the identifiers of Wi-Fi chips connected to the AP. The AP can maintain the connection between the Wi-Fi chip corresponding to the identifier in the set of stations and the AP. It should be understood that when the AP receives a data frame (data frame) containing data of the application sent by the Wi-Fi primary chip 102, the AP will not remove the identifier of the Wi-Fi primary chip 102 from the set of stations maintained by the AP. Optionally, if the AP does not receive the first null data frame sent by the Wi-Fi secondary chip 103 within a preset duration, the AP can remove the identifier of the Wi-Fi secondary chip 103 from the set of stations. In this way, the AP will not maintain the connection between the Wi-Fi secondary chip 103 and the AP. Among them, the preset duration can be greater than the first period. It should be understood that if the AP does not receive a data frame sent by the Wi-Fi primary chip 102 within the preset duration, the AP can remove the identifier of the Wi-Fi primary chip 102 from the set of stations. The set of stations can be in the form of a queue or a table. The embodiments of the present application do not limit the specific form of the set of stations.

[0117] It can be understood that the higher the application priority, the higher the data transmission requirement of the application. For example, the higher the data transmission rate required by the application and / or the lower the latency. Optionally, if the application priority is higher than the preset priority, the application priority can correspond to the main link. If the application priority is lower than or equal to the preset priority, the application priority can correspond to the secondary link.

[0118] It can be understood that 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 application of the electronic device is started, if the application priority of the started application corresponds to the secondary link, the upper-layer service 501 can transmit the information D indicating to pull up the secondary link to the chip link control 502. Optionally, if the data volume of the started application is less than or equal to the preset data volume, or the sum of the data volumes of the multiple started applications is less than or equal to the preset data volume, the upper-layer service 501 can transmit the information D to the chip link control 502.

[0119] Upon receiving the information D, the chip link control 502 can transmit the information E to the main chip driver 503. Among them, the information E can be the information indicating to control the Wi-Fi main chip 102 to be in the sleep state and cancel receiving beacon frames. The main chip driver 503 can transmit the information E to the Wi-Fi main chip 102.

[0120] Upon receiving the information E, the Wi-Fi main chip 102 can turn off the radio frequency receiving link and the radio frequency transmitting link of the Wi-Fi main chip 102. The Wi-Fi main chip 102 can also control the third timer to be in the on state and control the fourth timer to be in the off state. The Wi-Fi main chip 102 enters the sleep state.

[0121] Among them, the third timer in the on state can wake up the Wi-Fi main chip 102 when the third timing duration of the third timer reaches the first period.

[0122] During the process when the Wi-Fi main chip 102 is in the sleep state, when the Wi-Fi main chip 102 is woken up by the third timer, it can turn on the radio frequency receiving link and the radio frequency transmitting link of the Wi-Fi main chip 102, and send a second null data frame to the AP through the radio frequency transmitting link of the Wi-Fi main chip 102. The second null data frame is used to indicate maintaining the connection between the Wi-Fi main chip 102 and the AP.

[0123] Starting from the moment when the Wi-Fi main chip 102 is woken up by the first timer, the Wi-Fi main chip 102 can perform timing to obtain the third timing duration. When the third timing duration reaches the first duration threshold, the Wi-Fi main chip 102 can turn off the radio frequency receiving link and the radio frequency transmitting link of the Wi-Fi main chip 102 and enter the sleep state.

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

[0125] For the fourth timer, when the fourth timer in the on state reaches the second period of its fourth timing duration, it can wake up the Wi-Fi main chip 102. The fourth timer in the off state will not wake up the Wi-Fi main chip 102.

[0126] In Scenario 2, the fourth timer is in the off state. During the process when the Wi-Fi main chip 102 is in the sleep state, the Wi-Fi main chip 102 will not be periodically woken up by the fourth timer. In this way, the number of times the Wi-Fi main chip 102 is woken up is reduced, and thus the power consumption of the electronic device can be reduced.

[0127] Optionally, when the Wi-Fi main chip 102 is woken up by the third timer, the radio frequency receiving link of the Wi-Fi main chip 102 may not be turned on, but the radio frequency transmitting link of the Wi-Fi main chip 102 is turned on, and a second null data frame is sent to the AP through the radio frequency transmitting link of the Wi-Fi main chip 102. In this way, the power consumption generated when the radio frequency receiving link of the Wi-Fi main chip 102 is in the on state can be reduced, and thus the power consumption of the electronic device can be reduced.

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

[0129] In this way, in the case where the Wi-Fi main chip 102 is not woken up at the second period, or in the case where the radio frequency receiving link of the Wi-Fi main chip 102 is in the off state, the Wi-Fi main chip 102 can know that the Wi-Fi main chip 102 maintains a connection with the AP. In addition, in the case where the Wi-Fi secondary chip 103 fails to transmit a disconnection event to the SoC of the electronic device, the disconnection event can also be transmitted to the SoC of the electronic device through the Wi-Fi main chip 102.

[0130] Optionally, when the AP receives the 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 set of stations maintained by the AP, so as to facilitate the AP to maintain the connection between the Wi-Fi main chip 102 and the AP. It should be understood that when the AP receives the 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 set of stations maintained by the AP, so as to facilitate the AP to maintain the connection between the Wi-Fi secondary chip 103 and the AP. Optionally, if the AP does not receive the second empty data frame sent by the Wi-Fi main chip 102 within a preset duration, the AP may remove the identifier of the Wi-Fi main chip 102 from the set of stations. In this way, 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 the data frame sent by the Wi-Fi secondary chip 103 within a preset duration, the AP may remove the identifier of the Wi-Fi secondary chip 103 from the set of stations. In this way, the AP will not maintain the connection between the Wi-Fi secondary chip 103 and the AP.

[0131] For Scenario 1, Figure 6 FIG. shows a schematic diagram of communication between the Wi-Fi main chip and the Wi-Fi secondary chip provided by the embodiments of the present application and the AP.

[0132] As Figure 6 shown, in Scenario 1, the Wi-Fi main chip 102 and the AP can transmit a data frame (data frame) containing application data. The Wi-Fi secondary chip 103 can be woken up according to the first period, and when the Wi-Fi secondary chip 103 is woken up, it 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. When the Wi-Fi secondary chip 103 sends the first empty data frame to the AP, the Wi-Fi secondary chip 103 can receive the beacon frame from the AP, or the Wi-Fi secondary chip 103 can also close the radio frequency receiving link of the Wi-Fi secondary chip 103 and not receive the beacon frame from the AP.

[0133] In Scenario 1, the Wi-Fi secondary chip 103 is not woken up according to the second period, reducing the number of times the Wi-Fi secondary chip 103 is woken up during the sleep state, thereby reducing the power consumption of the electronic device.

[0134] Optionally, if the electronic device includes three or more Wi-Fi chips. When only one Wi-Fi chip is transmitting the application data of the electronic device and the other Wi-Fi chips are in the sleep state, the specific implementation principle of the communication between the other Wi-Fi chips and the AP is the same as Figure 6The specific implementation principle of the Wi-Fi secondary chip 103 communicating with the AP in the embodiments is similar, and will not be elaborated in the embodiments of the present application. In this way, there is no need to wake up other Wi-Fi chips in the second period, thereby reducing the power consumption of the electronic device.

[0135] As Figure 5 and Figure 6 shown in the embodiments, in Scenario 1, the Wi-Fi secondary chip controls the first timer to be in the on state and controls the second timer to be in the off state, so that during the process of the Wi-Fi secondary chip being in the sleep state, the first timer wakes up the Wi-Fi secondary chip according to the first period to send the first null data frame to the AP, and the second timer does not wake up the Wi-Fi secondary chip, reducing the number of times the Wi-Fi secondary chip is woken up in Scenario 1, thereby reducing the power consumption of the electronic device. In Scenario 1, the power consumption of the electronic device is further reduced by not turning on the radio frequency receiving link of the Wi-Fi secondary chip when the Wi-Fi secondary chip is woken up. In addition, the Wi-Fi main chip or the chip link controls to transmit information C to the Wi-Fi secondary chip according to the second period. In this way, in the case where the Wi-Fi secondary chip does not receive the beacon frame from the AP, the Wi-Fi secondary chip can know that the Wi-Fi secondary chip is connected to the AP, and it is also realized that in the case where the Wi-Fi main chip fails to transmit the disconnection event to the SoC of the electronic device, the disconnection event can also be transmitted to the SoC of the electronic device through the Wi-Fi secondary chip. In this way, the application of the electronic device can obtain the disconnection event for corresponding processing based on the disconnection event.

[0136] As Figure 5 shown in the embodiments, in Scenario 2, the Wi-Fi main chip controls the third timer to be in the on state and controls the fourth timer to be in the off state, so that during the process of the Wi-Fi main chip being in the sleep state, the third timer wakes up the Wi-Fi main chip according to the first period to send the second null data frame to the AP, and the fourth timer does not wake up the Wi-Fi main chip, reducing the number of times the Wi-Fi main chip is woken up in Scenario 2, thereby reducing the power consumption of the electronic device. In Scenario 2, the power consumption of the electronic device can be further reduced by not turning on the radio frequency receiving link of the Wi-Fi main chip when the Wi-Fi main chip is woken up. In addition, the Wi-Fi main chip or the chip link controls to transmit information F to the Wi-Fi main chip according to the second period. In this way, in the case where the Wi-Fi main chip does not receive the beacon frame from the AP, the Wi-Fi main chip can know that the Wi-Fi main chip is connected to the AP, and it is realized that in the case where the Wi-Fi secondary chip fails to transmit the disconnection event to the SoC of the electronic device, the disconnection event can also be transmitted to the SoC of the electronic device through the Wi-Fi main chip. In this way, the application of the electronic device can obtain the disconnection event for corresponding processing based on the disconnection event.

[0137] The control method provided by the embodiments of the present application for Scenario 1 or Scenario 2 has been described above. Next, the control method provided by the embodiments of the present application for Scenario 3 will be described.

[0138] Exemplarily, for Scenario 3, Figure 7 Another block diagram of the software and hardware of the electronic device provided by the embodiments of the present application is shown.

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

[0140] In a possible implementation manner, when receiving the information G, the Wi-Fi main chip 102 can turn off the radio frequency receiving link and the radio frequency transmitting link of the Wi-Fi main chip 102. The Wi-Fi main chip 102 can also control the third timer to be in the on state and control the fourth timer to be in the off state. The Wi-Fi main chip 102 enters the sleep state.

[0141] When receiving the information G, the Wi-Fi sub-chip 103 can turn off the radio frequency receiving link and the radio frequency transmitting link of the Wi-Fi sub-chip 103. The Wi-Fi sub-chip 103 can also control both the first timer and the second timer to be in the on state. The Wi-Fi sub-chip 103 enters the sleep state.

[0142] Among them, when the second timer in the on state reaches the second period of the second timing duration of the second timer, the Wi-Fi sub-chip 103 can be woken up.

[0143] When the Wi-Fi sub-chip 103 is woken up by the second timer, it can turn on the radio frequency receiving link and the radio frequency transmitting link of the Wi-Fi sub-chip 103, and receive the beacon frame from the AP through the radio frequency receiving link of the Wi-Fi sub-chip 103. The second period is, for example, 100 ms. Optionally, when the Wi-Fi sub-chip 103 is woken up by the second timer, it can turn on the radio frequency receiving link of the Wi-Fi sub-chip 103 without turning on the radio frequency transmitting link of the Wi-Fi sub-chip 103, so that the power consumption of the electronic device can be reduced.

[0144] From the moment when the Wi-Fi secondary chip 103 is awakened by the second timer, the Wi-Fi secondary chip 103 can start timing and obtain the second timing duration. When the second timing duration reaches the second duration threshold, the Wi-Fi secondary chip 103 can control both the radio frequency receiving link and the radio frequency transmitting link of the Wi-Fi secondary chip 103 to be in the off state. The Wi-Fi secondary chip 103 enters the sleep state again. The second duration threshold is less than the second period. 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 5 ms.

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

[0146] Optionally, when the Wi-Fi secondary chip 103 receives a beacon frame from the AP, the Wi-Fi secondary chip 103 can transmit information F to the Wi-Fi primary chip 102 through the high-speed bus. In this way, the Wi-Fi primary chip 102 does not need to receive the beacon frame from the AP, and thus does not need to be periodically awakened to turn on the radio frequency receiving link of the Wi-Fi primary chip 102, which can reduce the power consumption when the radio frequency receiving link is in the on state, and further reduce the power consumption of the electronic device. It can be realized that when the Wi-Fi primary chip 102 does not receive the beacon frame from the AP, the Wi-Fi primary chip 102 can know that the Wi-Fi primary chip 102 is connected to the AP, and it can also be realized that when the Wi-Fi secondary chip 103 fails to transmit a disconnection event to the SoC of the electronic device, the disconnection event can also be transmitted to the SoC of the electronic device through the Wi-Fi primary chip 102.

[0147] Optionally, when the Wi-Fi secondary chip 103 is in the sleep state and the duration during which the Wi-Fi primary chip 102 does not transmit the application data frame to the SoC reaches the second duration threshold, the SoC can transmit information G to the Wi-Fi primary chip 102 through the main chip driver 503. In this way, when the Wi-Fi primary chip 102 completes the transmission of the application data, it can enter the sleep state to reduce the power consumption of the electronic device and maintain the connection between the Wi-Fi primary chip 102 and the AP.

[0148] Optionally, when the Wi-Fi main chip 102 is in the sleep state and the duration during which the Wi-Fi secondary chip 103 does not transmit the application data frame 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. In this way, when the Wi-Fi secondary chip 103 completes the transmission of the application data, it can enter the sleep state to reduce the power consumption of the electronic device and maintain the connection between the Wi-Fi secondary chip 103 and the AP.

[0149] In scenario three shown in the embodiments of the present application, the Wi-Fi secondary chip 103 can be woken up by the first timer in the on state at the first period to send the first null data frame to the AP. The Wi-Fi secondary chip 103 can also be woken up by the second timer in the on state at the second period to receive the beacon frame from the AP. The Wi-Fi main chip 102 can be woken up by the third timer in the on state at the first period to send the second null data frame to the AP. And 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, and thus reducing the power consumption of the electronic device.

[0150] In another possible implementation, when receiving the information G, the Wi-Fi main chip 102 can turn off the radio frequency receiving link and the radio frequency transmitting link of the Wi-Fi main chip 102. The Wi-Fi main chip 102 can also control both the third timer and the fourth timer to be in the on state. The Wi-Fi main chip 102 enters the sleep state.

[0151] When receiving the information G, the Wi-Fi secondary chip 103 can turn off the radio frequency receiving link and the radio frequency transmitting link of the Wi-Fi secondary chip 103. The Wi-Fi secondary chip 103 can also control the first timer to be in the on state and control the second timer to be in the off state. The Wi-Fi secondary chip 103 enters the sleep state.

[0152] Among them, the fourth timer in the on state can wake up the Wi-Fi main chip 102 when the fourth timing duration of the fourth timer reaches the second period.

[0153] When the Wi-Fi main chip 102 is woken up by the fourth timer, it can turn on the radio frequency receiving link and the radio frequency transmitting link of the Wi-Fi main chip 102 and receive the beacon frame from the AP through the radio frequency receiving link of the Wi-Fi main chip 102. Optionally, when the Wi-Fi main chip 102 is woken up by the fourth timer, it can turn on the radio frequency receiving link of the Wi-Fi main chip 102 without turning on the radio frequency transmitting link of the Wi-Fi main chip 102. In this way, the power consumption of the electronic device can be reduced.

[0154] Since the Wi-Fi main chip 102 starts timing from the moment it is awakened by the second timer, the Wi-Fi main chip 102 can perform timing to obtain the fourth timing duration. When the fourth timing duration reaches the second duration threshold, the Wi-Fi main chip 102 can turn off the radio frequency receiving link and the radio frequency transmitting link of the Wi-Fi main chip 102 and enter the sleep state.

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

[0156] Optionally, when the Wi-Fi main chip 102 receives a beacon frame from the AP, the Wi-Fi main chip 102 can transmit information C to the Wi-Fi sub-chip 103 through the high-speed bus. In this way, the Wi-Fi sub-chip 103 does not need to receive the beacon frame from the AP, and thus does not need to be periodically awakened to turn on the radio frequency receiving link of the Wi-Fi sub-chip 103, which can reduce the power consumption of the radio frequency receiving link in the on state, and further reduce the power consumption of the electronic device. It can be realized that when the Wi-Fi sub-chip 103 does not receive the beacon frame from the AP, the Wi-Fi sub-chip 103 can know that the Wi-Fi sub-chip 103 is connected to the AP, and it can also be realized that when the Wi-Fi main chip 102 fails to transmit a disconnection event to the SoC of the electronic device, the Wi-Fi sub-chip 103 can also transmit the disconnection event to the SoC of the electronic device.

[0157] In Scenario 3 shown in the embodiments of the present application, the Wi-Fi main chip 102 can be awakened by the third timer in the on state according to the first period to send the second null data frame to the AP. The Wi-Fi main chip 102 can also be awakened by the fourth timer in the on state according to the second period to receive the beacon frame from the AP. The Wi-Fi sub-chip 103 can be awakened by the first timer in the on state according to the first period to send the first null data frame to the AP. And the second timer in the off state does not wake up the Wi-Fi sub-chip 103, reducing the number of times the Wi-Fi sub-chip 103 is awakened, and thus reducing the power consumption of the electronic device.

[0158] Optionally, the power consumption of the Wi-Fi sub-chip 103 can be less than the power consumption of the Wi-Fi main chip 102. In this way, in Scenario 3, waking up the Wi-Fi sub-chip 103 according to the first period, waking up the Wi-Fi sub-chip 103 according to the second period, waking up the Wi-Fi main chip 102 according to the first period, and not waking up the Wi-Fi main chip 102 according to the second period can reduce the power consumption of the electronic device.

[0159] For scenario three, Figure 8 Another schematic diagram showing the communication between the Wi-Fi main chip and the Wi-Fi sub-chip provided in the embodiment of the present application and the AP is also shown.

[0160] As Figure 8 shown, in scenario three, both the Wi-Fi main chip 102 and the Wi-Fi sub-chip 103 are in the sleep state. The Wi-Fi sub-chip 103 can be woken up according to the second period, and when the Wi-Fi sub-chip 103 is woken up, it receives a beacon frame from the AP. The Wi-Fi sub-chip 103 can also be woken up according to the first period, and when the Wi-Fi sub-chip 103 is woken up, it sends a first null data frame or a first null data frame to the AP to maintain the connection between the Wi-Fi sub-chip 103 and the AP. The Wi-Fi main chip 102 can also be woken up according to the first period, and when the Wi-Fi main chip 102 is woken up, it sends a second null data frame or a second null data frame to the AP to maintain the connection between the Wi-Fi main chip 102 and the AP.

[0161] When the Wi-Fi sub-chip 103 sends a first null data frame to the AP, the Wi-Fi sub-chip 103 can receive a beacon frame from the AP, or the Wi-Fi sub-chip 103 can also turn off the radio frequency receiving link of the Wi-Fi sub-chip 103 and not receive the beacon frame from the AP. When the Wi-Fi main chip 102 sends a second null data frame to the AP, the Wi-Fi main chip 102 can receive a beacon frame from the AP, or the Wi-Fi main chip 102 can also turn off the radio frequency receiving link of the Wi-Fi main chip 102 and not receive the beacon frame from the AP.

[0162] In scenario three, the Wi-Fi main chip 102 is not woken up according to the second period, reducing the number of times the Wi-Fi main chip 102 is woken up, and thus reducing the power consumption of the electronic device.

[0163] Optionally, if the electronic device includes three or more Wi-Fi chips. When multiple Wi-Fi chips in the electronic device are all in the sleep state, one of the multiple Wi-Fi chips can be woken up according to the first period to send a null data frame to the AP, and this one Wi-Fi chip can also be woken up according to the second period to receive a beacon frame from the AP. The specific implementation principle is the same as that of Figure 8The specific implementation principle of the Wi-Fi sub-chip 103 communicating with the AP in the embodiments is similar, and the embodiments of the present application will not elaborate further. Other Wi-Fi chips among multiple Wi-Fi chips can be woken up at the first period to send null data frames to the AP. Optionally, when this one 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 respectively through a high-speed bus. In this way, it is not necessary to wake up other Wi-Fi chips at the second period, thereby reducing the power consumption of the electronic device.

[0164] The embodiments of the present application also provide a control method, which is applied to an electronic device. The electronic device includes a first chip and a second chip. The method includes:

[0165] Transmitting data of an application of the electronic device through the first chip and an access point AP. Wherein, the second chip is in a sleep state.

[0166] During the process of transmitting data of the application of the electronic device through the first chip and the access point AP, the second chip is woken up at the first period, and when the second chip is woken up, a first message is sent to the AP through the second chip. The first message is used to indicate maintaining the connection between the second chip and the AP. Wherein, between two adjacent awakenings of the second chip, the second chip does not receive beacon frames from the AP. In the embodiments of the present application, the first period can be 11s.

[0167] Exemplarily, in the embodiments of the present application, the first chip can be Figure 5 the Wi-Fi main chip 102 in the embodiments, and the second chip can be Figure 5 the Wi-Fi sub-chip 103 in the embodiments, and the access point AP can be Figure 5 the AP in the embodiments. The first message can be a first null data frame. The electronic device transmits data of the application of the electronic device through the Wi-Fi main chip 102 and the AP. Wherein, the Wi-Fi sub-chip 103 is in a sleep state. During the process of transmitting data of the application of the electronic device through the Wi-Fi main chip 102 and the AP, the Wi-Fi sub-chip 103 is woken up at the first period, and when the Wi-Fi sub-chip 103 is woken up, a first null data frame is sent to the AP through the Wi-Fi sub-chip 103. Wherein, between two adjacent awakenings 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 the embodiments of the present application, reference can be made to Figure 5 the specific implementation principle of Scenario 1 in the embodiments, which will not be elaborated further here.

[0168] Exemplarily, in the embodiments of the present application, the first chip can be Figure 5 the Wi-Fi sub-chip 103 in the embodiments, and the second chip can be Figure 5In the Wi-Fi main chip 102 in the embodiment, the access point AP can be Figure 5 the AP in the embodiment. The first information can be Figure 5 the first null data frame in the embodiment. The first information can be the second null data frame. The electronic device transmits the data of the application of the electronic device through the Wi-Fi secondary chip 103 and the AP. Among them, the Wi-Fi main chip 102 is in a sleep state. During the process of the Wi-Fi secondary chip 103 and the AP transmitting the data of the application of the electronic device, the Wi-Fi main chip 102 is awakened according to the first period, and when the Wi-Fi main chip 102 is awakened, a second null data frame is sent to the AP through the Wi-Fi main chip 102. Among them, between two adjacent awakenings of the Wi-Fi secondary chip 103, the Wi-Fi secondary chip 103 does not receive beacon frames from the AP. For the specific implementation principle of the embodiments of the present application, reference can be made to Figure 5 the specific implementation principle of scenario two in the embodiment, which will not be elaborated here.

[0169] In this way, in the case where the electronic device transmits the data of the application through the first chip and the AP, the second chip in the sleep state is awakened according to the first period to send information for indicating maintaining the connection between the second chip and the AP to the AP, without awakening the second chip to receive beacon frames sent by the AP according to other periods. In this way, the number of times the second chip is awakened during the sleep state can be reduced, and thus the power consumption of the electronic device can be reduced.

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

[0171] The second chip receives the second information transmitted by the first chip according to the second period, and the second information indicates that the second chip maintains a connection with the AP, and the second period is less than the first period.

[0172] Alternatively, the second chip receives the second information transmitted by the system-on-chip SoC of the electronic device according to the second period.

[0173] Exemplarily, when the first chip is Figure 5 the Wi-Fi main chip 102 in the embodiment, and the second chip is Figure 5 the Wi-Fi secondary chip 103 in the embodiment, the first information can be the first null data frame, and the second information can be Figure 5 information C in the embodiment. As shown in Figure 5 scenario one in 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 according to the second period. Alternatively, the Wi-Fi secondary chip 103 can receive information C transmitted by the SoC through the chip link control 502 according to the second period. The second period can be 100 ms.

[0174] Exemplarily, when the first chip is Figure 5 the Wi-Fi sub-chip 103 in the embodiment, and the second chip is Figure 5 the Wi-Fi main chip 102 in the embodiment, the first information may be a second null data frame, and the second information may also be Figure 5 information F in the embodiment. As Figure 5 shown in Scenario 2 of the embodiment, the Wi-Fi main chip 102 may receive information F transmitted by the Wi-Fi sub-chip 103 at a second period. Alternatively, the Wi-Fi main chip 102 may receive information F that the SoC can transmit at a second period through the chip link control 502.

[0175] In this way, there is no need to wake up the second chip in the sleep state at the second period, and it is realized that the second chip in the sleep state can know that it remains connected to the AP. Since there is no need to wake up the second chip in the sleep state at the second period, the power consumption of the electronic device is reduced.

[0176] Optionally, the method provided in the embodiments of the present application further includes:

[0177] When both the first chip and the second chip are in the sleep state, wake up the second chip at a first period, and when the second chip is awakened, send the first information to the AP through the second chip. And wake up the second chip at a second period, and receive the beacon frame from the AP when the second chip is awakened, where the second period is less than the first period.

[0178] Wake up the first chip at a first period, and when the first chip is awakened, send the third information to the AP through the first chip, where the third information is used to indicate maintaining the connection between the first chip and the AP. Among them, between two adjacent awakenings of the first chip, the first chip does not receive the beacon frame from the AP.

[0179] Exemplarily, the first chip may be Figure 7 the Wi-Fi main chip 102 in the embodiment, the second chip may be Figure 7 the Wi-Fi sub-chip 103 in the embodiment, the AP may be Figure 7 the AP in the embodiment, the first information may be a first null data frame, and the third information may be a second null data frame. For the specific implementation principle of the embodiments of the present application, reference may be made to Figure 7In the specific implementation principle of Scenario 1 in the embodiment, when both the Wi-Fi main chip 102 and the Wi-Fi secondary chip 103 are in the sleep state, the Wi-Fi secondary chip 103 is woken up according to the first period. When the Wi-Fi secondary chip 103 is woken up, a first null data frame is sent to the AP through the Wi-Fi secondary chip 103. And the Wi-Fi secondary chip 103 is woken up according to the second period, and when the Wi-Fi secondary chip 103 is woken up, a beacon frame from the AP is received. The Wi-Fi main chip 102 is woken up according to the first period, and when the Wi-Fi main chip 102 is woken up, a second null data frame is sent to the AP through the Wi-Fi main chip 102. Among them, between two adjacent awakenings of the Wi-Fi main chip 102, the Wi-Fi main chip 102 does not receive the beacon frame from the AP.

[0180] Exemplarily, the first chip may be Figure 7 the Wi-Fi secondary chip 103 in the embodiment, and the second chip may be Figure 7 the Wi-Fi main chip 102 in the embodiment, and the AP may be Figure 7 the AP in the embodiment, the first information may be the second null data frame, and the third information may be the first null data frame. For the specific implementation principle of the embodiment of the present application, reference may be made to Figure 7 In the specific implementation principle of Scenario 2 in the embodiment, when both the Wi-Fi main chip 102 and the Wi-Fi secondary chip 103 are in the sleep state, the Wi-Fi main chip 102 is woken up according to the first period. When the Wi-Fi main chip 102 is woken up, a second null data frame is sent to the AP through the Wi-Fi main chip 102. And the Wi-Fi main chip 102 is woken up according to the second period, and when the Wi-Fi main chip 102 is woken up, a beacon frame from the AP is received. The Wi-Fi secondary chip 103 is woken up according to the first period, and when the Wi-Fi secondary chip 103 is woken up, a first null data frame is sent to the AP through the Wi-Fi secondary chip 103. Among them, between two adjacent awakenings of the Wi-Fi secondary chip 103, the Wi-Fi secondary chip 103 does not receive the beacon frame from the AP.

[0181] In this way, during the process that both the first chip and the second chip are in the sleep state, there is no need to wake up the first chip according to the second period, which can reduce the number of times the first chip is woken up, and thus can reduce 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, during the process that both the first chip and the second chip are in the sleep state, the power consumption of the electronic device can be further reduced.

[0184] Optionally, waking up the second chip according to the second period includes:

[0185] Turn on the radio frequency receiving link of the second chip according to the second period. The radio frequency receiving link is used to receive beacon frames from the AP. Among them, the radio frequency transmitting link of the second chip is turned off. Between two adjacent turn-ons of the radio frequency receiving link of the second chip, both the radio frequency receiving link and the radio frequency transmitting link of the second chip are turned off.

[0186] In this way, compared with turning on the radio frequency receiving link and the radio frequency transmitting link of the second chip simultaneously according to the second period, the embodiment of the present application can reduce the power consumption of the electronic device.

[0187] Optionally, waking up the second chip according to the first period includes:

[0188] Turn on the radio frequency transmitting link of the second chip according to the first period. The radio frequency transmitting link is used to send the first information to the AP. Among them, the radio frequency receiving link of the second chip is turned off. Between two adjacent turn-ons of the radio frequency transmitting link of the second chip, both the radio frequency receiving link and the radio frequency transmitting link of the second chip are turned off.

[0189] In this way, compared with turning on the radio frequency receiving link and the radio frequency transmitting link of the second chip simultaneously according to the first period, the embodiment of the present application can reduce the power consumption of the electronic device.

[0190] Optionally, the method provided by the embodiment of the present application further includes:

[0191] Transmit the data of the application of the electronic device through the second chip and the AP. Among them, the first chip is in a sleep state.

[0192] During the process of transmitting the data of the application of the electronic device through the second chip and the AP, wake up the second chip according to the first period, and when the second chip is woken up, send the first information to the AP through the second chip. The first information is used to indicate maintaining the connection between the second chip and the AP. Among them, between two adjacent wake-ups of the second chip, the second chip does not receive beacon frames from the AP.

[0193] Exemplarily, in the embodiment of the present application, the first chip may be Figure 5 The Wi-Fi main chip 102 in the embodiment, and the second chip may be Figure 5 The Wi-Fi secondary chip 103 in the embodiment, and the access point AP may be Figure 5The AP in the embodiment. The first information may be a first null data frame. The electronic device transmits the data of the application of the electronic device through the Wi-Fi sub-chip 103 and the AP. Among them, the Wi-Fi main chip 102 is in a sleep state. During the process of transmitting the data of the application of the electronic device through the Wi-Fi sub-chip 103 and the AP, the Wi-Fi sub-chip 103 is awakened according to the first period, and when the Wi-Fi sub-chip 103 is awakened, a first null data frame is sent to the AP through the Wi-Fi sub-chip 103. Among them, between two adjacent awakenings of the Wi-Fi sub-chip 103, the Wi-Fi sub-chip 103 does not receive beacon frames from the AP.

[0194] In this way, in the case where the AP cannot maintain the connection between the second chip and the AP based on the data of the application transmitted by the second chip to the AP, the AP can maintain the connection between the second chip and the AP based on the first null data frame, reducing the probability of interruption of the data transmission of the application caused by the AP not maintaining the connection between the second chip and the AP.

[0195] The embodiment of the present application also provides a control method, which is applied to an electronic device. The electronic device includes a first chip and a second chip. The method includes:

[0196] When both the first chip and the second chip are in a sleep state, the second chip is awakened according to the first period, and when the second chip is awakened, a first information is sent to the AP through the second chip. The first information is used to indicate maintaining the connection between the second chip and the AP. And the second chip is awakened according to the second period, and when the second chip is awakened, a beacon frame from the AP is received. The second period is less than the first period.

[0197] The first chip is awakened according to the first period, and when the first chip is awakened, a third information is sent to the AP through the first chip. The third information is used to indicate maintaining the connection between the first chip and the AP. Among them, between two adjacent awakenings of the first chip, the first chip does not receive beacon frames from the AP.

[0198] Exemplarily, the first chip may be Figure 7 The Wi-Fi main chip 102 in the embodiment, and the second chip may be Figure 7 The Wi-Fi sub-chip 103 in the embodiment, and the AP may be Figure 7 The AP in the embodiment. The first information may be a first null data frame, and the third information may be a second null data frame. For the specific implementation principle of the embodiment of the present application, reference may be made to Figure 7 The specific implementation principle of Scenario 1 in the embodiment, which will not be elaborated here.

[0199] Exemplarily, the first chip may be Figure 7 The Wi-Fi sub-chip 103 in the embodiment, and the second chip may be Figure 7In the Wi-Fi main chip 102 in the embodiment, the AP may be Figure 7 In the AP in the embodiment, the first information may be a second null data frame, and the third information may be a first null data frame. For the specific implementation principle of the embodiment of the present application, reference may be made to Figure 7 the specific implementation principle of Scenario 2 in the embodiment, which will not be elaborated here.

[0200] In this way, during the process that both the first chip and the second chip are in the sleep state, it is not necessary to wake up the first chip according to the second period, which can reduce the number of times the first chip is woken up, and thus can reduce the power consumption of the electronic device.

[0201] Optionally, the power consumption of the second chip is less than that of the first chip. In this way, during the process that both the first chip and the second chip are in the sleep state, the power consumption of the electronic device can be further reduced.

[0202] Optionally, waking up the first chip according to the first period includes:

[0203] Turning on the radio frequency transmission link of the first chip according to the first period, where the radio frequency transmission link is used to send the third information to the AP. Among them, the radio frequency reception link of the first chip is closed, and between two adjacent turn-ons of the radio frequency transmission link of the first chip, both the radio frequency reception link and the radio frequency transmission link of the first chip are closed.

[0204] In this way, compared with turning on both the radio frequency reception link and the radio frequency transmission link of the first chip according to the first period, the embodiment of the present application can reduce the power consumption of the electronic device.

[0205] The embodiment of the present application further provides a control method, which is applied to an electronic device. The electronic device includes a first chip and a second chip. The method includes:

[0206] Transmitting the data of the application of the electronic device through the first chip and the access point AP. Among them, the second chip is in the sleep state, and the AP does not send beacon frames.

[0207] During the process of transmitting the data of the application of the electronic device through the first chip and the access point AP, waking up the second chip according to the first period, and when the second chip is woken up, sending the first information to the AP through the second chip, where the first information is used to indicate maintaining the connection between the second chip and the AP. Among them, when the second chip does not receive beacon frames, the second chip maintains the connection with the AP.

[0208] Exemplarily, in the embodiment of the present application, the first chip may be Figure 5 the Wi-Fi main chip 102 in the embodiment, and the second chip may be Figure 5 the Wi-Fi secondary chip 103 in the embodiment, and the access point AP may be Figure 5The AP in the embodiment. The first information may be a first null data frame. The electronic device transmits the data of the application of the electronic device through the Wi-Fi main chip 102 and the AP. Among them, the Wi-Fi sub-chip 103 is in a sleep state. During the process of the Wi-Fi main chip 102 and the AP transmitting the data of the application of the electronic device, the Wi-Fi sub-chip 103 is awakened according to the first period, and when the Wi-Fi sub-chip 103 is awakened, a first null data frame is sent to the AP through the Wi-Fi sub-chip 103, and the AP is also controlled not to send a beacon frame. Among them, the Wi-Fi sub-chip 103 does not receive the beacon frame, and the Wi-Fi sub-chip 103 remains connected to the AP.

[0209] Exemplarily, in the embodiment of the present application, the first chip may be Figure 5 The Wi-Fi sub-chip 103 in the embodiment, and the second chip may be Figure 5 The Wi-Fi main chip 102 in the embodiment, and the access point AP may be Figure 5 The AP in the embodiment. The first information may be Figure 5 The first null data frame in the embodiment. The first information may be the second null data frame. The electronic device transmits the data of the application of the electronic device through the Wi-Fi sub-chip 103 and the AP. Among them, the Wi-Fi main chip 102 is in a sleep state. During the process of the Wi-Fi sub-chip 103 and the AP transmitting the data of the application of the electronic device, the Wi-Fi main chip 102 is awakened according to the first period, and when the Wi-Fi main chip 102 is awakened, a second null data frame is sent to the AP through the Wi-Fi main chip 102, and the AP is also controlled not to send a beacon frame. Among them, the Wi-Fi main chip 102 does not receive the beacon frame, and the Wi-Fi main chip 102 remains connected to the AP.

[0210] In this way, when the electronic device transmits the data of the application through the first chip and the AP, the second chip in the sleep state is awakened according to the first period to send information for indicating maintaining the connection between the second chip and the AP to the AP, without awakening the second chip to receive the beacon frame according to other periods. In this way, the number of times the second chip is awakened during the sleep state can be reduced, thereby reducing the power consumption of the electronic device and also realizing maintaining the connection between the second chip and the AP.

[0211] The control method of the embodiment of the present application has been described above. Next, the device for executing the above control method provided by the embodiment of the present application will be described. Those skilled in the art can understand that the method and the device can be combined and cited with each other, and the related device provided by the embodiment of the present application can execute the steps in the above control method.

[0212] The control method provided by the embodiments of the present application can be applied to an electronic device with communication functions. The electronic device includes a terminal device, and the specific device form of the terminal device and the like can refer to the above relevant description, which will not be elaborated here.

[0213] The embodiments of the present application provide an electronic device, which includes: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the electronic device executes the above method.

[0214] The embodiments of the present application provide a chip. The chip includes a processor, and the processor is used to call a computer program in the memory to execute the technical solutions in the above embodiments. Its implementation principle and technical effects are similar to those of the above relevant embodiments, which will not be elaborated here.

[0215] The embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the above method is implemented. The methods described in the above embodiments can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the functions can be stored as one or more instructions or codes on a computer-readable medium or transmitted on a computer-readable medium. The computer-readable medium can include a computer storage medium and a communication medium, and can also include any medium that can transmit a computer program from one place to another. The storage medium can be any target medium accessible by a computer.

[0216] In a possible implementation, the computer-readable medium may include RAM, ROM, a compact disc read-only memory (CD-ROM), or other optical disc memories, magnetic disk memories, or other magnetic storage devices, or any other medium targeted at carrying or storing the required program code in the form of instructions or data structures and accessible by a computer. Moreover, any connection is properly 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, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of the medium. As used herein, disk and optical disc include optical disc, laser disc, optical disc, digital versatile disc (DVD), floppy disk, and Blu-ray disc, where disks typically reproduce data magnetically, while optical discs use lasers to optically reproduce data. The above combinations should also be included within the scope of the computer-readable medium.

[0217] An embodiment of the present application provides a computer program product. The computer program product includes a computer program. When the computer program is run, it causes a computer to execute the above method.

[0218] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, and the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable devices to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing devices generate a device for implementing the functions specified in one process Figure 1 one process or multiple processes and / or blocks Figure 1 or a device for implementing the functions specified in multiple blocks.

[0219] The above specific implementation manners further elaborate on the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above are only specific implementation manners of the present invention and are not used to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made on the basis of the technical solution of the present invention should be included in the protection scope of the present invention.

Claims

1. A control method, characterized in that, applied to an electronic device, the electronic device includes a first chip and a second chip, and the method includes: transmitting data of an application of the electronic device through the first chip and an access point AP; wherein, the second chip is in a sleep state; during the process of transmitting data of the application of the electronic device through the first chip and the access point AP, waking up the second chip according to a first period, and when the second chip is woken up, sending a first message to the AP through the second chip, the first message is used to indicate maintaining the connection between the second chip and the AP; wherein, between two adjacent awakenings 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 data of the application of the electronic device through the first chip and the access point AP, the method further includes: the second chip receives second information transmitted by the first chip according to a second period, the second information indicates that the second chip maintains a connection with the AP, and the second period is less than the first period; or, the second chip receives the second information transmitted by the system-on-chip (SoC) of the electronic device according to the second period.

3. The method according to claim 1 or 2, characterized in that, the method further includes: in the case where both the first chip and the second chip are in a sleep state, waking up the second chip according to the first period, and when the second chip is woken up, sending the first message to the AP through the second chip; and waking up the second chip according to a second period, and when the second chip is woken up, receiving a beacon frame from the AP, the second period is less than the first period; waking up the first chip according to the first period, and when the first chip is woken up, sending a third message to the AP through the first chip, the third message is used to indicate maintaining the connection between the first chip and the AP; wherein, between two adjacent awakenings 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, waking up the second chip according to the second period includes: turning on the radio frequency receiving link of the second chip according to the second period, the radio frequency receiving link is used to receive beacon frames from the AP; wherein, the radio frequency transmitting link of the second chip is turned off, and between two adjacent turn-ons of the radio frequency receiving link of the second chip, both the radio frequency receiving link and the radio frequency transmitting link of the second chip are turned off.

6. The method according to any one of claims 1-5, characterized in that, waking up the second chip according to the first period includes: Turn on the radio frequency (RF) transmission link of the second chip according to the first period, where the RF transmission link is used to send the first information to the AP; wherein, the RF reception link of the second chip is turned off, and between two adjacent turn - ons of the RF transmission link of the second chip, both the RF reception link and the RF transmission link of the second chip are turned off.

7. The method according to any one of claims 1 - 6, wherein, both the first chip and the second chip are Wi - Fi (Wireless Fidelity) chips.

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

9. The method according to any one of claims 1 - 8, wherein, the method further includes: transmitting data of an application of the electronic device through the second chip and the AP; wherein, the first chip is in a sleep state; during the process of transmitting data of an application of the electronic device through the second chip and the AP, wake up the second chip according to a first period, and when the second chip is woken up, send the first information through the second chip to the AP, where the first information is used to indicate maintaining the connection between the second chip and the AP; wherein, between two adjacent wake - ups of the second chip, the second chip does not receive beacon frames from the AP.

10. A control method, wherein, applied to an electronic device, the electronic device includes a first chip and a second chip, and the method includes: when both the first chip and the second chip are in a sleep state, wake up the second chip according to a first period, and when the second chip is woken up, send the first information through the second chip to an access point (AP), where the first information is used to indicate maintaining the connection between the second chip and the AP; and wake up the second chip according to a second period, and when the second chip is woken up, receive beacon frames from the AP, where the second period is less than the first period; wake up the first chip according to the first period, and when the first chip is woken up, send the third information through the first chip to the AP, where the third information is used to indicate maintaining the connection between the first chip and the AP; wherein, between two adjacent wake - ups of the first chip, the first chip does not receive beacon frames from the AP.

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

12. The method according to claim 10 or 11, wherein, the step of waking up the first chip according to the first period includes: turn on the RF transmission link of the first chip according to the first period, where the RF transmission link is used to send the third information to the AP; wherein, the RF reception link of the first chip is turned off, and between two adjacent turn - ons of the RF transmission link of the first chip, both the RF reception link and the RF transmission link of the first chip are turned off.

13. The method according to any one of claims 10 - 12, wherein, The first chip and the second chip are both Wi-Fi chips.

14. An electronic device, characterized in that it includes: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the electronic device executes the method according to 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, the method according to any one of claims 1-13 is implemented.

16. A computer program product, characterized in that it includes a computer program, and when the computer program is run, the computer executes the method according to any one of claims 1-13.

17. A chip, characterized in that the chip includes a processor, and the processor is used to call a computer program in a memory to execute the method according to any one of claims 1-13.

Citation Information

Patent Citations

  • Communication method, network equipment and terminal

    CN108064057A

  • Communication method and wireless device

    CN109314926A

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

    CN111163447A

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

    CN114650561A

  • Method and device for transmitting WUR message

    CN114828199A