Wi-fi working mode switching method and related apparatus

By first sending physical frames in a low-spec working mode when switching the working mode of the Wi-Fi module and maintaining reception in a high-spec working mode, ensuring that the counterpart devices successfully switch the working mode, and then switching to a low-spec working mode, the problem of insufficient low-power design in the existing Wi-Fi protocol is solved, and the effect of reducing power consumption and extending battery life is achieved.

WO2025039980A1PCT designated stage expired Publication Date: 2025-02-27HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/112376
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-08-18
Filing Date
2024-08-15
Publication Date
2025-02-27

AI Technical Summary

Technical Problem

The existing Wi-Fi protocol is insufficient in low-power design in medium and low traffic scenarios, resulting in increased power consumption of equipment and the inability to effectively manage the use of multiple antennas and large bandwidths, affecting the battery life and thermal management of the equipment.

Method used

It provides a Wi-Fi working mode switching method. When switching the working mode of the Wi-Fi module, it first sends physical frames to the peer device in a low-spec working mode, and maintains receiving physical frames sent by the peer device in a high-spec working mode, ensuring that the device clearly knows that the peer device has successfully switched the working mode, and then switches to the low-spec working mode to ensure the normality of data transmission.

Benefits of technology

Through this method, while ensuring the normality of data transmission, it is possible to reduce the power consumption of the device, extend the battery life, and improve the thermal management capabilities of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024112376_27022025_PF_FP_ABST
    Figure CN2024112376_27022025_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application is a Wi-Fi working mode switching method and a related apparatus. If an electronic device needs to switch a Wi-Fi module from a first working mode to a second working mode having a specification lower than that of the first working mode, the electronic device can send a working mode switching instruction to a peer device, so as to instruct the peer device to be switched to the second working mode; after the working mode switching instruction is sent to the peer device, the electronic device can switch to the second working mode to send a physical frame to the peer device, and can remain in the first working mode to receive the physical frame sent by the peer device; when it is detected from the physical frame sent by the peer device that the peer device has been switched to the second working mode, the working mode of the Wi-Fi module is switched to the second working mode. Therefore, when the working mode of the Wi-Fi module is switched, it is ensured that the electronic device definitely knows whether the working mode of the peer device has been successfully switched, thereby ensuring normal data transmission.
Need to check novelty before this filing date? Find Prior Art

Description

A Wi-Fi working mode switching method and related device

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on August 18, 2023, with application number 202311052255.8 and application name “A Wi-Fi working mode switching method and related device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of wireless communication technology, and in particular to a Wi-Fi operating mode switching method and related devices. Background Art

[0003] With the application and development of the wireless fidelity (Wi-Fi) protocol, the current design of the Wi-Fi protocol targets high throughput performance, but the low-power design of the Wi-Fi protocol is insufficient in medium and low traffic scenarios. For example, in terms of bandwidth, the pursuit of large bandwidth is as much as possible, and the pursuit of multiple antennas is as much as possible. The maximum bandwidth supported by the Wi-Fi 6 protocol is currently 160MHz, and devices using the Wi-Fi 6 protocol are equipped with two antennas as standard. Therefore, during data transmission, devices pursue high transmission rates. That is, if multiple antennas can be used for transmission, single antenna transmission will not be selected, and if large bandwidth transmission can be used, small bandwidth transmission will not be selected. This will lead to increased power consumption of the device.

[0004] Summary of the Invention

[0005] The present application provides a Wi-Fi working mode switching method and related devices, which ensure that when the working mode of a Wi-Fi module is switched, the electronic device clearly knows whether the opposite device has successfully switched the working mode, thereby ensuring normal data transmission between the electronic device and the opposite device.

[0006] In a first aspect, the present application provides a Wi-Fi working mode switching method, including: establishing a first Wi-Fi connection with a second electronic device through the Wi-Fi module; when the working mode of the Wi-Fi module is in the first working mode, the first electronic device sends a physical frame to the second electronic device through the Wi-Fi module in the first working mode, and receives the physical frame sent by the second electronic device through the Wi-Fi module in the first working mode; the first electronic device sends a first switching indication to the second electronic device through the Wi-Fi module in the first working mode, the first switching indication being used to instruct the second electronic device to switch to the second working mode, wherein a specification of the first working mode is higher than a specification of the second working mode; the first electronic device sends a physical frame to the second electronic device through the Wi-Fi module in the second working mode, and receives the physical frame sent by the second electronic device in the first working mode; after the first electronic device receives the physical frame sent by the second electronic device in the second working mode through the Wi-Fi module in the first working mode, the first electronic device switches the working mode of the Wi-Fi module from the first working mode to the second working mode.

[0007] Because in a Wi-Fi device (e.g., the first electronic device), a high-specification operating mode is compatible with a low-specification operating mode. That is, when the Wi-Fi module on the Wi-Fi device operates in a high-specification operating mode, the Wi-Fi device can support sending and receiving physical frames in the high-specification operating mode while also supporting sending and receiving physical frames in the low-specification operating mode. However, when the Wi-Fi module on the Wi-Fi device operates in a low-specification operating mode, the Wi-Fi device can only support sending and receiving physical frames in the low-specification operating mode.

[0008] Therefore, through a Wi-Fi working mode switching method provided in an embodiment of the present application, it can be achieved that when the first electronic device switches the working mode with other devices, the physical frame is first switched to a low-specification working mode to send the physical frame to the opposite device, and the physical frame sent by the opposite device is received in a high-specification working mode. This can ensure that the first electronic device clearly knows that the other device has successfully switched to the low-specification working mode, and then the working mode of the Wi-Fi module is switched to the low-specification working mode. This can ensure that when the working mode of the Wi-Fi module is switched, the normal transmission of data between the first electronic device and the other device is guaranteed.

[0009] In one possible implementation, the first electronic device sends a physical frame to the second electronic device via the Wi-Fi module in the second working mode, and receives the physical frame sent by the second electronic device in the first working mode, specifically including: after the first electronic device receives a confirmation frame sent by the second electronic device via the Wi-Fi module in the second working mode, the first electronic device sends a physical frame to the second electronic device via the Wi-Fi module in the second working mode, and receives the physical frame sent by the second electronic device in the first working mode; wherein the confirmation frame is used to indicate that the second electronic device has received the first switching indication. In this way, the first electronic device can enter the trial phase only after ensuring that the second electronic device has received the switching indication, and send the physical frame to the second electronic device via the Wi-Fi module in the second working mode, and receive the physical frame sent by the second electronic device in the first working mode.

[0010] In one possible implementation, the method further includes: after the first electronic device switches the operating mode of the Wi-Fi module from the first operating mode to the second operating mode, the first electronic device sends a physical frame to the second electronic device via the Wi-Fi module in the second operating mode, and receives the physical frame sent by the second electronic device in the second operating mode. In this way, after the Wi-Fi module switches to the second operating mode, the first electronic device can send and receive physical frames in the second operating mode.

[0011] In a possible implementation, the first switching indication may be an Action frame, and the Action frame includes any one of the following: a spatial multiplexing power saving SMPS frame and an operation mode indication OMI frame.

[0012] In one possible implementation, the specifications of the first working mode are higher than the specifications of the second working mode, including: the number of antennas of the first working mode is greater than the number of antennas of the second working mode; and / or, the channel bandwidth of the first working mode is greater than the channel bandwidth of the second working mode; and / or, the order of the modulation and coding strategy MCS of the first working mode is greater than the order of the MCS of the second working mode.

[0013] In one possible implementation, the first electronic device sends a first switching instruction to the second electronic device via the Wi-Fi module in the first operating mode, specifically including: if the first electronic device meets the determination conditions for entering a low-power state, the first electronic device sends the first switching instruction to the second electronic device via the Wi-Fi module in the first operating mode; wherein the determination conditions for entering a low-power state include the remaining power of the first electronic device being less than a specified power level, and / or the device temperature of the first electronic device being higher than a specified temperature threshold. In this way, when the first electronic device enters the low-power state, it can trigger the Wi-Fi module to switch its operating mode to a low-specification operating mode to save power.

[0014] In one possible implementation, the method further includes: establishing a second Wi-Fi connection between the first electronic device and a third electronic device; when the operating mode of the Wi-Fi module is in the first operating mode, the first electronic device sends a physical frame to the third electronic device through the Wi-Fi module in a third operating mode, and receives the physical frame sent by the third electronic device through the Wi-Fi module in the third operating mode, wherein a specification of the first operating mode is higher than or equal to a specification of the third operating mode; and sending a second switching indication to the third electronic device through the Wi-Fi module in the first operating mode, where the second switching indication is used to instruct the third electronic device to switch to the second operating mode.

[0015] In this way, when the operating mode of the Wi-Fi module of a first electronic device switches from a first operating mode to a second operating mode in a multi-Wi-Fi connection scenario, the first electronic device performs an operating mode switching handshake with multiple peer devices one by one. Only when the handshake with all peer devices is successful is the operating mode of the Wi-Fi module on the first electronic device switched to the second operating mode, thereby saving power consumption.

[0016] In one possible implementation, after the first electronic device switches the Wi-Fi module from the first operating mode to the second operating mode, the method further includes: the first electronic device sending physical frames to the second electronic device and the third electronic device through the Wi-Fi module in the second operating mode, and receiving the physical frames sent by the second electronic device and the physical frames sent by the third electronic device in the second operating mode.

