WO2024037025A1 - 无线通信电路、蓝牙通信切换方法和电子设备 - Google Patents

无线通信电路、蓝牙通信切换方法和电子设备 Download PDF

Info

Publication number
WO2024037025A1
WO2024037025A1 PCT/CN2023/090369 CN2023090369W WO2024037025A1 WO 2024037025 A1 WO2024037025 A1 WO 2024037025A1 CN 2023090369 W CN2023090369 W CN 2023090369W WO 2024037025 A1 WO2024037025 A1 WO 2024037025A1
Authority
WO
WIPO (PCT)
Prior art keywords
fem
mipi
communication
command
modem
Prior art date
Application number
PCT/CN2023/090369
Other languages
English (en)
French (fr)
Inventor
金杰
王东
闵书阳
熊亦昂
肖驰洋
Original Assignee
荣耀终端有限公司
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 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Publication of WO2024037025A1 publication Critical patent/WO2024037025A1/zh

Links

Classifications

    • 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
    • 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 communication, and in particular, to a wireless communication circuit, a Bluetooth communication switching method and an electronic device.
  • Bluetooth (BT) and wireless fidelity (Wi-Fi) share antennas in a time-sharing manner.
  • Wi-Fi wireless fidelity
  • Embodiments of the present application provide a wireless communication circuit, a Bluetooth communication switching method and an electronic device for improving the communication quality of Bluetooth communication.
  • a wireless communication circuit including: a processor, a switching circuit, a modem (modulator demodulator, MDM), a first (front-end modules, FEM) and a second FEM; the processor is coupled to the switching circuit, A modem and a first FEM, the modem is coupled to a second FEM through a switching circuit, the first FEM supports wireless fidelity Wi-Fi communication or Bluetooth communication, and the second FEM supports cellular communication or Bluetooth communication.
  • the processor is configured to: obtain communication status information of the first FEM, where the communication status information is used to indicate whether the first FEM performs Wi-Fi communication. If the communication status information indicates that the first FEM performs Wi-Fi communication, a first control command is sent to the switching circuit.
  • the first control command is used to control the switching circuit to detect whether the modem sends a mobile industry processor interface (mobile industry processor) to the second FEM. interface, MIPI) command, if the modem does not send the MIPI command to the second FEM, control the second FEM to perform Bluetooth communication; if the communication status information indicates that the first FEM does not perform Wi-Fi communication, send the second control command to the switching circuit , the second control command is used to control the switching circuit to detect whether the modem sends a MIPI command to the second FEM. If the modem does not send a MIPI command to the second FEM, the modem is directly connected to the second FEM, so that the modem controls the second FEM for cellular communication. .
  • MIPI mobile industry processor interface
  • the first FEM supports wireless fidelity Wi-Fi communication or Bluetooth communication.
  • the first FEM controls the The second FEM performs Bluetooth communication, thereby switching part or all of the Bluetooth communication of the first FEM to the relatively idle second FEM, preventing the time-sharing multiplexing of Wi-Fi communication and Bluetooth communication from occupying Bluetooth communication resources, and improving the communication efficiency of Bluetooth communication. quality.
  • the switching circuit includes a controller, a MIPI slave module, a MIPI master module and a bypass strobe circuit; the controller is coupled to the modem through the MIPI slave module and the bypass strobe circuit, and the controller also passes through the MIPI slave module and the bypass strobe circuit.
  • the master module and the bypass strobe circuit are coupled to the second FEM; the MIPI slave module is used to convert MIPI commands from the modem from the MIPI bus format to the on-chip bus format and send them to the controller; the MIPI master module uses For converting the MIPI command from the controller from the on-chip bus format to the MIPI bus format and sending it to the second FEM through the bypass strobe circuit; the controller is used to: if the first control command is received, control the bypass strobe circuit to The MIPI slave module is connected to the modem and the MIPI master module is connected to the second FEM. The MIPI slave module detects whether the modem sends MIPI commands to the second FEM.
  • the controller is also used to: if the second control command is received, detect whether the modem sends a signal to the second FEM through the MIPI slave module MIPI command, if the modem does not send the MIPI command to the second FEM, the bypass strobe circuit is controlled to pass the modem through the second FEM, and sends the second MIPI command to the second FEM through the MIPI main module.
  • the second MIPI command is used to The second FEM is instructed to conduct cellular communications.
  • This embodiment discloses a possible implementation of how the switching circuit is implemented.
  • the controller is further configured to: after sending the first MIPI command to the second FEM through the MIPI master module, receive and cache the MIPI command from the MDM through the MIPI slave module; and after sending the first MIPI command to the second FEM through the MIPI master module.
  • the second FEM sends the second MIPI command, it sends the cached MIPI command from the modem to the second FEM through the MIPI main module.
  • This implementation keeps the control logic between the modem and the second FEM consistent before and after the switch.
  • the processor is specifically configured to: if the communication status information indicates that the first FEM performs Wi-Fi communication, send a first control command to the switching circuit after a preset time.
  • This implementation can prevent Bluetooth communication from frequently switching between the first FEM and the second FEM.
  • the advantage of this solution is that the judgment conditions are simple and frequent switching does not occur from beginning to end.
  • the processor is specifically configured to: if the communication status information indicates that the first FEM is performing Wi-Fi communication, and the first FEM is performing Wi-Fi communication or not performing Wi-Fi communication within the first preset time, -The number of switching times between Fi communications is less than the number threshold, then the first control command is sent to the switching circuit.
  • This implementation method can prevent Bluetooth communication from frequently switching between the first FEM and the second FEM.
  • the advantages of this solution are that detection is faster, the state can be switched as soon as possible after connecting to Wi-Fi, and the experience is better.
  • the processor is further configured to: if the number of times the first FEM switches between performing Wi-Fi communication and not performing Wi-Fi communication within the first preset time is greater than or equal to a number threshold, then The communication status information of the first FEM is obtained after the second preset time.
  • This implementation method can avoid never switching the state, and the state can be switched normally when the Wi-Fi connection is stable.
  • a Bluetooth communication switching method including: obtaining communication status information of a first FEM, where the first FEM supports wireless fidelity Wi-Fi communication or Bluetooth communication, and the communication status information is used to indicate whether the first FEM is performing Wi-Fi communication; if the communication status information indicates that the first FEM performs Wi-Fi communication, the first control command is sent to the switching circuit.
  • the first control command is used to control the switching circuit to detect whether the modem sends a mobile industry processor to the second FEM.
  • Interface MIPI command if the modem does not send the MIPI command to the second FEM, control the second FEM to perform Bluetooth communication, and the second FEM supports cellular communication or Bluetooth communication; if the communication status information indicates that the first FEM does not perform Wi-Fi communication, then Send a second control command to the switching circuit.
  • the second control command is used to control the switching circuit to detect whether the modem sends a MIPI command to the second FEM. If the modem does not send a MIPI command to the second FEM, the modem is directly connected to the second FEM, so that The modem controls the second FEM for cellular communications.
  • the method further includes: if the first control command is received, controlling the bypass strobe circuit to connect the MIPI slave module to the modem and the MIPI main module to the second FEM, through the MIPI slave module.
  • the module detects whether the modem sends a MIPI command to the second FEM. If the modem does not send a MIPI command to the second FEM, it sends the first MIPI command to the second FEM through the MIPI main module.
  • the first MIPI command is used to instruct the second FEM to perform Bluetooth Communication; if the second control command is received, the MIPI slave module detects whether the modem sends a MIPI command to the second FEM.
  • the bypass strobe circuit is controlled to pass the modem through to the second FEM. , and sends a second MIPI command to the second FEM through the MIPI main module, where the second MIPI command is used to instruct the second FEM to perform cellular communication.
  • the method further includes: after sending the first MIPI command to the second FEM through the MIPI master module, receiving and buffering the MIPI command from the MDM through the MIPI slave module; and sending the MIPI command to the second FEM through the MIPI master module.
  • the FEM sends the second MIPI command, it sends the cached MIPI command from the MDM to the second FEM through the MIPI main module.
  • sending the first control command to the switching circuit includes: if the communication status information indicates that the first FEM performs Wi-Fi communication, then After the preset time, the first control command is sent to the switching circuit.
  • sending the first control command to the switching circuit includes: if the communication status information indicates that the first FEM performs Wi-Fi communication, and Within the first preset time, if the number of times the first FEM switches between performing Wi-Fi communication and not performing Wi-Fi communication is less than the number threshold, the first FEM sends a first control command to the switching circuit.
  • the method further includes: if the number of times the first FEM switches between performing Wi-Fi communication and not performing Wi-Fi communication within the first preset time is greater than or equal to a number threshold, then The communication status information of the first FEM is obtained after the second preset time.
  • an electronic device including the wireless communication circuit as in the first aspect and any of its embodiments, or including a processor and a memory, and instructions are stored in the memory.
  • the processor executes the instructions, as in the second aspect, an electronic device is provided. The method described in any aspect and any embodiment thereof is performed.
  • a computer-readable storage medium including instructions that, when executed on an electronic device, cause the electronic device to perform the method described in the second aspect and any of its implementations.
  • a computer program product containing instructions is provided.
  • the electronic device is caused to execute the method described in the second aspect and any of its implementation modes.
  • a chip system in a sixth aspect, includes a processor and is used to support an electronic device to implement the functions involved in the above second aspect.
  • the device further includes an interface circuit, which can be used to receive signals from other devices (such as a memory) or to send signals to other devices (such as a communication interface).
  • the chip system may include chips and may also include other discrete devices.
  • Figure 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • Figure 2 is a schematic structural diagram of another electronic device provided by an embodiment of the present application.
  • Figure 3 is a schematic structural diagram of a wireless communication circuit provided by an embodiment of the present application.
  • Figure 4 is a schematic flow chart of a Bluetooth communication switching method provided by an embodiment of the present application.
  • FIG. 5 is a schematic flow chart of another Bluetooth communication switching method provided by an embodiment of the present application.
  • Figure 6 is a schematic diagram of a display interface provided by an embodiment of the present application.
  • Figure 7 is a schematic diagram of another display interface provided by an embodiment of the present application.
  • Figure 8 is a schematic diagram of another display interface provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a chip system provided by an embodiment of the present application.
  • Coupled and “connection” involved in the embodiments of this application should be understood in a broad sense. For example, they may refer to a physical direct connection, or they may refer to an indirect connection realized through electronic devices, such as resistance, inductance, capacitance or other electronic devices.
  • the connection implemented by the device.
  • the embodiment of the present application provides an electronic device.
  • the electronic device may be a device with a display function.
  • the electronic device may be mobile or fixed. Electronic devices can be deployed on land (such as indoor or outdoor, handheld or vehicle-mounted, etc.), on water (such as ships, etc.), or in the air (such as aircraft, balloons, satellites, etc.).
  • the electronic equipment may be called user equipment (UE), access terminal, terminal unit, subscriber unit, terminal station, mobile station (MS), mobile station, terminal agent or terminal device, etc. .
  • the electronic device can be a mobile phone, a tablet, a laptop, a smart bracelet, a smart watch, a headset, a smart speaker, a virtual reality (VR) device, an augmented reality (AR) device, an industrial control ( Terminals in industrial control, terminals in self-driving, terminals in remote medical, terminals in smart grid, terminals in transportation safety, smart cities Terminals in (smart city), terminals in smart homes (smart home), etc.
  • VR virtual reality
  • AR augmented reality
  • an industrial control Terminals in industrial control, terminals in self-driving, terminals in remote medical, terminals in smart grid, terminals in transportation safety, smart cities Terminals in (smart city), terminals in smart homes (smart home), etc.
  • the embodiments of the present application do not limit the specific type and structure of the electronic device. A possible structure of the electronic device is described below.
  • FIG. 1 shows a possible structure of the electronic device 101 .
  • the electronic device 101 may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a power management module 240, a battery 241, a wireless charging coil 242, an antenna 1, an antenna 2.
  • Mobile communication module 250 wireless communication module 260, audio module 270, speaker 270A, receiver 270B, microphone 270C, headphone interface 270D, sensor module 280, button 290, motor 291, indicator 292, camera 293, display screen 294 and Subscriber identification module (SIM) card interface 295, etc.
  • SIM Subscriber identification module
  • the sensor module 280 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, and a touch sensor. Sensors, ambient light sensors, bone conduction sensors, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 101.
  • the electronic device 101 may include more or less components than shown in the figures, or combine some components, or split some components, or arrange different components.
  • the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 210 may include one or more processing units.
  • the processor 210 may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or a system on a chip (system on chip).
  • SoC central processing unit
  • CPU central processing unit
  • application processor application processor
  • AP application processor
  • network processor network processor
  • NP digital signal processor
  • DSP digital signal processor
  • microcontroller Unit micro controller unit, MCU
  • PLD programmable logic device
  • modem processor graphics processing unit (GPU), image signal processor (image signal processor, ISP), Controller, video codec, baseband processor and neural network processing unit (NPU), etc.
  • different processing units can be independent devices or integrated in one or more processors.
  • processor 210 may be an application processor AP.
  • the above-mentioned processor 210 can be integrated in a system on chip (SoC).
  • SoC system on chip
  • the above-mentioned processor 210 may be integrated in an integrated circuit (IC) chip.
  • the processor 210 may include an analog front end (AFE) and a micro-controller unit (MCU) in an IC chip.
  • AFE analog front end
  • MCU micro-controller unit
  • the controller may be the nerve center and command center of the electronic device 101 .
  • the controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • the processor 210 may also be provided with a memory for storing instructions and data.
  • the memory in processor 210 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 210 . If the processor 210 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 210 is reduced, thus improving the efficiency of the system.
  • processor 210 may include one or more interfaces.
  • Interfaces can include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, pulse code modulation (pulse code modulation, PCM) interface, universal asynchronous receiver and transmitter (universal asynchronous receiver/transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface and/ Or USB interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous receiver and transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • SIM subscriber identity module
  • the interface connection relationships between the modules illustrated in the embodiment of the present invention are only schematic illustrations and do not constitute a structural limitation on the electronic device 101.
  • the electronic device 101 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the power management module 240 is used to receive charging input from the charger.
  • the charger may be a wireless charger (such as a wireless charging base of the electronic device 101 or other devices that can wirelessly charge the electronic device 101), or a wired charger.
  • the power management module 240 may receive charging input from a wired charger through the USB interface 230 .
  • the power management module 240 may receive wireless charging input through the wireless charging coil 242 of the electronic device.
  • the power management module 240 can also provide power for electronic devices while charging the battery 241 .
  • power supply The management module 240 receives input from the battery 241 and supplies power to the processor 210, internal memory 221, external memory interface 220, display screen 294, camera 293, wireless communication module 260, etc.
  • the power management module 240 can also be used to monitor the battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters of the battery 241.
  • the power management module 240 may also be provided in the processor 210 .
  • the wireless communication function of the electronic device 101 can be implemented through the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modem processor and the baseband processor.
  • the electronic device 101 implements display functions through a GPU, a display screen 294, an application processor, and the like.
  • the GPU is an image processing microprocessor and is connected to the display screen 294 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 210 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the display screen 294 is used to display images, videos, etc.
  • Display 294 includes a display panel and a touch screen.
  • the electronic device 101 may include 1 or N display screens 294, where N is a positive integer greater than 1.
  • the electronic device 101 can implement the shooting function through an ISP, a camera 293, a video codec, a GPU, a display screen 294, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 293.
  • the ISP may be provided in the camera 293.
  • Camera 293 is used to capture still images or video.
  • the electronic device 101 may include 1 or N cameras 293, where N is a positive integer greater than 1.
  • the external memory interface 220 can be used to connect an external memory card, such as a micro SanDisk (Micro SD) card, to expand the storage capacity of the electronic device 101.
  • the external memory card communicates with the processor 210 through the external memory interface 220 to implement the data storage function. Such as saving music, videos, etc. files in external memory card.
  • Internal memory 221 may be used to store computer executable program code, which includes instructions.
  • the processor 210 executes instructions stored in the internal memory 221 to execute various functional applications and data processing of the electronic device 101 .
  • the internal memory 221 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
  • non-volatile memory may be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically removable memory. Erase electrically programmable read-only memory (EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (RAM), which is used as an external cache.
  • RAM random access memory
  • RAM static random access memory
  • DRAM dynamic random access memory
  • SDRAM synchronous dynamic random access memory
  • double data rate SDRAM double data rate SDRAM
  • DDR SDRAM double data rate SDRAM
  • ESDRAM enhanced synchronous dynamic random access memory
  • SLDRAM synchronous link dynamic random access memory
  • direct rambus RAM direct rambus RAM
  • the electronic device 101 can implement audio functions through the audio module 270, the speaker 270A, the receiver 270B, the microphone 270C, the headphone interface 270D, and the application processor. Such as music playback, recording, etc.
  • the audio module 270 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 audio module 270 may be provided in the processor 210 , or some functional modules of the audio module 270 may be provided in the processor 210 .
  • Speaker 270A also called “speaker” is used to convert audio electrical signals into sound signals.
  • Receiver 270B also called “earpiece”, is used to convert audio electrical signals into sound signals.
  • Microphone 270C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the electronic device 101 may be provided with at least one microphone 270C.
  • the headphone interface 270D is used to connect wired headphones.
  • the headphone interface 270D can be a USB interface 230, or a 3.5mm 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
  • the buttons 290 include a power button, a volume button, etc.
  • Key 290 may be a mechanical key. It can also be a touch button.
  • the electronic device 101 may receive key input and generate key signal input related to user settings and function control of the electronic device 101 .
  • the motor 291 can generate vibration prompts.
  • the motor 291 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback.
  • the indicator 292 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.
  • the SIM card interface 295 is used to connect a SIM card.
  • the SIM card can be connected to or separated from the electronic device 101 by inserting it into the SIM card interface 295 or pulling it out from the SIM card interface 295 .
  • the electronic device 101 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 295 can support SIN (Nano SIM) cards, micro SIM (Micro SIM) cards, SIM cards, etc.
  • the electronic device 101 uses an embedded SIM (eSIM) card.
  • the eSIM card can be embedded in the electronic device 101 and cannot be separated from the electronic device 101.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 101 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
  • the mobile communication module 250 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the electronic device 101 .
  • the wireless communication module 260 can provide applications on the electronic device 101 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), and global navigation satellites. Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR), etc.
  • WLAN wireless local area networks
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • infrared technology infrared, IR
  • the antenna 1 of the electronic device 101 is coupled to the mobile communication module 250, and the antenna 2 is coupled to the wireless communication module 260, so that the electronic device 101 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication module 260 includes a first FEM 261
  • the mobile communication module 250 includes an MDM 251 and a second FEM 252 .
  • the first FEM 261 and the second FEM 252 are used to amplify the transmitted or received radio frequency signal.
  • the MDM 251 is used to modulate the baseband signal with a digital signal to generate a radio frequency signal, and demodulate the radio frequency signal to obtain a digital signal.
  • the second FEM 252 realizes the transmission of radio frequency signals of mobile communication (ie, cellular communication), and the first FEM 261 realizes the time-sharing transmission of radio frequency signals of Wi-Fi and Bluetooth.
  • Wi-Fi When a user enters the room from the outside and the electronic device communicates through Wi-Fi, the amount of data transmitted by the electronic device through Wi-Fi is larger, while the amount of data transmitted through cellular communication is smaller. Since Wi-Fi and Bluetooth share the FEM and Antenna, therefore will reduce the communication rate of Bluetooth, thus affecting the quality of Bluetooth communication. For example, the call quality of Bluetooth headsets will decrease, Bluetooth transmission data rate is reduced, etc.
  • embodiments of the present application provide a wireless communication circuit applied to the above-mentioned electronic device, which uses Bluetooth to occupy the FEM and antenna of cellular communication to reduce or prevent the impact on the communication rate of Bluetooth.
  • the wireless communication circuit includes a processor 31, a switching circuit 32, an MDM 33, a first FEM 34 and a second FEM 35.
  • the switching circuit 32 includes: a serial peripheral interface (SPI) module 321, a controller 322, a mobile industry processor interface (MIPI) slave module 323, a MIPI master module 324, a bypass ( bypass) strobe circuit 325.
  • the processor 31 is coupled to the switching circuit 32, the MDM 33 and the first FEM 34, wherein the processor 31 is coupled to the controller 322 through the SPI module 321 in the switching circuit 32.
  • the MDM 33 is coupled to the second FEM 35 through the switching circuit 32, and the MIPI bus is used for communication between the MDM 33, the switching circuit 32 and the second FEM 35.
  • the first FEM 34 and the second FEM 35 are used to amplify the transmitted or received radio frequency signal.
  • the first FEM 34 can support time-sharing multiplexing of Wi-Fi communication or Bluetooth communication
  • the second FEM 35 can support cellular communication or Bluetooth communication.
  • the MDM 33 is used to send MIPI commands to the second FEM 35 to control the second FEM 35 for cellular communication.
  • the MDM 33 is also used to modulate the baseband signal with a digital signal to generate a radio frequency signal and transmit it through the second FEM 35.
  • the radio frequency signal received by the second FEM 35 is demodulated to obtain a digital signal, and the MDM 33 is also used to send the communication status information of the second FEM 35 to the processor 31.
  • the SPI module 321 is used to implement serial communication between the processor 31 and the controller 322 .
  • the bypass strobe circuit 325 is controlled by the controller 322 to directly connect the MDM 33 to the second FEM 35 (the path shown by the dotted arrow in the figure), or to connect the MDM 33 to the controller 322 through the MIPI slave module 323, and The controller 322 is connected to the second FEM 35 through the MIPI main module 324 (the path shown by the solid arrow in the figure).
  • the bypass strobe circuit 325 can be implemented through analog circuits such as complementary metal oxide semiconductor (CMOS), or it can be implemented through Verilog register transfer level (RTL) code. The specific implementation method is not specified. limited.
  • the MIPI slave module 323 and the MDM 33 are connected by a MIPI bus, and the MIPI slave module 323 and the controller 322 are connected by an on-chip bus (such as an advanced high performance bus (AHB) bus).
  • the MIPI slave module 323 is used to convert the MIPI command from the MDM 33 (such as the first MIPI command mentioned below) from the MIPI bus format to the on-chip bus format and send it to the controller 322.
  • the MIPI main module 324 and the second FEM 35 are connected by a MIPI bus, and the MIPI main module 324 and the controller 322 are connected by an on-chip bus.
  • the MIPI main module 324 is used to convert the MIPI command from the controller 322 (such as the second MIPI command mentioned later) from the on-chip bus format to the MIPI bus format and send it to the second FEM 35.
  • the processor 31 can obtain the communication status information of the first FEM 34, such as whether to perform Wi-Fi communication (or perform Wi-Fi communication or Bluetooth communication), and the processor 31 can also obtain the communication status information of the second FEM 35, For example, whether to perform cellular communication, the processor 31 can also send the first control command or the second control command to the controller 322 in the switching circuit 32 through the SPI module 321 according to the communication status information of the first FEM 34 (see the following description for details). ) to control the second FEM 35 to switch between the cellular communication state and the Bluetooth communication state through the switching circuit 32.
  • the communication status information of the first FEM 34 such as whether to perform Wi-Fi communication (or perform Wi-Fi communication or Bluetooth communication
  • the processor 31 can also send the first control command or the second control command to the controller 322 in the switching circuit 32 through the SPI module 321 according to the communication status information of the first FEM 34 (see the following description for details). ) to control the second FEM 35 to switch between the cellular communication state and the Bluetooth communication state through the switching
  • the controller 322 is configured to control the bypass strobe according to the first control command or the second control command from the processor 31 Circuit 325 switches between bypass mode and non-bypass mode.
  • the above-mentioned wireless communication circuit can perform the Bluetooth communication switching method involved in this application. As shown in Figure 4, the method includes:
  • the processor 31 obtains the communication status information of the first FEM 34.
  • the communication status information of the first FEM 34 is used to indicate whether the first FEM 34 performs Wi-Fi communication, or in other words, the communication status information of the first FEM 34 is used to indicate the first FEM 34 to perform Wi-Fi communication or Bluetooth communication.
  • the processor 31 sends a first control command to the controller 322 in the switching circuit 32.
  • the first control command is used to control the switching circuit 32 to detect whether the MDM 33 sends a MIPI command to the second FEM 35. If the MDM 33 does not send a MIPI command to the second FEM 35, the switching circuit 32 controls the second FEM 35 to perform Bluetooth communication.
  • the controller 322 in the switching circuit 32 receives the first control command from the processor 31, the controller 322 configures the mode switching register to be non-bypass. mode, and controls the bypass strobe circuit 325 to switch to the non-bypass mode.
  • the controller 322 controls the bypass gating circuit 325 to connect the MIPI slave module 323 to the MDM 251 and connects the MIPI main module 324 to the second FEM 35.
  • the controller 322 detects whether the MDM 251 passes through the MIPI slave module 323 to the second FEM. 35 Send MIPI command.
  • the controller 322 sends the first MIPI command to the second FEM 35 through the MIPI main module 324. If it is detected that the MDM 251 sends a MIPI command to the second FEM 35 35 sends a MIPI command and continues to wait for the MIPI bus to be idle.
  • the detected MIPI command from the MDM 251 can be any MIPI command, and the first MIPI command is used to instruct the second FEM 35 to perform Bluetooth communication.
  • the controller 322 switches the second FEM 35 from the cellular communication state to the Bluetooth communication state to avoid competing with the MDM 251 for the MIPI bus, thereby causing transmission errors.
  • the controller 322 After the controller 322 sends the first MIPI command to the second FEM 35 through the MIPI master module 324 to instruct the second FEM 35 to perform Bluetooth communication, the controller 322 continues to receive and cache the MIPI command from the MDM 251 through the MIPI slave module 323, and waits for When the subsequent controller 322 controls the second FEM 35 to switch back to the Bluetooth communication state, the cached MIPI command from the MDM 251 is sent to the second FEM 35 through the MIPI main module 324, so that the control logic between the MDM 251 and the second FEM 35 Be consistent before and after the switch.
  • the processor 31 can perform Wi-Fi communication according to the time of the first FEM 34. Determine whether to switch Bluetooth communication; alternatively, the processor 31 can determine whether to switch Bluetooth communication based on the number of times the first FEM 34 switches between performing Wi-Fi communication and not performing Wi-Fi communication within a preset time.
  • the processor 31 sends a signal to the switch in the switching circuit 32
  • the controller 322 sends the first control command. That is, after the electronic device stably accesses the Wi-Fi connection for a preset time, the processor 31 sends the first control command to the controller 322 in the switching circuit 32.
  • the processor 31 sends a first control command to the controller 322 in the switching circuit 32 . If the number of times the first FEM 34 switches between performing Wi-Fi communication and not performing Wi-Fi communication within the first preset time is greater than or equal to the number threshold, the processor 31 switches within the second preset time (for example, five minutes).
  • the communication status information is obtained from the first FEM 34, and then it is re-judged whether to send the first control command.
  • the advantage of this solution is that the detection is faster, the state can be switched as soon as possible after connecting to Wi-Fi, and the experience is better.
  • the processor 31 can switch all or part of the Bluetooth communication from the first FEM 34 to the second FEM 35 at this time to improve the Bluetooth communication quality.
  • the improvement of Bluetooth communication quality can be prompted by the change of the Bluetooth icon in the status bar of the electronic device from A to B, or by the change of the Bluetooth icon in the drop-down menu from C to D. changes to prompt this improvement in Bluetooth communication quality, where A and C represent ordinary Bluetooth communication functions, and B and D represent enhanced Bluetooth communication functions.
  • the Bluetooth enhanced function switch can perform the Bluetooth communication switching method of the present application, and can display different Bluetooth devices connected through different antennas. ;
  • the Bluetooth enhanced function switch is turned off, the electronic device does not execute the Bluetooth communication switching method of the present application.
  • the processor 31 sends a second control to the controller 322 in the switching circuit 32 Order.
  • the second control command is used to control the switching circuit 32 to detect whether the MDM 33 sends a MIPI command to the second FEM 35. If the MDM 33 does not send a MIPI command to the second FEM 35, the switching circuit 32 connects the MDM 33 to the second FEM 35. The MDM 33 is caused to control the second FEM 35 for cellular communications.
  • the controller 322 in the switching circuit 32 receives the second control command from the processor 31, the controller 322 configures the mode switching register as bypass mode, and controls the bypass strobe circuit 325 to switch to the bypass mode. At this time, the controller 322 detects whether the MDM 251 sends a MIPI command to the second FEM 35 through the MIPI slave module 323.
  • the controller 322 controls the bypass strobe circuit 325 to directly connect the MDM 251 to the second FEM 35, and sends the MIPI command to the second FEM 35 through the MIPI main module 324.
  • the FEM 35 sends a second MIPI command, and the second MIPI command is used to instruct the second FEM 35 to perform cellular communication.
  • the MDM 251 is enabled to control the second FEM 35 for cellular communication. If it is detected that the MDM 251 sends a MIPI command to the second FEM 35, it continues to wait for the MIPI bus to be idle.
  • the controller 322 switches the second FEM 35 from the Bluetooth communication state to the cellular communication state to avoid competing with the MDM 251 for the MIPI bus, thereby causing transmission errors.
  • the controller 322 After the controller 322 sends the second MIPI command to the second FEM 35 through the MIPI main module 324 to instruct the second FEM 35 to perform cellular communication, it also sends the previously cached data from the MDM 251 to the second FEM 35 through the MIPI main module 324. MIPI commands make the control logic between the MDM 251 and the second FEM 35 consistent before and after switching.
  • the first FEM supports wireless fidelity Wi-Fi communication or Bluetooth communication.
  • the MDM does not
  • the second FEM controls the second FEM to perform Bluetooth communication, thereby switching part or all of the first FEM's Bluetooth communication to the relatively idle second FEM to avoid time-sharing multiplexing of Wi-Fi communication and Bluetooth communication.
  • Bluetooth communication resources to improve the communication quality of Bluetooth communication.
  • an embodiment of the present application also provides a chip system.
  • the chip system 60 includes at least one processor 601 and at least one interface circuit 602 .
  • At least one processor 601 and at least one interface circuit 602 may be interconnected by wires.
  • the processor 601 is used to support the electronic device to implement various steps in the above method embodiments, such as the methods shown in Figure 4 and Figure 5.
  • At least one interface circuit 602 can be used to receive signals from other devices (such as memory), or to other devices.
  • a device (such as a communication interface) sends a signal.
  • the chip system may include chips and may also include other discrete devices.
  • Embodiments of the present application also provide a computer-readable storage medium.
  • the computer-readable storage medium includes instructions.
  • the electronic device When the instructions are run on the above-mentioned electronic device, the electronic device causes the electronic device to perform various steps in the above-mentioned method embodiments, such as executing the steps shown in FIG. 4. The method shown in Figure 5.
  • Embodiments of the present application also provide a computer program product including instructions.
  • the electronic device When the instructions are run on the above-mentioned electronic device, the electronic device causes the electronic device to execute various steps in the above-mentioned method embodiments, such as executing the methods shown in Figures 4 and 5. .
  • the size of the sequence numbers of the above-mentioned processes does not mean the order of execution.
  • the execution order of each process should be determined by its functions and internal logic, and should not be used in the embodiments of the present application.
  • the implementation process constitutes any limitation.
  • the disclosed systems, devices and methods can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of modules is only a logical function division. In actual implementation, there may be other division methods.
  • multiple modules or components may be combined or integrated. to another device, or some features may be ignored, or not performed.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or modules, which may be in electrical, mechanical or other forms.
  • modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located on one device, or they may be distributed to multiple devices. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional module in each embodiment of the present application can be integrated in one device, or each module can exist physically alone, or two or more modules can be integrated in one device.
  • the above embodiments it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • a software program it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions.
  • computer program instructions When computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part.
  • 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 or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium can be any available medium that can be accessed by a computer or include one or more data storage devices such as servers and data centers that can be integrated with the medium.
  • the available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请公开了一种无线通信电路、蓝牙通信切换方法和电子设备,涉及通信领域。无线通信电路包括:处理器、切换电路、调制解调器、第一FEM和第二FEM;第一FEM支持无线保真Wi-Fi通信或蓝牙通信,第二FEM支持蜂窝通信或蓝牙通信;处理器用于:获取第一FEM是否进行Wi-Fi通信;如果第一FEM进行Wi-Fi通信,则向切换电路发送第一控制命令,用于控制切换电路检测调制解调器是否向第二FEM发送移动产业处理器接口MIPI命令,如果调制解调器未向第二FEM发送MIPI命令,则控制第二FEM进行蓝牙通信。

