CN114788349A - Device control method, device, storage medium and electronic device - Google Patents

Device control method, device, storage medium and electronic device Download PDF

Info

Publication number
CN114788349A
CN114788349A CN201980102260.0A CN201980102260A CN114788349A CN 114788349 A CN114788349 A CN 114788349A CN 201980102260 A CN201980102260 A CN 201980102260A CN 114788349 A CN114788349 A CN 114788349A
Authority
CN
China
Prior art keywords
channel
detected
initial working
role
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201980102260.0A
Other languages
Chinese (zh)
Inventor
徐丰华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN114788349A publication Critical patent/CN114788349A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/06Reselecting a communication resource in the serving access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/12Wireless traffic scheduling

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

An apparatus control method: determining an initial channel of a device having a second role; determining a channel to be detected; acquiring the sum of the number of devices with second roles working on an initial channel and a channel to be detected in an environment; acquiring channel idle parameters; acquiring the received signal strength of equipment; and if the sum of the detected number is smaller than a preset first threshold value, the channel idle parameter meets a first condition, and the received signal strength of the target equipment is larger than a preset second threshold value, determining the target channel.

Description

Device control method, device, storage medium and electronic device Technical Field
The present application belongs to the field of Wi-Fi technologies, and in particular, to a device control method, apparatus, storage medium, and electronic device.
Background
Wi-Fi is a wireless local area network technology that is built into the IEEE 802.11 standard. Wi-Fi technology has become one of the most widely used wireless network transmission technologies today. With Wi-Fi technology, a mobile terminal such as a smart phone, a notebook computer, etc. can connect to an Access Point (AP) and connect to the internet through the Access Point, thereby using a web service.
Disclosure of Invention
The embodiment of the application provides an equipment control method and device, a storage medium and electronic equipment, which can improve the performance of data transmission by using Wi-Fi connection.
In a first aspect, the present application provides an apparatus control method applied to an electronic apparatus, where the electronic apparatus is an apparatus having a first role, and the first role is a workstation role or a group client role, and the method includes:
determining an initial working channel of a target device with a second role accessed by the electronic device, wherein the second role is an access point role or a group owner role;
determining a channel to be detected according to the initial working channel, wherein the channel to be detected is located in a preset bandwidth range corresponding to the initial working channel;
acquiring the sum of the number of the devices with the second role working on the initial working channel and the channel to be detected in the environment;
acquiring channel idle parameters of the initial working channel and the channel to be detected;
acquiring the received signal strength of the target equipment accessed by the electronic equipment;
if the sum of the number is detected to be smaller than or equal to a preset first threshold value, the channel idle parameter meets a first condition, and the received signal strength of the target device is larger than or equal to a preset second threshold value, a target channel is determined, Wi-Fi communication between the electronic device and the target device is carried out through the target channel, and the bandwidth of the target channel is larger than that of the initial working channel.
In a second aspect, the present application provides a device control method applied to an electronic device, where the electronic device is a device having a second role, and the second role is an access point role or a group owner role, and the method includes:
determining an initial operating channel of the electronic device;
determining a channel to be detected according to the initial working channel, wherein the channel to be detected is located in a preset bandwidth range corresponding to the initial working channel;
acquiring the sum of the number of the devices with the second role working on the initial working channel and the channel to be detected in the environment;
acquiring channel idle parameters of the initial working channel and the channel to be detected;
acquiring the sum of the received signal strengths of other devices with the second role working on the initial working channel and the channel to be detected in the environment;
if the sum of the number is smaller than or equal to a preset first threshold value, the channel idle parameter meets a first condition, and the sum of the received signal strengths of the other devices with the second roles is smaller than or equal to a preset fifth threshold value, determining a target channel, and performing Wi-Fi communication between the electronic device and the device with the first role connected with the electronic device through the target channel, wherein the bandwidth of the target channel is larger than that of the initial working channel, and the first role is a workstation role or a group client role.
In a third aspect, the present application provides an apparatus control device applied to an electronic device, where the electronic device is a device having a first role, and the first role is a workstation role or a group client role, and the apparatus includes:
a first determining module, configured to determine an initial working channel of a target device having a second role, where the target device is accessed by the electronic device, where the second role is an access point role or a group owner role;
a second determining module, configured to determine, according to the initial working channel, a channel to be detected, where the channel to be detected is located within a preset bandwidth range corresponding to the initial working channel;
a first obtaining module, configured to obtain a sum of the number of devices having the second role and working on the initial working channel and the channel to be detected in an environment;
the second acquisition module is used for acquiring the channel idle parameters of the initial working channel and the channel to be detected;
a third obtaining module, configured to obtain a received signal strength of the target device to which the electronic device is connected;
a first processing module, configured to determine a target channel and perform Wi-Fi communication between the electronic device and the target device through the target channel if it is detected that the sum of the numbers is smaller than or equal to a preset first threshold, the channel idle parameter meets a first condition, and the received signal strength of the target device is greater than or equal to a preset second threshold, where a bandwidth of the target channel is greater than a bandwidth of the initial working channel.
In a fourth aspect, the present application provides an apparatus control device, applied to an electronic device, where the electronic device is a device having a second role, and the second role is an access point role or a group owner role, and the apparatus includes:
a third determining module, configured to determine an initial operating channel of the electronic device;
a fourth determining module, configured to determine, according to the initial working channel, a channel to be detected, where the channel to be detected is located within a preset bandwidth range corresponding to the initial working channel;
a fourth obtaining module, configured to obtain a sum of the number of devices having the second role and working on the initial working channel and the channel to be detected in an environment;
a fifth obtaining module, configured to obtain channel idle parameters of the initial working channel and the channel to be detected;
a sixth obtaining module, configured to obtain a sum of received signal strengths of other devices having the second role and operating on the initial operating channel and the channel to be detected in an environment;
a second processing module, configured to determine a target channel and perform Wi-Fi communication between the electronic device and a device having a first role connected to the electronic device through the target channel if it is detected that the sum of the numbers is smaller than or equal to a preset first threshold, the channel idle parameter meets the first condition, and the sum of received signal strengths of the other devices having the second role is smaller than or equal to a preset fifth threshold, where a bandwidth of the target channel is greater than a bandwidth of the initial working channel, and the first role is a workstation role or a group client role.
In a fifth aspect, the present application provides a storage medium having stored thereon a computer program which, when executed on a computer, causes the computer to perform a method as provided in the first aspect or to perform a method as provided in the second aspect.
In a sixth aspect, the present application provides an electronic device, including a memory and a processor, where the electronic device is a device having a first role, and the first role is a workstation role or a group client role, and the processor is configured to execute, by calling a computer program stored in the memory:
determining an initial working channel of a target device with a second role accessed by the electronic device, wherein the second role is an access point role or a group owner role;
determining a channel to be detected according to the initial working channel, wherein the channel to be detected is located in a preset bandwidth range corresponding to the initial working channel;
acquiring the sum of the number of the devices with the second role working on the initial working channel and the channel to be detected in the environment;
acquiring channel idle parameters of the initial working channel and the channel to be detected;
acquiring the received signal strength of the target equipment accessed by the electronic equipment;
if the sum of the number is smaller than or equal to a preset first threshold value, the channel idle parameter meets a first condition, and the received signal strength of the target device is larger than or equal to a preset second threshold value, determining a target channel, and performing Wi-Fi communication between the electronic device and the target device through the target channel, wherein the bandwidth of the target channel is larger than that of the initial working channel.
In a seventh aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, where the electronic device is a device having a second role, and the second role is an access point role or a group owner role, and the processor is configured to, by calling a computer program stored in the memory, perform:
determining an initial operating channel of the electronic device;
determining a channel to be detected according to the initial working channel, wherein the channel to be detected is located in a preset bandwidth range corresponding to the initial working channel;
acquiring the sum of the number of the devices with the second role working on the initial working channel and the channel to be detected in the environment;
acquiring channel idle parameters of the initial working channel and the channel to be detected;
acquiring the sum of the received signal strengths of other devices with the second role, which work on the initial working channel and the channel to be detected in the environment;
if the sum of the number is detected to be smaller than or equal to a preset first threshold value, the channel idle parameter meets a first condition, and the sum of the received signal strengths of the other devices with the second roles is detected to be smaller than or equal to a preset fifth threshold value, a target channel is determined, and Wi-Fi communication between the electronic device and the devices with the first roles connected with the electronic device is carried out through the target channel, wherein the bandwidth of the target channel is larger than that of the initial working channel, and the first roles are workstation roles or group client roles.
Drawings
The technical solutions and advantages of the present application will be apparent from the following detailed description of specific embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a first flowchart schematic diagram of an apparatus control method provided in an embodiment of the present application.
Fig. 2 is a second flowchart of an apparatus control method according to an embodiment of the present application.
Fig. 3 is a schematic view of Wi-Fi channel scanning performed by an electronic device according to an embodiment of the present application, wherein the electronic device additionally returns a channel number, a channel idle time, and a scanning time when performing channel scanning.
Fig. 4 is a third flowchart illustrating an apparatus control method according to an embodiment of the present application.
Fig. 5 to fig. 6 are schematic scene diagrams of a device control method provided in an embodiment of the present application.
Fig. 7 is a schematic structural diagram of a first apparatus control device according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of a first apparatus control device according to an embodiment of the present application.
Fig. 9 is a schematic structural diagram of a first electronic device according to an embodiment of the present application.
Fig. 10 is a schematic structural diagram of a second electronic device according to an embodiment of the present application.
Fig. 11 is a third structural schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
Referring to fig. 1, fig. 1 is a first flowchart illustrating an apparatus control method according to an embodiment of the present disclosure. The device control method may be applied to an electronic device, which is a device having a first role, which may be a workstation role or a group client role, that is, the electronic device may be a device having a workstation (STA) role or a Group Client (GC) role. The flow of the device control method may include:
101. an initial working channel of a target device with a second role accessed by the electronic device is determined, wherein the second role is an access point role or a group owner role.
Wi-Fi is a wireless local area network technology that is built into the IEEE 802.11 standard. Wi-Fi technology has become one of the most widely used wireless network transmission technologies at present. With Wi-Fi technology, a mobile terminal such as a smart phone, a notebook computer, etc. can connect to an Access Point (AP) and connect to the internet through the Access Point, thereby using a web service. However, in the related art, the performance of data transmission using a Wi-Fi connection is poor. For example, in the related art, when the smart mobile terminal is connected to the access point, an operating channel for communication therebetween generally fixedly uses a bandwidth of 20MHz or a bandwidth of 40 MHz. Wherein, if the operating channel with 20MHz bandwidth is used fixedly, the performance of WiFi communication is always maintained at a relatively low level. If the operating channel with the bandwidth of 40MHz is fixedly used, when the interference in the environment is strong, the performance of WiFi communication may be inferior to that of the operating channel with the bandwidth of 20 MHz.
Two roles are involved in normal Wi-Fi connection communication: an Access Point (AP) and a Station (STA). Wi-Fi Display (WFD) is a specification developed by Wi-Fi Alliance that enables a Wi-Fi based connection to be established and maintained between multimedia devices and utilized to facilitate the presentation and playback of video/audio at a target device. An important technology in Wi-Fi Display is Wi-Fi Direct, i.e., Wi-Fi P2P. It supports two Wi-Fi devices to connect and communicate directly without accessing the access point AP. In the Wi-Fi Direct function structure, two roles of a Group Owner (GO) and a Group Client (GC) are defined. Where the group owner GO acts like an access point AP in an Infrastructure BSS. And the group client GC functions like the station STA in the Infrastructure BSS. Before the P2P Group (i.e., P2P Network) is formed, the terminals are P2P devices one by one. When P2P negotiation is completed between these P2P Device devices, one and only one P2P Device will play the GO role, and the other P2P devices will play the GC role.
In this embodiment of the application, for example, when an electronic device in an STA role or a GC role accesses an AP or a GO device and needs to determine what bandwidth is used for an operating channel therebetween, the electronic device may first acquire a current operating channel (i.e., an initial operating channel) of the AP or GO device to which the electronic device is accessed. For example, the AP or GO device accessed by the electronic device currently operates on channel number 7 in the 2.4GHz band. Wherein, the frequency range of the 2.4GHz frequency band is 2.400-2.4835 GHz. Channel No. 7 has a center frequency of 2442MHz, a low end frequency of 2431MHz, and a high end frequency of 2453 MHz.
It should be noted that after the AP or GO device is started, an operating channel is determined as its initial operating channel, even though no STA or GC device has access to the AP or GO device.
It should also be noted that, when the electronic device is a device in the STA role, the role of the target device accessed by the electronic device is correspondingly the AP role. And when the electronic device is a device with a GC role, the role of the target device accessed by the electronic device is correspondingly the GO role.
102. And determining a channel to be detected according to the initial working channel, wherein the channel to be detected is located in a preset bandwidth range corresponding to the initial working channel.
For example, after determining an initial working channel of a target device to which the electronic device is connected, the electronic device may determine a channel to be detected according to the initial working channel, where the channel to be detected is located within a preset bandwidth range corresponding to the initial working channel.
The channel of the 2.4GHz band may use a bandwidth of 20MHz or a bandwidth of 40 MHz. Where the 40MHz bandwidth is a 40MHz bandwidth formed by bundling two 20MHz bandwidth channels.
For example, the preset bandwidth is 40 MHz. Then, the electronic device in the process 102 may determine, according to an initial working channel of the target device to which the electronic device is connected, a channel to be detected, where the channel to be detected is located in a coverage range of a 40MHz bandwidth corresponding to the initial working channel.
103. And acquiring the sum of the number of the devices with the second role working on the initial working channel and the channel to be detected in the environment.
For example, the electronic device may further obtain a sum of the number of devices having the AP and GO roles that operate on the initial operating channel and the channel to be detected in the environment where the electronic device is located.
For example, the current working channel is channel number 7, and the channels to be detected include channel numbers 2, 3, 4, 5, 6, 8, and 9. Then, in flow 103, the electronic device may obtain the sum of the number of AP and GO devices operating on channels No. 2, No. 3, No. 4, No. 5, No. 6, No. 7, No. 8, No. 9 in the environment.
104. And acquiring channel idle parameters of the initial working channel and the channel to be detected.
For example, the electronic device may further obtain channel idle parameters of each of the initial operating channel and the channel to be detected. Wherein the channel idle parameter may indicate an idle degree of a channel.
105. And acquiring the received signal strength of the target equipment accessed by the electronic equipment.
For example, the electronic device may further obtain a Received Signal Strength (RSSI) of a target device connected to the electronic device.
After acquiring the sum of the numbers of the APs and the GO devices operating on the initial operating channel and the channel to be detected in the environment, the channel idle parameters of the initial operating channel and the channel to be detected, and the RSSI of the target device accessed by the electronic device, the electronic device may detect whether the sum of the numbers is less than or equal to a preset first threshold, whether the channel idle parameters satisfy a first condition, and whether the RSSI of the target device accessed by the electronic device is greater than or equal to a preset second threshold.
If the sum of the above quantities is detected to be less than or equal to a preset first threshold, the channel idle parameter meets the first condition, and the RSSI of the target device accessed by the electronic device is greater than or equal to a preset second threshold, then the process may be entered into step 106. Otherwise, the electronic device may perform other operations.
106. If the sum of the number is detected to be smaller than or equal to a preset first threshold value, the channel idle parameter meets a first condition, and the received signal strength of the target device is larger than or equal to a preset second threshold value, determining a target channel, and performing Wi-Fi communication between the electronic device and the target device through the target channel, wherein the bandwidth of the target channel is larger than that of the initial working channel.
For example, when the electronic device detects that the sum of the number is less than or equal to a preset first threshold, the channel idle parameter meets the first condition, and the RSSI of the target device accessed by the electronic device is greater than or equal to a preset second threshold, it may be considered that the interference in the environment where the electronic device is currently located is small. In this case, the electronic device may determine a target channel and perform Wi-Fi communication between the electronic device and the target device over the target channel. Wherein the bandwidth of the target channel may be greater than the bandwidth of the initial operating channel. For example, the bandwidth of the initial operating channel is 20MHz and the bandwidth of the target channel is 40 MHz. Then, when it is detected that the sum of the above numbers is less than or equal to a preset first threshold, the channel idle parameter meets the first condition, and the RSSI of the target device accessed by the electronic device is greater than or equal to a preset second threshold, the electronic device may use the target channel with the bandwidth of 40MHz to perform Wi-Fi communication between the electronic device and the target device accessed by the electronic device. For example, the electronic device may configure a target channel with a bandwidth of 40MHz by using the channel No. 7 as a primary channel and the channel No. 6 or the channel No. 8 as a secondary channel, and perform Wi-Fi communication with a target device accessed by the target channel with the bandwidth of 40 MHz. Otherwise, the electronic device may use channel number 7 with 20MHz bandwidth for Wi-Fi communication between the electronic device and a target device accessed by the electronic device.
It can be understood that, in this embodiment of the present application, when an operating environment of the electronic device satisfies a certain condition (that is, a sum of the above number is less than or equal to a preset first threshold, a channel idle parameter satisfies the first condition, and an RSSI of a target device accessed by the electronic device is greater than or equal to a preset second threshold), the electronic device may perform Wi-Fi communication between the electronic device and the target device accessed by the electronic device by using a target channel having a bandwidth greater than that of an initial operating channel. That is, in the embodiment of the present application, the electronic device may use the channel with the larger bandwidth to perform Wi-Fi communication in the environment with less interference, so as to improve the performance of data transmission by using the Wi-Fi connection.
Referring to fig. 2, fig. 2 is a second flowchart illustrating an apparatus control method according to an embodiment of the present disclosure. The device control method may be applied to an electronic device, which is a device having a first role, which may be a workstation role or a group client role, that is, the electronic device may be a device having a workstation (STA) role or a Group Client (GC) role. The flow of the device control method may include:
201. the electronic device determines an initial operating channel of a target device it accesses having a second role, the second role being an access point role or a group owner role.
For example, when an electronic device in an STA role or a GC role accesses an AP device or a GO device and needs to determine what bandwidth is used for an operating channel therebetween, the electronic device may first acquire a current operating channel (i.e., an initial operating channel) of a target device to which the electronic device is accessed. For example, the target device accessed by the electronic device currently operates in channel No. 7 of the 2.4GHz band, that is, channel No. 7 is an initial operating channel.
It should be noted that, when the electronic device is a device in the STA role, the role of the target device accessed by the electronic device is correspondingly the AP role. And when the electronic device is a device with a GC role, the role of the target device accessed by the electronic device is correspondingly the GO role.
202. According to the initial working channel, the electronic equipment determines a channel to be detected, wherein the channel to be detected is located in a preset bandwidth range corresponding to the initial working channel.
For example, after determining an initial working channel of a target device to which the electronic device is connected, the electronic device may determine a channel to be detected according to the initial working channel, where the channel to be detected is located within a preset bandwidth range corresponding to the initial working channel. In one embodiment, the predetermined bandwidth may be a bandwidth having a width greater than 20 MHz.
The channel of the 2.4GHz band may use a bandwidth of 20MHz or a bandwidth of 40 MHz. Where the 40MHz bandwidth is a 40MHz bandwidth formed by bundling two 20MHz bandwidth channels.
For example, the preset bandwidth is 40 MHz. Then, in the process 202, the electronic device may determine, according to the initial working channel — the channel 7 of the target device to which the electronic device is connected, a channel to be detected, where the channel to be detected is located in a coverage range of a 40MHz bandwidth corresponding to the channel 7.
In one embodiment, the electronic device may determine the channel to be detected according to the initial operating channel by:
the method comprises the steps that the electronic equipment acquires a mode that target equipment accessed by the electronic equipment uses a preset bandwidth on an initial working channel, wherein the mode is one of an upward superposition channel and a downward superposition channel;
and the electronic equipment determines the channel to be detected according to the mode that the target equipment uses the preset bandwidth on the initial working channel and the initial working channel.
It should be noted that, for example, the preset bandwidth is 40MHz, and the initial operating channel of the target device accessed by the electronic device is the channel No. 7 in the 2.4GHz band. The electronic device may first acquire a mode that a target device accessed by the electronic device uses 40MHz bandwidth on channel No. 7. Wherein the method comprises an add-up channel (plus) and a drop-down channel (minus).
It should also be noted that the 40MHz bandwidth is formed by binding two adjacent channels with 20MHz bandwidth together, one is a primary channel, and the other is a secondary channel. The main channel sends beacon messages and part of data messages, and the auxiliary channel sends other messages. If the center frequency of the secondary channel is higher than that of the primary channel when two adjacent 20MHz channels are bundled, it is plus. If the center frequency of the secondary channel is lower than the center frequency of the primary channel when two adjacent 20MHz channels are bundled, it is minus. Both plus and minus are referred to herein as primary channels. For example, the current channel is 7, and the plus is allocated to the 40MHz bandwidth, and another channel needs to be superimposed, that is, the 40MHz bandwidth is formed by the two channels of channel number 7 + channel number 8. minus represents that channel superposition is downward superposition when channel superposition is performed, for example, channel number 7 + channel number 6 constitute a new channel with a bandwidth of 40 MHz.
In this embodiment, the electronic device may obtain a beacon data packet of the target device accessed by the electronic device, and obtain, from the beacon data packet, a mode that the accessed target device uses a 40MHz bandwidth on the initial working channel.
After determining that the target device accessed by the electronic device uses a 40MHz bandwidth on the current working channel, the electronic device may determine the channel to be detected by the following method:
if the target device accessed by the electronic device uses a 40MHz bandwidth mode on the initial working channel as a downward superposition channel, the electronic device determines 8 continuous channels including the initial working channel as a first object channel; the electronic equipment determines other channels except the initial working channel in the first object channel as channels to be detected, wherein the number of the channels, which are lower than the initial working channel, in the channels to be detected is greater than the number of the channels, which are higher than the initial working channel, in the channels to be detected.
Or, if the target device accessed by the electronic device uses the 40MHz bandwidth on the initial operating channel as the upward superposition channel, the electronic device determines 8 continuous channels including the initial operating channel as the second object channel; and the electronic equipment determines other channels except the initial working channel in the second object channel as channels to be detected, wherein the number of the channels, which are lower than the initial working channel, in the channels to be detected is less than the number of the channels, which are higher than the initial working channel, in the channels to be detected.
For example, the initial operating channel is channel No. 7, and the electronic device constructs a channel with a bandwidth of 40MHz by using a downward channel minus superposition manner, so that the electronic device may determine 8 consecutive channels including channel No. 7 as a first object channel, and then determine other channels except channel No. 7 among the 8 channels as channels to be detected, where the number of channels lower than channel No. 7 in the channels to be detected is greater than the number of channels higher than channel No. 7. For example, the 8 consecutive channels including channel No. 7 are channel No. 2, channel No. 3, channel No. 4, channel No. 5, channel No. 6, channel No. 7, channel No. 8, and channel No. 9. Then, the electronic device may determine channels No. 2, No. 3, No. 4, No. 5, No. 6, No. 8, and No. 9 as channels to be detected, where the number of channels lower than the channel No. 7 is 5 (channels No. 2, No. 3, No. 4, No. 5, and No. 6), and the number of channels higher than the channel No. 7 is 2 (channels No. 8 and No. 9). As another example, the 8 consecutive channels including channel No. 7 are channel No. 3, channel No. 4, channel No. 5, channel No. 6, channel No. 7, channel No. 8, channel No. 9, and channel No. 10. Then, the electronic device may determine channels No. 3, 4, 5, 6, 8, 9, and 10 as channels to be detected, where the number of channels lower than the channel No. 7 is 4 (channels No. 3, 4, 5, and 6), and the number of channels higher than the channel No. 7 is 3 (channels No. 8, 9, and 10).
For example, the initial operating channel is channel No. 7, and the electronic device constructs a channel with a bandwidth of 40MHz by using an upward channel plus, so that the electronic device can determine 8 continuous channels including channel No. 7 as the second object channel, and then determine other channels except channel No. 7 among the 8 channels as channels to be detected, where the number of channels lower than channel No. 7 in the channels to be detected is smaller than the number of channels higher than channel No. 7. For example, the 8 consecutive channels including channel No. 7 are channel No. 4, channel No. 5, channel No. 6, channel No. 7, channel No. 8, channel No. 9, channel No. 10, and channel No. 11. Then, the electronic device may determine channels No. 4, 5, 6, 8, 9, 10, and 11 as channels to be detected, where the number of channels below channel No. 7 is 3 (channels No. 4, 5, and 6), and the number of channels above channel No. 7 is 4 (channels No. 8, 9, 10, and 11). As another example, the 8 consecutive channels including channel No. 7 are channel No. 5, channel No. 6, channel No. 7, channel No. 8, channel No. 9, channel No. 10, channel No. 11, and channel No. 12. Then, the electronic device may determine channels 5, 6, 8, 9, 10, 11, and 12 as channels to be detected, where the number of channels lower than channel 7 is 2 (channels 5 and 6), and the number of channels higher than channel 7 is 5 (channels 8, 9, 10, 11, and 12).
203. The electronic equipment obtains the sum of the number of the equipment with the second role working on the initial working channel and the channel to be detected in the environment.
For example, the electronic device may further obtain a sum of the number of devices having the second role and operating on the initial operating channel and the channel to be detected in the environment where the electronic device is located, that is, the electronic device may obtain the number of AP and GO devices operating on the initial operating channel and the channel to be detected in the environment where the electronic device is located.
For example, the initial working channel is a channel No. 7, and the channels to be detected include channels No. 2, 3, 4, 5, 6, 8, and 9. Then, in flow 203, the electronic device may obtain the sum of the number of AP and GO devices operating on channels No. 2, No. 3, No. 4, No. 5, No. 6, No. 7, No. 8, No. 9 in the environment.
204. The electronic equipment scans the initial working channel and the channel to be detected, and acquires the channel idle time and the channel scanning time of each channel during scanning.
205. And according to the channel idle time and the channel scanning time of each channel, the electronic equipment calculates the channel idle ratio of each channel, wherein the channel idle ratio is the ratio of the channel idle time to the channel scanning time.
206. The electronic equipment calculates the average channel idle ratio of the initial working channel and the channel to be detected, and takes the average channel idle ratio and the channel idle ratio of each channel as channel idle parameters.
204, 205, 206 may include, for example:
after the channel to be detected is determined, the electronic device may scan an initial working channel of the target device and the channel to be detected. When scanning the initial working channel and the channel to be detected, the electronic device may obtain a channel idle slot time (channel idle slot time) and a channel scanning time (scan time) of each of the channels.
It should be noted that, in the related art, channel idle slot time (channel idle slot time) and scan time (scan time) are not returned when performing channel scanning. In the embodiment of the present application, information of channel idle time (channel idle slot time) and scan time (scan time) is additionally returned in the scan result of channel scanning.
For example, please refer to fig. 3, fig. 3 is a schematic view of Wi-Fi channel scanning of an extra return channel number (channel number), a channel idle time (channel idle slot time), and a scanning time (scan time) of an electronic device according to an embodiment of the present disclosure. The device comprises a Wi-Fi Driver, a Wi-Fi Firmware, a Wi-Fi Hardware Hardware, a Packet Tx and a Packet Rx, wherein the Wi-Fi Driver is a Wi-Fi driving module, the Wi-Fi Firmware is Wi-Fi Firmware, the Wi-Fi Hardware is Wi-Fi Hardware, the Packet Tx represents a sending data Packet, and the Packet Rx represents a receiving data Packet. That is, when scanning each channel, the electronic device may additionally acquire and return a channel idle slot time (channel idle slot time) and a scan time (scan time). Therefore, when the electronic device scans channels, the electronic device can acquire the channel idle time and the scanning time of each channel.
After the channel idle time and the scanning time of each channel are obtained, the electronic device can calculate a channel idle slot ratio (channel idle slot ratio) corresponding to each channel, wherein the channel idle ratio is a ratio of the channel idle time to the scanning time. For example, the channel idle time of channel No. 2 is 30ms, the scanning time is 50ms, and the channel idle ratio of channel No. 2 is 30ms/50ms — 0.6.
And the electronic equipment can also calculate the average channel idle ratio of the initial working channel and the channel to be detected. That is, the average channel idle ratio is an average value of the sum of the channel idle ratios of the initial operating channel and the channel to be detected.
In this embodiment, the electronic device may use the average channel idle ratio and the channel idle ratios of the channels in the initial working channel and the channel to be detected as channel idle parameters.
207. The electronic equipment acquires the received signal strength of the target equipment accessed by the electronic equipment.
For example, the electronic device may also obtain the received signal strength RSSI of the target device it accesses.
After acquiring the sum of the numbers of the APs and the GO devices operating on the initial operating channel and the channel to be detected in the environment, the channel idle parameters of the initial operating channel and the channel to be detected, and the RSSI of the target device accessed by the electronic device, the electronic device may detect whether the sum of the numbers is less than or equal to a preset first threshold, whether the channel idle parameters satisfy a preset first condition, and whether the RSSI of the target device accessed by the electronic device is greater than or equal to a preset second threshold. The first condition is that the channel idle ratio of each of the initial working channel and the channel to be detected is greater than or equal to a preset third threshold, and the average channel idle ratio is greater than or equal to a preset fourth threshold.
If the sum of the number is detected to be less than or equal to a first threshold, the channel idle parameter meets a preset first condition, and the RSSI of the target device accessed by the electronic device is greater than or equal to a preset second threshold, 208 may be entered.
208. If the sum of the number is less than or equal to a preset first threshold value, the channel idle parameter meets a first condition, and the received signal strength of the target device is greater than or equal to a preset second threshold value, the electronic device determines a target channel, and performs Wi-Fi communication between the electronic device and the target device through the target channel, wherein the bandwidth of the target channel is greater than that of an initial working channel, and when the channel idle ratio of each of the initial working channel and the channel to be detected is greater than or equal to a preset third threshold value, and the average channel idle ratio is greater than or equal to a preset fourth threshold value, it is determined that the channel idle parameter meets the first condition.
For example, if the sum of the above quantities is less than or equal to a preset first threshold, the channel idle parameter meets the first condition, and the received signal strength of the target device accessed by the electronic device is greater than or equal to a preset second threshold, it may be considered that the interference in the environment where the electronic device is currently located is small. In this case, the electronic device may determine a target channel and perform Wi-Fi communication between the electronic device and the target device over the target channel. Wherein the bandwidth of the target channel may be greater than the bandwidth of the initial operating channel. For example, the bandwidth of the target channel is 40MHz bandwidth. Wherein, the channel idle parameter satisfies a first condition, which may indicate that the associated channel is idle. For example, the electronic device may construct a target channel with a bandwidth of 40MHz using channel No. 7 as a primary channel and channel No. 6 as a secondary channel for Wi-Fi communication between the electronic device and a target device accessed by the electronic device.
Otherwise, the electronic device may continue to use the 20MHz bandwidth of channel No. 7 for Wi-Fi communications between the electronic device and the AP or GO device to which it has access.
It can be understood that, in this embodiment of the application, when the sum of the numbers of the AP devices and the GO devices that operate on the initial operating channel and the channel to be detected in the environment is smaller than a preset first threshold, the channel idle ratios of the channels in the initial operating channel and the channel to be detected are both greater than or equal to a preset third threshold, the average channel idle ratio is greater than or equal to a preset fourth threshold, and the RSSI of the target device that the electronic device accesses is greater than or equal to a preset second threshold, it may be considered that the interference of the environment where the electronic device is located is smaller. In the case of less interference in the environment, the electronic device may use a 40MHz bandwidth channel for Wi-Fi communications. And in the case of large interference in the environment, the electronic device can use a channel with a bandwidth of 20MHz for Wi-Fi communication. Since the Wi-Fi communication transceiving performance of the 40MHz bandwidth channel is better than that of the 20MHz bandwidth channel, in this embodiment, under the condition that the environmental interference is small, the electronic device may have better communication performance by using the 40MHz bandwidth channel for Wi-Fi communication.
In another embodiment, the medium ready count may also be used as a channel idle parameter. The value of the parameter medium ready count represents the number of Wi-Fi packets detected by the Wi-Fi physical layer, and when the number is small, for example, the value of the parameter medium ready count within 500ms is less than 100, it can be considered that the interference on the corresponding channel is small.
For example, when it is detected that the sum of the numbers of the access points and the group owner devices operating on the initial operating channel and the channel to be detected in the environment is less than or equal to a preset first threshold, the number of the medium ready count is less than a preset number, and the received signal strength of the target device accessed by the electronic device is greater than or equal to a preset second threshold, it may be considered that the current environment interference is small. In this case, the electronic device may use a target channel having a preset bandwidth (e.g., 40MHz bandwidth) and a target device accessed by the electronic device for Wi-Fi communication.
Referring to fig. 4, fig. 4 is a third flowchart illustrating an apparatus control method according to an embodiment of the present disclosure. The device control method may be applied to an electronic device, which may be a device having a second role that is an Access Point (AP) role or a Group Owner (GO) role. The flow of the device control method may include:
301. an initial operating channel of the electronic device is determined.
In the embodiment of the present application, for example, when a device in an STA role or a GC role accesses an electronic device in an AP role or a GO role and needs to determine what bandwidth is used for a working channel between the electronic device and the AP role, the electronic device may first acquire a current working channel (i.e., an initial working channel) of the electronic device. For example, the electronic device currently operates on channel number 7 in the 2.4GHz band.
302. And determining a channel to be detected according to the initial working channel, wherein the channel to be detected is positioned in a preset bandwidth range corresponding to the initial working channel.
For example, after an initial working channel of the electronic device is determined, the electronic device may determine a channel to be detected according to the initial working channel, where the channel to be detected is located within a preset bandwidth range corresponding to the initial working channel.
For example, the preset bandwidth is 40 MHz. Then, the electronic device in the process 302 may determine, according to the initial operating channel of the electronic device, a channel to be detected, where the channel to be detected is located in a coverage range of a 40MHz bandwidth corresponding to the initial operating channel. How to determine the channel to be detected according to the initial working channel is described in detail above, and is not described here again.
303. And acquiring the sum of the number of the devices with the second role working on the initial working channel and the channel to be detected in the environment.
For example, the electronic device may further obtain the number of AP and GO devices operating on the initial operating channel and the channel to be detected in the environment where the electronic device is located.
For example, the initial working channel is a channel number 7, and the channels to be detected include channels number 2, 3, 4, 5, 6, 8, and 9. Then, in flow 303, the electronic device may obtain the sum of the number of AP and GO devices operating on channels No. 2, No. 3, No. 4, No. 5, No. 6, No. 7, No. 8, No. 9 in the environment.
304. And acquiring channel idle parameters of the initial working channel and the channel to be detected.
For example, the electronic device may further obtain channel idle parameters of each of the initial operating channel and the channel to be detected. Wherein the channel idle parameter may indicate an idle degree of a channel.
305. And acquiring the sum of the received signal strengths of other devices with the second role in the environment, which work on the initial working channel and the channel to be detected.
For example, the electronic device may also obtain the sum of the RSSI of other APs and GO devices operating on the initial operating channel and the channel to be detected in the environment.
Then, the electronic device may detect whether the sum of the numbers is less than or equal to a preset first threshold, whether the channel idle parameter satisfies the first condition, and whether the sum of the received signal strengths of the other devices having the second role is less than or equal to a preset fifth threshold. If so, flow may proceed to 306. Otherwise, the electronic device may perform other operations.
306. If the sum of the number is detected to be smaller than or equal to a preset first threshold value, the channel idle parameter meets a first condition, and the sum of the received signal strengths of other devices with second roles is detected to be smaller than or equal to a preset fifth threshold value, a target channel is determined, and Wi-Fi communication between the electronic device and the connected device with the first role is performed through the target channel, wherein the bandwidth of the target channel is larger than that of the initial working channel, and the first role is a workstation role or a group client role.
For example, if the electronic device detects that the sum of the number is less than or equal to a preset first threshold, the channel idle parameter meets the first condition, and the sum of the RSSI of the other access points and the group owner device operating on the initial operating channel and the channel to be detected is less than or equal to a preset fifth threshold, it may be considered that the interference in the environment where the electronic device is currently located is small. In this case, the electronic device may determine a target channel, and perform Wi-Fi communication between the electronic device and a device connected thereto and having a first role through the target channel, where a bandwidth of the target channel is greater than a bandwidth of the initial working channel, and the first role is a workstation role or a group client role. For example, the electronic device may configure a target channel with a bandwidth of 40MHz by using the channel No. 7 as a primary channel and the channel No. 6 or the channel No. 8 as a secondary channel, and perform Wi-Fi communication based on the target channel with the bandwidth of 40MHz and the corresponding STA or GC device. Otherwise, the electronic device may still use channel number 7 with 20MHz bandwidth for Wi-Fi communication between the electronic device and its corresponding STA or GC device.
It can be understood that in the embodiment of the application, the electronic device can use a channel with a larger bandwidth for Wi-Fi communication in an environment with less interference, so that the performance of data transmission by using a Wi-Fi connection is improved.
In one embodiment, the channel idle parameter in 306 may be a channel idle ratio of each of an initial operating channel and a channel to be detected of the electronic device. Then, the first condition that the channel idle parameter satisfies the preset condition may be that the channel idle ratios of the channels in the initial operating channel and the channel to be detected of the electronic device are both greater than or equal to a preset third threshold.
Alternatively, the channel idle parameter in 306 may be the channel idle ratio of each of the initial operating channel and the channel to be detected of the electronic device and the average channel idle ratio of these channels. Then, the first condition that the channel idle parameter satisfies the preset condition may be that the channel idle ratios of the channels in the initial operating channel and the channel to be detected of the electronic device are both greater than or equal to a preset third threshold, and the average channel idle ratio of the channels is greater than or equal to a preset fourth threshold.
Referring to fig. 5 to 6, fig. 5 to 6 are schematic views of a scenario of an apparatus control method according to an embodiment of the present disclosure.
For example, with the electronic device D1 and the electronic device D2, the user wants to wirelessly project the audio and video files on the electronic device D2 onto the electronic device D1 for playing. The user may turn on the Wi-Fi functionality of electronic devices D1 and D2, thereby establishing a Wi-Fi P2P connection between electronic devices D1 and D2, as shown in FIG. 5.
Through the negotiation, the electronic device D1 is determined as the role of the group owner GO, and the electronic device D2 is determined as the role of the group client GC. The working channel of the GO device D1 is, for example, channel number 7 in the 2.4GHz band. Before establishing the normal connection, the GC device D2 may first acquire the current operating channel, i.e., channel No. 7, of the GO device D1. Among other things, the GO device D1 supports a 20MHz bandwidth and a 40MHz bandwidth.
Thereafter, the GC device D2 may determine the channel to be detected according to channel No. 7 of the current operating channel of the GO device D1. For example, the way the GO device D1 uses 40MHz bandwidth on channel No. 7 is to superimpose channel minus downward. Then, the channels to be detected may be, for example, channels No. 2, No. 3, No. 4, No. 5, No. 6, No. 8, No. 9.
Thereafter, the GC device D2 may scan each of channels No. 2 to 9 to obtain the sum of the number of APs and GO devices operating in the surrounding environment on channels No. 2 to 9.
Also, when scanning each of the channels No. 2 to 9, the GC device D2 may additionally acquire a channel idle time (channel idle slot time) and a channel scan time (scan time) of each channel. Based on the channel idle time and the channel scan time of each channel, the GC device D2 may calculate a channel idle ratio of each channel, where the channel idle ratio is a ratio of the channel idle time and the channel scan time. Also, after calculating the channel idle ratio of each channel, the GC device D2 may also calculate an average channel idle ratio.
Thereafter, the GC device D2 may also obtain the received signal strength RSSI of the GO device D1 that it accesses.
After acquiring the above information, the GC device D2 may detect whether a sum of the numbers of APs and GO devices operating in channels 2 to 9 in the surrounding environment is less than or equal to a preset first threshold (for example, the preset first threshold is 7 or 8), detect whether the channel idle ratios of the channels 2 to 9 are greater than or equal to a preset third threshold (for example, the preset third threshold is 10% or 20% or the like), detect whether the average channel idle ratio of the channels is greater than or equal to a preset fourth threshold (for example, the preset fourth threshold is 15% or 25% or the like), and detect whether the RSSI of the received signal strength of the GO device D1 is greater than or equal to a preset second threshold (for example, the preset second threshold is-75 dBm or-60 dBm or the like).
For example, in this embodiment, the detection results of the above four conditions are that, for example, the GC device D2 detects that the number of APs and GO devices operating in channels 2 to 9 in the surrounding environment is 5 and less than 7 preset first thresholds, detects that the channel idle ratio of each channel from channel 2 to channel 9 is greater than 10% of the preset third threshold, and detects that the average channel idle ratio of each channel is 30% and greater than 15% of the preset fourth threshold, and detects that the RSSI-50 dBm of the received signal strength of the GO device D1 is greater than-75 dBm of the preset second threshold. In this case, the GC device D2 may determine that a 40MHz bandwidth channel may be used for Wi-Fi communication with the GO device D1. For example, the devices D1 and D2 may constitute a 40MHz bandwidth channel with the channel No. 7 as a primary channel and the channel No. 6 as a secondary channel, and use the 40MHz bandwidth channel for Wi-Fi communication, as shown in fig. 6.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an apparatus control device according to an embodiment of the present disclosure. The device control apparatus can be applied to an electronic device, which is a device having a first role, the first role being a workstation role or a group client role. The device control apparatus 400 may include: a first determining module 401, a second determining module 402, a first obtaining module 403, a second obtaining module 404, a third obtaining module 405, and a first processing module 406.
A first determining module 401, configured to determine an initial working channel of a target device having a second role, where the target device is accessed by the electronic device, where the second role is an access point role or a group owner role.
A second determining module 402, configured to determine, according to the initial working channel, a channel to be detected, where the channel to be detected is located within a preset bandwidth range corresponding to the initial working channel.
A first obtaining module 403, configured to obtain a sum of the number of devices with the second role operating in the initial operating channel and the channel to be detected in an environment.
A second obtaining module 404, configured to obtain channel idle parameters of the initial working channel and the channel to be detected.
A third obtaining module 405, configured to obtain a received signal strength of the target device accessed by the electronic device.
A first processing module 406, configured to determine a target channel and perform Wi-Fi communication between the electronic device and the target device through the target channel if it is detected that the sum of the numbers is smaller than or equal to a preset first threshold, the channel idle parameter meets a first condition, and the received signal strength of the target device is greater than or equal to a preset second threshold, where a bandwidth of the target channel is greater than a bandwidth of the initial working channel.
In an embodiment, the second obtaining module 404 may be configured to:
scanning the initial working channel and the channel to be detected, and acquiring channel idle time and channel scanning time of each channel during scanning; calculating the channel idle ratio of each channel according to the channel idle time and the channel scanning time of each channel, wherein the channel idle ratio is the ratio of the channel idle time to the channel scanning time; determining a channel idle ratio as a channel idle parameter of each of the initial working channel and the channel to be detected;
then, the first processing module 406 may be configured to: and when the channel idle ratio of each channel in the initial working channel and the channel to be detected is greater than or equal to a preset third threshold value, determining that the channel idle parameters meet a first condition.
In an embodiment, the second obtaining module 404 may be further configured to: calculating an average channel idle ratio of the initial working channel and the channel to be detected, wherein the average channel idle ratio is another channel idle parameter;
then, the first processing module 406 may be configured to: and when the channel idle ratio of each channel in the initial working channel and the channel to be detected is greater than or equal to a preset third threshold value, and the average channel idle ratio is greater than or equal to a preset fourth threshold value, determining that the channel idle parameters meet a first condition.
In one embodiment, the second determining module 402 may be configured to:
acquiring a mode that the target equipment accessed by the electronic equipment uses a preset bandwidth on the initial working channel, wherein the mode is one of an upward superposition channel and a downward superposition channel;
and determining a channel to be detected according to the mode that the target equipment uses a preset bandwidth on the initial working channel and the initial working channel.
In one embodiment, the preset bandwidth is a bandwidth of 40MHz, and the target device uses the preset bandwidth on the initial working channel as a downward superposition channel;
the second determining module 402 may be configured to:
determining 8 continuous channels including the initial working channel as a first object channel;
and determining other channels except the initial working channel in the first object channel as channels to be detected, wherein the number of the channels, which are lower than the initial working channel, in the channels to be detected is greater than the number of the channels, which are higher than the initial working channel, in the channels to be detected.
In one embodiment, the preset bandwidth is a bandwidth of 40MHz, and the target device uses the preset bandwidth on the initial working channel as an upward superposition channel;
the second determining module 402 may be further configured to:
determining 8 continuous channels including the initial working channel as a second object channel;
and determining other channels except the initial working channel in the second object channel as channels to be detected, wherein the number of the channels in the channels to be detected, which are lower than the initial working channel, is less than the number of the channels in the channels to be detected, which are higher than the initial working channel.
In one embodiment, the second determining module 402 may be configured to:
acquiring beacon data messages of the target equipment accessed by the electronic equipment;
and acquiring the mode that the target equipment uses the preset bandwidth on the initial working channel from the beacon data message.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a device control apparatus according to an embodiment of the present disclosure. The device control apparatus may be applied to an electronic device, which is a device having a second role that is an access point role or a group owner role. The device control apparatus 500 may include: a third determining module 501, a fourth determining module 502, a fourth obtaining module 503, a fifth obtaining module 504, a sixth obtaining module 505, and a second processing module 506.
A third determining module 501, configured to determine an initial operating channel of the electronic device;
a fourth determining module 502, configured to determine, according to the initial working channel, a channel to be detected, where the channel to be detected is located within a preset bandwidth range corresponding to the initial working channel;
a fourth obtaining module 503, configured to obtain a sum of the numbers of the devices with the second role operating in the initial operating channel and the channel to be detected in the environment;
a fifth obtaining module 504, configured to obtain channel idle parameters of the initial working channel and the channel to be detected;
a sixth obtaining module 505, configured to obtain a sum of received signal strengths of other devices having the second role and operating on the initial operating channel and the channel to be detected in an environment;
a second processing module 506, configured to determine a target channel if it is detected that the sum of the numbers is smaller than or equal to a preset first threshold, the channel idle parameter meets the first condition, and the sum of the received signal strengths of the other devices with the second role is smaller than or equal to a preset fifth threshold, and perform Wi-Fi communication between the electronic device and the device with the first role connected to the electronic device through the target channel, where a bandwidth of the target channel is greater than a bandwidth of the initial working channel, and the first role is a workstation role or a group client role.
The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer is caused to execute the flow in the device control method provided in this embodiment.
The embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the processor is configured to execute the procedure in the device control method provided in this embodiment by calling a computer program stored in the memory.
For example, the electronic device may be a mobile terminal such as a tablet computer or a smart phone. Referring to fig. 9, fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
The electronic device 600 may include components such as a Wi-Fi module 601, memory 602, processor 603, and the like. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 9 does not constitute a limitation of the electronic device and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. The electronic device 600 may be a device having a first role that is a workstation role or a group client role.
The Wi-Fi module 601 may be used to implement Wi-Fi functionality.
The memory 602 may be used to store applications and data. The memory 602 stores applications containing executable code. The application programs may constitute various functional modules. The processor 603 executes various functional applications and data processing by running an application program stored in the memory 602.
The processor 603 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 602 and calling data stored in the memory 602, thereby integrally monitoring the electronic device.
In this embodiment, the processor 603 in the electronic device loads the executable code corresponding to the processes of one or more application programs into the memory 602 according to the following instructions, and the processor 603 runs the application programs stored in the memory 602, so as to execute:
determining an initial working channel of a target device with a second role accessed by the electronic device, wherein the second role is an access point role or a group owner role;
determining a channel to be detected according to the initial working channel, wherein the channel to be detected is located in a preset bandwidth range corresponding to the initial working channel;
acquiring the sum of the number of the devices with the second role working on the initial working channel and the channel to be detected in the environment;
acquiring channel idle parameters of the initial working channel and the channel to be detected;
acquiring the received signal strength of the target equipment accessed by the electronic equipment;
if the sum of the number is detected to be smaller than or equal to a preset first threshold value, the channel idle parameter meets a first condition, and the received signal strength of the target device is larger than or equal to a preset second threshold value, a target channel is determined, Wi-Fi communication between the electronic device and the target device is carried out through the target channel, and the bandwidth of the target channel is larger than that of the initial working channel.
Referring to fig. 10, the electronic device 600 may include a Wi-Fi module 601, a memory 602, a processor 603, a speaker 604, a microphone 605, a display 606, and the like.
Wi-Fi module 401 can be used to implement Wi-Fi functionality.
The memory 602 may be used to store applications and data. The memory 602 stores applications containing executable code. The application programs may constitute various functional modules. The processor 603 executes various functional applications and data processing by running an application program stored in the memory 602.
The processor 603 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 602 and calling data stored in the memory 602, thereby integrally monitoring the electronic device.
In this embodiment, the processor 603 in the electronic device loads the executable code corresponding to the processes of one or more application programs into the memory 602 according to the following instructions, and the processor 603 runs the application programs stored in the memory 602, thereby executing:
determining an initial working channel of a target device with a second role accessed by the electronic device, wherein the second role is an access point role or a group owner role;
determining a channel to be detected according to the initial working channel, wherein the channel to be detected is located in a preset bandwidth range corresponding to the initial working channel;
acquiring the sum of the number of the devices with the second role working on the initial working channel and the channel to be detected in the environment;
acquiring channel idle parameters of the initial working channel and the channel to be detected;
acquiring the received signal strength of the target equipment accessed by the electronic equipment;
if the sum of the number is smaller than or equal to a preset first threshold value, the channel idle parameter meets a first condition, and the received signal strength of the target device is larger than or equal to a preset second threshold value, determining a target channel, and performing Wi-Fi communication between the electronic device and the target device through the target channel, wherein the bandwidth of the target channel is larger than that of the initial working channel.
In an embodiment, when the processor 603 performs acquiring the channel idle parameters of the initial working channel and the channel to be detected, the following steps may be performed: scanning the initial working channel and the channel to be detected, and acquiring channel idle time and channel scanning time of each channel during scanning; calculating the channel idle ratio of each channel according to the channel idle time and the channel scanning time of each channel, wherein the channel idle ratio is the ratio of the channel idle time to the channel scanning time; determining a channel idle ratio as a channel idle parameter of each of the initial working channel and the channel to be detected;
then, when the processor 603 executes that the channel idle parameter satisfies the first condition, it may perform: and when the channel idle ratio of each channel in the initial working channel and the channel to be detected is greater than or equal to a preset third threshold value, determining that the channel idle parameters meet a first condition.
In one embodiment, the processor 603 may further perform: calculating an average channel idle ratio of the initial working channel and the channel to be detected, wherein the average channel idle ratio is another parameter in the channel idle parameters;
then, when the channel idle ratio of each of the initial working channel and the channel to be detected is greater than or equal to the preset third threshold and the channel idle parameter is determined to satisfy the first condition, the processor 603 may perform: and when the channel idle ratio of each channel in the initial working channel and the channel to be detected is greater than or equal to a preset third threshold value and the average channel idle ratio is greater than or equal to a preset fourth threshold value, determining that the channel idle parameters meet a first condition.
In an embodiment, when the processor 603 determines the channel to be detected according to the initial working channel, the following steps may be performed: acquiring a mode that the target equipment accessed by the electronic equipment uses a preset bandwidth on the initial working channel, wherein the mode is one of an upward superposition channel and a downward superposition channel; and determining a channel to be detected according to the mode that the target equipment uses a preset bandwidth on the initial working channel and the initial working channel.
In one embodiment, the preset bandwidth is a bandwidth of 40MHz, and the target device uses the preset bandwidth on the initial working channel as a downward superposition channel; when the processor 603 determines a channel to be detected according to the mode that the target device uses the preset bandwidth on the initial working channel and the initial working channel, the processor may perform: determining 8 continuous channels including the initial operating channel as a first object channel; and determining other channels except the initial working channel in the first object channel as channels to be detected, wherein the number of the channels in the channels to be detected, which are lower than the initial working channel, is greater than the number of the channels in which the channels are higher than the initial working channel.
In one embodiment, the preset bandwidth is a bandwidth of 40MHz, and the target device uses the preset bandwidth on the initial working channel as an upward superposition channel; the processor 603, when determining the channel to be detected according to the mode and the initial working channel, may perform: determining 8 continuous channels including the initial working channel as a second object channel; and determining other channels except the initial working channel in the second object channel as channels to be detected, wherein the number of the channels in the channels to be detected, which are lower than the initial working channel, is less than the number of the channels in the channels to be detected, which are higher than the initial working channel.
In an embodiment, when the processor 603 performs the manner of acquiring that the target device accessed by the electronic device uses a preset bandwidth on the initial operating channel, the method may perform: acquiring beacon data messages of the target equipment accessed by the electronic equipment; and acquiring a mode that the target equipment uses a preset bandwidth on the initial working channel from the beacon data message.
Referring to fig. 11, fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
The electronic device 700 may include a Wi-Fi module 701, a memory 702, a processor 703, and the like. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 11 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. The electronic device 700 may be a device having a second role that is an access point role or a group owner role.
The Wi-Fi module 701 may be used to implement Wi-Fi functionality.
The memory 702 may be used to store applications and data. Memory 702 stores applications containing executable code. The application programs may constitute various functional modules. The processor 703 executes various functional applications and data processing by running an application program stored in the memory 702.
The processor 703 is a control center of the electronic device, connects various parts of the entire electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 702 and calling data stored in the memory 702, thereby integrally monitoring the electronic device.
In this embodiment, the processor 703 in the electronic device loads the executable code corresponding to the processes of one or more application programs into the memory 702 according to the following instructions, and the processor 703 runs the application programs stored in the memory 702, so as to execute:
determining an initial operating channel of the electronic device;
determining a channel to be detected according to the initial working channel, wherein the channel to be detected is located in a preset bandwidth range corresponding to the initial working channel;
acquiring the sum of the number of the devices with the second role working on the initial working channel and the channel to be detected in the environment;
acquiring channel idle parameters of the initial working channel and the channel to be detected;
acquiring the sum of the received signal strengths of other devices with the second role, which work on the initial working channel and the channel to be detected in the environment;
if the sum of the number is smaller than or equal to a preset first threshold value, the channel idle parameter meets a first condition, and the sum of the received signal strengths of the other devices with the second roles is smaller than or equal to a preset fifth threshold value, determining a target channel, and performing Wi-Fi communication between the electronic device and the device with the first role connected with the electronic device through the target channel, wherein the bandwidth of the target channel is larger than that of the initial working channel, and the first role is a workstation role or a group client role.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the device control method, and are not described again here.
The apparatus control device provided in the embodiment of the present application and the apparatus control method in the above embodiment belong to the same concept, and any method provided in the apparatus control method embodiment may be run on the apparatus control device, and a specific implementation process thereof is described in the apparatus control method embodiment in detail, and is not described herein again.
It should be noted that, for the apparatus control method described in the embodiment of the present application, it may be understood by those skilled in the art that all or part of the process of implementing the apparatus control method described in the embodiment of the present application may be implemented by controlling related hardware through a computer program, where the computer program may be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and during the execution, the process of implementing the apparatus control method may include the process of the embodiment of the apparatus control method. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the device control apparatus according to the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer-readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The above detailed description is provided for a device control method, apparatus, storage medium, and electronic device provided in the embodiments of the present application, and specific examples are applied herein to explain the principles and implementations of the present application, and the descriptions of the above embodiments are only used to help understand the method and core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (20)

  1. An apparatus control method applied to an electronic apparatus, wherein the electronic apparatus is an apparatus having a first role, and the first role is a workstation role or a group client role, the method comprising:
    determining an initial working channel of a target device with a second role accessed by the electronic device, wherein the second role is an access point role or a group owner role;
    determining a channel to be detected according to the initial working channel, wherein the channel to be detected is located in a preset bandwidth range corresponding to the initial working channel;
    acquiring the sum of the number of the devices with the second role working on the initial working channel and the channel to be detected in the environment;
    acquiring channel idle parameters of the initial working channel and the channel to be detected;
    acquiring the received signal strength of the target equipment accessed by the electronic equipment;
    if the sum of the number is smaller than or equal to a preset first threshold value, the channel idle parameter meets a first condition, and the received signal strength of the target device is larger than or equal to a preset second threshold value, determining a target channel, and performing Wi-Fi communication between the electronic device and the target device through the target channel, wherein the bandwidth of the target channel is larger than that of the initial working channel.
  2. The device control method according to claim 1, wherein the obtaining of the channel idle parameters of the initial working channel and the channel to be detected comprises:
    scanning the initial working channel and the channel to be detected, and acquiring channel idle time and channel scanning time of each channel during scanning;
    calculating the channel idle ratio of each channel according to the channel idle time and the channel scanning time of each channel, wherein the channel idle ratio is the ratio of the channel idle time to the channel scanning time;
    determining a channel idle ratio as a channel idle parameter of each of the initial working channel and the channel to be detected;
    the channel idle parameter satisfies a first condition, including: and when the channel idle ratio of each channel in the initial working channel and the channel to be detected is greater than or equal to a preset third threshold value, determining that the channel idle parameters meet a first condition.
  3. The device control method according to claim 2, wherein the method further comprises:
    calculating an average channel idle ratio of the initial working channel and the channel to be detected, wherein the average channel idle ratio is another channel idle parameter;
    when the channel idle ratio of each channel in the initial working channel and the channel to be detected is greater than or equal to a preset third threshold, determining that the channel idle parameters meet a first condition, including: and when the channel idle ratio of each channel in the initial working channel and the channel to be detected is greater than or equal to a preset third threshold value, and the average channel idle ratio is greater than or equal to a preset fourth threshold value, determining that the channel idle parameters meet a first condition.
  4. The device control method according to claim 1, wherein determining the channel to be detected according to the initial operating channel comprises:
    acquiring a mode that the target equipment accessed by the electronic equipment uses a preset bandwidth on the initial working channel, wherein the mode is one of an upward superposition channel and a downward superposition channel;
    and determining a channel to be detected according to the mode that the target equipment uses a preset bandwidth on the initial working channel and the initial working channel.
  5. The device control method according to claim 4, wherein the preset bandwidth is a bandwidth of 40MHz, and the target device uses the preset bandwidth on the initial operating channel in a manner of a downward superposition channel;
    determining a channel to be detected according to a mode that the target device uses a preset bandwidth on the initial working channel and the initial working channel, wherein the determining comprises the following steps:
    determining 8 continuous channels including the initial working channel as a first object channel;
    and determining other channels except the initial working channel in the first object channel as channels to be detected, wherein the number of the channels, which are lower than the initial working channel, in the channels to be detected is greater than the number of the channels, which are higher than the initial working channel, in the channels to be detected.
  6. The device control method according to claim 4, wherein the preset bandwidth is a bandwidth of 40MHz, and the target device uses the preset bandwidth on the initial operating channel in an upward superposition channel;
    determining a channel to be detected according to the mode and the initial working channel, wherein the determining comprises the following steps:
    determining 8 continuous channels including the initial working channel as a second object channel;
    and determining other channels except the initial working channel in the second object channel as channels to be detected, wherein the number of the channels in the channels to be detected, which are lower than the initial working channel, is less than the number of the channels in the channels to be detected, which are higher than the initial working channel.
  7. The device control method according to claim 4, wherein the acquiring of the manner in which the target device accessed by the electronic device uses a preset bandwidth on the initial operating channel comprises:
    acquiring beacon data messages of the target equipment accessed by the electronic equipment;
    and acquiring a mode that the target equipment uses a preset bandwidth on the initial working channel from the beacon data message.
  8. An apparatus control method applied to an electronic apparatus, wherein the electronic apparatus is an apparatus having a second role, and the second role is an access point role or a group owner role, and the method includes:
    determining an initial working channel of the electronic equipment;
    determining a channel to be detected according to the initial working channel, wherein the channel to be detected is located in a preset bandwidth range corresponding to the initial working channel;
    acquiring the sum of the number of the devices with the second role working on the initial working channel and the channel to be detected in the environment;
    acquiring channel idle parameters of the initial working channel and the channel to be detected;
    acquiring the sum of the received signal strengths of other devices with the second role, which work on the initial working channel and the channel to be detected in the environment;
    if the sum of the number is smaller than or equal to a preset first threshold value, the channel idle parameter meets a first condition, and the sum of the received signal strengths of the other devices with the second roles is smaller than or equal to a preset fifth threshold value, determining a target channel, and performing Wi-Fi communication between the electronic device and the device with the first role connected with the electronic device through the target channel, wherein the bandwidth of the target channel is larger than that of the initial working channel, and the first role is a workstation role or a group client role.
  9. An apparatus for controlling a device, applied to an electronic device, wherein the electronic device is a device having a first role, and the first role is a workstation role or a group client role, the apparatus comprising:
    the first determining module is used for determining an initial working channel of a target device with a second role accessed by the electronic device, wherein the second role is an access point role or a group owner role;
    the second determining module is used for determining a channel to be detected according to the initial working channel, wherein the channel to be detected is located in a preset bandwidth range corresponding to the initial working channel;
    a first obtaining module, configured to obtain a sum of the number of devices having the second role and working on the initial working channel and the channel to be detected in an environment;
    a second obtaining module, configured to obtain channel idle parameters of the initial working channel and the channel to be detected;
    a third obtaining module, configured to obtain a received signal strength of the target device that the electronic device accesses;
    a first processing module, configured to determine a target channel and perform Wi-Fi communication between the electronic device and the target device through the target channel if it is detected that the sum of the numbers is smaller than or equal to a preset first threshold, the channel idle parameter meets a first condition, and the received signal strength of the target device is greater than or equal to a preset second threshold, where a bandwidth of the target channel is greater than a bandwidth of the initial working channel.
  10. The device control apparatus of claim 9, wherein the second obtaining means is configured to: scanning the initial working channel and the channel to be detected, and acquiring channel idle time and channel scanning time of each channel during scanning; calculating the channel idle ratio of each channel according to the channel idle time and the channel scanning time of each channel, wherein the channel idle ratio is the ratio of the channel idle time to the channel scanning time; determining a channel idle ratio as a channel idle parameter of each channel in the initial working channel and the channel to be detected;
    the first processing module is configured to: and when the channel idle ratio of each channel in the initial working channel and the channel to be detected is greater than or equal to a preset third threshold value, determining that the channel idle parameters meet a first condition.
  11. An apparatus for controlling a device, applied to an electronic device, wherein the electronic device is a device having a second role, and the second role is an access point role or a group owner role, the apparatus comprising:
    a third determining module, configured to determine an initial operating channel of the electronic device;
    a fourth determining module, configured to determine, according to the initial working channel, a channel to be detected, where the channel to be detected is located within a preset bandwidth range corresponding to the initial working channel;
    a fourth obtaining module, configured to obtain a sum of the number of devices having the second role and working on the initial working channel and the channel to be detected in an environment;
    a fifth obtaining module, configured to obtain channel idle parameters of the initial working channel and the channel to be detected;
    a sixth obtaining module, configured to obtain a sum of received signal strengths of other devices having the second role and operating on the initial operating channel and the channel to be detected in an environment;
    a second processing module, configured to determine a target channel and perform Wi-Fi communication between the electronic device and a device having a first role connected to the electronic device through the target channel if it is detected that the sum of the numbers is smaller than or equal to a preset first threshold, the channel idle parameter meets the first condition, and the sum of received signal strengths of the other devices having the second role is smaller than or equal to a preset fifth threshold, where a bandwidth of the target channel is greater than a bandwidth of the initial working channel, and the first role is a workstation role or a group client role.
  12. A storage medium having stored thereon a computer program, wherein the computer program, when executed on a computer, causes the computer to perform the method of any one of claims 1 to 7 or to perform the method of claim 8.
  13. An electronic device comprising a memory, a processor, wherein the electronic device is a device having a first role, the first role being a workstation role or a group client role, the processor is configured to perform, by invoking a computer program stored in the memory:
    determining an initial working channel of a target device with a second role accessed by the electronic device, wherein the second role is an access point role or a group owner role;
    determining a channel to be detected according to the initial working channel, wherein the channel to be detected is located in a preset bandwidth range corresponding to the initial working channel;
    acquiring the sum of the number of the devices with the second role working on the initial working channel and the channel to be detected in the environment;
    acquiring channel idle parameters of the initial working channel and the channel to be detected;
    acquiring the received signal strength of the target equipment accessed by the electronic equipment;
    if the sum of the number is smaller than or equal to a preset first threshold value, the channel idle parameter meets a first condition, and the received signal strength of the target device is larger than or equal to a preset second threshold value, determining a target channel, and performing Wi-Fi communication between the electronic device and the target device through the target channel, wherein the bandwidth of the target channel is larger than that of the initial working channel.
  14. The electronic device of claim 13, wherein the processor is configured to perform:
    scanning the initial working channel and the channel to be detected, and acquiring channel idle time and channel scanning time of each channel during scanning;
    calculating the channel idle ratio of each channel according to the channel idle time and the channel scanning time of each channel, wherein the channel idle ratio is the ratio of the channel idle time to the channel scanning time;
    determining a channel idle ratio as a channel idle parameter of each channel in the initial working channel and the channel to be detected;
    and when the channel idle ratio of each channel in the initial working channel and the channel to be detected is greater than or equal to a preset third threshold value, determining that the channel idle parameters meet a first condition.
  15. The electronic device of claim 14, wherein the processor is configured to perform:
    calculating an average channel idle ratio of the initial working channel and the channel to be detected, wherein the average channel idle ratio is another channel idle parameter;
    and when the channel idle ratio of each channel in the initial working channel and the channel to be detected is greater than or equal to a preset third threshold value, and the average channel idle ratio is greater than or equal to a preset fourth threshold value, determining that the channel idle parameters meet a first condition.
  16. The electronic device of claim 13, wherein the processor is configured to perform:
    acquiring a mode that the target equipment accessed by the electronic equipment uses a preset bandwidth on the initial working channel, wherein the mode is one of an upward superposition channel and a downward superposition channel;
    and determining a channel to be detected according to the mode that the target equipment uses a preset bandwidth on the initial working channel and the initial working channel.
  17. The electronic device of claim 16, wherein the predetermined bandwidth is a bandwidth of 40MHz, and the target device uses the predetermined bandwidth on the initial operating channel as a downward superposition channel; the processor is configured to perform:
    determining 8 continuous channels including the initial working channel as a first object channel;
    and determining other channels except the initial working channel in the first object channel as channels to be detected, wherein the number of the channels, which are lower than the initial working channel, in the channels to be detected is greater than the number of the channels, which are higher than the initial working channel, in the channels to be detected.
  18. The electronic device of claim 16, wherein the preset bandwidth is a bandwidth of 40MHz, and the target device uses the preset bandwidth on the initial operating channel as an add-on channel; the processor is configured to perform:
    determining 8 continuous channels including the initial working channel as a second object channel;
    and determining other channels except the initial working channel in the second object channel as channels to be detected, wherein the number of the channels in the channels to be detected, which are lower than the initial working channel, is less than the number of the channels in the channels to be detected, which are higher than the initial working channel.
  19. The electronic device of claim 16, wherein the processor is configured to perform:
    acquiring beacon data messages of the target equipment accessed by the electronic equipment;
    and acquiring a mode that the target equipment uses a preset bandwidth on the initial working channel from the beacon data message.
  20. An electronic device comprising a memory, a processor, wherein the electronic device is a device having a second role, the second role being an access point role or a group owner role, the processor, by invoking a computer program stored in the memory, is configured to perform:
    determining an initial working channel of the electronic equipment;
    determining a channel to be detected according to the initial working channel, wherein the channel to be detected is located in a preset bandwidth range corresponding to the initial working channel;
    acquiring the sum of the number of the devices with the second role working on the initial working channel and the channel to be detected in the environment;
    acquiring channel idle parameters of the initial working channel and the channel to be detected;
    acquiring the sum of the received signal strengths of other devices with the second role working on the initial working channel and the channel to be detected in the environment;
    if the sum of the number is detected to be smaller than or equal to a preset first threshold value, the channel idle parameter meets a first condition, and the sum of the received signal strengths of the other devices with the second roles is detected to be smaller than or equal to a preset fifth threshold value, a target channel is determined, and Wi-Fi communication between the electronic device and the devices with the first roles connected with the electronic device is carried out through the target channel, wherein the bandwidth of the target channel is larger than that of the initial working channel, and the first roles are workstation roles or group client roles.