[0017] In a possible implementation, after the first electronic device receives the physical frame sent by the second electronic device in the second operating mode through the Wi-Fi module in the first operating mode, the first electronic device switches the Wi-Fi module from the first operating mode to the second operating mode, specifically including: if the first electronic device receives the physical frame sent by the second electronic device in the second operating mode and the physical frame sent by the third electronic device in the second operating mode through the Wi-Fi module in the first operating mode, the first electronic device switches the Wi-Fi module from the first operating mode to the second operating mode.

[0018] In this way, the working mode of the Wi-Fi module of the first electronic device is switched to the second working mode only after the second electronic device and the third electronic device are switched to the second working mode, which can also save power consumption in multiple Wi-Fi connection scenarios.

[0019] In one possible implementation, after the first electronic device sends the first switching indication to the second electronic device through the Wi-Fi module in the first operating mode and sends the second switching indication to the third electronic device, the method further includes: if the first electronic device receives, through the Wi-Fi module in the first operating mode, a physical frame sent by the second electronic device in the first operating mode and a physical frame sent by the third electronic device in the second operating mode, and a specification of the second operating mode is lower than a specification of the third operating mode, the first electronic device sends a third switching indication to the third electronic device, where the third switching indication is used to instruct the third electronic device to switch back to the third operating mode.

[0020] In this way, if the first electronic device fails to shake hands with any of the opposite devices, it can choose whether to fall back to the first working mode according to the specifications of the second working mode. At the same time, when the capabilities of different opposite devices are inconsistent, the working mode fallback can be triggered to ensure that the communication capability does not decrease when the working mode cannot be switched.

[0021] In one possible implementation, after the first electronic device sends the third switching indication to the third electronic device, the method further includes: after the first electronic device receives, through the Wi-Fi module in the first operating mode, a physical frame sent by the third electronic device in the third operating mode, maintaining the operating mode of the Wi-Fi module in the first operating mode.

[0022] In this way, when the capabilities of different opposite-end devices are inconsistent, resulting in a switching failure, the first electronic device can continue to maintain the working mode of the Wi-Fi module in the first working mode.

[0023] In one possible implementation, after the first electronic device maintains the operating mode of the Wi-Fi module in the first operating mode, the method further includes: receiving, by the first electronic device, through the Wi-Fi module in the first operating mode, a physical frame sent by the second electronic device in the first operating mode; and receiving, by the first electronic device, through the Wi-Fi module in the third operating mode, a physical frame sent by the third electronic device in the third operating mode.

[0024] In one possible implementation, the specifications of the first working mode are higher than or equal to the specifications of the third working mode, including: the number of antennas of the first working mode is greater than or equal to the number of antennas of the second working mode; and / or, the channel bandwidth of the first working mode is greater than or equal to the channel bandwidth of the second working mode; and / or, the order of the modulation and coding strategy MCS of the first working mode is greater than or equal to the order of the MCS of the second working mode.

[0025] In a second aspect, the present application provides an electronic device, comprising: a first electronic device including: one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, the one or more processors including a Wi-Fi module, and the one or more memories storing a computer program. When the one or more processors execute the computer program, the first electronic device executes the Wi-Fi operating mode switching method of any possible implementation of any of the above aspects.

[0026] In a third aspect, the present application provides a chip system, which is applied to a first electronic device. The chip system includes: a processing circuit and an interface circuit, the interface circuit being used to receive code instructions and transmit them to the processing circuit, and the processing circuit being used to execute the code instructions so that the chip system executes the Wi-Fi working mode switching method in any possible implementation of any of the above aspects.

[0027] In a fourth aspect, the present application provides a computer storage medium comprising computer instructions, which, when executed on a processor of an electronic device, enables execution of the Wi-Fi communication method in any possible implementation of any of the above aspects.

[0028] In a fifth aspect, the present application provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute the Wi-Fi working mode switching method in any possible implementation of any of the above aspects.

[0029] The beneficial effects of the second and fifth aspects mentioned above can be referred to the beneficial effects of the first aspect and any possible implementation method of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] FIG1 is a schematic diagram of the architecture of a communication system provided in an embodiment of the present application;

[0031] FIG2 is a schematic diagram of the architecture of another communication system provided in an embodiment of the present application;

[0032] FIG3A is a schematic structural diagram of an electronic device provided in an embodiment of the present application;

[0033] FIG3B is a schematic diagram of the hardware structure of a routing device provided in an embodiment of the present application;

[0034] FIG4 is a schematic diagram of a Wi-Fi application scenario provided in an embodiment of the present application;

[0035] FIG5 is a frame interaction process for switching antenna modes in static mode through SMPS frames provided by an embodiment of the present application;

[0036] FIG6 is a frame interaction process for switching antenna modes in a dynamic mode through SMPS frames provided by an embodiment of the present application;

[0037] FIG7 is a frame interaction process of switching channel bandwidth through OMI frames provided in an embodiment of the present application;

[0038] FIG8 is a frame interaction process for switching antenna modes through OMI frames provided in an embodiment of the present application;

[0039] FIG9 is a schematic diagram of a flow chart of a Wi-Fi operating mode switching method provided in an embodiment of the present application;

[0040] FIG10 is a flow chart of a method for switching Wi-Fi working modes in a multi-VAP scenario according to an embodiment of the present application. DETAILED DESCRIPTION

[0041] The following is a clear and detailed description of the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship between related objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0042] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of the technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.

[0043] The following describes the communication system provided in the implementation of this application.

[0044] FIG1 shows a schematic diagram of the architecture of a communication system provided in an embodiment of the present application.

[0045] As shown in FIG. 1 , a communication system 10 may include an electronic device 100 and a routing device 200 .

[0046] The electronic device 100 and the routing device 200 may establish a Wi-Fi connection. In the Wi-Fi connection, the electronic device 100 may serve as a station (STA) in the Wi-Fi connection, and the routing device 200 may serve as an access point (AP) in the Wi-Fi connection. The device type of the electronic device 100 may include any one of a smartphone, a smart watch, a smart speaker, a personal computer, a smart TV, a tablet computer, a smart socket, an air purifier, a smart desk lamp, a smart air conditioner, a smart curtain, a smart water heater, a router, and the like. The device type of the routing device may include any one of a smartphone, a smart watch, a smart speaker, a personal computer, a smart TV, a tablet computer, a smart socket, an air purifier, a smart desk lamp, a smart air conditioner, a smart curtain, a smart water heater, a router, and the like.

[0047] FIG2 shows a schematic diagram of the architecture of another communication system provided in an embodiment of the present application.

[0048] As shown in Figure 2, the communication system 20 may include an electronic device 100, a routing device 200 and an electronic device 300. Among them, the electronic device 100 establishes two Wi-Fi connections with the routing device 200 and the electronic device 300 at the same time. The services in the two Wi-Fi connections are carried out independently of each other. Among them, in order to establish two Wi-Fi connections with the routing device 200 and the electronic device 300 at the same time, the electronic device 100 constructs two virtual access points (VAPs) in the Wi-Fi module of the electronic device 100. These two VAPs include virtual access point 1 (VAP1) and virtual access point 2 (VAP2). Among them, VAP1 can establish a Wi-Fi connection with the routing device 200, and VAP2 can establish a Wi-Fi connection with the electronic device 300. For example, the electronic device 100 can establish a Wi-Fi connection with the routing device 200 and establish a Wi-Fi direct connection with the electronic device 300 at the same time, so as to project the display data of the electronic device 100 onto the electronic device 300 for display.

[0049] The following describes the hardware structure of an electronic device 100 provided in an embodiment of the present application.

[0050] FIG3A shows a schematic structural diagram of the electronic device 100 .

[0051] The following embodiments are described in detail using electronic device 100 as an example. It should be understood that the electronic device 100 shown in FIG3A is merely an example, and that electronic device 100 may have more or fewer components than shown in FIG3A , may combine two or more components, or may have a different component configuration. The various components shown in FIG3A may be implemented in hardware, including one or more signal processing and / or application-specific integrated circuits, software, or a combination of hardware and software.

[0052] The electronic device 100 may include: a processor 110, 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, an earphone interface 170D, a sensor module 180, an indicator 192, a camera 193, a display screen 194, etc. Among them, the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an acceleration sensor 180E, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, etc.

[0053] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

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

[0055] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0056] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0057] The USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as augmented reality devices.

[0058] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.

[0059] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.

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

[0061] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0062] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0063] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0064] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0065] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2. Among them, the wireless communication module 160 may include a Wi-Fi module.

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

[0067] The electronic device 100 implements its display function through a GPU, display screen 194, and an application processor. The display screen 194 is used to display images, videos, and the like. The display screen 194 includes a display panel. The electronic device 100 implements its photography function through an ISP, camera 193, a video codec, a GPU, display screen 194, and an application processor. The ISP processes data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then transmitted to the ISP for processing and transformed into a visible image. The camera 193 is used to capture still images or videos. The lens generates an optical image of an object and projects it onto the photosensitive element. The digital signal processor processes digital signals and can process not only digital image signals but also other digital signals. The video codec compresses or decompresses digital video. The electronic device 100 may support one or more video codecs. The NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and can also continuously self-learn. The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

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

