Communication control method and system, and related apparatus
By comparing the multi-frequency multi-channel switching capabilities of the Wi-Fi chips of the first device and the second device, the devices with weak multi-frequency multi-channel switching capabilities are preferred to maintain the same frequency and co-channel state, and the multi-frequency Wi-Fi chip is solved by solving the problem of multi-frequency and multi-channel switching capabilities. Communication quality problems caused by insufficient multi-channel switching capabilities achieve a more stable communication experience.
Patent Information
- Application Number
- PCT/CN2024/108500
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-08-01
- Filing Date
- 2024-07-30
- Publication Date
- 2025-02-06
AI Technical Summary
In wireless communication, the multi-frequency and multi-channel switching capability of the Wi-Fi chip is insufficient, resulting in the channel switching time when the device communicates with multiple devices at the same time, which may lead to the failure of the establishment of communication services or poor user experience.
By comparing the multi-frequency multi-channel switching capabilities of the Wi-Fi chips of the first device and the second device, devices with weak multi-channel switching capabilities are preferred to maintain the same frequency and co-channel state in the same frequency and co-channel state, and frequent channel switching is avoided.
The communication quality of devices with weak multi-frequency and multi-channel switching capabilities is effectively improved, and communication failures and user experience problems caused by channel switching are reduced.
Smart Images

