WO2024174635A1 - 一种通信方法及电子设备 - Google Patents

一种通信方法及电子设备 Download PDF

Info

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
Application number
PCT/CN2023/134455
Other languages
English (en)
French (fr)
Inventor
沈丽
马红阳
董吉阳
王轶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to EP23923798.5A priority Critical patent/EP4648299A4/en
Publication of WO2024174635A1 publication Critical patent/WO2024174635A1/zh
Priority to US19/299,416 priority patent/US20250379621A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/06Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station
    • H04B7/0602Diversity 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/0608Antenna selection according to transmission parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details 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/005Details 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/0064Details 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details 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/06Receivers
    • H04B1/10Means associated with receiver for limiting or suppressing noise or interference
    • H04B1/1027Means associated with receiver for limiting or suppressing noise or interference assessing signal quality or detecting noise/interference for the received signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details 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/38Transceivers, 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/40Circuits
    • H04B1/401Circuits for selecting or indicating operating mode
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details 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/38Transceivers, 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/40Circuits
    • H04B1/403Circuits using the same oscillator for generating both the transmitter frequency and the receiver local oscillator frequency
    • H04B1/406Circuits 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/336Signal-to-interference ratio [SIR] or carrier-to-interference ratio [CIR]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/08Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station
    • H04B7/0802Diversity 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/0817Diversity 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/082Diversity 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0002Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0847Transmission error
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • H04W36/302Reselection being triggered by specific parameters by measured or perceived connection quality data due to low signal strength
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

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

本申请实施例应用于通信领域,提供了一种通信方法及电子设备。在WIFI通信与蓝牙通信的工作频段重合的场景中,电子设备可以在确定电子设备满足第一预设条件后,获取第一通信指标阈值,然后将实时获取到的最新通信指标与第一通信指标阈值进行比较,以确定最新通信指标是否满足第二预设条件,在最新通信指标满足第二预设条件的情况下,电子设备可以采用第一天线进行WIFI通信,采用第二天线进行蓝牙通信,如此,可以减少WIFI通信和蓝牙通信之间的干扰以及保持较好的传输性能,不仅提高了系统的灵活性,而且提高了电子设备的通信质量。

Description