[0069] The pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). The fingerprint sensor 180H is used to collect fingerprints. The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The indicator 192 can be an indicator light, which can be used to indicate the charging status, power changes, and can also be used to indicate messages, missed calls, notifications, etc.

[0070] The hardware structure of the electronic device 300 in the embodiment of the present application can refer to the hardware structure of the electronic device 100. The hardware modules included in the electronic device 300 and the electronic device 100 can be the same or different, which is not limited in the embodiment of the present application.

[0071] The following describes the hardware structure of a routing device 200 provided in an embodiment of the present application.

[0072] FIG3B shows a schematic diagram of the hardware structure of a routing device 200 provided in an embodiment of the present application.

[0073] As shown in FIG3B , the routing device 200 may include: a processor 201, a memory 202, a wireless communication module 203, an antenna 205, and a power management module 206.

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

[0075] The controller may be the nerve center and command center of the routing device 200. The controller may generate an operation control signal based on the instruction operation code and the timing signal to complete the control of instruction fetching and execution.

[0076] Processor 201 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 201 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 201. If processor 201 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 201's latency, and thus improves system efficiency.

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

[0078] It should be understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely an illustrative illustration and does not constitute a structural limitation on the routing device 200. In other embodiments of the present application, the routing device 200 may also adopt a different interface connection method from the above embodiment, or a combination of multiple interface connection methods.

[0079] In some embodiments, the processor 201 can be used to analyze and demodulate signals received by the wireless communication module 203. The processor 201 can respond based on the analysis results and perform corresponding operations, such as performing sensing operations. In some embodiments, the processor 201 can also be used to generate signals, such as Wi-Fi signals, that the wireless communication module 203 transmits.

[0080] Memory 202 is coupled to processor 201 and is used to store various software programs and / or multiple sets of instructions. In a specific implementation, memory 202 may include high-speed random access memory and may also include non-volatile memory, such as one or more disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. Memory 202 may store an operating system, such as embedded operating systems such as uCOS, VxWorks, and RTLinux. Memory 202 may also store communication programs that can be used to communicate with routing device 200 or other devices.

[0081] The wireless communication module 203 may include a Wi-Fi module 204. The Wi-Fi module 204 may provide a Wi-Fi wireless communication solution applied to the routing device 200. The Wi-Fi protocol used in the Wi-Fi module 204 may be IEEE 802.11a, 802.11b, 802.11n, 802.11ac, 802.11ax, etc.

[0082] Possibly, the wireless communication module 203 may also include other communication modules to provide other wireless communication solutions (for example, Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR)).

[0083] Possibly, the Wi-Fi module 204 can be integrated with other communication modules (e.g., a Bluetooth communication module). The Wi-Fi module 204 can monitor signals transmitted by other devices (e.g., the routing device 200), such as measurement signals, scanning signals, etc., and can send response signals, such as measurement responses, scanning responses, etc., so that other devices can discover the routing device 200 and establish wireless communication connections with other devices through one or more of WLAN, Bluetooth, or other short-range wireless communication technologies to perform data transmission.

[0084] In other embodiments, one or more of the Wi-Fi modules 204 may also transmit signals, such as broadcast detection signals and beacon signals, so that other devices can discover the routing device 200 and establish wireless communication connections with other devices through WLAN or other short-range wireless communication technologies to transmit data.

[0085] The antenna 205 can be used to transmit and receive electromagnetic wave signals. The antennas of different communication modules can be reused or independent of each other to improve the utilization rate of the antenna.

[0086] The power management module 206 may be used to control the power supply to the routing device 200. The power supply may be a battery or an external power supply.

[0087] In some embodiments, the hardware structure of the routing device 200 may further include an audio module (not shown in FIG3B ) and a speaker (not shown in FIG3B ). The audio module is used to convert digital audio information into analog audio signal output and also to convert analog audio input into digital audio signals. The audio module may also be used to encode and decode audio signals. The speaker, also known as a "horn," is used to convert audio electrical signals into sound signals.

[0088] In some embodiments, the hardware structure of routing device 200 may also include a microphone (not shown in FIG3B ). A microphone, also known as a "speaker" or "microphone," is used to convert sound signals into electrical signals. When making a call or sending a voice message, a user can speak by bringing their mouth close to the microphone, inputting the sound signal into the microphone. Routing device 200 may be provided with at least one microphone.

[0089] In some embodiments, the hardware structure of the routing device 200 may further include a display screen (not shown in FIG3B ). The display screen is used to display images, videos, and the like. The display screen includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the terminal may include one or N display screens, where N is a positive integer greater than one.

[0090] In some embodiments, the hardware structure of the routing device 200 may further include one or more sensors (not shown in FIG3B ). The one or more sensors may include one or more of the following: pressure sensor, gyroscope sensor, air pressure sensor, magnetic sensor, acceleration sensor, distance sensor, proximity light sensor, fingerprint sensor, temperature sensor, touch sensor, ambient light sensor, bone conduction sensor, etc.

[0091] It should be noted that the routing device 200 shown in FIG3B is only one implementation of the embodiment of the present application. In actual applications, the routing device 200 may also include more or fewer components, which is not limited here.

[0092] FIG4 shows a schematic diagram of a Wi-Fi application scenario provided in an embodiment of the present application.

[0093] As shown in Figure 4, big data statistics show that in Wi-Fi application scenarios, scenarios with Wi-Fi throughput below 10 Mbps account for 85.4%, scenarios with Wi-Fi throughput between 10 Mbps and 40 Mbps account for 14.09%, and scenarios with Wi-Fi throughput greater than 40 Mbps account for only 99%. Therefore, scenarios with Wi-Fi throughput below 40 Mbps account for over 99%.

[0094] From the perspective of Wi-Fi protocol design alone, the Wi-Fi protocol targets high-throughput performance, and its low-power design is insufficient in medium and low-throughput scenarios (for example, scenarios with throughput below 40Mbps). This is specifically manifested in the following two aspects: 1. The design of the Wi-Fi protocol pursues large channel bandwidth transmission as much as possible in terms of bandwidth. For example, the maximum channel bandwidth supported in the Wi-Fi 6 protocol is 160MHz. 2. The design of the Wi-Fi protocol pursues multiple antennas for data transmission as much as possible. For example, devices that support the Wi-Fi 6 protocol are equipped with two antennas as standard. In general, the Wi-Fi protocol pursues high transmission rates during business operations. If multiple antennas can be used for transmission, single antenna transmission will not be selected. If a large channel bandwidth can be used for transmission, small channel bandwidth transmission will not be selected.

[0095] However, since the device selects a large channel bandwidth, it needs to use a higher analog-to-digital converter (ADC) sampling rate, a larger fast Fourier transform size (FFT size), and a higher-frequency baseband operating clock. This will cause the device's power consumption to increase linearly. When the device selects multi-antenna operation, each additional transmit or receive antenna requires a corresponding transmit or receive channel, which will cause the power consumption to increase exponentially.

[0096] Therefore, if a device only uses the maximum channel bandwidth and the maximum number of antennas, it is not the most energy-efficient approach for Wi-Fi service scenarios. It is necessary to switch the working mode according to different working scenarios.

[0097] The following describes a frame interaction process for switching the number of antennas through action frames provided in the Wi-Fi protocol in an embodiment of the present application.

[0098] In some Wi-Fi protocols (e.g., 802.11n and later versions of the 802.11 protocol suite), the media access control (MAC) layer defines a spatial multiplexing power save (SMPS) frame, which is an action frame. This SMPS frame can be used for frame interaction to switch antenna modes. The SMPS frame can trigger entry into and exit from single-antenna mode by enabling and disabling it. The Wi-Fi protocol defines that the SMPS frame can be used for frame interaction to switch antenna modes in static or dynamic modes.

[0099] FIG5 shows a frame interaction process for switching antenna modes in a static mode through SMPS frames provided in an embodiment of the present application.

[0100] As shown in Figure 5, the station (STA) is in multi-antenna mode (MIMO) by default. To switch to single-antenna mode (SISO), the STA can first send an SMPS frame in multi-antenna mode to the wireless access point (AP), indicating that static mode is enabled in the SMPS frame. After receiving the SMPS frame in multi-antenna mode indicating that static mode is enabled, the AP can return an acknowledgment frame (ACK) in multi-antenna mode to the STA, indicating that the AP has received the SMPS frame indicating that static mode is enabled. After receiving the SMPS frame in multi-antenna mode indicating that static mode is enabled and returning an ACK to the STA, the AP can switch to single-antenna mode (SISO) to send data (including MAC layer data frames, management frames, and control frames, etc.) to the STA. If the STA wishes to switch back to multi-antenna mode (MIMO) to exchange data with the AP, it can send an SMPS frame in single-antenna mode to the AP indicating that static mode is disabled. After receiving an SMPS frame indicating static mode disable in single-antenna mode, the AP may return an ACK to the STA, indicating that the AP has received the SMPS frame indicating static mode disable. After receiving an SMPS frame indicating static mode disable in single-antenna mode and returning an ACK to the STA, the AP may send data (including MAC layer data frames, management frames, and control frames, etc.) to the STA in multi-antenna mode (MIMO).

[0101] FIG6 illustrates a frame interaction process for switching antenna modes in a dynamic mode through SMPS frames, provided in an embodiment of the present application.

