Wi-Fi working mode switching method and related device

When switching the working mode of the Wi-Fi module, physical frames are first sent in low-spec mode and maintained high-spec mode reception, ensuring that the counterpart devices are successfully switched and then switched to the working mode, solving the problem of medium and low-level existing Wi-Fi protocols The problem of insufficient low-power design in traffic scenarios has achieved normalization of data transmission and reduced power consumption.

CN119497201APending Publication Date: 2025-02-21HUAWEI TECH CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202311052255.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-18
Publication Date
2025-02-21

AI Technical Summary

Technical Problem

The existing Wi-Fi protocols are insufficient in low-power design in medium and low traffic scenarios, resulting in increased device power consumption.

Method used

Provide a Wi-Fi working mode switching method. By first sending physical frames to the peer device in a low-standard working mode when switching the working mode of the Wi-Fi module, and maintaining receiving the peer device in a high-standard working mode. The physical frame sent is to ensure that the device clearly knows that the counterpart device has successfully switched the working mode, and then switched the working mode of the Wi-Fi module.

Benefits of technology

It realizes the normality of data transmission when switching the working mode of the Wi-Fi module, reduces the power consumption of the device, and improves the stability of Wi-Fi connection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119497201A_ABST
    Figure CN119497201A_ABST
Patent Text Reader

Abstract

According to the Wi-Fi working mode switching method and the related device provided by the invention, if the electronic equipment needs to switch a W-iFi module from a first working mode to a second working mode of which the specification is lower than that of the first working mode, the electronic equipment can send a working mode switching instruction to opposite-end equipment to instruct the opposite-end equipment to switch to the second working mode. After the working mode switching instruction is sent to the opposite-end device, the electronic device can switch to send the physical frame to the opposite-end device in the second working mode and keep receiving the physical frame sent by the opposite-end device in the first working mode. And switching the working mode of the Wi-Fi module to the second working mode when detecting that the opposite-end equipment is switched to the second working mode from the physical frame sent by the opposite-end equipment. Therefore, when the working mode of the Wi-Fi module is switched, the electronic equipment can be ensured to clearly know whether the working mode of the opposite-end equipment is successfully switched, and normal transmission of data is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the application and development of the wireless fidelity (Wi-Fi) protocol, the current design of the Wi-Fi protocol aims at high throughput performance, and the low-power design of the Wi-Fi protocol is insufficient in medium and low traffic scenarios. For example, in terms of bandwidth, large bandwidth is pursued as much as possible, and in terms of the number of antennas, multiple antennas are pursued as much as possible. At present, the maximum bandwidth supported in the Wi-Fi6 protocol is 160MHz, and devices using the Wi-Fi6 protocol are equipped with 2 antennas as standard. Therefore, during the data transmission process, high transmission rates are pursued between devices, 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 increase the power consumption of the device. Summary of the invention

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

[0004] In a first aspect, the present application provides a Wi-Fi working mode switching method, including: 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 indication to the second electronic device through the Wi-Fi module in the first working mode, and the first switching indication 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.

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

[0006] 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 low-specification working mode is first switched to send physical frames to the opposite device, and the high-specification working mode is maintained to receive the physical frames sent by the opposite device. This can ensure that the first electronic device clearly knows that the other devices have 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 devices is guaranteed.

[0007] In a possible implementation, 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, specifically including: after the first electronic device receives a 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. In this way, the first electronic device can enter the trial stage only after ensuring that the second electronic device receives the switching indication, and 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.

[0008] In a possible implementation, the method further includes: 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. In this way, after the Wi-Fi module switches to the second working mode, the first electronic device can send and receive physical frames through the second working mode.

[0009] In a possible implementation manner, 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.

[0010] In one possible implementation, the specifications of the first working mode are higher than those 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.

[0011] In a possible implementation, 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 judgment condition for entering a low-power state, 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 judgment condition for entering a low-power state includes that the remaining power of the first electronic device is less than a specified power, and / or the device temperature of the first electronic device is higher than a specified temperature threshold. In this way, the first electronic device can trigger the Wi-Fi module to switch the working mode to a low-specification working mode when entering a low-power state to save power consumption.

[0012] In a possible implementation, the method further includes: 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 a third working mode, and receives the physical frame sent by the third electronic device through the Wi-Fi module in the third working mode, wherein a specification of the first working mode is higher than or equal to a specification of the third working mode; the first electronic device sends a second switching indication to the third electronic device through the Wi-Fi module in the first working mode, and the second switching indication is used to instruct the third electronic device to switch to the second working mode.