一种通信方法及电子设备
本申请要求于2023年02月23日提交国家知识产权局、申请号为202310158291.6、发明名称为“一种通信方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信领域,尤其涉及一种通信方法及电子设备。
背景技术
随着通信技术的不断发展,电子设备一般同时支持蓝牙通信方式和无线保真(wireless fidelity,WIFI)通信方式。
电子设备在同时使用蓝牙通信方式和WIFI通信方式进行通信的过程中,可以采用分时模式进行蓝牙通信和WIFI通信,该分时模式表示电子设备复用天线,分时进行蓝牙通信和WIFI通信,导致电子设备在部分时间内是无法基于WIFI通信方式或蓝牙通信方式进行通信的,影响通信质量。比如,电子设备在基于WIFI通信方式进行视频通话的过程中,该电子设备同时连接有蓝牙耳机。该电子设备通过WIFI通信方式收发音视频数据,并通过蓝牙通信方式,向蓝牙耳机发送音频数据,接收蓝牙耳机采集的音频数据。然而,由于该电子设备采用分时模式进行蓝牙通信和WIFI通信,导致该电子设备在部分时间内,无法实时收发音视频数据,从而出现声音或画面卡顿的问题,影响用户体验。
发明内容
本申请实施例提供一种通信方法及电子设备,用于减少WIFI通信和蓝牙通信之间的干扰以及保持较好的传输性能,不仅提高了系统的灵活性,而且提高电子设备的通信质量。
第一方面,提供了一种通信方法,应用于电子设备,电子设备配置有第一天线和第二天线,第一天线和第二天线不同,该方法包括:
在电子设备进行无线保真WIFI通信的情况下,若电子设备满足第一预设条件,则电子设备需要获取第一通信指标阈值;其中,电子设备在满足第二预设条件的情况下,采用第一天线进行蓝牙通信和WIFI通信;
电子设备将第一通信指标阈值与最新通信指标进行比较,确定最新通信指标是否满足第二预设条件,其中,第一通信指标阈值包括第一WIFI接收信号强度阈值,最新通信指标包括WIFI接收信号强度;
电子设备在确定最新通信指标满足第二预设条件的情况下,采用第一天线进行WIFI通信,采用第二天线进行蓝牙通信;其中,第二预设条件包括WIFI接收信号强度大于第一WIFI接收信号强度阈值。
本申请中,当电子设备中的WIFI模块与蓝牙模块的工作频段重合时(例如,WIFI模块和蓝牙模块的工作频段均为2.4Ghz),电子设备可以在确定电子设备满足第一预设条件后,确定第一通信指标阈值,然后将实时获取到的当前通信指标与第一通信指 标阈值进行比较,以确定电子设备是否满足第二预设条件,也就是说电子设备在同时进行蓝牙通信和WIFI通信时,通信质量是否较差。如果电子设备满足第二预设条件,是否需要采用不同天线进行WIFI通信和蓝牙通信。
如此,可以减少WIFI通信和蓝牙通信之间的干扰以及保持较好的传输性能,不仅提高了系统的灵活性,而且提高了电子设备的通信质量。
示例性的,上述第一预设条件可以包括电子设备开始进行蓝牙通信,或者,在电子设备采用分时模式进行蓝牙通信和WIFI通信的过程中,电子设备的目标通信方式的通信质量值低于预设质量值。其中,目标通信方式包括WIFI通信方式/蓝牙通信方式。
示例性的,上述通信质量值可以包括速率、接收信号强度、发射功率、误码率、信噪比等。
在本申请中,由于第一预设条件用于确定电子设备是否需要采用不同天线进行蓝牙通信和WIFI通信,且第一预设条件包括电子设备开始进行蓝牙通信,或者,在电子设备采用分时模式进行蓝牙通信和WIFI通信的过程中,电子设备的目标通信方式的通信质量值低于预设质量值的不同场景,因此,通过确定电子设备是否满足第一预设条件的方式,可以及时调整蓝牙通信和WIFI通信的工作模式,进而提升了电子设备的通信质量。
在一种示例中,上述第一通信指标阈值与WIFI收益相关,WIFI收益是指电子设备由采用分时模式进行蓝牙通信和WIFI通信切换至并行模式进行蓝牙通信和WIFI通信时WIFI速率的提升程度。
在另一种示例中,上述第一通信指标阈值与路由器的传输性能和/或工作带宽相关。
在本申请中,第一通信指标阈值是根据WIFI收益、路由器的传输性能和/或工作带宽确定的,如此,可以提升第一通信指标阈值确定的精准度,进而能够准确的确定电子设备是否可以采用不同天线进行蓝牙通信和WIFI通信。
示例性的,上述最新通信指标还可以包括蓝牙发射功率、蓝牙接收信号强度、蓝牙信噪比、蓝牙误码率、WIFI发射功率、WIFI信噪比以及WIFI误码率中的至少一种。
相应的,上述第一通信指标阈值还可以包括第一蓝牙发射功率阈值、第一蓝牙接收信号强度阈值、第一蓝牙信噪比阈值、第一蓝牙误码率阈值、第一WIFI发射功率阈值、第一WIFI信噪比阈值以及第一WIFI误码率阈值的至少一种。第一通信指标阈值与最新通信指标一一对应。
示例性的,上述第二预设条件还可以包括蓝牙发射功率大于第一蓝牙发射功率阈值、蓝牙接收信号强度大于第一蓝牙接收信号强度阈值、蓝牙信噪比小于第一蓝牙信噪比阈值、蓝牙误码率小于第一蓝牙误码率阈值、WIFI发射功率大于第一WIFI发射功率阈值、WIFI信噪比小于第一WIFI信噪比阈值、WIFI误码率小于第一WIFI误码率阈值中的至少一个。
在本申请中,从蓝牙发射功率、蓝牙接收信号强度、蓝牙信噪比、蓝牙误码率、WIFI发射功率、WIFI信噪比以及WIFI误码率等多个角度,分别确定电子设备是否可以进入独立传输状态,如此,可以提升电子设备进入独立传输状态的准确度,减少因某一通信指标判断错误而出现电子设备错进独立传输状态的情况发生,提升了电子设 备的通信质量。
在一种可能的实现方式中,上述电子设备获取第一通信指标阈值可以通过蓝牙编码格式或直接获取。
在一种示例中,电子设备可以基于蓝牙编码格式获取第一通信指标阈值。示例性的,电子设备可以获取第一蓝牙编码格式;电子设备从第一配置表中确定与第一蓝牙编码格式对应的第一通信指标阈值,第一配置表中包括第一蓝牙编码格式以及第一蓝牙编码格式对应的第一通信指标阈值。
在本申请中,电子设备可以在获取到第一蓝牙编码格式后,直接从预先存储好的第一配置表中直接获取第一通信指标阈值,如此,不仅可以提升第一通信指标阈值确定的准确度,还可以节约配置时间,提升了电子设备的工作效率。
在另一种示例中,电子设备也可以直接获取第一通信指标阈值,也就是说,电子设备无需利用第一蓝牙编码格式等信息,查找对应的第一通信指标阈值,而是可以直接某个预设位置中获取该第一通信指标阈值,换言之,不同蓝牙编码格式对应的第一通信指标阈值可以相同。
本申请中,通过直接获取第一通信指标阈值,可以提高第一通信指标阈值的确定效率,从而可以提高电子设备利用第一通信指标阈值判断电子设备是否满足第二预设条件的判断效率,也就是提高电子设备是否需要进入并行模式的效率。
在一种可能的实现方式中,上述若电子设备满足第一预设条件,电子设备获取第一通信指标阈值的过程,可以包括:
在电子设备满足第一预设条件的情况下,电子设备确定电子设备的第一通信参数,其中,第一通信参数包括第一蓝牙编码格式、第一路由器的标识信息和第一隔离度中的至少一个;
电子设备判断第一配置表中是否存在第一通信参数对应的工作模式标识;
电子设备在确定第一配置表中存在第一通信参数对应的工作模式标识的情况下,将与第一通信参数对应的工作模式标识对应的工作模式确定为第一工作模式;
电子设备在确定第一工作模式为并行模式的情况下,确定与第一蓝牙编码格式对应的第一通信指标阈值。
在本申请中,首先电子设备根据第一通信参数,判断第一配置表中是否存在第一通信参数对应的工作模式标识,并在确定第一配置表中存在第一通信参数对应的工作模式标识,将与第一通信参数对应的工作模式标识确定为第一工作模式,并在确定第一工作模式为并行模式后,才确定与第一蓝牙编码格式对应的第一通信指标阈值,如此,可以减少对采用分时模式进行通信的电子设备进行判断而浪费天线资源的情况发生,减少了不必要的资源浪费。
在一种可能的实现方式中,上述电子设备在确定第一配置表中不存在第一通信参数对应的工作模式标识的情况下,分别确定电子设备在不同工作模式下的WIFI速率,并将WIFI速率最高的一个WIFI速率对应的工作模式确定为第一工作模式。
本申请中,电子设备在确定第一配置表中不存在第一通信参数对应的工作模式标识后,需要根据电子设备在不同工作模式下的WIFI速率,确定第一工作模式,如此,可以保证在电子设备遇到未出现过的蓝牙编码格式或者路由器的情况下,能够自主进 行学习,以确定第一工作模式,为后续确定电子设备进入独立传输状态提供了基础。
示例性的,上述分别确定电子设备在不同工作模式下的WIFI速率,并将WIFI速率最高的一个WIFI速率对应的工作模式确定为第一工作模式的过程可以包括:
电子设备确定电子设备在分时模式下的第一WIFI速率;
电子设备在确定第一WIFI速率小于预设速率的情况下,确定电子设备在并行模式下的第二WIFI速率;
电子设备在确定第二WIFI速率大于第一WIFI速率的情况下,确定第一工作模式为并行模式。
在本申请中,电子设备优先确定电子设备在分时模式下的第一WIFI速率,若第一WIFI速率小于预设速率,则说明电子设备在分时模式下的传输速率较低,因此,需要确定电子设备在并行模式下的第二WIFI速率,若第二WIFI速率大于第一WIFI速率,则说明电子设备在分时模式下的WIFI速率高于电子设备在并行模式下的WIFI速率,也即,电子设备存在WIFI收益,因此,可以确定第一工作模式为并行模式,如此,提升了第一工作模式确定的准确度。
在一种可能的实现方式中,电子设备在确定第一WIFI速率大于或者等于预设速率的情况下,确定第一工作模式为分时模式。
在本申请中,若第一WIFI速率大于或者等于预设速率,则说明电子设备在分时模式下的传输速率较高,无需切换至并行模式进行蓝牙通信和WIFI通信,因此,可以确定第一工作模式为分时模式,如此,可以在节约天线资源的同时,提升了第一工作模式确定的准确度。
在一种可能的实现方式中,上述分别确定电子设备在不同工作模式下的WIFI速率,并将WIFI速率最高的一个WIFI速率对应的工作模式确定为第一工作模式,包括:
电子设备确定电子设备在分时模式下的第一WIFI速率;
电子设备在确定第一WIFI速率小于预设速率的情况下,确定电子设备在并行模式下的第二WIFI速率;
电子设备在确定第二WIFI速率大于预设速率的情况下,确定第一工作模式为并行模式。
在本申请中,电子设备优先确定电子设备在分时模式下的第一WIFI速率,若第一WIFI速率小于预设速率,则说明电子设备在分时模式下的传输速率较低,因此,需要确定电子设备在并行模式下的第二WIFI速率,若第二WIFI速率大于预设速率,则说明电子设备在并行模式下的传输速率较高,且满足预设条件,因此,可以确定第一工作模式为并行模式,如此,只有大于预设速率的WIFI速率对应的工作模式,才可以作为第一工作模式,减少因WIFI速率提升程度较低而导致资源浪费的情况发生,进而减少了不必要的资源浪费。
在一种可能的实现方式中,电子设备在确定第二WIFI速率小于或者等于预设速率的情况下,将第一WIFI速率以及第二WIFI速率中最高的WIFI速率所对应的工作模式确定为第一工作模式。
在本申请中,若第二WIFI速率小于或者等于预设速率,则说明第一WIFI速率和第二WIFI速率均不能达到预设条件,因此,需要从第一WIFI速率以及第二WIFI速 率中确定最高的WIFI速率,并将该WIFI速率对应的工作模式确定为第一工作模式,如此,可以提升第一工作模式确定的准确度。
示例性的,上述并行模式包括第一并行模式以及第二并行模式,第一并行模式为电子设备使用不同的天线并行进行WIFI通信和蓝牙通信,且WIFI通信的工作带宽为第一工作带宽,第二并行模式为电子设备使用不同的天线并行进行WIFI通信和蓝牙通信,且WIFI通信的工作带宽为第二工作带宽,第一工作带宽与第二工作带宽不同。
其中,上述电子设备在确定第一WIFI速率小于预设速率的情况下,确定电子设备在并行模式下的第二WIFI速率,包括:
电子设备在确定第一WIFI速率小于预设速率的情况下,确定电子设备在第一并行模式下的第三WIFI速率以及电子设备在第二并行模式下的第四WIFI速率;
电子设备将第三WIFI速率以及第四WIFI速率中最高的WIFI速率确定为第二WIFI速率。
在本申请中,若第一WIFI速率小于预设速率,则需要从第一并行模式和第二并行模式中选择最高的WIFI速率作为第二WIFI速率,如此,可以提升第一工作模式确定的准确度。
在一种可能的实现方式中,上述第一工作带宽为20Mhz,第二工作带宽为40Mhz。
在一种可能的实现方式中,上述通信方法还包括:
在电子设备采用第一天线进行WIFI通信,采用第二天线进行蓝牙通信后,也就是说,电子设备进入独立传输状态后,电子设备确定第二通信指标阈值,第二通信指标阈值包括第二WIFI接收信号强度阈值;
将最新通信指标与第二通信指标阈值进行比较,以确定电子设备是否满足第三预设条件;
电子设备在最新通信指标满足第三预设条件的情况下,采用第一天线进行蓝牙通信和WIFI通信;其中,第三预设条件包括WIFI接收信号强度小于第二WIFI接收信号强度阈值。
在本申请中,在电子设备采用不同天线进行WIFI通信和蓝牙通信后,仍需确定第二通信指标阈值,并将实时获取到的当前通信指标与第一通信指标阈值进行比较,以确定电子设备是否采用第一天线进行蓝牙通信和WIFI通信,如此,可以在保证WIFI速率的同时,节约了天线资源。
示例性的,上述第二通信指标阈值还包括第二蓝牙发射功率阈值、第二蓝牙接收信号强度阈值、第二蓝牙信噪比阈值、第二蓝牙误码率阈值、第二WIFI发射功率阈值、第二WIFI信噪比阈值以及第二WIFI误码率阈值的至少一种。
相应的,上述第三预设条件还包括:蓝牙发射功率小于第二蓝牙发射功率阈值、蓝牙接收信号强度小于第二蓝牙接收信号强度阈值、蓝牙误码率大于第二蓝牙误码率阈值、WIFI发射功率小于第二WIFI发射功率阈值、WIFI信噪比大于第二WIFI信噪比阈值、WIFI误码率大于第二WIFI误码率阈值以及蓝牙信噪比大于第二蓝牙信噪比阈值中的至少一个。
在一种可能的实现方式中,上述通信方法还包括:
电子设备在确定第一工作模式的过程中,基于不同工作模式对应的WIFI速率, 确定分时模式切换至并行模式时的WIFI收益;
将WIFI收益大于预设收益时所对应的通信指标作为第一通信指标阈值。
在一种可能的实现方式中,上述通信方法还包括:
电子设备在确定第一工作模式后,在第一工作模式下的WIFI速率低于预设WIFI速率的情况下,将第一工作模式下的WIFI速率所对应的通信指标作为第二通信指标阈值。
其中,预设WIFI速率可以为电子设备在分时模式下的第一WIFI速率。
在本申请中,电子设备可以根据不同工作模式对应的WIFI速率,确定第一通信指标阈值以及第二通信指标阈值,如此,可以保证电子设备在遇到配置表中未包括的通信参数时,也可以通过自主学习的方式确定相关信息,在学习完成后,添加至相应的配置表中,以便于从该配置表中快速找到相关信息,节约了学习成本。
在一种可能的实现方式中,电子设备可以将最新通信参数、第一工作模式、第一通信指标阈值以及第二通信指标阈值上传至服务器,其中,最新通信参数包括最新蓝牙编码格式、最新路由器的标识信息和隔离度中的至少一个。
在申请中,电子设备在更新配置表后,可以将更新后的配置表上传至服务器中。这样,其它电子设备可以从服务器上获取更新后的配置表,从而使得其它电子设备可以从更新后的配置表中快捷地找到对应的工作模式、第一通信指标阈值以及第二通信指标阈值,不再需要其它电子设备判断电子设备是否满足第二预设条件,有效地简化了处理过程,提高了电子设备的处理效率。
在申请中,电子设备可以周期性或实时将更新后的第一配置表上传至服务器中。其中通过周期性上次可以避免了每次更新后都上传第一配置表所带来的资源开销。
第二方面,本申请提供一种电子设备,所述电子设备包括显示屏、存储器、蓝牙模块、WIFI模块和一个或多个处理器;所述显示屏、所述存储器、所述蓝牙模块、所述WIFI模块和所述处理器耦合;所述蓝牙模块用于进行蓝牙通信,所述WIFI模块用于进行WIFI通信,所述显示屏用于显示所述处理器生成的图像,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令;当所述处理器执行所述计算机指令时,使得所述电子设备执行如上所述的方法。
第三方面,本申请提供一种计算机可读存储介质,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如上所述的方法。
第四方面,本申请提供一种计算机程序产品,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如上所述的方法。
第五方面,提供一种芯片,包括:输入接口、输出接口、处理器和存储器,所述输入接口、输出接口、所述处理器以及所述存储器之间通过内部连接通路相连,所述处理器用于执行所述存储器中的代码,当所述代码被执行时,所述处理器用于执行如上所述的方法。
可以理解地,上述提供的第二方面所述的电子设备,第三方面所述的计算机存储介质,第四方面所述的计算机程序产品,第五方面所述的芯片所能达到的有益效果,可参考第一方面及其任一种可能的设计方式中的有益效果,此处不再赘述。
附图说明
图1为本申请实施例提供的一种电子设备的硬件结构示意图;
图2为本申请实施例提供的一种通信系统的结构框图;
图3为本申请实施例提供的一种蓝牙通信和WIFI通信的场景示意图一;
图4为本申请实施例提供的一种蓝牙通信和WIFI通信的场景示意图二;
图5为本申请实施例提供的一种蓝牙通信和WIFI通信的场景示意图三;
图6为本申请实施例提供的一种共享天线的示意图一;
图7为本申请实施例提供的一种共享天线的示意图二;
图8为本申请实施例提供的一种独立天线的示意图;
图9为本申请实施例提供的一种通信方法的示意性流程图一;
图10为本申请实施例提供的一种通信方法的示意性流程图二;
图11为本申请实施例提供的一种通信方法的示意性流程图三。
具体实施方式
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
下面将结合附图,对本申请中的技术方案进行描述。
本申请实施例的技术方案应用于各种可支持WIFI通信方式和蓝牙通信方式的电子设备。示例性的,电子设备可以是手机、智能手表、智能手环、平板电脑、桌面型计算机、膝上型计算机等,本申请实施例对电子设备的具体类型不做任何限制。
图1是本申请实施例提供的电子设备100的硬件结构示意图,如图1所示,电子设备100可以包括处理器110,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,传感器模块180,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,按键190,马达191,指示器192,摄像头1-N 193,显示屏194以及用户标识模块(subscriber identification module,SIM)卡接口1-N 195等。其中,传感器模块180可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,接近光传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器,骨传导传感器等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口等。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
在申请实施例中,移动通信模块也可以称为蜂窝模块,两者可替换描述。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器,受话器等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,WIFI)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号 调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。在一些实施例中,无线通信模块160的至少部分功能模块可以被设置于处理器110中。
其中,上述无线通信模块160可以包括蓝牙模块和WIFI模块。该蓝牙模块用于实现蓝牙通信方式,也就是说使得电子设备100可以使用蓝牙通信方式进行通信。该WIFI模块用于实现WIFI通信方式,也就是说使得电子设备100可以使用WIFI通信方式进行通信。
在一些实施例中,上述蓝牙模块可以和WIFI模块使用同一天线分时工作,或者,该蓝牙模块可以和WIFI模块采用不用天线并行工作。
示例性的,上述蓝牙模块和WIFI模块的工作频段可以不同,也可以存在重合,如相同。也就是说电子设备100在进行蓝牙通信和WIFI通信时的工作频段可以不同,也可以存在重合。如该蓝牙模块和WIFI模块的工作模块均为2.4GHZ。示例性的,上述WIFI通信的工作带宽是40Mhz、20Mhz或其它数值,本申请不对其限制。这里的工作带宽是指频段带宽,也就是该电子设备100实现该WIFI通信所连接的路由器的发射频率宽度。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(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,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
在一些实施例中,无线通信模块160的蓝牙模块可以和WIFI模块共同一根天线,通过分时复用的方式实现蓝牙通信和WIFI通信。
在一些实施例中,无线通信模块160中的蓝牙模块和移动通信模块150共同一根天线,以实现蓝牙通信和WIFI通信的同时进行。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备100供电。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。摄像头193用于捕获静态图像或视频。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
电子设备100可以通过音频模块170,扬声器,受话器,麦克风,耳机接口,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。
扬声器,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器收听音乐,或收听免提通话。
受话器,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器靠近人耳接听语音。
麦克风,也称“话筒”,“传声器”,用于将声音信号转换为电信号。
耳机接口用于连接有线耳机。耳机接口可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或 N个SIM卡接口,N为大于1的正整数。
图2是本申请实施例的通信系统的结构框图。如图2所示,该通信系统可以包括电子设备100、路由器200以及蓝牙设备300,电子设备100可以接入路由器200的WIFI信号,电子设备100可以通过蓝牙通信方式与蓝牙设备300连接。该电子设备100可以同时使用蓝牙通信方式和WIFI通信方式通信。例如,该电子设备100在基于路由器200,使用WIFI通信方式上网的过程中,可以基于蓝牙通信方式与蓝牙设备300进行通信(如数据传输)。又例如,该电子设备100基于蓝牙通信方式与蓝牙设备300进行通信的过程中,可以基于路由器200,使用WIFI通信方式上网。
其中,蓝牙设备300可以是任何能够实现蓝牙连接的设备,例如,蓝牙设备300可以是手机、智能手表、智能手环、平板电脑、桌面型计算机、膝上型计算机、蓝牙手柄、蓝牙耳机或蓝牙音箱、蓝牙台灯、蓝牙增强现实(augmented reality,AR)眼镜等设备。
在一种示例中,以上述电子设备100为手机,上述蓝牙设备300为蓝牙耳机为例。手机通过蓝牙通信方式连接该蓝牙耳机后,可以显示如图3所示的标识1。手机使用WIFI通信方式,与对端进行视频通话,如手机可以通过WIFI通信方式,向对端发送手机侧的音视频数据,接收对端发送的对端侧的音视频数据。并且与该手机连接的蓝牙耳机可以播放对端侧的声音数据,采集手机侧的声音数据。这里手机同时使用蓝牙通信方式和WIFI通信方式。
在另一种示例中,以上述电子设备100为手机,上述蓝牙设备300为蓝牙手柄为例。手机通过蓝牙通信方式连接该蓝牙手柄后,能够操控游戏画面中的虚拟人物进行相应的指令,在该游戏场景中,蓝牙手柄的控制数据需要通过蓝牙通信方式传输到手机,手机需要WIFI通信方式获取并显示游戏画面数据。
在另一种示例中,以上述电子设备100为手机F,上述蓝牙设备300为手机G进行举例说明。手机F可以与任意开启蓝牙的设备进行蓝牙连接。手机F在通过WIFI通信方式使用抖音TM应用的过程中,手机F需要基于蓝牙通信方式,向手机G(如ALB20)传输文件,该手机F可以先与手机G进行配对。之后,如图4所示,在配对完成后,手机F可以向手机G发送传输文件请求,手机G上可以显示“蓝牙共享:传入文件”的弹窗。响应于用户对该弹窗中的接受控件的触发操作,手机G可以接收手机F基于蓝牙通信方式,传输的文件(如图5所示)。
上述电子设备100在使用WIFI通信方式以及蓝牙通信方式进行通信的过程中,该电子设备可以采用分时模式进行蓝牙通信和WIFI通信,也就是说该电子设备中的蓝牙模块和WIFI模块可以通过复用一根天线,分时进行工作,如通过电子设备中的开关时分复用一根天线。具体的,如图6所示,当电子设备中的开关的通路导通到蓝牙模块时,天线收发蓝牙信号,该蓝牙模块进行工作,即处于工作状态,该电子设备可以进行蓝牙通信;当开关的通路导通到WIFI模块时,天线收发WIFI信号,该WIFI模块进行工作,即处于工作状态,该电子设备可以进行WIFI通信。由此可见,在复用一根天线过程中,电子设备100中的WIFI模块或蓝牙模块不能连续工作,而是分时工作。如图7所示,WIFI模块可以在WIFI时间段(或描述为第一时间段)内工作(如传输数据11以及传输数据12),蓝牙模块在WIFI时间段内不工作。WIFI时间 段结束,进入蓝牙时间段后,该蓝牙模块可以工作(如传输数据21以及传输数据22),该WIFI模块可以不工作。可见,该WIFI模块和蓝牙模块分时工作,也就是交替工作。换言之,蓝牙模块或WIFI模块仅在各自的工作时间段内进行数据传输,在其余时间不进行数据传输。也即,在同一个时段内,电子设备100只能传输蓝牙的数据(或描述进行蓝牙通信)或传输WIFI的数据(或描述为进行蓝牙通信),蓝牙模块和WIFI模块交替占用时域资源,也就是交替占用天线资源。
然而,电子设备在采用分时模式进行WIFI通信和蓝牙通信过程中,该电子设备中的WIFI模块和蓝牙模块需要抢占天线资源,并且无法连续工作,也就是无法连续传输数据,导致数据传输延迟较大,实时性较低。而某些场景下的数据传输对于实时性要求比较高,即对于WIFI通信方式/蓝牙通信方式的质量要求比较高,如果采用分时模式进行WIFI通信和蓝牙通信,导致WIFI通信方式/蓝牙通信方式的质量较低,无法满足用户需求。示例性的,在上述视频通话的场景中,该手机通过WIFI通信方式收发音视频数据,并通过蓝牙通信方式,向蓝牙耳机发送音频数据,接收蓝牙耳机采集的音频数据。然而,由于该手机采用分时模式进行蓝牙通信和WIFI通信,导致该电子设备在部分时间内,无法实时收发音视频数据,从而出现声音或画面卡顿的问题。又例如,在上述游戏场景中,手机在部分时间内,无法使用天线进行WIFI通信,使得在该部分时间内,手机无法实时获取游戏画面数据,从而游戏画面出现卡顿。
在一些实施例中,为了避免由于WIFI模块和蓝牙模块时分复用天线传输导致数据传输的实时性较低,也就是为了保证WIFI通信质量和/或蓝牙通信质量,电子设备可以包括第一天线(或称为WIFI天线)和第二天线。电子设备中的蓝牙模块使用第二天线进行通信,WIFI模块使用WIFI天线进行通信,该蓝牙模块使用独立于WIFI天线以外的天线进行蓝牙通信。这样,电子设备可以使用不同的天线并行进行蓝牙通信和WIFI通信。如图8所示,WIFI模块使用天线1a(即上述第一天线)进行WIFI通信,蓝牙模块使用天线1b(即上述第二天线)进行蓝牙通信。蓝牙模块和WIFI模块无需分时工作,可以使用不同的天线同时进行工作,WIFI模块和蓝牙模块各自能够占用的时域资源大大增加,也就是能够连续传输数据的时长大大增加,有利于解决资源的抢占问题。然而,由于在一些情况下,电子设备无需使用不同的天线并行进行蓝牙通信和WIFI通信,从而造成资源的浪费。
可以理解的是,电子设备的空间足够大时,该电子设备可以包括为蓝牙模块设置的独立的第二天线,该天线是可以是蓝牙模块独享的天线,用于蓝牙通信。
或者,上述第二天线可以是电子设备中的如蜂窝天线。该电子设备中蜂窝模块的蜂窝天线的数量较多的情况下,电子设备中的蓝牙模块可以复用一根蜂窝天线,以进行蓝牙通信,从而,在不增加天线的基础上,该电子设备中的蓝牙模块和WIFI模块可以并行工作,即,电子设备可并行进行蓝牙通信和WIFI通信。这种设计不仅节省成本,而且不需要额外占用电子设备的空间,无需因此改变电子设备的尺寸,不影响电子设备的外观设计以及产品稳定性。
应理解,蓝牙模块一般使用2.4Ghz的频段工作。在电子设备使用不同天线并行进行WIFI通信和蓝牙通信的情况下,如果WIFI模块的工作频段也是2.4Ghz,则会与蓝牙模块的工作频段大部分重合。因此,当WIFI模块在2.4Ghz的工作频段下进行工作 时,如果WIFI模块所使用的天线和蓝牙模块所使用的天线之间的隔离度不足够大,WIFI模块和蓝牙模块的相互发射功能会影响对方的性能,WIFI通信和蓝牙通信会相互影响。
可以理解,蓝牙模块进行蓝牙通信(如传输数据)的过程中,需要基于蓝牙编码方式,对数据进行编码。其中,不同的蓝牙编码方式对应的编码速率可以不同。示例性的,如表1所示,高级音频编码(advanced audio coding,AAC)的编码速率(或称为比特率)可以为128-392kbps,LDAC的编码速率可以为330-990kbps。
表1
示例性的,通过上述表1可知,蓝牙编码方式可以包括子带编码(sub-band coding,SBC)、AAC、aptX、aptX-HD、aptX-adaptive、LDAC、LHDC、LC3、LC3Plus等。其中,SBC适用于低速率音频场景,比如,语音通话等场景。AAC以及LDAC均适用于高速率音频场景,比如,音乐、游戏、视频通话等场景。当然,上述表1所示的蓝牙编码方式仅为一种示例性,蓝牙模块还可以采用其它蓝牙编码方式对数据进行编码,本申请不对其限制。
其中,采样率(也称为采样速度或者采样频率),表示单位时间内从连续信号(模拟信号)中提取并组成离散信号(数字信号)的采样个数。比特率表示信号通过系统处理或传送的速率,即单位时间内处理或传输的数据量。可以理解,比特率越高,音质越清晰。总谐波失真加噪声(Total Harmonic Distortion+Noise,THD+N)是音频功率放大器的一个主要性能指标,也是音频功率放大器的额定输出功率的一个条件。用于反映声音放大后的失真程度。信噪比是指接收到的有用信号的强度与接收到的干扰信号(噪声和干扰)的强度的比值。
需要说明的是,蓝牙编码速率(等同于上述表1中的比特率)越大,蓝牙发射功 率越大,蓝牙发射时间就越多,因此,蓝牙对WiFi的影响就越严重。同理,WIFI编码速率越大,WIFI发射功率越大,WIFI发射时间就越多,因此,WIFI对蓝牙的影响也越严重。
因此,为了减少资源的浪费,保证通信质量,本申请中的电子设备在进行WIFI通信的情况下,如果该电子设备存在采用不同天线进行WIFI通信和蓝牙通信的需求,则表明电子设备在进行WIFI通信和蓝牙通信的情况下,WIFI通信和/蓝牙通信的通信质量可能较低,因此,为了提高通信质量,并且避免资源的浪费,该电子设备可以判断该电子设备的当前通信指标(即最新通信指标)是否满足第二预设条件,也就是判断该电子设备是否需要进入独立传输状态,换言之,判断该电子设备的WIFI通信和/蓝牙通信的通信质量是否较低。如果该电子设备的当前通信指标满足第二预设条件,表明该电子设备的WIFI通信和/蓝牙通信的通信质量较低,电子设备可以采用并行模式,使用不同天线进行蓝牙通信和WIFI通信,也就是该电子设备可以进入独立传输状态,从而保证通信质量。如果该电子设备的当前通信指标不满足第二预设条件,表明电子设备的通信质量较高,该电子设备可以继续采用分行模式,使用一根天线进行蓝牙通信和WIFI通信,从而避免进行不必要的并行模式,减少资源的浪费。
需要说明的是,2.4Ghz无线技术,是一种短距离无线传输技术。其中,2.4GHz所指的是一个工作频段,在2.4GHz频段下工作可以获得更大的使用范围和更强的抗干扰能力。需要说明的是,2.4GHz实际并不是对应一个具体值,而是对应一个范围,如2.4Ghz的工作频段的频率范围是2.4Ghz~2.48Ghz。蓝牙模块和WIFI模块的工作频段均可以包括2.4Ghz频段。
为了便于描述,下文继续以电子设备中的WIFI模块和蓝牙模块的工作频段为2.4Ghz,且WIFI模块的工作带宽包括40Mhz和/或20Mhz为例,对本申请实施例做详细说明。
图9是本申请实施例所提供的一种通信方法的流程图。通信方法的执行主体可以是电子设备,示例性的,可以为电子设备中的处理器或芯片。为了便于描述,以电子设备为例,对通信方法作详细说明。
S801,在电子设备进行WIFI通信的情况下,电子设备确定电子设备是否满足第一预设条件。
可以理解,电子设备满足第一预设条件的情况下,电子设备采用第一天线进行蓝牙通信和WIFI通信。其中,第一预设条件表示电子设备需要使用(即应使用)独占天线的方式进行蓝牙通信,也就是说电子设备存在进入蓝牙独立传输状态的需求。蓝牙独立传输状态表示电子设备可以采用并行模式进行蓝牙通信和WIFI通信,也就是电子设备进行蓝牙通信和WIFI通信所使用的天线可以不是同一根的条件,换言之,该电子设备中的蓝牙模块所使用的天线和该电子设备中的WIFI模块所使用的天线不同。
示例性的,上述第一预设条件表示电子设备的WIFI通信和/或蓝牙通信的质量较低,该第一预设条件可以包括电子设备开始进行蓝牙通信,或者,在该电子设备采用分时模式进行蓝牙通信和WIFI通信的过程中,电子设备的目标通信方式的通信质量值低于预设质量值。其中,该目标通信方式包括WIFI通信方式和/或蓝牙通信方式。 其中,本申请中的开始进行蓝牙通信表示的是蓝牙由关闭状态进入扫描状态、配对状态或其它需要蓝牙模块使用天线进行蓝牙通信的状态(如电子设备与其它设备连接成功)。
在一示例中,上述第一预设条件可以包括电子设备开始进行蓝牙通信。在电子设备进行WIFI通信但未进行蓝牙通信的过程中,当电子设备开始进行蓝牙通信时,为了保证通信质量,避免蓝牙通信和WIFI通信的相互干扰,电子设备可以存在进入蓝牙独立传输状态的需求,也就是电子设备满足第一预设条件。如果该电子设备未开始蓝牙通信,该电子设备便不满足第一预设条件。
在另一示例中,上述第一预设条件包括在该电子设备采用分时模式进行蓝牙通信和WIFI通信的过程中,目标通信方式的通信质量值低于预设质量值。电子设备在采用分时模式进行WIFI通信和蓝牙通信的过程中,如果WIFI通信方式和/或蓝牙通信方式的通信质量值高于或等于预设质量值,表明该分时模式下的电子设备传输性能较好,该电子设备可以继续采用分时模式进行蓝牙通信和WIFI通信,该电子设备没有使用并行模式进行蓝牙通信和WIFI通信的需求,即没有进入独立传输状态的需求,该电子设备不满足第一预设条件。如果WIFI通信方式或蓝牙通信方式的通信质量值小于预设质量值,该电子设备存在进入独立传输状态的需求,该电子设备存在使用并行模式进行蓝牙通信和WIFI通信的需求,该电子设备满足第一预设条件。
在一些实施例中,上述通信质量值可以包括速率,相应的,上述预设质量值可以包括预设速率。例如,上述目标通信方式包括WIFI通信方式。电子设备在采用分时模式进行WIFI通信和蓝牙通信的过程中,如果电子设备的WIFI速率高于或等于预设速率,则表明该电子设备在分时模式下的WIFI通信质量较好,传输性能较好,因此,电子设备可以确定该电子设备无需进入蓝牙独立传输状态,该电子设备不满足第一预设条件,从而无需再多使用一根天线进行通信,可以减少不必要的资源浪费。如果电子设备的WIFI速率低于预设速率,则表明该电子设备在分时模式下的WIFI通信质量较差,传输性能较差,因此,电子设备为了尝试获得较好的WIFI传输性能,该电子设备确定自己有进入蓝牙独立传输状态的需求,该电子设备满足第一预设条件。
应理解,上述速率仅是通信质量值的一种示例参数,该电子设备也可以采用其它参数表示通信质量值,如其它参数可以包括接收信号强度(received signal strength indicator,RSSI)、发射功率、误码率、信噪比等。也就是说,电子设备可以在电子设备满足如下条件的情况下,可以确定目标通信方式的通信质量值低于预设质量值,目标通信方式的通信质量可能较差。该条件包括:目标通信方式的速率大于或等于预设速率、目标通信方式的接收信号强度大于预设接收信号强度、目标通信方式的发射功率大于或等于预设发射功率、目标通信方式的误码率小于或等于预设误码率、目标通信方式的信噪比大于或等于预设信噪比中一个或多个条件。
其中,发射功率是电子设备所发射出来给基地台的信号强度,也即,当电子设备距离路由器较远时,WIFI发射功率较高;或者,当蓝牙设备距离电子设备比较远,蓝牙的发射功率也会比较高。误码率(symbol error rate,SER)是衡量数据在规定时间内数据传输精确性的指标。
需要说明的是,WIFI通信和蓝牙通信的初始工作模式均为分时模式。这种工作模 式下,电子设备复用天线分时进行WIFI通信和蓝牙通信。其中,分时模式下WIFI通信的工作带宽可以是40Mhz,也可以是20Mhz,具体不做限定。
本申请实施例中,上述电子设备在不满足第一预设条件的情况下,确定该电子设备没有进入独立传输状态的需求,该电子设备执行S802;上述电子设备在满足第一预设条件的情况下,确定该电子设备需判断是否进入独立传输状态,该电子设备可以执行S803。
S802、电子设备采用分时模式进行蓝牙通信和WIFI通信。
具体地,若电子设备不满足第一预设条件,则确定电子设备采用分时模式进行蓝牙通信和WIFI通信。
S803,电子设备确定第一蓝牙编码格式。
其中,第一蓝牙编码格式表示该电子设备所使用的蓝牙通信方式对应的编码格式,即进行蓝牙通信所使用的编码格式。可以理解的是,电子设备在确定电子设备的通信状态满足第一预设条件后,可以确定该电子设备存在通过独占天线的方式进行蓝牙通信的需求,因此电子设备可以利用第一蓝牙编码格式确定该电子设备是否需要通过独占天线的方式继续蓝牙通信,即是否进入独立传输状态。
应理解,在确定电子设备满足第一预设条件的情况下,如果电子设备未利用蓝牙编码格式,电子设备可以周期性或实时性检测电子设备是否利用蓝牙编码格式,直至检测电子设备在利用蓝牙编码格式对数据进行编码时,停止检测。检测到的蓝牙编码格式便可以为第一蓝牙编码格式,例如,电子设备可以在向其它设备传输业务数据时,才会利用蓝牙编码格式,对数据进行编码。因此,在确定电子设备满足第一预设条件的情况下,电子设备当前如果处于扫描状态,还未向其它设备传输业务数据,该电子设备便无法获取到蓝牙编码格式,因此,电子设备可以继续检测。在电子设备开始利用蓝牙编码格式,向其它设备传输业务数据的情况下,该蓝牙编码格式可以为第一蓝牙编码格式。可见,本申请中的第一蓝牙编码格式可以是在电子设备满足第一预设条件的情况下,电子设备最新确定的蓝牙编码格式。
在一些可能的实现方式中,上述第一蓝牙编码格式可以包括第一蓝牙编码方式,比如,SBC、AAC、APTX、LDAC、LHDC等。
在另一些可能的实现方式中,上述第一蓝牙编码格式可以包括第一蓝牙编码方式以及第一蓝牙编码方式对应的编码速率,比如,LDAC 990kbps。当然,该第一蓝牙编码格式也可以包括其它格式,本申请不对其限制。
可以理解,由于不同的蓝牙编码方式对应的编码速率可能不同,有一些蓝牙编码方式(如SBC)对应的编码速率可能为一个数值,有一些蓝牙编码方式对应的编码速率可能为一个范围,而有一些蓝牙编码方式(如LDAC)对应的编码速率的范围较大,有一些蓝牙编码方式(如AAC)对应的编码速率的范围较小。因此,针对编码速率范围较大的蓝牙编码方式,第一蓝牙编码格式可以包括第一蓝牙编码方式以及第一蓝牙编码方式对应的编码速率;针对编码速率范围较小的蓝牙编码方式,以及编码速率为一个数值的蓝牙编码方式,第一蓝牙编码格式可以只包括第一蓝牙编码方式。
S804,电子设备确定与第一蓝牙编码格式对应的第一通信指标阈值。
具体地,在电子设备确定第一蓝牙编码格式(即最新蓝牙编码格式)后,可以从 第二配置表中确定与第一蓝牙编码格式对应的第一通信指标阈值。其中,第一通信指标阈值为进入独立传输状态的阈值。其中,该第二配置表可以包括至少一个蓝牙编码格式以及该至少一个蓝牙编码格式中的各个蓝牙编码格式对应的通信指标阈值。
需要说明的是,第一通信指标阈值是基于WIFI的收益大小预先设置的。其中,收益是指电子设备由采用分时模式进行蓝牙通信和WIFI通信切换至并行模式进行蓝牙通信和WIFI通信时WIFI速率的提升程度(或简述为电子设备的工作模式由分时模式切换至并行模式),WIFI收益越高,则WIFI速率的提升效果越好。
在一些实施例中,通信指标包括WIFI接收信号强度,通信指标阈值包括WIFI接收信号强度阈值。
在另一些实施例中,当然上述WIFI接收信号强度仅为一种示例,通信指标也可以不包括WIFI接收信号强度,其通信指标可以包括WIFI发射功率、WIFI误码率、蓝牙发射功率、蓝牙接收信号强度、蓝牙误码率、WIFI信噪比中的至少一个指标。也就是说,通信指标也可以不包括WIFI接收信号强度,其可以包括WIFI接收信号强度、WIFI发射功率、WIFI误码率、WIFI信噪比、蓝牙发射功率、蓝牙接收信号强度、蓝牙误码率、蓝牙信噪比中的至少一个指标。相应的,通信指标阈值还可以包括WIFI接收信号强度阈值、WIFI发射功率阈值、WIFI误码率阈值、WIFI信噪比阈值、蓝牙发射功率阈值、蓝牙接收信号强度阈值、蓝牙误码率阈值、蓝牙信噪比阈值中的至少一个指标阈值。其中,该通信指标阈值与该通信指标一一对应。
示例性的,WIFI接收信号强度越强,WIFI速率越高,WIFI的收益越高,WIFI接收信号强度可以影响WIFI的收益。如表2所示,电子设备通过蓝牙通信方式,通过蓝牙耳机播放电子设备的音乐,并且通过接入A路由器实现WIFI通信方式,WIFI接收信号强度为大于-45dB时,WIFI速率最大,WIFI的收益最好。WIFI接收信号强度处于-70~-72dB时,WIFI速率最小,WIFI的收益最差。相较于蓝牙编码格式为ACC,蓝牙编码格式为LDAC,且编码速率为330kbps以及990kbps时,WIFI的收益最好。因此,蓝牙编码格式LDAC对应的通信指标阈值高于蓝牙编码格式AAC对应的通信指标阈值。
在一些实施例中,蓝牙编码格式为LDAC,且编码速率为990kbps下的WIFI接收信号强度阈值可以设置为-60dB,蓝牙编码格式为AAC下的WIFI接收信号强度阈值可以设置为-70dB。
在一些实施例中,该表2所示的测试场景中的A路由器对应的工作带宽为20MHz,该电子设备的WIFI通信方式对应的工作带宽为20MHz。该电子设备与该A路由器之间的距离为20cm。
表2

在一些实施例中,由上述表1可知,蓝牙编码格式存在对应的编码速率。蓝牙编码格式对应的编码速率越高,蓝牙发射功率越高,蓝牙的发射时间越多,相应的,电子设备中WIFI的发射时间越少,也就是说,在分时模式下,蓝牙通信对WIFI通信的质量影响越大。如在电子设备的蓝牙通信方式对应的蓝牙编码格式为LDAC,且该LDAC对应的编码速率为330kbps的情况下,该电子设备的WIFI通信质量高于该LDAC对应的编码速率为990kbps的情况下的WIFI通信质量。
具体的,该编码速率为330kbps的情况下的WIFI速率与编码速率为990kbps下的WIFI速率差异较大,因此,电子设备在满足第一预设条件的情况下,可以利用第一蓝牙编码格式及其该第一蓝牙编码格式对应的第一编码速率,确定该电子设备是否进入独立传输状态。其中,第一编码速率表示电子设备在使用该第一蓝牙编码格式时的编码速率。相应的,该电子设备可以利用相关配置表查找与该第一蓝牙编码格式和该第一编码速率所对应的第一通信指标阈值。该相关配置表可以包括至少一个蓝牙编码格式、每个蓝牙编码格式对应的至少一个编码速率,以及与一个该蓝牙编码格式和该蓝牙编码格式对应的一个编码速率所对应的第一通信指标阈值。这里配置表中的蓝牙编码格式对应的至少一个编码速率中的编码速率可以是一个具体值,也可以是一个范围。
需要说明的是,电子设备由于空间有限等原因,电子设备中的天线之间距离较近,天线之间的隔离度较小。因此,电子设备在进行蓝牙通信时,通过蓝牙发射出的信号会影响其它设备的接收信号,也即,发射端的蓝牙发射功率越大,虽然不会对发射端造成影响,但对接收端的影响越大,接收端(如该电子设备)的WIFI速率较低。如表3所示,蓝牙发射功率为PL8时,电子设备的下行链路所对应的WIFI速率最大;蓝牙发射功率为PL10时,下行链路所对应的WIFI速率最小。之后,电子设备可以确 定蓝牙发射功率为PL8时的收益相比于蓝牙发射功率为PL10时的收益较高。在一些实施例中,该表3所示的测试场景中,电子设备通过蓝牙通信方式连接编码格式为AAC的蓝牙耳机,并通过蓝牙耳机播放电子设备的音乐,该电子设备的WIFI通信方式对应的工作带宽为20MHz。该电子设备与该路由器之间的距离为20cm。电子设备采用并行模式分别进行蓝牙通信和WIFI通信。
表3
其中,下行链路(down link,DL)是指信号从基站到移动台的物理信道,也就是说下行链路指示电子设备基于蓝牙通信方式接收其它设备发送数据。上行链路(up link,UL)是指信号从移动台到基站的物理信道,也就是说上行链路指示其它设备基于蓝牙通信方式,向电子设备发送数据。
在一些实施例中,电子设备可以从配置表(如上述第二配置表)中查找与最新通信参数对应的第一通信指标阈值,即当前通信参数对应的第一通信指标阈值。示例性的,该最新通信参数可以包括最新蓝牙编码格式、最新路由器的标识、最新编码速率(或称为第一编码速率)、以及最新隔离度(或称为第一隔离度)、该最新路由器的工作带宽。当然第一通信指标阈值也可以直接是固定的值或值范围,该电子设备在满足第一预设条件的情况下,可以直接获取第一通信指标阈值,而无需利用最新通信参数确定。
S805,电子设备将第一通信指标阈值与最新通信指标进行比较,确定最新通信指标是否满足第二预设条件。
示例性的,电子设备判断最新通信指标是否满足第二预设条件。若最新通信指标满足第二预设条件,该电子设备可以确定进入独立传输状态,该电子设备可以执行S806;若最新通信指标不满足第二预设条件,该电子设备可以执行S807。
在一些实施例中,上述第二预设条件可包括WIFI接收信号强度大于第一WIFI接收信号强度阈值。
在另一些实施例中,当然上述第二预设条件包括WIFI接收信号强度大于第一WIFI接收信号强度阈值仅是一种示例,该第二预设条件也可以不包括WIFI接收信号强度大于第一WIFI接收信号强度阈值。也就是说上述第二预设条件可以包括WIFI接收信号强度大于第一WIFI接收信号强度阈值、蓝牙发射功率大于第一蓝牙发射功率阈值、蓝牙接收信号强度大于第一蓝牙接收信号强度阈值、蓝牙误码率小于第一蓝牙误码率阈值、WIFI发射功率大于第一WIFI发射功率阈值、WIFI信噪比小于第一WIFI信噪比阈值、WIFI误码率小于第一WIFI误码率阈值、蓝牙信噪比小于第一蓝牙信噪比阈值中的至少一个。
在一示例中,当前通信指标(即最新通信指标)包括当前(即最新)WIFI接收信号强度,上述第一通信指标阈值包括第一WIFI接收信号强度阈值,第二预设条件可以包括WIFI接收信号强度大于第一WIFI接收信号强度阈值。电子设备可以判断该最新WIFI接收信号强度是否大于第一WIFI接收信号强度阈值。若该最新WIFI接收信号强度大于第一WIFI接收信号强度阈值,表明电子设备由分时模式切换至并行模式后,电子设备的WIFI收益较大,则确定电子设备满足第二预设条件,可以进入独立传输状态;若该最新WIFI接收信号强度小于或等于第一WIFI接收信号强度阈值,则确定电子设备不满足第二预设条件,可以不进入独立传输状态。
示例性的,以第一WIFI接收信号强度阈值为-60dB进行举例说明,若当前WIFI接收信号强度为-55dB,则说明当前WIFI接收信号强度大于WIFI接收信号强度阈值,因此该电子设备满足第二预设条件,可以进入独立传输状态进行蓝牙通信;若当前WIFI接收信号强度为-63dB,则说明WIFI接收信号强度小于WIFI接收信号强度阈值,因此该电子设备不满足第二预设条件,可以不进入独立传输状态进行蓝牙通信。
在另一示例中,当前通信指标包括最新蓝牙发射功率,第一通信指标阈值包括第一蓝牙发射功率阈值,第二预设条件可以包括蓝牙发射功率大于第一蓝牙发射功率阈值。上述电子设备确定最新蓝牙发射功率是否大于第一蓝牙发射功率阈值。若最新蓝牙发射功率大于第一蓝牙发射功率阈值,则确定电子设备满足第二预设条件,可以进入独立传输状态进行蓝牙通信;若最新蓝牙发射功率小于或等于第一蓝牙发射功率阈值,则确定电子设备不满足第二预设条件,可以不进入独立传输状态进行蓝牙通信。
在另一示例中,当前通信指标包括最新蓝牙接收信号强度,第一通信指标阈值包括第一蓝牙接收信号强度阈值,第二预设条件可以包括蓝牙接收信号强度大于第一蓝牙接收信号强度阈值。电子设备确定最新蓝牙接收信号强度是否大于第一蓝牙接收信号强度阈值,若最新蓝牙接收信号强度大于第一蓝牙接收信号强度阈值,则确定电子设备满足第二预设条件,可以进入独立传输状态进行蓝牙通信;若最新蓝牙接收信号强度小于或等于第一蓝牙接收信号强度阈值,则确定电子设备不满足第二预设条件,因此,可以不进入独立传输状态进行蓝牙通信。
在另一示例中,当前通信指标包括最新蓝牙误码率,第一通信指标阈值包括第一蓝牙误码率阈值,第二预设条件可以包括蓝牙误码率小于第一蓝牙误码率阈值。电子设备确定最新蓝牙误码率是否小于第一蓝牙误码率阈值。若最新蓝牙误码率小于第一蓝牙误码率阈值,则说明蓝牙通信受WIFI通信的干扰比较严重,也即蓝牙模块的数据传输质量较差,因此,确定电子设备满足第二预设条件,可以进入独立传输状态进行蓝牙通信;若最新蓝牙误码功率大于或等于第一蓝牙误码率阈值,则确定电子设备不满足第二预设条件,可以不进入独立传输状态进行蓝牙通信。
在另一示例中,当前通信指标包括最新WIFI发射功率,第一通信指标阈值包括第一WIFI发射功率阈值。上述第二预设条件可以包括WIFI发射功率大于第一WIFI发射功率阈值。电子设备确定最新WIFI发射功率是否大于第一WIFI发射功率阈值,若最新WIFI发射功率大于第一WIFI发射功率阈值,则确定电子设备满足第二预设条件,可以进入独立传输状态进行蓝牙通信;若最新WIFI发射功率小于或等于第一WIFI发射功率阈值,则确定电子设备不满足第二预设条件,可以不进入独立传输状态进行 蓝牙通信。
在另一示例中,当前通信指标包括最新WIFI误码率,第一通信指标阈值包括第一WIFI误码率阈值。上述第二预设条件可以包括WIFI误码率小于第一WIFI误码率阈值。电子设备确定最新WIFI误码率是否小于第一WIFI误码率阈值,若最新WIFI误码率小于第一WIFI误码率阈值,则说明WIFI通信受蓝牙通信的干扰比较严重,也即,WIFI模块的数据传输质量较差,因此,确定电子设备满足第二预设条件,可以进入独立传输状态进行蓝牙通信;若最新WIFI误码功率大于或等于第一WIFI误码率阈值,则确定电子设备不满足第二预设条件,可以不进入独立传输状态进行蓝牙通信。
在另一示例中,当前通信指标包括最新WIFI信噪比,第一通信指标阈值包括第一WIFI信噪比阈值。上述第二预设条件可以包括WIFI信噪比小于第一WIFI信噪比阈值。电子设备确定最新WIFI信噪比是否小于第一WIFI信噪比阈值,若最新WIFI信噪比小于第一WIFI信噪比阈值,则说明WIFI信号受干扰信号(如噪声)的影响较多,也就是说WIIF通信质量较差,因此,电子设备可以确定电子设备满足第二预设条件,进入独立传输状态进行蓝牙通信;若最新WIFI信噪比大于或等于第一WIFI信噪比阈值,则确定电子设备不满足第二预设条件,可以不进入独立传输状态进行蓝牙通信。
在另一示例中,当前通信指标包括最新蓝牙信噪比,第一通信指标阈值包括第一蓝牙信噪比阈值。上述第二预设条件可以包括蓝牙信噪比小于第一蓝牙信噪比阈值。电子设备确定最新蓝牙信噪比是否小于第一蓝牙信噪比阈值,若最新蓝牙信噪比小于第一蓝牙信噪比阈值,说明蓝牙通信质量较差,电子设备可以确定电子设备满足第二预设条件,进入独立传输状态进行蓝牙通信;若最新蓝牙信噪比大于或等于第一蓝牙信噪比阈值,则确定电子设备不满足第二预设条件,可以不进入独立传输状态进行蓝牙通信。
上面介绍了当前通信指标包括一个指标,且第二预设条件包括一个条件的情况时,该电子设备如何确定该电子设备是否满足第二预设条件的过程。当然,在一些实施例中,当前通信指标也可以包括多个指标,相应的,第二预设条件也可以包括多个条件,也就是说该第二预设条件可以包括该多个指标中的每个指标对应的条件的情况。在该情况下,对于该当前通信指标中的每个指标,该电子设备判断电子设备是否满足该指标对应的条件。如果该电子设备满足每个指标对应的条件,该电子设备可以确定该电子设备满足第二预设条件。如果该电子设备不满足至少一个指标对应的条件,该电子设备可以确定该电子设备不满足第二预设条件。
例如,上述当前通信指标可以包括当前WIFI接收信号强度、当前WIFI发射功率。上述第二预设条件可以包括WIFI接收信号强度大于第一WIFI接收信号强度阈值,和WIFI发射功率大于第一WIFI发射功率阈值这两个条件。如果该电子设备的最新WIFI接收信号强度大于第一WIFI接收信号强度阈值,且最新WIFI发射功率大于第一WIFI发射功率阈值,就可以确定该电子设备满足第二预设条件。
或者,如果该电子设备满足至少一个指标对应的条件,该电子设备就可以确定该电子设备满足第二预设条件。如果该电子设备不满足全部指标对应的条件,该电子设备可以确定该电子设备不满足第二预设条件。
S806、电子设备进入独立传输状态。
具体的,在电子设备确定该电子设备满足第二预设条件,则说明电子设备可以采用第一天线进行WIFI通信,且采用第二天线进行蓝牙天线,也就是说,该电子设备可以进入独立传输状态。
S807、电子设备采用分时模式进行蓝牙通信和WIFI通信。
具体的,在该电子设备不满足第二预设条件的情况下,表明蓝牙通信/WIFI通信质量较好,因此,为了减少资源的浪费,没有必要再使用不同天线进行蓝牙通信和WIFI通信,因此电子设备可以采用分时模式进行蓝牙通信和WIFI通信。
在一些实施例中,由于不同型号的路由器的性能存在差别,因此,不同型号的路由器能够直接影响接入该路由器的电子设备的WIFI速率。示例性的,如下表4所示,在蓝牙开启但未扫描(WIFI独占天线)的场景中,电子设备进行WIFI通信且未进行蓝牙通信,WIFI通信独占天线,这种场景可以类比于使用不同的天线并行进行WIFI通信和蓝牙通信的场景,因此,电子设备使用不同的天线并行进行WIFI通信和蓝牙通信时的传输性能可以类比这种场景下的传输性能。并且可以通过该表4获知电子设备采用分时模式,进行WIFI通信和蓝牙通信时的WIFI速率。
表4

应理解,上述表4所示的TCP是指传输控制协议(transmission control protocol)。UDP是指用户数据报协议(user datagram protocol)。上述UL是指上行链路,上述DL是指下行链路。
上述表4所示的数据是在电子设备与路由器之间的距离较近(如为20cm)时测试得到的。由上述表4可知,不同场景下,路由器的型号以及工作带宽都会影响WIFI 速率。具体地,同一场景同一路由器下,40MHz工作带宽所对应的WIFI速率高于20MHz工作带宽所对应的WIFI速率,表明由于40MHz工作带宽适合近距离传输,因此,40MHz工作带宽所对应的WIFI速率较高。同一场景同一工作带宽下,路由器A所对应的WIFI速率以及路由器B所对应的WIFI速率分别高于路由器C所对应的WIFI速率。路由器A所对应的WIFI速率以及路由器B所对应的WIFI速率分别高于路由器D所对应的WIFI速率,由于不同型号的路由器下的重传策略不同,因此,不同路由器所对应的WIFI速率也不同。同一路由器同一工作带宽下,蓝牙开启但未扫描场景所对应的WIFI速率高于AAC场景所对应的WIFI速率,AAC场景对应的WIFI速率、蓝牙开启但未扫描场景所对应的WIFI速率分别高于LDAC场景所对应的WIFI速率,由于LDAC的编码速率高于AAC的编码速率,且蓝牙开启但未扫描场景为无蓝牙编码方式的场景,因此,如果编码速率越高,会导致WIFI速率越低。这里AAC场景、LDAC场景是指电子设备进行蓝牙通信时,基于AAC编码格式、LDAC编码格式对数据进行编码。
在一些实施例中,在上述表2所对应的测试过程的基础上,相关人员进行了B路由器、C路由器以及D路由器的测试过程,得到了如表5所示数据。该表5包括了不同路由器下,不同WIFI接收信号强度下关闭蓝牙后的电子设备的WIFI速率,以及不同蓝牙编码格式下的分时模式下的WIFI速率、并行模式下的WIFI速率以及所对应的收益。
表5


需要说明的是,由上述表5可以看出,不同路由器下的WIFI速率也不同,从整体上看,路由器A的WIFI速率较高;路由器B的WIFI速率较低。因此,综上分析,不同型号的路由器会影响WIFI速率。
在一种可能的实施方式中,第一通信指标阈值还可以是根据路由器和/或工作带宽进行预先设置。比如,以第一通信指标阈值为第一WIFI接收信号强度阈值进行举例说明,若路由器的传输性能越好,则第一WIFI接收信号强度阈值可以越高;若路由器的传输性能越差,则第一WIFI接收信号强度阈值可以越低。若工作带宽越高,则第一WIFI接收信号强度阈值可以越高;若工作带宽越低,则设置的第一WIFI接收信号强度阈值可以越低。如此,可以提升第一通信指标阈值确定的准确度。
如上述表5所示,例如,在路由器A下,当蓝牙编码格式是AAC时,工作模式为分时模式,且WIFI通信的工作带宽为40Mhz下的WIFI速率(即248、283、242、294)高于并行模式,且WIFI通信的工作带宽为20Mhz下的WIFI速率(即138、148、201、190)。此时电子设备在处于分时模式,WIFI通信的工作带宽为40Mhz时,该电子设备的WIFI传输性能较优。
可以理解,电子设备可以连接不同型号的路由器进行WIFI通信,由于不同型号的路由器的性能存在差别,因此,路由器可以直接影响电子设备进行WIFI通信和蓝牙通信的工作模式。
例如,在路由器A下,当蓝牙业务对应LDAC时,分时模式下的WIFI通信和蓝牙通信的速率较低,换言之,并行模式下的WIFI速率高。
再例如,在路由器C下,无论蓝牙业务对应哪一种蓝牙编码格式,分时进行WIFI 通信和蓝牙通信的速率都较差,换言之,并行模式下的WIFI速率高。
本申请中,不同型号的路由器会影响WIFI模块和蓝牙模块的工作模式。在一些场景中,电子设备在不同路由器下的工作模式会不同,相应的,不同型号的路由器对应的第一预设指标阈值可能不同。例如,电子设备在路由器A下分时进行WIFI通信和蓝牙通信时的传输性能好,但在路由器B下并行进行WIFI通信和蓝牙通信的传输性能好。在另一些场景中,在路由器相同的情况下,电子设备在不同蓝牙业务下体现的传输性能好的工作模式也会不同。例如,同样的路由器,电子设备在路由器A下分时进行WIFI通信和蓝牙通信时的传输性能好,但在路由器B下并行进行WIFI通信和蓝牙通信的传输性能好。
示例性的,上述工作模块可以包括分时模式和并行模式,该并行模式可以包括第一并行模式和第二并行模式。
分时模式:蓝牙通信和WIFI通信的分时模式,WIFI通信的工作带宽不限定,示例性的,WIFI通信的工作带宽可以是40Mhz或20Mhz。这种工作模式下,电子设备复用天线分时进行WIFI通信和蓝牙通信,或者,电子设备也可以使用不同的天线分时进行WIFI通信和蓝牙通信。
第一并行模式:WIFI通信和蓝牙通信的并行模式,且WIFI通信的工作带宽为第一工作带宽。这种工作模式下,电子设备使用不同的天线并行进行WIFI通信和蓝牙通信。示例性的,第一工作带宽为20Mhz。
第二并行模式:WIFI通信和蓝牙通信的并行模式,且WIFI通信的工作带宽为第二工作带宽。这种工作模式下,电子设备使用不同的天线并行进行WIFI通信和蓝牙通信。示例性的,第二工作带宽为40Mhz。
在上述并行模式中,一般情况下,蓝牙通信的工作带宽包括工作频段中除WIFI通信的工作带宽(20Mhz或40Mhz)以外的带宽。但是,在特殊情况下,蓝牙通信的工作带宽也会包括少量的WIFI通信的工作带宽。
需要说明的是,上述三种工作模式中WIFI通信的工作带宽,表示的是WIFI通信能够使用的最大工作带宽。电子设备在进行WIFI通信时,实际使用的工作带宽并不一定是WIFI通信能够使用的最大工作带宽,具体情况与路由器的配置有关。若路由器支持的带宽包括WIFI通信能够使用的最大工作带宽,那么,电子设备进行WIFI通信时实际使用的工作带宽可以是最大工作带宽;若路由器支持的带宽小于最大工作带宽,那么,电子设备进行WIFI通信时实际使用的工作带宽小于最大工作带宽。例如,电子设备确定WIFI通信的工作带宽是40Mhz,但路由器仅支持20Mhz的工作带宽,那么,电子设备进行WIFI通信时实际使用的工作带宽是20Mhz。再例如,若电子设备确定WIFI通信的最大工作带宽是40Mhz,路由器也支持40Mhz的工作带宽,那么,电子设备进行WIFI通信时实际使用的工作带宽可以是40Mhz。
应理解,虽然上述是以2.4Ghz的工作频段以及40Mhz或20Mhz的工作带宽提出本申请实施例,但不应对本申请实施例构成限定。例如,WIFI通信和蓝牙通信的工作频段不一定限定在2.4Ghz,只需两者的工作频段存在重合,便可以判断是否需要进入独立传输状态;再例如,WIFI通信的工作带宽也不一定限定是40Mhz或20Mhz,也可以是其它数值。例如,30Mhz、50Mhz。
本申请实施例提供的通信方法,当电子设备中的WIFI模块与蓝牙模块的工作频段重合时(例如,WIFI模块和蓝牙模块的工作频段均为2.4Ghz),电子设备可以在确定电子设备满足第一预设条件后,获取第一通信指标阈值,然后将实时获取到的当前通信指标与第一通信指标阈值进行比较,以确定电子设备是否可以使用不同天线进行WIFI通信和蓝牙通信,如此,可以减少WIFI通信和蓝牙通信之间的干扰以及保持较好的传输性能,不仅提高了系统的灵活性,而且提高了系统的稳定性。以及还可以减少资源的浪费。
在一些实施例中,电子设备在确定电子设备满足第一预设条件后,可以利用相关配置表确定电子设备的硬件资源是否能够满足并行模式的需求,如果能够满足,该电子设备可以确定,可以利用第一通信指标阈值判断该电子设备是否有必要进入独立传输状态。下面将结合图10中的S901-S905介绍电子设备利用配置表直接确定第一工作模式的过程。
S901,电子设备确定电子设备的第一通信参数,其中,第一通信参数包括第一蓝牙编码格式、第一路由器的标识信息和第一隔离度中的至少一个。
其中,第一通信参数表示电子设备的最新通信参数。第一路由器(或称为当前路由器,最新路由器)表示电子设备当前进行WIFI通信时所使用的路由器。也就是该电子设备接入的该第一路由器所提供的WIFI信号。第一隔离度(或称为当前隔离度)表示天线间的隔离度。该天线间的隔离度表示某一天线发射的信号功率与在另一天线接收的信号强度功率之间的比值,也即,该天线间的隔离度表示某一天线的发射信号到另一天线的输出衰减程度,该比值越大,说明隔离度越小越好。本实施方式中,天线间的隔离度为上述第一天线与上述第二天线之间的隔离度。
示例性的,第一路由器的标识信息可以是第一路由器的型号、名称等。上述第一蓝牙编码格式或称为当前蓝牙编码格式、最新蓝牙编码格式。
S902,电子设备判断第一配置表中是否存在上述第一通信参数对应的工作模式标识。
示例性的,若第一配置表中存在上述第一通信参数对应的工作模式标识,该电子设备可以执行S903;若第一配置表中不存在上述第一通信参数对应的工作模式标识,该电子设备可以执行S904。
S903,电子设备从第一配置表中确定与该第一通信参数对应的工作模式标识,得到第一工作模式。
其中,该第一工作模式便为与该第一通信参数对应的工作模式标识所对应的工作模式。第一配置表(或描述为白名单)包括通信参数,及其对应的工作模式标识,该通信参数可以包括蓝牙编码格式、路由器的标识信息、隔离度范围中的至少一种信息。其中,该工作模式可以包括并行模式和分行模式。在一些实施例中,该并行模式可以包括第一并行模式和第二并行模式。例如,通信参数可以包括蓝牙编码格式和路由器的标识信息。该第一配置表中包括至少一个蓝牙编码格式,至少一个路由器的标识信息,以及与一个蓝牙编码格式和一个路由器的标识对应的工作模式标识。又例如,第一通信参数可以包括蓝牙编码格式、路由器的标识信息、隔离度范围。该第一配置表中包括至少一个蓝牙编码格式,至少一个路由器的标识信息,至少一个隔离度,以及 与一个蓝牙编码格式和一个路由器的标识信息、一个隔离度范围对应的工作模式标识。
下面将以上述工作模式包括分行模式和并行模式,该并行模式包括第一并行模式和第二并行模式,通信参数可以包括蓝牙编码格式、路由器的标识、隔离度范围为例,介绍电子设备确定第一工作模式的过程。
电子设备获取第一通信参数包括第一蓝牙编码格式(即AAC)、第一路由器的标识信息(即A),和隔离度为a,该a小于a2,结合表6所示的第一配置表,该电子设备可以确定第一工作模式为分时模式。在一种可能的实现方式中,通过第一配置表还可以确定分时模式对应的工作带宽,如表6所示的40Mhz。
表6
下面针对表6中确定天线间的隔离度与a1(即第一隔离度阈值)以及a2(即第二隔离度阈值)之间的关系进行详细介绍。
应理解,第一隔离度阈值与WIFI通信的40Mhz的工作带宽有关。其中,天线之间的隔离度是固定的,可以直接获取。
在一示例中,若电子设备确定第一天线和第二天线之间的隔离度大于第一隔离度阈值,表明第一天线和第二天线的隔离度足够大,能够满足第二并行模式的需求,即满足电子设备使用不同天线并行进行WIFI通信和蓝牙通信,且WIFI通信的工作带宽是40Mhz的需求,这两种通信之间传输的干扰减小,也就是说干扰程度在可接受范围内。因此,电子设备可以继续利用第一通信指标阈值判断电子设备是否有必要采用并行模式,进行蓝牙通信和WIFI通信。
在另一示例中,若电子设备确定第一天线和第二天线的隔离度小于或等于第一隔离度阈值,表明第一天线和第二天线的隔离度还是不够大,无法满足第二并行模式的需求。简单来说,电子设备无法支撑并行模式,因此,电子设备可以确定工作模式为 分时模式,无需再利用第一通信指标阈值判断电子设备是否采用并行模式。
在另一示例中,电子设备可以确定第一天线和第二天线的隔离度是否大于第二隔离度阈值。其中,第二隔离度阈值小于第一隔离度阈值,第二隔离度阈值与WIFI通信的20Mhz的工作带宽有关。
若电子设备确定第一天线和第二天线的隔离度大于第二隔离度阈值,表明第一天线和第二天线的隔离度较大,能够满足第一并行模式的需求,即满足使用不同天线并行进行WIFI通信和蓝牙通信,且WIFI通信的工作带宽是20Mhz的需求,这样,这两种通信之间传输的干扰不大,或者说,干扰在可接受范围内。
可以理解,当天线间的隔离度较小时,传输过程会有较大的干扰,降低WIFI通信的工作带宽,有效减少干扰。
在另一示例中,若电子设备确定第一天线和第二天线的隔离度小于或等于第二隔离度阈值,表明第一天线和第二天线之间的隔离度很小,无法满足使用不同天线并行进行WIFI通信和蓝牙通信,且WIFI通信的工作带宽是20Mhz的需求。
在一些实施例中,上述第二天线可以通过以下几种实现方式进行确定。
在一些实现方式中,上述第二天线是蜂窝天线。由于蜂窝通信和蓝牙通信共享天线,且电子设备中包括多个蜂窝天线,因此,电子设备可以基于蜂窝通信的空闲程度以及多个蜂窝天线中的每个蜂窝天线和第一天线之间的隔离度,从多个蜂窝天线中确定第二天线。其中,该从多个蜂窝天线中确定第二天线的实现过程可以参考以下两种可能的示例。
在一示例中,在蜂窝通信不繁忙的情况下,电子设备可以将多个蜂窝天线中与第一天线的隔离度最大的一根天线确定为第二天线。
在另一示例中,在蜂窝通信不繁忙的情况下,如果多个蜂窝天线中有N个天线均满足隔离度要求,即,N个天线均满足到第二天线的隔离度大于预设值的要求,则电子设备也可以将多个蜂窝天线满足隔离度要求的N个天线作为第二天线,N大于1。例如,当N=2时,电子设备有2个蜂窝天线和第一天线的隔离度满足隔离度要求,则将这2个蜂窝天线均可以作为第二天线。
在另一些实施例中,第二天线是蓝牙独享的天线(简称,蓝牙天线)。若电子设备中仅有一个蓝牙天线,那么,第二天线就为这个天线。若电子设备中包括多个蓝牙天线,那么,电子设备可以根据多个蓝牙天线中的每个蓝牙天线和第一天线之间的隔离度,从多个蓝牙天线中确定第二天线。其中,该从多个蓝牙天线中确定第二天线的实现过程可以参考以下两种可能的示例。
在一示例中,电子设备可以将多个蓝牙天线中与第一天线的隔离度最大的一根天线确定为第二天线。在另一示例中,电子设备可以将多个蓝牙天线中满足隔离度要求的N个天线作为第二天线。
应理解,上述示例的确定第二天线的方式仅为示意性说明,任何能够确定第二天线的方式均可行,本申请实施例不做任何限定。
需要说明的是,上述第一配置表可以是电子设备中预先配置的。例如,电子设备出厂时,设备内部预配置有第一配置表。或者,第一配置表也可以是电子设备从服务器上获取到的。例如,电子设备可以周期性向服务器上发送请求,以获得第一配置表。 又或者,服务器也可以周期性地向电子设备主动发送第一配置表。又或者,该第一配置表是电子设备在基于利用指标阈值确定是否进入独立传输状态的过程中,自主学习生成的。该第一配置表可以是不断更新的。
需要说明的是,如果上述第一配置表不存在第一通信参数,或不存在该电子设备对应的工作模式,表明该电子设备无法利用第一配置表直接确定第一工作模式,进而无法准确的确定电子设备是否要进入独立传输状态。如此,可以减少不必要的资源浪费。
S904,对于每种工作模式,电子设备确定该工作模式下的WIFI速率。其中,第一工作模式为每种工作模式下的WIFI速率中的最高的WIFI速率所对应的工作模式。
具体的,在第一配置表不存在电子设备确定第一蓝牙编码格式和/或第一路由器的标识信息的情况下,电子设备可以针对不同工作模式,采集对应工作模式下的WIFI速率,并将WIFI速率最大的工作模式作为第一工作模式。例如,电子设备当前处于分时模式,电子设备可以直接采集分时模式下的WIFI速率。之后,电子设备可以切换至并行模式,以采集并行模式下的WIFI速率。
当然,上述不同工作模式下的WIFI速率也可以是电子设备在处于对应工作模式时,电子设备采集并保存的。之后,当需利用电子设备不同工作模式下的WIFI速率时,可以直接获取。
举例来说,若电子设备确定电子设备在分时模式下的WIFI速率为5Mpbs,并行模式下的WIFI速率为80Mbps,则第一工作模式为并行模式。
在一种可能的实施方式中,在第一配置表不存在第一通信参数对应的工作模式标识的情况下,上述第一工作模式的确定过程可以包括:电子设备确定电子设备在分时模式下的第一WIFI速率,若第一WIFI速率大于预设速率,则说明WIFI和蓝牙共享天线时的传输速率很高,该第一工作模式为分时模式,无需再利用第一通信指标阈值判断是否需要进入独立传输状态。
在电子设备确定第一WIFI速率小于预设速率的情况下,表明WIFI通信质量差。因此,电子设备需要确定电子设备在进入独立传输状态的情况下的第二WIFI速率,若第二WIFI速率高于第一WIFI速率,表明并行模式下的WIFI速率较高,上述第一工作模式可以为并行模式。
在一些实施例中,上面介绍了在确定电子设备满足第一预设条件的情况下,电子设备利用第一配置表确定第一工作模式,当然,电子设备也可以先利用第一配置表确定第一工作模式(如执行上述S901-S904),在得到第一工作模式后,如果该第一工作模式为分时模式,则该电子设备无需再继续判断电子设备是否满足第一预设条件;如果该第一工作模式为并行模式,表明该电子设备的硬件资源可以满足并行模式的需求,因此,该电子设备可以继续判断电子设备是否满足第一预设条件,也就是,判断电子设备是否存在进入独立传输状态的需求。
在一种可能的实施方式中,为了提升第一工作模式确定的精准度,电子设备在确定上述第一WIFI速率(即分时模式下的WIFI速率)小于预设速率后,需要分别确定电子设备在并行模式下的WIFI速率,如第一并行模式对应的第三WIFI速率、第二并行模式对应的第四WIFI速率。之后,电子设备可以将第一并行模式对应的第三WIFI 速率、第二并行模式对应的第四WIFI速率中的最大值对应的并行模式作为第一工作模式。例如,电子设备在分时模式下的第一WIFI速率为5Mpbs,由于该第一WIFI速率较低,因此,该电子设备可能需要进入独立传输状态,然而,电子设备在进入独立传输状态进行蓝牙通信后,确定电子设备在第一并行模式下的第三WIFI速率为80Mbps,以及确定电子设备在第二并行模式下的第四WIFI速率为100Mbps,第四WIFI速率高于第三WIFI速率,因此,第一工作模式可以为第二并行模式。
在另一种可能的实施方式中,电子设备在上述第一WIFI速率(即分时模式下的WIFI速率)小于预设速率的情况下,分别将第三WIFI速率和第四WIFI速率与预设WIFI速率(或称为预设速率)进行比较,将大于预设WIFI速率的WIFI速率所对应的工作模式作为第一工作模式。
例如,若第三WIFI速率以及第四WIFI速率均大于预设WIFI速率,则可以将第三WIFI速率和第四WIFI速率中的最大值所对应的工作模式作为第一工作模式;若第三WIFI速率以及第四WIFI速率均小于或等于预设WIFI速率,则需要将第一WIFI速率、第三WIFI速率以及第四WIFI速率中的最大值所对应的工作模式作为第一工作模式。
S905,电子设备确定第一工作模式是否为并行模式。
示例性的,若是,表明电子设备可以支撑并行模式,可以继续判断电子设备是否有必要进入并行模式,电子设备可以执行步骤S804;若否,表明电子设备可以无法满足并行模式所需的硬件资源,如果进入并行模式,通信质量提高程度较小,甚至通信质量更差,因此,电子设备没有必要进入并行模式,电子设备可以执行步骤S906。
本申请中,在电子设备确定第一工作模式为并行模式的情况下,表明电子设备的硬件资源满足独立传输状态所需的资源,该电子设备可以采用并行模式进行蓝牙通信和WIFI通信,电子设备可以从上述第二配置表中确定与第一蓝牙编码格式对应的第一通信指标阈值,以供利用第一通信指标阈值判断电子设备是否有必要进入独立传输状态;若电子设备确定第一工作模式为分时模式,表明电子设备的硬件资源无法满足独立传输状态所需的资源,则可以直接确定采用分时模式进行蓝牙通信和WIFI通信。
S906、电子设备采用分时模式进行蓝牙通信和WIFI通信。
S804,电子设备确定与第一蓝牙编码格式对应的第一通信指标阈值。
示例性的,在电子设备确定第一工作模式为并行模式后,可以从上述第三配置表中确定与最新(即当前)通信参数(如第一蓝牙编码格式)对应的第一通信指标阈值。其中,第三配置表中包通信参数、工作模式标识以及与该通信参数和该工作模式标识对应的第一通信指标阈值。
例如,上述第三配置表中可以包括至少一个蓝牙编码格式、至少一个路由器的标识信息、至少一个隔离度范围,至少一个工作模式标识(或描述为第一工作模式),以及与一个工作模式标识、一个蓝牙编码格式、一个路由器的标识信息以及一个隔离度范围对应的第一通信指标阈值。如蓝牙编码格式是LDAC 990kbps、路由器的标识信息是A,且天线间的隔离度a,该a大于第一隔离度阈值a1。电子设备通过表7,可以确定工作模式标识为并行模式+40Mhz(即第二并行模式),且第一通信指标阈值可以包括:蓝牙发射功率阈值BT TX1、蓝牙接收信号强度阈值BT RSSI1、蓝牙误码率 阈值BT BTBLER 1、WIFI发射功率阈值WIFI TX1、WIFI接收信号强度阈值WIFI RSSI1、WIFI误码率阈值WIFI BTBLER 1以及WIFI信噪比阈值WIFI SNR1等。
可以理解的是,由于部分蓝牙编码格式(如LDAC以外的蓝牙编码格式)对应的编码速率是一个值,或一个比较小的速率范围,该电子设备无需区分编码速率获取。
表7

应理解,上述第三配置表可以和第二配置表属于同一个表,也可以是不同表。
具体地,在电子设备确定第一工作模式为分时模式后,可以确定采用分时模式进行蓝牙通信和WIFI通信,无需进入独立传输状态进行蓝牙通信,如此,可以减少不必要的资源浪费。
在一些实施例中,电子设备在进入独立传输状态后,也就是在使用并行模式进行蓝牙通信和WIFI通信的过程中,还可以实时获周期性获取当前通信指标(即最新通信指标),以供利用当前通信指标确定电子设备是否退出独立传输状态,使得WIFI通信享受大带宽的收益。示例性的,该退出独立传输状态的过程可以如图11所示的步骤。
S1001,在电子设备进入独立传输状态进行蓝牙通信的情况下,确定与第一蓝牙编码格式对应的第二通信指标阈值。
具体地,在确定电子设备进入独立传输状态进行蓝牙通信后,需要从第四配置表中确定与最新通信指标(如第一蓝牙编码格式,即最新蓝牙编码格式)对应的第二通信指标阈值。其中,第二通信指标阈值表示第四配置表中退出独立蓝牙天线时的通信指标的阈值。在一些实施例中,一般来说,该第二通信指标阈值与上述第一通信指标阈值不同,第二通信指标阈值小于第一通信指标阈值。当然,在一些实施例中,第二通信指标阈值也可以等于第一通信指标阈值。
示例性的,上述第四配置表中可以包括至少一个蓝牙编码格式、至少一个路由器的标识信息、至少一个隔离度范围,至少一个工作模式(或描述为第一工作模式),与一个工作模式、一个蓝牙编码格式、一个路由器的标识信息以及一个隔离度范围对应的第一通信指标阈值,以及与一个工作模式、一个蓝牙编码格式、一个路由器的标识信息以及一个隔离度范围对应的第一通信指标阈值。如蓝牙编码格式是LDAC990kbps、路由器的标识信息是A,且天线间的隔离度a,该a大于第一隔离度阈值a1。电子设备通过表8,可以确定第二通信指标阈值可以包括:蓝牙发射功率阈值BT TX2、蓝牙接收信号强度阈值BT RSSI2、蓝牙误码率阈值BT BTBLER 2、WIFI发射功率阈值WIFI TX2、WIFI接收信号强度阈值WIFI RSSI2、WIFI误码率阈值WIFI BTBLER2以及WIFI信噪比阈值WIFI SNR2等。
表8


需要说明的是,表8中的第一通信指标阈值以及第二通信指标阈值仅仅是示例性的,在一些实例中,第一通信指标阈值以及第二通信指标阈值可以仅包含WIFI接受信号强度RSSI;在一些实例中,第一通信指标阈值以及第二通信指标阈值可以包含蓝牙接受信号强度RSSI以及WIFI接受信号强度RSSI等,具体不做限定。
可以理解,若第一工作模式为分时模式,则说明电子设备无需进入独立传输状态进行蓝牙通信,因此,无需设置第一通信指标阈值以及第二通信指标阈值。
S1002,电子设备将第二通信指标阈值与最新通信指标进行比较,确定最新通信指标是否满足第三预设条件。
示例性的,电子设备判断最新通信指标是否满足第三预设条件。若满足,该电子设备可以确定退出独立传输状态,该电子设备可以执行S1003。若不满足,该电子设备可以继续处于独立传输状态,可以执行S1004。
在一些示例中,第三预设条件可包括WIFI接收信号强度小于第一WIFI接收信号强度阈值。
在另一些实施例中,当然上述第三预设条件包括WIFI接收信号强度小于第一WIFI接收信号强度阈值仅是一种示例,该第三预设条件也可以不包括WIFI接收信号强度小于第一WIFI接收信号强度阈值。也就是说上述第三预设条件可以包括WIFI接收信号强度小于第一WIFI接收信号强度阈值、蓝牙发射功率小于第一蓝牙发射功率阈值、蓝牙接收信号强度小于第一蓝牙接收信号强度阈值、蓝牙误码率大于第一蓝牙误码率阈值、WIFI发射功率小于第一WIFI发射功率阈值、WIFI信噪比大于第一WIFI信噪比阈值、WIFI误码率大于第一WIFI误码率阈值、蓝牙信噪比大于第一蓝牙信噪比阈值中的至少一个。
应理解,上述配置表(如第一配置表、第二配置表、第三配置表和第四配置表)可以是一个表,也可以是不同表,本申请不对其限制。
在一示例中,当前通信指标包括WIFI接收信号强度,第二通信指标阈值包括第二WIFI接收信号强度阈值,第三预设条件可以包括WIFI接收信号强度小于第二WIFI接收信号强度阈值。该电子设备确定WIFI接收信号强度是否小于第二WIFI接收信号强度阈值,若WIFI接收信号强度小于第二WIFI接收信号强度阈值,则说明当前电子设备在并行模式下的收益值较低,该电子设备确定该电子设备不满足第三预设条件,可以退出独立传输状态,无需继续采用并行模式进行蓝牙通信,如此,可以在节约资源的同时,保持了WIFI速率,进而提升了用户的使用体验。若WIFI接收信号强度大于或等于WIFI接收信号强度阈值,则说明当前电子设备在并行模式下的收益值仍较高,因此,仍需继续采用并行模式进行蓝牙通信,也即,电子设备继续保持进入独立传输状态进行蓝牙通信。
示例性的,如上述表5所示,以D路由器且编码格式为LDAC 990kbps为例,在WIFI接收信号强度为-50dB时,收益为155%;在WIFI接收信号强度为-60dB时,收益为6%,如此,可以确定在WIFI接收信号强度为-60dB时收益较低,因此,需要退出独立蓝牙天线,以减少不必要的资源浪费。以C路由器且编码格式为LDAC 990kbps为例,在WIFI接受信号强度为-70dB时,收益仍为462%,也即,即使在WIFI接收信号强度较弱的情况下,收益仍然很高,因此,电子设备可以继续保持进入独立传输状态进行蓝牙通信。
在另一示例中,当前通信指标包括最新蓝牙发射功率,第二通信指标阈值包括第二蓝牙发射功率阈值,第三预设条件可以包括蓝牙发射功率小于第二蓝牙发射功率阈值。上述电子设备确定最新蓝牙发射功率是否小于第二蓝牙发射功率阈值。若最新蓝牙发射功率小于第二蓝牙发射功率阈值,则确定电子设备满足第三预设条件,可以退出独立传输状态进行蓝牙通信;若最新蓝牙发射功率大于或等于第二蓝牙发射功率阈值,则确定电子设备不满足第三预设条件,可以继续保持进入独立传输状态进行蓝牙通信。
在另一示例中,当前通信指标包括最新蓝牙接收信号强度,第二通信指标阈值包括第二蓝牙接收信号强度阈值,第三预设条件可以包括蓝牙接收信号强度小于第二蓝牙接收信号强度阈值。电子设备确定最新蓝牙接收信号强度是否小于第二蓝牙接收信号强度阈值,若最新蓝牙接收信号强度小于第二蓝牙接收信号强度阈值,则确定电子设备满足第三预设条件,可以退出独立传输状态进行蓝牙通信;若最新蓝牙接收信号 强度大于或等于第二蓝牙接收信号强度阈值,则确定电子设备不满足第三预设条件,因此,可以继续保持进入独立传输状态进行蓝牙通信。
在另一示例中,当前通信指标包括最新蓝牙误码率,第二通信指标阈值包括第二蓝牙误码率阈值,第二预设条件可以包括蓝牙误码率大于第一蓝牙误码率阈值。电子设备确定最新蓝牙误码率是否大于第一蓝牙误码率阈值。若最新蓝牙误码率大于第二蓝牙误码率阈值,则说明蓝牙通信受WIFI通信的干扰较小,也即,蓝牙模块的数据传输质量较好,因此,确定电子设备满足第三预设条件,可以退出独立传输状态进行蓝牙通信;若最新蓝牙误码功率小于或等于第二蓝牙误码率阈值,则确定电子设备不满足第三预设条件,可以继续保持进入独立传输状态进行蓝牙通信。
在另一示例中,当前通信指标包括最新蓝牙信噪比,第二通信指标阈值包括第二蓝牙信噪比阈值。上述第三预设条件可以包括蓝牙信噪比大于第二蓝牙信噪比阈值。具体地,电子设备确定最新蓝牙信噪比是否大于第二蓝牙信噪比阈值,若最新蓝牙信噪比大于第二蓝牙信噪比阈值,则说明蓝牙信号受干扰信号(如噪声)的影响较小,因此,确定电子设备可以满足第三预设条件,退出独立传输状态进行蓝牙通信;若最新蓝牙信噪比小于或等于第二蓝牙信噪比阈值,则确定电子设备不满足第三预设条件,可以继续保持进入独立传输状态进行蓝牙通信。
在另一示例中,当前通信指标包括最新WIFI发射功率,第二通信指标阈值包括第二WIFI发射功率阈值。上述第三预设条件可以包括WIFI发射功率小于第二WIFI发射功率阈值。电子设备确定最新WIFI发射功率是否小于第二WIFI发射功率阈值,若最新WIFI发射功率小于第二WIFI发射功率阈值,则确定电子设备满足第三预设条件,可以退出独立传输状态进行蓝牙通信;若最新WIFI发射功率大于或等于第二WIFI发射功率阈值,则确定电子设备不满足第三预设条件,可以继续保持进入独立传输状态进行蓝牙通信。
在另一示例中,当前通信指标包括最新WIFI误码率,第二通信指标阈值包括第二WIFI误码率阈值。上述第三预设条件可以包括WIFI误码率大于第二WIFI误码率阈值。电子设备确定最新WIFI误码率是否大于第二WIFI误码率阈值,若最新WIFI误码率大于第二WIFI误码率阈值,则说明WIFI通信受蓝牙通信的干扰较少,也即,WIFI模块的数据传输质量较好,因此,确定电子设备满足第三预设条件,可以退出独立传输状态进行蓝牙通信;若最新WIFI误码功率小于或等于第二WIFI误码率阈值,则确定电子设备不满足第三预设条件,可以继续保持进入独立传输状态进行蓝牙通信。
在另一示例中,当前通信指标包括最新WIFI信噪比,第二通信指标阈值包括第二WIFI信噪比阈值。上述第三预设条件可以包括WIFI信噪比大于第二WIFI信噪比阈值。电子设备确定最新WIFI信噪比是否大于第二WIFI信噪比阈值,若最新WIFI信噪比大于第二WIFI信噪比阈值,则说明WIFI信号受干扰信号(如噪声)的影响较小,因此,确定电子设备可以满足第三预设条件,退出独立传输状态进行蓝牙通信;若最新WIFI信噪比小于或等于第二WIFI信噪比阈值,则确定电子设备不满足第三预设条件,可以继续保持进入独立传输状态进行蓝牙通信。
上面介绍了当前通信指标包括一个指标,第三预设条件包括一个条件的情况时,该电子设备如何确定该电子设备是否满足第三预设条件。
当然,在一些实施例中,当前通信指标也可以包括多个指标,相应的,第三预设条件也可以包括多个条件,也就是说该第三预设条件可以包括该多个指标中的每个指标对应的条件的情况。在该情况下,对于该当前通信指标中的每个指标,该电子设备判断电子设备是否满足该指标对应的条件。如果该电子设备满足至少一个指标对应的条件,该电子设备就可以确定该电子设备满足第三预设条件。如果该电子设备不满足全部指标对应的条件,该电子设备可以确定该电子设备不满足第三预设条件。
例如,上述当前通信指标可以包括当前WIFI接收信号强度、当前WIFI发射功率。上述第三预设条件可以包括WIFI接收信号强度小于第二WIFI接收信号强度阈值,和WIFI发射功率小于第二WIFI发射功率阈值这两个条件。如果该电子设备的最新WIFI接收信号强度小于第二WIFI接收信号强度阈值,或者,最新WIFI发射功率小于第二WIFI发射功率阈值,就可以确定该电子设备满足第三预设条件。
或者,如果该电子设备满足每个指标对应的条件,该电子设备可以确定该电子设备满足第三预设条件。如果该电子设备不满足至少一个指标对应的条件,该电子设备可以确定该电子设备不满足第三预设条件。
S1003、电子设备退出独立传输状态。
具体的,在电子设备确定该电子设备满足第三预设条件,则确定该电子设备可以退出独立传输状态,也即,电子设备采用分时模式进行蓝牙通信和WIFI通信。
S1004、电子设备继续保持独立传输状态。
具体的,在电子设备确定该电子设备不满足第三预设条件,则确定该电子设备可以继续采用并行模式进行蓝牙通信和WIFI通信,也即,该电子设备可以继续保持独立传输状态进行蓝牙通信。
可以理解的是,在电子设备或者服务器中未包含上述配置表(如上述第一配置表、第二配置表、第三配置表、第四配置表),或者,配置表中未包括最新信息,如未包括最新型号的路由器、蓝牙编码格式的情况下,电子设备或者服务器可以通过自主学习的方式确定相关信息,在学习完成后,添加至相应的配置表中,以便于从该配置表中快速找到相关信息,节约了学习成本。例如,该电子设备可以通过自主学习的方式确定第一通信指标阈值以及第二通信指标阈值。
需要说明的是,上述电子设备在同时进行WIFI通信和蓝牙通信时,如果WIFI通信和蓝牙通信对应的工作频段不存在重合,电子设备可以直接基于分时模式、或者并行模式进行蓝牙通信和WIFI通信。电子设备也可以采用本申请所公开的方案确定是否有需求进入独立传输状态,如果有需求,电子设备可以直接进行并行模式。或者,电子设备采用本申请所公开的方案确定是否有需求进入独立传输状态,如果有需求,电子设备可以确定是否有必要进行蓝牙通信,本申请不对其限制。
在一些实施例中,在确定上述第一工作模式的过程中,电子设备可以得到不同工作模式对应的WIFI速率,从而可以基于不同工作模式对应的WIFI速率确定分时模式切换至并行模式时的WIFI收益,进而电子设备可以将WIFI收益较高(如WIFI收益大于0、或大于某个设定值)时所对应的通信指标作为上述第一通信指标阈值。比如,以第一通信指标阈值为第一WIFI接收信号强度阈值进行举例说明,分时模式下的WIFI速率为速率1,切换至并行模式后,WIFI速率为速率2。通过速率1和速率2得 到收益1,若收益1大于设定值,则可以确定此时的WIFI接收信号强度为第一WIFI接收信号强度阈值。
在一些实施例中,在确定第一工作模式过程中,可以得到不同工作模式下的WIFI速率。在利用不同工作模式下的WIFI速率确定第一工作模式后,电子设备可以利用第一工作模式下的WIFI速率确定第二通信指标阈值。若第一工作模式下的WIFI速率低于WIFI速率阈值,则说明当前情况下,可能会产生负收益,此时所对应的WIFI接收信号强度为第二WIFI接收信号强度阈值。
在一些实施例中,本申请实施例中,电子设备可以包括WIFI模块、蓝牙模块(或称为蓝牙芯片)和第一处理模块。第一处理模块用于确定工作模式、第一通信指标阈值以及第二通信指标阈值。示例性的,第一处理模块可以包括处理器,如AP。
在一示例中,上述WIFI模块和蓝牙模块可以集成在一个芯片中,该芯片可称为WIFI蓝牙芯片,也可以处于不同芯片,如WIFI模块集成在一个芯片,蓝牙模块集成在另一个芯片。
本申请中,电子设备在更新配置表(如上述第一配置表)后,可以将更新后的第一配置表上传至服务器中。这样,其它电子设备可以从服务器上获取更新后的配置表,从而使得其它电子设备可以从更新后的第一配置表中快捷地找到对应的工作模式,不再需要其它电子设备判断电子设备是否满足第二预设条件,以确定工作模式,有效地简化了处理过程,提高了处理效率。
示例性的,电子设备可以周期性或实时将更新后的第一配置表上传至服务器中。其中通过周期性上次可以避免了每次更新后都上传第一配置表所带来的资源开销。
在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件单元组合执行完成。软件单元可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器执行存储器中的指令,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。
本申请实施例还提供一种计算机可读存储介质,该计算机存储介质包括计算机指令,当计算机指令在上述电子设备上运行时,使得该电子设备执行上述方法实施例中的各个功能或者步骤。
本申请实施例还提供一种计算机程序产品,包括计算机程序,当计算机程序在电子设备上运行时,使得电子设备执行上述方法实施例中的各个功能或者步骤。
本申请实施例提供一种芯片,所述芯片用于执行指令,当所述芯片运行时,执行上述实施例中的技术方案。其实现原理和技术效果类似,此处不再赘述。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质 传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,高密度数字视频光盘(digital video disc,DVD))、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。
应理解,说明书通篇中提到的“实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各个实施例未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
还应理解,在本申请中,“当…时”、“若”以及“如果”均指在某种客观情况下UE或者基站会做出相应的处理,并非是限定时间,且也不要求UE或基站实现时一定要有判断的动作,也不意味着存在其它限定。
本领域普通技术人员可以理解:本申请中涉及的第一、第二等各种数字编号仅为描述方便进行的区分,并不用来限制本申请实施例的范围,也表示先后顺序。
本申请中对于使用单数表示的元素旨在用于表示“一个或多个”,而并非表示“一个且仅一个”,除非有特别说明。本申请中,在没有特别说明的情况下,“至少一个”旨在用于表示“一个或者多个”,“多个”旨在用于表示“两个或两个以上”。
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,其中A可以是单数或者复数,B可以是单数或者复数。
本文中术语“……中的至少一个”或“……中的至少一种”,表示所列出的各项的全部或任意组合,例如,“A、B和C中的至少一种”,可以表示:单独存在A,单独存在B,单独存在C,同时存在A和B,同时存在B和C,同时存在A、B和C这六种情况,其中A可以是单数或者复数,B可以是单数或者复数,C可以是单数或者复数。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执 行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
本申请中各个实施例之间相同或相似的部分可以互相参考。在本申请中各个实施例、以及各实施例中的各个实施方式/实施方法/实现方法中,如果没有特殊说明以及逻辑冲突,不同的实施例之间、以及各实施例中的各个实施方式/实施方法/实现方法之间的术语和/或描述具有一致性、且可以相互引用,不同的实施例、以及各实施例中的各个实施方式/实施方法/实现方法中的技术特征根据其内在的逻辑关系可以组合形成新的实施例、实施方式、实施方法、或实现方法。以上所述的本申请实施方式并不构成对本申请保护范围的限定。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准总之,以上所述仅为本申请技术方案的较佳实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (24)

  1. 一种通信方法,应用于电子设备,所述电子设备配置有第一天线和第二天线,所述第一天线与所述第二天线不同,其特征在于,所述方法包括:
    在电子设备进行无线保真WIFI通信的情况下,若所述电子设备满足第一预设条件,所述电子设备获取第一通信指标阈值;其中,所述电子设备满足第一预设条件的情况下,所述电子设备采用所述第一天线进行蓝牙通信和WIFI通信;所述第一通信指标阈值包括第一WIFI接收信号强度阈值;
    所述电子设备在最新通信指标满足第二预设条件的情况下,采用所述第一天线进行WIFI通信,采用所述第二天线进行蓝牙通信;其中,所述第二预设条件包括WIFI接收信号强度大于所述第一WIFI接收信号强度阈值。
  2. 根据权利要求1所述的方法,其特征在于,所述第一通信指标阈值还包括第一蓝牙发射功率阈值、第一WIFI误码率阈值、第一蓝牙接收信号强度阈值、第一蓝牙误码率阈值、第一WIFI发射功率阈值、第一WIFI信噪比阈值和第一蓝牙信噪比阈值中的至少一个;
    所述第二预设条件还包括:蓝牙发射功率大于所述第一蓝牙发射功率阈值、蓝牙接收信号强度大于所述第一蓝牙接收信号强度阈值、蓝牙误码率小于所述第一蓝牙误码率阈值、WIFI发射功率大于所述第一WIFI发射功率阈值、WIFI信噪比小于所述第一WIFI信噪比阈值、WIFI误码率小于所述第一WIFI误码率阈值以及蓝牙信噪比小于所述第一蓝牙信噪比阈值中的至少一个。
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一预设条件包括所述电子设备开始进行蓝牙通信,或者,在所述电子设备采用所述第一天线进行蓝牙通信和WIFI通信的过程中,所述电子设备的目标通信方式的通信质量值低于预设质量值;其中,该目标通信方式包括WIFI通信方式和/或蓝牙通信方式。
  4. 根据权利要求1或2所述的方法,其特征在于,所述若所述电子设备满足第一预设条件,所述电子设备获取第一通信指标阈值,包括:
    若所述电子设备满足第一预设条件,所述电子设备确定所述电子设备的第一通信参数,其中,所述第一通信参数包括第一蓝牙编码格式、第一路由器的标识信息和第一隔离度中的至少一个;
    所述电子设备利用第一配置表确定第一工作模式;
    在所述第一工作模式为并行模式的情况下,所述电子设备获取第一通信指标阈值。
  5. 根据权利要求4所述的方法,其特征在于,所述电子设备利用第一配置表确定第一工作模式,包括:
    在所述第一配置表中存在与所述第一通信参数对应的工作模式标识的情况下,所述第一工作模式为所述第一通信参数对应的工作模式标识指示的工作模式;或者,
    在所述第一配置表中不存在与所述第一通信参数对应的工作模式标识的情况下,所述第一工作模式是基于分时模式和/或并行模式对应的WIFI速率确定的;所述并行模式表示所述电子设备进行WIFI通信所使用的天线与所述电子设备进行蓝牙通信所使用的天线不同。
  6. 根据权利要求5所述的方法,其特征在于,所述第一工作模式是基于分时模式 和/或并行模式对应的WIFI速率确定的,包括:所述第一工作模式是所述分时模式和所述并行模式中WIFI速率最大的工作模式。
  7. 根据权利要求5所述的方法,其特征在于,所述第一工作模式是基于分时模式和/或并行模式对应的WIFI速率确定的,包括:在分时模式对应的第一WIFI速率小于预设速率,且所述并行模式对应的第二WIFI速率大于所述第一WIFI速率的情况下,所述第一工作模式为所述并行模式;或者,
    在所述分时模式对应的第一WIFI速率大于或者等于所述预设速率的情况下,所述第一工作模式为所述分时模式。
  8. 根据权利要求7所述的方法,其特征在于,所述并行模式包括第一并行模式以及第二并行模式,所述第一并行模式在采用并行模式进行蓝牙通信和WIFI通信时,所述WIFI通信对应的工作带宽为第一工作带宽;所述第二并行模式在采用并行模式进行蓝牙通信和WIFI通信时,所述WIFI通信对应的工作带宽为第二工作带宽;所述第一工作带宽与所述第二工作带宽不同;
    所述第一工作模式为所述并行模式,包括:所述第一工作模式是所述第一并行模式和所述第二并行模式中的WIFI速率最大的工作模式。
  9. 根据权利要求5所述的方法,其特征在于,所述第一工作模式是基于分时模式和/或并行模式对应的WIFI速率确定的,包括:在所述分时模式对应的第一WIFI速率小于预设速率,且所述并行模式对应的第二WIFI速率大于预设速率的情况下,所述第一工作模式是所述并行模式;或者,
    在所述分时模式对应的第一WIFI速率小于所述预设速率,且所述并行模式对应的第二WIFI速率小于所述预设速率的情况下,所述第一工作模式是所述分时模式和所述并行模式中的WIFI速率最大的工作模式。
  10. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:
    在所述电子设备采用所述第一天线进行WIFI通信,采用所述第二天线进行蓝牙通信后,所述电子设备确定第二通信指标阈值;所述第二通信指标阈值用于判断所述电子设备是否满足第三预设条件,所述第二通信指标阈值包括第二WIFI接收信号强度阈值;
    所述电子设备在所述最新通信指标满足所述第三预设条件的情况下,采用所述第一天线进行蓝牙通信和WIFI通信;其中,所述第三预设条件包括所述WIFI接收信号强度小于所述第二WIFI接收信号强度阈值。
  11. 根据权利要求10所述的方法,其特征在于,所述第二通信指标阈值还包括第二蓝牙发射功率阈值、第二WIFI误码率阈值、第二蓝牙接收信号强度阈值、第二蓝牙误码率阈值、第二WIFI发射功率阈值、第二WIFI信噪比阈值和第二蓝牙信噪比阈值中的至少一个;
    所述第三预设条件还包括:蓝牙发射功率小于所述第二蓝牙发射功率阈值、蓝牙接收信号强度小于所述第二蓝牙接收信号强度阈值、蓝牙误码率大于所述第二蓝牙误码率阈值、WIFI发射功率小于所述第二WIFI发射功率阈值、WIFI信噪比大于所述第二WIFI信噪比阈值、WIFI误码率大于所述第二WIFI误码率阈值以及蓝牙信噪比大于所述第二蓝牙信噪比阈值中的至少一个。
  12. 一种电子设备,其特征在于,所述电子设备包括显示屏、存储器、蓝牙模块、WIFI模块和一个或多个处理器;所述显示屏、所述存储器、所述蓝牙模块、所述WIFI模块和所述处理器耦合;所述蓝牙模块用于进行蓝牙通信,所述WIFI模块用于进行WIFI通信,所述显示屏用于显示所述处理器生成的图像,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令;当所述处理器执行所述计算机指令时,使得所述电子设备执行如权利要求1至11中任一项所述的方法。
  13. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1至11中任一项所述的方法。
  14. 一种通信方法,应用于电子设备,所述电子设备配置有第一天线和第二天线,所述第一天线与所述第二天线不同,其特征在于,所述方法包括:
    在电子设备进行无线保真WIFI通信的情况下,若所述电子设备满足第一预设条件,所述电子设备确定所述电子设备的第一通信参数;其中,所述电子设备满足第一预设条件的情况下,所述电子设备采用所述第一天线进行蓝牙通信和WIFI通信;
    在第一配置表中存在与所述第一通信参数对应的工作模式标识的情况下,将与第一通信参数对应的工作模式标识所对应的工作模式确定为第一工作模式;
    在所述第一工作模式为并行模式的情况下,所述电子设备获取第一通信指标阈值;其中,所述第一通信指标阈值包括第一WIFI接收信号强度阈值;
    所述电子设备在最新通信指标满足第二预设条件的情况下,采用所述第一天线进行WIFI通信,采用所述第二天线进行蓝牙通信;其中,所述第二预设条件包括WIFI接收信号强度大于所述第一WIFI接收信号强度阈值。
  15. 根据权利要求14所述的方法,其特征在于,所述第一通信指标阈值还包括第一蓝牙发射功率阈值、第一WIFI误码率阈值、第一蓝牙接收信号强度阈值、第一蓝牙误码率阈值、第一WIFI发射功率阈值、第一WIFI信噪比阈值和第一蓝牙信噪比阈值中的至少一个;
    所述第二预设条件还包括:蓝牙发射功率大于所述第一蓝牙发射功率阈值、蓝牙接收信号强度大于所述第一蓝牙接收信号强度阈值、蓝牙误码率小于所述第一蓝牙误码率阈值、WIFI发射功率大于所述第一WIFI发射功率阈值、WIFI信噪比小于所述第一WIFI信噪比阈值、WIFI误码率小于所述第一WIFI误码率阈值以及蓝牙信噪比小于所述第一蓝牙信噪比阈值中的至少一个。
  16. 根据权利要求14或15所述的方法,其特征在于,所述第一预设条件包括所述电子设备开始进行蓝牙通信,或者,在所述电子设备采用所述第一天线进行蓝牙通信和WIFI通信的过程中,所述电子设备的目标通信方式的通信质量值低于预设质量值;其中,该目标通信方式包括WIFI通信方式和/或蓝牙通信方式。
  17. 根据权利要求14所述的方法,其特征在于,所述第一通信参数包括第一蓝牙编码格式、第一路由器的标识信息和第一隔离度中的至少一个。
  18. 根据权利要求14或17所述的方法,其特征在于,所述方法还包括:
    在所述第一配置表中不存在与所述第一通信参数对应的工作模式标识的情况下,所述第一工作模式是基于分时模式和/或并行模式对应的WIFI速率确定的;所述并行模式表示所述电子设备进行WIFI通信所使用的天线与所述电子设备进行蓝牙通信所 使用的天线不同。
  19. 根据权利要求18所述的方法,其特征在于,所述第一工作模式是基于分时模式和/或并行模式对应的WIFI速率确定的,包括:所述第一工作模式是所述分时模式和所述并行模式中WIFI速率最大的工作模式。
  20. 根据权利要求18所述的方法,其特征在于,所述第一工作模式是基于分时模式和/或并行模式对应的WIFI速率确定的,包括:在分时模式对应的第一WIFI速率小于预设速率,且所述并行模式对应的第二WIFI速率大于所述第一WIFI速率的情况下,所述第一工作模式为所述并行模式;或者,
    在所述分时模式对应的第一WIFI速率大于或者等于所述预设速率的情况下,所述第一工作模式为所述分时模式。
  21. 根据权利要求20所述的方法,其特征在于,所述并行模式包括第一并行模式以及第二并行模式,所述第一并行模式在采用并行模式进行蓝牙通信和WIFI通信时,所述WIFI通信对应的工作带宽为第一工作带宽;所述第二并行模式在采用并行模式进行蓝牙通信和WIFI通信时,所述WIFI通信对应的工作带宽为第二工作带宽;所述第一工作带宽与所述第二工作带宽不同;
    所述第一工作模式为所述并行模式,包括:所述第一工作模式是所述第一并行模式和所述第二并行模式中的WIFI速率最大的工作模式。
  22. 根据权利要求18所述的方法,其特征在于,所述第一工作模式是基于分时模式和/或并行模式对应的WIFI速率确定的,包括:在所述分时模式对应的第一WIFI速率小于预设速率,且所述并行模式对应的第二WIFI速率大于预设速率的情况下,所述第一工作模式是所述并行模式;或者,
    在所述分时模式对应的第一WIFI速率小于所述预设速率,且所述并行模式对应的第二WIFI速率小于所述预设速率的情况下,所述第一工作模式是所述分时模式和所述并行模式中的WIFI速率最大的工作模式。
  23. 根据权利要求14或15所述的方法,其特征在于,所述方法还包括:
    在所述电子设备采用所述第一天线进行WIFI通信,采用所述第二天线进行蓝牙通信后,所述电子设备确定第二通信指标阈值;所述第二通信指标阈值用于判断所述电子设备是否满足第三预设条件,所述第二通信指标阈值包括第二WIFI接收信号强度阈值;
    所述电子设备在所述最新通信指标满足所述第三预设条件的情况下,采用所述第一天线进行蓝牙通信和WIFI通信;其中,所述第三预设条件包括所述WIFI接收信号强度小于所述第二WIFI接收信号强度阈值。
  24. 根据权利要求23所述的方法,其特征在于,所述第二通信指标阈值还包括第二蓝牙发射功率阈值、第二WIFI误码率阈值、第二蓝牙接收信号强度阈值、第二蓝牙误码率阈值、第二WIFI发射功率阈值、第二WIFI信噪比阈值和第二蓝牙信噪比阈值中的至少一个;
    所述第三预设条件还包括:蓝牙发射功率小于所述第二蓝牙发射功率阈值、蓝牙接收信号强度小于所述第二蓝牙接收信号强度阈值、蓝牙误码率大于所述第二蓝牙误码率阈值、WIFI发射功率小于所述第二WIFI发射功率阈值、WIFI信噪比大于所述第 二WIFI信噪比阈值、WIFI误码率大于所述第二WIFI误码率阈值以及蓝牙信噪比大于所述第二蓝牙信噪比阈值中的至少一个。
PCT/CN2023/134455 2023-02-23 2023-11-27 一种通信方法及电子设备 Ceased WO2024174635A1 (zh)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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模组

Patent Citations (8)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
See also references of EP4648299A1

Cited By (2)

* Cited by examiner, † Cited by third party
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