[0102] As shown in Figure 6, the STA is in multi-antenna mode by default. The STA can send SMPS frames to the AP in multi-antenna mode, indicating dynamic mode in the SMPS frames. After receiving an SMPS frame indicating dynamic mode in multi-antenna mode, the AP can return an ACK to the STA in multi-antenna mode, indicating that the AP has received the SMPS frame indicating dynamic mode. After receiving an SMPS frame indicating dynamic mode in multi-antenna mode and returning an ACK to the STA in multi-antenna mode, the AP can switch to single-antenna mode (SISO) to send data (including MAC layer data frames, management frames, and control frames, etc.) to the STA. If the AP wants to send data frames to the STA in multi-antenna mode, it can send a request to send (RTS) frame to the STA in single-antenna mode. The RTS frame requests the STA to send data frames in multi-antenna mode. After receiving the RTS frame in single-antenna mode, the STA can send a clear to send frame to the AP in single-antenna mode. After receiving the CTS in the single-antenna mode, the AP may switch back to the multi-antenna mode (MIMO) to send data (including MAC layer data frames, management frames, and control frames, etc.) to the STA.

[0103] As shown in Figures 5 and 6 above, the frame exchange process for switching antenna modes using SMPS frames demonstrates that SMPS frames are only used for handshaking during antenna mode switching. Furthermore, during the antenna mode switching process, a STA simply assumes that the AP will transmit data frames using the antenna mode indicated by the SMPS frame based on the ACK received from the AP. However, the ACK sent by the AP after receiving the SMPS frame simply indicates that the SMPS frame has been successfully decoded. It does not guarantee that the AP will transmit data using the single-antenna mode indicated by the SMPS frame after receiving the SMPS frame and replying the ACK. Even after receiving the SMPS frame indicating switching to single-antenna mode and replying the ACK, the AP may still be unable to switch to single-antenna mode for data transmission and reception due to factors such as insufficient channel conditions or lack of AP support. Consequently, compatibility issues may arise during subsequent data transmission and reception. Specifically, the AP may continue to transmit data using the original multi-antenna mode while the STA has already switched to single-antenna mode for reception, resulting in data reception failure.

[0104] The following describes a frame interaction process for switching antenna modes and channel bandwidths through an operating mode indication frame provided in the Wi-Fi protocol in an embodiment of the present application.

[0105] In some Wi-Fi protocols (e.g., 802.11ax and later versions of the 802.11 protocol suite), the MAC layer defines that an operating mode control subfield (OM control subfield) can be carried in MAC layer frames such as management frames (e.g., action frames) as an operating mode indicator (OMI) frame. The OM control field in the OMI frame can include a channel bandwidth field and an antenna mode field. The channel bandwidth field can be used to indicate the target channel bandwidth after switching modes, and the antenna mode field can be used to indicate the target antenna mode after switching modes.

[0106] FIG7 shows a frame interaction process of switching channel bandwidth through OMI frames provided in an embodiment of the present application.

[0107] As shown in Figure 7, a STA can send an OMI frame to an AP and indicate the target channel bandwidth 1 (e.g., 20 MHz) in the OMI frame. After receiving the OMI frame indicating the target channel bandwidth 1, the AP can return an ACK to the STA, indicating that the AP has received the OMI frame indicating the target channel bandwidth 1. After receiving the ACK, the STA can send data (including MAC layer data frames, management frames, and control frames, etc.) to the AP using the target channel bandwidth 1 (e.g., 20 MHz) and receive data sent by the AP using the target channel bandwidth 1. After receiving the OMI frame indicating the target channel bandwidth 1 and returning an ACK to the STA, the AP can send data to the STA using the target channel bandwidth 1 and receive data sent by the STA using the target channel bandwidth 1.

[0108] If the STA wishes to switch channel bandwidths, it can send an OMI frame indicating target channel bandwidth 2 (e.g., 80 MHz) to the AP using target channel bandwidth 1. After receiving the OMI frame indicating target channel bandwidth 2 using target channel bandwidth 1, the AP can return an ACK to the STA using target channel bandwidth 1, indicating that the AP has received the OMI frame indicating target channel bandwidth 2. After receiving the ACK using target channel bandwidth 1, the STA can send data to the AP using target channel bandwidth 2 (e.g., 80 MHz) and receive data sent by the AP using target channel bandwidth 2. After receiving the OMI frame indicating target channel bandwidth 2 and returning an ACK to the STA, the AP can send data to the STA using target channel bandwidth 2 and receive data sent by the STA using target channel bandwidth 2.

[0109] FIG8 shows a frame interaction process through the OMI frame switching antenna mode provided in an embodiment of the present application.

[0110] As shown in Figure 8, a STA can send an OMI frame to an AP and indicate target antenna mode 1 (e.g., SISO) in the OMI frame. After receiving the OMI frame indicating target antenna mode 1, the AP can return an ACK to the STA, indicating that the AP has received the OMI frame indicating target antenna mode 1. After receiving the ACK, the STA can send data (including MAC layer data frames, management frames, and control frames, etc.) to the AP in target antenna mode 1 (e.g., SISO) and receive data sent by the AP in target antenna mode 1. After receiving the OMI frame indicating target antenna mode 1 and returning an ACK to the STA, the AP can send data to the STA in target antenna mode 1 and receive data sent by the STA in target antenna mode 1.

[0111] If the STA wishes to switch antenna modes, it can resend an OMI frame indicating the target antenna mode 2 (e.g., MIMO) to the AP. After receiving the OMI frame indicating the target antenna mode 2, the AP can return an ACK to the STA, indicating that the AP has received the OMI frame indicating the target antenna mode 2. After receiving the ACK, the STA can send data to the AP in the target antenna mode 2 and receive data from the AP in the target antenna mode 2. After receiving the OMI frame indicating the target antenna mode 2 and returning an ACK to the STA, the AP can send data to the STA in the target antenna mode 2 and receive data from the STA in the target antenna mode 2.

[0112] As shown in Figures 7 and 8 above, the frame exchange process for switching antenna modes and channel bandwidths via OMI frames demonstrates that, when switching antenna modes and / or channel bandwidths via OMI frames, the STA simply assumes that the AP will transmit data to the STA according to the antenna mode and / or channel bandwidth indicated by the STA in the OMI frame upon receiving the AP's ACK. However, the ACK sent by the AP after receiving the OMI frame simply indicates that the OMI frame has been successfully decoded and does not guarantee that the AP will transmit data frames according to the antenna mode and / or channel bandwidth indicated in the OMI frame. Therefore, compatibility issues may arise during the subsequent transmission and reception of data frames. Specifically, the AP may continue to transmit using the original multi-antenna mode and / or high channel bandwidth while the STA has switched to single-antenna mode and / or low channel bandwidth for reception, resulting in data reception failure.

[0113] The various Wi-Fi action frames for mode switching defined above indicate that there is no explicit handshake mechanism when negotiating mode switching between devices. Instead, devices simply assume that the mode switch has been completed upon receiving an ACK from the other end, posing a significant compatibility risk.

[0114] Therefore, a Wi-Fi working mode switching method is provided in an embodiment of the present application, which can be implemented when the electronic device 100 establishes a Wi-Fi connection with the opposite device. If the electronic device 100 needs to switch from the first working mode to the second working mode, wherein the specification of the first working mode is higher than the specification of the second working mode, the electronic device 100 can send a working mode switching instruction to the opposite device, instructing the opposite device to switch to the second working mode. After sending the working mode switching instruction to the opposite device, the electronic device 100 can switch to sending physical frames to the opposite device in the second working mode, and maintain receiving the physical frames sent by the opposite device in the first working mode. When it is detected from the physical frame sent by the opposite device that the opposite device has switched to the second working mode, the working mode of the Wi-Fi module is switched to the second working mode.

[0115] Because in a Wi-Fi device (e.g., electronic device 100), a high-specification working mode is compatible with a low-specification working mode. That is, when the Wi-Fi module on the Wi-Fi device operates in a high-specification working mode, the Wi-Fi device can support sending and receiving physical frames in a high-specification working mode while supporting sending and receiving physical frames in a low-specification working mode. However, when the Wi-Fi module on the Wi-Fi device operates in a low-specification working mode, the Wi-Fi device can only support sending and receiving physical frames in a low-specification working mode. Therefore, when the electronic device 100 and the opposite device switch in working mode, they first switch to sending physical frames to the opposite device in a low-specification working mode, and continue to receive physical frames sent by the opposite device in a high-specification working mode. This ensures that the electronic device 100 clearly knows that the opposite device has successfully switched to a low-specification working mode, and then switches the working mode of the Wi-Fi module to a low-specification working mode. This ensures that normal data transmission between the electronic device 100 and the opposite device occurs when the working mode of the Wi-Fi module is switched.

[0116] The following describes a Wi-Fi operating mode switching method provided in an embodiment of the present application.

[0117] FIG9 shows a flow chart of a Wi-Fi working mode switching method provided in an embodiment of the present application.

[0118] As shown in FIG9 , the method may include the following steps:

[0119] S901: The electronic device 100 establishes a Wi-Fi connection with a peer device.

[0120] The opposite-end device may be the routing device 200 in the communication system shown in FIG. 1 or FIG. 2 , or the electronic device 300 in the communication system shown in FIG. 2 .

