CN111988771B - Wireless connection control method and device and electronic equipment - Google Patents

Wireless connection control method and device and electronic equipment Download PDF

Info

Publication number
CN111988771B
CN111988771B CN202010886328.3A CN202010886328A CN111988771B CN 111988771 B CN111988771 B CN 111988771B CN 202010886328 A CN202010886328 A CN 202010886328A CN 111988771 B CN111988771 B CN 111988771B
Authority
CN
China
Prior art keywords
signal
noise ratio
threshold
electronic device
bluetooth headset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010886328.3A
Other languages
Chinese (zh)
Other versions
CN111988771A (en
Inventor
刘晓明
谢林夫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010886328.3A priority Critical patent/CN111988771B/en
Publication of CN111988771A publication Critical patent/CN111988771A/en
Application granted granted Critical
Publication of CN111988771B publication Critical patent/CN111988771B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/0085Hand-off measurements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/04Terminal devices adapted for relaying to or from another terminal or user
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application discloses a wireless connection control method, a wireless connection control device and electronic equipment, belongs to the technical field of communication, and can solve the problem that the use range of the existing Bluetooth headset is limited. The method comprises the following steps: under the condition that the first electronic equipment and the Bluetooth headset are in wireless connection, a first signal-to-noise ratio and a second signal-to-noise ratio are obtained, wherein the first signal-to-noise ratio is the signal-to-noise ratio of the first electronic equipment, and the second signal-to-noise ratio is the signal-to-noise ratio of the Bluetooth headset; under the condition that a first preset switching condition is met, switching to a relay connection mode, wherein in the relay connection mode, the first electronic equipment is in wireless connection with the second electronic equipment, the second electronic equipment is in wireless connection with the Bluetooth headset, and the distance between the Bluetooth headset and the second electronic equipment is smaller than the distance between the Bluetooth headset and the first electronic equipment; the first preset switching condition includes at least one of: the first signal to noise ratio is less than a first threshold and the second signal to noise ratio is less than a second threshold. The method is applied to a scene of transmitting data by the Bluetooth headset.

Description

Wireless connection control method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to a wireless connection control method, a wireless connection control device and electronic equipment.
Background
With the development of wireless technology, many electronic devices have realized wireless data transmission.
At present, the electronic device can send data to the Bluetooth headset to replace the traditional wired headset, so that the headset layout space inside the electronic device can be saved. Generally, the battery capacity of a bluetooth headset is relatively small. In order to ensure the endurance of the Bluetooth headset, the Bluetooth headset can be in wireless connection with the electronic equipment through the Bluetooth module, so that the power consumption of the Bluetooth headset in unit time is reduced.
However, in the above manner, since the transmission power of the bluetooth headset is small (typically less than 10 decibel milliwatts (dBm)), when the bluetooth headset is far away from the electronic device, the bluetooth headset and the electronic device may be disconnected due to the inability to maintain the wireless connection, or the quality of the wireless connection is poor, such that the data cannot be normally transmitted, thereby resulting in a limited range of use of the bluetooth headset.
Disclosure of Invention
The embodiment of the application aims to provide a wireless connection control method, a wireless connection control device and electronic equipment, which can solve the problem that the application range of the existing Bluetooth headset is limited.
In order to solve the technical problems, the application is realized as follows:
In a first aspect, an embodiment of the present application provides a wireless connection control method, where the method includes: under the condition that the first electronic equipment and the Bluetooth headset are in wireless connection, a first signal-to-noise ratio and a second signal-to-noise ratio are obtained, wherein the first signal-to-noise ratio is the signal-to-noise ratio of the first electronic equipment, and the second signal-to-noise ratio is the signal-to-noise ratio of the Bluetooth headset; under the condition that a first preset switching condition is met, switching to a relay connection mode, wherein in the relay connection mode, the first electronic equipment is in wireless connection with the second electronic equipment, the second electronic equipment is in wireless connection with the Bluetooth headset, and the distance between the Bluetooth headset and the second electronic equipment is smaller than the distance between the Bluetooth headset and the first electronic equipment; the first preset switching condition comprises at least one of the following: the first signal to noise ratio is less than a first threshold and the second signal to noise ratio is less than a second threshold.
In a second aspect, an embodiment of the present application provides a wireless connection control apparatus, including: an acquisition module and a switching module. The acquisition module is used for acquiring a first signal-to-noise ratio and a second signal-to-noise ratio under the condition that the first electronic equipment and the Bluetooth headset are in wireless connection, wherein the first signal-to-noise ratio is the signal-to-noise ratio of the first electronic equipment, and the second signal-to-noise ratio is the signal-to-noise ratio of the Bluetooth headset; the switching module is used for switching to a relay connection mode under the condition that a first preset switching condition is met, in the relay connection mode, the first electronic equipment is in wireless connection with the second electronic equipment, the second electronic equipment is in wireless connection with the Bluetooth headset, and the distance between the Bluetooth headset and the second electronic equipment is smaller than the distance between the Bluetooth headset and the first electronic equipment; the first preset switching condition comprises at least one of the following: the first signal to noise ratio is less than a first threshold and the second signal to noise ratio is less than a second threshold.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions implementing the steps of the wireless connection control method as in the first aspect, when executed by the processor.
In a fourth aspect, an embodiment of the present application provides a readable storage medium having stored thereon a program or instructions which, when executed by a processor, implement the steps of the wireless connection control method as in the first aspect described above.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement the steps of the radio connection control method as in the first aspect.
In the embodiment of the application, under the condition that the first electronic equipment and the Bluetooth headset are in wireless connection, a first signal-to-noise ratio and a second signal-to-noise ratio are obtained, wherein the first signal-to-noise ratio is the signal-to-noise ratio of the first electronic equipment, and the second signal-to-noise ratio is the signal-to-noise ratio of the Bluetooth headset; under the condition that a first preset switching condition is met, switching to a relay connection mode, wherein in the relay connection mode, the first electronic equipment is in wireless connection with the second electronic equipment, the second electronic equipment is in wireless connection with the Bluetooth headset, and the distance between the Bluetooth headset and the second electronic equipment is smaller than the distance between the Bluetooth headset and the first electronic equipment; the first preset switching condition comprises at least one of the following: the first signal to noise ratio is less than a first threshold and the second signal to noise ratio is less than a second threshold. According to the scheme, when the signal to noise ratio of the first electronic device is smaller than the first threshold value or the signal to noise ratio of the Bluetooth headset is smaller than the second threshold value, the quality of wireless connection between the first electronic device and the Bluetooth headset can be determined to be poor, so that the first electronic device can be in wireless connection with second electronic device which is closer to the Bluetooth headset through switching to a relay connection mode, the second electronic device can be in wireless connection with the Bluetooth headset, the second electronic device can serve as a relay device when the distance between the first electronic device and the Bluetooth headset is far, and data between the first electronic device and the Bluetooth headset can be forwarded, and normal transmission of the data between the first electronic device and the Bluetooth headset can be guaranteed when the first electronic device and the Bluetooth headset are far, so that the service range of the Bluetooth headset can be expanded.
Drawings
Fig. 1 is a schematic flow chart of a wireless connection control method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a frame of a wireless link according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a wireless connection control device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 5 is a schematic hardware diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
In embodiments of the application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
The wireless connection control method provided by the embodiment of the application is described in detail below through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
As shown in fig. 1, an embodiment of the present application provides a wireless connection control method, which includes the following steps 201 and 202.
It should be noted that, in the wireless connection control method provided in the embodiment of the present application, the execution body may be a wireless connection control device, or a control module in the wireless connection control device for executing the wireless connection control method may also be an electronic device (for example, the first electronic device in the embodiment of the present application, the electronic device may include the wireless connection control device provided in the embodiment of the present application, or plug-in the wireless connection control device). The wireless connection control method provided by the embodiment of the present application will be described by taking a wireless connection control device as an example.
Step 201, under the condition that the first electronic device establishes wireless connection with the bluetooth headset, the wireless connection control device obtains a first signal-to-noise ratio and a second signal-to-noise ratio.
The first snr may be an snr of the first electronic device, and the second snr may be an snr of the bluetooth headset.
In the embodiment of the application, under the condition that the first electronic equipment and the Bluetooth headset are in wireless connection, the wireless device can acquire the first signal-to-noise ratio and the second signal-to-noise ratio, so as to determine the quality of the wireless connection between the first electronic equipment and the Bluetooth headset.
In the embodiment of the present application, except for the specific description, the electronic device (for example, the first electronic device and the second electronic device in the embodiment of the present application) and the bluetooth headset may all establish a wireless connection through the bluetooth module, that is, the electronic device and the bluetooth headset are connected through bluetooth.
Optionally, in the embodiment of the present application, the radio frequency module in the first electronic device may acquire the first signal-to-noise ratio (i.e., the signal-to-noise ratio of the first electronic device) and send the first signal-to-noise ratio to the wireless connection control device. Correspondingly, the radio frequency module in the bluetooth headset can acquire the second signal-to-noise ratio (i.e. the signal-to-noise ratio of the bluetooth headset) and send the second signal-to-noise ratio to the wireless connection control device. Thus, the wireless connection control device can acquire the first signal-to-noise ratio and the second signal-to-noise ratio.
In the embodiment of the present application, after the wireless connection control device obtains the first signal-to-noise ratio and the second signal-to-noise ratio, the wireless connection control device may determine a wireless connection state between the first electronic device and the bluetooth headset according to the first signal-to-noise ratio and the second signal-to-noise ratio, so as to determine whether to enter a relay connection mode, whether to perform transmit power adjustment, whether to switch a radio frequency transmission mode, and so on.
In the embodiment of the application, under the condition that the first signal-to-noise ratio and the second signal-to-noise ratio are both larger, for example, the first signal-to-noise ratio is larger than or equal to a first threshold value, and the second signal-to-noise ratio is larger than or equal to a second threshold value, the wireless connection control device can determine that the channel condition between the first electronic device and the Bluetooth headset is better, that is, the wireless connection state between the first electronic device and the Bluetooth headset is good, the wireless connection between the first electronic device and the Bluetooth headset can be kept, that is, the Bluetooth headset is directly connected with the first electronic device, so that the optimal endurance capacity of the Bluetooth headset can be ensured.
Step 202, when the first preset switching condition is met, the wireless connection control device switches to the relay connection mode.
In the relay connection mode, the first electronic device is wirelessly connected with the second electronic device, the second electronic device is wirelessly connected with the bluetooth headset, and the distance between the bluetooth headset and the second electronic device can be smaller than the distance between the bluetooth headset and the first electronic device. The first preset switching condition may include at least one of: the first signal to noise ratio is less than a first threshold and the second signal to noise ratio is less than a second threshold.
In the embodiment of the present application, the wireless connection control device may switch to the relay connection mode when the first preset switching condition is satisfied. Specifically, when the first signal-to-noise ratio is smaller than the first threshold value and/or the second signal-to-noise ratio is smaller than the second threshold value, the wireless connection control device may switch to a relay connection mode, so that the first electronic device is in wireless connection with the second electronic device, and the second electronic device is in wireless connection with the bluetooth headset, so that the second electronic device may serve as a relay device to forward data between the first electronic device and the bluetooth headset. Thus, when the Bluetooth headset is far away from the first electronic device, data can still be transmitted between the Bluetooth headset and the first electronic device.
It can be appreciated that in the embodiment of the present application, after the switching to the relay connection mode, the connection between the first electronic device and the bluetooth headset may be disconnected.
In this embodiment of the present application, when the first signal-to-noise ratio is smaller than the first threshold value and/or the second signal-to-noise ratio is smaller than the second threshold value, the wireless connection control device may determine that a channel condition between the first electronic device and the bluetooth headset is poor, that is, a wireless connection state between the first electronic device and the bluetooth headset is poor, so that the wireless connection control device may switch to the relay connection mode.
In the embodiment of the present application, the relay connection mode may be a preset mode in the wireless connection control apparatus, where one electronic device (for example, the second electronic device in the embodiment of the present application) is allowed to serve as a relay device, and data between two devices (for example, the first electronic device and the bluetooth headset in the embodiment of the present application) connected to the electronic device is forwarded.
In the embodiment of the application, in the relay connection mode, the first electronic device may be used as a host or host (host), the bluetooth headset may be used as a user (client), and the second electronic device may be used as a repeater, so that the second electronic device may forward data between the first electronic device and the bluetooth headset, and further, the data transmission quality between the first electronic device and the bluetooth headset may be improved.
In the embodiment of the application, the second electronic device can be an electronic device successfully paired with the first electronic device and the Bluetooth headset, so that the wireless connection control device can directly control the devices to enter the relay connection mode.
Optionally, in the embodiment of the present application, the second electronic device may be any possible wearable electronic device such as a smart watch and smart glasses, so that in a use process of the bluetooth headset (the bluetooth headset is usually worn on an ear of a user in a use process), a relatively stable distance between the second electronic device and the bluetooth headset may be ensured, and when the bluetooth headset is far away from the first electronic device, the second electronic device may be used as a relay device, so that data between the first electronic device and the bluetooth headset may be transmitted by means of the second electronic device.
Optionally, in the embodiment of the present application, for a wireless connection manner between the first electronic device and the second electronic device: the first electronic device and the second electronic device may be connected through bluetooth, or may be connected through a Wireless-Fidelity (Wi-Fi) network, or may be connected through a cellular network (e.g., a 4G network, a 5G network, or the like). The method can be specifically determined according to actual use requirements, and the embodiment of the application is not limited.
The embodiment of the application provides a wireless connection control method, which can determine that the quality of wireless connection between a first electronic device and a Bluetooth headset is poor when the signal-to-noise ratio of the first electronic device is smaller than a first threshold value or the signal-to-noise ratio of the Bluetooth headset is smaller than a second threshold value, so that the first electronic device and a second electronic device which is closer to the Bluetooth headset can be in wireless connection by switching to a relay connection mode, and the second electronic device and the Bluetooth headset are in wireless connection, so that the second electronic device can serve as a relay device when the distance between the first electronic device and the Bluetooth headset is farther, and data between the first electronic device and the Bluetooth headset can be forwarded, and normal transmission of the data between the first electronic device and the Bluetooth headset can be ensured when the first electronic device and the Bluetooth headset are farther, so that the application range of the Bluetooth headset can be expanded.
Optionally, in the embodiment of the present application, under the condition that the first electronic device and the second electronic device are connected through bluetooth, after the wireless connection control device switches to the relay connection mode, the wireless connection control device may acquire the signal-to-noise ratio of the first electronic device and the signal-to-noise ratio of the bluetooth headset again, and acquire the signal-to-noise ratio of the second electronic device, and then determine whether to adjust the connection mode according to the three signal-to-noise ratios, so that the connection between the first electronic device and the bluetooth headset is more reliable, and the data transmission is more stable.
Optionally, after the step 202, the wireless connection control method provided by the embodiment of the present application may further include the following steps 203 and 204, or the steps 203 and 205.
Step 203, the wireless connection control device re-acquires the signal-to-noise ratio of the first electronic device to obtain a third signal-to-noise ratio, re-acquires the signal-to-noise ratio of the bluetooth headset to obtain a fourth signal-to-noise ratio, and acquires the signal-to-noise ratio of the second electronic device to obtain a fifth signal-to-noise ratio.
In the embodiment of the application, after the wireless connection control device is switched to the relay connection mode, the wireless connection control device can determine the wireless link connection quality between the first electronic device and the second electronic device and the Bluetooth headset by acquiring the third signal-to-noise ratio, the fourth signal-to-noise ratio and the fifth signal-to-noise ratio, so that the most suitable radio frequency transmission mode is selected according to the third signal-to-noise ratio, the fourth signal-to-noise ratio and the fifth signal-to-noise ratio.
In the embodiment of the present application, for a description of the manner in which the wireless connection control device re-acquires the third snr and the fourth snr, reference may be made specifically to the detailed description of acquiring the first snr and the second snr in the above embodiment, and for avoiding repetition, the description is omitted here.
Optionally, in the embodiment of the present application, the radio frequency module in the second electronic device may acquire the fifth signal-to-noise ratio (i.e., the signal-to-noise ratio of the second electronic device), and send the fifth signal-to-noise ratio to the wireless connection control device, so that the wireless connection control device may acquire the fifth signal-to-noise ratio.
For example, taking the wireless connection control device as the wireless connection state analysis module, the first electronic device as the mobile phone, and the second electronic device as the smart watch as an example, as shown in fig. 2, the wireless connection state analysis module 31 may receive the third signal-to-noise ratio sent by the mobile phone 32, the fourth signal-to-noise ratio sent by the bluetooth headset 33, and the fifth signal-to-noise ratio sent by the smart watch 34, so as to obtain the third signal-to-noise ratio, the fourth signal-to-noise ratio, and the fifth signal-to-noise ratio.
Step 204, the wireless connection control device switches to the first radio frequency transmission mode when the second preset switching condition is satisfied.
In the first radio frequency transmission mode, the first electronic equipment and the second electronic equipment are connected through a wireless network or a cellular network; the second preset switching condition may include at least one of: the third signal-to-noise ratio is smaller than the third threshold, the fourth signal-to-noise ratio is smaller than the fourth threshold, and the fifth signal-to-noise ratio is smaller than the fifth threshold; the third threshold is less than the first threshold and the fourth threshold is less than the second threshold.
In the embodiment of the application, the wireless connection control device can switch to the first radio frequency transmission mode under the condition that the second preset switching condition is met, so that the first electronic equipment and the second electronic equipment are connected through a wireless network or a cellular network, and the application range of the Bluetooth headset can be further enlarged.
In the embodiment of the application, when the second preset switching condition is met, the wireless connection control device can determine that the distance between the first electronic device and the second electronic device is far, and the current radio frequency transmission mode (the first electronic device and the second electronic device are connected through bluetooth) cannot meet the transmission performance requirement, so that the wireless connection control device can switch to the first radio frequency transmission mode.
In the embodiment of the application, because the transmitting power of the bluetooth module is generally lower (for example, lower than 8 dBm), and the transmitting power of the wireless network is generally higher than that of the bluetooth module, the transmitting distance of the wireless network can be more than 18dBm, so that the transmitting distance and the transmitting distance of the wireless network are larger than those of the bluetooth module based on the difference of radio frequency modes, and even if the distance between the first electronic device and the second electronic device is larger after the wireless network is switched to the first radio frequency transmitting mode, the data can be transmitted between the first electronic device and the second electronic device, and the second electronic device can normally transmit the data between the first electronic device and the bluetooth headset.
In the embodiment of the application, when the first electronic equipment is connected with the second electronic equipment through the cellular network, the data can be forwarded between the first electronic equipment and the second electronic equipment through the base station, so that very long-distance wireless data transmission between the first electronic equipment and the second electronic equipment can be realized, and further, the second electronic equipment can forward the data between the very long-distance first electronic equipment and the Bluetooth headset.
In the embodiment of the application, the transmission distances of the wireless network and the cellular network are larger than those of the Bluetooth module, so that if the second preset switching condition is met under the condition that the first electronic equipment and the second electronic equipment are connected through Bluetooth, the first radio frequency transmission mode can be switched, and the application range of the Bluetooth headset can be further enlarged.
Step 205, when the third preset switching condition is met, the wireless connection control device switches to the second radio frequency transmission mode.
In the second radio frequency transmission mode, the first electronic device is in wireless connection with the Bluetooth headset; the third preset switching condition may be that a third signal-to-noise ratio is greater than or equal to the first threshold, and a fourth signal-to-noise ratio is greater than or equal to the second threshold.
In the embodiment of the application, the wireless connection control device can switch to the second radio frequency transmission mode under the condition that the third preset switching condition is met, so that the first electronic equipment and the Bluetooth headset are in wireless connection, and the power consumption of the first electronic equipment can be reduced on the premise of ensuring the data transmission quality.
In the embodiment of the application, when the third preset switching condition is met, the wireless connection control device can determine that the current distance between the first electronic device and the Bluetooth headset is relatively short, and the first electronic device and the Bluetooth headset can be directly connected, so that the wireless connection control device can be switched to the second radio frequency transmission mode.
In the embodiment of the present application, after the second radio frequency transmission mode is switched, the first electronic device and the bluetooth headset may be disconnected from the second electronic device.
In the embodiment of the application, under the condition that the third preset switching condition is met, the condition of direct connection is provided between the first electronic equipment and the Bluetooth headset, so that the second radio frequency transmission mode can be switched, and the power consumption can be reduced.
Optionally, in the embodiment of the present application, when the third signal-to-noise ratio is greater than or equal to the third threshold and is smaller than the first threshold, and/or the fourth signal-to-noise ratio is greater than the fourth threshold and is smaller than the second threshold, the wireless connection control module may keep the relay connection mode, that is, the wireless connection control device does not perform any action of switching the modes.
Optionally, in the embodiment of the present application, when the first radio frequency transmission mode is that the first electronic device is connected to the second electronic device through the wireless network, after the wireless connection control device switches to the first radio frequency transmission mode, the wireless connection control device may acquire the signal-to-noise ratio of the first electronic device, the signal-to-noise ratio of the second electronic device, and the signal-to-noise ratio of the bluetooth headset again, and then determine whether the current radio frequency transmission mode is the optimal radio frequency transmission mode according to the three signal-to-noise ratios. If the current radio frequency transmission mode is not optimal, the wireless connection control device can switch to a more optimal radio frequency transmission mode according to actual conditions. Accordingly, if the current radio frequency transmission mode is optimal, the radio connection control device may maintain the current radio frequency transmission mode.
Optionally, after the step 204, the wireless connection control method provided in the embodiment of the present application may further include the following steps 206 and 207, or the steps 206 and 208.
Step 206, the wireless connection control device re-acquires the signal-to-noise ratio of the first electronic device to obtain a sixth signal-to-noise ratio, re-acquires the signal-to-noise ratio of the bluetooth headset to obtain a seventh signal-to-noise ratio, and re-acquires the signal-to-noise ratio of the second electronic device to obtain an eighth signal-to-noise ratio.
In the embodiment of the application, after the wireless connection control device is switched to the first radio frequency transmission mode, the wireless connection control device can acquire the signal to noise ratio of the first electronic device, the Bluetooth headset and the second electronic device again, so that the sixth signal to noise ratio, the seventh signal to noise ratio and the eighth signal to noise ratio can be obtained.
In the embodiment of the present application, for the description of obtaining the sixth signal-to-noise ratio, the seventh signal-to-noise ratio, and the eighth signal-to-noise ratio by the wireless connection control device, specific reference may be made to the detailed description of obtaining the first signal-to-noise ratio, the second signal-to-noise ratio, and the fifth signal-to-noise ratio by the wireless connection control device in the above embodiment, and for avoiding repetition, the detailed description is omitted herein.
Step 207, if the fourth preset switching condition is met, the wireless connection control device switches to the third radio frequency transmission mode.
In a third radio frequency transmission mode, the first electronic equipment is connected with the second electronic equipment through a cellular network; the fourth preset switching condition may include at least one of: the sixth signal-to-noise ratio is smaller than the sixth threshold, the seventh signal-to-noise ratio is smaller than the seventh threshold, and the eighth signal-to-noise ratio is smaller than the eighth threshold; the sixth threshold is smaller than the third threshold, the seventh threshold is smaller than the fourth threshold, and the eighth threshold is smaller than the fifth threshold.
In the embodiment of the application, if the first radio frequency transmission mode is that the first electronic device and the second electronic device are connected through the wireless network, the wireless connection control device can switch to the third radio frequency transmission mode if the fourth preset switching condition is met, so that the first electronic device and the second electronic device are connected through the cellular network, and the application range of the Bluetooth headset is further enlarged.
In the embodiment of the present application, if the first radio frequency transmission mode is that the first electronic device and the second electronic device are connected through the wireless network, the wireless connection control device may determine that the distance between the first electronic device and the second electronic device is far, where the first radio frequency transmission mode cannot meet the transmission performance requirement, so that the wireless connection control device may switch to the third radio frequency transmission mode.
For a description of the third radio frequency transmission mode (the first electronic device and the second electronic device are connected through the cellular network), reference may be specifically made to the detailed description in the foregoing embodiment, and for avoiding repetition, a description is omitted here.
In the embodiment of the present application, since the transmission distance of the cellular network is far greater than the transmission distance of the wireless network, the wireless connection control device may increase the transmission distance between the first electronic device and the second electronic device by switching to the third radio frequency transmission mode when the fourth preset switching condition is satisfied, thereby greatly increasing the transmission distance between the first electronic device and the bluetooth headset.
Step 208, if the fifth preset switching condition is met, the wireless connection control device switches to the fourth radio frequency transmission mode.
In the fourth radio frequency transmission mode, the first electronic device and the second electronic device are connected through Bluetooth; the fifth preset switching condition may be that the sixth signal-to-noise ratio is greater than or equal to the third threshold, the seventh signal-to-noise ratio is greater than or equal to the fourth threshold, and the eighth signal-to-noise ratio is greater than or equal to the fifth threshold.
In the embodiment of the application, after the wireless connection control device reacquires the signal-to-noise ratios of the first electronic device, the Bluetooth headset and the second electronic device to obtain the sixth signal-to-noise ratio, the seventh signal-to-noise ratio and the eighth signal-to-noise ratio, if the fifth preset switching condition is met, the wireless connection control device can switch to the fourth radio frequency transmission mode, so that the first electronic device and the second electronic device are connected through Bluetooth, and the power consumption of the first electronic device and the second electronic device can be reduced on the premise of ensuring the data transmission quality.
In the embodiment of the application, when the fifth preset switching condition is met, the wireless connection control device can determine that the distance between the first electronic device and the second electronic device is relatively short, so that the first electronic device and the second electronic device are connected through Bluetooth, the data transmission quality can be ensured, and the wireless connection control device can switch to the fourth radio frequency transmission mode, thereby reducing the power consumption.
Optionally, in the embodiment of the present application, the radio connection control module may maintain the first radio frequency transmission mode when the sixth signal-to-noise ratio is greater than or equal to a sixth threshold and less than a third threshold, and/or when the seventh signal-to-noise ratio is greater than a seventh threshold and less than a fourth threshold, and/or when the eighth signal-to-noise ratio is greater than an eighth threshold and less than a fifth threshold.
Optionally, in the embodiment of the present application, after the wireless connection control device switches to the third radio frequency transmission mode, the wireless connection control device may acquire the signal-to-noise ratios of the first electronic device, the bluetooth headset and the second electronic device again, so as to determine whether the current third radio frequency transmission mode can ensure normal data transmission between the first electronic device and the bluetooth headset, and if not, the wireless connection control device may switch to the second radio frequency transmission mode, and reestablish wireless connection between the first electronic device and the bluetooth headset.
Optionally, after the step 207, the wireless connection control method provided by the embodiment of the present application may further include the following steps 209 and 210.
Step 209, the wireless connection control device re-acquires the signal-to-noise ratio of the first electronic device to obtain a ninth signal-to-noise ratio, re-acquires the signal-to-noise ratio of the bluetooth headset to obtain a tenth signal-to-noise ratio, and re-acquires the signal-to-noise ratio of the second electronic device to obtain an eleventh signal-to-noise ratio.
In the embodiment of the application, after the wireless connection control device is switched to the third radio frequency transmission mode, the wireless connection control device can acquire the signal to noise ratio of the first electronic device, the Bluetooth headset and the second electronic device again, so that the ninth signal to noise ratio, the tenth signal to noise ratio and the eleventh signal to noise ratio can be obtained.
In the embodiment of the present application, for the description of obtaining the ninth signal-to-noise ratio, the tenth signal-to-noise ratio, and the eleventh signal-to-noise ratio by the wireless connection control device, specific reference may be made to the detailed description of obtaining the first signal-to-noise ratio, the second signal-to-noise ratio, and the fifth signal-to-noise ratio by the wireless connection control device in the above embodiment, and for avoiding repetition, the detailed description is omitted herein.
Step 210, if the sixth preset switching condition is met, the wireless connection control device switches to the second radio frequency transmission mode.
Wherein, the sixth preset switching condition may include at least one of: the ninth signal-to-noise ratio is less than the ninth threshold, the tenth signal-to-noise ratio is less than the tenth threshold, and the eleventh signal-to-noise ratio is less than the eleventh threshold; the ninth threshold is less than the sixth threshold, the tenth threshold is less than the seventh threshold, and the eleventh threshold is less than the eighth threshold.
In the embodiment of the present application, after the wireless connection control device switches to the third radio frequency transmission mode, if the signal-to-noise ratio (including at least one of the ninth signal-to-noise ratio, the tenth signal-to-noise ratio, and the eleventh signal-to-noise ratio) acquired by the wireless connection control device meets the sixth preset switching condition, the wireless connection control device may switch to the second radio frequency transmission mode.
In the embodiment of the present application, for the description of the second rf transmission mode, reference may be made to the detailed description of the embodiment, and for avoiding repetition, the description is omitted here.
Optionally, in the embodiment of the present application, in a case where the ninth signal-to-noise ratio is greater than or equal to a ninth threshold and less than a sixth threshold, and/or the tenth signal-to-noise ratio is greater than a tenth threshold and less than a seventh threshold, and/or the eleventh signal-to-noise ratio is greater than an eleventh threshold and less than an eighth threshold, the wireless connection control module may maintain the third radio frequency transmission mode.
In the embodiment of the application, under the condition that the sixth preset switching condition is met, the wireless connection control device can determine that the connection state of the whole wireless link is very poor and cannot meet the normal data transmission requirement, so that the wireless connection control device can switch to the second radio frequency transmission mode, namely, the wireless connection control device disconnects the wireless link and re-performs wireless connection between the first electronic device and the Bluetooth headset, thereby determining a relatively suitable data transmission link between the first electronic device and the Bluetooth headset.
The wireless connection control device according to the embodiment of the present application will be described below by taking an example of a method for performing wireless connection control by the wireless connection control device according to the embodiment of the present application.
As shown in fig. 3, an embodiment of the present application provides a wireless connection control apparatus 400, where the wireless connection control apparatus 400 includes: an acquisition module 401 and a switching module 402. The obtaining module 401 is configured to obtain a first signal-to-noise ratio and a second signal-to-noise ratio when the first electronic device establishes a wireless connection with the bluetooth headset, where the first signal-to-noise ratio is the signal-to-noise ratio of the first electronic device, and the second signal-to-noise ratio is the signal-to-noise ratio of the bluetooth headset; a switching module 402, configured to switch to a relay connection mode when a first preset switching condition is met, where in the relay connection mode, a first electronic device is wirelessly connected to a second electronic device, the second electronic device is wirelessly connected to a bluetooth headset, and a distance between the bluetooth headset and the second electronic device is smaller than a distance between the bluetooth headset and the first electronic device; the first preset switching condition comprises at least one of the following: the first signal to noise ratio is less than a first threshold and the second signal to noise ratio is less than a second threshold.
The embodiment of the application provides a wireless connection control device, which can determine that the quality of wireless connection between a first electronic device and a Bluetooth headset is poor when the signal-to-noise ratio of the first electronic device is smaller than a first threshold value or the signal-to-noise ratio of the Bluetooth headset is smaller than a second threshold value, so that the wireless connection between the first electronic device and a second electronic device which is closer to the Bluetooth headset can be realized by switching to a relay connection mode, and the wireless connection between the second electronic device and the Bluetooth headset can be realized.
Optionally, the first electronic device is connected with the second electronic device through bluetooth; the obtaining module 401 is further configured to re-obtain a signal-to-noise ratio of the first electronic device after the switching module 402 switches to the relay connection mode, obtain a third signal-to-noise ratio, re-obtain a signal-to-noise ratio of the bluetooth headset, obtain a fourth signal-to-noise ratio, and obtain a signal-to-noise ratio of the second electronic device, and obtain a fifth signal-to-noise ratio; the switching module 402 is further configured to switch to a first radio frequency transmission mode when a second preset switching condition is met, where the first electronic device and the second electronic device are connected through a wireless network or a cellular network; wherein the second preset switching condition includes at least one of: the third signal-to-noise ratio is smaller than the third threshold, the fourth signal-to-noise ratio is smaller than the fourth threshold, and the fifth signal-to-noise ratio is smaller than the fifth threshold; the third threshold is less than the first threshold and the fourth threshold is less than the second threshold.
According to the wireless connection control device provided by the embodiment of the application, the transmission distances of the wireless network and the cellular network are larger than those of the Bluetooth module, so that if the second preset switching condition is met under the condition that the first electronic device and the second electronic device are connected through Bluetooth, the wireless connection control device can be switched to the first radio frequency transmission mode, and the application range of the Bluetooth headset can be further enlarged.
Optionally, the switching module 402 is further configured to re-acquire the signal-to-noise ratio of the first electronic device, obtain a third signal-to-noise ratio, re-acquire the signal-to-noise ratio of the bluetooth headset, obtain a fourth signal-to-noise ratio, and acquire the signal-to-noise ratio of the second electronic device, and switch to the second radio frequency transmission mode when the third preset switching condition is satisfied after the fifth signal-to-noise ratio is obtained; in a second radio frequency transmission mode, the first electronic equipment is in wireless connection with the Bluetooth headset; the third preset switching condition is that the third signal-to-noise ratio is greater than or equal to the first threshold value and the fourth signal-to-noise ratio is greater than or equal to the second threshold value.
In the wireless connection control device provided by the embodiment of the application, under the condition that the third preset switching condition is met, the condition of direct connection is provided between the first electronic equipment and the Bluetooth headset, so that the wireless connection control device can be switched to the second radio frequency transmission mode, and the power consumption can be reduced.
Optionally, the first radio frequency transmission mode is that the first electronic device and the second electronic device are connected through a wireless network; the obtaining module 401 is further configured to re-obtain a signal-to-noise ratio of the first electronic device after the switching module 402 switches to the first radio frequency transmission mode, obtain a sixth signal-to-noise ratio, re-obtain a signal-to-noise ratio of the bluetooth headset, obtain a seventh signal-to-noise ratio, and re-obtain a signal-to-noise ratio of the second electronic device, and obtain an eighth signal-to-noise ratio; the switching module 402 is further configured to switch to a third radio frequency transmission mode when a fourth preset switching condition is met, where the first electronic device and the second electronic device are connected through a cellular network; the fourth preset switching condition comprises at least one of the following: the sixth signal-to-noise ratio is smaller than the sixth threshold, the seventh signal-to-noise ratio is smaller than the seventh threshold, and the eighth signal-to-noise ratio is smaller than the eighth threshold; the sixth threshold is less than the third threshold, the seventh threshold is less than the fourth threshold, and the eighth threshold is less than the fifth threshold.
According to the wireless connection control device provided by the embodiment of the application, the transmission distance of the cellular network is far longer than that of the wireless network, so that the wireless connection control device can increase the transmission distance between the first electronic equipment and the second electronic equipment by switching to the third radio frequency transmission mode under the condition that the fourth preset switching condition is met, and the transmission distance between the first electronic equipment and the Bluetooth headset is greatly increased.
Optionally, the switching module 402 is further configured to re-acquire the signal-to-noise ratio of the first electronic device at the acquiring module 401 to obtain a sixth signal-to-noise ratio, re-acquire the signal-to-noise ratio of the bluetooth headset to obtain a seventh signal-to-noise ratio, and re-acquire the signal-to-noise ratio of the second electronic device to obtain an eighth signal-to-noise ratio, and switch to a fourth radio frequency transmission mode when a fifth preset switching condition is met, where the first electronic device and the second electronic device are connected through bluetooth in the fourth radio frequency transmission mode; the fifth preset switching condition is that the sixth signal-to-noise ratio is greater than or equal to the third threshold, the seventh signal-to-noise ratio is greater than or equal to the fourth threshold, and the eighth signal-to-noise ratio is greater than or equal to the fifth threshold.
According to the wireless connection control device provided by the embodiment of the application, when the fifth preset switching condition is met, the wireless connection control device can determine that the distance between the first electronic device and the second electronic device is relatively short, so that the first electronic device and the second electronic device are connected through Bluetooth, the data transmission quality can be ensured, and the wireless connection control device can be switched to the fourth radio frequency transmission mode, and therefore the power consumption can be reduced.
Optionally, the obtaining module 401 is further configured to re-obtain the signal-to-noise ratio of the first electronic device after the switching module 402 switches to the third radio frequency transmission mode, obtain a ninth signal-to-noise ratio, re-obtain the signal-to-noise ratio of the bluetooth headset, obtain a tenth signal-to-noise ratio, and re-obtain the signal-to-noise ratio of the second electronic device, and obtain an eleventh signal-to-noise ratio; the switching module 402 is further configured to switch to the second radio frequency transmission mode if a sixth preset switching condition is satisfied; wherein the sixth preset switching condition includes at least one of: the ninth signal-to-noise ratio is less than the ninth threshold, the tenth signal-to-noise ratio is less than the tenth threshold, and the eleventh signal-to-noise ratio is less than the eleventh threshold; the ninth threshold is less than the sixth threshold, the tenth threshold is less than the seventh threshold, and the eleventh threshold is less than the eighth threshold.
In the wireless connection control device provided by the embodiment of the application, under the condition that the sixth preset switching condition is met, the wireless connection control device can determine that the connection state of the whole wireless link is very poor and cannot meet the normal data transmission requirement, so that the wireless connection control device can switch to the second radio frequency transmission mode, namely, the wireless connection control device disconnects the wireless link and re-performs wireless connection between the first electronic equipment and the Bluetooth headset, thereby determining a relatively suitable data transmission link between the first electronic equipment and the Bluetooth headset.
The wireless connection control device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in an electronic apparatus (for example, the first electronic apparatus in the embodiment of the present application). The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), and the like, and the non-mobile electronic device may be a personal computer (personal computer, PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not limited in particular.
The wireless connection control device in the embodiment of the application can be a device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The wireless connection control device provided by the embodiment of the application can realize each process realized by the method embodiment in the embodiment of the application, and in order to avoid repetition, the description is omitted.
Optionally, as shown in fig. 4, an electronic device 500 (for example, the first electronic device in the embodiment of the present application) is further provided in the embodiment of the present application, which includes a processor 501, a memory 502, and a program or an instruction stored in the memory 502 and capable of running on the processor 501, where the program or the instruction implements each process of the above-mentioned embodiment of the wireless connection control method when executed by the processor 501, and the same technical effects are achieved, and for avoiding repetition, a description is omitted here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 5 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 (e.g., the first electronic device in an embodiment of the present application) includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further include a power source 111 (e.g., a battery) for powering the various components, which may be logically connected to the processor 110 by a power management system to perform functions such as managing charging, discharging, and power consumption by the power management system. The electronic device structure shown in fig. 5 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The processor 110 is configured to obtain a first signal-to-noise ratio and a second signal-to-noise ratio when the first electronic device establishes a wireless connection with the bluetooth headset, where the first signal-to-noise ratio is the signal-to-noise ratio of the first electronic device, and the second signal-to-noise ratio is the signal-to-noise ratio of the bluetooth headset; under the condition that a first preset switching condition is met, switching to a relay connection mode, wherein in the relay connection mode, the first electronic equipment is in wireless connection with the second electronic equipment, the second electronic equipment is in wireless connection with the Bluetooth headset, and the distance between the Bluetooth headset and the second electronic equipment is smaller than the distance between the Bluetooth headset and the first electronic equipment; the first preset switching condition comprises at least one of the following: the first signal to noise ratio is less than a first threshold and the second signal to noise ratio is less than a second threshold.
The embodiment of the application provides a wireless connection control device, which can determine that the quality of wireless connection between a first electronic device and a Bluetooth headset is poor when the signal-to-noise ratio of the first electronic device is smaller than a first threshold value or the signal-to-noise ratio of the Bluetooth headset is smaller than a second threshold value, so that the wireless connection between the first electronic device and a second electronic device which is closer to a Bluetooth headset can be realized by switching to a relay connection mode, and the wireless connection between the second electronic device and the Bluetooth headset can be realized, so that the second electronic device can be used as a relay device when the distance between the first electronic device and the Bluetooth headset is farther, and data between the first electronic device and the Bluetooth headset can be forwarded, and normal transmission of the data between the first electronic device and the Bluetooth headset can be ensured when the first electronic device and the Bluetooth headset are farther, so that the application range of the Bluetooth headset can be expanded.
Optionally, the first electronic device is connected with the second electronic device through bluetooth; the processor 110 is further configured to re-acquire a signal-to-noise ratio of the first electronic device after switching to the relay connection mode, obtain a third signal-to-noise ratio, re-acquire a signal-to-noise ratio of the bluetooth headset, obtain a fourth signal-to-noise ratio, and acquire a signal-to-noise ratio of the second electronic device, and obtain a fifth signal-to-noise ratio; under the condition that the second preset switching condition is met, switching to a first radio frequency transmission mode, wherein in the first radio frequency transmission mode, the first electronic equipment and the second electronic equipment are connected through a wireless network or a cellular network; wherein the second preset switching condition includes at least one of: the third signal-to-noise ratio is smaller than the third threshold, the fourth signal-to-noise ratio is smaller than the fourth threshold, and the fifth signal-to-noise ratio is smaller than the fifth threshold; the third threshold is less than the first threshold and the fourth threshold is less than the second threshold.
According to the wireless connection control device provided by the embodiment of the application, the transmission distances of the wireless network and the cellular network are larger than those of the Bluetooth module, so that if the second preset switching condition is met under the condition that the first electronic device and the second electronic device are connected through Bluetooth, the wireless connection control device can be switched to the first radio frequency transmission mode, and the application range of the Bluetooth headset can be further enlarged.
Optionally, the processor 110 is further configured to, after re-acquiring the signal-to-noise ratio of the first electronic device, obtain a third signal-to-noise ratio, re-acquire the signal-to-noise ratio of the bluetooth headset, obtain a fourth signal-to-noise ratio, and acquire the signal-to-noise ratio of the second electronic device, and after obtaining the fifth signal-to-noise ratio, switch to the second radio frequency transmission mode if a third preset switching condition is satisfied; in a second radio frequency transmission mode, the first electronic equipment is in wireless connection with the Bluetooth headset; the third preset switching condition is that the third signal-to-noise ratio is greater than or equal to the first threshold value and the fourth signal-to-noise ratio is greater than or equal to the second threshold value.
In the wireless connection control device provided by the embodiment of the application, under the condition that the third preset switching condition is met, the condition of direct connection is provided between the first electronic equipment and the Bluetooth headset, so that the wireless connection control device can be switched to the second radio frequency transmission mode, and the power consumption can be reduced.
Optionally, the first radio frequency transmission mode is that the first electronic device and the second electronic device are connected through a wireless network; the processor 110 is further configured to re-acquire a signal-to-noise ratio of the first electronic device after switching to the first radio frequency transmission mode, obtain a sixth signal-to-noise ratio, re-acquire a signal-to-noise ratio of the bluetooth headset, obtain a seventh signal-to-noise ratio, and re-acquire a signal-to-noise ratio of the second electronic device, and obtain an eighth signal-to-noise ratio; under the condition that a fourth preset switching condition is met, switching to a third radio frequency transmission mode, wherein in the third radio frequency transmission mode, the first electronic equipment and the second electronic equipment are connected through a cellular network; the fourth preset switching condition comprises at least one of the following: the sixth signal-to-noise ratio is smaller than the sixth threshold, the seventh signal-to-noise ratio is smaller than the seventh threshold, and the eighth signal-to-noise ratio is smaller than the eighth threshold; the sixth threshold is less than the third threshold, the seventh threshold is less than the fourth threshold, and the eighth threshold is less than the fifth threshold.
According to the wireless connection control device provided by the embodiment of the application, the transmission distance of the cellular network is far longer than that of the wireless network, so that the wireless connection control device can increase the transmission distance between the first electronic equipment and the second electronic equipment by switching to the third radio frequency transmission mode under the condition that the fourth preset switching condition is met, and the transmission distance between the first electronic equipment and the Bluetooth headset is greatly increased.
Optionally, the processor 110 is further configured to, after re-acquiring the signal-to-noise ratio of the electronic device, obtain a sixth signal-to-noise ratio, re-acquire the signal-to-noise ratio of the bluetooth headset, obtain a seventh signal-to-noise ratio, and re-acquire the signal-to-noise ratio of the second electronic device, switch to a fourth radio frequency transmission mode when a fifth preset switching condition is met after obtaining the eighth signal-to-noise ratio, and in the fourth radio frequency transmission mode, connect the first electronic device and the second electronic device through bluetooth; the fifth preset switching condition is that the sixth signal-to-noise ratio is greater than or equal to the third threshold, the seventh signal-to-noise ratio is greater than or equal to the fourth threshold, and the eighth signal-to-noise ratio is greater than or equal to the fifth threshold.
According to the wireless connection control device provided by the embodiment of the application, when the fifth preset switching condition is met, the wireless connection control device can determine that the distance between the first electronic device and the second electronic device is relatively short, so that the first electronic device and the second electronic device are connected through Bluetooth, the data transmission quality can be ensured, and the wireless connection control device can be switched to the fourth radio frequency transmission mode, and therefore the power consumption can be reduced.
Optionally, the processor 110 is further configured to re-acquire the signal-to-noise ratio of the first electronic device after switching to the third radio frequency transmission mode, obtain a ninth signal-to-noise ratio, re-acquire the signal-to-noise ratio of the bluetooth headset, obtain a tenth signal-to-noise ratio, and re-acquire the signal-to-noise ratio of the second electronic device, and obtain an eleventh signal-to-noise ratio; and switching to a second radio frequency transmission mode under the condition that a sixth preset switching condition is met; wherein the sixth preset switching condition includes at least one of: the ninth signal-to-noise ratio is less than the ninth threshold, the tenth signal-to-noise ratio is less than the tenth threshold, and the eleventh signal-to-noise ratio is less than the eleventh threshold; the ninth threshold is less than the sixth threshold, the tenth threshold is less than the seventh threshold, and the eleventh threshold is less than the eighth threshold.
In the wireless connection control device provided by the embodiment of the application, under the condition that the sixth preset switching condition is met, the wireless connection control device can determine that the connection state of the whole wireless link is very poor and cannot meet the normal data transmission requirement, so that the wireless connection control device can switch to the second radio frequency transmission mode, namely, the wireless connection control device disconnects the wireless link and re-performs wireless connection between the first electronic equipment and the Bluetooth headset, thereby determining a relatively suitable data transmission link between the first electronic equipment and the Bluetooth headset.
It should be noted that, in the embodiment of the present application, the acquiring module 401 and the switching module 402 in the structural schematic diagram of the wireless connection control device (for example, the foregoing fig. 3) may be implemented by the processor 110.
It should be appreciated that in embodiments of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein. Memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the above-mentioned wireless connection control method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
The processor is a processor in the electronic device in the above embodiment. The readable storage medium may include a computer readable storage medium such as a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic or optical disk, and the like.
The embodiment of the application further provides a chip, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions to realize the processes of the wireless connection control method embodiment, and the same technical effects can be achieved, so that repetition is avoided, and the description is omitted.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing an electronic device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method of the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (10)

1. A wireless connection control method, the method comprising:
under the condition that a first electronic device and a Bluetooth headset are in wireless connection, a first signal-to-noise ratio and a second signal-to-noise ratio are obtained, wherein the first signal-to-noise ratio is the signal-to-noise ratio of the first electronic device, and the second signal-to-noise ratio is the signal-to-noise ratio of the Bluetooth headset;
under the condition that a first preset switching condition is met, switching to a relay connection mode, wherein in the relay connection mode, the first electronic equipment and the second electronic equipment are connected through Bluetooth, the second electronic equipment is connected with the Bluetooth headset in a wireless mode, the distance between the Bluetooth headset and the second electronic equipment is smaller than the distance between the Bluetooth headset and the first electronic equipment, and the first preset switching condition comprises at least one of the following: the first signal-to-noise ratio is smaller than a first threshold value, and the second signal-to-noise ratio is smaller than a second threshold value;
after the switching to the relay connection mode, the method further includes:
re-acquiring the signal-to-noise ratio of the first electronic device to obtain a third signal-to-noise ratio, re-acquiring the signal-to-noise ratio of the Bluetooth headset to obtain a fourth signal-to-noise ratio, and acquiring the signal-to-noise ratio of the second electronic device to obtain a fifth signal-to-noise ratio;
Under the condition that a second preset switching condition is met, switching to a first radio frequency transmission mode, wherein in the first radio frequency transmission mode, the first electronic equipment and the second electronic equipment are connected through a wireless fidelity (WiFi) network or a cellular network;
wherein the second preset switching condition includes at least one of: the third signal-to-noise ratio is smaller than a third threshold, the fourth signal-to-noise ratio is smaller than a fourth threshold, and the fifth signal-to-noise ratio is smaller than a fifth threshold; the third threshold is less than the first threshold and the fourth threshold is less than the second threshold;
in the first radio frequency transmission mode, when the first electronic equipment and the second electronic equipment are connected through a WiFi network;
after the switching to the first radio frequency transmission mode, the method further comprises:
re-acquiring the signal-to-noise ratio of the first electronic device to obtain a sixth signal-to-noise ratio, re-acquiring the signal-to-noise ratio of the Bluetooth headset to obtain a seventh signal-to-noise ratio, and re-acquiring the signal-to-noise ratio of the second electronic device to obtain an eighth signal-to-noise ratio;
under the condition that a fourth preset switching condition is met, switching to a third radio frequency transmission mode, wherein in the third radio frequency transmission mode, the first electronic equipment and the second electronic equipment are connected through a cellular network;
Wherein the fourth preset switching condition includes at least one of: the sixth signal-to-noise ratio is smaller than a sixth threshold, the seventh signal-to-noise ratio is smaller than a seventh threshold, and the eighth signal-to-noise ratio is smaller than an eighth threshold; the sixth threshold is less than the third threshold, the seventh threshold is less than the fourth threshold, and the eighth threshold is less than the fifth threshold.
2. The method of claim 1, wherein after the third signal-to-noise ratio, the fourth signal-to-noise ratio, and the fifth signal-to-noise ratio are obtained, the method further comprises:
switching to a second radio frequency transmission mode under the condition that a third preset switching condition is met; in the second radio frequency transmission mode, the first electronic equipment is in wireless connection with the Bluetooth headset;
the third preset switching condition is that the third signal-to-noise ratio is greater than or equal to the first threshold value and the fourth signal-to-noise ratio is greater than or equal to the second threshold value.
3. The method of claim 1, wherein after the sixth signal-to-noise ratio, the seventh signal-to-noise ratio, and the eighth signal-to-noise ratio are obtained, the method further comprises:
under the condition that a fifth preset switching condition is met, switching to a fourth radio frequency transmission mode, wherein in the fourth radio frequency transmission mode, the first electronic equipment is connected with the second electronic equipment through Bluetooth;
The fifth preset switching condition is that the sixth signal-to-noise ratio is greater than or equal to a third threshold, the seventh signal-to-noise ratio is greater than or equal to a fourth threshold, and the eighth signal-to-noise ratio is greater than or equal to a fifth threshold.
4. The method of claim 1, wherein after the switching to the third radio frequency transmission mode, the method further comprises:
re-acquiring the signal-to-noise ratio of the first electronic device to obtain a ninth signal-to-noise ratio, re-acquiring the signal-to-noise ratio of the Bluetooth headset to obtain a tenth signal-to-noise ratio, and re-acquiring the signal-to-noise ratio of the second electronic device to obtain an eleventh signal-to-noise ratio;
switching to a second radio frequency transmission mode under the condition that a sixth preset switching condition is met;
wherein the sixth preset switching condition includes at least one of: the ninth signal-to-noise ratio is less than a ninth threshold, the tenth signal-to-noise ratio is less than a tenth threshold, and the eleventh signal-to-noise ratio is less than an eleventh threshold; the ninth threshold is less than the sixth threshold, the tenth threshold is less than the seventh threshold, and the eleventh threshold is less than the eighth threshold.
5. A wireless connection control device, characterized in that the wireless connection control device comprises: the device comprises an acquisition module and a switching module;
The acquisition module is used for acquiring a first signal-to-noise ratio and a second signal-to-noise ratio under the condition that the first electronic equipment and the Bluetooth headset are in wireless connection, wherein the first signal-to-noise ratio is the signal-to-noise ratio of the first electronic equipment, and the second signal-to-noise ratio is the signal-to-noise ratio of the Bluetooth headset;
the switching module is configured to switch to a relay connection mode when a first preset switching condition is met, in the relay connection mode, the first electronic device and the second electronic device are connected through bluetooth, the second electronic device and the bluetooth headset are connected wirelessly, a distance between the bluetooth headset and the second electronic device is smaller than a distance between the bluetooth headset and the first electronic device, and the first preset switching condition includes at least one of: the first signal-to-noise ratio is smaller than a first threshold value, and the second signal-to-noise ratio is smaller than a second threshold value;
the obtaining module is further configured to re-obtain a signal-to-noise ratio of the first electronic device after the switching module switches to the relay connection mode, obtain a third signal-to-noise ratio, re-obtain a signal-to-noise ratio of the bluetooth headset, obtain a fourth signal-to-noise ratio, and obtain a signal-to-noise ratio of the second electronic device, and obtain a fifth signal-to-noise ratio;
The switching module is further configured to switch to a first radio frequency transmission mode when a second preset switching condition is met, where the first electronic device and the second electronic device are connected through a WiFi network or a cellular network in the first radio frequency transmission mode;
wherein the second preset switching condition includes at least one of: the third signal-to-noise ratio is smaller than a third threshold, the fourth signal-to-noise ratio is smaller than a fourth threshold, and the fifth signal-to-noise ratio is smaller than a fifth threshold; the third threshold is less than the first threshold and the fourth threshold is less than the second threshold;
in the first radio frequency transmission mode, when the first electronic equipment and the second electronic equipment are connected through a WiFi network;
the acquiring module is further configured to re-acquire a signal-to-noise ratio of the first electronic device after the switching module switches to the first radio frequency transmission mode, obtain a sixth signal-to-noise ratio, re-acquire the signal-to-noise ratio of the bluetooth headset, obtain a seventh signal-to-noise ratio, and re-acquire the signal-to-noise ratio of the second electronic device, and obtain an eighth signal-to-noise ratio;
the switching module is further configured to switch to a third radio frequency transmission mode when a fourth preset switching condition is met, where in the third radio frequency transmission mode, the first electronic device and the second electronic device are connected through a cellular network;
Wherein the fourth preset switching condition includes at least one of: the sixth signal-to-noise ratio is smaller than a sixth threshold, the seventh signal-to-noise ratio is smaller than a seventh threshold, and the eighth signal-to-noise ratio is smaller than an eighth threshold; the sixth threshold is less than the third threshold, the seventh threshold is less than the fourth threshold, and the eighth threshold is less than the fifth threshold.
6. The wireless connection control device according to claim 5, wherein the switching module is further configured to switch to a second radio frequency transmission mode if a third preset switching condition is met after the obtaining module obtains the third signal-to-noise ratio, the fourth signal-to-noise ratio, and the fifth signal-to-noise ratio; in the second radio frequency transmission mode, the first electronic equipment is in wireless connection with the Bluetooth headset;
the third preset switching condition is that the third signal-to-noise ratio is greater than or equal to the first threshold value and the fourth signal-to-noise ratio is greater than or equal to the second threshold value.
7. The wireless connection control device according to claim 5, wherein the switching module is further configured to switch to a fourth radio frequency transmission mode when a fifth preset switching condition is met after the obtaining module obtains the sixth signal-to-noise ratio, the seventh signal-to-noise ratio, and the eighth signal-to-noise ratio, where the first electronic device and the second electronic device are connected through bluetooth;
The fifth preset switching condition is that the sixth signal-to-noise ratio is greater than or equal to a third threshold, the seventh signal-to-noise ratio is greater than or equal to a fourth threshold, and the eighth signal-to-noise ratio is greater than or equal to a fifth threshold.
8. The wireless connection control device according to claim 5, wherein the obtaining module is further configured to re-obtain a signal-to-noise ratio of the first electronic device after the switching module switches to the third radio frequency transmission mode, obtain a ninth signal-to-noise ratio, re-obtain a signal-to-noise ratio of the bluetooth headset, obtain a tenth signal-to-noise ratio, and re-obtain a signal-to-noise ratio of the second electronic device, obtain an eleventh signal-to-noise ratio;
the switching module is further configured to switch to a second radio frequency transmission mode when a sixth preset switching condition is met;
wherein the sixth preset switching condition includes at least one of: the ninth signal-to-noise ratio is less than a ninth threshold, the tenth signal-to-noise ratio is less than a tenth threshold, and the eleventh signal-to-noise ratio is less than an eleventh threshold; the ninth threshold is less than the sixth threshold, the tenth threshold is less than the seventh threshold, and the eleventh threshold is less than the eighth threshold.
9. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the radio connection control method as claimed in any one of claims 1 to 4.
10. A readable storage medium, wherein a program or instructions are stored on the readable storage medium, which program or instructions, when executed by a processor, implement the steps of the radio connection control method according to any one of claims 1-4.
CN202010886328.3A 2020-08-28 2020-08-28 Wireless connection control method and device and electronic equipment Active CN111988771B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010886328.3A CN111988771B (en) 2020-08-28 2020-08-28 Wireless connection control method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010886328.3A CN111988771B (en) 2020-08-28 2020-08-28 Wireless connection control method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111988771A CN111988771A (en) 2020-11-24
CN111988771B true CN111988771B (en) 2023-09-15

Family

ID=73440852

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010886328.3A Active CN111988771B (en) 2020-08-28 2020-08-28 Wireless connection control method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111988771B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112954602B (en) * 2021-04-28 2022-11-29 北京声智科技有限公司 Voice control method, transmission method, device, electronic equipment and storage medium
CN113852945B (en) * 2021-10-12 2024-03-29 维沃移动通信有限公司 Electronic equipment and communication method thereof
CN116744267A (en) * 2022-11-16 2023-09-12 荣耀终端有限公司 Data processing method, system, electronic device and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106504506A (en) * 2016-12-29 2017-03-15 深圳市秦通通讯有限公司 Intelligent electric appliance control system and method based on Bluetooth technology
CN106686541A (en) * 2017-03-22 2017-05-17 北京小米移动软件有限公司 Bluetooth relaying method and device
CN107819922A (en) * 2017-10-09 2018-03-20 维沃移动通信有限公司 Relaying method of adjustment, wireless headset and the mobile terminal of a kind of wireless headset
CN207664659U (en) * 2017-12-11 2018-07-27 刘广宏 A kind of on-vehicle Bluetooth earphone cradle that band power-off is reminded
WO2019196101A1 (en) * 2018-04-13 2019-10-17 万魔声学科技有限公司 Method and apparatus for switching working mode of earphone, and audio circuit, earphone and earphone system
CN110381485A (en) * 2019-06-14 2019-10-25 华为技术有限公司 Bluetooth communication method, TWS bluetooth headset and terminal
EP3629594A1 (en) * 2018-09-30 2020-04-01 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Bluetooth earphone connecting method, electronic device and storage medium
CN210351670U (en) * 2019-05-24 2020-04-17 深圳市小瑞科技股份有限公司 System for increasing transmission distance of Bluetooth headset
CN111083684A (en) * 2019-12-23 2020-04-28 维沃移动通信有限公司 Method for controlling electronic equipment and electronic equipment
CN111131885A (en) * 2019-12-24 2020-05-08 维沃移动通信有限公司 Play control method and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9370034B2 (en) * 2010-09-21 2016-06-14 Cisco Technology, Inc. Method and apparatus for a Bluetooth-enabled Ethernet interface

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106504506A (en) * 2016-12-29 2017-03-15 深圳市秦通通讯有限公司 Intelligent electric appliance control system and method based on Bluetooth technology
CN106686541A (en) * 2017-03-22 2017-05-17 北京小米移动软件有限公司 Bluetooth relaying method and device
CN107819922A (en) * 2017-10-09 2018-03-20 维沃移动通信有限公司 Relaying method of adjustment, wireless headset and the mobile terminal of a kind of wireless headset
CN207664659U (en) * 2017-12-11 2018-07-27 刘广宏 A kind of on-vehicle Bluetooth earphone cradle that band power-off is reminded
WO2019196101A1 (en) * 2018-04-13 2019-10-17 万魔声学科技有限公司 Method and apparatus for switching working mode of earphone, and audio circuit, earphone and earphone system
EP3629594A1 (en) * 2018-09-30 2020-04-01 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Bluetooth earphone connecting method, electronic device and storage medium
CN210351670U (en) * 2019-05-24 2020-04-17 深圳市小瑞科技股份有限公司 System for increasing transmission distance of Bluetooth headset
CN110381485A (en) * 2019-06-14 2019-10-25 华为技术有限公司 Bluetooth communication method, TWS bluetooth headset and terminal
CN111083684A (en) * 2019-12-23 2020-04-28 维沃移动通信有限公司 Method for controlling electronic equipment and electronic equipment
CN111131885A (en) * 2019-12-24 2020-05-08 维沃移动通信有限公司 Play control method and electronic equipment

Also Published As

Publication number Publication date
CN111988771A (en) 2020-11-24

Similar Documents

Publication Publication Date Title
CN111988771B (en) Wireless connection control method and device and electronic equipment
CN109819450B (en) Signal receiving method, device and terminal
CN107231159B (en) Radio frequency interference processing method, device, storage medium and terminal
US20230130963A1 (en) Method for processing relax measurement parameter update, and terminal device
CN110753389A (en) Network control method and electronic equipment
CN110460352B (en) Communication control method and related equipment
CN108880631B (en) Information receiving and transmitting switching method and terminal
CN112769445B (en) Radio frequency circuit, signal transmitting method and electronic equipment
CN110289883B (en) Radio frequency circuit, terminal equipment and circuit control method
CN108377157B (en) Control method and device of Wi-Fi antenna
CN112788676A (en) Cell management method, cell management configuration method, terminal and network side equipment
CN110099434B (en) Power adjustment method, terminal equipment and computer readable storage medium
CN109743141B (en) Data transmission adjusting method and terminal equipment
CN111642002B (en) SRS power control method, SRS power control configuration method and related equipment
WO2018120032A1 (en) Cell switching method and terminal device
CN113286335B (en) Frequency point switching method and device, storage medium and access point
CN110149639B (en) Interference processing method, terminal equipment and network side equipment
CN111601334B (en) Measuring method, device and system
CN108391288B (en) Method for optimizing communication service quality and mobile terminal
CN110351743B (en) Measurement method, terminal, network side equipment and computer readable storage medium
CN106815077B (en) Data processing method based on intelligent device architecture and intelligent device
CN111818657B (en) Uplink transmission discarding method, uplink transmission discarding configuration method and related equipment
CN113099542B (en) Parameter reporting method, uplink scheduling method, device and medium
CN108811037B (en) Data transmission method and communication equipment
CN110224732B (en) Antenna switching method and terminal equipment

Legal Events

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