[0013] In this way, when the working mode of the Wi-Fi module of the first electronic device is switched from the first working mode to the second working mode in a multi-Wi-Fi connection scenario, the first electronic device performs working mode switching handshakes with multiple peer devices one by one. When the handshakes with all peer devices are successful, the working mode of the Wi-Fi module on the first electronic device is switched to the second working mode to save power consumption.

[0014] In a 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 sends physical frames to the second electronic device and the third electronic device through the Wi-Fi module in the second operating mode, and receives the physical frames sent by the second electronic device and the physical frames sent by the third electronic device in the second operating mode.

[0015] In a possible implementation, 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 Wi-Fi module from the first working mode to the second working mode, specifically including: if the first electronic device receives the physical frame sent by the second electronic device in the second working mode and the physical frame sent by the third electronic device in the second working mode through the Wi-Fi module in the first working mode, the first electronic device switches the Wi-Fi module from the first working mode to the second working mode.

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

[0017] In a 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 working mode, and sends the second switching indication to the third electronic device, the method further includes: if the first electronic device receives the physical frame sent by the second electronic device in the first working mode and the physical frame sent by the third electronic device in the second working mode through the Wi-Fi module in the first working mode, and the specification of the second working mode is lower than the 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.

[0018] In this way, if the first electronic device fails to handshake with any opposite device, 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.

[0019] In a 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, the first electronic device maintains the operating mode of the Wi-Fi module in the first operating mode.

[0020] 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.

[0021] In a 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: 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 the first electronic device receives, through the Wi-Fi module in the third operating mode, a physical frame sent by the third electronic device in the third operating mode.

[0022] In one possible implementation, 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 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.

[0023] In a second aspect, the present application provides an electronic device, which is 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 include a Wi-Fi module, and the one or more memories are used to store a computer program. When the one or more processors execute the computer program, the first electronic device executes the Wi-Fi working mode switching method in any possible implementation of any of the above aspects.

[0024] In a third aspect, the present application provides a chip system, which is applied to a first electronic device, and 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 Wi-Fi working mode switching method in any possible implementation of any of the above aspects.

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

[0026] In a fifth aspect, the present application provides a computer program product. When the computer program product runs on a computer, the computer executes the Wi-Fi working mode switching method in any possible implementation of any of the above aspects.

[0027] 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

[0028] Figure 1 A schematic diagram of the architecture of a communication system provided in an embodiment of the present application;

[0029] Figure 2 A schematic diagram of the architecture of another communication system provided in an embodiment of the present application;

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

[0031] Figure 3B A schematic diagram of the hardware structure of a routing device provided in an embodiment of the present application;

[0032] Figure 4 A schematic diagram of a Wi-Fi application scenario provided in an embodiment of the present application;

[0033] Figure 5 A frame interaction process for switching antenna modes in static mode through SMPS frames provided in an embodiment of the present application;

[0034] Figure 6 A frame interaction process for switching antenna modes in a dynamic mode through SMPS frames provided in an embodiment of the present application;

[0035] Figure 7 A frame interaction process for switching channel bandwidth through OMI frames provided in an embodiment of the present application;

[0036] Figure 8 A frame interaction process for switching antenna modes through OMI frames provided in an embodiment of the present application;

[0037] Fig. 9 A schematic diagram of a flow chart of a Wi-Fi working mode switching method provided in an embodiment of the present application;

[0038] Fig.10 A flowchart of a method for switching Wi-Fi working modes in a multi-VAP scenario provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] The technical solutions in the embodiments of the present application will be described clearly and in detail below 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 of associated 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.

[0040] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

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

[0042] Figure 1 A schematic diagram of the architecture of a communication system provided in an embodiment of the present application is shown.

[0043] like Figure 1 As shown, the communication system 10 may include an electronic device 100 and a routing device 200 .

[0044] The electronic device 100 and the routing device 200 can establish a Wi-Fi connection. In the Wi-Fi connection, the electronic device 100 can be used as a station device (STA) in the Wi-Fi connection, and the routing device 200 can be used as a wireless access point (AP) in the Wi-Fi connection. The device type of the electronic device 100 may include any one of a smart phone, 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, etc. The device type of the routing device may include any one of a smart phone, 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, etc.

[0045] Figure 2 A schematic diagram of the architecture of another communication system provided in an embodiment of the present application is shown.

[0046] like Figure 2As shown, the communication system 20 may include an electronic device 100, a routing device 200 and an electronic device 300. The electronic device 100 simultaneously establishes two Wi-Fi connections with the routing device 200 and the electronic device 300. The services in the two Wi-Fi connections are performed independently of each other. In order to simultaneously establish two Wi-Fi connections with the routing device 200 and the electronic device 300, the electronic device 100 constructs two virtual access points (VAPs) in the Wi-Fi module of the electronic device 100, and the two VAPs include a virtual access point 1 (VAP1) and a virtual access point 2 (VAP2). 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 simultaneously establish a Wi-Fi connection with the routing device 200 and establish a Wi-Fi direct connection with the electronic device 300, so as to project the display data of the electronic device 100 onto the electronic device 300 for display.

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

[0048] Figure 3A A schematic structural diagram of an electronic device 100 is shown.

[0049] The following is a detailed description of the embodiment using the electronic device 100 as an example. It should be understood that: Figure 3A The electronic device 100 shown is only an example, and the electronic device 100 may have more Figure 3A More or fewer components may be shown, two or more components may be combined, or there may be a different configuration of components. Figure 3A The various components shown in the EMBODIMENTS 2000 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.

[0050] 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.

[0051] It is to be understood that the structure illustrated in the embodiment of the present application does 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 in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

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

[0053] 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.

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

[0055] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0056] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic 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 in the above embodiments, or a combination of multiple interface connection methods.

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

[0058] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 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 number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0059] 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.

[0060] 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 the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0061] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., 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.

[0062] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent 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 the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a 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.

[0063] 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, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of the signal, 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.

[0064] 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 the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. 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).

[0065] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The electronic device 100 can implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor. The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens, and the light signal is converted into an electrical signal. The camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The camera 193 is used to capture static images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. The video codec is used to compress or decompress digital videos. The electronic device 100 can 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 drawing on the transmission mode between neurons in the human brain, it can quickly 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 may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 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.

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

[0067] The pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. 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 the 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.

[0068] 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.

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

[0070] Figure 3B A schematic diagram of the hardware structure of a routing device 200 provided in an embodiment of the present application is shown.

[0071] like Figure 3B As shown, 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. Among them:

[0072] 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 processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0073] The controller may be the nerve center and command center of the routing device 200. 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.

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

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

[0076] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic 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 different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0077] In some embodiments, the processor 201 can be used to parse the signal received by the wireless communication module 203 and demodulate the signal. The processor 201 can respond according to the analysis result and perform corresponding operations, such as performing a sensing operation. In some embodiments, the processor 201 can also be used to generate a signal sent out by the wireless communication module 203, such as a Wi-Fi signal.

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

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

[0080] 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)).

[0081] Possibly, the Wi-Fi module 204 can be integrated with other communication modules (e.g., Bluetooth communication modules). 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 find 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.

[0082] 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 via WLAN or other short-range wireless communication technologies to transmit data.

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

[0084] 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.