[0121] S902: The electronic device 100 sets the working mode of the Wi-Fi module to the first working mode.

[0122] When the electronic device 100 establishes a Wi-Fi link with the opposite device, the electronic device 100 negotiates with the opposite device to operate in the first operating mode. Therefore, the electronic device 100 can set the operating mode of the Wi-Fi module to the first operating mode.

[0123] S903: The electronic device 100 sends a physical frame to the opposite device in the first working mode, and receives a physical frame sent by the opposite device in the first working mode.

[0124] When the working mode of the Wi-Fi module is set to the first working mode, the electronic device 100 can send physical frames to the opposite device in the first working mode, and receive physical frames sent by the opposite device in the first working mode.

[0125] The first working mode includes one or more of a first number of antennas, a first channel bandwidth, and a first modulation and coding scheme (MCS).

[0126] After step S903, three phases may be included: an interaction phase, a trial phase, and a handover phase. The interaction phase may include steps S904 to S906. The trial phase may include steps S907 to S910. The handover phase may include steps S911 to S912.

[0127] S904: The electronic device 100 determines that the Wi-Fi module switches from the first operating mode to the second operating mode.

[0128] The second working mode includes one or more of a second number of antennas, a second channel bandwidth, and a second MCS.

[0129] The specifications of the first operating mode are higher than those of the second operating mode. That is, the number of first antennas (e.g., 2 antennas) is greater than the number of second antennas (e.g., 1 antenna); and / or the first channel bandwidth (e.g., 80 MHz) is greater than the second channel bandwidth (e.g., 20 MHz); and / or the order of the first MCS (e.g., MCS10) is greater than the order of the second MCS (e.g., MCS6).

[0130] The electronic device 100 may determine to switch from the first operating mode to the second operating mode when determining that it needs to enter a low power consumption state.

[0131] For example, the conditions for entering the low power consumption state may include: the remaining power of the electronic device 100 is less than a specified power, and / or the device temperature of the electronic device 100 is higher than a specified temperature threshold, and so on.

[0132] The MCS table may be as shown in Table 1 below:

[0133] Table 1

[0134] Among them, the modulation mode corresponding to MCS0 is binary phase shift keying (BPSK), with a code rate of 1 / 2. The modulation mode corresponding to MCS1 is quadrature phase shift keying (QPSK), with a code rate of 1 / 2. The modulation mode corresponding to MCS2 is QPSK, with a code rate of 1 / 2. The modulation mode corresponding to MCS3 is 16-symbol quadrature amplitude modulation (QAM) (16-QAM), with a code rate of 1 / 2. The modulation mode corresponding to MCS4 is 16-QAM, with a code rate of 3 / 4. The modulation mode corresponding to MCS5 is 64-symbol quadrature amplitude modulation (64-QAM), with a code rate of 2 / 3. The modulation mode corresponding to MCS6 is 64-QAM, with a code rate of 3 / 4. The modulation mode corresponding to MCS7 is 64-QAM, with a code rate of 5 / 6. The modulation mode corresponding to MCS8 is 256-symbol quadrature amplitude modulation (256-QAM), with a code rate of 2 / 3. MCS9 corresponds to 256-QAM with a code rate of 5 / 6. MCS10 corresponds to 1024-symbol quadrature amplitude modulation (1024-QAM) with a code rate of 3 / 4. MCS11 corresponds to 1024-QAM with a code rate of 5 / 6.

[0135] Table 1 above only illustrates MCSs in some Wi-Fi protocols. Other Wi-Fi protocols may have higher-order MCSs, which is not limited in the embodiments of the present application.

[0136] S905: The electronic device 100 sends an operating mode switching instruction to the opposite device in the first operating mode, wherein the operating mode switching instruction is used to instruct switching to the second operating mode.

[0137] When the number of antennas in the first working mode is different from that in the second working mode (for example, the number of antennas in the first working mode is 2 antennas, and the number of antennas in the second working mode is 1 antenna), the working mode switching indication can be the SMPS frame or OMI frame in the above-mentioned Action frame.

[0138] When the channel bandwidth of the first working mode is different from that of the second working mode (for example, the channel bandwidth in the first working mode is 80 MHz, and the channel bandwidth in the second working mode is 20 MHz), the working mode switching indication may be an OMI frame in the above-mentioned Action frame.

[0139] In one possible implementation, when the antenna mode is different between the first working mode and the second working mode, and / or the channel bandwidth is different, and / or the MCS order is different (for example, the first MCS is MCS10 and the second MCS is MCS6), the working mode switching indication 1 can be a customized Action frame.

[0140] For the specific text description of the above SMPS frame, please refer to the embodiments shown in Figures 5 and 6 above. For the text description of the above OMI frame, please refer to the embodiments shown in Figures 7 and 8 above, which will not be repeated here.

[0141] S906. After receiving the operating mode switching instruction in the first operating mode, the opposite device sends a confirmation frame to the electronic device 100 in the first operating mode, where the confirmation frame is used to indicate that the operating mode switching instruction has been received.

[0142] S907 . After receiving the confirmation frame in the first working mode, the electronic device 100 sends a physical frame to the opposite device in the second working mode.

[0143] S908. After receiving the confirmation frame in the first working mode, the electronic device 100 receives a physical frame in the first working mode.

[0144] Because the high-specification operating mode is compatible with the low-specification operating mode. That is, when the Wi-Fi module of the electronic device 100 operates in the high-specification operating mode, the electronic device 100 can support sending and receiving physical frames in the high-specification operating mode while also supporting sending and receiving physical frames in the low-specification operating mode. However, when the Wi-Fi module of the electronic device 100 operates in the low-specification operating mode, the electronic device 100 can only support sending and receiving physical frames in the low-specification operating mode.

[0145] Since the specifications of the first working mode are higher than those of the second working mode, the first working mode is compatible with the second working mode. Therefore, when the electronic device 100 receives physical frames in the first working mode, it can successfully receive physical frames sent by the opposite device in the second working mode or the first working mode. However, if the electronic device 100 receives physical frames in the second working mode, it can successfully receive physical frames sent by the opposite device in the second working mode, but cannot successfully receive physical frames sent by the opposite device in the first working mode. Therefore, after receiving the confirmation frame, the electronic device 100 can first send physical frames to the opposite device in the second working mode, but still maintain the reception of physical frames in the first working mode. If the electronic device 100 receives a physical frame sent by the opposite device in the first working mode, the electronic device 100 can identify the working mode adopted by the opposite device when sending the physical frame from the physical frame generated by the opposite device, and then choose to switch the working mode of sending and receiving physical frames to the first working mode or the second working mode.

[0146] In this way, after the electronic device 100 instructs the opposite device to switch to the target working mode, it can avoid the opposite device not actually switching to the target working mode, which causes the electronic device 100 to fail to successfully receive data sent by the opposite device.

[0147] For example, after receiving the confirmation frame, the electronic device 100 can send a physical frame to the opposite device with a single antenna and receive the physical frame with multiple antennas (e.g., two antennas). When the opposite device switches to sending the physical frame to the electronic device 100 with a single antenna, the electronic device 100 can successfully receive the physical frame sent by the opposite device. When the opposite device still sends the physical frame to the electronic device 100 with multiple antennas, the electronic device 100 can also successfully receive the physical frame sent by the opposite device.

[0148] For another example, after receiving the confirmation frame, the electronic device 100 can send physical frames to the opposite device with a channel bandwidth of 20MHz and receive physical frames with a channel bandwidth of 80MHz. When the opposite device switches to sending physical frames to the electronic device 100 with a channel bandwidth of 20MHz, the electronic device 100 can successfully receive the physical frames sent by the opposite device with a channel bandwidth of 20MHz. When the opposite device still sends physical frames to the electronic device 100 with a channel bandwidth of 80MHz, the electronic device 100 can also successfully receive the physical frames sent by the opposite device.

[0149] S909: After sending the confirmation frame, the opposite device receives the physical frame in the second working mode.

[0150] S910 . After sending the confirmation frame, the opposite device sends a physical frame to the electronic device 100 in the second working mode.

[0151] S911: If the electronic device 100 detects from the physical frame sent by the opposite device that the opposite device has switched to the second operating mode, the electronic device 100 may switch the operating mode of the Wi-Fi module to the second operating mode.

[0152] In some Wi-Fi protocols, the physical frame sent by the peer device may carry the operating mode of the peer device at the time the physical frame is sent. For example, in the 802.11n protocol and 802.11 protocol suites later than 802.11n, the physical frame may include an L-SIG field and an HT-SIG field. The L-SIG field may carry the antenna mode used by the transmitter when sending the physical frame. The HT-SIG field may carry the channel bandwidth and MCS order used by the transmitter when sending the physical frame. For another example, in the 802.11ac protocol and 802.11n protocol suites later than 802.11n, the physical frame may include a VHT SIG-B field. The VHT SIG-B field may carry the channel bandwidth and MCS order used by the transmitter when sending the physical frame.

[0153] Therefore, when the electronic device 100 detects from the physical frame sent by the opposite device that the opposite device has switched to the second operating mode, the electronic device 100 may switch the operating mode of the Wi-Fi module to the second operating mode.