CN201980102260.0A 2019-12-24 2019-12-24 Device control method, device, storage medium and electronic device Pending CN114788349A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/128016 WO2021128015A1 (en) 2019-12-24 2019-12-24 Device control method and apparatus, and storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN114788349A true CN114788349A (en) 2022-07-22

Family

ID=76575041

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201980102260.0A Pending CN114788349A (en) 2019-12-24 2019-12-24 Device control method, device, storage medium and electronic device

Country Status (2)

Country Link
CN (1) CN114788349A (en)
WO (1) WO2021128015A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116684943A (en) * 2023-04-27 2023-09-01 东莞恒泰数字技术有限公司 Multi-device access method, system, device and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103889011A (en) * 2014-04-09 2014-06-25 上海斐讯数据通信技术有限公司 Wireless bandwidth selecting method and system based on WLAN wireless bandwidth assessment
CN106231676A (en) * 2016-07-29 2016-12-14 乐视控股(北京)有限公司 A kind of method and system optimizing WiFi connection
CN109951858A (en) * 2017-12-21 2019-06-28 深圳Tcl新技术有限公司 Network optimized approach, intelligent terminal and storage medium based on WIFI communication
CN110545555A (en) * 2019-09-09 2019-12-06 Oppo广东移动通信有限公司 wifi connection establishment method and related equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7940794B2 (en) * 2004-12-22 2011-05-10 Atheros Communications, Inc. Dynamic channel bandwidth management
CN106255214A (en) * 2016-07-29 2016-12-21 乐视控股(北京)有限公司 A kind of channel switching method and device
CN107872846B (en) * 2016-09-28 2024-03-19 华为技术有限公司 Data transmission method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103889011A (en) * 2014-04-09 2014-06-25 上海斐讯数据通信技术有限公司 Wireless bandwidth selecting method and system based on WLAN wireless bandwidth assessment
CN106231676A (en) * 2016-07-29 2016-12-14 乐视控股(北京)有限公司 A kind of method and system optimizing WiFi connection
CN109951858A (en) * 2017-12-21 2019-06-28 深圳Tcl新技术有限公司 Network optimized approach, intelligent terminal and storage medium based on WIFI communication
CN110545555A (en) * 2019-09-09 2019-12-06 Oppo广东移动通信有限公司 wifi connection establishment method and related equipment