[0085] In some embodiments, the hardware structure of the routing device 200 may also include an audio module ( Figure 3B not shown) and a speaker ( Figure 3B 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 signal. The audio module can 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.

[0086] In some embodiments, the hardware structure of the routing device 200 may also include a microphone ( Figure 3B (not shown). A microphone, also called a "microphone" 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 approaching the microphone with his mouth to input the sound signal into the microphone. The routing device 200 can be provided with at least one microphone.

[0087] In some embodiments, the hardware structure of the routing device 200 may also include a display screen ( Figure 3B ). The display screen is used to display images, videos, etc. The display screen includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the terminal may include 1 or N display screens, where N is a positive integer greater than 1.

[0088] In some embodiments, the hardware structure of the routing device 200 may also include one or more sensors ( Figure 3BThe one or more sensors may include one or more of the following pressure sensors, gyroscope sensors, air pressure sensors, magnetic sensors, acceleration sensors, distance sensors, proximity light sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, bone conduction sensors, etc.

[0089] It should be noted that Figure 3B The routing device 200 shown 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.

[0090] Figure 4 A schematic diagram of a Wi-Fi application scenario provided in an embodiment of the present application is shown.

[0091] like Figure 4 As shown in the data, according to big data statistics, in Wi-Fi application scenarios, the proportion of scenarios with Wi-Fi throughput lower than 10Mbps reached 85.4%, the proportion of scenarios with Wi-Fi throughput between 10Mbps and 40Mbps was 14.09%, and the proportion of scenarios with Wi-Fi throughput higher than 40Mbps was only 99%. Therefore, the proportion of scenarios with Wi-Fi throughput lower than 40Mbps exceeded 99%.

[0092] From the perspective of the design of the Wi-Fi protocol alone, the Wi-Fi protocol aims at high throughput performance, and the low-power design is insufficient in medium and low throughput scenarios (for example, scenarios with a throughput of less than 40Mbps). Specifically, it is 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 in the Wi-Fi6 protocol supports up to 160MHz. 2. The design of the Wi-Fi protocol will pursue multiple antennas for data transmission as much as possible in terms of the number of antennas. For example, devices that support the Wi-Fi6 protocol are equipped with 2 antennas as standard. In general, the Wi-Fi protocol will pursue high transmission rates during the business process. If multiple antennas can be used for transmission, single antenna transmission will not be selected. If large channel bandwidth can be used for transmission, small channel bandwidth transmission will not be selected.

[0093] However, since the device chooses to work with 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 power consumption of the device to increase linearly. When the device chooses to work with multiple antennas, each additional transmit or receive antenna requires an additional corresponding transmit or receive channel, which will cause the power consumption to increase exponentially.

[0094] It can be seen that if the device only uses the maximum channel bandwidth and the maximum number of antennas, it is not the most energy-efficient way for Wi-Fi business scenarios, and the working mode needs to be switched according to different working scenarios.

[0095] 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.

[0096] In some Wi-Fi protocols (e.g., 802.11n and later 802.11 protocol suites), the spatial multiplexing power save (SMPS) frame belonging to the action frame is defined in the media access control (MAC) layer, and the SMPS frame can be used for frame interaction for switching antenna modes. Among them, the SMPS frame can be enabled and disabled to indicate triggering entry into and exit from the single antenna mode. The Wi-Fi protocol defines that the SMPS frame can be used for frame interaction for switching antenna modes in static mode or dynamic mode.

[0097] Figure 5 A frame interaction process for switching antenna modes in static mode through SMPS frames provided in an embodiment of the present application is shown.

[0098] like Figure 5As shown, the station device (STA) is in multi-antenna mode (MIMO) by default. When the STA wants to switch to single antenna mode (SISO), it can first send an SMPS frame to the wireless access point (AP) in multi-antenna mode and indicate static mode enable (Static Mode enable) in the SMPS frame. After the AP receives the SMPS frame indicating static mode enable in multi-antenna mode, it can return an acknowledgement frame (acknowledge, ACK) to the STA in multi-antenna mode to indicate that the AP has received the SMPS frame indicating static mode enable. After the AP receives the SMPS frame indicating static mode enable in multi-antenna mode and returns ACK to the STA, it 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 wants to switch back to multi-antenna mode (MIMO) to interact with the AP. The STA can send an SMPS frame indicating static mode disable to the AP in single antenna mode. After receiving the SMPS frame indicating the static mode disable in single antenna mode, the AP may return ACK to the STA to indicate that the AP has received the SMPS frame indicating the static mode disable. After receiving the SMPS frame indicating the static mode disable in single antenna mode and returning 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).

[0099] Figure 6 A frame interaction process for switching antenna modes in a dynamic mode through SMPS frames provided in an embodiment of the present application is shown.

[0100] like Figure 6As shown, the STA is in multi-antenna mode by default. The STA can send an SMPS frame to the AP in multi-antenna mode and indicate the dynamic mode (Dynamic Mode) in the SMPS frame. After receiving the SMPS frame indicating the dynamic mode in the multi-antenna mode, the AP can return an ACK to the STA in the multi-antenna mode to indicate that the AP has received the SMPS frame indicating the dynamic mode. After the AP receives the SMPS frame indicating the dynamic mode in the multi-antenna mode and returns the ACK to the STA in the multi-antenna mode, it can switch to send data (including data frames, management frames and control frames of the MAC layer, etc.) to the STA in the single antenna mode (SISO). If the AP wants to send a data frame to the STA in the multi-antenna mode, the AP can send a request to send frame (request to send, RTS) to the STA in the single antenna mode. The RTS is used to request to send a data frame to the STA in the multi-antenna mode. After receiving the RTS in the single antenna mode, the STA can send a clear to send frame (clear to send) to the AP in the 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.

[0101] From the above Figure 5 and Figure 6 As shown in the frame interaction process of switching antenna mode through SMPS frame, it can be seen that SMPS frame can only be used for handshake of antenna mode switching, and in the process of switching antenna mode through SMPS frame, STA simply receives ACK from AP, and will think that AP will send data frame to STA according to the antenna mode indicated by STA through SMPS frame. However, the ACK replied by AP after receiving SMPS frame simply indicates that SMPS frame has been decoded successfully, and does not mean that AP will send data according to the single antenna mode indicated by SMPS frame after receiving SMPS frame for indicating switching to single antenna mode and replying ACK. After receiving SMPS frame for indicating switching to single antenna mode and replying ACK, AP still cannot switch to single antenna mode for sending and receiving data due to reasons such as channel conditions not meeting requirements and AP not supporting. Therefore, there will be compatibility problems in the subsequent data sending and receiving process. That is, AP may continue to send data according to the original multi-antenna mode, while STA has switched to single antenna mode for receiving, resulting in STA failure to receive data.

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

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

[0104] Figure 7 The frame interaction process of switching channel bandwidth through OMI frames provided in an embodiment of the present application is shown.

[0105] like Figure 7 As shown, the STA can send an OMI frame to the AP and indicate the target channel bandwidth 1 (for example, 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 to indicate that the AP has received the OMI frame indicating the target channel bandwidth 1. After receiving the ACK, the STA can send data (including data frames, management frames, and control frames of the MAC layer, etc.) to the AP with the target channel bandwidth 1 (for example, 20 MHz), and receive the data sent by the AP with 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 with the target channel bandwidth 1, and receive the data sent by the STA with the target channel bandwidth 1.

[0106] If the STA wants to switch the channel bandwidth, the STA may send an OMI frame indicating the target channel bandwidth 2 (e.g., 80 MHz) to the AP with the target channel bandwidth 1. After receiving the OMI frame indicating the target channel bandwidth 2 with the target channel bandwidth 1, the AP may return an ACK to the STA with the target channel bandwidth 1 to indicate that the AP has received the OMI frame indicating the target channel bandwidth 2. After receiving the ACK with the target channel bandwidth 1, the STA may send data to the AP with the target channel bandwidth 2 (e.g., 80 MHz) and receive data sent by the AP with the target channel bandwidth 2. After receiving the OMI frame indicating the target channel bandwidth 2 and returning an ACK to the STA, the AP may send data to the STA with the target channel bandwidth 2 and receive data sent by the STA with the target channel bandwidth 2.

[0107] Figure 8The frame interaction process through the OMI frame switching antenna mode provided in an embodiment of the present application is shown.

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

[0109] If the STA wants to switch the antenna mode, the STA can resend the OMI frame indicating the target antenna mode 2 (for example, MIMO) to the AP. After receiving the OMI frame indicating the target antenna mode 2, the AP can return an ACK to the STA to indicate 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 sent by 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 sent by the STA in the target antenna mode 2.

[0110] From the above Figure 7 and Figure 8 As shown in the frame interaction process of switching the antenna mode and channel bandwidth through the OMI frame, it can be seen that in the process of switching the antenna mode and / or channel bandwidth through the OMI frame, the STA simply receives the ACK replied by the AP, and will think that the AP will send data to the STA according to the antenna mode and / or channel bandwidth indicated by the STA through the OMI frame. However, the ACK replied by the AP after receiving the OMI frame simply indicates that the OMI frame has been decoded successfully, and does not mean that the AP will definitely send the data frame according to the antenna mode and / or channel bandwidth indicated by the OMI frame. Therefore, there will be compatibility issues in the subsequent data frame sending and receiving process. That is, the AP may continue to send according to the original multi-antenna mode and / or high channel bandwidth, while the STA has switched to a single antenna mode and / or low channel bandwidth for reception, resulting in the failure of the STA to receive data.

[0111] It can be seen from the various action frames (Action Frames) for mode switching defined by Wi-Fi above that when negotiating mode switching between devices, no explicit handshake mechanism is defined. Instead, after receiving the ACK reply from the other end, it is simply considered that the other end has completed the switching of the working mode, which poses a great compatibility risk.

[0112] 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 send physical frames to the opposite device in the second working mode, and maintain the first working mode to receive the physical frames sent by the opposite device. 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.

[0113] Because in a Wi-Fi device (e.g., electronic device 100), a high-specification working mode can be compatible with a low-specification working mode. That is, when the Wi-Fi module on the Wi-Fi device works in a high-specification working mode, the Wi-Fi device can support sending and receiving physical frames in a low-specification working mode while supporting sending and receiving physical frames in a high-specification working mode. However, when the Wi-Fi module on the Wi-Fi device works 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 the working mode, first switch to send physical frames to the opposite device in a low-specification working mode, and keep receiving the physical frames sent by the opposite device in a high-specification working mode, it can ensure that the electronic device 100 clearly knows that the opposite device has successfully switched to a low-specification working mode, and then switch the working mode of the Wi-Fi module to a low-specification working mode, which can ensure the normal transmission of data between the electronic device 100 and the opposite device when the working mode of the Wi-Fi module is switched.

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

[0115] Fig. 9 A schematic flow chart of a Wi-Fi working mode switching method provided in an embodiment of the present application is shown.

[0116] like Fig. 9As shown, the method may include the following steps:

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

[0118] The peer device may be the above Figure 1 or Figure 2 The routing device 200 in the communication system shown in the figure may also be the above-mentioned Figure 2 An electronic device 300 in a communication system is shown.

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

[0120] 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.

[0121] 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.

[0122] 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.

[0123] 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).

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

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

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

[0127] The specification of the first working mode is higher than that of the second working 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).

[0128] The electronic device 100 may determine to switch from the first working mode to the second working mode when determining that it is necessary to enter a low power consumption state.

[0129] For example, the determination 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.

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

[0131] Table 1

[0132] The order of MCS Modulation Bitrate 0 BPSK 1 / 2 1 QPSK 1 / 2 2 QPSK 3 / 4 3 16-QAM 1 / 2 4 16-QAM 3 / 4 5 64-QAM 2 / 3 6 64-QAM 3 / 4 7 64-QAM 5 / 6 8 256-QAM 3 / 4 9 256-QAM 5 / 6 10 1024-QAM 3 / 4 11 1024-QAM 5 / 6

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

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

[0135] 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 indicate switching to the second operating mode.

[0136] 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 an SMPS frame or an OMI frame in the above-mentioned Action frame.

[0137] 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.

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

[0139] For the specific text description of the above SMPS frame, please refer to the above Figure 5 , Figure 6 For the text description of the above OMI frame, please refer to the above Figure 7 , Figure 8 The illustrated embodiments will not be described in detail here.

[0140] 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, wherein the confirmation frame is used to indicate that the operating mode switching instruction has been received.

[0141] 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.

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

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

[0144] Since the specification of the first working mode is higher than that of the second working mode, the first working mode is compatible with the second working mode. Therefore, when the electronic device 100 receives the physical frame in the first working mode, it can successfully receive the physical frame sent by the opposite device in the second working mode or the first working mode. However, if the electronic device 100 receives the physical frame in the second working mode, it can successfully receive the physical frame sent by the opposite device in the second working mode, but cannot successfully receive the physical frame sent by the opposite device in the first working mode. Therefore, after receiving the confirmation frame, the electronic device 100 can first send the physical frame to the opposite device in the second working mode, but still keep receiving the physical frame in the first working mode. If the electronic device 100 receives the 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.

[0145] In this way, after the electronic device 100 instructs the opposite device to switch to the target working mode, it can be avoided that the opposite device does not actually switch to the target working mode, thereby causing the electronic device 100 to fail to successfully receive data sent by the opposite device.

[0146] 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., 2 antennas). When the opposite device switches to sending a 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 a 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.

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

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

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