[0154] S912: After switching the working mode of the Wi-Fi module to the second working mode, the electronic device 100 sends a physical frame to the opposite device in the second working mode, and receives a physical frame in the second working mode.

[0155] In one possible implementation, if the electronic device 100 detects from the physical frame sent by the peer device that the peer device is still operating in the first operating mode, it indicates that the peer device cannot switch to the second operating mode and the operating mode switch has failed. Therefore, the electronic device 100 can switch the operating mode when sending the physical frame back to the first operating mode, that is, the electronic device 100 can send physical frames to the peer device in the first operating mode and receive physical frames sent by the peer device in the first operating mode.

[0156] In some embodiments, after the electronic device 100 switches the operating mode of the Wi-Fi module to the second operating mode, if the electronic device 100 detects that it needs to exit the low-power state to switch the operating mode of the Wi-Fi module back to the first operating mode, the electronic device 100 may send an operating mode switching instruction to the peer device to instruct the switch to the first operating mode. After receiving the confirmation frame returned by the peer device, the electronic device 100 may directly switch the operating mode of the Wi-Fi module to the first operating mode.

[0157] Since the specifications of the first working mode are higher than those of the second working mode, the high-specification working mode is compatible with the low-specification working mode, and the low-specification working mode is incompatible with the high-specification working mode. Since both the electronic device 100 and the opposite device support working in the first working mode, the opposite device will definitely switch back to the first working mode after receiving the working mode switching instruction for instructing to switch to the first working mode. Therefore, after receiving the confirmation frame returned by the opposite device, the electronic device 100 directly switches the working mode of the Wi-Fi module to the first working mode, which can also ensure the normal transmission of data between the electronic device 100 and the opposite device when the Wi-Fi module switches from the low-specification working mode to the high-specification working mode.

[0158] FIG10 shows a flow chart of a method for switching Wi-Fi working modes in a multi-VAP scenario provided in an embodiment of the present application.

[0159] In a multi-VAP scenario, electronic device 100 may include VAP1, VAP2, and a Wi-Fi management module. Electronic device 100 can establish a Wi-Fi connection with routing device 200 through VAP1 and with electronic device 300 through VAP2. VAP1 and VAP2 share the same Wi-Fi module on electronic device 100. If the Wi-Fi module operates in the first operating mode, VAP1 and VAP2 can only transmit and receive physical frames in the first operating mode or a second operating mode with lower specifications than the first operating mode. If the Wi-Fi module operates in the second operating mode, VAP1 and VAP2 can only transmit and receive physical frames in the second operating mode or a operating mode with lower specifications than the second operating mode.

[0160] As shown in FIG10 , the method may include the following steps:

[0161] S1001 : VAP1 establishes a Wi-Fi connection with routing device 200 .

[0162] S1002. VAP1 sends mode information 1 to the Wi-Fi management module.

[0163] The mode information 1 is used to indicate that the working mode of the VAP 1 and the routing device 200 is working mode A.

[0164] S1003 : VAP2 establishes a Wi-Fi connection with the electronic device 300 .

[0165] S1004. VAP2 sends mode information 2 to the Wi-Fi management module.

[0166] The mode information 2 is used to indicate that the working mode of the VAP 2 and the electronic device 300 is working mode B.

[0167] S1005 : The Wi-Fi management module selects a first operating mode with the highest specification from operating mode A and operating mode B, and sets the operating mode of the Wi-Fi module to the first operating mode.

[0168] S1006 : VAP1 and routing device 200 both send and receive physical frames in working mode A.

[0169] S1007 : VAP2 and electronic device 300 both transmit and receive physical frames in working mode B.

[0170] At this time, the Wi-Fi module of the electronic device 100 operates in the first operating mode, which is the highest-specification operating mode between operating mode A and operating mode B. Because higher-specification operating modes are compatible with lower-specification operating modes, VAP1 and routing device 200 can both transmit and receive physical frames in operating mode A, and VAP2 and electronic device 300 can both transmit and receive physical frames in operating mode B.

[0171] S1008: The Wi-Fi management module determines that the Wi-Fi module switches from the first operating mode to the second operating mode.

[0172] The electronic device 100 may determine to switch from the first operating mode to the second operating mode when determining that it needs to enter a low power consumption state.

[0173] For example, the conditions for entering the low power consumption state may include: the remaining power of the electronic device 100 is less than a specified power, and / or the device temperature of the electronic device 100 is higher than a specified temperature threshold, and so on.

[0174] The specifications of the first operating mode are higher than those of the second operating mode. That is, the number of first antennas (e.g., 2 antennas) is greater than the number of second antennas (e.g., 1 antenna); and / or the first channel bandwidth (e.g., 80 MHz) is greater than the second channel bandwidth (e.g., 20 MHz); and / or the order of the first MCS (e.g., MCS10) is greater than the order of the second MCS (e.g., MCS6).

[0175] S1009 : The Wi-Fi management module sends a switching notification 1 to VAP1 .

[0176] The switching notification 1 is used to notify the VAP 1 to switch to the second operating mode.

[0177] S1010 : The Wi-Fi management module sends a switching notification 2 to VAP2 .

[0178] The switching notification 2 is used to notify the VAP 2 to switch to the second operating mode.

[0179] S1011 : After receiving the switching notification 1 , VAP1 may send an operating mode switching instruction 1 to the routing device 200 , where the operating mode switching instruction 1 is used to instruct switching to the second operating mode.

[0180] Among them, VAP1 can send working mode switching instruction 1 to routing device 200 in working mode A.

[0181] The first operating mode may include one or more of a first number of antennas, a first channel bandwidth, and a first MCS. The second operating mode may include one or more of a second antenna mode, a second channel bandwidth, and a second MCS.

[0182] When the number of antennas in the first working mode is different from that in the second working mode (for example, the number of antennas in the first working mode is multiple antennas, and the number of antennas in the second working mode is single antenna), the working mode switching indication 1 can be the SMPS frame or OMI frame in the above-mentioned Action frame.

[0183] When the channel bandwidth of the first working mode is different from that of the second working mode (for example, the channel bandwidth in the first working mode is 80 MHz, and the channel bandwidth in the second working mode is 20 MHz), the working mode switching indication 1 may be the OMI frame in the above-mentioned Action frame.

[0184] In one possible implementation, when the first working mode has a different number of antennas and / or a different channel bandwidth and / or a different MCS order compared to the second working mode (for example, the first MCS is MCS10 and the second MCS is MCS6), the working mode switching indication 1 can be a customized Action frame.

[0185] For the specific text description of the above SMPS frame, please refer to the embodiments shown in Figures 5 and 6 above. For the text description of the above OMI frame, please refer to the embodiments shown in Figures 7 and 8 above, which will not be repeated here.

[0186] S1012: After receiving the working mode switching indication 1, the routing device 200 sends a working mode switching response 1 to the VAP1, where the working mode switching response 1 is used to indicate a result of the working mode switching of the routing device 200.

[0187] After receiving the operating mode switching indication 1, the routing device 200 may first return an acknowledgment (ACK) frame 1 to the VAP1 in operating mode A. The ACK is used to indicate that the routing device 200 has received the operating mode switching indication 1. After returning the ACK 1 to the VAP1, the routing device 200 sends the operating mode switching response 1 to the VAP1.

[0188] The operating mode switching response 1 may be the physical frame 1 sent by the routing device 200 to the VAP1 after the routing device 200 returns the ACK1 to the VAP1. The routing device 200 may include the operating mode used when sending the physical frame 1 in the physical frame 1. When the routing device 200 is capable of switching to the second operating mode, the routing device 200 may switch to the second operating mode and send the physical frame 1 to the VAP1 in the second operating mode, with the physical frame 1 carrying information about the second operating mode. When the routing device 200 is unable to switch to the second operating mode, the routing device 200 may send the physical frame 1 to the VAP1 in operating mode A, with the physical frame 1 carrying information about the operating mode A.

[0189] For example, in the 802.11n protocol and 802.11n protocol versions later than 802.11n, Physical Frame 1 may include an L-SIG field and an HT-SIG field. The L-SIG field may carry the number of antennas used by routing device 200 when transmitting Physical Frame 1. The HT-SIG field may carry the channel bandwidth and MCS order used by routing device 200 when transmitting Physical Frame 1. For another example, in the 802.11ac protocol and 802.11ac protocol versions later than 802.11ac, Physical Frame 1 may include a VHT SIG-B field. The VHT SIG-B field may carry the channel bandwidth and MCS order used by routing device 200 when transmitting Physical Frame 1.

[0190] S1013: After receiving the switching notification 2, the VAP 2 may send an operating mode switching instruction 2 to the electronic device 300, where the operating mode switching instruction 2 is used to instruct switching to the second operating mode.

[0191] The VAP2 may send the operating mode switching instruction 2 to the electronic device 300 in operating mode B.

[0192] S1014: After receiving the operating mode switching instruction 2, the electronic device 300 may send an operating mode switching response 2 to the VAP 2, where the operating mode switching response 2 is used to indicate the result of the electronic device 300 switching the operating mode.

[0193] After receiving the operating mode switching instruction 2, the electronic device 300 may first return ACK2 to the VAP2 in operating mode B. The ACK2 is used to indicate that the electronic device 300 has received the operating mode switching instruction 2. After returning ACK2 to the VAP2, the electronic device 300 sends an operating mode switching response 2 to the VAP2.