Description

无线通信电路、蓝牙通信切换方法和电子设备
本申请要求于2022年8月18日提交国家知识产权局、申请号为202210993102.2、发明名称为“无线通信电路、蓝牙通信切换方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信领域,尤其涉及一种无线通信电路、蓝牙通信切换方法和电子设备。
背景技术
现有的手机等电子设备中,蓝牙(bluetooth,BT)与无线保真(wireless fidelity,Wi-Fi)是分时共用天线的,当Wi-Fi传输的数据量较大时,会降低蓝牙的通信速率,从而影响蓝牙的通信质量。
发明内容
本申请实施例提供一种无线通信电路、蓝牙通信切换方法和电子设备,用于提高蓝牙通信的通信质量。
为达到上述目的,本申请的实施例采用如下技术方案:
第一方面,提供了一种无线通信电路,包括:处理器、切换电路、调制解调器(modulator demodulator,MDM)、第一(front-end modules,FEM)和第二FEM;处理器耦合至切换电路、调制解调器和第一FEM,调制解调器通过切换电路耦合至第二FEM,第一FEM支持无线保真Wi-Fi通信或蓝牙通信,第二FEM支持蜂窝通信或蓝牙通信。处理器用于:获取第一FEM的通信状态信息,通信状态信息用于指示第一FEM是否进行Wi-Fi通信。如果通信状态信息指示第一FEM进行Wi-Fi通信,则向切换电路发送第一控制命令,第一控制命令用于控制切换电路检测调制解调器是否向第二FEM发送移动产业处理器接口(mobile industry processor interface,MIPI)命令,如果调制解调器未向第二FEM发送MIPI命令,则控制第二FEM进行蓝牙通信;如果通信状态信息指示第一FEM未进行Wi-Fi通信,则向切换电路发送第二控制命令,第二控制命令用于控制切换电路检测调制解调器是否向第二FEM发送MIPI命令,如果调制解调器未向第二FEM发送MIPI命令,则将调制解调器与第二FEM直通,使得调制解调器控制第二FEM进行蜂窝通信。
本申请实施例提供的无线通信电路,第一FEM支持无线保真Wi-Fi通信或蓝牙通信,当第一FEM进行Wi-Fi通信,并且,MDM未向第二FEM发送MIPI命令时,控制第二FEM进行蓝牙通信,从而将第一FEM的部分或全部蓝牙通信切换至较为空闲的第二FEM,避免Wi-Fi通信和蓝牙通信的分时复用挤占蓝牙通信的资源,提高蓝牙通信的通信质量。
在一种可能的实施方式中,切换电路包括控制器、MIPI从模块、MIPI主模块和旁路选通电路;控制器通过MIPI从模块和旁路选通电路耦合至调制解调器,控制器还通过MIPI主模块和旁路选通电路耦合至第二FEM;MIPI从模块用于将来自调制解调器的MIPI命令从MIPI总线格式转换为片上总线格式并发送给控制器;MIPI主模块用 于将来自控制器的MIPI命令从片上总线格式转换为MIPI总线格式并通过旁路选通电路发送给第二FEM;控制器用于:如果接收到第一控制命令,则控制旁路选通电路将MIPI从模块与调制解调器导通并将MIPI主模块与第二FEM导通,通过MIPI从模块检测调制解调器是否向第二FEM发送MIPI命令,如果调制解调器未向第二FEM发送MIPI命令,则通过MIPI主模块向第二FEM发送第一MIPI命令,第一MIPI命令用于指示第二FEM进行蓝牙通信;控制器还用于:如果接收到第二控制命令,通过MIPI从模块检测调制解调器是否向第二FEM发送MIPI命令,如果调制解调器未向第二FEM发送MIPI命令,则控制旁路选通电路将调制解调器与第二FEM直通,并通过MIPI主模块向第二FEM发送第二MIPI命令,第二MIPI命令用于指示第二FEM进行蜂窝通信。
该实施方式公开了切换电路如何实现的一种可能实施方式。
在一种可能的实施方式中,控制器还用于:在通过MIPI主模块向第二FEM发送第一MIPI命令之后,通过MIPI从模块从MDM接收并缓存MIPI命令;在通过MIPI主模块向第二FEM发送第二MIPI命令之后,通过MIPI主模块向第二FEM发送缓存的来自调制解调器的MIPI命令。
该实施方式使得调制解调器与第二FEM之间的控制逻辑在切换前后保持一致。
在一种可能的实施方式中,处理器具体用于:如果通信状态信息指示第一FEM进行Wi-Fi通信,则在预设时间后,向切换电路发送第一控制命令。
该实施方式可以防止蓝牙通信在第一FEM和第二FEM之间频繁切换,该方案的优点为判断条件简单并且从始至终不会出现频繁切换情况。
在一种可能的实施方式中,处理器具体用于:如果通信状态信息指示第一FEM进行Wi-Fi通信,并且在第一预设时间内第一FEM在进行Wi-Fi通信和未进行Wi-Fi通信之间切换次数小于次数门限,则向切换电路发送第一控制命令。
该实施方式可以防止蓝牙通信在第一FEM和第二FEM之间频繁切换,该方案的优点为检测更加快速,在连接Wi-Fi后能尽快切换状态,体验感较好。
在一种可能的实施方式中,处理器还用于:如果在第一预设时间内第一FEM在进行Wi-Fi通信和未进行Wi-Fi通信之间切换次数大于或等于次数门限,则在第二预设时间后再获取第一FEM的通信状态信息。
该实施方式可以避免永远不切换状态,当Wi-Fi连接稳定后可以正常切换状态。
第二方面,提供了一种蓝牙通信切换方法,包括:获取第一FEM的通信状态信息,第一FEM支持无线保真Wi-Fi通信或蓝牙通信,通信状态信息用于指示第一FEM是否进行Wi-Fi通信;如果通信状态信息指示第一FEM进行Wi-Fi通信,则向切换电路发送第一控制命令,第一控制命令用于控制切换电路检测调制解调器是否向第二FEM发送移动产业处理器接口MIPI命令,如果调制解调器未向第二FEM发送MIPI命令,则控制第二FEM进行蓝牙通信,第二FEM支持蜂窝通信或蓝牙通信;如果通信状态信息指示第一FEM未进行Wi-Fi通信,则向切换电路发送第二控制命令,第二控制命令用于控制切换电路检测调制解调器是否向第二FEM发送MIPI命令,如果调制解调器未向第二FEM发送MIPI命令,则将调制解调器与第二FEM直通,使得调制解调器控制第二FEM进行蜂窝通信。
在一种可能的实施方式中,还包括:如果接收到第一控制命令,则控制旁路选通电路将MIPI从模块与调制解调器导通并将MIPI主模块与第二FEM导通,通过MIPI从模块检测调制解调器是否向第二FEM发送MIPI命令,如果调制解调器未向第二FEM发送MIPI命令,则通过MIPI主模块向第二FEM发送第一MIPI命令,第一MIPI命令用于指示第二FEM进行蓝牙通信;如果接收到第二控制命令,通过MIPI从模块检测调制解调器是否向第二FEM发送MIPI命令,如果调制解调器未向第二FEM发送MIPI命令,则控制旁路选通电路将调制解调器与第二FEM直通,并通过MIPI主模块向第二FEM发送第二MIPI命令,第二MIPI命令用于指示第二FEM进行蜂窝通信。
在一种可能的实施方式中,该方法还包括:在通过MIPI主模块向第二FEM发送第一MIPI命令之后,通过MIPI从模块从MDM接收并缓存MIPI命令;在通过MIPI主模块向第二FEM发送第二MIPI命令之后,通过MIPI主模块向第二FEM发送缓存的来自MDM的MIPI命令。
在一种可能的实施方式中,如果通信状态信息指示第一FEM进行Wi-Fi通信,则向切换电路发送第一控制命令,包括:如果通信状态信息指示第一FEM进行Wi-Fi通信,则在预设时间后,向切换电路发送第一控制命令。
在一种可能的实施方式中,如果通信状态信息指示第一FEM进行Wi-Fi通信,则向切换电路发送第一控制命令,包括:如果通信状态信息指示第一FEM进行Wi-Fi通信,并且在第一预设时间内第一FEM在进行Wi-Fi通信和未进行Wi-Fi通信之间切换次数小于次数门限,则向切换电路发送第一控制命令。
在一种可能的实施方式中,该方法还包括:如果在第一预设时间内第一FEM在进行Wi-Fi通信和未进行Wi-Fi通信之间切换次数大于或等于次数门限,则在第二预设时间后再获取第一FEM的通信状态信息。
第三方面,提供了一种电子设备,包括如第一方面及其任一实施方式的无线通信电路,或者,包括处理器和存储器,存储器中存储指令,当处理器执行指令时,如第二方面及其任一实施方式所述的方法被执行。
第四方面,提供了一种计算机可读存储介质,包括指令,当指令在电子设备上执行时,使得电子设备执行如第二方面及其任一实施方式所述的方法。
第五方面,提供了一种包含指令的计算机程序产品,当指令在上述电子设备上运行时,使得该电子设备执行如第二方面及其任一实施方式所述的方法。
第六方面,提供了一种芯片系统,该芯片系统包括处理器,用于支持电子设备实现上述第二方面中所涉及的功能。在一种可能的设计中,该装置还包括接口电路,接口电路可用于从其它装置(例如存储器)接收信号,或者,向其它装置(例如通信接口)发送信号。该芯片系统可以包括芯片,还可以包括其他分立器件。
第二方面至第六方面的技术效果参照第一方面及其任一实施方式的技术效果,在此不再重复。
附图说明
图1为本申请实施例提供的一种电子设备的结构示意图;
图2为本申请实施例提供的另一种电子设备的结构示意图;
图3为本申请实施例提供的一种无线通信电路的结构示意图;
图4为本申请实施例提供的一种蓝牙通信切换方法的流程示意图;
图5为本申请实施例提供的另一种蓝牙通信切换方法的流程示意图;
图6为本申请实施例提供的一种显示界面的示意图;
图7为本申请实施例提供的另一种显示界面的示意图;
图8为本申请实施例提供的又一种显示界面的示意图;
图9为本申请实施例提供的一种芯片系统的结构示意图。
具体实施方式
首先对本申请涉及的一些概念进行描述。
本申请实施例涉及的术语“第一”、“第二”等仅用于区分同一类型特征的目的,不能理解为用于指示相对重要性、数量、顺序等。
本申请实施例涉及的术语“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
本申请实施例涉及的术语“耦合”、“连接”应做广义理解,例如,可以指物理上的直接连接,也可以指通过电子器件实现的间接连接,例如通过电阻、电感、电容或其他电子器件实现的连接。
本申请实施例提供了一种电子设备,该电子设备可以是一种具有显示功能的设备,电子设备可以是移动的,也可以是固定的。电子设备可以部署在陆地上(例如室内或室外、手持或车载等),也可以部署在水面上(例如轮船等),还可以部署在空中(例如飞机、气球和卫星等)。该电子设备可以称为用户设备(user equipment,UE)、接入终端、终端单元、用户单元(subscriber unit)、终端站、移动站(mobile station,MS)、移动台、终端代理或终端装置等。例如,该电子设备可以是手机、平板电脑、笔记本电脑、智能手环、智能手表、耳机、智能音箱、虚拟现实(virtual reality,VR)设备、增强现实(augmented reality,AR)设备、工业控制(industrial control)中的终端、无人驾驶(self driving)中的终端、远程医疗(remote medical)中的终端、智能电网(smart grid)中的终端、运输安全(transportation safety)中的终端、智慧城市(smart city)中的终端、智慧家庭(smart home)中的终端等。本申请实施例对电子设备的具体类型和结构等不作限定。下面对电子设备的一种可能结构进行说明。
以电子设备为手机为例,图1示出了电子设备101的一种可能的结构。该电子设备101可以包括处理器210、外部存储器接口220、内部存储器221、通用串行总线(universal serial bus,USB)接口230、电源管理模块240、电池241、无线充电线圈242、天线1、天线2、移动通信模块250、无线通信模块260、音频模块270、扬声器270A、受话器270B、麦克风270C、耳机接口270D、传感器模块280、按键290、马达291、指示器292、摄像头293、显示屏294以及用户标识模块(subscriber identification module,SIM)卡接口295等。
其中,传感器模块280可以包括压力传感器、陀螺仪传感器、气压传感器、磁传感器、加速度传感器、距离传感器、接近光传感器、指纹传感器、温度传感器、触摸 传感器、环境光传感器、骨传导传感器等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备101的具体限定。在本申请另一些实施例中,电子设备101可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器210可以包括一个或多个处理单元,例如:处理器210可以为现场可编程门阵列(field programmable gate array,FPGA)、专用集成电路(application specific integrated circuit,ASIC)、片上系统(system on chip,SoC)、中央处理单元(central processing unit,CPU)、应用处理器(application processor,AP)、网络处理器(network processor,NP)、数字信号处理器(digital signal processor,DSP)、微控制单元(micro controller unit,MCU)、可编程逻辑器件(programmable logic device,PLD)、调制解调处理器、图形处理器(graphics processing unit,GPU)、图像信号处理器(image signal processor,ISP)、控制器、视频编解码器、基带处理器以及神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。例如,处理器210可以是应用处理器AP。或者,上述处理器210可以集成在片上系统(system on chip,SoC)中。或者,上述处理器210可以集成在集成电路(integrated circuit,IC)芯片中。该处理器210可以包括IC芯片中的模拟前端(analog front end,AFE)和微控制单元(micro-controller unit,MCU)。
其中,控制器可以是电子设备101的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器210中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器210中的存储器为高速缓冲存储器。该存储器可以保存处理器210刚用过或循环使用的指令或数据。如果处理器210需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器210的等待时间,因而提高了系统的效率。
在一些实施例中,处理器210可以包括一个或多个接口。接口可以包括集成电路(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)接口、用户标识模块(subscriber identity module,SIM)接口和/或USB接口等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备101的结构限定。在本申请另一些实施例中,电子设备101也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
电源管理模块240用于从充电器接收充电输入。其中,充电器可以是无线充电器(如电子设备101的无线充电底座或者其他可以为电子设备101无线充电的设备),也可以是有线充电器。例如,电源管理模块240可以通过USB接口230接收有线充电器的充电输入。电源管理模块240可以通过电子设备的无线充电线圈242接收无线充电输入。
其中,电源管理模块240为电池241充电的同时,还可以为电子设备供电。电源 管理模块240接收电池241的输入,为处理器210、内部存储器221、外部存储器接口220、显示屏294、摄像头293和无线通信模块260等供电。电源管理模块240还可以用于监测电池241的电池容量、电池循环次数、电池健康状态(漏电、阻抗)等参数。在其他一些实施例中,电源管理模块240也可以设置于处理器210中。
电子设备101的无线通信功能可以通过天线1、天线2、移动通信模块250、无线通信模块260、调制解调处理器以及基带处理器等实现。
电子设备101通过GPU、显示屏294以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏294和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器210可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏294用于显示图像,视频等。显示屏294包括显示面板和触摸屏。在一些实施例中,电子设备101可以包括1个或N个显示屏294,N为大于1的正整数。
电子设备101可以通过ISP、摄像头293、视频编解码器、GPU、显示屏294以及应用处理器等实现拍摄功能。ISP用于处理摄像头293反馈的数据。在一些实施例中,ISP可以设置在摄像头293中。摄像头293用于捕获静态图像或视频。在一些实施例中,电子设备101可以包括1个或N个摄像头293,N为大于1的正整数。
外部存储器接口220可以用于连接外部存储卡,例如微闪迪(micro SanDisk,Micro SD)卡,实现扩展电子设备101的存储能力。外部存储卡通过外部存储器接口220与处理器210通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器221可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器210通过运行存储在内部存储器221的指令,从而执行电子设备101的各种功能应用以及数据处理。此外,内部存储器221可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、通用闪存存储器(universal flash storage,UFS)等。
本申请实施例涉及的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。应注意,本文描述的系统和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。
电子设备101可以通过音频模块270、扬声器270A、受话器270B、麦克风270C、耳机接口270D以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块270用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。在一些实施例中,音频模块270可以设置于处理器210中,或将音频模块270的部分功能模块设置于处理器210中。扬声器270A,也称“喇叭”,用于将音频电信号转换为声音信号。受话器270B,也称“听筒”,用于将音频电信号转换成声音信号。麦克风270C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。电子设备101可以设置至少一个麦克风270C。耳机接口270D用于连接有线耳机。耳机接口270D可以是USB接口230,也可以是3.5mm的开放移动终端平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
按键290包括开机键、音量键等。按键290可以是机械按键。也可以是触摸式按键。电子设备101可以接收按键输入,产生与电子设备101的用户设置以及功能控制有关的键信号输入。马达291可以产生振动提示。马达291可以用于来电振动提示,也可以用于触摸振动反馈。指示器292可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息、未接来电、通知等。SIM卡接口295用于连接SIM卡。SIM卡可以通过插入SIM卡接口295,或从SIM卡接口295拔出,实现和电子设备101的接触和分离。电子设备101可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口295可以支持纳SIN(Nano SIM)卡、微SIM(Micro SIM)卡、SIM卡等。在一些实施例中,电子设备101采用嵌入式(embedded SIM,eSIM)卡,eSIM卡可以嵌在电子设备101中,不能和电子设备101分离。
天线1和天线2用于发射和接收电磁波信号。电子设备101中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块250可以提供应用在电子设备101上的包括2G/3G/4G/5G等无线通信的解决方案。无线通信模块260可以提供应用在电子设备101上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络)、蓝牙(bluetooth,BT)、全球导航卫星系统(global navigation satellite system,GNSS)、调频(frequency modulation,FM)、近距离无线通信技术(near field communication,NFC)、红外技术(infrared,IR)等无线通信的解决方案。在一些实施例中,电子设备101的天线1和移动通信模块250耦合,天线2和无线通信模块260耦合,使得电子设备101可以通过无线通信技术与网络以及其他设备通信。
如图2所示,在现有技术中,无线通信模块260包括第一FEM 261,移动通信模块250包括MDM 251和第二FEM 252。第一FEM 261和第二FEM 252用于对发送或接收的射频信号进行放大。MDM 251用于将基带信号经过数字信号调制生成射频信号,以及,将射频信号解调得到数字信号。第二FEM 252实现移动通信(即蜂窝通信)的射频信号的传输,第一FEM 261实现Wi-Fi和蓝牙的射频信号的分时传输。当用户从室外进入室内使得电子设备通过进行Wi-Fi通信时,电子设备通过Wi-Fi传输的数据量较大,而通过蜂窝通信传输的数据量较小,由于Wi-Fi和蓝牙共用FEM和天线,因此会降低蓝牙的通信速率,从而影响蓝牙的通信质量,例如蓝牙耳机通话质量下降, 蓝牙传输数据速率降低等等。
为此,本申请实施例提供了一种应用于上述电子设备的无线通信电路,通过蓝牙占用蜂窝通信的FEM和天线来减少或防止对蓝牙的通信速率产生影响。
如图3所示,该无线通信电路包括处理器31、切换电路32、MDM 33、第一FEM34和第二FEM 35。该切换电路32包括:串行外设接口(serial peripheral interface,SPI)模块321、控制器322、移动产业处理器接口(mobile industry processor interface,MIPI)从模块323、MIPI主模块324、旁路(bypass)选通电路325。处理器31耦合至切换电路32、MDM 33和第一FEM 34,其中,处理器31通过切换电路32中的SPI模块321耦合至控制器322。MDM 33通过切换电路32耦合至所述第二FEM 35,MDM33、切换电路32和第二FEM 35之间采用MIPI总线进行通信。
第一FEM 34和第二FEM 35用于对发送或接收的射频信号进行放大。其中,第一FEM 34可以支持Wi-Fi通信或蓝牙通信的分时复用,第二FEM 35可以支持蜂窝通信或蓝牙通信。
MDM 33用于向第二FEM 35发送MIPI命令以控制第二FEM 35进行蜂窝通信,MDM 33还用于将基带信号经过数字信号调制生成射频信号并通过第二FEM 35发射出去,以及,将通过第二FEM 35接收的射频信号解调得到数字信号,MDM 33还用于将第二FEM 35的通信状态信息发送给处理器31。
SPI模块321用于实现处理器31与控制器322之间的串行通信。
旁路选通电路325受控于控制器322,将MDM 33与第二FEM 35直通(图中虚线箭头所示通路),或者,将MDM 33通过MIPI从模块323与控制器322导通,并将控制器322通过MIPI主模块324与第二FEM 35导通(图中实线箭头所示通路)。旁路选通电路325可以通过互补金属氧化物半导体(complementary metal oxide semiconductor,CMOS)等模拟电路来实现,或者,可以通过Verilog寄存器传输级(register transfer level,RTL)代码来实现,具体实现方式不作限定。
MIPI从模块323与MDM 33之间采用MIPI总线连接,MIPI从模块323与控制器322之间采用片上总线(例如先进高性能总线(advanced high performance bus,AHB)总线)连接。MIPI从模块323用于将来自MDM 33的MIPI命令(例如后文涉及的第一MIPI命令)从MIPI总线格式转换为片上总线格式,并发送给控制器322。
MIPI主模块324与第二FEM 35之间采用MIPI总线连接,MIPI主模块324与控制器322之间采用片上总线连接。MIPI主模块324用于将来自控制器322的MIPI命令(例如后文涉及的第二MIPI命令)从片上总线格式转换为MIPI总线格式,并发送给第二FEM 35。
处理器31可以获取第一FEM 34的通信状态信息,例如是否进行Wi-Fi通信(或者,进行Wi-Fi通信或进行蓝牙通信),处理器31还可以获取第二FEM 35的通信状态信息,例如是否进行蜂窝通信,处理器31还可以根据第一FEM 34的通信状态信息来通过SPI模块321向切换电路32中的控制器322发送第一控制命令或第二控制命令(具体见后文描述),以通过切换电路32控制第二FEM 35在蜂窝通信状态与蓝牙通信状态之间切换。
控制器322用于根据来自处理器31的第一控制命令或第二控制命令控制旁路选通 电路325在旁路模式和非旁路模式之间切换。
具体的,上述无线通信电路可以执行本申请涉及的蓝牙通信切换方法,如图4所示,该方法包括:
S101、处理器31获取第一FEM 34的通信状态信息。
第一FEM 34的通信状态信息用于指示第一FEM 34是否进行Wi-Fi通信,或者说,第一FEM 34的通信状态信息用于指示第一FEM 34进行Wi-Fi通信或进行蓝牙通信。
S102、如果第一FEM 34的通信状态信息指示第一FEM 34进行Wi-Fi通信(或称建立Wi-Fi连接),则处理器31向切换电路32中的控制器322发送第一控制命令。
第一控制命令用于控制切换电路32检测MDM 33是否向第二FEM 35发送MIPI命令,如果MDM 33未向第二FEM 35发送MIPI命令,则切换电路32控制第二FEM35进行蓝牙通信。
如图5的S1021-S1025所示的,在旁路模式下,如果切换电路32中的控制器322从处理器31接收到第一控制命令,则控制器322将模式切换寄存器配置为非旁路模式,并控制旁路选通电路325切换至非旁路模式。控制器322控制旁路选通电路325将MIPI从模块323与MDM 251导通并将MIPI主模块324与第二FEM 35导通,控制器322通过MIPI从模块323检测MDM 251是否向第二FEM 35发送MIPI命令。如果检测到MDM 251未向第二FEM 35发送MIPI命令(即MIPI总线空闲),则控制器322通过MIPI主模块324向第二FEM 35发送第一MIPI命令,如果检测到MDM 251向第二FEM 35发送MIPI命令,则继续等待MIPI总线空闲。检测的来自MDM 251的MIPI命令可以是任意MIPI命令,第一MIPI命令用于指示第二FEM 35进行蓝牙通信。也就是说,在MDM 251未向第二FEM 35发送MIPI命令期间,控制器322将第二FEM35从蜂窝通信状态切换至蓝牙通信状态,以避免与MDM 251竞争MIPI总线,从而产生传输错误。
在控制器322通过MIPI主模块324向第二FEM 35发送第一MIPI命令,以指示第二FEM 35进行蓝牙通信之后,控制器322继续通过MIPI从模块323从MDM 251接收并缓存MIPI命令,待后续控制器322控制第二FEM 35切换回蓝牙通信状态时,将缓存的来自MDM 251的MIPI命令通过MIPI主模块324发送给第二FEM 35,使得MDM 251与第二FEM 35之间的控制逻辑在切换前后保持一致。
另外,由于某些场景下Wi-Fi连接不稳定,为了防止蓝牙通信在第一FEM 34和第二FEM 35之间频繁切换,处理器31可以根据第一FEM 34进行Wi-Fi通信的时间,判断是否对蓝牙通信进行切换;或者,处理器31可以根据预设时间内第一FEM 34在进行Wi-Fi通信和未进行Wi-Fi通信之间切换次数,判断是否对蓝牙通信进行切换。
在一种可能的实施方式中,如果第一FEM 34的通信状态信息指示第一FEM 34进行Wi-Fi通信,则在预设时间(例如一分钟)后,处理器31向切换电路32中的控制器322发送第一控制命令。即在电子设备稳定接入Wi-Fi连接预设时间后,处理器31向切换电路32中的控制器322发送第一控制命令,该方案的优点为判断条件简单并且从始至终不会出现频繁切换情况。
在另一种可能的实施方式中,如果第一FEM 34的通信状态信息指示第一FEM 34进行Wi-Fi通信,并且在第一预设时间(例如10秒)内第一FEM 34在进行Wi-Fi通 信和未进行Wi-Fi通信之间切换次数小于次数门限(例如三次),则处理器31向切换电路32中的控制器322发送第一控制命令。如果在第一预设时间内第一FEM 34在进行Wi-Fi通信和未进行Wi-Fi通信之间切换次数大于或等于次数门限,则处理器31在第二预设时间(例如五分钟)后再从第一FEM 34获取通信状态信息,进而重新判断是否发送第一控制命令。该方案的优点为检测更加快速,在连接Wi-Fi后能尽快切换状态,体验感较好。
由于电子设备可以支持与多个其他设备进行蓝牙通信(或称配对),所以此时处理器31可以将全部或部分蓝牙通信从第一FEM 34切换至第二FEM 35,以改善蓝牙通信质量。示例性的,如图6所示,可以通过电子设备的状态栏的蓝牙图标从A至B的变化,来提示这种蓝牙通信质量的改善,也可以通过下拉菜单中的蓝牙图标从C至D的变化,来提示这种蓝牙通信质量的改善,其中,A和C代表普通蓝牙通信功能,B和D代表增强蓝牙通信功能。如图7所示,可以通过点击下拉菜单中的蓝牙图标旁的三角图标,打开蓝牙配对界面,其中显示通过不同天线连接不同蓝牙设备。如图8所示,可以在蓝牙设置菜单中显示是否打开蓝牙增强功能开关,当蓝牙增强功能开关打开时,电子设备可以执行本申请的蓝牙通信切换方法,并且可以显示通过不同天线连接不同蓝牙设备;当蓝牙增强功能开关关闭时,电子设备不执行本申请的蓝牙通信切换方法。
S103、如果第一FEM 34的通信状态信息指示第一FEM 34未进行Wi-Fi通信(或称断开Wi-Fi连接),则处理器31向切换电路32中的控制器322发送第二控制命令。
第二控制命令用于控制切换电路32检测MDM 33是否向第二FEM 35发送MIPI命令,如果MDM 33未向第二FEM 35发送MIPI命令,则切换电路32将MDM 33与第二FEM 35直通,使得MDM 33控制第二FEM 35进行蜂窝通信。
如图5的S1031-S1034所示的,在非旁路模式下,如果切换电路32中的控制器322从处理器31接收到第二控制命令,则控制器322将模式切换寄存器配置为旁路模式,并控制旁路选通电路325切换至旁路模式。此时,控制器322通过MIPI从模块323检测MDM 251是否向第二FEM 35发送MIPI命令。如果检测到MDM 251未向第二FEM 35发送MIPI命令(即MIPI总线空闲),则控制器322控制旁路选通电路325将MDM 251与第二FEM 35直通,通过MIPI主模块324向第二FEM 35发送第二MIPI命令,第二MIPI命令用于指示第二FEM 35进行蜂窝通信。使得MDM 251能够控制第二FEM 35进行蜂窝通信,如果检测到MDM 251向第二FEM 35发送MIPI命令,则继续等待MIPI总线空闲。也就是说,在MDM 251未向第二FEM 35发送MIPI命令期间,控制器322将第二FEM 35从蓝牙通信状态切换至蜂窝通信状态,以避免与MDM 251竞争MIPI总线,从而产生传输错误。
在控制器322通过MIPI主模块324向第二FEM 35发送第二MIPI命令以指示第二FEM 35进行蜂窝通信之后,还要通过MIPI主模块324向第二FEM 35发送之前缓存的来自MDM 251的MIPI命令,使得MDM 251与第二FEM 35之间的控制逻辑在切换前后保持一致。
本申请实施例提供的无线通信电路、蓝牙通信切换方法和电子设备,第一FEM支持无线保真Wi-Fi通信或蓝牙通信,当第一FEM进行Wi-Fi通信,并且,MDM未向 第二FEM发送MIPI命令时,控制第二FEM进行蓝牙通信,从而将第一FEM的部分或全部蓝牙通信切换至较为空闲的第二FEM,避免Wi-Fi通信和蓝牙通信的分时复用挤占蓝牙通信的资源,提高蓝牙通信的通信质量。
如图9所示,本申请实施例还提供一种芯片系统。该芯片系统60包括至少一个处理器601和至少一个接口电路602。至少一个处理器601和至少一个接口电路602可通过线路互联。处理器601用于支持电子设备实现上述方法实施例中的各个步骤,例如图4、图5所示的方法,至少一个接口电路602可用于从其它装置(例如存储器)接收信号,或者,向其它装置(例如通信接口)发送信号。该芯片系统可以包括芯片,还可以包括其他分立器件。
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质包括指令,当指令在上述电子设备上运行时,使得该电子设备执行上述方法实施例中的各个步骤,例如执行图4、图5所示的方法。
本申请实施例还提供一种包括指令的计算机程序产品,当指令在上述电子设备上运行时,使得该电子设备执行上述方法实施例中的各个步骤,例如执行图4、图5所示的方法。
关于芯片系统、计算机可读存储介质、计算机程序产品的技术效果参照前面方法实施例的技术效果。
应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的模块及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、设备和方法,可以通过其它的方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个设备,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,设备或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个设备,或者也可以分布到多个设备上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能模块可以集成在一个设备中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个设备中。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件程序实现时,可以全部或部分地以计算机程序产品的形式来实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(Digital Subscriber Line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可以用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带),光介质(例如,DVD)、或者半导体介质(例如固态硬盘(Solid State Disk,SSD))等。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (14)

  1. 一种无线通信电路,其特征在于,包括:处理器、切换电路、调制解调器、第一前端模块FEM和第二FEM;所述处理器耦合至所述切换电路、所述调制解调器和所述第一FEM,所述调制解调器通过所述切换电路耦合至所述第二FEM,所述第一FEM支持无线保真Wi-Fi通信或蓝牙通信,所述第二FEM支持蜂窝通信或蓝牙通信;所述处理器用于:
    获取所述第一FEM的通信状态信息,所述通信状态信息用于指示所述第一FEM是否进行Wi-Fi通信;
    如果所述通信状态信息指示所述第一FEM进行Wi-Fi通信,则向所述切换电路发送第一控制命令,所述第一控制命令用于控制所述切换电路检测所述调制解调器是否向所述第二FEM发送移动产业处理器接口MIPI命令,如果所述调制解调器未向所述第二FEM发送MIPI命令,则控制所述第二FEM进行蓝牙通信;
    如果所述通信状态信息指示所述第一FEM未进行Wi-Fi通信,则向所述切换电路发送第二控制命令,所述第二控制命令用于控制所述切换电路检测所述调制解调器是否向所述第二FEM发送MIPI命令,如果所述调制解调器未向所述第二FEM发送MIPI命令,则将所述调制解调器与所述第二FEM直通,使得所述调制解调器控制所述第二FEM进行蜂窝通信。
  2. 根据权利要求1所述的无线通信电路,其特征在于,所述切换电路包括控制器、MIPI从模块、MIPI主模块和旁路选通电路;所述控制器通过所述MIPI从模块和所述旁路选通电路耦合至所述调制解调器,控制器还通过所述MIPI主模块和所述旁路选通电路耦合至所述第二FEM;
    所述MIPI从模块用于将来自所述调制解调器的MIPI命令从MIPI总线格式转换为片上总线格式并发送给所述控制器;所述MIPI主模块用于将来自所述控制器的MIPI命令从片上总线格式转换为MIPI总线格式并通过所述旁路选通电路发送给所述第二FEM;
    所述控制器用于:如果接收到所述第一控制命令,则控制所述旁路选通电路将所述MIPI从模块与所述调制解调器导通并将所述MIPI主模块与所述第二FEM导通,通过所述MIPI从模块检测所述调制解调器是否向所述第二FEM发送MIPI命令,如果所述调制解调器未向所述第二FEM发送MIPI命令,则通过所述MIPI主模块向所述第二FEM发送第一MIPI命令,所述第一MIPI命令用于指示所述第二FEM进行蓝牙通信;
    所述控制器还用于:如果接收到所述第二控制命令,通过所述MIPI从模块检测所述调制解调器是否向所述第二FEM发送MIPI命令,如果所述调制解调器未向所述第二FEM发送MIPI命令,则控制所述旁路选通电路将所述调制解调器与所述第二FEM直通,并通过所述MIPI主模块向所述第二FEM发送第二MIPI命令,所述第二MIPI命令用于指示所述第二FEM进行蜂窝通信。
  3. 根据权利要求2所述的无线通信电路,其特征在于,所述控制器还用于:
    在通过所述MIPI主模块向所述第二FEM发送所述第一MIPI命令之后,通过所述MIPI从模块从所述调制解调器接收并缓存MIPI命令;
    在通过所述MIPI主模块向所述第二FEM发送所述第二MIPI命令之后,通过所述MIPI主模块向所述第二FEM发送缓存的来自所述调制解调器的MIPI命令。
  4. 根据权利要求1-3任一项所述的无线通信电路,其特征在于,所述处理器具体用于:
    如果所述通信状态信息指示所述第一FEM进行Wi-Fi通信,则在预设时间后,向所述切换电路发送所述第一控制命令。
  5. 根据权利要求1-4任一项所述的无线通信电路,其特征在于,所述处理器具体用于:
    如果所述通信状态信息指示所述第一FEM进行Wi-Fi通信,并且在第一预设时间内所述第一FEM在进行Wi-Fi通信和未进行Wi-Fi通信之间切换次数小于次数门限,则向所述切换电路发送所述第一控制命令。
  6. 根据权利要求5所述的无线通信电路,其特征在于,所述处理器还用于:
    如果在所述第一预设时间内所述第一FEM在进行Wi-Fi通信和未进行Wi-Fi通信之间切换次数大于或等于所述次数门限,则在第二预设时间后再获取所述通信状态信息。
  7. 一种蓝牙通信切换方法,其特征在于,包括:
    获取第一前端模块FEM的通信状态信息,所述第一FEM支持无线保真Wi-Fi通信或蓝牙通信,所述通信状态信息用于指示所述第一FEM是否进行Wi-Fi通信;
    如果所述通信状态信息指示所述第一FEM进行Wi-Fi通信,则向切换电路发送第一控制命令,所述第一控制命令用于控制所述切换电路检测调制解调器是否向第二FEM发送移动产业处理器接口MIPI命令,如果所述调制解调器未向所述第二FEM发送MIPI命令,则控制所述第二FEM进行蓝牙通信,所述第二FEM支持蜂窝通信或蓝牙通信;
    如果所述通信状态信息指示所述第一FEM未进行Wi-Fi通信,则向所述切换电路发送第二控制命令,所述第二控制命令用于控制所述切换电路检测所述调制解调器是否向所述第二FEM发送MIPI命令,如果所述调制解调器未向所述第二FEM发送MIPI命令,则将所述调制解调器与所述第二FEM直通,使得所述调制解调器控制所述第二FEM进行蜂窝通信。
  8. 根据权利要求7所述的方法,其特征在于,还包括:
    如果接收到所述第一控制命令,则控制旁路选通电路将MIPI从模块与所述调制解调器导通并将MIPI主模块与所述第二FEM导通,通过所述MIPI从模块检测所述调制解调器是否向所述第二FEM发送MIPI命令,如果所述调制解调器未向所述第二FEM发送MIPI命令,则通过所述MIPI主模块向所述第二FEM发送第一MIPI命令,所述第一MIPI命令用于指示所述第二FEM进行蓝牙通信;
    如果接收到所述第二控制命令,通过所述MIPI从模块检测所述调制解调器是否向所述第二FEM发送MIPI命令,如果所述调制解调器未向所述第二FEM发送MIPI命令,则控制所述旁路选通电路将所述调制解调器与所述第二FEM直通,并通过所述MIPI主模块向所述第二FEM发送第二MIPI命令,所述第二MIPI命令用于指示所述第二FEM进行蜂窝通信。
  9. 根据权利要求8所述的方法,其特征在于,还包括:
    在通过所述MIPI主模块向所述第二FEM发送所述第一MIPI命令之后,通过所述MIPI从模块从所述调制解调器接收并缓存MIPI命令;
    在通过所述MIPI主模块向所述第二FEM发送所述第二MIPI命令之后,通过所述MIPI主模块向所述第二FEM发送缓存的来自所述调制解调器的MIPI命令。
  10. 根据权利要求7-9任一项所述的方法,其特征在于,所述如果所述通信状态信息指示所述第一FEM进行Wi-Fi通信,则向切换电路发送第一控制命令,包括:
    如果所述通信状态信息指示所述第一FEM进行Wi-Fi通信,则在预设时间后,向所述切换电路发送所述第一控制命令。
  11. 根据权利要求7-10任一项所述的方法,其特征在于,所述如果所述通信状态信息指示所述第一FEM进行Wi-Fi通信,则向切换电路发送第一控制命令,包括:
    如果所述通信状态信息指示所述第一FEM进行Wi-Fi通信,并且在第一预设时间内所述第一FEM在进行Wi-Fi通信和未进行Wi-Fi通信之间切换次数小于次数门限,则向所述切换电路发送所述第一控制命令。
  12. 根据权利要求11所述的方法,其特征在于,所述方法还包括:
    如果在所述第一预设时间内所述第一FEM在进行Wi-Fi通信和未进行Wi-Fi通信之间切换次数大于或等于所述次数门限,则在第二预设时间后再获取所述通信状态信息。
  13. 一种电子设备,其特征在于,包括如权利要求1-6任一项所述的无线通信电路,或者,包括处理器和存储器,所述存储器中存储指令,当所述处理器执行所述指令时,如权利要求7-12任一项所述的方法被执行。
  14. 一种计算机可读存储介质,其特征在于,包括指令,当所述指令在电子设备上执行时,使得所述电子设备执行如权利要求7-12任一项所述的方法。
PCT/CN2023/090369 2022-08-18 2023-04-24 无线通信电路、蓝牙通信切换方法和电子设备 WO2024037025A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210993102.2A CN116054870B (zh) 2022-08-18 2022-08-18 无线通信电路、蓝牙通信切换方法和电子设备
CN202210993102.2 2022-08-18

Publications (1)

Publication Number Publication Date
WO2024037025A1 true WO2024037025A1 (zh) 2024-02-22

Family

ID=86126001

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/090369 WO2024037025A1 (zh) 2022-08-18 2023-04-24 无线通信电路、蓝牙通信切换方法和电子设备

Country Status (2)

Country Link
CN (2) CN116054870B (zh)
WO (1) WO2024037025A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116054870B (zh) * 2022-08-18 2023-10-20 荣耀终端有限公司 无线通信电路、蓝牙通信切换方法和电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103620970A (zh) * 2011-06-27 2014-03-05 高通股份有限公司 动态天线共享
CN104272802A (zh) * 2012-04-10 2015-01-07 高通股份有限公司 用于基于位置的高效率无缝调制解调器和移动应用激活的装置和方法
CN105009670A (zh) * 2013-02-13 2015-10-28 高通股份有限公司 蜂窝和Wi-Fi/蓝牙收发机与全球导航卫星系统(GNSS)接收机在无线设备中的共存
CN111314921A (zh) * 2020-02-28 2020-06-19 恒安嘉新(北京)科技股份公司 一种基于无线通信的测试系统、方法、装置和存储介质
US11265052B1 (en) * 2021-04-13 2022-03-01 Dell Products, Lp System and method for antenna reduction and usage for a multi-radio information handling system
CN116054870A (zh) * 2022-08-18 2023-05-02 荣耀终端有限公司 无线通信电路、蓝牙通信切换方法和电子设备

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102026322A (zh) * 2009-09-23 2011-04-20 中兴通讯股份有限公司 语音切换方法和系统
CN102548045A (zh) * 2010-12-22 2012-07-04 北京格林思通科技有限公司 短距离无线中继方法和系统
US9497799B2 (en) * 2013-10-04 2016-11-15 Mediatek Inc. Method for controlling RF signal processing components and communications apparatus utilizing the same
KR102224156B1 (ko) * 2014-04-02 2021-03-08 엘지전자 주식회사 이동 단말기 및 이의 제어방법
US10135482B2 (en) * 2016-03-23 2018-11-20 Avago Technologies General Ip (Singapore) Pte. Ltd. Wireless transceiver with remote frontend
KR102374338B1 (ko) * 2017-09-07 2022-03-17 삼성전자주식회사 무선 통신 시스템에서 데이터를 송수신하는 전자 장치 및 이를 위한 방법
US10757561B2 (en) * 2019-03-29 2020-08-25 Intel Corporation Wi-Fi docking in dense environment
CN112020130B (zh) * 2019-05-30 2021-12-28 华为技术有限公司 一种干扰处理方法及设备
US11516757B2 (en) * 2019-06-07 2022-11-29 Intel Corporation Multi-access point collaboration in wireless communications
CN112399390B (zh) * 2019-08-14 2021-10-15 华为技术有限公司 一种蓝牙回连的方法及相关装置
US10701538B1 (en) * 2019-08-19 2020-06-30 Bose Corporation Smart connection management
CN111556476B (zh) * 2020-04-17 2021-01-19 炬力(珠海)微电子有限公司 蓝牙tws设备间的数据传输方法及蓝牙tws设备
CN113676269B (zh) * 2020-05-15 2022-11-04 华为技术有限公司 电子设备的数据传输方法及其介质和电子设备
CN112468179B (zh) * 2020-11-30 2022-05-24 维沃移动通信有限公司 射频电路、电子设备及其控制方法
CN113038440B (zh) * 2021-03-15 2023-04-07 杭州涂鸦信息技术有限公司 通信通道切换方法、装置、计算机设备和可读存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103620970A (zh) * 2011-06-27 2014-03-05 高通股份有限公司 动态天线共享
CN104272802A (zh) * 2012-04-10 2015-01-07 高通股份有限公司 用于基于位置的高效率无缝调制解调器和移动应用激活的装置和方法
CN105009670A (zh) * 2013-02-13 2015-10-28 高通股份有限公司 蜂窝和Wi-Fi/蓝牙收发机与全球导航卫星系统(GNSS)接收机在无线设备中的共存
CN111314921A (zh) * 2020-02-28 2020-06-19 恒安嘉新(北京)科技股份公司 一种基于无线通信的测试系统、方法、装置和存储介质
US11265052B1 (en) * 2021-04-13 2022-03-01 Dell Products, Lp System and method for antenna reduction and usage for a multi-radio information handling system
CN116054870A (zh) * 2022-08-18 2023-05-02 荣耀终端有限公司 无线通信电路、蓝牙通信切换方法和电子设备