[0150] 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 working mode, the electronic device 100 may switch the working mode of the Wi-Fi module to the second working mode.

[0151] Among them, in some Wi-Fi protocols, the physical frame sent by the peer device may carry the working mode of the peer device when the physical frame is sent. For example, in the 802.11n protocol and the 802.11 protocol cluster after the 802.11n protocol version, the physical frame may include the L-SIG field and the HT-SIG field, and the L-SIG field may carry the antenna mode used by the transmitter when sending the physical frame. Among them, the HT-SIG field may carry the channel bandwidth and the order of MCS used by the transmitter when sending the physical frame. For another example, in the 802.11ac protocol and the 802.11n protocol cluster after the 802.11n protocol version, the physical frame may include the VHT SIG-B field, and the VHT SIG-B field may carry the channel bandwidth and the order of MCS used by the transmitter when sending the physical frame.

[0152] 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 working mode, the electronic device 100 can switch the working mode of the Wi-Fi module to the second working mode.

[0153] S912: After the working mode of the Wi-Fi module is switched 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.

[0154] In a possible implementation, if the electronic device 100 detects from the physical frame sent by the opposite device that the opposite device is still working in the first working mode, it indicates that the opposite device cannot switch to the second working mode, and the working mode switching fails. Therefore, the electronic device 100 can switch the working mode when sending the physical frame back to the first working mode, that is, the electronic device 100 can send the physical frame to the opposite device in the first working mode, and receive the physical frame sent by the opposite device in the first working mode.

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

[0156] Since the specification of the first working mode is higher than that 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 not compatible 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 indicating switching 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.

[0157] Fig.10 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 is shown.

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

[0159] like Fig.10 As shown, the method may include the following steps:

[0160] S1001. VAP1 establishes a Wi-Fi connection with the routing device 200.

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

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

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

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

[0165] 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.

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

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

[0168] S1007 , VAP2 and the electronic device 300 both send and receive physical frames in working mode B.

[0169] At this time, the Wi-Fi module of the electronic device 100 works in the first working mode, and the first working mode is the highest-specification working mode between working mode A and working mode B. Since the high-specification working mode is compatible with the low-specification working mode, VAP1 and the routing device 200 can both send and receive physical frames in working mode A, and VAP2 and the electronic device 300 can both send and receive physical frames in working mode B.

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

[0171] The electronic device 100 may determine to switch from the first working mode to the second working mode when determining that it is necessary to enter a low power consumption state.

[0172] For example, the determination 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.

[0173] The specification of the first working mode is higher than that of the second working 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).

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

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

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

[0177] The switching notification 2 is used to notify VAP2 to switch to the second working mode.

[0178] S1011. After receiving the switching notification 1, VAP1 may send an operating mode switching indication 1 to the routing device 200, wherein the operating mode switching indication 1 is used to indicate switching to the second operating mode.

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

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

[0181] 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 an SMPS frame or an OMI frame in the above-mentioned Action frame.

[0182] 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 an OMI frame in the above-mentioned Action frame.

[0183] 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 (for example, the first MCS is MCS10 and the second MCS is MCS6) compared to the second working mode, the working mode switching indication 1 can be a customized Action frame.

[0184] For the specific text description of the above SMPS frame, please refer to the above Figure 5 , Figure 6 For the text description of the above OMI frame, please refer to the above Figure 7 , Figure 8 The illustrated embodiments will not be described in detail here.

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

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

[0187] The working mode switching response 1 may be a 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 carry the working mode adopted when sending the physical frame 1 in the physical frame 1. When the routing device 200 can switch to the second working mode, the routing device 200 may switch to the second working mode, and send the physical frame 1 to the VAP1 in the second working mode, and carry the information of the second working mode in the physical frame 1. When the routing device 200 cannot switch to the second working mode, the routing device 200 may send the physical frame 1 to the VAP1 in working mode A, and carry the information of working mode A in the physical frame 1.

[0188] For example, in the 802.11n protocol and the 802.11n protocol version, the physical frame 1 may include an L-SIG field and an HT-SIG field, and the L-SIG field may carry the number of antennas used by the routing device 200 when sending the physical frame 1. Among them, the HT-SIG field may carry the channel bandwidth and the order of MCS used by the routing device 200 when sending the physical frame 1. For another example, in the 802.11ac protocol and the 802.11 protocol version, the physical frame 1 may include a VHT SIG-B field, and the VHT SIG-B field may carry the channel bandwidth and the order of MCS used by the routing device 200 when sending the physical frame 1.

[0189] S1013: After receiving the switching notification 2, VAP2 may send an operating mode switching indication 2 to the electronic device 300, wherein the operating mode switching indication 2 is used to indicate switching to the second operating mode.

[0190] Among them, VAP2 can send the working mode switching instruction 2 to the electronic device 300 in working mode B.

[0191] S1014: After receiving the working mode switching indication 2, the electronic device 300 may send a working mode switching response 2 to the VAP2, wherein the working mode switching response 2 is used to indicate the result of the electronic device 300 switching the working mode.

[0192] After receiving the working mode switching indication 2, the electronic device 300 may first return ACK2 to VAP2 in working mode B, and the ACK2 is used to indicate that the electronic device 300 has received the working mode switching indication 2. After returning ACK2 to VAP2, the electronic device 300 sends a working mode switching response 2 to VAP2.

[0193] Among them, the working mode switching response 2 can be a physical frame 2 sent by the electronic device 300 to VAP2 after returning the ACK2 to VAP2. The electronic device 300 can carry the working mode adopted when sending the physical frame 2 in the physical frame 2. When the electronic device 300 can switch to the second working mode, the electronic device 300 can switch to the second working mode, and send the physical frame 2 to VAP2 in the second working mode, and carry the information of the second working mode in the physical frame 2. When the electronic device 300 cannot switch to the second working mode, the electronic device 300 can send the physical frame 2 to VAP2 in working mode B, and carry the information of the second working mode in the physical frame 2.

[0194] For example, in the 802.11n protocol and the 802.11n protocol version, the physical frame 2 may include an L-SIG field and an HT-SIG field, and the L-SIG field may carry the number of antennas used by the routing device 200 when sending the physical frame 2. Among them, the HT-SIG field may carry the channel bandwidth and the order of MCS used by the routing device 200 when sending the physical frame 2. For another example, in the 802.11ac protocol and the 802.11ac protocol version, the physical frame 2 may include a VHT SIG-B field, and the VHT SIG-B field may carry the channel bandwidth and the order of MCS used by the routing device 200 when sending the physical frame 2.

[0195] In some embodiments, since in a Wi-Fi device (e.g., electronic device 100), a high-specification working mode can be compatible with a low-specification working mode. That is, when the Wi-Fi module on the Wi-Fi device works in a high-specification working mode, the Wi-Fi device can support sending and receiving physical frames in a low-specification working mode while supporting sending and receiving physical frames in a high-specification working mode. However, when the Wi-Fi module on the Wi-Fi device works in a low-specification working mode, the Wi-Fi device can only support sending and receiving physical frames in a low-specification working mode. The specification of the first working mode is higher than that of the second working mode. Therefore, when VAP1 receives the above-mentioned ACK1 sent by the routing device 200, VAP1 can enter the trial phase, that is, send physical frames in the second working mode and receive physical frames in working mode A. When VAP2 receives the above-mentioned ACK2 sent by the electronic device 300, VAP2 can enter the trial phase, that is, send physical frames in the second working mode and receive physical frames in working 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.

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