[0194] The operating mode switching response 2 may be a physical frame 2 sent by the electronic device 300 to the VAP2 after returning the ACK2 to the VAP2. The electronic device 300 may carry the operating mode adopted when sending the physical frame 2 in the physical frame 2. When the electronic device 300 is capable of switching to the second operating mode, the electronic device 300 may switch to the second operating mode and send the physical frame 2 to the VAP2 in the second operating mode, with the physical frame 2 carrying information about the second operating mode. When the electronic device 300 is unable to switch to the second operating mode, the electronic device 300 may send the physical frame 2 to the VAP2 in operating mode B and carry information about the second operating mode in the physical frame 2.

[0195] For example, in the 802.11n protocol and 802.11n protocol versions later than 802.11n, Physical Frame 2 may include an L-SIG field and an HT-SIG field. The L-SIG field may carry the number of antennas used by routing device 200 when transmitting Physical Frame 2. The HT-SIG field may carry the channel bandwidth and MCS order used by routing device 200 when transmitting Physical Frame 2. For another example, in the 802.11ac protocol and 802.11ac protocol versions later than 802.11ac, Physical Frame 2 may include a VHT SIG-B field. The VHT SIG-B field may carry the channel bandwidth and MCS order used by routing device 200 when transmitting Physical Frame 2.

[0196] In some embodiments, a high-specification operating mode in a Wi-Fi device (e.g., electronic device 100) is compatible with a low-specification operating mode. That is, when the Wi-Fi module on the Wi-Fi device operates in the high-specification operating mode, the Wi-Fi device can support sending and receiving physical frames in the low-specification operating mode while supporting sending and receiving physical frames in the high-specification operating mode. However, when the Wi-Fi module on the Wi-Fi device operates in the low-specification operating mode, the Wi-Fi device can only support sending and receiving physical frames in the low-specification operating mode. The specification of the first operating mode is higher than that of the second operating mode. Therefore, after VAP1 receives the aforementioned ACK1 sent by routing device 200, VAP1 can enter a probing phase, i.e., sending physical frames in the second operating mode and receiving physical frames in operating mode A. After VAP2 receives the aforementioned ACK2 sent by electronic device 300, VAP2 can enter a probing phase, i.e., sending physical frames in the second operating mode and receiving physical frames in operating mode B. In this way, the electronic device 100 can receive both the physical frames sent by the routing device 200 or the electronic device 300 in the second working mode and the physical frames sent by the routing device 200 or the electronic device 300 in the original working mode.

[0197] After VAP1 can send physical frames in the second operating mode and receive physical frames in operating mode A, VAP1 can receive physical frame 1 sent by the routing device 200 and use physical frame 1 as operating mode switch response 1. After VAP2 can send physical frames in the second operating mode and receive physical frames in operating mode B, VAP2 can receive physical frame 2 sent by the electronic device 300 and use physical frame 2 as operating mode switch response 2.

[0198] In the embodiment of the present application, when all VAPs in the electronic device 100 successfully negotiate the working mode switch with the peer device (routing device 200 or electronic device 300), the working mode switch of the Wi-Fi module on the electronic device 100 is successful. If any VAP in the electronic device 100 fails to negotiate the working mode switch with the peer device, the working mode switch of the Wi-Fi module on the electronic device 100 fails. Among them, the following steps S1015 to S1021 are used to represent the scenario of successful switching, and the following steps S1022 to S1032 are used to represent the scenario of failed switching.

[0199] Scenario 1: Switching is successful.

[0200] S1015 : After receiving the operating mode switching response 1 , VAP1 may determine whether the routing device 200 has switched to the second operating mode.

[0201] S1016: After receiving the operating mode switching response 2, VAP2 may determine whether the electronic device 300 has switched to the second operating mode.

[0202] S1017: After determining that the routing device 200 has switched to the second operating mode, the VAP1 may send a switching success indication 1 to the Wi-Fi management module.

[0203] The switching success indication 1 is used to indicate that the VAP 1 successfully switches the operating mode of the routing device 200 to the second operating mode.

[0204] S1018: After determining that the electronic device 300 has switched to the second operating mode, VAP2 may send a switching success indication 2 to the Wi-Fi management module.

[0205] The switching success indication 2 is used to indicate that the VAP 2 has successfully switched the operating mode of the electronic device 300 to the second operating mode.

[0206] S1019 : After receiving the switching success indication 1 and the switching success indication 2 , the Wi-Fi management module may switch the working mode of the Wi-Fi module to the second working mode.

[0207] After switching the working mode of the Wi-Fi module to the second working mode, the Wi-Fi management module may notify VAP1 and VAP2 to work in the second working mode.

[0208] S1020: After the working mode of the Wi-Fi module is switched to the second working mode, the VAP1 and the routing device 200 can both send and receive physical frames in the second working mode.

[0209] S1021: After the working mode of the Wi-Fi module is switched to the second working mode, the VAP2 can transmit and receive physical frames with the electronic device 300 in the second working mode.

[0210] Scenario 2: Switching fails.

[0211] S1022: After receiving the operating mode switching response 1, VAP1 may determine whether the routing device 200 has switched to the second operating mode.

[0212] S1023: After receiving the operating mode switching response 2, the VAP 2 may determine whether the electronic device 300 has switched to the second operating mode.

[0213] S1024: After determining that the routing device 200 has successfully switched to the second operating mode, the VAP1 may send a switching success indication 1 to the Wi-Fi management module.

[0214] S1025: After determining that the electronic device 300 has not switched to the second operating mode, the VAP2 may send a switching failure indication 1 to the Wi-Fi management module.

[0215] The switching failure indication 1 is used to indicate that the VAP 2 fails to successfully switch the operating mode of the electronic device 300 to the second operating mode.

[0216] Among them, the specifications of the second working mode are lower than the specifications of the second working mode, which may include: the first antenna mode is a multi-antenna mode, and the second antenna mode is a single antenna mode; and / or, the first channel bandwidth (for example, 80MHz) is greater than the second channel bandwidth (for example, 20MHz); and / or, the order of the first MCS (for example, MCS10) is greater than the order of the second MCS (for example, MCS6).

[0217] S1026: The Wi-Fi management module may determine whether the specification of the second working mode is lower than the specification of working mode A.

[0218] S1027: If the specification of the second operating mode is lower than the specification of operating mode A, the Wi-Fi management module may send a switching notification 3 to VAP1.

[0219] The switching notification 3 may be used to notify the VAP1 to switch back to the working mode A.

[0220] S1028 : After receiving the switching notification 3 , VAP1 may send an operating mode switching instruction 3 to the routing device 200 . The operating mode switching instruction 3 is used to instruct switching to the operating mode A.

[0221] S1029 : After receiving the working mode switching instruction 3 , the routing device 200 switches back to working mode A.

[0222] After receiving the operating mode switch instruction 3 in the second operating mode, routing device 200 may send a confirmation frame 3 to VAP1 in the second operating mode. This confirmation frame 3 is used to indicate that routing device 200 has received the operating mode switch instruction 3. After routing device 200 sends this confirmation frame 3 in the second operating mode, routing device 200 switches the operating mode for sending and receiving physical frames back to operating mode A.

[0223] S1030: After switching back to working mode A, the routing device 200 may send a working mode switching response 3 to the VAP 1. The working mode switching response 3 is used to indicate the result of the working mode switching of the routing device 200.

[0224] Since the routing device 200 has switched back to the working mode A, the routing device 200 may send the working mode switching response 3 to the VAP1 in the working mode A.

[0225] After receiving the working mode switching response 3, VAP1 may determine that the routing device 200 has switched back to working mode A.

[0226] S1031 , VAP1 and routing device 200 all send and receive physical frames in working mode A.

[0227] After VAP1 receives the working mode switching response 3, both VAP1 and the routing device 200 transmit and receive physical frames in the first working mode.

[0228] S1032 , VAP2 and electronic device 300 both send and receive physical frames in working mode B.

[0229] In some embodiments, if VAP1 successfully switches to the second operating mode and VAP2 fails to switch to the second operating mode, and the second operating mode has higher specifications than operating mode A, the Wi-Fi management module may not trigger VAP1 to fall back to operating mode A, but may continue to allow VAP1 to operate in the second operating mode.

[0230] In some embodiments, when the operating mode switch response 1 indicates that the routing device 200 failed to switch to the second operating mode, and the operating mode switch response 2 indicates that the electronic device 300 successfully switched to the second operating mode, VAP1 may send a switch failure indication 2 to the Wi-Fi management module, and VAP2 may send a switch success indication 2 to the Wi-Fi management module. This switch failure indication 2 indicates that VAP1 failed to successfully switch the operating mode of the routing device 200 to the second operating mode. Therefore, the Wi-Fi management module may determine whether the specifications of the second operating mode are lower than those of operating mode B. If the specifications of the second operating mode are lower than those of operating mode B, the Wi-Fi management module may notify VAP2 to revert to operating mode B. If the specifications of the second operating mode are higher than those of operating mode A, the Wi-Fi management module may not notify VAP2 to revert to operating mode B, allowing VAP2 to continue operating in the second operating mode.

