WIFI (Wireless Fidelity) and Bluetooth coexistence method and electronic equipment
By detecting the signal intensity and signal-to-noise ratio at every specified time in electronic devices, calculating the total power and downregulating the WIFI antenna power, the problem of insufficient isolation between WIFI and Bluetooth antennas is solved, reducing communication lags and improving user experience.
Patent Information
- Application Number
- CN202411172444.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2025-03-07
AI Technical Summary
The isolation between WIFI antennas and Bluetooth antennas in existing electronic devices is poor, which causes users to experience sound or screen stuttering when conducting WIFI communication and Bluetooth communication, affecting the user experience.
By transmitting a first signal to the router at a specified time, the received signal strength of the second signal sent by the router indicates the RSSI value and the signal-to-noise ratio SNR value, these values are used to calculate the total power of the electronic device, and compared with the preset threshold value. If the total power is greater than the threshold value, the transmit power of the WIFI antenna is down-regulated.
Improve the accuracy of isolation adjustment between WIFI antenna and Bluetooth antenna, reduces the problem of lag in users when communicating with WIFI and Bluetooth, and improves the user experience.
Smart Images

Figure CN119584173A_ABST
Abstract
Description
Background Art
[0002] With the continuous development of communication technology, electronic devices generally support both Bluetooth communication mode and wireless fidelity (WIFI) communication mode.
[0003] In current electronic devices, the WIFI antenna and the Bluetooth antenna are designed on the same PCB (Printed Circuit Board), but the size of the PCB board causes poor isolation between the WIFI antenna and the Bluetooth antenna, which causes sound or picture freezes when users are performing WIFI and Bluetooth communications, affecting user experience.
[0004] In the prior art, the method of reducing the isolation between the WIFI antenna and the Bluetooth antenna is to directly adjust the transmission power of the WIFI antenna, that is, to reduce the transmission power of the WIFI antenna by a specified value, so as to reduce the mutual interference between the WIFI antenna and the Bluetooth antenna and improve the isolation between the WIFI antenna and the Bluetooth antenna. However, this method does not make adjustments in combination with the actual situation of the electronic device itself, resulting in poor adjustment effect. Summary of the invention
[0005] The present application provides a coexistence method of Wi-Fi and Bluetooth and an electronic device, which are used to reduce the power of a Wi-Fi antenna in combination with the actual situation of the electronic device itself, so as to reduce the isolation between the Wi-Fi antenna and the Bluetooth antenna in the electronic device, improve the accuracy of the adjustment, reduce the problem of sound or picture freeze when the user performs Wi-Fi communication and Bluetooth communication, and improve the user experience.
[0006] In a first aspect, an embodiment of the present application provides a coexistence method of Wi-Fi and Bluetooth, which is applied to an electronic device, wherein the electronic device includes a Wi-Fi antenna and a Bluetooth antenna, and the method includes:
[0007] At specified intervals, transmitting a first signal to a router connected to the electronic device;
[0008] When receiving a second signal sent by the router, detecting a received signal strength indication RSSI value and a signal-to-noise ratio SNR value of the second signal, wherein the second signal is a signal sent by the router in response to the first signal;
[0009] Obtaining the total power of the electronic device by using the weights of the EIRP value and the RSSI value of the first signal, the EIRP value and the RSSI value, respectively, wherein the weights of the EIRP value and the RSSI value of the first signal are obtained by the SNR value, and the EIRP value of the first signal is detected when the first signal is transmitted;
[0010] Comparing the total power of the electronic device with a preset threshold to determine whether the total power of the electronic device is greater than the preset threshold;
[0011] If the total power of the electronic device is greater than the preset threshold, the transmission power of the WIFI antenna is reduced based on the total power of the electronic device and the preset threshold.
[0012] A second aspect of the present application provides an electronic device, including a WIFI antenna, a Bluetooth antenna, a processor and a memory, wherein the processor and the memory are connected via a bus;
[0013] The WIFI antenna is configured to perform WIFI communication;
[0014] The Bluetooth antenna is configured to perform Bluetooth communication;
[0015] The memory stores a computer program, and the processor is configured to perform the following operations based on the computer program:
[0016] At specified intervals, transmitting a first signal to a router connected to the electronic device;
[0017] When receiving a second signal sent by the router, detecting a received signal strength indication RSSI value and a signal-to-noise ratio SNR value of the second signal, wherein the second signal is a signal sent by the router in response to the first signal;
[0018] Obtaining the total power of the electronic device by using the weights of the EIRP value and the RSSI value of the first signal, the EIRP value and the RSSI value, respectively, wherein the weights of the EIRP value and the RSSI value of the first signal are obtained by the SNR value, and the EIRP value of the first signal is detected when the first signal is transmitted;
[0019] Comparing the total power of the electronic device with a preset threshold to determine whether the total power of the electronic device is greater than the preset threshold;
[0020] If the total power of the electronic device is greater than the preset threshold, the transmission power of the WIFI antenna is reduced based on the total power of the electronic device and the preset threshold.
[0021] According to a third aspect provided by an embodiment of the present invention, a computer storage medium is provided, wherein the computer storage medium stores a computer program, and the computer program is used to execute the method as described in the first aspect.
[0022] In the above embodiment of the present application, a first signal is transmitted to a router connected to the electronic device at specified intervals; when a second signal sent by the router is received, the received signal strength indication RSSI value and the signal-to-noise ratio SNR value of the second signal are detected. And the total power of the electronic device is obtained by using the weights, EIRP values and RSSI values of the EIRP value and RSSI value of the first signal obtained by the SNR value; then the total power of the electronic device is compared with the preset threshold value to determine whether the total power of the electronic device is greater than the preset threshold value; if the total power of the electronic device is greater than the preset threshold value, the transmission power of the WIFI antenna is lowered based on the total power of the electronic device and the preset threshold value. Therefore, in the embodiment of the present application, the transmission power of the WIFI antenna is lowered according to the actual situation of the electronic device itself, and the accuracy of the adjustment is guaranteed on the premise of reducing the isolation between the WIFI antenna and the Bluetooth antenna, reducing the problem of sound or picture freeze when the user is performing WIFI communication and Bluetooth communication, and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0024] Figure 1 The following is a schematic diagram of an application scenario provided by an embodiment of the present application;
[0025] Figure 2 One of the flow charts of a WFI and Bluetooth coexistence method provided in an embodiment of the present application is exemplarily shown;
[0026] Figure 3 The following is a schematic diagram of the interaction between an electronic device and a router provided in an embodiment of the present application;
[0027] Figure 4 The flowchart for determining the weights of the EIRP value of the first signal and the RSSI value provided by the embodiment of the present application is exemplarily shown;
[0028] Figure 5 The schematic diagram exemplarily shows the corresponding relationship between each SNR value and the weight parameter provided in the embodiment of the present application;
[0029] Figure 6 The schematic diagram of the process of lowering the transmission power of the WIFI antenna provided in the embodiment of the present application is exemplarily shown;
[0030] Figure 7 The following is a schematic diagram of a process for determining target power according to an embodiment of the present application;
[0031] Figure 8 The second flowchart of the coexistence method of WFI and Bluetooth provided in the embodiment of the present application is exemplarily shown;
[0032] Fig. 9 A schematic diagram of a coexistence device of WFI and Bluetooth provided in an embodiment of the present application is exemplarily shown;
[0033] Fig.10 The structural diagram of the electronic device provided by the embodiment of the present application is exemplified. DETAILED DESCRIPTION
[0034] In order to make the purpose, implementation mode and advantages of the present application clearer, the exemplary implementation mode of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, rather than all the embodiments.
[0035] Based on the exemplary embodiments described in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the claims attached to this application. In addition, although the disclosure in this application is introduced according to one or several exemplary examples, it should be understood that each aspect of the disclosure can also constitute a complete implementation method separately.
[0036] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.
[0037] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover but not exclude inclusion, for example, a product or device comprising a series of components is not necessarily limited to those components clearly listed, but may include other components not clearly listed or inherent to these products or devices.
[0038] The term "module" as used in this application refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic or combination of hardware and / or software code that is capable of performing the functions associated with that element.
[0039] The idea of the embodiments of the present application is summarized below.
[0040] Currently, the method to reduce the isolation between the WIFI antenna and the Bluetooth antenna is to directly adjust the transmission power of the WIFI antenna, that is, to reduce the transmission power of the WIFI antenna by a specified value, so as to reduce the mutual interference between the WIFI antenna and the Bluetooth antenna and improve the isolation between the WIFI antenna and the Bluetooth antenna. However, this method does not make adjustments in accordance with the actual situation of the electronic device itself, resulting in poor adjustment effect.
[0041] Based on the problem that the isolation between the WIFI antenna and the Bluetooth antenna is adjusted in the prior art and the accuracy is low. The embodiment of the present application provides a coexistence method of WFI and Bluetooth, by transmitting a first signal to a router connected to the electronic device at specified intervals; when receiving a second signal sent by the router, detecting the received signal strength indication RSSI value and the signal-to-noise ratio SNR value of the second signal. And using the weights of the EIRP value and RSSI value of the first signal obtained by the SNR value, the EIRP value and the RSSI value, the total power of the electronic device is obtained; then the total power of the electronic device is compared with the preset threshold value to determine whether the total power of the electronic device is greater than the preset threshold value; if the total power of the electronic device is greater than the preset threshold value, then based on the total power of the electronic device and the preset threshold value, the transmission power of the WIFI antenna is lowered. Therefore, in the embodiment of the present application, the transmission power of the WIFI antenna is lowered according to the actual situation of the electronic device itself, and the isolation between the WIFI antenna and the Bluetooth antenna is reduced, the accuracy of the adjustment is guaranteed, and the problem of sound or picture freeze when the user is performing WIFI communication and Bluetooth communication is reduced, and the user experience is improved.
[0042] like Figure 1 As shown, an application scenario of a coexistence method of Wi-Fi and Bluetooth includes a router 110 and an electronic device 120.
[0043] In a possible application scenario, the electronic device 120 transmits a first signal to the router 110 connected to the electronic device 120 at specified intervals; when receiving a second signal sent by the router 110, the received signal strength indication RSSI value and the signal-to-noise ratio SNR value of the second signal are detected, wherein the second signal is a signal sent by the router in response to the first signal; then the electronic device 120 obtains the total power of the electronic device by using the weights of the equivalent isotropic radiated power EIRP value and the RSSI value of the first signal, the EIRP value and the RSSI value, wherein the weights of the EIRP value and the RSSI value of the first signal are obtained by the SNR value, and the EIRP value of the first signal is detected when the first signal is transmitted; then the electronic device 120 compares the total power of the electronic device 120 with a preset threshold value to determine whether the total power of the electronic device 120 is greater than the preset threshold value; if the total power of the electronic device 120 is greater than the preset threshold value, the transmission power of the WIFI antenna in the electronic device 120 is reduced based on the total power of the electronic device and the preset threshold value.
[0044] in, Figure 1 The router 110 and the electronic device 120 may exchange information via a communication network, wherein the communication mode adopted by the communication network may be divided into a wireless communication mode or a wired communication mode.
[0045] Exemplarily, the electronic device 120 can access the network through cellular mobile communication technology and communicate with the router 110, wherein the cellular mobile communication technology, for example, includes the fifth generation mobile communication (5th Generation MobileNetWorks, 5G) technology.
[0046] Optionally, the electronic device 120 may access the network and communicate with the router 110 via short-range wireless communication, wherein the short-range wireless communication method, for example, includes Wireless Fidelity (Wi-Fi) technology.
[0047] Among them, only a single router 110 and a single electronic device 120 are described in detail in the description of this application, but those skilled in the art should understand that the router 110 and the electronic device 120 shown are intended to represent the operations of the router 110 and the electronic device 120 involved in the technical solution of this application. It does not imply any limitation on the number, type or location of the router 110 and the electronic device 120. It should be noted that if additional modules are added to the illustrated environment or individual modules are removed therefrom, the underlying concepts of the exemplary embodiments of this application will not be changed.
[0048] It should be noted that the coexistence method of WFI and Bluetooth proposed in this application is not only applicable to Figure 1 The application scenario shown is also applicable to any coexisting device with WFI and Bluetooth.
[0049] The following describes the coexistence method of WFI and Bluetooth in an exemplary embodiment of the present application in combination with the application scenarios described above and with reference to the accompanying drawings. It should be noted that the above application scenarios are only shown to facilitate understanding of the methods and principles of the present application, and the implementation of the present application is not limited in this respect.
[0050] like Figure 2 FIG. 1 is a flow chart of a coexistence method of WFI and Bluetooth, which may include the following steps:
[0051] Step 201: transmitting a first signal to a router connected to the electronic device at specified intervals;
[0052] The specified duration in the embodiment of the present application can be set according to the specific actual situation, and the embodiment of the present application does not limit the specific value of the specified duration.
[0053] Step 202: When receiving a second signal sent by the router, detecting a received signal strength indicator RSSI value and a signal-to-noise ratio SNR value of the second signal, wherein the second signal is a signal sent by the router in response to the first signal;
[0054] like Figure 3 As shown, the electronic device sends a first signal to the router, and after receiving the first signal, the router sends a second signal to the electronic device. The electronic device needs to detect the RSSI value and the signal-to-noise ratio SNR value of the second signal and the EIRP value of the first signal. The specific detection method does not belong to the invention point of this application, and the embodiments of this application are not repeated here.
[0055] Step 203: Obtaining the total power of the electronic device by using the weights of the EIRP value and the RSSI value of the first signal, the EIRP value and the RSSI value, respectively, wherein the weights of the EIRP value and the RSSI value of the first signal are obtained by the SNR value, and the EIRP value of the first signal is detected when the first signal is transmitted;
[0056] In one embodiment, step 203 may be specifically implemented as follows: using the respective weights of the EIRP value and the RSSI value of the first signal, weighted summing the EIRP value and the RSSI value to obtain the total power of the electronic device. The total power of the electronic device may be obtained by formula (1):
[0057] P=A×EIRP+B×RSSI......(1);
[0058] Among them, P is the total power of the electronic device, EIRP is the EIRP value of the first signal, RSSI is the RSSI value, A is the weight corresponding to the EIRP value of the first signal, and B is the weight corresponding to the RSSI value.
[0059] Next, the method of determining the weights of the EIRP value of the first signal and the RSSI value in the embodiment of the present application is described as follows: Figure 4 As shown, it is a flow chart of determining the weights of the EIRP value of the first signal and the RSSI value, which may specifically include the following steps:
[0060] Step 401: Determine a target weight parameter corresponding to the SNR value of the second signal by using a preset correspondence between each SNR value and a weight parameter, wherein the weight parameter includes a first parameter and a second parameter, the first parameter is a weight corresponding to an EIRP value, and the second parameter is a weight corresponding to an RSSI value;
[0061] like Figure 5 As shown, it is a schematic diagram of the corresponding relationship between each SNR value and the weight parameter. Figure 5 It can be seen that each SNR value has a corresponding first parameter and a second parameter. For example, if the SNR value is A, the corresponding first target parameter in the target weight parameter is a, and the second parameter target in the target weight parameter is b.
[0062] Step 402: Determine a first target parameter among the target weight parameters as a weight corresponding to the EIRP value of the first signal, and determine a second target parameter among the target weight parameters as a weight corresponding to the RSSI value.
[0063] According to the foregoing, if the first target parameter is determined to be a and the second target parameter is determined to be b, then the weight corresponding to the EIRP value of the first signal is determined to be a, and the weight corresponding to the RSSI value is determined to be b.
[0064] In one embodiment, the weights of the EIRP value of the first signal and the RSSI value may also be determined in the following manner:
[0065] The SNR value of the second signal is input into a pre-trained neural network model to obtain a target weight parameter corresponding to the SNR value of the second signal, and the first target parameter in the target weight parameter is determined as the weight corresponding to the EIRP value of the first signal, and the second target parameter in the target weight parameter is determined as the weight corresponding to the RSSI value.
[0066] Step 204: Compare the total power of the electronic device with a preset threshold to determine whether the total power of the electronic device is greater than the preset threshold;
[0067] It should be noted that the preset threshold in the embodiment of the present application can be set according to actual conditions, and the embodiment of the present application does not limit the specific value of the preset threshold.
[0068] Step 205: If the total power of the electronic device is greater than the preset threshold, the transmission power of the WIFI antenna is reduced based on the total power of the electronic device and the preset threshold.
[0069] Next, the method of lowering the transmission power of the WIFI antenna in step 205 is described in detail. Figure 6 As shown, it is a schematic diagram of the process of lowering the transmission power of the WIFI antenna, which may specifically include the following steps:
[0070] Step 601: Obtain target power using the total power of the electronic device and a preset threshold;
[0071] Next, the method of determining the target power is introduced, such as Figure 7 As shown, it is a schematic diagram of a process for determining the target power, which may specifically include the following steps:
[0072] Step 701: subtract the total power of the electronic device from the preset threshold to obtain a power difference;
[0073] Step 702: Compare the power difference with each preset power range to determine the target power range in which the power difference lies;
[0074] Step 703: Subtract the transmit power of the WIFI antenna from the minimum value in the target power range to obtain the target power.
[0075] For example, the preset power ranges are [a, b), [b, c), [c, d), [d, e), [e, f). If the target power range where the power difference Δp is located is [b, c), the transmit power of the WIFI antenna is subtracted from the power b to obtain the target power.
[0076] In one embodiment, step 601 can also be specifically implemented as follows: subtracting the total power of the electronic device from the preset threshold to obtain a power difference, subtracting the power difference from a specified value to obtain a power value to be reduced; subtracting the total power of the electronic device from the power value to be reduced to obtain the target power.
[0077] It should be noted that the specified numerical values in the embodiments of the present application can be set according to actual conditions, and the embodiments of the present application do not limit the specified numerical values.
[0078] Step 602: Adjust the transmit power of the WIFI antenna to the target power.
[0079] In the embodiment of the present application, the transmission power of the WIFI antenna is set to be equal to the target power. For example, if the target power is B, the transmission power of the WIFI antenna is set to B.
[0080] In order to ensure that the WIFI antenna can work normally, in one embodiment, if the total power of the electronic device is not greater than the preset threshold, the process returns to the step of sending a first signal to a router connected to the electronic device at specified intervals.
[0081] For example, if the total power of the electronic device is A and the preset threshold is N, if A>B, then based on the total power of the electronic device and the preset threshold, the transmit power of the WIFI antenna is lowered. If A≤B, no power adjustment is performed, and the process returns to the step of sending the first signal to the router connected to the electronic device at specified intervals.
[0082] In order to further understand the coexistence method of WFI and Bluetooth in the embodiment of the present application, as shown in Figure 8 FIG. 1 is a flow chart of a coexistence method of WFI and Bluetooth, which may specifically include the following steps:
[0083] Step 801: transmitting a first signal to a router connected to the electronic device at specified intervals;
[0084] Step 802: When receiving a second signal sent by the router, detecting a received signal strength indicator RSSI value and a signal-to-noise ratio SNR value of the second signal, wherein the second signal is a signal sent by the router in response to the first signal;
[0085] Step 803: Determine a target weight parameter corresponding to the SNR value of the second signal by using a preset correspondence between each SNR value and a weight parameter, wherein the weight parameter includes a first parameter and a second parameter, the first parameter is a weight corresponding to an EIRP value of the first signal, and the second parameter is a weight corresponding to an RSSI value, and the EIRP value of the first signal is detected when the first signal is transmitted;
[0086] Step 804: determining a first target parameter in the target weight parameters as a weight corresponding to the EIRP value of the first signal, and determining a second target parameter in the target weight parameters as a weight corresponding to the RSSI value;
[0087] Step 805: using the respective weights of the EIRP value and the RSSI value of the first signal, performing weighted summation on the EIRP value and the RSSI value to obtain the total power of the electronic device;
[0088] Step 806: Compare the total power of the electronic device with a preset threshold to determine whether the total power of the electronic device is greater than the preset threshold; if not, return to step 801; if yes, execute step 807;
[0089] Step 807: Subtract the total power of the electronic device from the preset threshold to obtain a power difference;
[0090] Step 808: Compare the power difference with each preset power range to determine the target power range in which the power difference lies;
[0091] Step 809: Subtract the transmit power of the WIFI antenna from the minimum value in the target power range to obtain the target power;
[0092] Step 810: Adjust the transmit power of the WIFI antenna to the target power.
[0093] Based on the same inventive concept, the WFI and Bluetooth coexistence method disclosed above can also be implemented by a WFI and Bluetooth coexistence device. The effect of the WFI and Bluetooth coexistence device is similar to that of the aforementioned method, which will not be described in detail here.
[0094] Fig. 9 The figure is a schematic diagram of the structure of a coexistence device of WFI and Bluetooth according to an embodiment of the present disclosure.
[0095] like Fig. 9 As shown, the coexistence apparatus 900 of WFI and Bluetooth of the present disclosure may include a sending module 910 , a detecting module 920 , a total power determining module 930 , a comparing module 940 and a power adjusting module 950 .
[0096] A sending module 910, configured to send a first signal to a router connected to the electronic device at specified intervals;
[0097] A detection module 920 is configured to detect a received signal strength indicator RSSI value and a signal-to-noise ratio SNR value of a second signal when receiving the second signal sent by the router, wherein the second signal is a signal sent by the router in response to the first signal;
[0098] a total power determination module 930, configured to obtain the total power of the electronic device by using the weights of the equivalent isotropic radiated power EIRP value and the RSSI value of the first signal, the EIRP value and the RSSI value, respectively, wherein the weights of the EIRP value and the RSSI value of the first signal are obtained by the SNR value, and the EIRP value of the first signal is detected when the first signal is transmitted;
[0099] A comparison module 940 is used to compare the total power of the electronic device with a preset threshold value to determine whether the total power of the electronic device is greater than the preset threshold value;
[0100] The power adjustment module 950 is configured to reduce the transmission power of the WIFI antenna based on the total power of the electronic device and the preset threshold if the total power of the electronic device is greater than the preset threshold.
[0101] In one embodiment, the power adjustment module 950 is specifically configured to:
[0102] Obtaining a target power using the total power of the electronic device and a preset threshold;
[0103] The transmission power of the WIFI antenna is adjusted to the target power.
[0104] In one embodiment, the power adjustment module 950 performs the step of using the total power of the electronic device and a preset threshold to obtain the target power, specifically for:
[0105] Subtracting the total power of the electronic device from the preset threshold to obtain a power difference;
[0106] Comparing the power difference with preset power ranges to determine a target power range in which the power difference lies;
[0107] The target power is obtained by subtracting the transmission power of the WIFI antenna from the minimum value in the target power range.
[0108] In one embodiment, the apparatus further comprises:
[0109] The weight determination module 960 is configured to obtain the weights of the EIRP value and the RSSI value of the first signal respectively by:
[0110] Determine a target weight parameter corresponding to the SNR value of the second signal by using a preset correspondence between each SNR value and a weight parameter, wherein the weight parameter includes a first parameter and a second parameter, the first parameter is a weight corresponding to the EIRP value, and the second parameter is a weight corresponding to the RSSI value;
[0111] A first target parameter among the target weight parameters is determined as a weight corresponding to the EIRP value of the first signal, and a second target parameter among the target weight parameters is determined as a weight corresponding to the RSSI value.
[0112] In one embodiment, the total power determination module 930 is specifically configured to:
[0113] The EIRP value and the RSSI value of the first signal are weighted and summed to obtain the total power of the electronic device.
[0114] In one embodiment, the apparatus further comprises:
[0115] The return module 970 is used to return to the step of sending a first signal to a router connected to the electronic device at a specified time interval if the total power of the electronic device is not greater than the preset threshold.
[0116] After introducing a WFI and Bluetooth coexistence method and apparatus according to an exemplary embodiment of the present invention, next, an electronic device according to another exemplary embodiment of the present invention is introduced.
[0117] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as a system, method or program product. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as a "circuit", "module" or "system".
[0118] In some possible implementations, the electronic device according to the present invention may include at least one processor and at least one computer storage medium. The computer storage medium stores program code, and when the program code is executed by the processor, the processor executes the steps of the coexistence method of WFI and Bluetooth according to various exemplary embodiments of the present invention described above in this specification. For example, the processor may execute the following steps: Figure 2 Steps 201-205 shown in .
[0119] Refer to the following Fig.10 The electronic device 1000 according to this embodiment of the present invention will be described. Fig.10 The electronic device 1000 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0120] like Fig.10As shown, the components of the electronic device 1000 may include but are not limited to: the above-mentioned at least one processor 1001, the above-mentioned at least one computer storage medium 1002, and a bus 1003 connecting different system components (including the computer storage medium 1002 and the processor 1001).
[0121] Bus 1003 represents one or more of several types of bus structures, including a computer storage media bus or computer storage media controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
[0122] The computer storage medium 1002 may include readable media in the form of volatile computer storage media, such as random access computer storage media (RAM) 1021 and / or cache storage media 1022 , and may further include read-only computer storage media (ROM) 1023 .
[0123] The computer storage medium 1002 may also include a program / utility 1025 having a set (at least one) of program modules 1024, such program modules 1024 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0124] The electronic device 1000 may also communicate with one or more external devices 1004 (e.g., keyboards, pointing devices, etc.), and may also communicate with one or more devices that enable a user to interact with the electronic device 1000, and / or communicate with any device that enables the electronic device 1000 to communicate with one or more other AR devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 1005. In addition, the electronic device 1000 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 1006. As shown, the network adapter 1006 communicates with other modules for the electronic device 1000 through a bus 1003. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 1000, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0125] In some possible implementations, various aspects of a WFI and Bluetooth coexistence method provided by the present invention may also be implemented in the form of a program product, which includes program code. When the program product is run on a computer device, the program code is used to enable the computer device to execute the steps of the WFI and Bluetooth coexistence method according to various exemplary embodiments of the present invention described above in this specification.
[0126] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A coexistence method of WFI and Bluetooth, characterized in that: Applied in an electronic device, the electronic device includes a Bluetooth antenna and a Bluetooth antenna, and the method includes: At specified intervals, transmitting a first signal to a router connected to the electronic device; When receiving a second signal sent by the router, detecting a received signal strength indication RSSI value and a signal-to-noise ratio SNR value of the second signal, wherein the second signal is a signal sent by the router in response to the first signal; Obtaining the total power of the electronic device by using the weights of the EIRP value and the RSSI value of the first signal, the EIRP value and the RSSI value, respectively, wherein the weights of the EIRP value and the RSSI value of the first signal are obtained by the SNR value, and the EIRP value of the first signal is detected when the first signal is transmitted; Comparing the total power of the electronic device with a preset threshold to determine whether the total power of the electronic device is greater than the preset threshold; If the total power of the electronic device is greater than the preset threshold, the transmission power of the WIFI antenna is reduced based on the total power of the electronic device and the preset threshold.
2. The method according to claim 1, characterized in that The step of lowering the transmit power of the old antenna based on the total power of the electronic device and the preset threshold comprises: Obtaining a target power using the total power of the electronic device and a preset threshold; The transmit power of the old antenna is adjusted to the target power.
3. The method according to claim 2, characterized in that The step of obtaining a target power by using the total power of the electronic device and a preset threshold value includes: Subtracting the total power of the electronic device from the preset threshold to obtain a power difference; Comparing the power difference with preset power ranges to determine a target power range in which the power difference lies; The target power is obtained by subtracting the transmission power of the WIFI antenna from the minimum value in the target power range.
4. The method according to claim 1, characterized in that: The weights of the EIRP value of the first signal and the RSSI value are obtained in the following manner: Determine a target weight parameter corresponding to the SNR value of the second signal by using a preset correspondence between each SNR value and a weight parameter, wherein the weight parameter includes a first parameter and a second parameter, the first parameter is a weight corresponding to the EIRP value, and the second parameter is a weight corresponding to the RSSI value; A first target parameter among the target weight parameters is determined as a weight corresponding to the EIRP value of the first signal, and a second target parameter among the target weight parameters is determined as a weight corresponding to the RSSI value.
5. The method according to claim 1, characterized in that: The obtaining the total power of the electronic device by using the weights of the equivalent isotropic radiated power EIRP value and the RSSI value of the first signal, the EIRP value and the RSSI value, respectively, includes: The EIRP value and the RSSI value of the first signal are weighted and summed to obtain the total power of the electronic device.
6. The method according to claim 1, characterized in that The method further comprises: If the total power of the electronic device is not greater than the preset threshold, the method returns to the step of sending a first signal to a router connected to the electronic device at specified intervals.
7. An electronic device, characterized in that: It includes a Bluetooth antenna, a processor and a memory, wherein the processor and the memory are connected via a bus; The WIFI antenna is configured to perform WIFI communication; The Bluetooth antenna is configured to perform Bluetooth communication; The memory stores a computer program, and the processor is configured to perform the following operations based on the computer program: At specified intervals, transmitting a first signal to a router connected to the electronic device; When receiving a second signal sent by the router, detecting a received signal strength indication RSSI value and a signal-to-noise ratio SNR value of the second signal, wherein the second signal is a signal sent by the router in response to the first signal; Obtaining the total power of the electronic device by using the weights of the EIRP value and the RSSI value of the first signal, the EIRP value and the RSSI value, respectively, wherein the weights of the EIRP value and the RSSI value of the first signal are obtained by the SNR value, and the EIRP value of the first signal is detected when the first signal is transmitted; Comparing the total power of the electronic device with a preset threshold to determine whether the total power of the electronic device is greater than the preset threshold; If the total power of the electronic device is greater than the preset threshold, the transmit power of the old antenna is reduced based on the total power of the electronic device and the preset threshold.
8. The electronic device according to claim 7, characterized in that: The processor executes the step of lowering the transmission power of the WIFI antenna based on the total power of the electronic device and the preset threshold, and is specifically configured as follows: Obtaining a target power using the total power of the electronic device and a preset threshold; The transmission power of the WIFI antenna is adjusted to the target power.
9. The electronic device according to claim 8, characterized in that: The processor executes the step of using the total power of the electronic device and a preset threshold to obtain the target power, and is specifically configured as follows: Subtracting the total power of the electronic device from the preset threshold to obtain a power difference; Comparing the power difference with preset power ranges to determine a target power range in which the power difference lies; The target power is obtained by subtracting the transmission power of the WIFI antenna from the minimum value in the target power range.
10. The electronic device according to claim 7, characterized in that: The processor is further configured to: The weights of the EIRP value of the first signal and the RSSI value are obtained in the following manner: Determine a target weight parameter corresponding to the SNR value of the second signal by using a preset correspondence between each SNR value and a weight parameter, wherein the weight parameter includes a first parameter and a second parameter, the first parameter is a weight corresponding to the EIRP value, and the second parameter is a weight corresponding to the RSSI value; A first target parameter among the target weight parameters is determined as a weight corresponding to the EIRP value of the first signal, and a second target parameter among the target weight parameters is determined as a weight corresponding to the RSSI value.