WO2024174635A1 - 一种通信方法及电子设备 - Google Patents
一种通信方法及电子设备 Download PDFInfo
- Publication number
- WO2024174635A1 WO2024174635A1 PCT/CN2023/134455 CN2023134455W WO2024174635A1 WO 2024174635 A1 WO2024174635 A1 WO 2024174635A1 CN 2023134455 W CN2023134455 W CN 2023134455W WO 2024174635 A1 WO2024174635 A1 WO 2024174635A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- wifi
- communication
- bluetooth
- electronic device
- mode
- 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.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B7/00—Radio transmission systems, i.e. using radiation field
- H04B7/02—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
- H04B7/04—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
- H04B7/06—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station
- H04B7/0602—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station using antenna switching
- H04B7/0608—Antenna selection according to transmission parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B1/00—Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
- H04B1/005—Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission adapting radio receivers, transmitters andtransceivers for operation on two or more bands, i.e. frequency ranges
- H04B1/0064—Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission adapting radio receivers, transmitters andtransceivers for operation on two or more bands, i.e. frequency ranges with separate antennas for the more than one band
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B1/00—Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
- H04B1/06—Receivers
- H04B1/10—Means associated with receiver for limiting or suppressing noise or interference
- H04B1/1027—Means associated with receiver for limiting or suppressing noise or interference assessing signal quality or detecting noise/interference for the received signal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B1/00—Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
- H04B1/38—Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
- H04B1/40—Circuits
- H04B1/401—Circuits for selecting or indicating operating mode
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B1/00—Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
- H04B1/38—Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
- H04B1/40—Circuits
- H04B1/403—Circuits using the same oscillator for generating both the transmitter frequency and the receiver local oscillator frequency
- H04B1/406—Circuits using the same oscillator for generating both the transmitter frequency and the receiver local oscillator frequency with more than one transmission mode, e.g. analog and digital modes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B17/00—Monitoring; Testing
- H04B17/30—Monitoring; Testing of propagation channels
- H04B17/309—Measuring or estimating channel quality parameters
- H04B17/318—Received signal strength
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B17/00—Monitoring; Testing
- H04B17/30—Monitoring; Testing of propagation channels
- H04B17/309—Measuring or estimating channel quality parameters
- H04B17/336—Signal-to-interference ratio [SIR] or carrier-to-interference ratio [CIR]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B7/00—Radio transmission systems, i.e. using radiation field
- H04B7/02—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
- H04B7/04—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
- H04B7/08—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station
- H04B7/0802—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection
- H04B7/0817—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection with multiple receivers and antenna path selection
- H04B7/082—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection with multiple receivers and antenna path selection selecting best antenna path
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0001—Systems modifying transmission characteristics according to link quality, e.g. power backoff
- H04L1/0002—Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission rate
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0823—Errors, e.g. transmission errors
- H04L43/0847—Transmission error
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/24—Reselection being triggered by specific parameters
- H04W36/30—Reselection being triggered by specific parameters by measured or perceived connection quality data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/24—Reselection being triggered by specific parameters
- H04W36/30—Reselection being triggered by specific parameters by measured or perceived connection quality data
- H04W36/302—Reselection being triggered by specific parameters by measured or perceived connection quality data due to low signal strength
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/15—Setup of multiple wireless link connections
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/10—Small scale networks; Flat hierarchical networks
- H04W84/12—WLAN [Wireless Local Area Networks]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
- H04W88/06—Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- the present application relates to the field of communications, and in particular to a communication method and electronic equipment.
- an electronic device When an electronic device uses Bluetooth communication and WIFI communication to communicate at the same time, it can use a time-sharing mode to perform Bluetooth communication and WIFI communication.
- the time-sharing mode indicates that the electronic device reuses antennas and performs Bluetooth communication and WIFI communication in time, which causes the electronic device to be unable to communicate based on WIFI communication or Bluetooth communication during part of the time, affecting the communication quality.
- the electronic device when an electronic device is making a video call based on WIFI communication, the electronic device is simultaneously connected to a Bluetooth headset. The electronic device receives and emits video data via the WIFI communication mode, and sends audio data to the Bluetooth headset via the Bluetooth communication mode, and receives audio data collected by the Bluetooth headset.
- the electronic device since the electronic device uses a time-sharing mode to perform Bluetooth communication and WIFI communication, the electronic device cannot receive and emit video data in real time during part of the time, resulting in the problem of sound or picture freeze, affecting the user experience.
- the embodiments of the present application provide a communication method and an electronic device, which are used to reduce interference between WIFI communication and Bluetooth communication and maintain good transmission performance, which not only improves the flexibility of the system but also improves the communication quality of the electronic device.
- a communication method is provided, which is applied to an electronic device, wherein the electronic device is configured with a first antenna and a second antenna, and the first antenna and the second antenna are different, and the method includes:
- the electronic device When the electronic device performs wireless fidelity WIFI communication, if the electronic device meets the first preset condition, the electronic device needs to obtain the first communication indicator threshold; wherein, when the electronic device meets the second preset condition, the first antenna is used for Bluetooth communication and WIFI communication;
- the electronic device compares the first communication indicator threshold with the latest communication indicator to determine whether the latest communication indicator meets the second preset condition, wherein the first communication indicator threshold includes a first WIFI received signal strength threshold, and the latest communication indicator includes a WIFI received signal strength;
- the electronic device can determine the first communication indicator threshold after determining that the electronic device meets the first preset condition, and then compare the current communication indicator obtained in real time with the first communication indicator threshold.
- the electronic device is compared with the reference threshold to determine whether the electronic device meets the second preset condition, that is, whether the communication quality of the electronic device is poor when performing Bluetooth communication and WIFI communication at the same time. If the electronic device meets the second preset condition, whether different antennas need to be used for WIFI communication and Bluetooth communication.
- the first preset condition may include that the electronic device starts to perform Bluetooth communication, or, in the process of the electronic device performing Bluetooth communication and WIFI communication in a time-sharing mode, the communication quality value of the target communication mode of the electronic device is lower than the preset quality value.
- the target communication mode includes WIFI communication mode/Bluetooth communication mode.
- the above communication quality values may include rate, received signal strength, transmit power, bit error rate, signal-to-noise ratio, etc.
- the first preset condition is used to determine whether the electronic device needs to use different antennas for Bluetooth communication and WIFI communication, and the first preset condition includes different scenarios in which the electronic device starts to perform Bluetooth communication, or, in the process in which the electronic device uses a time-sharing mode for Bluetooth communication and WIFI communication, the communication quality value of the target communication mode of the electronic device is lower than the preset quality value, therefore, by determining whether the electronic device meets the first preset condition, the working mode of Bluetooth communication and WIFI communication can be adjusted in time, thereby improving the communication quality of the electronic device.
- the first communication indicator threshold is related to WIFI gain, which refers to the degree of improvement in WIFI rate when an electronic device switches from a time-sharing mode for Bluetooth communication and WIFI communication to a parallel mode for Bluetooth communication and WIFI communication.
- the first communication indicator threshold is related to the transmission performance and/or working bandwidth of the router.
- the first communication indicator threshold is determined based on the WIFI revenue, the transmission performance of the router and/or the working bandwidth. In this way, the accuracy of determining the first communication indicator threshold can be improved, and it can be accurately determined whether the electronic device can use different antennas for Bluetooth communication and WIFI communication.
- the above-mentioned latest communication indicators may also include at least one of Bluetooth transmission power, Bluetooth received signal strength, Bluetooth signal-to-noise ratio, Bluetooth bit error rate, WIFI transmission power, WIFI signal-to-noise ratio and WIFI bit error rate.
- the first communication indicator threshold may also include at least one of a first Bluetooth transmission power threshold, a first Bluetooth received signal strength threshold, a first Bluetooth signal-to-noise ratio threshold, a first Bluetooth bit error rate threshold, a first WIFI transmission power threshold, a first WIFI signal-to-noise ratio threshold, and a first WIFI bit error rate threshold.
- the first communication indicator threshold corresponds to the latest communication indicator one-to-one.
- the above-mentioned second preset condition may also include at least one of the Bluetooth transmission power greater than the first Bluetooth transmission power threshold, the Bluetooth received signal strength greater than the first Bluetooth received signal strength threshold, the Bluetooth signal-to-noise ratio less than the first Bluetooth signal-to-noise ratio threshold, the Bluetooth bit error rate less than the first Bluetooth bit error rate threshold, the WIFI transmission power greater than the first WIFI transmission power threshold, the WIFI signal-to-noise ratio less than the first WIFI signal-to-noise ratio threshold, and the WIFI bit error rate less than the first WIFI bit error rate threshold.
- whether an electronic device can enter an independent transmission state is determined from multiple angles such as Bluetooth transmission power, Bluetooth receiving signal strength, Bluetooth signal-to-noise ratio, Bluetooth bit error rate, WIFI transmission power, WIFI signal-to-noise ratio, and WIFI bit error rate.
- Bluetooth transmission power Bluetooth receiving signal strength
- Bluetooth signal-to-noise ratio Bluetooth bit error rate
- WIFI transmission power WIFI signal-to-noise ratio
- WIFI bit error rate WIFI transmission power
- WIFI signal-to-noise ratio WIFI bit error rate
- the electronic device may obtain the first communication indicator threshold value through a Bluetooth coding format or directly.
- the electronic device may obtain a first communication indicator threshold value based on a Bluetooth coding format.
- the electronic device may obtain a first Bluetooth coding format; the electronic device determines a first communication indicator threshold value corresponding to the first Bluetooth coding format from a first configuration table, wherein the first configuration table includes the first Bluetooth coding format and a first communication indicator threshold value corresponding to the first Bluetooth coding format.
- the electronic device after obtaining the first Bluetooth coding format, can directly obtain the first communication indicator threshold from the pre-stored first configuration table. In this way, not only the accuracy of determining the first communication indicator threshold can be improved, but also configuration time can be saved, thereby improving the working efficiency of the electronic device.
- the electronic device can also directly obtain the first communication indicator threshold. That is, the electronic device does not need to use information such as the first Bluetooth coding format to find the corresponding first communication indicator threshold, but can directly obtain the first communication indicator threshold from a preset location. In other words, the first communication indicator thresholds corresponding to different Bluetooth coding formats can be the same.
- the efficiency of determining the first communication indicator threshold can be improved, thereby improving the efficiency of the electronic device using the first communication indicator threshold to determine whether the electronic device meets the second preset condition, that is, improving the efficiency of whether the electronic device needs to enter the parallel mode.
- the process of the electronic device acquiring the first communication indicator threshold may include:
- the electronic device determines a first communication parameter of the electronic device, wherein the first communication parameter includes at least one of a first Bluetooth encoding format, identification information of the first router, and a first isolation degree;
- the electronic device determines whether there is a working mode identifier corresponding to the first communication parameter in the first configuration table
- the electronic device determines that there is an operating mode identifier corresponding to the first communication parameter in the first configuration table, determines the operating mode corresponding to the operating mode identifier corresponding to the first communication parameter as the first operating mode;
- the electronic device determines a first communication indicator threshold corresponding to the first Bluetooth coding format.
- the electronic device first determines whether there is a working mode identifier corresponding to the first communication parameter in the first configuration table based on the first communication parameter, and when it is determined that there is a working mode identifier corresponding to the first communication parameter in the first configuration table, the working mode identifier corresponding to the first communication parameter is determined as the first working mode, and after determining that the first working mode is the parallel mode, the first communication indicator threshold corresponding to the first Bluetooth encoding format is determined. In this way, the situation where antenna resources are wasted by judging electronic devices that communicate in time-sharing mode can be reduced, thereby reducing unnecessary waste of resources.
- the electronic device when the electronic device determines that there is no working mode identifier corresponding to the first communication parameter in the first configuration table, it determines the WIFI rates of the electronic device in different working modes respectively, and determines the working mode corresponding to the WIFI rate with the highest WIFI rate as the first working mode.
- the electronic device determines that the working mode identifier corresponding to the first communication parameter does not exist in the first configuration table, it is necessary to determine the first working mode according to the WIFI rate of the electronic device in different working modes. In this way, it can be ensured that when the electronic device encounters an unprecedented Bluetooth coding format or router, it can autonomously enter the first working mode. Learning is performed to determine the first working mode, which provides a basis for subsequently determining that the electronic device enters an independent transmission state.
- the process of respectively determining the WIFI rates of the electronic device in different working modes and determining the working mode corresponding to the WIFI rate with the highest WIFI rate as the first working mode may include:
- the electronic device determines a first WIFI rate of the electronic device in a time-sharing mode
- the electronic device determines a second WIFI rate of the electronic device in the parallel mode
- the electronic device determines that the first operating mode is the parallel mode.
- the electronic device determines that the first operating mode is the time-sharing mode when determining that the first WIFI rate is greater than or equal to a preset rate.
- the first WIFI rate is greater than or equal to the preset rate, it means that the transmission rate of the electronic device in the time-sharing mode is relatively high, and there is no need to switch to the parallel mode for Bluetooth communication and WIFI communication. Therefore, it can be determined that the first working mode is the time-sharing mode. In this way, the accuracy of determining the first working mode can be improved while saving antenna resources.
- respectively determining the WIFI rates of the electronic device in different operating modes, and determining the operating mode corresponding to a WIFI rate with the highest WIFI rate as the first operating mode includes:
- the electronic device determines a first WIFI rate of the electronic device in a time-sharing mode
- the electronic device determines that the first working mode is the parallel mode.
- the electronic device preferentially determines the first WIFI rate of the electronic device in the time-sharing mode. If the first WIFI rate is less than the preset rate, it means that the transmission rate of the electronic device in the time-sharing mode is low. Therefore, it is necessary to determine the second WIFI rate of the electronic device in the parallel mode. If the second WIFI rate is greater than the preset rate, it means that the transmission rate of the electronic device in the parallel mode is high and meets the preset conditions. Therefore, it can be determined that the first working mode is the parallel mode. In this way, only the working mode corresponding to the WIFI rate greater than the preset rate can be used as the first working mode, reducing the waste of resources caused by the low degree of WIFI rate increase, thereby reducing unnecessary waste of resources.
- the electronic device determines that the second WIFI rate is less than or equal to the preset rate, the electronic device determines the operating mode corresponding to the highest WIFI rate between the first WIFI rate and the second WIFI rate as the first operating mode.
- the second WIFI rate is less than or equal to the preset rate, it means that both the first WIFI rate and the second WIFI rate cannot meet the preset conditions. Therefore, it is necessary to adjust the first WIFI rate and the second WIFI rate.
- the highest WIFI rate is determined among the rates, and the working mode corresponding to the WIFI rate is determined as the first working mode. In this way, the accuracy of determining the first working mode can be improved.
- the above-mentioned parallel mode includes a first parallel mode and a second parallel mode.
- the first parallel mode is that the electronic device uses different antennas to perform WIFI communication and Bluetooth communication in parallel, and the working bandwidth of the WIFI communication is a first working bandwidth.
- the second parallel mode is that the electronic device uses different antennas to perform WIFI communication and Bluetooth communication in parallel, and the working bandwidth of the WIFI communication is a second working bandwidth, and the first working bandwidth is different from the second working bandwidth.
- determining the second WIFI rate of the electronic device in the parallel mode includes:
- the electronic device determines a third WIFI rate of the electronic device in the first parallel mode and a fourth WIFI rate of the electronic device in the second parallel mode;
- the electronic device determines the highest WIFI rate between the third WIFI rate and the fourth WIFI rate as the second WIFI rate.
- the first WIFI rate is lower than the preset rate, it is necessary to select the highest WIFI rate from the first parallel mode and the second parallel mode as the second WIFI rate, so that the accuracy of determining the first working mode can be improved.
- the first working bandwidth is 20 Mhz
- the second working bandwidth is 40 Mhz.
- the communication method further includes:
- the electronic device After the electronic device uses the first antenna for WIFI communication and the second antenna for Bluetooth communication, that is, after the electronic device enters an independent transmission state, the electronic device determines a second communication indicator threshold, and the second communication indicator threshold includes a second WIFI received signal strength threshold;
- the electronic device uses the first antenna to perform Bluetooth communication and WIFI communication; wherein the third preset condition includes that the WIFI received signal strength is less than the second WIFI received signal strength threshold.
- the electronic device uses different antennas for WIFI communication and Bluetooth communication, it is still necessary to determine the second communication indicator threshold, and compare the current communication indicator obtained in real time with the first communication indicator threshold to determine whether the electronic device uses the first antenna for Bluetooth communication and WIFI communication. In this way, antenna resources can be saved while ensuring the WIFI rate.
- the above-mentioned second communication indicator threshold also includes at least one of a second Bluetooth transmit power threshold, a second Bluetooth received signal strength threshold, a second Bluetooth signal-to-noise ratio threshold, a second Bluetooth bit error rate threshold, a second WIFI transmit power threshold, a second WIFI signal-to-noise ratio threshold and a second WIFI bit error rate threshold.
- the above-mentioned third preset condition also includes: at least one of the Bluetooth transmission power is less than the second Bluetooth transmission power threshold, the Bluetooth received signal strength is less than the second Bluetooth received signal strength threshold, the Bluetooth bit error rate is greater than the second Bluetooth bit error rate threshold, the WIFI transmission power is less than the second WIFI transmission power threshold, the WIFI signal-to-noise ratio is greater than the second WIFI signal-to-noise ratio threshold, the WIFI bit error rate is greater than the second WIFI bit error rate threshold, and the Bluetooth signal-to-noise ratio is greater than the second Bluetooth signal-to-noise ratio threshold.
- the communication method further includes:
- the electronic device determines the WIFI speed corresponding to different working modes. Determine the WiFi benefit when switching from time-sharing mode to parallel mode;
- the communication index corresponding to when the WIFI benefit is greater than the preset benefit is used as the first communication index threshold.
- the communication method further includes:
- the electronic device After determining the first working mode, uses the communication index corresponding to the WIFI rate in the first working mode as the second communication index threshold when the WIFI rate in the first working mode is lower than the preset WIFI rate.
- the preset WIFI rate may be the first WIFI rate of the electronic device in the time-sharing mode.
- the electronic device can determine the first communication indicator threshold and the second communication indicator threshold according to the WIFI rate corresponding to different working modes. In this way, it can be ensured that when the electronic device encounters communication parameters not included in the configuration table, it can also determine the relevant information through autonomous learning. After the learning is completed, it is added to the corresponding configuration table to facilitate quick finding of relevant information from the configuration table, saving learning costs.
- the electronic device may upload the latest communication parameters, the first working mode, the first communication indicator threshold, and the second communication indicator threshold to the server, wherein the latest communication parameters include at least one of the latest Bluetooth encoding format, the latest router identification information, and the isolation degree.
- the electronic device after the electronic device updates the configuration table, it can upload the updated configuration table to the server. In this way, other electronic devices can obtain the updated configuration table from the server, so that other electronic devices can quickly find the corresponding working mode, the first communication indicator threshold and the second communication indicator threshold from the updated configuration table, and other electronic devices are no longer required to determine whether the electronic device meets the second preset condition, which effectively simplifies the processing process and improves the processing efficiency of the electronic device.
- the electronic device can upload the updated first configuration table to the server periodically or in real time, wherein the resource overhead caused by uploading the first configuration table after each update can be avoided by periodically uploading the first configuration table.
- the present application provides an electronic device, comprising a display screen, a memory, a Bluetooth module, a WIFI module and one or more processors; the display screen, the memory, the Bluetooth module, the WIFI module and the processor are coupled; the Bluetooth module is used for Bluetooth communication, the WIFI module is used for WIFI communication, the display screen is used to display an image generated by the processor, the memory is used to store computer program code, and the computer program code includes computer instructions; when the processor executes the computer instructions, the electronic device executes the method described above.
- the present application provides a computer-readable storage medium, comprising computer instructions, which, when executed on an electronic device, enable the electronic device to execute the method described above.
- the present application provides a computer program product, which, when executed on an electronic device, enables the electronic device to execute the method described above.
- a chip comprising: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory.
- the processor is used to execute the method as described above.
- beneficial effects that can be achieved by the electronic device described in the second aspect, the computer storage medium described in the third aspect, the computer program product described in the fourth aspect, and the chip described in the fifth aspect provided above can refer to the beneficial effects in the first aspect and any possible design method thereof, and will not be repeated here.
- FIG1 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
- FIG2 is a structural block diagram of a communication system provided in an embodiment of the present application.
- FIG3 is a schematic diagram of a scenario of Bluetooth communication and WIFI communication provided in an embodiment of the present application.
- FIG4 is a second schematic diagram of a scenario of Bluetooth communication and WIFI communication provided in an embodiment of the present application.
- FIG5 is a schematic diagram of a third scenario of Bluetooth communication and WIFI communication provided in an embodiment of the present application.
- FIG6 is a schematic diagram 1 of a shared antenna provided in an embodiment of the present application.
- FIG7 is a second schematic diagram of a shared antenna provided in an embodiment of the present application.
- FIG8 is a schematic diagram of an independent antenna provided in an embodiment of the present application.
- FIG9 is a schematic flowchart of a communication method provided in an embodiment of the present application.
- FIG10 is a schematic flowchart 2 of a communication method provided in an embodiment of the present application.
- FIG11 is a schematic flowchart of a communication method provided in an embodiment of the present application.
- first and second are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features.
- a feature defined as “first” or “second” may explicitly or implicitly include one or more of the features.
- plural means two or more.
- the technical solution of the embodiment of the present application is applied to various electronic devices that can support WIFI communication mode and Bluetooth communication mode.
- the electronic device can be a mobile phone, a smart watch, a smart bracelet, a tablet computer, a desktop computer, a laptop computer, etc.
- the embodiment of the present application does not impose any restrictions on the specific type of the electronic device.
- FIG1 is a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application.
- the electronic device 100 may include a processor 110, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, a button 190, a motor 191, an indicator 192, cameras 1-N 193, a display screen 194, and subscriber identification module (SIM) card interfaces 1-N 195, etc.
- SIM subscriber identification module
- the sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.
- the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100.
- the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently.
- the components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
- the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc.
- AP application processor
- GPU graphics processor
- ISP image signal processor
- controller a memory
- video codec a digital signal processor
- DSP digital signal processor
- NPU neural-network processing unit
- Different processing units may be independent devices or integrated into one or more processors.
- the controller may be the nerve center and command center of the electronic device 100.
- the controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
- the processor 110 may also be provided with a memory for storing instructions and data.
- the memory in the processor 110 is a cache memory.
- the memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
- the processor 110 may include one or more interfaces.
- the interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, etc.
- I2C inter-integrated circuit
- I2S inter-integrated circuit sound
- PCM pulse code modulation
- UART universal asynchronous receiver/transmitter
- MIPI mobile industry processor interface
- GPIO general-purpose input/output
- the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
- Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas.
- antenna 1 can be reused as a diversity antenna for a wireless local area network.
- the antenna can be used in combination with a tuning switch.
- the mobile communication module 150 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied to the electronic device 100.
- the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.
- the mobile communication module 150 may receive electromagnetic waves from the antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
- the mobile communication module 150 may also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.
- at least some of the functional modules of the mobile communication module 150 may be arranged in the processor 110.
- at least some of the functional modules of the mobile communication module 150 may be arranged in the same device as at least some of the modules of the processor 110.
- the mobile communication module may also be referred to as a cellular module, and the two may be described interchangeably.
- the modem processor may include a modulator and a demodulator.
- the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal.
- the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
- the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
- the application processor outputs a sound signal through an audio device (not limited to a speaker, a receiver, etc.), or displays an image or video through a display screen 194.
- the modem processor may be an independent device.
- the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
- the wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (WIFI) network), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc., which are applied to the electronic device 100.
- WLAN wireless local area networks
- WIFI wireless fidelity
- BT bluetooth
- GNSS global navigation satellite system
- FM frequency modulation
- NFC near field communication technology
- IR infrared technology
- the wireless communication module 160 can be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via the antenna 2 and converts the electromagnetic wave signal into a signal.
- the wireless communication module 160 can also receive the signal to be sent from the processor 110, perform frequency modulation and filtering, and send the processed signal to the processor 110.
- the wireless communication module 160 can also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2. In some embodiments, at least some functional modules of the wireless communication module 160 can be set in the processor 110.
- the wireless communication module 160 may include a Bluetooth module and a WIFI module.
- the Bluetooth module is used to implement the Bluetooth communication mode, that is, the electronic device 100 can communicate using the Bluetooth communication mode.
- the WIFI module is used to implement the WIFI communication mode, that is, the electronic device 100 can communicate using the WIFI communication mode.
- the Bluetooth module and the WIFI module may work in time-sharing mode using the same antenna, or the Bluetooth module and the WIFI module may work in parallel using different antennas.
- the operating frequency bands of the Bluetooth module and the WIFI module can be different, or they can overlap, such as being the same. That is to say, the operating frequency bands of the electronic device 100 when performing Bluetooth communication and WIFI communication can be different, or they can overlap.
- the working modules of the Bluetooth module and the WIFI module are both 2.4GHZ.
- the operating bandwidth of the WIFI communication is 40Mhz, 20Mhz or other values, and this application is not limited to it.
- the operating bandwidth here refers to the frequency band bandwidth, that is, the transmission frequency width of the router to which the electronic device 100 realizes the WIFI communication.
- the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
- the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology.
- the GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and/or a satellite based augmentation system (SBAS).
- GPS global positioning system
- GLONASS global navigation satellite system
- BDS Beidou navigation satellite system
- QZSS quasi-zenith satellite system
- SBAS satellite based augmentation system
- the Bluetooth module of the wireless communication module 160 may share an antenna with the WIFI module to implement Bluetooth communication and WIFI communication through time-division multiplexing.
- the Bluetooth module in the wireless communication module 160 and the mobile communication module 150 share a common antenna to enable Bluetooth communication and WIFI communication to be performed simultaneously.
- the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 100.
- the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
- the charging management module 140 is used to receive charging input from a charger. While the charging management module 140 is charging the battery 142 , it can also supply power to the electronic device 100 through the power management module 141 .
- the electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor.
- the GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor.
- the GPU is used to perform mathematical and geometric calculations for graphics rendering.
- the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
- the display screen 194 is used to display images, videos, etc.
- the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
- the electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
- the ISP is used to process data fed back by the camera 193.
- the camera 193 is used to capture static images or videos.
- the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
- the digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
- the electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, speakers, receivers, microphones, headphone interfaces, and application processors.
- the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals.
- the speaker also called a "speaker" is used to convert an audio electrical signal into a sound signal.
- the electronic device 100 can listen to music or listen to a hands-free call through the speaker.
- the receiver also called a "handset" is used to convert audio electrical signals into sound signals.
- the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver close to the human ear.
- a microphone also known as a “microphone” or “microphone” is used to convert sound signals into electrical signals.
- the headphone jack is used to connect a wired headphone.
- the headphone jack may be a USB interface 130, or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
- OMTP open mobile terminal platform
- CTIA cellular telecommunications industry association of the USA
- the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
- an external memory card such as a Micro SD card
- Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. Indicator 192 can be an indicator light, which can be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
- the SIM card interface 195 is used to connect a SIM card.
- the SIM card can be inserted into or removed from the SIM card interface 195 to connect to or disconnect from the electronic device 100.
- the electronic device 100 can support one or more N SIM card interfaces, where N is a positive integer greater than 1.
- FIG2 is a block diagram of a communication system of an embodiment of the present application.
- the communication system may include an electronic device 100, a router 200, and a Bluetooth device 300.
- the electronic device 100 may access the WIFI signal of the router 200, and the electronic device 100 may be connected to the Bluetooth device 300 via a Bluetooth communication method.
- the electronic device 100 may communicate using both the Bluetooth communication method and the WIFI communication method.
- the electronic device 100 may communicate (such as data transmission) with the Bluetooth device 300 based on the Bluetooth communication method while using the WIFI communication method to access the Internet based on the router 200.
- the electronic device 100 may communicate with the Bluetooth device 300 based on the Bluetooth communication method while using the WIFI communication method to access the Internet based on the router 200.
- the electronic device 100 is a mobile phone
- the Bluetooth device 300 is a Bluetooth headset.
- the logo 1 shown in Figure 3 can be displayed.
- the mobile phone uses WIFI communication to make a video call with the other end.
- the mobile phone can send audio and video data on the mobile phone side to the other end through WIFI communication, and receive audio and video data on the other end sent by the other end.
- the Bluetooth headset connected to the mobile phone can play the sound data on the other end side and collect the sound data on the mobile phone side.
- the mobile phone uses Bluetooth communication and WIFI communication at the same time.
- the electronic device 100 is a mobile phone
- the Bluetooth device 300 is a Bluetooth controller.
- the mobile phone After the mobile phone is connected to the Bluetooth controller via Bluetooth communication, it can control the virtual character in the game screen to perform corresponding instructions.
- the control data of the Bluetooth controller needs to be transmitted to the mobile phone via Bluetooth communication, and the mobile phone needs WIFI communication to obtain and display the game screen data.
- the electronic device 100 is a mobile phone F
- the Bluetooth device 300 is a mobile phone G.
- Mobile phone F can establish a Bluetooth connection with any device with Bluetooth turned on.
- mobile phone F needs to transfer files to mobile phone G (such as ALB20) based on Bluetooth communication, and mobile phone F can be paired with mobile phone G first.
- mobile phone F can send a file transfer request to mobile phone G, and a pop-up window of "Bluetooth Sharing: Incoming Files" can be displayed on mobile phone G.
- mobile phone G can receive the file transmitted by mobile phone F based on Bluetooth communication (as shown in Figure 5).
- the electronic device can adopt the time-sharing mode for Bluetooth communication and WIFI communication, that is, the Bluetooth module and the WIFI module in the electronic device can work in time-sharing by reusing one antenna, such as time-sharing one antenna through the switch in the electronic device.
- the antenna when the path of the switch in the electronic device is connected to the Bluetooth module, the antenna sends and receives Bluetooth signals, and the Bluetooth module works, that is, it is in a working state, and the electronic device can perform Bluetooth communication; when the path of the switch is connected to the WIFI module, the antenna sends and receives WIFI signals, and the WIFI module works, that is, it is in a working state, and the electronic device can perform WIFI communication. It can be seen that in the process of reusing one antenna, the WIFI module or Bluetooth module in the electronic device 100 cannot work continuously, but works in time-sharing.
- the WIFI module can work in the WIFI time period (or described as the first time period) (such as transmitting data 11 and transmitting data 12), and the Bluetooth module does not work in the WIFI time period.
- WIFI time After the segment ends and enters the Bluetooth time period, the Bluetooth module can work (such as transmitting data 21 and transmitting data 22), and the WIFI module may not work.
- the WIFI module and the Bluetooth module work in time sharing, that is, they work alternately.
- the Bluetooth module or the WIFI module only transmits data during their respective working time periods, and does not transmit data at other times. That is, in the same time period, the electronic device 100 can only transmit Bluetooth data (or describe Bluetooth communication) or transmit WIFI data (or describe Bluetooth communication), and the Bluetooth module and the WIFI module alternately occupy time domain resources, that is, alternately occupy antenna resources.
- the WIFI module and Bluetooth module in the electronic device need to seize antenna resources, and cannot work continuously, that is, cannot transmit data continuously, resulting in large data transmission delay and low real-time performance.
- the data transmission in some scenes has high real-time requirements, that is, the quality requirements for WIFI communication mode/Bluetooth communication mode are relatively high. If the time-sharing mode is adopted for WIFI communication and Bluetooth communication, the quality of WIFI communication mode/Bluetooth communication mode is low and cannot meet user needs.
- the mobile phone receives and emits video data through the WIFI communication mode, and sends audio data to the Bluetooth headset through the Bluetooth communication mode, and receives the audio data collected by the Bluetooth headset.
- the mobile phone adopts the time-sharing mode for Bluetooth communication and WIFI communication, the electronic device cannot receive and emit video data in real time during part of the time, thereby causing the problem of sound or picture jam.
- the mobile phone cannot use the antenna for WIFI communication during part of the time, so that during this part of the time, the mobile phone cannot obtain the game screen data in real time, thereby causing the game screen to jam.
- the electronic device may include a first antenna (or referred to as a WIFI antenna) and a second antenna.
- the Bluetooth module in the electronic device uses the second antenna for communication
- the WIFI module uses the WIFI antenna for communication
- the Bluetooth module uses an antenna independent of the WIFI antenna for Bluetooth communication. In this way, the electronic device can use different antennas for Bluetooth communication and WIFI communication in parallel.
- the WIFI module uses antenna 1a (i.e., the first antenna mentioned above) for WIFI communication
- the Bluetooth module uses antenna 1b (i.e., the second antenna mentioned above) for Bluetooth communication.
- the Bluetooth module and the WIFI module do not need to work in time-sharing, and different antennas can be used to work simultaneously.
- the time domain resources that the WIFI module and the Bluetooth module can each occupy are greatly increased, that is, the time length that can continuously transmit data is greatly increased, which is conducive to solving the problem of resource preemption.
- the electronic device does not need to use different antennas for Bluetooth communication and WIFI communication in parallel, resulting in a waste of resources.
- the electronic device may include an independent second antenna set for the Bluetooth module.
- the antenna may be an antenna exclusively used by the Bluetooth module and used for Bluetooth communication.
- the second antenna may be a cellular antenna in an electronic device.
- the Bluetooth module in the electronic device may reuse a cellular antenna to perform Bluetooth communication, so that the Bluetooth module and the WIFI module in the electronic device may work in parallel without adding antennas, that is, the electronic device may perform Bluetooth communication and WIFI communication in parallel.
- This design not only saves costs, but also does not require additional space in the electronic device, does not require the size of the electronic device to be changed, and does not affect the appearance design and product stability of the electronic device.
- the Bluetooth module generally works in the 2.4Ghz frequency band.
- the electronic device uses different antennas for WIFI communication and Bluetooth communication in parallel, if the working frequency band of the WIFI module is also 2.4Ghz, it will overlap with the working frequency band of the Bluetooth module. Therefore, when the WIFI module works in the 2.4Ghz working frequency band
- the isolation between the antenna used by the WIFI module and the antenna used by the Bluetooth module is not large enough, the mutual transmission function of the WIFI module and the Bluetooth module will affect the performance of each other, and the WIFI communication and the Bluetooth communication will affect each other.
- Bluetooth module when the Bluetooth module performs Bluetooth communication (such as transmitting data), it is necessary to encode the data based on the Bluetooth encoding method.
- different Bluetooth encoding methods may correspond to different encoding rates.
- the encoding rate (or bit rate) of advanced audio coding (AAC) can be 128-392kbps
- the encoding rate of LDAC can be 330-990kbps.
- the Bluetooth encoding method may include sub-band coding (SBC), AAC, aptX, aptX-HD, aptX-adaptive, LDAC, LHDC, LC3, LC3Plus, etc.
- SBC sub-band coding
- AAC and LDAC are both suitable for high-rate audio scenarios, such as music, games, video calls, etc.
- the Bluetooth encoding method shown in Table 1 above is only an example, and the Bluetooth module can also use other Bluetooth encoding methods to encode data, which is not limited by this application.
- the sampling rate (also called sampling speed or sampling frequency) indicates the number of samples extracted from the continuous signal (analog signal) per unit time to form a discrete signal (digital signal).
- the bit rate indicates the rate at which the signal is processed or transmitted through the system, that is, the amount of data processed or transmitted per unit time. It can be understood that the higher the bit rate, the clearer the sound quality.
- Total Harmonic Distortion + Noise (THD + N) is a major performance indicator of an audio power amplifier and a condition for the rated output power of an audio power amplifier. It is used to reflect the degree of distortion after the sound is amplified.
- the signal-to-noise ratio refers to the ratio of the strength of the received useful signal to the strength of the received interference signal (noise and interference).
- the larger the Bluetooth coding rate (equivalent to the bit rate in Table 1 above), the faster the Bluetooth transmission power The higher the rate, the more Bluetooth transmission time, so the more serious the impact of Bluetooth on WiFi.
- the higher the WIFI coding rate the greater the WIFI transmission power, the more WIFI transmission time, so the more serious the impact of WIFI on Bluetooth.
- the electronic device can determine whether the current communication index (i.e., the latest communication index) of the electronic device meets the second preset condition, that is, determine whether the electronic device needs to enter an independent transmission state, in other words, determine whether the communication quality of the WIFI communication and/Bluetooth communication of the electronic device is low.
- the current communication index of the electronic device meets the second preset condition, it indicates that the communication quality of the WIFI communication and/Bluetooth communication of the electronic device is low, and the electronic device can adopt a parallel mode, use different antennas for Bluetooth communication and WIFI communication, that is, the electronic device can enter an independent transmission state, thereby ensuring the communication quality. If the current communication index of the electronic device does not meet the second preset condition, it indicates that the communication quality of the electronic device is high, and the electronic device can continue to adopt a branch mode, using one antenna for Bluetooth communication and WIFI communication, thereby avoiding unnecessary parallel mode and reducing the waste of resources.
- 2.4Ghz wireless technology is a short-distance wireless transmission technology.
- 2.4GHz refers to a working frequency band.
- Working in the 2.4GHz frequency band can obtain a larger range of use and stronger anti-interference ability.
- 2.4GHz does not actually correspond to a specific value, but to a range.
- the frequency range of the 2.4Ghz working frequency band is 2.4Ghz ⁇ 2.48Ghz.
- the working frequency bands of Bluetooth modules and WIFI modules can both include the 2.4Ghz frequency band.
- the following continues to take the operating frequency band of the WIFI module and the Bluetooth module in the electronic device as 2.4Ghz, and the operating bandwidth of the WIFI module includes 40Mhz and/or 20Mhz as an example to describe in detail the embodiments of the present application.
- FIG9 is a flow chart of a communication method provided in an embodiment of the present application.
- the execution subject of the communication method may be an electronic device, and may be a processor or chip in the electronic device for example.
- the communication method is described in detail by taking the electronic device as an example.
- the electronic device uses the first antenna for Bluetooth communication and WIFI communication.
- the first preset condition indicates that the electronic device needs to use (i.e. should use) an exclusive antenna for Bluetooth communication, that is, there is a need for the electronic device to enter the Bluetooth independent transmission state.
- the Bluetooth independent transmission state indicates that the electronic device can use a parallel mode for Bluetooth communication and WIFI communication, that is, the antenna used by the electronic device for Bluetooth communication and WIFI communication may not be the same. In other words, the antenna used by the Bluetooth module in the electronic device is different from the antenna used by the WIFI module in the electronic device.
- the first preset condition indicates that the quality of WIFI communication and/or Bluetooth communication of the electronic device is low
- the first preset condition may include that the electronic device starts to perform Bluetooth communication, or, in the process of the electronic device performing Bluetooth communication and WIFI communication in a time-sharing mode, the communication quality value of the target communication mode of the electronic device is lower than the preset quality value.
- the target communication mode includes a WIFI communication mode and/or a Bluetooth communication mode.
- starting Bluetooth communication in this application means that Bluetooth enters a scanning state, a pairing state or other state that requires the Bluetooth module to use an antenna for Bluetooth communication (such as a successful connection between an electronic device and other devices) from a closed state.
- the first preset condition may include that the electronic device starts to perform Bluetooth communication.
- the electronic device may have a need to enter a Bluetooth independent transmission state, that is, the electronic device meets the first preset condition. If the electronic device does not start Bluetooth communication, the electronic device does not meet the first preset condition.
- the first preset condition includes that during the process of the electronic device using the time-sharing mode for Bluetooth communication and WIFI communication, the communication quality value of the target communication mode is lower than the preset quality value.
- the electronic device can continue to use the time-sharing mode for Bluetooth communication and WIFI communication, the electronic device does not need to use the parallel mode for Bluetooth communication and WIFI communication, that is, there is no need to enter an independent transmission state, and the electronic device does not meet the first preset condition.
- the electronic device If the communication quality value of the WIFI communication mode or the Bluetooth communication mode is less than the preset quality value, the electronic device has a need to enter an independent transmission state, the electronic device has a need to use the parallel mode for Bluetooth communication and WIFI communication, and the electronic device meets the first preset condition.
- the above-mentioned communication quality value may include a rate
- the above-mentioned preset quality value may include a preset rate
- the above-mentioned target communication mode includes a WIFI communication mode.
- the electronic device can determine that the electronic device does not need to enter the Bluetooth independent transmission state, and the electronic device does not meet the first preset condition, so there is no need to use an additional antenna for communication, which can reduce unnecessary waste of resources.
- the electronic device determines that it has the need to enter the Bluetooth independent transmission state, and the electronic device meets the first preset condition.
- the above rate is only an example parameter of the communication quality value, and the electronic device may also use other parameters to represent the communication quality value, such as other parameters may include received signal strength indicator (RSSI), transmission power, bit error rate, signal-to-noise ratio, etc. That is to say, the electronic device may determine that the communication quality value of the target communication mode is lower than the preset quality value and the communication quality of the target communication mode may be poor when the electronic device meets the following conditions.
- RSSI received signal strength indicator
- transmission power bit error rate
- signal-to-noise ratio etc. That is to say, the electronic device may determine that the communication quality value of the target communication mode is lower than the preset quality value and the communication quality of the target communication mode may be poor when the electronic device meets the following conditions.
- the conditions include: the rate of the target communication mode is greater than or equal to the preset rate, the received signal strength of the target communication mode is greater than the preset received signal strength, the transmission power of the target communication mode is greater than or equal to the preset transmission power, the bit error rate of the target communication mode is less than or equal to the preset bit error rate, and the signal-to-noise ratio of the target communication mode is greater than or equal to the preset signal-to-noise ratio.
- the rate of the target communication mode is greater than or equal to the preset rate
- the received signal strength of the target communication mode is greater than the preset received signal strength
- the transmission power of the target communication mode is greater than or equal to the preset transmission power
- the bit error rate of the target communication mode is less than or equal to the preset bit error rate
- the signal-to-noise ratio of the target communication mode is greater than or equal to the preset signal-to-noise ratio.
- the transmission power is the signal strength transmitted by the electronic device to the base station. That is, when the electronic device is far away from the router, the WiFi transmission power is higher; or when the Bluetooth device is far away from the electronic device, the Bluetooth transmission power will also be higher.
- the symbol error rate (SER) is an indicator to measure the accuracy of data transmission within a specified time.
- the initial working modes of WIFI communication and Bluetooth communication are both time-sharing modes.
- the electronic device reuses the antenna to perform WIFI communication and Bluetooth communication in time-sharing mode.
- the working bandwidth of WIFI communication in the time-sharing mode can be 40Mhz or 20Mhz, which is not specifically limited.
- the electronic device performs Bluetooth communication and WIFI communication in a time-sharing mode.
- the electronic device if the electronic device does not meet the first preset condition, it is determined that the electronic device adopts a time-sharing mode to perform Bluetooth communication and WIFI communication.
- S803 The electronic device determines a first Bluetooth coding format.
- the first Bluetooth coding format represents the coding format corresponding to the Bluetooth communication mode used by the electronic device, that is, the coding format used for Bluetooth communication. It can be understood that after the electronic device determines that the communication state of the electronic device meets the first preset condition, it can determine that the electronic device has a need to perform Bluetooth communication by means of an exclusive antenna. Therefore, the electronic device can use the first Bluetooth coding format to determine whether the electronic device needs to continue Bluetooth communication by means of an exclusive antenna, that is, whether to enter an independent transmission state.
- the electronic device can periodically or in real time detect whether the electronic device uses the Bluetooth coding format until it detects that the electronic device uses the Bluetooth coding format to encode the data, and then stops detecting.
- the detected Bluetooth coding format can be the first Bluetooth coding format.
- the electronic device can use the Bluetooth coding format to encode the data when transmitting business data to other devices. Therefore, in the case of determining that the electronic device meets the first preset condition, if the electronic device is currently in a scanning state and has not yet transmitted business data to other devices, the electronic device cannot obtain the Bluetooth coding format, so the electronic device can continue to detect.
- the Bluetooth coding format can be the first Bluetooth coding format. It can be seen that the first Bluetooth coding format in the present application can be the Bluetooth coding format that is most recently determined by the electronic device when the electronic device meets the first preset condition.
- the first Bluetooth encoding format may include a first Bluetooth encoding method, such as SBC, AAC, APTX, LDAC, LHDC, etc.
- the first Bluetooth encoding format may include a first Bluetooth encoding method and a coding rate corresponding to the first Bluetooth encoding method, such as LDAC 990 kbps.
- the first Bluetooth encoding format may also include other formats, which are not limited by the present application.
- the first Bluetooth coding format may include the first Bluetooth coding method and the coding rate corresponding to the first Bluetooth coding method; for Bluetooth coding methods with a smaller coding rate range and Bluetooth coding methods with a single value of coding rate, the first Bluetooth coding format may only include the first Bluetooth coding method.
- the electronic device determines a first communication indicator threshold corresponding to the first Bluetooth coding format.
- the second configuration table determines a first communication indicator threshold corresponding to the first Bluetooth coding format.
- the first communication indicator threshold is a threshold for entering an independent transmission state.
- the second configuration table may include at least one Bluetooth coding format and a communication indicator threshold corresponding to each Bluetooth coding format in the at least one Bluetooth coding format.
- the first communication indicator threshold is pre-set based on the benefit of WIFI.
- the benefit refers to the degree of improvement in WIFI speed when the electronic device switches from the time-sharing mode for Bluetooth communication and WIFI communication to the parallel mode for Bluetooth communication and WIFI communication (or simply stated, the working mode of the electronic device switches from the time-sharing mode to the parallel mode). The higher the WIFI benefit, the better the improvement effect of the WIFI speed.
- the communication indicator includes a WIFI received signal strength
- the communication indicator threshold includes a WIFI received signal strength threshold
- the above-mentioned WIFI received signal strength is only an example, and the communication index may not include the WIFI received signal strength, and its communication index may include at least one of WIFI transmission power, WIFI bit error rate, Bluetooth transmission power, Bluetooth received signal strength, Bluetooth bit error rate, and WIFI signal-to-noise ratio.
- the communication index may not include the WIFI received signal strength, and it may include at least one of WIFI received signal strength, WIFI transmission power, WIFI bit error rate, WIFI signal-to-noise ratio, Bluetooth transmission power, Bluetooth received signal strength, Bluetooth bit error rate, and Bluetooth signal-to-noise ratio.
- the communication index threshold may also include at least one of the WIFI received signal strength threshold, WIFI transmission power threshold, WIFI bit error rate threshold, WIFI signal-to-noise ratio threshold, Bluetooth transmission power threshold, Bluetooth received signal strength threshold, Bluetooth bit error rate threshold, and Bluetooth signal-to-noise ratio threshold.
- the communication index threshold corresponds to the communication index one by one.
- the WIFI received signal strength can affect the WIFI benefit.
- Table 2 the electronic device uses Bluetooth communication to play the music of the electronic device through a Bluetooth headset, and connects to router A to realize the WIFI communication mode.
- the WIFI rate is the largest and the WIFI benefit is the best.
- the WIFI received signal strength is between -70 and -72dB
- the WIFI rate is the smallest and the WIFI benefit is the worst.
- the Bluetooth coding format is LDAC
- the coding rate is 330kbps and 990kbps
- the WIFI benefit is the best. Therefore, the communication indicator threshold corresponding to the Bluetooth coding format LDAC is higher than the communication indicator threshold corresponding to the Bluetooth coding format AAC.
- the Bluetooth encoding format is LDAC
- the WIFI reception signal strength threshold under the encoding rate of 990kbps can be set to -60dB
- the WIFI reception signal strength threshold under the Bluetooth encoding format is AAC can be set to -70dB.
- the working bandwidth corresponding to the router A in the test scenario shown in Table 2 is 20 MHz
- the working bandwidth corresponding to the WIFI communication mode of the electronic device is 20 MHz
- the distance between the electronic device and the router A is 20 cm.
- the Bluetooth coding format corresponding to the Bluetooth communication mode of the electronic device is LDAC
- the coding rate corresponding to the LDAC is 330kbps
- the WIFI communication quality of the electronic device is higher than the WIFI communication quality when the coding rate corresponding to the LDAC is 990kbps.
- the WIFI rate when the coding rate is 330kbps is significantly different from the WIFI rate when the coding rate is 990kbps. Therefore, when the electronic device meets the first preset condition, it can use the first Bluetooth coding format and the first coding rate corresponding to the first Bluetooth coding format to determine whether the electronic device enters an independent transmission state.
- the first coding rate represents the coding rate of the electronic device when using the first Bluetooth coding format. Accordingly, the electronic device can use the relevant configuration table to find the first communication indicator threshold corresponding to the first Bluetooth coding format and the first coding rate.
- the relevant configuration table may include at least one Bluetooth coding format, at least one coding rate corresponding to each Bluetooth coding format, and a first communication indicator threshold corresponding to a coding rate corresponding to the Bluetooth coding format and the Bluetooth coding format.
- the coding rate in at least one coding rate corresponding to the Bluetooth coding format in the configuration table can be a specific value or a range.
- the distance between antennas in electronic devices is relatively close, and the isolation between antennas is relatively small. Therefore, when an electronic device is performing Bluetooth communication, the signal transmitted through Bluetooth will affect the receiving signal of other devices. That is, the greater the Bluetooth transmission power of the transmitting end, although it will not affect the transmitting end, the greater the impact on the receiving end, and the lower the WIFI rate of the receiving end (such as the electronic device). As shown in Table 3, when the Bluetooth transmission power is PL8, the WIFI rate corresponding to the downlink of the electronic device is the largest; when the Bluetooth transmission power is PL10, the WIFI rate corresponding to the downlink is the smallest.
- the electronic device can confirm The benefit when the Bluetooth transmission power is set to PL8 is higher than the benefit when the Bluetooth transmission power is PL10.
- the electronic device in the test scenario shown in Table 3, the electronic device is connected to a Bluetooth headset with an encoding format of AAC through a Bluetooth communication method, and the music of the electronic device is played through the Bluetooth headset.
- the working bandwidth corresponding to the WIFI communication method of the electronic device is 20MHz.
- the distance between the electronic device and the router is 20cm.
- the electronic device uses a parallel mode to perform Bluetooth communication and WIFI communication respectively.
- downlink refers to the physical channel of the signal from the base station to the mobile station, that is, the downlink instructs the electronic device to receive data sent by other devices based on the Bluetooth communication method.
- uplink refers to the physical channel of the signal from the mobile station to the base station, that is, the uplink instructs other devices to send data to the electronic device based on the Bluetooth communication method.
- the electronic device can search for the first communication indicator threshold corresponding to the latest communication parameter from the configuration table (such as the second configuration table described above), that is, the first communication indicator threshold corresponding to the current communication parameter.
- the latest communication parameter may include the latest Bluetooth encoding format, the identifier of the latest router, the latest encoding rate (or referred to as the first encoding rate), and the latest isolation (or referred to as the first isolation), and the working bandwidth of the latest router.
- the first communication indicator threshold can also be directly a fixed value or value range. When the first preset condition is met, the electronic device can directly obtain the first communication indicator threshold without using the latest communication parameter to determine it.
- the electronic device compares the first communication indicator threshold with the latest communication indicator to determine whether the latest communication indicator meets the second preset condition.
- the electronic device determines whether the latest communication indicator meets the second preset condition. If the latest communication indicator meets the second preset condition, the electronic device can determine to enter the independent transmission state, and the electronic device can execute S806; if the latest communication indicator does not meet the second preset condition, the electronic device can execute S807.
- the second preset condition may include that the WIFI received signal strength is greater than the first WIFI received signal strength threshold.
- the second preset condition including that the WIFI received signal strength is greater than the first WIFI received signal strength threshold is only an example, and the second preset condition may also not include that the WIFI received signal strength is greater than the first WIFI received signal strength threshold.
- the second preset condition may include at least one of the following: the WIFI received signal strength is greater than the first WIFI received signal strength threshold, the Bluetooth transmission power is greater than the first Bluetooth transmission power threshold, the Bluetooth received signal strength is greater than the first Bluetooth received signal strength threshold, the Bluetooth bit error rate is less than the first Bluetooth bit error rate threshold, the WIFI transmission power is greater than the first WIFI transmission power threshold, the WIFI signal-to-noise ratio is less than the first WIFI signal-to-noise ratio threshold, the WIFI bit error rate is less than the first WIFI bit error rate threshold, and the Bluetooth signal-to-noise ratio is less than the first Bluetooth signal-to-noise ratio threshold.
- the current communication indicator (i.e., the latest communication indicator) includes the current (i.e., the latest) WIFI received signal strength
- the above-mentioned first communication indicator threshold includes the first WIFI received signal strength threshold
- the second preset condition may include that the WIFI received signal strength is greater than the first WIFI received signal strength threshold.
- the electronic device can determine whether the latest WIFI received signal strength is greater than the first WIFI received signal strength threshold.
- the latest WIFI received signal strength is greater than the first WIFI received signal strength threshold, it indicates that after the electronic device switches from the time-sharing mode to the parallel mode, the WIFI benefit of the electronic device is greater, then it is determined that the electronic device meets the second preset condition and can enter the independent transmission state; if the latest WIFI received signal strength is less than or equal to the first WIFI received signal strength threshold, it is determined that the electronic device does not meet the second preset condition and may not enter the independent transmission state.
- the electronic device For example, taking the first WIFI reception signal strength threshold of -60dB as an example, if the current WIFI reception signal strength is -55dB, it means that the current WIFI reception signal strength is greater than the WIFI reception signal strength threshold, so the electronic device meets the second preset condition and can enter the independent transmission state for Bluetooth communication; if the current WIFI reception signal strength is -63dB, it means that the WIFI reception signal strength is less than the WIFI reception signal strength threshold, so the electronic device does not meet the second preset condition and can not enter the independent transmission state for Bluetooth communication.
- the current communication indicator includes the latest Bluetooth transmission power
- the first communication indicator threshold includes the first Bluetooth transmission power threshold
- the second preset condition may include that the Bluetooth transmission power is greater than the first Bluetooth transmission power threshold.
- the electronic device determines whether the latest Bluetooth transmission power is greater than the first Bluetooth transmission power threshold. If the latest Bluetooth transmission power is greater than the first Bluetooth transmission power threshold, it is determined that the electronic device meets the second preset condition and can enter the independent transmission state for Bluetooth communication; if the latest Bluetooth transmission power is less than or equal to the first Bluetooth transmission power threshold, it is determined that the electronic device does not meet the second preset condition and may not enter the independent transmission state for Bluetooth communication.
- the current communication indicator includes the latest Bluetooth received signal strength
- the first communication indicator threshold includes the first Bluetooth received signal strength threshold
- the second preset condition may include that the Bluetooth received signal strength is greater than the first Bluetooth received signal strength threshold.
- the electronic device determines whether the latest Bluetooth received signal strength is greater than the first Bluetooth received signal strength threshold. If the latest Bluetooth received signal strength is greater than the first Bluetooth received signal strength threshold, it is determined that the electronic device meets the second preset condition and can enter the independent transmission state for Bluetooth communication; if the latest Bluetooth received signal strength is less than or equal to the first Bluetooth received signal strength threshold, it is determined that the electronic device does not meet the second preset condition, and therefore, it may not enter the independent transmission state for Bluetooth communication.
- the current communication indicator includes the latest Bluetooth bit error rate
- the first communication indicator threshold includes the first Bluetooth bit error rate threshold
- the second preset condition may include that the Bluetooth bit error rate is less than the first Bluetooth bit error rate threshold.
- the electronic device determines whether the latest Bluetooth bit error rate is less than the first Bluetooth bit error rate threshold. If the latest Bluetooth bit error rate is less than the first Bluetooth bit error rate threshold, it means that the Bluetooth communication is seriously interfered by the WIFI communication, that is, the data transmission quality of the Bluetooth module is poor.
- the electronic device meets the second preset condition and can enter the independent transmission state for Bluetooth communication; if the latest Bluetooth bit error power is greater than or equal to the first Bluetooth bit error rate threshold, it is determined that the electronic device does not meet the second preset condition and may not enter the independent transmission state for Bluetooth communication.
- the current communication indicator includes the latest WIFI transmission power
- the first communication indicator threshold includes the first WIFI transmission power threshold.
- the above-mentioned second preset condition may include that the WIFI transmission power is greater than the first WIFI transmission power threshold.
- the electronic device determines whether the latest WIFI transmission power is greater than the first WIFI transmission power threshold. If the latest WIFI transmission power is greater than the first WIFI transmission power threshold, it is determined that the electronic device meets the second preset condition and can enter the independent transmission state for Bluetooth communication; if the latest WIFI transmission power is less than or equal to the first WIFI transmission power threshold, it is determined that the electronic device does not meet the second preset condition and may not enter the independent transmission state for communication. Bluetooth communication.
- the current communication indicator includes the latest WIFI bit error rate
- the first communication indicator threshold includes the first WIFI bit error rate threshold.
- the above-mentioned second preset condition may include that the WIFI bit error rate is less than the first WIFI bit error rate threshold.
- the electronic device determines whether the latest WIFI bit error rate is less than the first WIFI bit error rate threshold. If the latest WIFI bit error rate is less than the first WIFI bit error rate threshold, it means that the WIFI communication is seriously interfered by the Bluetooth communication, that is, the data transmission quality of the WIFI module is poor.
- the electronic device meets the second preset condition and can enter the independent transmission state for Bluetooth communication; if the latest WIFI bit error power is greater than or equal to the first WIFI bit error rate threshold, it is determined that the electronic device does not meet the second preset condition and can not enter the independent transmission state for Bluetooth communication.
- the current communication indicator includes the latest WIFI signal-to-noise ratio
- the first communication indicator threshold includes the first WIFI signal-to-noise ratio threshold.
- the above-mentioned second preset condition may include that the WIFI signal-to-noise ratio is less than the first WIFI signal-to-noise ratio threshold.
- the electronic device determines whether the latest WIFI signal-to-noise ratio is less than the first WIFI signal-to-noise ratio threshold. If the latest WIFI signal-to-noise ratio is less than the first WIFI signal-to-noise ratio threshold, it means that the WIFI signal is more affected by interference signals (such as noise), that is, the WIIF communication quality is poor.
- the electronic device can determine that the electronic device meets the second preset condition and enters an independent transmission state for Bluetooth communication; if the latest WIFI signal-to-noise ratio is greater than or equal to the first WIFI signal-to-noise ratio threshold, it is determined that the electronic device does not meet the second preset condition and may not enter an independent transmission state for Bluetooth communication.
- the current communication indicator includes the latest Bluetooth signal-to-noise ratio
- the first communication indicator threshold includes the first Bluetooth signal-to-noise ratio threshold.
- the above-mentioned second preset condition may include that the Bluetooth signal-to-noise ratio is less than the first Bluetooth signal-to-noise ratio threshold.
- the electronic device determines whether the latest Bluetooth signal-to-noise ratio is less than the first Bluetooth signal-to-noise ratio threshold. If the latest Bluetooth signal-to-noise ratio is less than the first Bluetooth signal-to-noise ratio threshold, it means that the Bluetooth communication quality is poor.
- the electronic device can determine that the electronic device meets the second preset condition and enters an independent transmission state for Bluetooth communication; if the latest Bluetooth signal-to-noise ratio is greater than or equal to the first Bluetooth signal-to-noise ratio threshold, it is determined that the electronic device does not meet the second preset condition and may not enter an independent transmission state for Bluetooth communication.
- the current communication indicator may also include multiple indicators
- the second preset condition may also include multiple conditions, that is, the second preset condition may include the condition corresponding to each indicator of the multiple indicators.
- the electronic device determines whether the electronic device meets the condition corresponding to the indicator. If the electronic device meets the condition corresponding to each indicator, the electronic device can determine that the electronic device meets the second preset condition. If the electronic device does not meet the condition corresponding to at least one indicator, the electronic device can determine that the electronic device does not meet the second preset condition.
- the current communication indicator may include the current WIFI received signal strength and the current WIFI transmit power.
- the second preset condition may include the two conditions that the WIFI received signal strength is greater than the first WIFI received signal strength threshold, and the WIFI transmit power is greater than the first WIFI transmit power threshold. If the latest WIFI received signal strength of the electronic device is greater than the first WIFI received signal strength threshold, and the latest WIFI transmit power is greater than the first WIFI transmit power threshold, it can be determined that the electronic device meets the second preset condition.
- the electronic device can determine that the electronic device meets the second preset condition. If the electronic device does not meet the conditions corresponding to all indicators, the electronic device can determine that the electronic device does not meet the second preset condition.
- the electronic device enters an independent transmission state.
- the electronic device determines that the electronic device meets the second preset condition, it means that the electronic device can use the first antenna for WIFI communication and the second antenna for Bluetooth communication, that is, the electronic device can enter an independent transmission state.
- the electronic device performs Bluetooth communication and WIFI communication in a time-sharing mode.
- the electronic device when the electronic device does not meet the second preset condition, it indicates that the quality of Bluetooth communication/WIFI communication is good. Therefore, in order to reduce the waste of resources, there is no need to use different antennas for Bluetooth communication and WIFI communication. Therefore, the electronic device can adopt a time-sharing mode for Bluetooth communication and WIFI communication.
- different models of routers can directly affect the WIFI rate of the electronic device connected to the router.
- Table 4 in the scenario where Bluetooth is turned on but not scanned (WIFI occupies the antenna exclusively), the electronic device performs WIFI communication and does not perform Bluetooth communication, and WIFI communication occupies the antenna exclusively.
- This scenario can be compared to the scenario where different antennas are used to perform WIFI communication and Bluetooth communication in parallel. Therefore, the transmission performance of the electronic device when using different antennas to perform WIFI communication and Bluetooth communication in parallel can be compared to the transmission performance in this scenario.
- the WIFI rate when the electronic device uses a time-sharing mode to perform WIFI communication and Bluetooth communication can be known from Table 4.
- TCP shown in Table 4 above refers to the transmission control protocol.
- UDP refers to the user datagram protocol.
- the above UL refers to the uplink, and the above DL refers to the downlink.
- the data shown in Table 4 above are obtained when the distance between the electronic device and the router is relatively close (e.g., 20 cm).
- the model of the router and the working bandwidth will affect the WIFI Rate.
- the WIFI rate corresponding to the 40MHz working bandwidth is higher than the WIFI rate corresponding to the 20MHz working bandwidth, indicating that the 40MHz working bandwidth is suitable for short-distance transmission, so the WIFI rate corresponding to the 40MHz working bandwidth is higher.
- the WIFI rate corresponding to router A and the WIFI rate corresponding to router B are higher than the WIFI rate corresponding to router C.
- the WIFI rate corresponding to router A and the WIFI rate corresponding to router B are higher than the WIFI rate corresponding to router D. Since the retransmission strategies under different models of routers are different, the WIFI rates corresponding to different routers are also different. In the same router and the same working bandwidth, the WIFI rate corresponding to the Bluetooth on but not scanning scenario is higher than the WIFI rate corresponding to the AAC scenario, and the WIFI rate corresponding to the AAC scenario and the WIFI rate corresponding to the Bluetooth on but not scanning scenario are higher than the WIFI rate corresponding to the LDAC scenario.
- the encoding rate of LDAC is higher than the encoding rate of AAC, and the Bluetooth on but not scanning scenario is a scenario without Bluetooth encoding, the higher the encoding rate, the lower the WIFI rate.
- the AAC scenario and the LDAC scenario refer to encoding data based on the AAC encoding format and the LDAC encoding format when the electronic device performs Bluetooth communication.
- Table 5 includes the WIFI rate of the electronic device after turning off Bluetooth under different routers and different WIFI receiving signal strengths, as well as the WIFI rate in time-sharing mode and parallel mode under different Bluetooth encoding formats and the corresponding benefits.
- the WIFI speeds of different routers are also different. Overall, the WIFI speed of router A is higher, while the WIFI speed of router B is lower. Therefore, based on the above analysis, different models of routers will affect the WIFI speed.
- the first communication indicator threshold value may also be pre-set according to the router and/or the working bandwidth. For example, taking the first communication indicator threshold value as the first WIFI received signal strength threshold value as an example, if the transmission performance of the router is better, the first WIFI received signal strength threshold value may be higher; if the transmission performance of the router is worse, the first WIFI received signal strength threshold value may be lower. If the working bandwidth is higher, the first WIFI received signal strength threshold value may be higher; if the working bandwidth is lower, the set first WIFI received signal strength threshold value may be lower. In this way, the accuracy of determining the first communication indicator threshold value may be improved.
- the working mode is time-sharing mode
- the working bandwidth of WIFI communication is the WIFI rate at 40Mhz (i.e., 248, 283, 242, 294) higher than the parallel mode
- the working bandwidth of WIFI communication is the WIFI rate at 20Mhz (i.e., 138, 148, 201, 190).
- the WIFI transmission performance of the electronic device is better.
- electronic devices can be connected to routers of different models for WIFI communication. Since the performance of routers of different models is different, the router can directly affect the working mode of the electronic device for WIFI communication and Bluetooth communication.
- the Bluetooth service corresponds to LDAC
- the rates of WIFI communication and Bluetooth communication in the time-sharing mode are low.
- the WIFI rate in the parallel mode is high.
- WIFI wireless fidelity
- time-sharing mode For example, under router C, no matter which Bluetooth encoding format the Bluetooth service corresponds to, WIFI is performed in time-sharing mode.
- the rates of both Wi-Fi and Bluetooth communication are poor.
- the Wi-Fi rate in parallel mode is high.
- the working modes of electronic devices under different routers will be different, and accordingly, the first preset indicator thresholds corresponding to different types of routers may be different.
- the transmission performance of the electronic device is good when performing WIFI communication and Bluetooth communication in time-sharing under router A, but the transmission performance of WIFI communication and Bluetooth communication in parallel under router B is good.
- the working modes of the electronic device with good transmission performance under different Bluetooth services will also be different.
- the transmission performance of the electronic device is good when performing WIFI communication and Bluetooth communication in time-sharing under router A, but the transmission performance of WIFI communication and Bluetooth communication in parallel under router B is good.
- the working module may include a time-sharing mode and a parallel mode
- the parallel mode may include a first parallel mode and a second parallel mode.
- Time-sharing mode a time-sharing mode for Bluetooth communication and WIFI communication.
- the working bandwidth of WIFI communication is not limited.
- the working bandwidth of WIFI communication can be 40Mhz or 20Mhz.
- the electronic device reuses the antenna to perform WIFI communication and Bluetooth communication in time-sharing, or the electronic device can also use different antennas to perform WIFI communication and Bluetooth communication in time-sharing.
- First parallel mode a parallel mode of WIFI communication and Bluetooth communication
- the working bandwidth of WIFI communication is the first working bandwidth.
- the electronic device uses different antennas to perform WIFI communication and Bluetooth communication in parallel.
- the first working bandwidth is 20Mhz.
- Second parallel mode parallel mode of WIFI communication and Bluetooth communication
- the working bandwidth of WIFI communication is the second working bandwidth.
- the electronic device uses different antennas to perform WIFI communication and Bluetooth communication in parallel.
- the second working bandwidth is 40Mhz.
- the working bandwidth of Bluetooth communication includes the bandwidth in the working frequency band except the working bandwidth of WIFI communication (20Mhz or 40Mhz).
- the working bandwidth of Bluetooth communication may also include a small amount of working bandwidth of WIFI communication.
- the working bandwidth of WIFI communication in the above three working modes represents the maximum working bandwidth that can be used for WIFI communication.
- the working bandwidth actually used is not necessarily the maximum working bandwidth that can be used for WIFI communication.
- the specific situation is related to the configuration of the router. If the bandwidth supported by the router includes the maximum working bandwidth that can be used for WIFI communication, then the working bandwidth actually used by the electronic device for WIFI communication can be the maximum working bandwidth; if the bandwidth supported by the router is less than the maximum working bandwidth, then the working bandwidth actually used by the electronic device for WIFI communication is less than the maximum working bandwidth.
- the electronic device determines that the working bandwidth of WIFI communication is 40Mhz, but the router only supports a working bandwidth of 20Mhz, then the working bandwidth actually used by the electronic device for WIFI communication is 20Mhz. For another example, if the electronic device determines that the maximum working bandwidth of WIFI communication is 40Mhz, and the router also supports a working bandwidth of 40Mhz, then the working bandwidth actually used by the electronic device for WIFI communication can be 40Mhz.
- the working frequency bands of WIFI communication and Bluetooth communication are not necessarily limited to 2.4Ghz.
- the working frequency bands of the two overlap it can be determined whether it is necessary to enter the independent transmission state; for another example, the working bandwidth of WIFI communication is not necessarily limited to 40Mhz or 20Mhz, and can also be other values. For example, 30Mhz, 50Mhz.
- the electronic device can obtain the first communication indicator threshold after determining that the electronic device meets the first preset condition, and then compare the current communication indicator obtained in real time with the first communication indicator threshold to determine whether the electronic device can use different antennas for WIFI communication and Bluetooth communication, so that the interference between WIFI communication and Bluetooth communication can be reduced and good transmission performance can be maintained, which not only improves the flexibility of the system, but also improves the stability of the system. And it can also reduce the waste of resources.
- the electronic device can use the relevant configuration table to determine whether the hardware resources of the electronic device can meet the requirements of the parallel mode. If so, the electronic device can determine whether it is necessary for the electronic device to enter the independent transmission state using the first communication indicator threshold.
- the process of the electronic device directly determining the first working mode using the configuration table will be described below in conjunction with S901-S905 in Figure 10.
- the electronic device determines a first communication parameter of the electronic device, where the first communication parameter includes at least one of a first Bluetooth encoding format, identification information of a first router, and a first isolation level.
- the first communication parameter represents the latest communication parameter of the electronic device.
- the first router (or current router, latest router) represents the router used by the electronic device for WIFI communication. That is, the WIFI signal provided by the first router to which the electronic device is connected.
- the first isolation (or current isolation) represents the isolation between antennas.
- the isolation between antennas represents the ratio between the signal power transmitted by a certain antenna and the signal strength power received at another antenna, that is, the isolation between antennas represents the output attenuation degree of the transmitted signal of a certain antenna to another antenna. The larger the ratio, the smaller the isolation, the better.
- the isolation between antennas is the isolation between the above-mentioned first antenna and the above-mentioned second antenna.
- the identification information of the first router may be the model number, name, etc. of the first router.
- the first Bluetooth encoding format may be referred to as the current Bluetooth encoding format or the latest Bluetooth encoding format.
- S902 The electronic device determines whether there is a working mode identifier corresponding to the first communication parameter in the first configuration table.
- the electronic device may execute S903; if the working mode identifier corresponding to the first communication parameter does not exist in the first configuration table, the electronic device may execute S904.
- S903 The electronic device determines the working mode identifier corresponding to the first communication parameter from the first configuration table to obtain the first working mode.
- the first working mode is the working mode corresponding to the working mode identifier corresponding to the first communication parameter.
- the first configuration table (or described as a whitelist) includes communication parameters and their corresponding working mode identifiers.
- the communication parameters may include at least one of the following information: Bluetooth encoding format, router identification information, and isolation range.
- the working mode may include a parallel mode and a branch mode.
- the parallel mode may include a first parallel mode and a second parallel mode.
- the communication parameters may include a Bluetooth encoding format and router identification information.
- the first configuration table includes at least one Bluetooth encoding format, at least one router identification information, and a working mode identifier corresponding to a Bluetooth encoding format and a router identification.
- the first communication parameter may include a Bluetooth encoding format, router identification information, and an isolation range.
- the first configuration table includes at least one Bluetooth encoding format, at least one router identification information, at least one isolation, and An operating mode identifier corresponding to a Bluetooth encoding format, identification information of a router, and an isolation range.
- the communication parameters may include the Bluetooth encoding format, the router identification, and the isolation range as an example to introduce the process of the electronic device determining the first working mode.
- the electronic device obtains the first communication parameter including the first Bluetooth coding format (ie, AAC), the identification information of the first router (ie, A), and the isolation degree a, where a is less than a2.
- the electronic device can determine that the first working mode is the time-sharing mode.
- the working bandwidth corresponding to the time-sharing mode can also be determined by the first configuration table, such as 40Mhz shown in Table 6.
- the first isolation threshold is related to the 40Mhz working bandwidth of WIFI communication. Among them, the isolation between antennas is fixed and can be directly obtained.
- the electronic device determines that the isolation between the first antenna and the second antenna is greater than the first isolation threshold, it indicates that the isolation between the first antenna and the second antenna is large enough to meet the requirements of the second parallel mode, that is, the electronic device uses different antennas to perform WIFI communication and Bluetooth communication in parallel, and the working bandwidth of WIFI communication is 40Mhz, and the interference between the two communications is reduced, that is, the interference level is within an acceptable range. Therefore, the electronic device can continue to use the first communication indicator threshold to determine whether it is necessary for the electronic device to use the parallel mode to perform Bluetooth communication and WIFI communication.
- the electronic device determines that the isolation between the first antenna and the second antenna is less than or equal to the first isolation threshold, it indicates that the isolation between the first antenna and the second antenna is still not large enough to meet the requirements of the second parallel mode. In short, the electronic device cannot support the parallel mode, so the electronic device can determine the working mode as In the time-sharing mode, there is no need to use the first communication indicator threshold to determine whether the electronic device adopts the parallel mode.
- the electronic device may determine whether the isolation between the first antenna and the second antenna is greater than a second isolation threshold, wherein the second isolation threshold is less than the first isolation threshold, and the second isolation threshold is related to the 20 MHz working bandwidth of WIFI communication.
- the electronic device determines that the isolation between the first antenna and the second antenna is greater than the second isolation threshold, it indicates that the isolation between the first antenna and the second antenna is large, and can meet the requirements of the first parallel mode, that is, meet the requirements of using different antennas for parallel WIFI communication and Bluetooth communication, and the working bandwidth of WIFI communication is 20Mhz. In this way, the transmission interference between the two communications is not large, or in other words, the interference is within an acceptable range.
- the electronic device determines that the isolation between the first antenna and the second antenna is less than or equal to the second isolation threshold, it indicates that the isolation between the first antenna and the second antenna is very small and cannot meet the requirement of using different antennas for parallel WIFI communication and Bluetooth communication, and the working bandwidth of WIFI communication is 20Mhz.
- the second antenna may be determined by the following implementation methods.
- the second antenna is a cellular antenna. Since cellular communication and Bluetooth communication share an antenna, and the electronic device includes multiple cellular antennas, the electronic device can determine the second antenna from the multiple cellular antennas based on the idleness of the cellular communication and the isolation between each of the multiple cellular antennas and the first antenna.
- the implementation process of determining the second antenna from the multiple cellular antennas can refer to the following two possible examples.
- the electronic device may determine an antenna with the greatest isolation from the first antenna among the multiple cellular antennas as the second antenna.
- the second antenna is an antenna exclusively for Bluetooth (referred to as Bluetooth antenna). If there is only one Bluetooth antenna in the electronic device, then the second antenna is this antenna. If the electronic device includes multiple Bluetooth antennas, then the electronic device can determine the second antenna from the multiple Bluetooth antennas based on the isolation between each Bluetooth antenna in the multiple Bluetooth antennas and the first antenna.
- the implementation process of determining the second antenna from the multiple Bluetooth antennas can refer to the following two possible examples.
- the electronic device may determine the one of the multiple Bluetooth antennas with the greatest isolation from the first antenna as the second antenna. In another example, the electronic device may determine N antennas of the multiple Bluetooth antennas that meet the isolation requirement as the second antenna.
- the first configuration table may be pre-configured in the electronic device. For example, when the electronic device leaves the factory, the first configuration table is pre-configured inside the device.
- the first configuration table may also be obtained by the electronic device from a server. For example, the electronic device may periodically send a request to the server to obtain the first configuration table.
- the server may also periodically send the first configuration table to the electronic device.
- the first configuration table is generated by autonomous learning in the process of the electronic device determining whether to enter the independent transmission state based on the indicator threshold.
- the first configuration table may be continuously updated.
- the first configuration table does not contain the first communication parameter, or does not contain the working mode corresponding to the electronic device, it indicates that the electronic device cannot directly determine the first working mode using the first configuration table, and thus cannot accurately determine whether the electronic device should enter the independent transmission state. In this way, unnecessary waste of resources can be reduced.
- the electronic device determines the WIFI rate in the working mode, wherein the first working mode is the working mode corresponding to the highest WIFI rate among the WIFI rates in each working mode.
- the electronic device can collect the WIFI rate in the corresponding working mode for different working modes, and use the working mode with the highest WIFI rate as the first working mode. For example, if the electronic device is currently in the time-sharing mode, the electronic device can directly collect the WIFI rate in the time-sharing mode. Afterwards, the electronic device can switch to the parallel mode to collect the WIFI rate in the parallel mode.
- the WIFI rates in the above different working modes can also be collected and saved by the electronic device when the electronic device is in the corresponding working mode. Afterwards, when the WIFI rates in different working modes of the electronic device are needed, they can be directly obtained.
- the electronic device determines that the WIFI rate of the electronic device in the time-sharing mode is 5 Mbps and the WIFI rate in the parallel mode is 80 Mbps, the first working mode is the parallel mode.
- the determination process of the above-mentioned first working mode may include: the electronic device determines the first WIFI rate of the electronic device in the time-sharing mode, if the first WIFI rate is greater than the preset rate, it means that the transmission rate when WIFI and Bluetooth share the antenna is very high, and the first working mode is the time-sharing mode, and there is no need to use the first communication indicator threshold to determine whether it is necessary to enter the independent transmission state.
- the electronic device determines that the first WIFI rate is less than the preset rate, it indicates that the WIFI communication quality is poor. Therefore, the electronic device needs to determine the second WIFI rate when the electronic device enters the independent transmission state. If the second WIFI rate is higher than the first WIFI rate, it indicates that the WIFI rate in the parallel mode is higher, and the above-mentioned first working mode can be the parallel mode.
- the electronic device uses the first configuration table to determine the first working mode.
- the electronic device may also first use the first configuration table to determine the first working mode (such as executing the above S901-S904).
- the electronic device After obtaining the first working mode, if the first working mode is a time-sharing mode, the electronic device no longer needs to continue to determine whether the electronic device meets the first preset condition; if the first working mode is a parallel mode, it indicates that the hardware resources of the electronic device can meet the requirements of the parallel mode. Therefore, the electronic device can continue to determine whether the electronic device meets the first preset condition, that is, to determine whether the electronic device has the need to enter an independent transmission state.
- the electronic device in order to improve the accuracy of determining the first working mode, after the electronic device determines that the first WIFI rate (i.e., the WIFI rate in the time-sharing mode) is less than the preset rate, it is necessary to separately determine the WIFI rate of the electronic device in the parallel mode, such as the third WIFI rate corresponding to the first parallel mode and the fourth WIFI rate corresponding to the second parallel mode. Afterwards, the electronic device can The parallel mode corresponding to the maximum value of the rate and the fourth WIFI rate corresponding to the second parallel mode is used as the first working mode. For example, the first WIFI rate of the electronic device in the time-sharing mode is 5Mpbs. Since the first WIFI rate is low, the electronic device may need to enter the independent transmission state.
- the first WIFI rate i.e., the WIFI rate in the time-sharing mode
- the third WIFI rate of the electronic device in the first parallel mode is 80Mbps
- the fourth WIFI rate of the electronic device in the second parallel mode is 100Mbps.
- the fourth WIFI rate is higher than the third WIFI rate. Therefore, the first working mode can be the second parallel mode.
- the electronic device compares the third WIFI rate and the fourth WIFI rate with the preset WIFI rate (or called the preset rate) respectively, and takes the working mode corresponding to the WIFI rate greater than the preset WIFI rate as the first working mode.
- the working mode corresponding to the maximum value of the third WIFI rate and the fourth WIFI rate can be used as the first working mode; if the third WIFI rate and the fourth WIFI rate are both less than or equal to the preset WIFI rate, the working mode corresponding to the maximum value of the first WIFI rate, the third WIFI rate and the fourth WIFI rate needs to be used as the first working mode.
- S905 The electronic device determines whether the first operating mode is a parallel mode.
- step S804 it indicates that the electronic device can support the parallel mode, and it can continue to determine whether it is necessary for the electronic device to enter the parallel mode, and the electronic device can execute step S804; if no, it indicates that the electronic device may not be able to meet the hardware resources required for the parallel mode, and if it enters the parallel mode, the communication quality will be improved less or even worse. Therefore, there is no need for the electronic device to enter the parallel mode, and the electronic device can execute step S906.
- the electronic device when the electronic device determines that the first working mode is a parallel mode, it indicates that the hardware resources of the electronic device meet the resources required for the independent transmission state, and the electronic device can use the parallel mode for Bluetooth communication and WIFI communication.
- the electronic device can determine the first communication indicator threshold corresponding to the first Bluetooth coding format from the above-mentioned second configuration table, so as to use the first communication indicator threshold to determine whether it is necessary for the electronic device to enter an independent transmission state; if the electronic device determines that the first working mode is a time-sharing mode, it indicates that the hardware resources of the electronic device cannot meet the resources required for the independent transmission state, and then it can be directly determined to use the time-sharing mode for Bluetooth communication and WIFI communication.
- the electronic device performs Bluetooth communication and WIFI communication in a time-sharing mode.
- the electronic device determines a first communication indicator threshold corresponding to the first Bluetooth coding format.
- the first communication indicator threshold corresponding to the latest (i.e., current) communication parameter can be determined from the third configuration table.
- the third configuration table includes communication parameters, working mode identifiers, and the first communication indicator threshold corresponding to the communication parameters and the working mode identifier.
- the third configuration table may include at least one Bluetooth coding format, at least one router identification information, at least one isolation range, at least one working mode identification (or described as the first working mode), and a first communication indicator threshold corresponding to a working mode identification, a Bluetooth coding format, a router identification information and an isolation range.
- the Bluetooth coding format is LDAC 990kbps
- the router identification information is A
- the isolation between antennas is a, which is greater than the first isolation threshold a1.
- the electronic device can determine that the working mode identification is parallel mode + 40Mhz (i.e., the second parallel mode), and the first communication indicator threshold may include: Bluetooth transmission power threshold BT TX1, Bluetooth received signal strength threshold BT RSSI1, Bluetooth bit error rate Threshold BT BTBLER 1, WIFI transmit power threshold WIFI TX1, WIFI received signal strength threshold WIFI RSSI1, WIFI bit error rate threshold WIFI BTBLER 1 and WIFI signal-to-noise ratio threshold WIFI SNR1, etc.
- the electronic device since the coding rate corresponding to some Bluetooth coding formats (such as Bluetooth coding formats other than LDAC) is a single value or a relatively small rate range, the electronic device does not need to distinguish the coding rate acquisition.
- the third configuration table and the second configuration table may belong to the same table or different tables.
- the electronic device determines that the first working mode is the time-sharing mode, it can determine to use the time-sharing mode for Bluetooth communication and WIFI communication without entering an independent transmission state for Bluetooth communication, thus reducing unnecessary waste of resources.
- the electronic device after the electronic device enters the independent transmission state, that is, in the process of using the parallel mode for Bluetooth communication and WIFI communication, it can also obtain the current communication index (i.e., the latest communication index) in real time and periodically, so as to use the current communication index to determine whether the electronic device exits the independent transmission state, so that the WIFI communication can enjoy the benefits of large bandwidth.
- the process of exiting the independent transmission state can be the steps shown in Figure 11.
- S1001 When the electronic device enters an independent transmission state to perform Bluetooth communication, determine a second communication indicator threshold corresponding to a first Bluetooth coding format.
- the second communication indicator threshold represents the threshold of the communication indicator when exiting the independent Bluetooth antenna in the fourth configuration table.
- the second communication indicator threshold is different from the above-mentioned first communication indicator threshold, and the second communication indicator threshold is less than the first communication indicator threshold.
- the second communication indicator threshold may also be equal to the first communication indicator threshold.
- the fourth configuration table may include at least one Bluetooth encoding format, at least one router identification information, at least one isolation range, at least one working mode (or described as the first working mode), a first communication indicator threshold corresponding to a working mode, a Bluetooth encoding format, a router identification information and an isolation range, and a first communication indicator threshold corresponding to a working mode, a Bluetooth encoding format, a router identification information and an isolation range.
- the Bluetooth encoding format is LDAC990kbps
- the router identification information is A
- the isolation between antennas is a, which is greater than the first isolation threshold a1.
- the electronic device can determine through Table 8 that the second communication indicator threshold may include: Bluetooth transmission power threshold BT TX2, Bluetooth received signal strength threshold BT RSSI2, Bluetooth bit error rate threshold BT BTBLER 2, WIFI transmission power threshold WIFI TX2, WIFI received signal strength threshold WIFI RSSI2, WIFI bit error rate threshold WIFI BTBLER2, and WIFI signal-to-noise ratio threshold WIFI SNR2, etc.
- first communication indicator threshold and the second communication indicator threshold in Table 8 are merely exemplary.
- the first communication indicator threshold and the second communication indicator threshold may only include WIFI received signal strength RSSI; in some instances, the first communication indicator threshold and the second communication indicator threshold may include Bluetooth received signal strength RSSI and WIFI received signal strength RSSI, etc., without specific limitation.
- the first working mode is the time-sharing mode, it means that the electronic device does not need to enter the independent transmission state to perform Bluetooth communication, and therefore, there is no need to set the first communication indicator threshold and the second communication indicator threshold.
- S1002 The electronic device compares the second communication indicator threshold with the latest communication indicator to determine whether the latest communication indicator meets a third preset condition.
- the electronic device determines whether the latest communication indicator meets the third preset condition. If so, the electronic device may determine to exit the independent transmission state, and the electronic device may execute S1003. If not, the electronic device may continue to be in the independent transmission state, and may execute S1004.
- the third preset condition may include that the WIFI received signal strength is less than the first WIFI received signal strength threshold.
- the third preset condition including that the WIFI received signal strength is less than the first WIFI received signal strength threshold is only an example, and the third preset condition may not include that the WIFI received signal strength is less than the first WIFI received signal strength threshold.
- the third preset condition may include at least one of the following: the WIFI received signal strength is less than the first WIFI received signal strength threshold, the Bluetooth transmission power is less than the first Bluetooth transmission power threshold, the Bluetooth received signal strength is less than the first Bluetooth received signal strength threshold, the Bluetooth bit error rate is greater than the first Bluetooth bit error rate threshold, the WIFI transmission power is less than the first WIFI transmission power threshold, the WIFI signal-to-noise ratio is greater than the first WIFI signal-to-noise ratio threshold, the WIFI bit error rate is greater than the first WIFI bit error rate threshold, and the Bluetooth signal-to-noise ratio is greater than the first Bluetooth signal-to-noise ratio threshold.
- configuration tables (such as the first configuration table, the second configuration table, the third configuration table and the fourth configuration table) can be one table or different tables, and this application is not limited thereto.
- the current communication indicator includes WIFI received signal strength
- the second communication indicator threshold includes a second WIFI received signal strength threshold
- the third preset condition may include that the WIFI received signal strength is less than the second WIFI received signal strength threshold.
- the electronic device determines whether the WIFI received signal strength is less than the second WIFI received signal strength threshold. If the WIFI received signal strength is less than the second WIFI received signal strength threshold, it means that the current electronic device has a low benefit value in parallel mode.
- the electronic device determines that the electronic device does not meet the third preset condition and can exit the independent transmission state without continuing to use the parallel mode for Bluetooth communication. In this way, the WIFI rate can be maintained while saving resources, thereby improving the user experience.
- the WIFI received signal strength is greater than or equal to the WIFI received signal strength threshold, it means that the current electronic device still has a high benefit value in parallel mode, so it is still necessary to continue to use the parallel mode for Bluetooth communication, that is, the electronic device continues to enter the independent transmission state for Bluetooth communication.
- the current communication indicator includes the latest Bluetooth transmission power
- the second communication indicator threshold includes the second Bluetooth transmission power threshold
- the third preset condition may include that the Bluetooth transmission power is less than the second Bluetooth transmission power threshold.
- the electronic device determines whether the latest Bluetooth transmission power is less than the second Bluetooth transmission power threshold. If the latest Bluetooth transmission power is less than the second Bluetooth transmission power threshold, it is determined that the electronic device meets the third preset condition and can exit the independent transmission state to perform Bluetooth communication; if the latest Bluetooth transmission power is greater than or equal to the second Bluetooth transmission power threshold, it is determined that the electronic device does not meet the third preset condition and can continue to enter the independent transmission state to perform Bluetooth communication.
- the current communication indicator includes the latest Bluetooth received signal strength
- the second communication indicator threshold includes the second Bluetooth received signal strength threshold
- the third preset condition may include that the Bluetooth received signal strength is less than the second Bluetooth received signal strength threshold. The electronic device determines whether the latest Bluetooth received signal strength is less than the second Bluetooth received signal strength threshold.
- the electronic device If the latest Bluetooth received signal strength is less than the second Bluetooth received signal strength threshold, it is determined that the electronic device meets the third preset condition and can exit the independent transmission state to perform Bluetooth communication; if the latest Bluetooth received signal strength is less than the second Bluetooth received signal strength threshold, it is determined that the electronic device meets the third preset condition and can exit the independent transmission state to perform Bluetooth communication; If the strength is greater than or equal to the second Bluetooth received signal strength threshold, it is determined that the electronic device does not meet the third preset condition, and therefore, the electronic device can continue to enter the independent transmission state for Bluetooth communication.
- the current communication indicator includes the latest Bluetooth bit error rate
- the second communication indicator threshold includes the second Bluetooth bit error rate threshold
- the second preset condition may include that the Bluetooth bit error rate is greater than the first Bluetooth bit error rate threshold.
- the electronic device determines whether the latest Bluetooth bit error rate is greater than the first Bluetooth bit error rate threshold. If the latest Bluetooth bit error rate is greater than the second Bluetooth bit error rate threshold, it means that the Bluetooth communication is less interfered by the WIFI communication, that is, the data transmission quality of the Bluetooth module is better.
- the electronic device meets the third preset condition and can exit the independent transmission state to perform Bluetooth communication; if the latest Bluetooth bit error power is less than or equal to the second Bluetooth bit error rate threshold, it is determined that the electronic device does not meet the third preset condition and can continue to enter the independent transmission state for Bluetooth communication.
- the current communication indicator includes the latest Bluetooth signal-to-noise ratio
- the second communication indicator threshold includes the second Bluetooth signal-to-noise ratio threshold.
- the above-mentioned third preset condition may include that the Bluetooth signal-to-noise ratio is greater than the second Bluetooth signal-to-noise ratio threshold.
- the electronic device determines whether the latest Bluetooth signal-to-noise ratio is greater than the second Bluetooth signal-to-noise ratio threshold. If the latest Bluetooth signal-to-noise ratio is greater than the second Bluetooth signal-to-noise ratio threshold, it means that the Bluetooth signal is less affected by the interference signal (such as noise).
- the electronic device can meet the third preset condition and exit the independent transmission state to perform Bluetooth communication; if the latest Bluetooth signal-to-noise ratio is less than or equal to the second Bluetooth signal-to-noise ratio threshold, it is determined that the electronic device does not meet the third preset condition and can continue to enter the independent transmission state for Bluetooth communication.
- the current communication indicator includes the latest WIFI transmission power
- the second communication indicator threshold includes the second WIFI transmission power threshold.
- the third preset condition may include that the WIFI transmission power is less than the second WIFI transmission power threshold.
- the electronic device determines whether the latest WIFI transmission power is less than the second WIFI transmission power threshold. If the latest WIFI transmission power is less than the second WIFI transmission power threshold, it is determined that the electronic device meets the third preset condition and can exit the independent transmission state for Bluetooth communication; if the latest WIFI transmission power is greater than or equal to the second WIFI transmission power threshold, it is determined that the electronic device does not meet the third preset condition and can continue to enter the independent transmission state for Bluetooth communication.
- the current communication indicator includes the latest WIFI bit error rate
- the second communication indicator threshold includes the second WIFI bit error rate threshold.
- the above-mentioned third preset condition may include that the WIFI bit error rate is greater than the second WIFI bit error rate threshold.
- the electronic device determines whether the latest WIFI bit error rate is greater than the second WIFI bit error rate threshold. If the latest WIFI bit error rate is greater than the second WIFI bit error rate threshold, it means that the WIFI communication is less interfered by the Bluetooth communication, that is, the data transmission quality of the WIFI module is better.
- the electronic device meets the third preset condition and can exit the independent transmission state for Bluetooth communication; if the latest WIFI bit error power is less than or equal to the second WIFI bit error rate threshold, it is determined that the electronic device does not meet the third preset condition and can continue to enter the independent transmission state for Bluetooth communication.
- the current communication indicator includes the latest WIFI signal-to-noise ratio
- the second communication indicator threshold includes a second WIFI signal-to-noise ratio threshold.
- the above-mentioned third preset condition may include that the WIFI signal-to-noise ratio is greater than the second WIFI signal-to-noise ratio threshold.
- the electronic device determines whether the latest WIFI signal-to-noise ratio is greater than the second WIFI signal-to-noise ratio threshold. If the latest WIFI signal-to-noise ratio is greater than the second WIFI signal-to-noise ratio threshold, it means that the WIFI signal is less affected by the interference signal (such as noise).
- the electronic device can meet the third preset condition and exit the independent transmission state for Bluetooth communication; if the latest WIFI signal-to-noise ratio is less than or equal to the second WIFI signal-to-noise ratio threshold, it is determined that the electronic device does not meet the third preset condition and can continue to enter the independent transmission state for Bluetooth communication.
- the above describes how the electronic device determines whether the electronic device satisfies the third preset condition when the current communication indicator includes one indicator and the third preset condition includes one condition.
- the current communication indicator may also include multiple indicators, and accordingly, the third preset condition may also include multiple conditions, that is, the third preset condition may include the condition corresponding to each indicator in the multiple indicators.
- the electronic device determines whether the electronic device meets the condition corresponding to the indicator. If the electronic device meets the condition corresponding to at least one indicator, the electronic device can determine that the electronic device meets the third preset condition. If the electronic device does not meet the conditions corresponding to all indicators, the electronic device can determine that the electronic device does not meet the third preset condition.
- the current communication indicator may include the current WIFI received signal strength and the current WIFI transmit power.
- the third preset condition may include the two conditions that the WIFI received signal strength is less than the second WIFI received signal strength threshold, and the WIFI transmit power is less than the second WIFI transmit power threshold. If the latest WIFI received signal strength of the electronic device is less than the second WIFI received signal strength threshold, or the latest WIFI transmit power is less than the second WIFI transmit power threshold, it can be determined that the electronic device meets the third preset condition.
- the electronic device may determine that the electronic device meets the third preset condition. If the electronic device does not meet the conditions corresponding to at least one indicator, the electronic device may determine that the electronic device does not meet the third preset condition.
- the electronic device exits the independent transmission state.
- the electronic device determines that the electronic device meets the third preset condition, it determines that the electronic device can exit the independent transmission state, that is, the electronic device adopts the time-sharing mode to perform Bluetooth communication and WIFI communication.
- the electronic device continues to maintain an independent transmission state.
- the electronic device determines that the electronic device does not meet the third preset condition, it determines that the electronic device can continue to use the parallel mode for Bluetooth communication and WIFI communication, that is, the electronic device can continue to maintain an independent transmission state for Bluetooth communication.
- the electronic device or server when the electronic device or server does not include the above configuration table (such as the above first configuration table, the second configuration table, the third configuration table, and the fourth configuration table), or the configuration table does not include the latest information, such as the latest model of router and Bluetooth encoding format, the electronic device or server can determine the relevant information by autonomous learning, and add it to the corresponding configuration table after the learning is completed, so as to quickly find the relevant information from the configuration table, saving the learning cost. For example, the electronic device can determine the first communication indicator threshold and the second communication indicator threshold by autonomous learning.
- the electronic device can directly perform Bluetooth communication and WIFI communication based on the time-sharing mode or the parallel mode.
- the electronic device can also use the scheme disclosed in this application to determine whether there is a need to enter an independent transmission state. If there is a need, the electronic device can directly perform the parallel mode. Alternatively, the electronic device uses the scheme disclosed in this application to determine whether there is a need to enter an independent transmission state. If there is a need, the electronic device can determine whether it is necessary to perform Bluetooth communication, and this application does not limit it.
- the electronic device in the process of determining the above-mentioned first working mode, can obtain the WIFI rates corresponding to different working modes, so that the WIFI benefits when the time-sharing mode is switched to the parallel mode can be determined based on the WIFI rates corresponding to the different working modes, and then the electronic device can use the communication indicator corresponding to the higher WIFI benefit (such as the WIFI benefit is greater than 0, or greater than a certain set value) as the above-mentioned first communication indicator threshold. For example, taking the first communication indicator threshold as the first WIFI received signal strength threshold as an example, the WIFI rate in the time-sharing mode is rate 1, and after switching to the parallel mode, the WIFI rate is rate 2. Through rate 1 and rate 2, To gain 1, if gain 1 is greater than the set value, it can be determined that the WIFI received signal strength at this time is the first WIFI received signal strength threshold.
- the WIFI rates in different working modes can be obtained. After determining the first working mode using the WIFI rates in different working modes, the electronic device can use the WIFI rate in the first working mode to determine the second communication indicator threshold. If the WIFI rate in the first working mode is lower than the WIFI rate threshold, it means that in the current situation, negative benefits may be generated, and the corresponding WIFI received signal strength is the second WIFI received signal strength threshold.
- the electronic device may include a WIFI module, a Bluetooth module (or referred to as a Bluetooth chip) and a first processing module.
- the first processing module is used to determine the working mode, the first communication indicator threshold and the second communication indicator threshold.
- the first processing module may include a processor, such as an AP.
- the WIFI module and the Bluetooth module may be integrated into one chip, which may be called a WIFI Bluetooth chip, or they may be in different chips, such as the WIFI module is integrated into one chip and the Bluetooth module is integrated into another chip.
- the updated first configuration table can be uploaded to the server.
- other electronic devices can obtain the updated configuration table from the server, so that other electronic devices can quickly find the corresponding working mode from the updated first configuration table, and other electronic devices no longer need to determine whether the electronic device meets the second preset condition to determine the working mode, which effectively simplifies the processing process and improves the processing efficiency.
- the electronic device may upload the updated first configuration table to the server periodically or in real time, wherein the resource overhead caused by uploading the first configuration table after each update can be avoided by periodically uploading the first configuration table.
- each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software.
- the steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software units in a processor for execution.
- the software unit can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc.
- the storage medium is located in a memory, and the processor executes the instructions in the memory, and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.
- An embodiment of the present application also provides a computer-readable storage medium, which includes computer instructions.
- the computer instructions When the computer instructions are executed on the above-mentioned electronic device, the electronic device executes each function or step in the above-mentioned method embodiment.
- An embodiment of the present application also provides a computer program product, including a computer program.
- the computer program runs on an electronic device, the electronic device executes each function or step in the above method embodiment.
- the embodiment of the present application provides a chip, the chip is used to execute instructions, when the chip is running, the technical solution in the above embodiment is executed.
- the implementation principle and technical effect are similar, and will not be repeated here.
- all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof.
- all or part of the embodiments may be implemented in the form of a computer program product.
- the computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated.
- the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
- the computer instructions may be stored in a computer-readable storage medium, or transferred from one computer-readable storage medium to another computer-readable storage medium.
- the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means.
- the computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated.
- the available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a high-density digital video disc (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.
- a magnetic medium e.g., a floppy disk, a hard disk, a magnetic tape
- an optical medium e.g., a high-density digital video disc (DVD)
- DVD high-density digital video disc
- SSD solid state disk
- a and/or B can mean: A exists alone, A and B exist at the same time, and B exists alone. A can be singular or plural, and B can be singular or plural.
- the term "at least one of" or “at least one of" means all or any combination of the listed items.
- “at least one of A, B, and C” may mean: A exists alone, B exists alone, C exists alone, A and B exist at the same time, B and C exist at the same time, and A, B, and C exist at the same time, where A may be singular or plural, B may be singular or plural, and C may be singular or plural.
- the disclosed systems, devices and methods can be implemented in other ways.
- the device embodiments described above are only illustrative, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not performed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, which may be electrical, mechanical or other forms.
- the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.
- the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art.
- the computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application.
- the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Quality & Reliability (AREA)
- Environmental & Geological Engineering (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Human Computer Interaction (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
Claims (24)
- 一种通信方法,应用于电子设备,所述电子设备配置有第一天线和第二天线,所述第一天线与所述第二天线不同,其特征在于,所述方法包括:在电子设备进行无线保真WIFI通信的情况下,若所述电子设备满足第一预设条件,所述电子设备获取第一通信指标阈值;其中,所述电子设备满足第一预设条件的情况下,所述电子设备采用所述第一天线进行蓝牙通信和WIFI通信;所述第一通信指标阈值包括第一WIFI接收信号强度阈值;所述电子设备在最新通信指标满足第二预设条件的情况下,采用所述第一天线进行WIFI通信,采用所述第二天线进行蓝牙通信;其中,所述第二预设条件包括WIFI接收信号强度大于所述第一WIFI接收信号强度阈值。
- 根据权利要求1所述的方法,其特征在于,所述第一通信指标阈值还包括第一蓝牙发射功率阈值、第一WIFI误码率阈值、第一蓝牙接收信号强度阈值、第一蓝牙误码率阈值、第一WIFI发射功率阈值、第一WIFI信噪比阈值和第一蓝牙信噪比阈值中的至少一个;所述第二预设条件还包括:蓝牙发射功率大于所述第一蓝牙发射功率阈值、蓝牙接收信号强度大于所述第一蓝牙接收信号强度阈值、蓝牙误码率小于所述第一蓝牙误码率阈值、WIFI发射功率大于所述第一WIFI发射功率阈值、WIFI信噪比小于所述第一WIFI信噪比阈值、WIFI误码率小于所述第一WIFI误码率阈值以及蓝牙信噪比小于所述第一蓝牙信噪比阈值中的至少一个。
- 根据权利要求1或2所述的方法,其特征在于,所述第一预设条件包括所述电子设备开始进行蓝牙通信,或者,在所述电子设备采用所述第一天线进行蓝牙通信和WIFI通信的过程中,所述电子设备的目标通信方式的通信质量值低于预设质量值;其中,该目标通信方式包括WIFI通信方式和/或蓝牙通信方式。
- 根据权利要求1或2所述的方法,其特征在于,所述若所述电子设备满足第一预设条件,所述电子设备获取第一通信指标阈值,包括:若所述电子设备满足第一预设条件,所述电子设备确定所述电子设备的第一通信参数,其中,所述第一通信参数包括第一蓝牙编码格式、第一路由器的标识信息和第一隔离度中的至少一个;所述电子设备利用第一配置表确定第一工作模式;在所述第一工作模式为并行模式的情况下,所述电子设备获取第一通信指标阈值。
- 根据权利要求4所述的方法,其特征在于,所述电子设备利用第一配置表确定第一工作模式,包括:在所述第一配置表中存在与所述第一通信参数对应的工作模式标识的情况下,所述第一工作模式为所述第一通信参数对应的工作模式标识指示的工作模式;或者,在所述第一配置表中不存在与所述第一通信参数对应的工作模式标识的情况下,所述第一工作模式是基于分时模式和/或并行模式对应的WIFI速率确定的;所述并行模式表示所述电子设备进行WIFI通信所使用的天线与所述电子设备进行蓝牙通信所使用的天线不同。
- 根据权利要求5所述的方法,其特征在于,所述第一工作模式是基于分时模式 和/或并行模式对应的WIFI速率确定的,包括:所述第一工作模式是所述分时模式和所述并行模式中WIFI速率最大的工作模式。
- 根据权利要求5所述的方法,其特征在于,所述第一工作模式是基于分时模式和/或并行模式对应的WIFI速率确定的,包括:在分时模式对应的第一WIFI速率小于预设速率,且所述并行模式对应的第二WIFI速率大于所述第一WIFI速率的情况下,所述第一工作模式为所述并行模式;或者,在所述分时模式对应的第一WIFI速率大于或者等于所述预设速率的情况下,所述第一工作模式为所述分时模式。
- 根据权利要求7所述的方法,其特征在于,所述并行模式包括第一并行模式以及第二并行模式,所述第一并行模式在采用并行模式进行蓝牙通信和WIFI通信时,所述WIFI通信对应的工作带宽为第一工作带宽;所述第二并行模式在采用并行模式进行蓝牙通信和WIFI通信时,所述WIFI通信对应的工作带宽为第二工作带宽;所述第一工作带宽与所述第二工作带宽不同;所述第一工作模式为所述并行模式,包括:所述第一工作模式是所述第一并行模式和所述第二并行模式中的WIFI速率最大的工作模式。
- 根据权利要求5所述的方法,其特征在于,所述第一工作模式是基于分时模式和/或并行模式对应的WIFI速率确定的,包括:在所述分时模式对应的第一WIFI速率小于预设速率,且所述并行模式对应的第二WIFI速率大于预设速率的情况下,所述第一工作模式是所述并行模式;或者,在所述分时模式对应的第一WIFI速率小于所述预设速率,且所述并行模式对应的第二WIFI速率小于所述预设速率的情况下,所述第一工作模式是所述分时模式和所述并行模式中的WIFI速率最大的工作模式。
- 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:在所述电子设备采用所述第一天线进行WIFI通信,采用所述第二天线进行蓝牙通信后,所述电子设备确定第二通信指标阈值;所述第二通信指标阈值用于判断所述电子设备是否满足第三预设条件,所述第二通信指标阈值包括第二WIFI接收信号强度阈值;所述电子设备在所述最新通信指标满足所述第三预设条件的情况下,采用所述第一天线进行蓝牙通信和WIFI通信;其中,所述第三预设条件包括所述WIFI接收信号强度小于所述第二WIFI接收信号强度阈值。
- 根据权利要求10所述的方法,其特征在于,所述第二通信指标阈值还包括第二蓝牙发射功率阈值、第二WIFI误码率阈值、第二蓝牙接收信号强度阈值、第二蓝牙误码率阈值、第二WIFI发射功率阈值、第二WIFI信噪比阈值和第二蓝牙信噪比阈值中的至少一个;所述第三预设条件还包括:蓝牙发射功率小于所述第二蓝牙发射功率阈值、蓝牙接收信号强度小于所述第二蓝牙接收信号强度阈值、蓝牙误码率大于所述第二蓝牙误码率阈值、WIFI发射功率小于所述第二WIFI发射功率阈值、WIFI信噪比大于所述第二WIFI信噪比阈值、WIFI误码率大于所述第二WIFI误码率阈值以及蓝牙信噪比大于所述第二蓝牙信噪比阈值中的至少一个。
- 一种电子设备,其特征在于,所述电子设备包括显示屏、存储器、蓝牙模块、WIFI模块和一个或多个处理器;所述显示屏、所述存储器、所述蓝牙模块、所述WIFI模块和所述处理器耦合;所述蓝牙模块用于进行蓝牙通信,所述WIFI模块用于进行WIFI通信,所述显示屏用于显示所述处理器生成的图像,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令;当所述处理器执行所述计算机指令时,使得所述电子设备执行如权利要求1至11中任一项所述的方法。
- 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1至11中任一项所述的方法。
- 一种通信方法,应用于电子设备,所述电子设备配置有第一天线和第二天线,所述第一天线与所述第二天线不同,其特征在于,所述方法包括:在电子设备进行无线保真WIFI通信的情况下,若所述电子设备满足第一预设条件,所述电子设备确定所述电子设备的第一通信参数;其中,所述电子设备满足第一预设条件的情况下,所述电子设备采用所述第一天线进行蓝牙通信和WIFI通信;在第一配置表中存在与所述第一通信参数对应的工作模式标识的情况下,将与第一通信参数对应的工作模式标识所对应的工作模式确定为第一工作模式;在所述第一工作模式为并行模式的情况下,所述电子设备获取第一通信指标阈值;其中,所述第一通信指标阈值包括第一WIFI接收信号强度阈值;所述电子设备在最新通信指标满足第二预设条件的情况下,采用所述第一天线进行WIFI通信,采用所述第二天线进行蓝牙通信;其中,所述第二预设条件包括WIFI接收信号强度大于所述第一WIFI接收信号强度阈值。
- 根据权利要求14所述的方法,其特征在于,所述第一通信指标阈值还包括第一蓝牙发射功率阈值、第一WIFI误码率阈值、第一蓝牙接收信号强度阈值、第一蓝牙误码率阈值、第一WIFI发射功率阈值、第一WIFI信噪比阈值和第一蓝牙信噪比阈值中的至少一个;所述第二预设条件还包括:蓝牙发射功率大于所述第一蓝牙发射功率阈值、蓝牙接收信号强度大于所述第一蓝牙接收信号强度阈值、蓝牙误码率小于所述第一蓝牙误码率阈值、WIFI发射功率大于所述第一WIFI发射功率阈值、WIFI信噪比小于所述第一WIFI信噪比阈值、WIFI误码率小于所述第一WIFI误码率阈值以及蓝牙信噪比小于所述第一蓝牙信噪比阈值中的至少一个。
- 根据权利要求14或15所述的方法,其特征在于,所述第一预设条件包括所述电子设备开始进行蓝牙通信,或者,在所述电子设备采用所述第一天线进行蓝牙通信和WIFI通信的过程中,所述电子设备的目标通信方式的通信质量值低于预设质量值;其中,该目标通信方式包括WIFI通信方式和/或蓝牙通信方式。
- 根据权利要求14所述的方法,其特征在于,所述第一通信参数包括第一蓝牙编码格式、第一路由器的标识信息和第一隔离度中的至少一个。
- 根据权利要求14或17所述的方法,其特征在于,所述方法还包括:在所述第一配置表中不存在与所述第一通信参数对应的工作模式标识的情况下,所述第一工作模式是基于分时模式和/或并行模式对应的WIFI速率确定的;所述并行模式表示所述电子设备进行WIFI通信所使用的天线与所述电子设备进行蓝牙通信所 使用的天线不同。
- 根据权利要求18所述的方法,其特征在于,所述第一工作模式是基于分时模式和/或并行模式对应的WIFI速率确定的,包括:所述第一工作模式是所述分时模式和所述并行模式中WIFI速率最大的工作模式。
- 根据权利要求18所述的方法,其特征在于,所述第一工作模式是基于分时模式和/或并行模式对应的WIFI速率确定的,包括:在分时模式对应的第一WIFI速率小于预设速率,且所述并行模式对应的第二WIFI速率大于所述第一WIFI速率的情况下,所述第一工作模式为所述并行模式;或者,在所述分时模式对应的第一WIFI速率大于或者等于所述预设速率的情况下,所述第一工作模式为所述分时模式。
- 根据权利要求20所述的方法,其特征在于,所述并行模式包括第一并行模式以及第二并行模式,所述第一并行模式在采用并行模式进行蓝牙通信和WIFI通信时,所述WIFI通信对应的工作带宽为第一工作带宽;所述第二并行模式在采用并行模式进行蓝牙通信和WIFI通信时,所述WIFI通信对应的工作带宽为第二工作带宽;所述第一工作带宽与所述第二工作带宽不同;所述第一工作模式为所述并行模式,包括:所述第一工作模式是所述第一并行模式和所述第二并行模式中的WIFI速率最大的工作模式。
- 根据权利要求18所述的方法,其特征在于,所述第一工作模式是基于分时模式和/或并行模式对应的WIFI速率确定的,包括:在所述分时模式对应的第一WIFI速率小于预设速率,且所述并行模式对应的第二WIFI速率大于预设速率的情况下,所述第一工作模式是所述并行模式;或者,在所述分时模式对应的第一WIFI速率小于所述预设速率,且所述并行模式对应的第二WIFI速率小于所述预设速率的情况下,所述第一工作模式是所述分时模式和所述并行模式中的WIFI速率最大的工作模式。
- 根据权利要求14或15所述的方法,其特征在于,所述方法还包括:在所述电子设备采用所述第一天线进行WIFI通信,采用所述第二天线进行蓝牙通信后,所述电子设备确定第二通信指标阈值;所述第二通信指标阈值用于判断所述电子设备是否满足第三预设条件,所述第二通信指标阈值包括第二WIFI接收信号强度阈值;所述电子设备在所述最新通信指标满足所述第三预设条件的情况下,采用所述第一天线进行蓝牙通信和WIFI通信;其中,所述第三预设条件包括所述WIFI接收信号强度小于所述第二WIFI接收信号强度阈值。
- 根据权利要求23所述的方法,其特征在于,所述第二通信指标阈值还包括第二蓝牙发射功率阈值、第二WIFI误码率阈值、第二蓝牙接收信号强度阈值、第二蓝牙误码率阈值、第二WIFI发射功率阈值、第二WIFI信噪比阈值和第二蓝牙信噪比阈值中的至少一个;所述第三预设条件还包括:蓝牙发射功率小于所述第二蓝牙发射功率阈值、蓝牙接收信号强度小于所述第二蓝牙接收信号强度阈值、蓝牙误码率大于所述第二蓝牙误码率阈值、WIFI发射功率小于所述第二WIFI发射功率阈值、WIFI信噪比大于所述第 二WIFI信噪比阈值、WIFI误码率大于所述第二WIFI误码率阈值以及蓝牙信噪比大于所述第二蓝牙信噪比阈值中的至少一个。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP23923798.5A EP4648299A4 (en) | 2023-02-23 | 2023-11-27 | COMMUNICATION METHOD AND ELECTRONIC DEVICE |
| US19/299,416 US20250379621A1 (en) | 2023-02-23 | 2025-08-14 | Communication method and electronic device |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310158291.6 | 2023-02-23 | ||
| CN202310158291.6A CN116017614B (zh) | 2023-02-23 | 2023-02-23 | 一种通信方法及电子设备 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US19/299,416 Continuation US20250379621A1 (en) | 2023-02-23 | 2025-08-14 | Communication method and electronic device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2024174635A1 true WO2024174635A1 (zh) | 2024-08-29 |
Family
ID=86035789
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2023/134455 Ceased WO2024174635A1 (zh) | 2023-02-23 | 2023-11-27 | 一种通信方法及电子设备 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US20250379621A1 (zh) |
| EP (1) | EP4648299A4 (zh) |
| CN (2) | CN118540409A (zh) |
| WO (1) | WO2024174635A1 (zh) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119212026A (zh) * | 2024-09-12 | 2024-12-27 | 南雄市三盛智能电子有限公司 | 基于智能蓝牙耳机的音乐共享方法、系统及蓝牙耳机 |
| CN121078352A (zh) * | 2025-11-10 | 2025-12-05 | 南京能瑞自动化设备股份有限公司 | 一种集中抄表方法、采集终端及融合终端 |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118540409A (zh) * | 2023-02-23 | 2024-08-23 | 荣耀终端有限公司 | 一种通信方法及电子设备 |
| CN116827403A (zh) * | 2023-07-28 | 2023-09-29 | 展讯半导体(成都)有限公司 | 一种通信方法、装置、芯片及模组设备 |
| CN120281347B (zh) * | 2023-12-28 | 2026-04-17 | 荣耀终端股份有限公司 | 一种数据传输方法及电子设备 |
| CN118984450B (zh) * | 2024-07-30 | 2025-08-01 | 荣耀终端股份有限公司 | 设备连接方法和电子设备 |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20150200692A1 (en) * | 2009-07-09 | 2015-07-16 | Mediatek Inc. | System for the coexistence between a plurality of wireless communications modules sharing single antenna |
| CN109274407A (zh) * | 2018-08-14 | 2019-01-25 | Oppo广东移动通信有限公司 | 数据传输方法、装置、电子设备以及存储介质 |
| US10531316B1 (en) * | 2018-04-06 | 2020-01-07 | Amazon Technologies, Inc. | Methods and systems for using shared antennas for multi-protocol communication |
| CN112020079A (zh) * | 2019-05-31 | 2020-12-01 | 百度在线网络技术(北京)有限公司 | 电子设备的无线通信装置、方法、电子设备及存储介质 |
| CN217216574U (zh) * | 2022-05-16 | 2022-08-16 | 珠海市魅族科技有限公司 | 射频电路和电子设备 |
| CN115361035A (zh) * | 2022-08-15 | 2022-11-18 | Oppo广东移动通信有限公司 | 射频系统、通信设备、通信控制方法及通信控制装置 |
| CN116017614A (zh) * | 2023-02-23 | 2023-04-25 | 荣耀终端有限公司 | 一种通信方法及电子设备 |
| CN116567596A (zh) * | 2022-01-28 | 2023-08-08 | 荣耀终端有限公司 | 一种天线配置方法和设备 |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8780872B1 (en) * | 2010-09-08 | 2014-07-15 | Marvell International Ltd. | Dual-technology wireless coexistence for multi-antenna devices |
| CN104969649B (zh) * | 2013-02-01 | 2019-04-09 | 苹果公司 | Wifi实时流和蓝牙共存 |
| CN205565002U (zh) * | 2015-12-31 | 2016-09-07 | 讯创(天津)电子有限公司 | 一种智能手机多合一天线 |
| CN106455085A (zh) * | 2016-10-20 | 2017-02-22 | 珠海格力电器股份有限公司 | 一种控制wifi与蓝牙ble传输数据的方法及装置 |
| CN107634789B (zh) * | 2017-08-30 | 2020-09-08 | Oppo广东移动通信有限公司 | 天线控制方法、装置、存储介质及电子设备 |
| CN107708193A (zh) * | 2017-10-24 | 2018-02-16 | 安普德(天津)科技股份有限公司 | 一种多工作模式智能蓝牙wifi模组 |
-
2023
- 2023-02-23 CN CN202310972705.9A patent/CN118540409A/zh active Pending
- 2023-02-23 CN CN202310158291.6A patent/CN116017614B/zh active Active
- 2023-11-27 WO PCT/CN2023/134455 patent/WO2024174635A1/zh not_active Ceased
- 2023-11-27 EP EP23923798.5A patent/EP4648299A4/en active Pending
-
2025
- 2025-08-14 US US19/299,416 patent/US20250379621A1/en active Pending
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20150200692A1 (en) * | 2009-07-09 | 2015-07-16 | Mediatek Inc. | System for the coexistence between a plurality of wireless communications modules sharing single antenna |
| US10531316B1 (en) * | 2018-04-06 | 2020-01-07 | Amazon Technologies, Inc. | Methods and systems for using shared antennas for multi-protocol communication |
| CN109274407A (zh) * | 2018-08-14 | 2019-01-25 | Oppo广东移动通信有限公司 | 数据传输方法、装置、电子设备以及存储介质 |
| CN112020079A (zh) * | 2019-05-31 | 2020-12-01 | 百度在线网络技术(北京)有限公司 | 电子设备的无线通信装置、方法、电子设备及存储介质 |
| CN116567596A (zh) * | 2022-01-28 | 2023-08-08 | 荣耀终端有限公司 | 一种天线配置方法和设备 |
| CN217216574U (zh) * | 2022-05-16 | 2022-08-16 | 珠海市魅族科技有限公司 | 射频电路和电子设备 |
| CN115361035A (zh) * | 2022-08-15 | 2022-11-18 | Oppo广东移动通信有限公司 | 射频系统、通信设备、通信控制方法及通信控制装置 |
| CN116017614A (zh) * | 2023-02-23 | 2023-04-25 | 荣耀终端有限公司 | 一种通信方法及电子设备 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP4648299A1 |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119212026A (zh) * | 2024-09-12 | 2024-12-27 | 南雄市三盛智能电子有限公司 | 基于智能蓝牙耳机的音乐共享方法、系统及蓝牙耳机 |
| CN121078352A (zh) * | 2025-11-10 | 2025-12-05 | 南京能瑞自动化设备股份有限公司 | 一种集中抄表方法、采集终端及融合终端 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN118540409A (zh) | 2024-08-23 |
| CN116017614A (zh) | 2023-04-25 |
| EP4648299A1 (en) | 2025-11-12 |
| EP4648299A4 (en) | 2026-04-22 |
| CN116017614B (zh) | 2023-08-11 |
| US20250379621A1 (en) | 2025-12-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2024174635A1 (zh) | 一种通信方法及电子设备 | |
| CN114009055A (zh) | 一种投屏显示方法及电子设备 | |
| CN113708858B (zh) | 一种信号处理方法及无线网络接入设备 | |
| CN113676269A (zh) | 电子设备的数据传输方法及其介质和电子设备 | |
| CN110582109A (zh) | 一种无线局域网wlan网络接入方法及装置 | |
| CN113784393A (zh) | 一种峰值下载方法和装置 | |
| JP7667306B2 (ja) | デュアルカード端末デバイスにおけるサービス処理のための方法および装置 | |
| CN113038627B (zh) | 一种文件分享方法、移动设备、计算机存储介质 | |
| CN115412118B (zh) | 一种多工器,射频模组及电子设备 | |
| WO2022228234A1 (zh) | 一种无线局域网中传输报文的方法及电子设备 | |
| US20240414514A1 (en) | Data transmission method and apparatus | |
| CN116321085B (zh) | 一种短距离通信的方法、装置和电子设备 | |
| CN114866200A (zh) | 上行控制信道的发送方法、装置、服务器和终端设备 | |
| CN113453274A (zh) | 一种上行数据的分流方法及终端 | |
| CN115412387A (zh) | 一种音频播放方法、系统及电子设备 | |
| CN114696961B (zh) | 一种多媒体数据传输方法和设备 | |
| CN114697926B (zh) | 数据处理方法和电子设备 | |
| CN119545477B (zh) | 一种扫描控制方法、电子设备及存储介质 | |
| JPWO2023020028A5 (zh) | ||
| CN114697926A (zh) | 数据处理方法和电子设备 | |
| CN116886110A (zh) | 通信方法及穿戴式设备 | |
| CN118695347A (zh) | 一种物理上行共享信道pusch的发射功率确定方法 | |
| CN118102419A (zh) | 无线通信方法、存储介质及终端设备 | |
| WO2025138901A1 (zh) | 一种小区驻留方法和装置 | |
| HK40066778B (zh) | 支持双卡的终端设备中业务处理方法和装置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23923798 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2023923798 Country of ref document: EP |
|
| ENP | Entry into the national phase |
Ref document number: 2023923798 Country of ref document: EP Effective date: 20250806 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| WWP | Wipo information: published in national office |
Ref document number: 2023923798 Country of ref document: EP |