[0231] In one possible implementation, when the electronic device 100 fails to switch the operating mode with the routing device 200 and the electronic device 300 once, the electronic device 100 stores the compatibility information with the routing device 200 and the electronic device 300. If the conditions for switching the operating mode are met again later, the electronic device 100 will no longer attempt to switch the operating mode with the routing device 200 and the electronic device 300.

[0232] In a possible implementation, if the specification of the second operating mode is higher than that of operating mode A, the Wi-Fi management module may also notify VAP1 to send an operating mode switching instruction to the routing device, so that the routing device falls back to operating mode A.

[0233] Through a Wi-Fi working mode switching method provided in an embodiment of the present application, it is possible to implement a working mode switching handshake between multiple VAPs in the electronic device 100 and the opposite device one by one when switching from the first working mode to the second working mode in a multi-VAP scenario. When all VAPs have successfully shaken hands with the opposite device, the working mode of the Wi-Fi module on the electronic device 100 is switched to the second working mode. If any VAP fails to shake hands with the opposite device, whether to fall back to the first working mode is selected according to the specifications of the second working mode. In this way, the working mode can be switched in a multi-VAP connection scenario. At the same time, when the capabilities of different VAPs are inconsistent, the fallback of the working mode can be triggered to ensure that the communication capability does not decrease when the working mode cannot be switched.

[0234] In the embodiment of the present application, the electronic device 100 may be referred to as a first electronic device, the electronic device 300 may be referred to as a second electronic device, the routing device 200 may be referred to as a third electronic device, the operating mode switching indication 2 may be referred to as a first switching indication, the operating mode switching indication 1 may be referred to as a second switching indication, and the operating mode switching indication 3 may be referred to as a third switching indication. The operating mode A may be referred to as a third operating mode.

[0235] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0236] The embodiments of the present application also provide a computer program product. When the computer program product is run on a computer, the computer can implement the steps in the above-mentioned various method embodiments.

[0237] The present application also provides a chip system, comprising a processing circuit interface circuit, the interface circuit configured to receive code instructions and transmit them to the processing circuit, and the processing circuit configured to execute the code instructions so that the chip system implements the steps of any method embodiment of the present application. The chip system may be a single chip or a chip module composed of multiple chips.

[0238] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for switching a wireless fidelity Wi-Fi working mode, characterized in that: Applied to a first electronic device including a Wi-Fi module; the method includes: The first electronic device establishes a first Wi-Fi connection with the second electronic device through the Wi-Fi module; When the working mode of the Wi-Fi module is in the first working mode, the first electronic device sends a physical frame to the second electronic device through the Wi-Fi module in the first working mode, and receives the physical frame sent by the second electronic device through the Wi-Fi module in the first working mode; The first electronic device sends a first switching instruction to the second electronic device through the Wi-Fi module in the first working mode, wherein the first switching instruction is used to instruct the second electronic device to switch to the second working mode, wherein the specification of the first working mode is higher than the specification of the second working mode; The first electronic device sends a physical frame to the second electronic device through the Wi-Fi module in the second working mode, and receives the physical frame sent by the second electronic device in the first working mode; After the first electronic device receives the physical frame sent by the second electronic device in the second working mode through the Wi-Fi module in the first working mode, the first electronic device switches the working mode of the Wi-Fi module from the first working mode to the second working mode.

2. The method according to claim 1, characterized in that The first electronic device sends a physical frame to the second electronic device in the second working mode through the Wi-Fi module, and receives the physical frame sent by the second electronic device in the first working mode, specifically including: After the first electronic device receives the confirmation frame sent by the second electronic device through the Wi-Fi module in the second working mode, the first electronic device sends a physical frame to the second electronic device through the Wi-Fi module in the second working mode, and receives the physical frame sent by the second electronic device in the first working mode; wherein the confirmation frame is used to indicate that the second electronic device has received the first switching indication.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: After the first electronic device switches the working mode of the Wi-Fi module from the first working mode to the second working mode, the first electronic device sends a physical frame to the second electronic device through the Wi-Fi module in the second working mode, and receives the physical frame sent by the second electronic device in the second working mode.

4. The method according to any one of claims 1 to 3, characterized in that The first switching indication may be an Action frame, and the Action frame includes any one of the following: Spatial multiplexing of energy-saving SMPS frames and operation mode indication OMI frames.

5. The method according to any one of claims 1 to 4, characterized in that The specification of the first working mode is higher than the specification of the second working mode, including: The number of antennas in the first working mode is greater than the number of antennas in the second working mode; and / or, The channel bandwidth of the first working mode is greater than the channel bandwidth of the second working mode; and / or, The order of the modulation and coding strategy MCS of the first working mode is greater than the order of the MCS of the second working mode.

6. The method according to any one of claims 1 to 5, characterized in that The first electronic device sends a first switching instruction to the second electronic device through the Wi-Fi module in the first working mode, specifically including: If the first electronic device meets the determination condition for entering the low power consumption state, the first electronic device sends a first switching instruction to the second electronic device in the first working mode through the Wi-Fi module; wherein the determination condition for entering the low power consumption state includes that the remaining power of the first electronic device is less than a specified power, and / or that the device temperature of the first electronic device is higher than a specified temperature threshold.

7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: The first electronic device establishes a second Wi-Fi connection with a third electronic device; When the working mode of the Wi-Fi module is in the first working mode, the first electronic device sends a physical frame to the third electronic device through the Wi-Fi module in the third working mode, and receives the physical frame from the third electronic device through the Wi-Fi module in the third working mode. A physical frame sent by a first operating mode, wherein a specification of the first operating mode is higher than or equal to a specification of the third operating mode; The first electronic device sends a second switching instruction to the third electronic device in the first working mode through the Wi-Fi module, and the second switching instruction is used to instruct the third electronic device to switch to the second working mode.

8. The method according to claim 7, characterized in that After the first electronic device switches the Wi-Fi module from the first working mode to the second working mode, the method further includes: The first electronic device sends physical frames to the second electronic device and the third electronic device through the Wi-Fi module in the second working mode, and receives the physical frames sent by the second electronic device and the third electronic device in the second working mode.

9. The method according to claim 7 or 8, characterized in that: After the first electronic device receives, through the Wi-Fi module in the first working mode, a physical frame sent by the second electronic device in the second working mode, the first electronic device switches the Wi-Fi module from the first working mode to the second working mode, specifically including: If the first electronic device receives, through the Wi-Fi module in the first working mode, a physical frame sent by the second electronic device in the second working mode and a physical frame sent by the third electronic device in the second working mode, the first electronic device switches the Wi-Fi module from the first working mode to the second working mode.

10. The method according to claim 9, characterized in that After the first electronic device sends the first switching instruction to the second electronic device through the Wi-Fi module in the first working mode, and sends the second switching instruction to the third electronic device, the method further includes: If the first electronic device receives, through the Wi-Fi module in the first working mode, a physical frame sent by the second electronic device in the first working mode and a physical frame sent by the third electronic device in the second working mode, and a specification of the second working mode is lower than a specification of the third working mode, the first electronic device sends a third switching indication to the third electronic device, and the third switching indication is used to instruct the third electronic device to switch back to the third working mode.

11. The method according to claim 10, characterized in that After the first electronic device sends a third switching instruction to the third electronic device, the method further includes: After receiving the physical frame sent by the third electronic device in the third working mode through the Wi-Fi module in the first working mode, the first electronic device maintains the working mode of the Wi-Fi module in the first working mode.

12. The method according to claim 10, characterized in that After the first electronic device maintains the working mode of the Wi-Fi module in the first working mode, the method further includes: The first electronic device receives, through the Wi-Fi module in the first working mode, a physical frame sent by the second electronic device in the first working mode; The first electronic device receives the physical frame sent by the third electronic device in the third working mode through the Wi-Fi module in the third working mode.

13. The method according to any one of claims 7 to 12, characterized in that: The specification of the first working mode is higher than or equal to the specification of the third working mode, including: The number of antennas in the first working mode is greater than or equal to the number of antennas in the second working mode; and / or, The channel bandwidth of the first working mode is greater than or equal to the channel bandwidth of the second working mode; and / or, The order of the modulation and coding strategy MCS of the first working mode is greater than or equal to the order of the MCS of the second working mode.

14. An electronic device, being a first electronic device, characterized in that: include: One or more processors and one or more memories; wherein the one or more memories are coupled to the one or more processors, the one or more processors include a Wi-Fi module, and the one or more memories are used to store a computer program, and when the one or more processors execute the computer program, the method as described in any one of claims 1-13 is executed.

15. A chip system, characterized in that: Applied to a first electronic device, the chip system includes: a processing circuit and an interface circuit, the interface circuit is used to receive code instructions and transmit them to the processing circuit, and the processing circuit is used to run the code instructions so that the chip system executes the method as described in any one of claims 1-13.

16. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed on the processor of the first electronic device, the method according to any one of claims 1 to 13 is executed.

Citation Information

Patent Citations

  • Wi-Fi working mode switching method and related device

    CN119497201A

  • Equipment control method and system related device

    CN112291833A

  • Data transmission method of electronic equipment, medium and electronic equipment

    CN113676269A

  • WiFi data transmission method and device, electronic equipment, wireless access equipment and readable storage medium

    CN115665828A

  • Method for Implementing Wi-Fi Peer-To-Peer Service and Related Device

    US20230069398A1