[0197] In the embodiment of the present application, when all VAPs in the electronic device 100 successfully negotiate the working mode switching with the opposite device (routing device 200 or electronic device 300), the working mode switching of the Wi-Fi module on the electronic device 100 is successful. If there is any VAP in the electronic device 100 that fails to negotiate the working mode switching with the opposite device, the working mode switching 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.

[0198] Scenario 1: Switching is successful.

[0199] S1015: After receiving the working mode switching response 1, VAP1 may determine whether the routing device 200 is switched to the second working mode.

[0200] S1016: After receiving the working mode switching response 2, VAP2 may determine whether the electronic device 300 is switched to the second working mode.

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

[0202] The switching success indication 1 is used to indicate that VAP1 successfully switches the working mode of the routing device 200 to the second working mode.

[0203] S1018. After determining that the electronic device 300 switches to the second working mode, VAP2 may send a switching success indication 2 to the Wi-Fi management module.

[0204] The switching success indication 2 is used to indicate that the VAP 2 successfully switches the working mode of the electronic device 300 to the second working mode.

[0205] 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.

[0206] 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.

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

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

[0209] Scenario 2: Switching fails.

[0210] S1022: After receiving the working mode switching response 1, VAP1 may determine whether the routing device 200 is switched to the second working mode.

[0211] S1023: After receiving the working mode switching response 2, VAP2 may determine whether the electronic device 300 is switched to the second working mode.

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

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

[0214] The switching failure indication 1 is used to indicate that the VAP 2 has failed to successfully switch the working mode of the electronic device 300 to the second working mode.

[0215] 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).

[0216] 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.

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

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

[0219] S1028. After receiving the switching notification 3, VAP1 may send a working mode switching indication 3 to the routing device 200. The working mode switching indication 3 is used to indicate switching to the working mode A.

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

[0221] After receiving the working mode switching indication 3 in the second working mode, the routing device 200 may send a confirmation frame 3 to the VAP1 in the second working mode, and the confirmation frame 3 is used to indicate that the routing device 200 has received the working mode switching indication 3. After the routing device 200 sends the confirmation frame 3 in the second working mode, the routing device 200 switches the working mode of sending and receiving physical frames back to working mode A.

[0222] 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 routing device 200 switching the working mode.

[0223] 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.

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

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

[0226] 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.

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

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

[0229] In some embodiments, when the above-mentioned working mode switching response 1 indicates that the routing device 200 fails to switch to the second working mode, and the working mode switching response 2 indicates that the electronic device 300 successfully switches to the second working mode, VAP1 may send a switching failure indication 2 to the Wi-Fi management module, and VAP2 may send a switching success indication 2 to the Wi-Fi management module. The switching failure indication 2 is used to indicate that VAP1 has not successfully switched the working mode of the routing device 200 to the second working mode. Therefore, the Wi-Fi management module can determine whether the specification of the second working mode is lower than the specification of working mode B. If the specification of the second working mode is lower than the specification of working mode B, the Wi-Fi management module may notify VAP2 to fall back to working mode B. If the specification of the second working mode is higher than the specification of working mode A, the Wi-Fi management module may not notify VAP2 to fall back to working mode B, and let VAP2 continue to work in the second working mode.

[0230] In a possible implementation, when the electronic device 100 fails to switch the working 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 working mode switching condition is met again later, the electronic device 100 no longer attempts to switch the working mode with the routing device 200 and the electronic device 300.

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

[0232] Through a Wi-Fi working mode switching method provided in an embodiment of the present application, it can be achieved that when switching from the first working mode to the second working mode in a multi-VAP scenario, multiple VAPs in the electronic device 100 perform working mode switching handshakes with the opposite device one by one. When all VAPs have successfully handshaked 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 handshake with the opposite device, it is selected whether to fall back to the first working mode 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.

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

[0234] The 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.

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

[0236] The embodiment of the present application also provides a chip system, the chip system includes a processing circuit 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 implements the steps of any method embodiment of the present application. The chip system can be a single chip or a chip module composed of multiple chips.

[0237] 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 aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned 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 a third working mode, and receives the physical frame sent by the third electronic device through the Wi-Fi module in the third working mode, wherein the specification of the first working mode is higher than or equal to the specification of the third working 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

Cited By

  • WI-FI working mode switching method and related apparatus

    EP4727222A1

  • Wi-fi working mode switching method and related apparatus

    WO2025039980A1

  • Antenna mode switching method, electronic device, chip system, and storage medium

    WO2025200664A1