Figure CN2024108500_06022025_PF_FP_ABST
Abstract
Description
Communication control method, system and related devices
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on August 1, 2023, with application number 202310960849.2, and priority to the Chinese patent application entitled “Communication Control Methods, Systems and Related Devices”, all contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of terminals and communication technologies, and in particular to communication control methods, systems and related devices. Background Art
[0003] With the continuous development of wireless communications, a single Wi-Fi chip can connect to multiple antennas, allowing electronic devices to use these antennas simultaneously to communicate wirelessly with different communication devices. For example, an electronic device can use one antenna to communicate with a router to access the internet, and another antenna to communicate with a computer to mirror the screen.
[0004] However, when electronic devices use multiple antennas from the same Wi-Fi chip to communicate simultaneously, different antennas may communicate through different channels. In this case, the Wi-Fi chip may need to time-share these multiple antennas to switch channels and communicate with multiple devices simultaneously. If the Wi-Fi chip has poor multi-frequency and multi-channel switching capabilities, excessive time is spent switching channels, and the duration of staying on a single channel is too long, this may cause communication service establishment to fail, or even if establishment is successful, result in a poor user experience.
[0005] Summary of the Invention
[0006] The present application provides a communication control method, system and related devices, which realize the control of a device with weak multi-frequency and multi-channel switching capabilities to communicate with multiple devices in the same frequency and same channel state, thereby ensuring the communication quality of the device.
[0007] In a first aspect, an embodiment of the present application provides a communication control method, which is applied to a first device. The method includes: the first device communicates with a third device on a first channel through a first Wi-Fi chip; when the multi-frequency and multi-channel switching capability of the first Wi-Fi chip is weaker than the multi-frequency and multi-channel switching capability of a second Wi-Fi chip, the first device establishes a Wi-Fi connection with a second device based on the first channel, the second device is a device that communicates with a fourth device on a second channel through a second Wi-Fi chip, and the Wi-Fi connection is established based on the first Wi-Fi chip and the second Wi-Fi chip; and the first device communicates with the second device based on the Wi-Fi connection.
[0008] In implementing the communication control method provided in the first aspect, when a first device and a second device need to establish a Wi-Fi connection, the first device may determine the channel to be used for establishing the Wi-Fi connection between the first device and the second device based on the channels used by the Wi-Fi connections already established by the first device and the second device, respectively, and the multi-frequency and multi-channel switching capabilities of the Wi-Fi chips of the first device and the second device. Priority is given to ensuring that devices with weaker multi-frequency and multi-channel switching capabilities are in the same frequency and channel state, thereby ensuring the communication quality of the devices as much as possible.
[0009] In conjunction with the first aspect, in some possible implementations, before the first device communicates with the second device based on the Wi-Fi connection, the method further includes: when the multi-frequency and multi-channel switching capability of the first Wi-Fi chip is stronger than the multi-frequency and multi-channel switching capability of the second Wi-Fi chip, the first device establishing a Wi-Fi connection with the second device based on the second channel.
[0010] That is, the first device can compare the multi-frequency and multi-channel capabilities of the Wi-Fi chips of the first device and the second device, and select a channel used by one device from the first device and the second device as the channel used by the first device and the second device to establish a Wi-Fi connection, thereby giving priority to ensuring the Wi-Fi connection established between the device with weak multi-frequency and multi-channel switching capabilities and multiple devices.
[0011] In a second aspect, an embodiment of the present application further provides a communication control method, which is applied to a first device, the method including: the first device communicates with a third device through a first Wi-Fi chip; when the multi-frequency and multi-channel switching capability of the first Wi-Fi chip is weaker than the multi-frequency and multi-channel switching capability of the second Wi-Fi chip, the first device disconnects the connection used for communication with the third device and establishes a Wi-Fi connection with the second device, the second device is a device that communicates with a fourth device through a second Wi-Fi chip, and the Wi-Fi connection is established based on the first Wi-Fi chip and the second Wi-Fi chip; the first device communicates with the second device based on the Wi-Fi connection.
[0012] In implementing the communication control method provided in the second aspect, when a first device and a second device need to establish a Wi-Fi connection, the first device can determine which Wi-Fi connection to disconnect between the first and second devices based on the Wi-Fi connections already established by the first and second devices, respectively, and the multi-frequency and multi-channel switching capabilities of the Wi-Fi chips of the first and second devices. This allows a device with a weaker multi-frequency and multi-channel switching capability to maintain only the Wi-Fi connection between the first and second devices, preventing the device with the weaker multi-frequency and multi-channel switching capability from switching back and forth between multiple channels. This prioritizes ensuring the successful establishment of the Wi-Fi connection between the first and second devices and the communication quality between the first and second devices.
[0013] In combination with the second aspect, in some possible implementations, the first device communicates with the third device via a 2.4 GHz frequency band.
[0014] That is to say, when the multi-frequency and multi-channel switching capability of the first device is weaker than that of the second device, and the Wi-Fi connection established by the first device uses the 2.4 GHz frequency band, the Wi-Fi connection using the 2.4 GHz frequency band established between the first device and the third device can be disconnected, so that the first device only exists in the Wi-Fi connection between the second device.
[0015] This is because if a device with weak multi-band and multi-channel switching capabilities has already established a Wi-Fi connection in the 2.4GHz band, when reestablishing a Wi-Fi connection, the following two situations may occur:
[0016] 1) The re-established Wi-Fi connection uses a channel in the 2.4GHz band
[0017] In this case, due to the large interference in the 2.4GHz frequency band, even if a device with weak multi-frequency and multi-channel switching capabilities can communicate with multiple devices in the same frequency and channel state, communication may fail due to channel interference.
[0018] 2) The re-established Wi-Fi connection uses a channel in the 5GHz band
[0019] In this case, the device with weak multi-frequency and multi-channel switching capability needs to communicate with multiple devices in a different frequency and different channel state. However, due to the weak multi-frequency and multi-channel switching capability of the device, there may be a large packet loss rate, resulting in the failure to establish a Wi-Fi connection between the first device and the second device, or even if the connection is successfully established, it may be disconnected due to poor communication quality.
[0020] Therefore, by further considering whether the Wi-Fi connection established by the device with weak multi-frequency and multi-channel switching capabilities is using the 2.4 GHz frequency band, a targeted approach can be adopted to disconnect the device's established Wi-Fi connection in certain special communication situations, prioritizing the Wi-Fi connection that needs to be established between the first and second devices. This allows for comprehensive consideration of various factors to achieve the best possible solution and maximize communication quality for the devices.
[0021] With reference to the second aspect, in some possible implementations, the first device establishing a Wi-Fi connection with the second device specifically includes: the first device establishing a Wi-Fi connection with the second device based on a 5 GHz frequency band.
[0022] The 5GHz band has a wider signal bandwidth, less interference, and more stable network speed, making it more suitable for communication between the first and second devices. For example, if a distributed service exists between the first and second devices, the 5GHz band can better meet the high speed and low interference requirements of the distributed service.
[0023] In conjunction with the second aspect, in some possible implementations, after the first device establishes a Wi-Fi connection with the second device, the method further includes: the first device transmitting network data through the second device.
[0024] Since the first device has disconnected the communication connection with the third device, if the first device has an Internet connection requirement, the first device can be connected to the Internet through the second device to meet the Internet connection requirement of the first device.
[0025] In combination with the second aspect, in some possible implementations, before the first device transmits network data through the second device, the method further includes: the first device displays first prompt information, and the first prompt information is used to prompt the user that the first device will connect to the network through the second device.
[0026] That is, before the first device transmits network data through the second device, the first device may display a prompt message to prompt the user that the first device is connecting to the network through the second device.
[0027] In combination with the first aspect and the second aspect, in some possible implementations, before the first device establishes a Wi-Fi connection with the second device, the method further includes: the first device receiving the multi-frequency and multi-channel switching capability of the second Wi-Fi chip sent by the second device.
[0028] That is, before the first device establishes a Wi-Fi connection with the second device, the first device may first obtain the multi-frequency and multi-channel switching capabilities of the Wi-Fi chip of the second device, and determine how to establish the Wi-Fi connection based on the multi-frequency and multi-channel switching capabilities of the Wi-Fi chips of the first device and the second device.
[0029] In combination with the first and second aspects, in some possible implementations, before the first device receives the multi-frequency, multi-channel switching capabilities of the second Wi-Fi chip sent by the second device, the method further includes: the first device sending first broadcast information, where the multi-frequency, multi-channel switching capabilities of the first Wi-Fi chip are information returned to the first device by the second device after receiving the first broadcast information; or the first device receiving the multi-frequency, multi-channel switching capabilities of the second Wi-Fi chip sent by the second device, specifically including: the first device receiving second broadcast information sent by the second device, where the second broadcast information carries the multi-frequency, multi-channel switching capabilities of the second Wi-Fi chip.
[0030] That is, the first device may obtain the multi-frequency and multi-channel switching capability of the second device when the second device replies to the broadcast, or the first device may also obtain the multi-frequency and multi-channel switching capability of the second device through the broadcast sent by the second device.
[0031] In combination with the first and second aspects, in some possible implementations, before the first device receives the multi-frequency, multi-channel switching capabilities of the second Wi-Fi chip sent by the second device, the method further includes: the first device establishing a first connection with the second device; and the first device receiving the multi-frequency, multi-channel switching capabilities of the second Wi-Fi chip sent by the second device, specifically including: the first device receiving the multi-frequency, multi-channel switching capabilities of the second Wi-Fi chip sent by the second device through the first connection.
[0032] Exemplarily, the first connection may refer to a BLE connection, a USB connection, a classic Bluetooth connection, an NFC connection, a Zigbee connection, and the like.
[0033] That is, after establishing a first connection with the second device, the first device may also obtain the multi-frequency and multi-channel switching capability of the second device through the first connection.
[0034] In combination with the first and second aspects, in some possible implementations, before the first device establishes a Wi-Fi connection with the second device, the method further includes: the first device receiving connection information of the second device sent by the second device, where the connection information indicates a channel or frequency band used by the second device when communicating with other devices.
[0035] That is, before establishing a Wi-Fi connection with the second device, the first device can obtain the Wi-Fi connection status of the second device. In this way, if the multi-frequency and multi-channel switching capability of the second device is weaker than that of the first device, the first device can determine the frequency band used for the Wi-Fi connection established between the first and second devices based on the connection status of the second device, or determine whether to disconnect the Wi-Fi connection established by the second device.
[0036] In combination with the first and second aspects, in some possible implementations, the Wi-Fi connection includes any one of the following: a Wi-Fi communication connection using Apple's Wireless Direct AWDL technology, a Wi-Fi communication connection using Huawei's Multi-Link Direct HML protocol, and a Wi-Fi communication connection using the Wi-Fi end-to-end P2P protocol.
[0037] In a third aspect, an embodiment of the present application provides a communication control method, which is applied to a communication system including a first device and a second device. The method includes: the first device communicates with a third device on a first channel through a first Wi-Fi chip; the second device communicates with a fourth device on a second channel through a second Wi-Fi chip; when the multi-frequency and multi-channel switching capability of the first Wi-Fi chip is weaker than the multi-frequency and multi-channel switching capability of the second Wi-Fi chip, the first device and the second device establish a Wi-Fi connection based on the first channel, and the Wi-Fi connection is established based on the first Wi-Fi chip and the second Wi-Fi chip; the first device and the second device communicate based on the Wi-Fi connection.
[0038] In implementing the communication control method provided in the third aspect, when a first device and a second device need to establish a Wi-Fi connection, the first device and the second device can negotiate the channel to be used for establishing the Wi-Fi connection between the first device and the second device based on the channels used by the Wi-Fi connections already established by the first device and the second device, and the multi-frequency and multi-channel switching capabilities of the Wi-Fi chips of the first device and the second device. Priority is given to ensuring that devices with weaker multi-frequency and multi-channel switching capabilities are in the same frequency and channel state, thereby ensuring the communication quality of the devices as much as possible.
[0039] Before the first device communicates with the second device based on the Wi-Fi connection, the method further includes: when the multi-frequency and multi-channel switching capability of the first Wi-Fi chip is stronger than the multi-frequency and multi-channel switching capability of the second Wi-Fi chip, the first device and the second device establish a Wi-Fi connection based on the first channel.
[0040] That is, the first device and the second device can compare the multi-frequency and multi-channel capabilities of the Wi-Fi chips of the first device and the second device, and select a channel used by one device from the first device and the second device as the channel used by the first device and the second device to establish a Wi-Fi connection, thereby giving priority to ensuring the Wi-Fi connection established between the device with weak multi-frequency and multi-channel switching capabilities and multiple devices.
[0041] In a fourth aspect, an embodiment of the present application provides a communication control method, characterized in that the method is applied to a communication system including a first device and a second device, the method including: the first device communicates with a third device through a first Wi-Fi chip; the second device communicates with a fourth device through a second Wi-Fi chip; when the multi-frequency and multi-channel switching capability of the first Wi-Fi chip is weaker than the multi-frequency and multi-channel switching capability of the second Wi-Fi chip, the first device disconnects the connection used for communication with the third device and establishes a Wi-Fi connection with the second device, the Wi-Fi connection being established based on the first Wi-Fi chip and the second Wi-Fi chip; the first device and the second device communicate based on the Wi-Fi connection.
[0042] In implementing the communication control method provided in the fourth aspect, when a first device and a second device need to establish a Wi-Fi connection, the first device and the second device can negotiate which Wi-Fi connection to disconnect in the first device and the second device based on the Wi-Fi connections already established by the first device and the second device, respectively, and the multi-frequency and multi-channel switching capabilities of the Wi-Fi chips of the first device and the second device. This allows a device with a weaker multi-frequency and multi-channel switching capability to maintain only the Wi-Fi connection between the first device and the second device, preventing the device with the weaker multi-frequency and multi-channel switching capability from switching back and forth between multiple channels. This prioritizes ensuring the successful establishment of the Wi-Fi connection between the first device and the second device and the communication quality between the first device and the second device.
[0043] In combination with the fourth aspect, in some possible implementations, the first device communicates with the third device via a 2.4 GHz frequency band.
[0044] Furthermore, by considering whether the Wi-Fi connection established by the device with weak multi-frequency and multi-channel switching capabilities is using the 2.4 GHz frequency band, a targeted approach can be adopted to disconnect the device's established Wi-Fi connection in certain special communication situations, prioritizing the Wi-Fi connection that needs to be established between the first and second devices. This allows for comprehensive consideration of various factors to ensure the best possible solution and maximize communication quality for the devices.
[0045] In conjunction with the fourth aspect, in some possible implementations, the first device and the second device establish a Wi-Fi connection, specifically including:
[0046] The first device establishes a Wi-Fi connection with the second device based on the 5 GHz frequency band.
[0047] The 5GHz band has a wider signal bandwidth, less interference, and more stable network speed, making it more suitable for communication between the first and second devices. For example, if a distributed service exists between the first and second devices, the 5GHz band can better meet the high speed and low interference requirements of the distributed service.
[0048] In conjunction with the fourth aspect, in some possible implementations, after the first device establishes a Wi-Fi connection with the second device, the method further includes: the first device transmitting network data through the second device.
[0049] Since the first device has disconnected the communication connection with the third device, if the first device has an Internet connection requirement, the first device can be connected to the Internet through the second device to meet the Internet connection requirement of the first device.
[0050] In combination with the fourth aspect, in some possible implementations, before the first device transmits network data through the second device, the method further includes: the first device displays a first prompt message, and the first prompt message is used to prompt the user that the first device will connect to the network through the second device.
[0051] That is, before the first device transmits network data through the second device, the first device may display a prompt message to prompt the user that the first device is connecting to the network through the second device.
[0052] In combination with the third aspect and the fourth aspect, in some possible implementations, before the first device establishes a Wi-Fi connection with the second device, the method further includes: the first device receiving the multi-frequency and multi-channel switching capability of the second Wi-Fi chip sent by the second device.
[0053] That is, before the first device establishes a Wi-Fi connection with the second device, the first device may first obtain the multi-frequency and multi-channel switching capabilities of the Wi-Fi chip of the second device, and determine how to establish the Wi-Fi connection based on the multi-frequency and multi-channel switching capabilities of the Wi-Fi chips of the first device and the second device.
[0054] In combination with the third and fourth aspects, in some possible implementations, before the first device receives the multi-frequency, multi-channel switching capabilities of the second Wi-Fi chip sent by the second device, the method further includes: the first device sending first broadcast information, where the multi-frequency, multi-channel switching capabilities of the first Wi-Fi chip are information returned to the first device by the second device after receiving the first broadcast information; or the first device receiving the multi-frequency, multi-channel switching capabilities of the second Wi-Fi chip sent by the second device, specifically including: the first device receiving second broadcast information sent by the second device, where the second broadcast information carries the multi-frequency, multi-channel switching capabilities of the second Wi-Fi chip.
[0055] That is, the first device may obtain the multi-frequency and multi-channel switching capability of the second device when the second device replies to the broadcast, or the first device may also obtain the multi-frequency and multi-channel switching capability of the second device through the broadcast sent by the second device.
[0056] In combination with the third aspect and the fourth aspect, in some possible implementations, before the first device receives the multi-frequency and multi-channel switching capabilities of the second Wi-Fi chip sent by the second device, the method further includes: the first device establishing a first connection with the second device; and the first device receiving the multi-frequency and multi-channel switching capabilities of the second Wi-Fi chip sent by the second device, specifically including: the first device receiving the multi-frequency and multi-channel switching capabilities of the second Wi-Fi chip sent by the second device through the first connection.
[0057] Exemplarily, the first connection may refer to a BLE connection, a USB connection, a classic Bluetooth connection, an NFC connection, a Zigbee connection, and the like.
[0058] That is, after establishing a first connection with the second device, the first device may also obtain the multi-frequency and multi-channel switching capability of the second device through the first connection.
[0059] In combination with the third aspect and the fourth aspect, in some possible implementations, before the first device establishes a Wi-Fi connection with the second device, the method further includes: the first device receiving connection information of the second device sent by the second device, where the connection information indicates a channel or frequency band used by the second device when communicating with other devices.
[0060] That is, before establishing a Wi-Fi connection with the second device, the first device can obtain the Wi-Fi connection status of the second device. In this way, if the multi-frequency and multi-channel switching capability of the second device is weaker than that of the first device, the first device can determine the frequency band used for the Wi-Fi connection established between the first and second devices based on the connection status of the second device, or determine whether to disconnect the Wi-Fi connection established by the second device.
[0061] In combination with the third and fourth aspects, in some possible implementations, the Wi-Fi connection includes any one of the following: a Wi-Fi communication connection using Apple's Wireless Direct AWDL technology, a Wi-Fi communication connection using Huawei's Multi-Link Direct HML protocol, and a Wi-Fi communication connection using the Wi-Fi end-to-end P2P protocol.
[0062] In a fifth aspect, an embodiment of the present application provides an electronic device comprising a memory, one or more processors, and one or more programs; when the one or more processors execute the one or more programs, the electronic device implements the method described in the first aspect or any possible implementation of the first aspect, the second aspect or any possible implementation of the second aspect.
[0063] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium comprising instructions, which, when executed on an electronic device, cause the electronic device to execute a method as described in the first aspect or any possible implementation of the first aspect, or the second aspect or any possible implementation of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] FIG1 is a schematic diagram of a communication system 1000 provided in an embodiment of the present application;
[0065] FIG2 is a schematic diagram of the structure of a Wi-Fi chip included in an electronic device 100 provided in an embodiment of the present application;
[0066] FIG3 is a schematic diagram of the principle of channel switching provided by an embodiment of the present application;
[0067] FIG4 is a flow chart of a communication control method provided in an embodiment of the present application;
[0068] FIG5 is a flow chart of another communication control method provided in an embodiment of the present application;
[0069] FIG6 is a schematic diagram of the hardware structure of an electronic device 500 provided in an embodiment of the present application;
[0070] FIG7 is a schematic diagram of the structure of the Wi-Fi chip provided in an embodiment of the present application;
[0071] FIG8 is a software structure block diagram of the electronic device 500 provided in an embodiment of the present application. DETAILED DESCRIPTION
[0072] The following is a clear and detailed description of the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship between related objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0073] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of the technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.
[0074] The term "user interface (UI)" in the following embodiments of this application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on an electronic device and finally presented as content that the user can recognize. The commonly used form of user interface is graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.
[0075] In order to better understand this solution, the following explains the relevant concepts involved in this application:
[0076] 1) Frequency band
[0077] Wireless communication refers to the transmission of information through electromagnetic waves across space. A frequency band refers to the frequency range of a continuous electromagnetic wave. Generally, wireless routers support two frequency bands: 2.4 GHz and 5 GHz.
[0078] The 2.4GHz band has a lower signal frequency, experiences less attenuation when propagating through air or obstacles, and has a longer transmission distance. However, the 2.4GHz band has a narrower signal bandwidth, resulting in a more crowded wireless environment and greater interference. The 5GHz band has a wider signal bandwidth, less interference, and offers stable network speeds. The 5GHz band can support higher wireless rates. However, the 5GHz band has a higher signal frequency, experiences greater attenuation when propagating through air or obstacles, and generally has a shorter coverage distance than the 2.4GHz band.
[0079] 2) Channel
[0080] Channels are a further division of frequency bands. A channel is the path through which signals travel within a communication system, consisting of the transmission medium through which signals travel from the transmitter to the receiver. According to the IEEE 802.11 protocol, the 2.4 GHz Wi-Fi band is divided into 13 overlapping channels: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, and 13. The 5 GHz Wi-Fi band is divided into 201 channels: 36, 149, 153, 157, 161, and 165.
[0081] 3) Since Wi-Fi devices are allowed to operate in both the 2.4 GHz and 5 GHz frequency bands, their concurrency modes can be divided into the following types based on the frequency bands they support:
[0082] Single band single concurrent (SBSC)
[0083] Dual-band single concurrent (DBSC)
[0084] Dual-band dual concurrent (DBDC)
[0085] Dual-band adaptive concurrent (DBAC)
[0086] In SBSC mode, Wi-Fi devices can only operate on a single frequency band, such as 2.4GHz or 5GHz. The Wi-Fi chip in the Wi-Fi device contains a complete set of pathways: 1 baseband processing module + 1 RF front-end.
[0087] In DBSC mode, the Wi-Fi chip in the Wi-Fi device contains two baseband processing modules and one radio frequency front-end, which can choose to operate in the 2.4 GHz frequency band or the 5 GHz frequency band.
[0088] In DBDC mode, the Wi-Fi chip in a Wi-Fi device contains two complete pathways: two baseband processing modules and two RF front-ends, allowing the Wi-Fi device to operate simultaneously on two frequency bands. Currently, these two pathways in DBDC mode can be implemented in two ways: one is to use two Wi-Fi chips to implement dual-band dual-transmission, allowing the Wi-Fi device to support two independent wireless networks simultaneously, achieving concurrent execution. This is known as simultaneous dual band (SDB). The other is to use a single Wi-Fi chip to implement dual-band dual-transmission, allowing the Wi-Fi device to achieve real simultaneous dual band (RSDB).
[0089] In DBAC mode, the Wi-Fi chip in a Wi-Fi device integrates only one radio frequency with two channels: one supporting 2.4 GHz and one supporting 5 GHz. During operation, the Wi-Fi chip dynamically switches between the 2.4 GHz and 5 GHz bands, achieving time-division multiplexing communication between the two bands. For details on how the Wi-Fi chip's channel switching works in DBAC mode, see Figures 2 and 3.
[0090] 4) Wi-Fi connection
[0091] In the embodiment of the present application, the Wi-Fi connection may include a Wi-Fi access point (AP) connection and a Wi-Fi high-speed connection.
[0092] Among them, the electronic device can establish a Wi-Fi AP connection with a wireless access point, such as a router. In this case, the electronic device can connect to the wireless network created by the wireless access point, receive the wireless signal of the wireless access point, and access the Internet or other network resources.
[0093] Wi-Fi high-speed connection can include any of the following: Wi-Fi communication connection using Apple wireless direct link (AWDL) technology, Wi-Fi communication connection using Huawei magneto link (HML) protocol, and Wi-Fi communication connection using Wi-Fi peer to peer (P2P) protocol.
[0094] For data exchange between two terminal devices, Wi-Fi high-speed connections enable direct connections between them, offering high communication rates, independent of the local area network, and without requiring additional processors on other devices. Each exchange only requires competing for a single air interface, resulting in high communication efficiency and well-suited for the business needs of distributed applications between devices. In contrast, with Wi-Fi AP connections, two terminal devices must be connected to the same router for data exchange to occur, and each exchange requires competing for two air interfaces. Data must pass through three devices, compromising data security.
[0095] In an embodiment of the present application, the electronic device can establish a high-speed Wi-Fi connection with other devices, such as mobile phones, computers, tablets and other terminal devices, to achieve direct communication between two or more devices and execute distributed services of the devices, such as cross-device file sharing services, cross-device screen projection services, cross-device drag services, etc., without going through a router.
[0096] 5) Same frequency and same channel
[0097] Co-frequency and co-channel communication means that when an electronic device uses two Wi-Fi channels to communicate with external devices, the two frequency bands and channels used are the same. For example, if a mobile phone is communicating wirelessly with a router and a computer simultaneously, and the mobile phone uses channel 149 in the 5GHz band to communicate with the router and the computer, the channel used to communicate with the computer is also channel 149 in the 5GHz band, then the mobile phone is in a co-frequency and co-channel communication state.
[0098] 6) Same frequency, different channels
[0099] Same-frequency, different-channel communication refers to the situation where an electronic device uses two Wi-Fi channels to communicate with external devices, using the same frequency band but different channels. For example, if a mobile phone is communicating wirelessly with a router and a computer simultaneously, using channel 1 in the 2.4GHz band for communication with the router and channel 6 in the 2.4GHz band for communication with the computer, the phone is now in a same-frequency, different-channel communication state.
[0100] 7) Different frequencies and channels
[0101] Different frequency and different channels means that when an electronic device uses two different Wi-Fi channels to communicate with external devices, the two frequency bands and channels used are different. For example, if a mobile phone is communicating wirelessly with a router and a computer simultaneously, the mobile phone uses channel 1 in the 2.4GHz band to communicate with the router, and channel 149 in the 5GHz band to communicate with the computer, then the mobile phone is in a different frequency and different channel communication state.
[0102] FIG1 is a schematic diagram of a communication system 1000 provided in an embodiment of the present application.
[0103] As shown in FIG1 , the communication system 1000 may include multiple electronic devices such as an electronic device 100 , an electronic device 200 , an electronic device 300 , and an electronic device 400 .
[0104] Among them, electronic devices 100 and 200 can refer to mobile phones, tablet computers, desktop computers, laptop computers, handheld computers, notebook computers, ultra-mobile personal computers (UMPCs), netbooks, as well as cellular phones, personal digital assistants (PDAs), augmented reality (AR) devices, virtual reality (VR) devices, artificial intelligence (AI) devices, wearable devices, vehicle-mounted devices, smart home devices and / or smart city devices, etc., and electronic devices 300 and 400 can refer to devices with routing functions, such as routers, three-layer switches, etc. Electronic devices 300 and 400 can provide wireless signal sources for other devices to connect to and provide wireless networks for other devices.
[0105] In the communication system 1000 shown in Figure 1, the electronic device 100 may refer to a mobile phone, the electronic device 200 may refer to a tablet, and the electronic device 300 and the electronic device 400 may refer to routers. Among them, the electronic device 100 can establish a Wi-Fi AP connection with the electronic device 300. For example, the electronic device 100 can perform Internet access services by establishing a Wi-Fi AP connection with the electronic device 300. The electronic device 200 can establish a Wi-Fi AP connection with the electronic device 400. For example, the electronic device 200 can perform Internet access services by connecting to the Wi-Fi AP established with the electronic device 400. In addition, the electronic device 100 can also establish a Wi-Fi high-speed connection with the electronic device 200. For example, the electronic device 100 and the electronic device 200 can realize distributed services such as cross-device file sharing and cross-device screen projection through the Wi-Fi high-speed connection.
[0106] It can be understood that in the communication system 1000 shown in Figure 1, the electronic device 300 and the electronic device 400 can be the same device, that is, the electronic device 100 and the electronic device 200 can simultaneously establish a Wi-Fi connection with the same device with routing function to perform Internet access services.
[0107] It should be noted that in other embodiments of the present application, the electronic device 300 and the electronic device 400 may also be mobile phones, tablet computers, computers, and other devices of the same type as the electronic device 100 and the electronic device 200. Taking the electronic device 100 as an example, the electronic device 100 can establish a Wi-Fi high-speed connection with the electronic device 200 and the electronic device 300 at the same time. Taking the electronic device 200 as an example, the electronic device 200 can establish a Wi-Fi high-speed connection with the electronic device 100 and the electronic device 400 at the same time. It should be understood that in addition to including the electronic device 100 and the electronic device 200, the communication system that also includes a device with which the electronic device 100 establishes a Wi-Fi connection, and a device with which the electronic device 200 establishes a Wi-Fi connection, all belong to the communication system 1000 described in the embodiment of the present application, and the embodiment of the present application does not limit the number of devices included in the communication system 1000, the type of devices, and the Wi-Fi connection established between the devices.
[0108] Moreover, in the communication system 1000 shown in FIG1 , taking the electronic device 100 as an example, when the electronic device 100 has already established a Wi-Fi connection with the electronic device 300, if the electronic device 100 then establishes a Wi-Fi connection with the electronic device 200, the electronic device 100 may be in a same-frequency different-channel state or a different-frequency different-channel state.
[0109] For example, if the channel used for wireless communication between electronic device 100 and electronic device 300 is channel 149 in the 5GHz frequency band, when electronic device 100 establishes a Wi-Fi connection with electronic device 200, the channel used for wireless communication between electronic device 100 and electronic device 200 can be a channel in the 5GHz frequency band. Unless the channel is channel 149, electronic device 100 is in a same-frequency different-channel state, or it can be a channel in the 2.4GHz frequency band. At this time, electronic device 100 is in a different-frequency different-channel state.
[0110] Furthermore, if the electronic device 100 is in the same-frequency-different-channel state or the different-frequency-different-channel state, and the channel switching is realized through time-sharing scheduling, the electronic device 100 needs to switch back and forth between different channels when communicating with the electronic device 200 and the electronic device 300 at the same time.
[0111] In order to better understand the channel switching process, the principle of implementing channel switching by time-sharing scheduling of the electronic device 100 in the same-frequency but different-channel state will be described below with reference to FIG. 2 and FIG. 3 .
[0112] Fig. 2 is a schematic diagram showing the structure of a Wi-Fi chip included in the electronic device 100. Fig. 3 is a schematic diagram showing the principle of channel switching according to an embodiment of the present application.
[0113] As shown in Figure 2, a Wi-Fi chip may include a baseband processing module, a switch, and a radio frequency module. The baseband processing module performs signal modulation and demodulation, signal processing, error correction, and other functions. The switch switches signals, routing them to different paths within the radio frequency module. The radio frequency module may include radio frequency path 1 and radio frequency path 2. Antenna R1 is connected to radio frequency path 1, and antenna R2 is connected to radio frequency path 2.
[0114] When the electronic device 100 is simultaneously communicating wirelessly with multiple devices, the switch can be adjusted to connect RF path 1 or RF path 2 to the baseband processor, so that the electronic device 100 can schedule antenna R1 and antenna R2 in a time-sharing manner, thereby switching channels in a time-sharing manner to communicate with different devices.
[0115] Taking the example of electronic device 100 using channel 149 in the 5GHz band to communicate with electronic device 200, and using channel 36 in the 5GHz band to communicate with electronic device 300, in conjunction with FIG3, during the T1 time period, electronic device 100 can first pass through the path shown in FIG2: baseband processor-switch-RF path 1-antenna R1, to achieve the use of channel 36 to transmit and receive signals for communication with electronic device 300 through antenna R1. Afterwards, during the T2 time period, electronic device 100 needs to switch the switch shown in FIG2 so that electronic device 100 can During the T3 time period, the path shown in Figure 2 is used: baseband processor-switch-RF path 2-antenna R2, and the signal for communication between the electronic device 200 is received and sent through the antenna R2 using the 149 channel. Afterwards, during the T4 time period, the electronic device 100 needs to switch the switch shown in Figure 2 again, so that the electronic device 100 can, during the T5 time period, use the path shown in Figure 2: baseband processor-switch-RF path 1-antenna R1, and the signal for communication between the electronic device 300 is received and sent through the antenna R1 using the 36 channel, and so on.
[0116] It can be seen that during the channel switching process of the electronic device 100 , the electronic device 100 requires a certain switching waiting time, such as T2 , T4 , T6 , etc. shown in FIG. 3 , to complete the channel switching.
[0117] In addition, it can be understood that the principle of channel switching achieved by electronic device 200 through time-sharing scheduling in the same frequency but different channel state is similar to that of electronic device 100. When electronic device 200 switches channels, it also requires a certain waiting time to complete the channel switching.
[0118] However, during the waiting time, the electronic device (such as electronic device 100 or electronic device 200) cannot send or receive signals. If it is in a critical business process at this time, such as an interactive Address Resolution Protocol (ARP) request scenario, the ARP request cannot be processed, resulting in the recipient not receiving the ARP response, and ultimately causing the business establishment to fail.
[0119] That is to say, if an electronic device, such as electronic device 100 or electronic device 200, is in a same-frequency different-channel state or a different-frequency different-channel state, and channel switching is achieved through time-sharing scheduling, since channel switching requires a certain waiting time, the electronic device will not be able to use the channel to communicate with the other end for a long time, resulting in low channel time utilization, increased packet loss rate, easy communication service jams, reduced communication quality, and poor user experience.
[0120] Furthermore, if the Wi-Fi chip in the electronic device is a low-end chip with poor channel switching capabilities, the switching latency and channel dwell time will be further increased. For example, the switching latency may be 50ms for some chips with good multi-band, multi-channel switching capabilities, while it may be 320ms for some chips with poor multi-band, multi-channel switching capabilities.
[0121] It can be seen that if the Wi-Fi chip equipped with a low-end chip in the communication system 1000 is in the same frequency and different channel state or the different frequency and different channel state, it may further aggravate the communication service jam and reduce the user experience.
[0122] Therefore, how to prevent devices equipped with low-end Wi-Fi chips from communicating in DBAC mode in a communication system is an urgent problem to be solved.
[0123] An embodiment of the present application provides a communication control method, the method involving a first device and a second device. The first device includes a first Wi-Fi chip, which controls the first device and wirelessly communicates with a third device via a first channel. The second device includes a second Wi-Fi chip, which controls the second device and wirelessly communicates with a fourth device via a second channel. When it is determined that the multi-frequency and multi-channel switching capability of the first Wi-Fi chip is weaker than that of the second Wi-Fi chip, the first device determines the first channel as a channel for communication between the first device and the second device, and the first device establishes a Wi-Fi connection with the second device.
[0124] The multi-frequency, multi-channel switching capability indicates the switching time and dwell ratio efficiency of the Wi-Fi chip when controlling channel switching during communication. The stronger the multi-frequency, multi-channel switching capability, the less switching time the Wi-Fi chip uses to control channel switching during communication, and the higher the dwell ratio efficiency. This allows the device to switch channels more quickly, improving communication efficiency when communicating with multiple devices simultaneously.
[0125] That is, if the multi-frequency and multi-channel switching capability of the first Wi-Fi chip is weaker than that of the second Wi-Fi chip, the communication control method provided in the embodiment of the present application can avoid the first device being in a same-frequency and different-channel state when establishing a high-speed Wi-Fi connection with the second device, and enable the first device to be in a same-frequency and same-channel state. In this way, the first device does not need to switch channels when communicating with the third device and the second device at the same time, thereby avoiding the disadvantage of the weak multi-frequency and multi-channel switching capability of the first Wi-Fi chip of the first device, thereby ensuring the communication effect of the Wi-Fi connection established between the first device and the second device as much as possible.
[0126] An embodiment of the present application also provides another communication control method, which involves a first device and a second device. The first device includes a first Wi-Fi chip, which controls wireless communication between the first device and a third device. The second device includes a second Wi-Fi chip, which controls wireless communication between the second device and a fourth device. When it is determined that the multi-frequency and multi-channel switching capability of the first Wi-Fi chip is weaker than that of the second Wi-Fi chip, the first device disconnects the communication connection with the third device and establishes a Wi-Fi connection with the second device.
[0127] That is to say, if the multi-frequency and multi-channel switching capability of the first Wi-Fi chip is weaker than that of the second Wi-Fi chip, and the first Wi-Fi chip does not support the DBDC mode, the first Wi-Fi chip can only control the first device to communicate with the third device and the second device in the DBAC mode. The communication control method provided in the embodiment of the present application disconnects the Wi-Fi connection between the first device and the third device, thereby preventing the first Wi-Fi chip with poor multi-frequency and multi-channel switching capability from switching back and forth between different signals. This avoids the disadvantage of the weak multi-frequency and multi-channel switching capability of the first Wi-Fi chip of the first device, and prioritizes ensuring the successful establishment of the Wi-Fi connection between the first device and the second device.
[0128] Furthermore, the frequency band used when the first device communicates with the third device may refer to the 2.4GHz frequency band. That is to say, the first device will disconnect from the third device when it needs to establish a connection with the second device only when the frequency band used by the first device when communicating with other devices is the 2.4GHz frequency band and the multi-frequency and multi-channel switching capability of the Wi-Fi chip is weak. This is because if the first device and the second device use a channel in the 2.4GHz frequency band to communicate in order to avoid the first device switching between channels, it is further considered that if the first device uses the same channel in the 2.4GHz frequency band to communicate wirelessly with the third device and the second device at the same time, the communication quality of the first device will be seriously affected due to the serious interference in the 2.4GHz frequency band. In this way, when a device is about to communicate with multiple devices, the communication quality of the device can be fully considered from multiple aspects, and appropriate choices can be made for the connections established by the devices to ensure the communication quality of the device.
[0129] Furthermore, the first device and the second device establish a Wi-Fi connection using the 5GHz frequency band. This is because if the first device and the second device are to perform distributed services, the 5GHz frequency band can better meet the communication rate and anti-interference requirements required for the distributed services compared to the 2.4GHz frequency band.
[0130] Furthermore, if the first device needs to connect to the Internet, it can transmit network data through the second device. For example, the first device can access the Internet through the second device. This ensures that the first device can still connect to the Internet and access the Internet even after disconnecting from the third device.
[0131] FIG4 shows a flow chart of a communication control method provided in an embodiment of the present application.
[0132] As shown in FIG4 , the communication control method may include:
[0133] S101. The electronic device 100 and the electronic device 300 perform wireless communication via a first channel.
[0134] The electronic device 100 establishes a Wi-Fi connection with the electronic device 300. Specifically, the electronic device 100 may include a first Wi-Fi chip, which may control the electronic device 100 to wirelessly communicate with the electronic device 300 via a first channel. For example, the first channel may be channel 1 in the 2.4 GHz frequency band, or channel 36 in the 5 GHz frequency band.
[0135] For example, referring to FIG. 1 , the electronic device 100 may be a mobile phone, the electronic device 300 may be a router, and the Wi-Fi connection may be a Wi-Fi AP connection.
[0136] S102. The electronic device 200 and the electronic device 400 perform wireless communication via the second channel.
[0137] The electronic device 200 establishes a Wi-Fi connection with the electronic device 400. Specifically, the electronic device 200 may include a second Wi-Fi chip, which may control the electronic device 200 to wirelessly communicate with the electronic device 400 via a second channel. For example, the second channel may be channel 1 in the 2.4 GHz frequency band, or channel 36 in the 5 GHz frequency band.
[0138] For example, referring to FIG. 1 , the electronic device 200 may be a tablet, the electronic device 400 may be a router, and the Wi-Fi connection may be a Wi-Fi AP connection.
[0139] It is understandable that step S101 and step S102 are not used to limit the execution order of step S101 and step S102.
[0140] S103. The electronic device 100 detects a first operation.
[0141] The first operation may include an operation of the user initiating a first service, or an operation initiated by the user requesting to establish a wireless connection with another device. For example, the first service may refer to a distributed service such as a screen projection service, a file sharing service, etc., and the embodiment of the present application does not limit such service. The operation may be a touch operation, a voice command, etc., and the embodiment of the present application does not limit the form of the operation.
[0142] S104 . The electronic device 100 sends a broadcast to the electronic device 200 .
[0143] The electronic device 100 may discover the electronic device 200 by sending a broadcast to the surroundings.
[0144] In some embodiments, when the electronic device 100 sends a broadcast, the broadcast may carry capability information (e.g., multi-frequency and multi-channel switching capability) of the first Wi-Fi chip contained in the electronic device 100. The capability information of the first Wi-Fi chip indicates the switching time and residence ratio efficiency of the first Wi-Fi chip when controlling channel switching during communication. In this way, after other devices obtain the broadcast sent by the electronic device 100, they can learn the capabilities of the Wi-Fi chip of the electronic device 100.
[0145] Furthermore, the broadcast sent by the electronic device 100 may also carry connection information of the electronic device 100, which indicates the channel or frequency band used by the Wi-Fi connection established between the electronic device 100 and other devices. For example, the connection information indicates that the electronic device 100 and the electronic device 300 are wirelessly communicating via the first channel. In this way, after other devices obtain the broadcast sent by the electronic device 100, they can obtain the channel used by the wireless connection established between the electronic device 100 and other devices.
[0146] It is understandable that the broadcast sent by the electronic device 100 may also include other information, such as the device ID and address information of the electronic device 100, etc., and the embodiments of the present application do not limit this.
[0147] S105 . The electronic device 200 responds to the broadcast to the electronic device 100 .
[0148] After the electronic device 200 obtains the broadcast sent by the electronic device 100, the electronic device 200 may reply to the broadcast.
[0149] In some embodiments, when electronic device 200 responds to a broadcast, the response information may include capability information (e.g., multi-frequency and multi-channel switching capability) of a second Wi-Fi chip included in electronic device 200. This capability information indicates the speed at which the second Wi-Fi chip controls channel switching during communication. In this way, after electronic device 100 obtains the response information from electronic device 200, it can obtain the capabilities of the Wi-Fi chip of electronic device 100.
[0150] Furthermore, the information replied by the electronic device 200 may also carry the connection information of the electronic device 200, which indicates the channel used by the Wi-Fi connection established between the electronic device 200 and the other device. For example, the connection information indicates that the electronic device 200 and the electronic device 400 are wirelessly communicating via the second channel. In this way, after the electronic device 100 obtains the information replied by the electronic device 200, it can obtain the channel used by the wireless connection established between the electronic device 200 and the other device.
[0151] It is understandable that the information sent by the electronic device 200 when replying to the broadcast may also include other content, such as the device ID and address information of the electronic device 200, etc., and the embodiment of the present application does not limit this.
[0152] S106. The electronic device 100 displays a device list.
[0153] It is understood that during the process of the electronic device 100 broadcasting outward, one or more devices may receive and respond to the broadcast sent by the electronic device 100. The device list can be used to indicate the one or more devices that responded to the broadcast. In this way, the user can view the one or more devices discovered by the electronic device 100 through the device list.
[0154] It is understandable that step S106 is an optional step, and the electronic device 100 may not display the device list.
[0155] The following steps S107 - S110 describe the process of establishing a Wi-Fi high-speed connection between the electronic device 100 and the electronic device 200 by taking the electronic device 100 selecting the electronic device 200 as an example.
[0156] S107 . The electronic device 100 detects that the user selects the second operation of the electronic device 200 .
[0157] Specifically, the device list displayed by the electronic device 100 may include an option of the electronic device 200, and the second operation may include an operation acting on the option of the electronic device 200 included in the device list.
[0158] It is understandable that step S107 is an optional step, and the electronic device 100 can automatically establish a connection with the electronic device 200 without the user's selection.
[0159] S108. The electronic device 100 establishes a first connection with the electronic device 200.
[0160] In response to the second operation, the electronic device 100 may establish a first connection with the electronic device 200 .
[0161] The first connection may be a Bluetooth low energy (BLE) connection, a universal serial bus (USB), a classic Bluetooth connection, a near field communication (NFC) connection, a Zigbee connection, etc. The embodiment of the present application does not limit the first connection.
[0162] In this way, after the electronic device 100 and the electronic device 200 establish a first connection, the electronic device 100 and the electronic device 200 can encrypt the connection channel to achieve secure communication between the electronic device 100 and the electronic device 200, and further exchange relevant information required to establish a Wi-Fi high-speed connection, such as the Wi-Fi password, service set identifier (SSID), etc., thereby completing the establishment of the Wi-Fi connection.
[0163] It is understandable that the above steps S103-S108 are a process in which the electronic device 100 detects the first operation, initiates a broadcast, and establishes a first connection with the electronic device 200. In other embodiments of the present application, the electronic device 200 may also detect the first operation, initiate a broadcast, and establish the first connection with the electronic device 100. The embodiment of the present application does not limit the device that initiates the establishment of a Wi-Fi high-speed connection between the electronic device 100 and the electronic device 200.
[0164] S109 . The electronic device 100 negotiates with the electronic device 200 on a channel to be used when establishing a Wi-Fi connection.
[0165] Specifically, the electronic device 100 and the electronic device 200 may negotiate to establish a channel used for a Wi-Fi high-speed connection based on the capability information and connection information of the Wi-Fi chips of both parties.
[0166] Among them, if the electronic device 100 and the electronic device 200 have exchanged the capability information and connection information of the Wi-Fi chips of both parties in the broadcast phase (i.e., steps S104 and S105) before establishing the first connection, then when the electronic device 100 and the electronic device 200 negotiate the channel, they can determine the device between the electronic device 100 and the electronic device 200 that needs to be on the same frequency and channel based on the information exchanged in the broadcast phase.
[0167] If it is determined that the multi-frequency, multi-channel switching capability of the first Wi-Fi chip is weaker than that of the second Wi-Fi chip, the first channel can be determined as the channel used when electronic device 100 and electronic device 200 establish a high-speed Wi-Fi connection. This allows electronic device 100 to wirelessly communicate with electronic device 300 via the first channel and also wirelessly communicate with electronic device 200 using the first channel. This allows electronic device 100 to communicate with both devices simultaneously without switching channels, preventing electronic device 100 with a weaker Wi-Fi chip from wasting excessive time switching channels and ensuring the communication quality between electronic devices 100 and 200 as much as possible.
[0168] If it is determined that the multi-frequency and multi-channel switching capability of the second Wi-Fi chip is weaker than that of the first Wi-Fi chip, the second channel can be determined as the channel used when electronic device 100 and electronic device 200 establish a Wi-Fi connection. In this way, electronic device 200 can wirelessly communicate with electronic device 400 via the second channel, and wirelessly communicate with electronic device 100 using the second channel. In this way, electronic device 200 can communicate with both devices simultaneously without switching channels, avoiding the electronic device 100 with the weaker Wi-Fi chip from wasting excessive time switching channels, and ensuring the communication quality between electronic devices 100 and 100 as much as possible.
[0169] It should be noted that the device that determines the channel used when the electronic device 100 and the electronic device 200 establish a Wi-Fi connection can be the electronic device 100 or the electronic device 200, and this embodiment of the present application does not limit this.
[0170] In some embodiments, if the electronic device 100 and the electronic device 200 do not exchange the capability information and connection information of the Wi-Fi chips of both parties during the broadcast phase before establishing the first connection, the electronic device 100 and the electronic device 200 may exchange the capability information and connection information of the Wi-Fi chips through the first connection after establishing the first connection and before negotiating the channel.
[0171] In this case, after the electronic device 100 and the electronic device 200 establish a first connection, the electronic device 100 can send the capability information of the first Wi-Fi chip and the connection information of the electronic device 100 to the electronic device 200 through the first connection. Similarly, the electronic device 200 can also send the capability information of the second Wi-Fi chip and the connection information of the electronic device 200 to the electronic device 100 through the first connection.
[0172] It is understandable that the electronic device 100 and the electronic device 200 can negotiate the device for decision-making. In this way, the decision-making device only needs to obtain the capability information and connection information of the Wi-Fi chips of both parties, and there is no need for the two parties to exchange the capability information and connection information. For example, if the electronic device 100 and the electronic device 200 negotiate that the electronic device 100 is the decision-making device, then the electronic device 200 does not need to obtain the chip capability and connection information of the electronic device 100. The electronic device 200 only needs to send the capability information of the second Wi-Fi chip and the connection information of the electronic device 200 to the electronic device 100, and the electronic device 100 determines the channel used by the two parties to establish the Wi-Fi connection based on the chip capabilities and connection status of both parties. In this way, the number of communications between the electronic device 100 and the electronic device 200 can be reduced, and the channel decision can be completed as soon as possible.
[0173] Exemplarily, the device for making the decision may be the device that initiates the service, a randomly selected device, or a relatively idle device among electronic device 100 and electronic device 200, etc. The embodiment of the present application does not limit the device for making the decision.
[0174] S110 . The electronic device 100 and the electronic device 200 establish a Wi-Fi connection based on the negotiated channel.
[0175] The WiFi connection is established based on the first Wi-Fi chip and the second Wi-Fi chip. The Wi-Fi connection may refer to a high-speed Wi-Fi connection, which may include any one of the following: a Wi-Fi communication connection using AWDL technology, a Wi-Fi communication connection using the HML protocol, or a Wi-Fi communication connection using the Wi-Fi P2P protocol.
[0176] Taking Wi-Fi P2P connection as an example, electronic device 100 and electronic device 200 can establish a Wi-Fi P2P connection based on a negotiated channel. During the communication between electronic device 100 and electronic device 200, electronic device 100 and electronic device 100 can communicate through the negotiated channel.
[0177] It is understandable that before establishing a Wi-Fi connection, the electronic device 100 and the electronic device 200 negotiate not only the channel, but also other contents. For example, taking the Wi-Fi P2P connection as an example, the electronic device 100 and the electronic device 200 need to negotiate the roles of both parties (including the group client (groupclint, GC) role and the group owner (groupowner, GO) role) before establishing the Wi-Fi P2P connection. For example, the electronic device 100 acts as the GO role, the electronic device 200 acts as the GC role, and so on. In addition, when the electronic device 100 and the electronic device 200 establish a Wi-Fi P2P connection, the connection can be established through the standard four-way handshake process of the Wi-Fi P2P connection.
[0178] It is understandable that the conventional interaction process performed by the electronic device 100 and the electronic device 200 to establish a Wi-Fi high-speed connection will not be specifically introduced in the embodiments of the present application.
[0179] As can be seen from steps S101-S110, before establishing a Wi-Fi connection between devices, the capabilities of the devices' Wi-Fi chips and the devices' communication connection status can be obtained. Then, a channel is selected so that after the Wi-Fi connection is established, devices with weaker Wi-Fi chips can be on the same frequency and channel. This prevents devices with longer channel switching times from having to constantly switch channels, improving communication efficiency between devices.
[0180] It is understandable that although the above steps S101-S110 can ensure that devices with weak Wi-Fi chip capabilities can be in the same frequency and channel state, there are still certain problems: if the electronic device 100 communicates with the electronic device 300 through a channel in the 2.4 GHz frequency band, and communicates with the electronic device 200 through the same channel, due to the large interference in the 2.4 GHz frequency band, although the electronic device 100 does not need to switch channels, there is a large interference problem in the communication between the electronic device 100 and the electronic devices 300 and 200, resulting in the communication quality of the electronic device 100 cannot be guaranteed.
[0181] Therefore, in the case where electronic device 100 and electronic device 300 are wirelessly communicating via the 2.4 GHz frequency band, when electronic device 100 needs to establish a Wi-Fi connection with electronic device 200, it can first disconnect the Wi-Fi connection established with electronic device 300 and then establish a Wi-Fi connection with electronic device 200, giving priority to ensuring communication between electronic device 100 and electronic device 200. For details, please refer to the content of another communication control method shown in Figure 5 below.
[0182] 5 is a flow chart of another communication control method provided in an embodiment of the present application.
[0183] As shown in FIG5 , the communication control method may include:
[0184] S201. The electronic device 100 and the electronic device 300 perform wireless communication via a first frequency band.
[0185] The electronic device 100 establishes a Wi-Fi connection with the electronic device 300. Specifically, the electronic device 100 may include a first Wi-Fi chip, which may control the electronic device 100 and wirelessly communicate with the electronic device 300 via a first frequency band. For example, the first frequency band is a 2.4 GHz frequency band, or a 5 GHz frequency band, and so on. Furthermore, the electronic device 100 and the electronic device 300 may wirelessly communicate via a first channel in the first frequency band. For example, if the first frequency band is a 2.4 GHz frequency band, the first channel may refer to channel 1, channel 2, and so on; if the first frequency band is a 5 GHz frequency band, the first channel may refer to channel 36, channel 149, and so on.
[0186] S202. The electronic device 200 and the electronic device 400 perform wireless communication via the second frequency band.
[0187] The electronic device 200 establishes a Wi-Fi connection with the electronic device 400. Specifically, the electronic device 200 may include a second Wi-Fi chip, which may control the electronic device 200 to wirelessly communicate with the electronic device 400 via a second frequency band. For example, the second frequency band is a 2.4 GHz frequency band, or a 5 GHz frequency band, etc. Further, the electronic device 200 and the electronic device 400 may wirelessly communicate via a second channel in the second frequency band. For example, if the second frequency band is a 2.4 GHz frequency band, the second channel may be channel 1, channel 2, etc.; if the second frequency band is a 5 GHz frequency band, the second channel may be channel 36, channel 149, etc.
[0188] S203. The electronic device 100 detects a first operation.
[0189] S204 . The electronic device 100 sends a broadcast to the electronic device 200 .
[0190] S205 . The electronic device 200 responds to the broadcast to the electronic device 100 .
[0191] S206. The electronic device 100 displays a device list.
[0192] S207 . The electronic device 100 detects that the user selects the second operation of the electronic device 200 .
[0193] S208. The electronic device 100 establishes a first connection with the electronic device 200.
[0194] It can be understood that the contents of steps S203-S206 are similar to the contents of the above-mentioned steps S103-S108, except that when electronic device 100 sends a broadcast to electronic device 200, in some embodiments, the connection information carried in the broadcast it sends can be used to instruct electronic device 100 and electronic device 300 to communicate wirelessly through the first frequency band, or, it can also be used to instruct electronic device 100 and electronic device 300 to communicate wirelessly through the first channel in the first frequency band; similarly, when electronic device 200 replies to a broadcast to electronic device 100, in some embodiments, the connection information it replies can be used to instruct electronic device 200 and electronic device 400 to communicate wirelessly through the second frequency band, or, it can also be used to instruct electronic device 100 and electronic device 300 to communicate wirelessly through the second channel in the second frequency band.
[0195] S209. The electronic device 100 negotiates with the electronic device 200 on the communication connection that needs to be disconnected.
[0196] Specifically, electronic device 100 and electronic device 200 can negotiate the connection that needs to be disconnected among the connections already established between electronic device 100 and electronic device 200 based on the capability information, connection information, and configuration information of the Wi-Fi chips of both parties, including the connection used by electronic device 100 and electronic device 300 for communication mentioned in step S201, and the connection used by electronic device 200 and electronic device 400 for communication mentioned in step S202.
[0197] Among them, if the electronic device 100 and the electronic device 200 have exchanged the capabilities, connection information and configuration information of the Wi-Fi chips of both parties in the broadcast phase (i.e., steps S204 and S205) before establishing the first connection, then when the electronic device 100 and the electronic device 200 negotiate the frequency band, they can determine which of the connections established between the electronic device 100 and the electronic device 200 need to be disconnected based on the information exchanged in the broadcast phase.
[0198] For example, the negotiation process may include comparing the multi-frequency and multi-channel switching capabilities of the electronic device 100 and the Wi-Fi chip of the electronic device 100, and identifying the device with the weaker multi-frequency and multi-channel switching capability of the Wi-Fi chip of the two devices. If the multi-frequency and multi-channel switching capability of the Wi-Fi chip is weak, it means that the Wi-Fi chip can only use the DBAC mode to achieve simultaneous communication with multiple devices. Then, if the device communicates with multiple devices simultaneously, it may need to switch back and forth between different channels. Moreover, due to the weak multi-frequency and multi-channel switching capability of the Wi-Fi chip, it takes a longer switching time when switching channels, and the channel residence time is longer.
[0199] Therefore, the communication connection that needs to be disconnected may refer to a connection used by the device with a weak Wi-Fi chip capability to communicate with other devices.
[0200] In some embodiments, if the electronic device 100 and the electronic device 200 do not exchange the capability information, connection information, and configuration information of the Wi-Fi chips of both parties during the broadcast phase before establishing the first connection, the electronic device 100 and the electronic device 200 may exchange the capability information, connection information, and configuration information of the Wi-Fi chips through the first connection after establishing the first connection and before negotiating the frequency band.
[0201] In this case, after the electronic device 100 and the electronic device 200 establish a first connection, the electronic device 100 can send the capability information, connection information, and configuration information of the first Wi-Fi chip to the electronic device 200 through the first connection. Similarly, the electronic device 200 can also send the capability information, connection information, and configuration information of the second Wi-Fi chip to the electronic device 100 through the first connection.
[0202] It is understandable that the electronic device 100 and the electronic device 200 can negotiate the device for decision-making. In this way, the decision-making device only needs to obtain the capability information, connection information and configuration information of the Wi-Fi chips of both parties, and there is no need for the two parties to exchange the capability information, connection information and configuration information. For example, if the electronic device 100 and the electronic device 200 negotiate that the electronic device 100 is the decision-making device, then the electronic device 200 does not need to obtain the chip capability, connection information and configuration information of the electronic device 100. It only needs the electronic device 200 to send the capability information, connection information and configuration information of the second Wi-Fi chip to the electronic device 100, and the electronic device 100 determines the communication connection that needs to be disconnected based on the chip capability and connection information of both parties. In this way, the number of communications between the electronic device 100 and the electronic device 200 can be reduced, and the frequency band decision can be completed as soon as possible.
[0203] Illustratively, the decision-making device may be a device that initiates a service, a randomly selected device, or a relatively idle device among electronic devices 100 and 200 . This embodiment of the application does not limit the decision-making device.
[0204] S210 . When the multi-frequency and multi-channel switching capability of the first Wi-Fi chip of the electronic device 100 is weaker than that of the second Wi-Fi chip of the electronic device 200 , the electronic device 100 disconnects the connection used for communication between the electronic device 100 and the electronic device 300 .
[0205] If the first WiFi chip and the second WiFi chip have multi-frequency and multi-channel switching capabilities, this means that when the first device or the second device communicates with multiple devices on different channels, it can use the first WiFi chip or the second WiFi chip to switch channels, thereby achieving simultaneous communication with multiple devices. If the multi-frequency and multi-channel switching capabilities of electronic device 100 are weaker than those of electronic device 200, this means that compared to electronic device 200, electronic device 100 takes longer to switch channels, which may easily lead to poor communication quality of electronic device 100.
[0206] Therefore, if electronic device 100 meets a preset condition: that is, the multi-frequency and multi-channel switching capability of the Wi-Fi chip is lower than that of the other party, electronic device 100 can disconnect the communication connection established between electronic device 100 and electronic device 300, giving priority to successfully establishing and using the communication connection between electronic device 100 and electronic device 200. In this way, electronic device 100 does not need to switch back and forth between different channels.
[0207] In addition, the device with a weak Wi-Fi chip capability can be further combined with the frequency band used for communication with other devices to decide whether to disconnect the connection used for the communication.
[0208] That is, the first frequency band can be used to determine whether to disconnect the communication connection between electronic device 100 and electronic device 300. In some embodiments, electronic device 100 can disconnect the communication connection between electronic device 100 and electronic device 300 if both the multi-frequency and multi-channel switching capability of the first Wi-Fi chip is weaker than that of the second Wi-Fi chip of electronic device 200 and the first frequency band is 2.4 GHz.
[0209] This is because if the electronic device 100 and the electronic device 300 communicate using the 2.4 GHz frequency band, even if the method in FIG. 4 is used to ensure that the electronic device 100 is in the same frequency and channel state when establishing a Wi-Fi connection with the electronic device 200, the electronic device 100 will still encounter interference problems because the communication with the electronic devices 200 and 300 both use channels in the 2.4 GHz frequency band. What's worse, when the interference is severe, a large amount of packet loss may occur, resulting in disconnection. Alternatively, even if the method in FIG. 4 is not used and the electronic device 100 and the electronic device 200 establish a Wi-Fi connection in the 5 GHz frequency band, although the electronic device 100 avoids the interference problem, it still needs to switch channels back and forth to achieve simultaneous communication with the electronic devices 200 and 300.
[0210] Therefore, when the electronic device 100 meets the preset conditions: that is, the capability of the Wi-Fi chip is lower than that of the other party, and the established wireless communication connection uses the 2.4GHz frequency band, the electronic device 100 can abandon the wireless communication connection established with the electronic device 300 and give priority to ensuring the establishment of the Wi-Fi connection between the electronic device 100 and the electronic device 200.
[0211] It can be understood that step S210 takes electronic device 100 as an example and describes the process of electronic device 100 disconnecting the wireless communication connection established with electronic device 300 when the preset conditions are met. In other embodiments of the present application, if electronic device 200 meets the preset conditions, electronic device 200 can disconnect the wireless communication connection established with electronic device 400.
[0212] S211 . The electronic device 100 establishes a Wi-Fi connection with the electronic device 200 .
[0213] The WiFi connection is established based on the first Wi-Fi chip and the second Wi-Fi chip. The electronic device 100 establishes a Wi-Fi connection with the electronic device 200, so that the electronic device 100 and the electronic device 200 can communicate based on the Wi-Fi connection. The Wi-Fi connection may be a high-speed Wi-Fi connection.
[0214] Furthermore, if the electronic device 100 and the electronic device 200 need to perform distributed services such as cross-device file sharing and cross-device screen projection, the electronic device 100 and the electronic device 200 can establish a Wi-Fi connection in the 5GHz frequency band. This is because distributed services require higher communication rates and stronger anti-interference requirements, and the 2.4GHz frequency band cannot well meet the communication needs of the distributed services. In this way, after the electronic device 100 and the electronic device 200 establish a Wi-Fi connection, the electronic device 100 and the electronic device 200 can communicate through the channel under the 5GHz frequency band. For example, the channel can be channel 36, channel 149, and so on.
[0215] Further optionally, the electronic device 100 and the electronic device 200 may further negotiate a channel in the 5 GHz frequency band, and negotiate a channel used by the established Wi-Fi connection.
[0216] For example, when electronic device 100 and electronic device 200 negotiate to establish a Wi-Fi connection, the channel used can be determined in conjunction with the channel used by the communication connection established by electronic device 200. For example, if the second frequency band is the 5 GHz frequency band, the negotiated channel can be the channel used by the communication connection established between electronic device 200 and electronic device 400. In this way, electronic device 200 does not need to switch channels when communicating with electronic device 100 and electronic device 400 at the same time, reducing the time spent by electronic device 200 in switching channels and reducing the packet loss rate.
[0217] In addition, after the electronic device 100 disconnects the communication connection established with the electronic device 300, if the electronic device 100 has a network connection request, the electronic device 100 can connect to the network through the electronic device 200, that is, transmit the network data of the electronic device 100 through the electronic device 200. Specifically, the electronic device 100 can connect to the network using the wireless network or cellular network of the electronic device 200.
[0218] In some embodiments, before the electronic device 100 transmits network data through the electronic device 200 , the electronic device 100 may display a prompt message to prompt the user that the electronic device 100 will connect to the network through the electronic device 200 .
[0219] It is understandable that, for details about the contents not described in detail in steps S201-S211, reference may be made to the relevant contents in the aforementioned steps S101-S110, which will not be repeated here.
[0220] In the embodiment of the present application, the electronic device 100 may also be referred to as a first device, the electronic device 200 may also be referred to as a second device, the electronic device 300 may also be referred to as a third device, and the electronic device 400 may also be referred to as a fourth device.
[0221] As can be seen from steps S201-S211, before establishing a Wi-Fi connection between devices, multiple factors such as the device's Wi-Fi chip capabilities and the device's communication connection status can be obtained to comprehensively consider the frequency band used when establishing the Wi-Fi connection and whether to disconnect the device's established connection. This can avoid devices that require long channel switching times from constantly switching channels while ensuring the communication requirements for distributed services between devices.
[0222] FIG6 is a schematic diagram of the hardware structure of an electronic device 500 provided in an embodiment of the present application.
[0223] The electronic device 500 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, an in-vehicle device, a smart home device, and / or a smart city device. The embodiments of the present application do not impose any particular restrictions on the specific type of the electronic device.
[0224] The electronic device 500 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0225] It should be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 500. In other embodiments of the present application, the electronic device 500 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0226] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0227] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0228] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0229] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 500. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.
[0230] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0231] The wireless communication function of the electronic device 500 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0232] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 500 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0233] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 500. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0234] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0235] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 500. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, demodulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0236] In some embodiments, antenna 1 of electronic device 500 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 500 can communicate with a network and other devices via wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0237] In some embodiments, the wireless communication module 160 may include a Wi-Fi chip, which may provide a WLAN solution applied to the electronic device 500, modulate the transmitted data into a wireless signal for reception by related devices supporting Wi-Fi technology, or receive wireless signals sent by related devices supporting Wi-Fi technology and demodulate the wireless signal into a digital signal.
[0238] FIG7 shows a schematic structural diagram of a Wi-Fi chip provided in an embodiment of the present application.
[0239] As shown in Figure 7, electronic device 500 may include a processing unit, a Wi-Fi chip, and antennas R1 and R2. The processing unit is used to control and manage the operation of the Wi-Fi chip. The Wi-Fi chip can transmit and receive wireless signals via antennas R1 and R2, enabling electronic device 100 to establish a Wi-Fi connection with other devices.
[0240] Electronic device 500 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0241] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD). The display panel can also be made of an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniLED, a microLED, a micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device can include one or N display screens 194, where N is a positive integer greater than one.
[0242] The electronic device 500 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
[0243] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise and brightness. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.
[0244] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 500 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0245] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 500 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0246] Video codecs are used to compress or decompress digital video. Electronic device 500 may support one or more video codecs. This allows electronic device 500 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.
[0247] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 500, such as image recognition, face recognition, speech recognition, and text comprehension.
[0248] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
[0249] Random access memory may include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, for example, the fifth generation DDR SDRAM is generally referred to as DDR5 SDRAM), etc.; non-volatile memory may include disk storage devices and flash memory.
[0250] Flash memory can be divided into NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. according to the operating principle; single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc. according to the storage cell potential level; universal flash storage (UFS) and embedded multi media card (eMMC) can be divided into UFS and eMMC according to the storage specification.
[0251] The random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data.
[0252] The non-volatile memory may also store executable programs and user and application data, etc., and may be loaded into the random access memory in advance for direct reading and writing by the processor 110 .
[0253] The external memory interface 120 can be used to connect to an external non-volatile memory to expand the storage capacity of the electronic device 500. The external non-volatile memory communicates with the processor 110 via the external memory interface 120 to implement data storage. For example, files such as music and videos can be stored in the external non-volatile memory.
[0254] The electronic device 500 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0255] In the embodiment of the present application, if the electronic device 500 is the electronic device 200 described above:
[0256] The wireless communication module 160 can be used to establish a Wi-Fi connection with other devices (such as the electronic device 100 and the electronic device 400). In addition, the electronic device 500 can also send the capability information of the Wi-Fi chip in the electronic device 500, as well as the connection information, configuration information, etc. of the electronic device 500 to other devices through the wireless communication module 160, and obtain the capability information, connection information and configuration information of the Wi-Fi chip sent by other devices.
[0257] The processor 110 may be used to determine the frequency band or channel used for the Wi-Fi high-speed connection to be established between the electronic device 500 and other devices, and to determine whether the Wi-Fi connection established between the electronic device 500 and other devices needs to be disconnected.
[0258] In the embodiment of the present application, if the electronic device 500 is the electronic device 100 described above:
[0259] The wireless communication module 160 can be used to establish a Wi-Fi connection with other devices (such as the electronic device 200 and the electronic device 300). In addition, the electronic device 500 can also send the capability information of the Wi-Fi chip in the electronic device 500, as well as the connection information, configuration information, etc. of the electronic device 500 to other devices through the wireless communication module 160, and obtain the capability information, connection information and configuration information of the Wi-Fi chip sent by other devices.
[0260] The processor 110 may be used to determine the frequency band or channel used for the Wi-Fi high-speed connection to be established between the electronic device 500 and other devices, and to determine whether the Wi-Fi connection established between the electronic device 500 and other devices needs to be disconnected. If it is determined that the Wi-Fi connection established between the electronic device 500 and other devices needs to be disconnected, the processor 110 may control the wireless communication module 160 to disconnect the Wi-Fi connection established with the other devices. Furthermore, after determining the frequency band and channel, the processor 110 may control the wireless communication module 160 to establish a Wi-Fi high-speed connection using the specified frequency band or channel with the other devices.
[0261] The display screen 194 may be used to provide prompt information when the electronic device 500 is connected to a network via other devices.
[0262] The electronic device can be a portable terminal device equipped with iOS, Android, Microsoft or other operating systems, such as a mobile phone, tablet computer, wearable device, etc., and can also be a non-portable terminal device such as a laptop computer with a touch-sensitive surface or touch panel, a desktop computer with a touch-sensitive surface or touch panel. The software system of the electronic device 500 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a microservice architecture, or a cloud architecture. The embodiment of the present invention takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 500.
[0263] FIG8 is a block diagram of the software structure of the electronic device 500 according to an embodiment of the present invention.
[0264] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0265] The application layer can include a series of application packages.
[0266] As shown in FIG8 , the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
[0267] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0268] As shown in FIG8 , the application framework layer may include a negotiation and decision module, a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0269] The negotiation decision module can be used to decide the frequency band or channel used to establish a Wi-Fi connection with other devices based on the capabilities, communication connection information, and configuration information of the Wi-Fi chips of the electronic device 500 and other devices when the electronic device 500 has distributed services and needs to establish a high-speed Wi-Fi connection with other devices. Furthermore, it can decide whether to disconnect the local Wi-Fi connection established with other devices, etc.
[0270] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.
[0271] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0272] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0273] The phone manager is used to provide communication functions of the electronic device 500, such as management of call status (including answering, hanging up, etc.).
[0274] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0275] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include displaying text messages in the status bar, emitting alert sounds, vibrating electronic devices, or flashing indicator lights.
[0276] Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
[0277] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0278] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0279] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0280] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0281] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0282] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0283] A 2D graphics engine is a drawing engine for 2D drawings.
[0284] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.
[0285] The following describes the workflow of the software and hardware of the electronic device 500 in conjunction with capturing a photo scene.
[0286] When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, touch operation timestamp, and other information). The raw input event is stored in the kernel layer. The application framework layer obtains the raw input event from the kernel layer and identifies the control corresponding to the input event. For example, if the touch operation is a touch single-click operation and the control corresponding to the single-click operation is the control of the camera application icon, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer to capture a still image or video through the camera 193.
[0287] It should be understood that each step in the above method embodiment can be completed by hardware integrated logic circuits in a processor or by software instructions. The method steps disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.
[0288] The present application also provides an electronic device, which may include a memory and a processor. The memory may be used to store a computer program, and the processor may be used to call the computer program in the memory to enable the electronic device to execute the method executed by the electronic device 100 or the electronic device 200 in any of the above embodiments.
[0289] The present application also provides a chip system, which includes at least one processor for implementing the functions involved in the method executed by the electronic device 100 or the electronic device 200 in any of the above embodiments.
[0290] In one possible design, the chip system further includes a memory, which is used to store program instructions and data, and the memory is located inside or outside the processor.
[0291] The chip system can be composed of chips, or can include chips and other discrete devices.
[0292] Optionally, there may be one or more processors in the chip system. The processor may be implemented in hardware or software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented in software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.
[0293] Optionally, the memory in the chip system may be one or more. The memory may be integrated with the processor or may be provided separately from the processor, which is not limited in the embodiments of the present application. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or provided on different chips. The embodiments of the present application do not specifically limit the type of memory or the configuration of the memory and the processor.
[0294] Exemplarily, the chip system may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.
[0295] The present application also provides a computer program product, which includes: a computer program (also referred to as code, or instructions), which, when executed, enables a computer to execute the method executed by any one of the electronic devices 100 or 200 in any of the above embodiments.
[0296] The present application also provides a computer-readable storage medium storing a computer program (also referred to as code or instructions). When the computer program is executed, the computer executes the method executed by the electronic device 100 or the electronic device 200 in any of the above embodiments.
[0297] It should be understood that the processor in the embodiments of the present application can be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above-mentioned method embodiment can be completed by hardware integrated logic circuits in the processor or by software instructions. The above-mentioned processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of the present application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the steps of the above-mentioned method.
[0298] In addition, embodiments of the present application further provide a device. Specifically, the device may be a component or module, and may include one or more processors and a memory connected to each other. The memory is configured to store a computer program. When the computer program is executed by one or more processors, the device performs the methods described in each of the above method embodiments.
[0299] The apparatus, computer-readable storage medium, computer program product, or chip provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding methods provided above, and will not be repeated here.
[0300] The various implementation modes of this application can be combined arbitrarily to achieve different technical effects.
[0301] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described herein are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).
[0302] Those skilled in the art will appreciate that all or part of the process steps in the above-described method embodiments can be implemented by a computer program instructing the relevant hardware. The program can be stored in a computer-readable storage medium, and when executed, the program can include the process steps in the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
[0303] In short, the above description is only an embodiment of the technical solution of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent replacements, improvements, etc. made based on the disclosure of the present invention should be included in the scope of protection of the present invention.
Claims
1. A communication control method, characterized in that: The method is applied to a first device, and the method includes: The first device communicates with the third device on the first channel through the first Wi-Fi chip; When the multi-frequency and multi-channel switching capability of the first Wi-Fi chip is weaker than the multi-frequency and multi-channel switching capability of the second Wi-Fi chip, the first device establishes a Wi-Fi connection with a second device based on the first channel, the second device is a device that communicates with a fourth device on the second channel through the second Wi-Fi chip, and the Wi-Fi connection is established based on the first Wi-Fi chip and the second Wi-Fi chip; The first device communicates with the second device based on the Wi-Fi connection.
2. A communication control method, characterized in that: The method is applied to a first device, and the method includes: The first device communicates with the third device via the first Wi-Fi chip; When the multi-frequency and multi-channel switching capability of the first Wi-Fi chip is weaker than the multi-frequency and multi-channel switching capability of the second Wi-Fi chip, the first device disconnects the connection used for communicating with the third device, and establishes a Wi-Fi connection with a second device, where the second device communicates with a fourth device through the second Wi-Fi chip, and the Wi-Fi connection is established based on the first Wi-Fi chip and the second Wi-Fi chip; The first device communicates with the second device based on the Wi-Fi connection.
3. The method according to claim 2, characterized in that The first device communicates with the third device via a 2.4 GHz frequency band.
4. The method according to claim 2 or 3, characterized in that: The first device establishing a Wi-Fi connection with the second device specifically includes: The first device establishes a Wi-Fi connection with the second device based on the 5 GHz frequency band.
5. The method according to any one of claims 2 to 4, characterized in that: After the first device establishes a Wi-Fi connection with the second device, the method further includes: The first device transmits network data through the second device.
6. The method according to claim 5, characterized in that Before the first device transmits network data through the second device, the method further includes: The first device displays first prompt information, where the first prompt information is used to prompt a user that the first device will be connected to the Internet through the second device.
7. The method according to any one of claims 1 to 6, characterized in that: Before the first device establishes a Wi-Fi connection with the second device, the method further includes: The first device receives the multi-frequency and multi-channel switching capability of the second Wi-Fi chip sent by the second device.
8. The method according to claim 7, characterized in that Before the first device receives the multi-frequency and multi-channel switching capability of the second Wi-Fi chip sent by the second device, the method further includes: The first device sends first broadcast information, and the multi-frequency and multi-channel switching capability of the first Wi-Fi chip is information returned to the first device after the second device receives the first broadcast information; or, The first device receiving the multi-frequency multi-channel switching capability of the second Wi-Fi chip sent by the second device specifically includes: The first device receives second broadcast information sent by the second device; the second broadcast information carries the multi-frequency and multi-channel switching capability of the second Wi-Fi chip.
9. The method according to claim 7 or 8, characterized in that: Before the first device receives the multi-frequency and multi-channel switching capability of the second Wi-Fi chip sent by the second device, the method further includes: The first device establishes a first connection with the second device; The first device receiving the multi-frequency multi-channel switching capability of the second Wi-Fi chip sent by the second device specifically includes: The first device receives the multi-frequency and multi-channel switching capability of the second Wi-Fi chip sent by the second device through the first connection.
10. The method according to any one of claims 1 to 9, characterized in that: Before the first device establishes a Wi-Fi connection with the second device, the method further includes: The first device receives connection information of the second device sent by the second device, where the connection information indicates a channel or a frequency band used by the second device when communicating with other devices.
11. The method according to any one of claims 1 to 10, characterized in that: The Wi-Fi connection includes any one of the following: a Wi-Fi communication connection using Apple Wireless Direct AWDL technology, a Wi-Fi communication connection using Huawei Multi-Link Direct HML protocol, and a Wi-Fi communication connection using Wi-Fi peer-to-peer P2P protocol.
12. A communication control method, characterized in that: The method is applied to a communication system including a first device and a second device, and the method includes: The first device communicates with the third device on the first channel through the first Wi-Fi chip; The second device communicates with the fourth device on the second channel via the second Wi-Fi chip; When the multi-frequency and multi-channel switching capability of the first Wi-Fi chip is weaker than the multi-frequency and multi-channel switching capability of the second Wi-Fi chip, the first device and the second device establish a Wi-Fi connection based on the first channel, and the Wi-Fi connection is established based on the first Wi-Fi chip and the second Wi-Fi chip; The first device communicates with the second device based on the Wi-Fi connection.
13. A communication control method, characterized in that: The method is applied to a communication system including a first device and a second device, and the method includes: The first device communicates with the third device via the first Wi-Fi chip; The second device communicates with a fourth device via a second Wi-Fi chip; When the multi-frequency and multi-channel switching capability of the first Wi-Fi chip is weaker than the multi-frequency and multi-channel switching capability of the second Wi-Fi chip, the first device disconnects the connection used for communicating with the third device, and establishes a Wi-Fi connection with the second device, where the Wi-Fi connection is established based on the first Wi-Fi chip and the second Wi-Fi chip; The first device communicates with the second device based on the Wi-Fi connection.
14. An electronic device, characterized in that: The electronic device comprises a memory, one or more processors, and one or more programs; when the one or more processors execute the one or more programs, the electronic device implements the method as claimed in any one of claims 1 to 11.
15. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 11.
Citation Information
Patent Citations
A method and a device for relaying by a mobile device
CN105375970A
Display apparatus and method of setting operating channel of the same
CN108605374A
Channel determination method and device, terminal equipment and computer readable storage medium
CN112702803A
WiFi P2P connection method, electronic device, program product and medium
CN113645693A
Multi-device cooperation method and related device
CN115348630A
Cited By
Device connection method, related device and communication system
CN122028222A