Also Published As

Publication number Publication date
CN116054870B (zh) 2023-10-20
CN116054870A (zh) 2023-05-02
CN117335830B (zh) 2024-08-16
CN117335830A (zh) 2024-01-02

Similar Documents

Publication Publication Date Title
US11778363B2 (en) Audio data transmission method applied to switching between single-earbud mode and double-earbud mode of TWS headset and device
WO2021008614A1 (zh) 一种建立通信连接的方法及可穿戴设备
US12120596B2 (en) Method and device for controlling connection to network
WO2021180083A1 (zh) 蓝牙通信系统和无线通信系统
CN113676269B (zh) 电子设备的数据传输方法及其介质和电子设备
WO2021104114A1 (zh) 一种提供无线保真WiFi网络接入服务的方法及电子设备
WO2024037025A1 (zh) 无线通信电路、蓝牙通信切换方法和电子设备
KR20150051497A (ko) 전자 장치의 적외선 통신 방법 및 그 전자 장치
CN113518331B (zh) 通信方法和装置
WO2020077508A1 (zh) 一种对内部存储器动态调频的方法及电子设备
WO2022228065A1 (zh) 功能跳转方法及电子设备
CN112969089B (zh) 一种http请求传输方法及设备
CN112469014A (zh) 配置蓝牙连接参数的方法和电子设备
WO2021129128A1 (zh) 一种移动终端的无线充电方法及移动终端
WO2021121036A1 (zh) 一种折叠设备的自定义按键方法、设备及存储介质
CN113473291A (zh) 通信方法、耳机仓以及wifi耳机
KR20150068136A (ko) 전자 장치의 컨텐츠 다운로드 방법 및 그 전자 장치
CN110087223B (zh) 通信连接方法、通信设备及存储介质
CN115633340A (zh) 一种文件传输方法、终端、电子设备及存储介质
CN113407076A (zh) 启动应用的方法及电子设备
CN114079809A (zh) 终端及其输入方法与装置
WO2023160494A1 (zh) 触控组件、触控芯片和终端设备
CN116737356B (zh) 内存管理方法和电子设备
CN115733921B (zh) Tws耳机解耦分享方法、装置、设备、存储介质及程序产品
CN117440060B (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: 23853933

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2023853933

Country of ref document: EP

Ref document number: 23853933

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2023853933

Country of ref document: EP

Effective date: 20240731