Also Published As

Publication number Publication date
WO2021128015A1 (en) 2021-07-01

Similar Documents

Publication Publication Date Title
US8559878B2 (en) Wireless communication system, wireless communication apparatus, wireless communication method, and non-transitory computer readable recording medium
US9369858B2 (en) Wi-Fi P2P communication terminal device and communication method thereof
US20200145890A1 (en) Channel switching method and apparatus, and communication device
CN109379498B (en) Electromagnetic interference control method and related device
CN106230492B (en) Terminal antenna switching method and device and mobile terminal
EP3920572B1 (en) Measurement gap configuration method, apparatus, device, terminal and system
US20130058310A1 (en) Apparatus and method for setting channel in wireless network
EP3078215A1 (en) Methods and apparatus for neighborhood area network detection
CN108055687B (en) Wireless network connection method and device and terminal equipment
US9491658B2 (en) Systems and methods for determining congestion in wireless networks
CN107222937B (en) Data transmission method, device and terminal
CN112867069B (en) Interference processing method and device, storage medium and electronic equipment
CN112399484A (en) Data transmission method, device, storage medium and electronic equipment
US11956817B2 (en) Communication method, apparatus and system in unlicensed spectrums
US20230300703A1 (en) Cell switching method and apparatus, storage medium, and electronic device
KR20190117628A (en) Network connection method and device
CN108337719B (en) Wireless network scanning method and device, terminal equipment and storage medium
CN108307485B (en) Wireless network scanning method and device, terminal equipment and storage medium
CN114788349A (en) Device control method, device, storage medium and electronic device
CN111083764B (en) Device control method, device, storage medium and electronic device
CN108337715B (en) Wireless network connection method, device, terminal equipment and storage medium
CN112351461A (en) WiFi network switching method, device, terminal and storage medium
US20210258083A1 (en) Method for Electromagnetic Interference Control and Related Devices
CN108337718B (en) Wireless network scanning method and device, terminal equipment and storage medium
CN112911665B (en) Connection method of access point and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination