WO2024046173A1 - Antenna multiplexing method and related apparatus - Google Patents

Antenna multiplexing method and related apparatus Download PDF

Info

Publication number
WO2024046173A1
WO2024046173A1 PCT/CN2023/114244 CN2023114244W WO2024046173A1 WO 2024046173 A1 WO2024046173 A1 WO 2024046173A1 CN 2023114244 W CN2023114244 W CN 2023114244W WO 2024046173 A1 WO2024046173 A1 WO 2024046173A1
Authority
WO
WIPO (PCT)
Prior art keywords
antenna
chip
electronic device
main
signal
Prior art date
Application number
PCT/CN2023/114244
Other languages
French (fr)
Chinese (zh)
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 WO2024046173A1 publication Critical patent/WO2024046173A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • H04W72/044Wireless resource allocation based on the type of the allocated resource
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • H04W72/044Wireless resource allocation based on the type of the allocated resource
    • H04W72/046Wireless resource allocation based on the type of the allocated resource the resource being in the space domain, e.g. beams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/54Allocation or scheduling criteria for wireless resources based on quality criteria
    • H04W72/542Allocation or scheduling criteria for wireless resources based on quality criteria using measured or perceived quality

Definitions

  • the present application relates to the fields of terminal and communication technologies, and in particular to antenna multiplexing methods and related devices.
  • the antenna equipped in the electronic device can complete the data sending and receiving when the electronic device performs communication services.
  • electronic devices can be equipped with a variety of antennas including, but not limited to: wireless fidelity (Wi-Fi) antennas, Bluetooth antennas, Near Field Communication (NFC) antennas, etc.
  • Wi-Fi wireless fidelity
  • NFC Near Field Communication
  • the antenna multiplexing method multiplexes the antenna used by the auxiliary Wi-Fi chip and uses it as a backup antenna for the main Wi-Fi chip.
  • the device is equipped with dual Wi-Fi chips. Under the premise of realizing the multiplexing of antennas, the number of antennas is reduced as much as possible.
  • embodiments of the present application provide an antenna multiplexing method, which method is applied to an electronic device including a first Wi-Fi chip and a second Wi-Fi chip.
  • the first Wi-Fi chip transmits and receives data through the first antenna.
  • signal the second Wi-Fi chip sends and receives signals through the second antenna.
  • the method includes: when the electronic device meets preset conditions, the electronic device determines whether the first Wi-Fi chip enables the second antenna to send and receive signals.
  • the preset conditions include: When the signal quality of the signal sent and received by the first Wi-Fi chip through the first antenna is lower than the preset threshold, the folding form of the electronic device changes, a user's trigger operation is received, or the electronic device is in a preset scene; when the second Wi-Fi chip When the second antenna is not enabled to send and receive signals, the electronic device controls the first Wi-Fi chip to switch to sending and receiving signals through the second antenna.
  • the electronic device can perform communication services through dual Wi-Fi chips, thereby increasing the communication rate of the service, increasing network bandwidth, and reducing communication experiments.
  • the second antenna can be used as a backup antenna required by the first Wi-Fi chip, allowing the first Wi-Fi chip to switch antennas. needs, and the number of antennas configured in the device is reduced as much as possible, which reduces the process difficulty of antenna design and reduces the production cost of electronic equipment.
  • the method before the electronic device controls the first Wi-Fi chip to switch to transmitting and receiving signals through the second antenna, the method further includes: the electronic device detects that the first Wi-Fi chip transmits and receives signals through the second antenna.
  • the signal quality of the signal is higher than the signal quality of the first Wi-Fi chip sending and receiving signals through the first antenna.
  • the signal quality of the first Wi-Fi chip transmitting and receiving signals through the first antenna or the second antenna can be determined according to one or more of the following parameters: received signal strength RSSI, signal to interference plus noise ratio SINR, reference signal received power RSRP , reference signal reception quality RSRQ.
  • the electronic device can use the received signal strength RSSI as a judgment indicator of signal quality.
  • it can also be combined with other indicators that are strongly related to signal quality to make a combined judgment, such as negotiation rate, packet error rate, etc.
  • the first Wi-Fi chip can send and receive signals with optimal signal strength when working, ensuring communication quality when the first Wi-Fi chip sends and receives signals.
  • the antenna polarization directions or patterns of the first antenna and the second antenna are different.
  • Designing the first antenna and the second antenna as antennas with different antenna polarization directions or patterns can satisfy the communication quality of the first Wi-Fi chip when the electronic device is in different folded forms, ensuring that the electronic device can operate in various states. In all folding forms, it can have better performance indicators and coverage effects.
  • the antenna polarization directions or patterns of the first antenna and the second antenna are complementary. In this way, it can be ensured that there is no signal coverage blind spot when the electronic device uses the first Wi-Fi chip for Wi-Fi communication.
  • the second Wi-Fi chip enables the second antenna to send and receive signals when the electronic device runs a preset application and/or starts the screen casting function.
  • the second Wi-Fi chip can control the second Wi-Fi chip to work when the electronic device is in a multi-device collaboration and/or multi-network concurrent scenario. status, so that electronic devices can have better communication quality when they are in multi-device collaboration and/or multi-network concurrency scenarios.
  • the method further includes: when the electronic device runs a preset application or starts a screen casting function, the electronic device The first Wi-Fi chip is controlled to send and receive signals through the first antenna, and the second Wi-Fi chip is controlled to send and receive signals through the second antenna.
  • the electronic device can switch the second antenna currently used by the first Wi-Fi chip to the first antenna, so that the second Wi-Fi chip can use the second antenna to transmit and receive. signal, ensuring that the electronic device can send and receive signals through the dual Wi-Fi chips again after the first Wi-Fi chip uses the second antenna to send and receive signals.
  • the method further includes: when the electronic device detects that the first Wi-Fi chip transmits and receives signals through the second antenna When the signal quality of the signal is lower than the signal quality of the first Wi-Fi chip transmitting and receiving signals through the first antenna, the electronic device controls the first Wi-Fi chip to switch back to transmitting and receiving signals through the first antenna; wherein, the electronic device controls the first Wi-Fi chip to switch back to transmitting and receiving signals through the first antenna.
  • the signal quality of the Wi-Fi chip transmitting and receiving signals through the second antenna is lower than the signal quality of the electronic device controlling the first Wi-Fi chip transmitting and receiving signals through the first antenna.
  • the first Wi-Fi chip can switch to using the first antenna to send and receive signals when the signal quality becomes weak while using the second antenna to send and receive signals, thereby ensuring the communication quality of the first Wi-Fi chip and achieving
  • the first Wi-Fi chip dynamically adjusts the antenna used by the first Wi-Fi chip according to the signal quality when different antennas send and receive signals.
  • the antenna types of the first antenna and the second antenna include: IFA antenna, PIFA antenna, or Slot antenna.
  • this application provides an electronic device, which may include: a first Wi-Fi chip, a second Wi-Fi chip, a first antenna, a second antenna, a memory, and one or more processors, and one or more programs; when one or more processors execute one or more programs, the electronic device implements the method described in the first aspect or any implementation manner of the first aspect.
  • embodiments of the present application provide a computer-readable storage medium, including instructions.
  • the instructions When the instructions are run on an electronic device, the electronic device executes the implementation as described in the first aspect or any implementation manner of the first aspect. described method.
  • embodiments of the present application provide a computer program product.
  • the computer program product When the computer program product is run on a computer, it causes the computer to execute the method described in the first aspect or any implementation manner of the first aspect.
  • Figure 1A is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application.
  • Figure 1B is a schematic diagram of the software structure of the electronic device provided by the embodiment of the present application.
  • Figure 2 shows a multi-antenna scenario provided by an embodiment of the present application
  • Figure 3 is another multi-antenna scenario provided by the embodiment of the present application.
  • Figure 4 is another multi-antenna scenario provided by the embodiment of the present application.
  • FIG. 5 is a schematic flowchart of the antenna multiplexing method provided by the embodiment of the present application.
  • Figure 6 is a schematic diagram of a scenario in which the electronic device 100 uses dual Wi-Fi chips to communicate in the multi-device collaboration scenario provided by the embodiment of the present application;
  • FIG. 7 is a schematic diagram of a scenario in which the electronic device 100 uses dual Wi-Fi chips to communicate in the multi-network concurrent scenario provided by the embodiment of the present application.
  • first and second are used for descriptive purposes only and shall not be understood as implying or implying relative importance or implicitly specifying the quantity of indicated technical features. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, “plurality” The meaning is two or more.
  • a laptop computer can use a wireless fidelity (Wi-Fi) network to access the Internet and at the same time use the Wi-Fi network to communicate with a screen projection device and activate the screen projection function of the laptop computer, thereby satisfying the user's needs to access the Internet at the same time. and the need to use the screencasting function.
  • Wi-Fi wireless fidelity
  • the notebook computer has multiple folding configurations, and its opening and closing angles can present angles such as 0 degrees, 110 degrees, 180 degrees, 360 degrees, etc. Then, for a notebook computer that can perform communication services in multiple folding forms, the antenna of the notebook computer needs to have good performance indicators and coverage effects in all folding forms to ensure that the notebook computer can perform communication services in various folding forms. There is good communication effect in all forms.
  • a Wi-Fi chip can be added to ensure the concurrent communication efficiency of multiple services through dual Wi-Fi chips.
  • a backup antenna that can be switched to the backup antenna to enhance the signal strength when the antenna signal is weak.
  • adding another Wi-Fi chip will require a set of antennas for the additional Wi-Fi chip, plus a backup antenna, which will require a total of additional 100% on the laptop. Equipped with two sets of antennas, this will increase the production cost of electronic equipment and make the antenna design process more complex.
  • the antenna multiplexing method is suitable for electronic devices containing dual Wi-Fi chips.
  • the dual Wi-Fi chips include: a main Wi-Fi chip and an auxiliary Wi-Fi chip. Wi-Fi chip.
  • this antenna multiplexing method can reuse the antenna corresponding to the auxiliary Wi-Fi chip and the backup antenna required by the main Wi-Fi chip to reduce the number of antennas that need to be added as much as possible.
  • the electronic device may be equipped with a main antenna and a multiplexed antenna.
  • the main antenna is the antenna corresponding to the main Wi-Fi chip
  • the multiplexed antenna is the antenna corresponding to the auxiliary Wi-Fi chip. That is to say, the main antenna is used for To send and receive signals from the main Wi-Fi chip, the multiplexed antenna can be used to send and receive signals from the auxiliary Wi-Fi chip. In addition, the multiplexed antenna can also be used to send and receive signals from the main Wi-Fi chip.
  • the electronic device can determine whether the main Wi-Fi chip needs to switch to a multiplexed antenna based on the working status of the auxiliary Wi-Fi chip and the signal quality when the main Wi-Fi chip uses different antennas to send and receive signals. Use the antenna to send and receive signals from the main Wi-Fi chip or the auxiliary Wi-Fi chip.
  • the main Wi-Fi chip can communicate with the best signal strength by switching the main antenna and the multiplexed antenna, ensuring that electronic devices use the antenna to send and receive signals. communication quality.
  • the antenna corresponding to the auxiliary Wi-Fi chip can also be used as the main Wi-Fi chip.
  • the electronic device only needs to be equipped with two sets of antennas. These two sets of antennas simultaneously meet the configuration requirements of the dual Wi-Fi chips of the electronic device, ensure the communication effect of the electronic device, and reduce the number of antennas of the electronic device as much as possible. The quantity reduces the process difficulty of antenna design and reduces the production cost of electronic equipment.
  • FIG. 1A shows a schematic diagram of the hardware structure of the electronic device 100 .
  • the electronic device 100 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (personal digital assistant) digital assistant (PDA), augmented reality (AR) device, virtual reality (VR) device, artificial intelligence (AI) device, wearable device, vehicle-mounted device, smart home device and/or Smart city equipment, etc., the embodiments of this application do not place special restrictions on the specific types of electronic equipment.
  • PDA personal digital assistant
  • AR augmented reality
  • VR virtual reality
  • AI artificial intelligence
  • the electronic device 100 may be a device having multiple folded configurations, and the folded configuration may refer to the placement configuration of the electronic device 100 during operation.
  • a laptop can work at an opening and closing angle of 0 degrees, or at an opening and closing angle of 11 degrees, or at an opening and closing angle of 180 degrees, or at a opening and closing angle of 360 degrees. Work under conditions. When a laptop works at different opening and closing angles, the coverage of the antenna will change, thereby changing the quality of the communication signal and affecting the network experience. At this time, the electronic device 100 can ensure communication quality by switching antennas.
  • the electronic device 100 may be a laptop computer, a folding screen mobile phone, or the like.
  • the electronic device 100 may include a processor 101, a memory 102, a wireless communication module 103, an antenna 103A, an antenna 103B, an antenna 103C, an antenna 103D, a USB interface 104, a power switch 105, a sensor module 106, an audio module 107, a camera 108, and a display screen. 109 etc.
  • the sensor module 106 may include a touch sensor 106A, a magnetic sensor 106B, an acceleration sensor 106C, a gyroscope sensor 106D, etc.
  • the wireless communication module 103 may include a WLAN communication module, a Bluetooth communication module, etc. The multiple parts mentioned above can transmit data through the bus.
  • the antennas included in the electronic device 100 are not limited to the antenna 103A, the antenna 103B, the antenna 103C, and the antenna 103D mentioned above. In other embodiments of the present application, the electronic device 100 may also include other more or less antennas. Moreover, the above-mentioned antenna is an antenna proposed for the Wi-Fi function of the electronic device 100. The electronic device 100 may also include an antenna for implementing other functions, such as a Bluetooth function, a GPS function, or the above-mentioned antenna. It can also be used to implement other functions, which is not limited in the embodiments of this application.
  • the processor 101 may include one or more processing units.
  • the processor 101 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • the processor 101 can obtain the working status of the secondary Wi-Fi chip, that is, whether the secondary Wi-Fi chip is sending and receiving signals.
  • the processor 101 can also combine the working status of the secondary Wi-Fi chip, and, The main Wi-Fi chip uses the signal quality when sending and receiving signals from different antennas to determine whether to switch the antenna used by the main Wi-Fi chip.
  • NPU is a neural network (NN) computing processor.
  • NN neural network
  • Intelligent cognitive applications of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, etc.
  • Memory 102 may be used to store computer executable program code, which may include instructions.
  • the processor 101 executes instructions stored in the memory 102 to execute various functional applications and data processing of the electronic device 100 .
  • the memory 102 may include an area for storing programs and an area for storing data.
  • the memory 102 may include high-speed random access memory, and may also include non-volatile memory, such as one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices.
  • the wireless communication function of the electronic device 100 can be implemented through the antenna 103A, the antenna 103B, the antenna 103C, the antenna 103D, the wireless communication module 103, the modem processor and the baseband processor.
  • the antennas 103A, 103B, 103C and 103D may be used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • a 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 baseband processor After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor.
  • the application processor outputs sound signals through the audio device, or displays images or videos through the display screen 109 .
  • the wireless communication module 103 can provide applications on the electronic device 100 including wireless local area networks (WLAN), Bluetooth (bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 103 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 103 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the wireless communication module 103 receives electromagnetic waves through the antenna 103A, performs filtering, amplification and other processing on the received electromagnetic waves, and transmits them to the modem processor for demodulation.
  • the wireless communication module 103 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation through the antenna 103A.
  • the wireless communication module 103 may include a WLAN communication module and a Bluetooth communication module.
  • the electronic device 100 can send and receive the Bluetooth signal of the Bluetooth communication module through any one of the antenna 103A, the antenna 103B, the antenna 103C, and the antenna 103D.
  • the WLAN communication module may include two Wi-Fi chips: a main Wi-Fi chip and an auxiliary Wi-Fi chip. Wi-Fi chips can provide WLAN solutions applied to electronic devices 100, modulating transmission data into wireless signals for reception by related devices that support Wi-Fi technology, or receiving wireless signals sent by related devices that support Wi-Fi technology. signal and demodulate it into a digital signal.
  • the main Wi-Fi chip is connected to the antenna 103A and the antenna 103B by default, that is, the main Wi-Fi chip sends and receives signals through the antenna 103A and the antenna 103B by default, and the auxiliary Wi-Fi chip is connected to the antenna 103C and the antenna 103D by default, that is, the auxiliary Wi-Fi chip By default, signals are sent and received through antenna 103C and antenna 103D.
  • antenna 103A, antenna 103B, antenna 103C, and antenna 103D can support 2.4G and 5G frequency bands.
  • embodiments of the present application do not limit the number of antennas connected to one Wi-Fi chip.
  • the main Wi-Fi chip can be connected to two antennas, and the auxiliary Wi-Fi chip can be connected to only one antenna.
  • the WLAN communication module may also include more Wi-Fi chips, which is not limited in the embodiments of this application.
  • the USB interface 104 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through them. The interface can also be used to connect other electronic devices, such as AR devices wait.
  • the power switch 105 may be used to control power supply to the electronic device 100 .
  • Touch sensor 106A is also called a "touch device”.
  • the touch sensor 106A can be disposed on the display screen 109.
  • the touch sensor 106A and the display screen 109 form a touch screen, which is also called a "touch screen”.
  • Touch sensor 106A is used to detect touch operations on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the touch event type.
  • Visual output related to the touch operation may be provided through the display screen 109 .
  • the touch sensor 106A may also be disposed on the surface of the electronic device 100 in a position different from that of the display screen 109 .
  • Magnetic sensor 106B includes a Hall sensor.
  • the electronic device 100 may utilize the magnetic sensor 106B to detect the opening and closing of the flip holster.
  • the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 106B. Then, based on the detected opening and closing status of the leather case or the opening and closing status of the flip cover, features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 106C can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices and be used in horizontal and vertical screen switching, pedometer and other applications.
  • the gyro sensor 106D may be used to determine the motion posture of the electronic device 100 .
  • the angular velocity of electronic device 100 about three axes ie, x, y, and z axes
  • the audio module 107 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. Audio module 107 may also be used to encode and decode audio signals. In some embodiments, the audio module 107 may be disposed in the processor 101, or some functional modules of the audio module 107 may be disposed in the processor 101.
  • Speaker 107A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 107A, or listen to prompt sounds.
  • Microphone 107B also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the electronic device 100 may be provided with at least one microphone 107B.
  • the electronic device 100 may be provided with two microphones 107B, which in addition to collecting sound signals, may also implement a noise reduction function.
  • the electronic device 100 can also be provided with three, four or more microphones 107B to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions, etc.
  • Camera 108 is used to capture still images or video.
  • the object passes through the lens to produce an optical image that is projected onto the photosensitive element.
  • the photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other format image signals.
  • the electronic device 100 may include 1 or N cameras 108, where N is a positive integer greater than 1.
  • the electronic device 100 can implement display functions through a GPU, a display screen 109, an application processor, and the like.
  • the GPU is an image processing microprocessor and is connected to the display screen 109 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 101 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the display screen 109 is used to display images, videos, etc.
  • Display 109 includes a display panel.
  • the display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • AMOLED organic light-emitting diode
  • FLED flexible light-emitting diode
  • Miniled MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc.
  • the electronic device 100 may include 1 or N display screens 109, where N is a positive integer greater than 1.
  • 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 figures, or some components may be combined, some components may be separated, or some components may be arranged differently.
  • the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
  • the electronic device may be a portable terminal device equipped with iOS, Android, Microsoft or other operating systems, such as a mobile phone, a tablet, a wearable device, etc., or a laptop computer (Laptop) with a touch-sensitive surface or touch panel.
  • Non-portable terminal devices such as desktop computers with touch-sensitive surfaces or touch panels.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. This embodiment of the present invention takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 .
  • FIG. 1B is a schematic diagram of the software structure of the electronic device 100 according to the embodiment of the present invention.
  • the layered architecture divides the software into several layers, and each layer has clear roles and division of labor.
  • the layers communicate through software interfaces.
  • the Android system is divided into four layers, from top to bottom: application layer, application framework layer, Android runtime and system library, and kernel layer.
  • the application layer can include a series of application packages.
  • the application package can include camera, gallery, calendar, calling, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
  • the application framework layer provides an application programming interface (API) and programming framework for applications in the application layer.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • the application framework layer can include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
  • a window manager is used to manage window programs.
  • the window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make this data accessible to applications.
  • Said data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, etc.
  • a view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide communication functions of the electronic device 100 .
  • call status management including connected, hung up, etc.
  • the resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.
  • the notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a beep sounds, the electronic device vibrates, the indicator light flashes, etc.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library contains two parts: one is the functional functions that need to be called by the Java language, and the other is the core library of Android.
  • the application layer and application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and application framework layer into binary files.
  • the virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
  • System libraries can include multiple functional modules. For example: surface manager (surface manager), media libraries (Media Libraries), 3D graphics processing libraries (for example: OpenGL ES), 2D graphics engines (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing.
  • 2D Graphics Engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the following exemplifies the workflow of the software and hardware of the electronic device 100 in conjunction with capturing the photographing scene.
  • the corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes touch operations into raw input events (including touch coordinates, timestamps of touch operations, and other information). Raw input events are stored at the kernel level.
  • the application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation and the control corresponding to the click operation as a camera application icon control as an example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer. Camera 193 captures still images or video.
  • the electronic device 100 may include: a processing unit, a main Wi-Fi chip, a secondary Wi-Fi chip, multiple signal switching units, and multiple antennas.
  • the processing unit is used to control and manage the work of the main Wi-Fi chip and the auxiliary Wi-Fi chip.
  • the processing unit may be a processor 101, and the processing unit may be connected to the main Wi-Fi chip and the auxiliary Wi-Fi chip through a communication interface.
  • the main Wi-Fi chip and the auxiliary Wi-Fi chip can send and receive wireless signals through the antenna, allowing the electronic device 100 to establish a Wi-Fi communication connection with other devices.
  • the signal switching unit can be used to control Control the connection of different lines.
  • the signal switching unit may be a radio frequency switch, including a single-pole double-throw switch or a four-pole double-throw switch.
  • the electronic device 100 can control the connectivity of the Wi-Fi chip to different antennas through the signal switching unit to control the antennas used by the main Wi-Fi chip and the auxiliary Wi-Fi chip to send and receive signals.
  • processor 101 the main Wi-Fi chip, and the auxiliary Wi-Fi chip, please refer to the relevant content in Figure 1A, and will not be described again here.
  • the processing unit is connected to one end of the main Wi-Fi chip and the auxiliary Wi-Fi chip respectively.
  • the A1 end of the signal switching unit A is connected to one end of the main Wi-Fi chip.
  • the A2 end of the signal switching unit A is connected to the antenna. 1.
  • the A3 terminal is connected to the C1 terminal of the signal switching unit C, the B1 terminal of the signal switching unit B is connected to one end of the main Wi-Fi chip, the B2 terminal of the signal switching unit B is connected to the antenna 2, and the B3 terminal is connected to the C2 terminal of the signal switching unit C.
  • the C3 terminal and C4 terminal of the signal switching unit C are respectively connected to both ends of the auxiliary Wi-Fi chip, and the C5 terminal and C6 terminal of the signal switching unit C are connected to the antenna 3 and the antenna 4 respectively.
  • the signal switching unit A and the signal switching unit B may be single-pole double-throw switches, and the signal switching unit C may be a four-pole double-throw switch.
  • the processing unit, the main Wi-Fi chip, the auxiliary Wi-Fi chip, the signal switching units A-C, and the antennas 1-4 may also have other interfaces and be connected to other devices, such as signal switching.
  • Units A-C also have interfaces for connecting power supplies and input control signals. Among them, the power supply is used to supply power to the signal switching units A-C, and the control signal is used to control the conduction of different lines by the signal switching units A-C.
  • the control signal can be used to control the connection between the A1 terminal and the A2 terminal of the signal switching unit A (see the solid line in the signal switching unit A shown in Figure 2).
  • the main Wi -Fi chip can send and receive signals through antenna 1; alternatively, the control signal can be used to control the connection from the A1 end to the A3 end of the signal switching unit A (see the dotted line in the signal switching unit A shown in Figure 2).
  • the main Wi -The Fi chip does not send and receive signals through antenna 1.
  • controlling the connection of the signal switching unit C to the line can enable the main Wi-Fi chip to send and receive signals through antenna 3.
  • the control signal can be used to control the connection between the B1 end and the B2 end of the signal switching unit B (see the solid line in the signal switching unit B shown in Figure 2).
  • the main Wi -Fi chip can send and receive signals through antenna 2; alternatively, the control signal can be used to control the connection from B1 end to B3 end of signal switching unit B (see the dotted line in signal switching unit B shown in Figure 2).
  • the main Wi -The Fi chip does not send and receive signals through the antenna 2.
  • controlling the connection of the signal switching unit C line allows the main Wi-Fi chip to send and receive signals through the antenna 4.
  • the control signal can be used to control the connection between the C1 terminal and the C5 terminal of the signal switching unit C (see the dotted line in the signal switching unit C shown in Figure 2).
  • the main Wi-Fi chip can send and receive signals through the antenna 3; in addition, the control signal can also be used to control the connection of the C2 end to the C6 end of the signal switching unit C (see Figure 2 The dotted line in the signal switching unit C shown above).
  • the main Wi-Fi chip sends and receives signals through the antenna 4.
  • control signal can be used to control the connection between the C3 terminal and the C5 terminal of the signal switching unit C (see the solid line in the signal switching unit C shown in Figure 2).
  • the auxiliary Wi-Fi chip can send and receive signals through the antenna 3 ;
  • the control signal can also be used to control the connection from the C4 end to the C6 end of the signal switching unit C (see the solid line in the signal switching unit C shown in Figure 2).
  • the auxiliary Wi-Fi chip can also pass the antenna 4. Send and receive signals.
  • signal switching unit A can connect A1 to A2 by default, and signal switching unit B can connect B1 to B2 by default.
  • the main Wi-Fi chip can send and receive signals through antennas 1 and 2 by default
  • signal switching unit C can The C3 end to the C5 end and the C4 end to the C6 end can be connected by default.
  • the auxiliary Wi-Fi chip can send and receive signals through antennas 3 and 4 by default.
  • the signal switching unit AC is used to control the antennas used by the main Wi-Fi chip and the auxiliary Wi-Fi chip to send and receive signals.
  • the embodiment of the present application does not limit the specific circuit structure of the signal switching unit AC.
  • the electronic device 100 in addition to controlling the antenna connected to the main Wi-Fi chip through the single-pole double-throw switch shown in Figure 2, the electronic device 100 can also connect a switch to the A1-A2 terminal line shown in Figure 2, and connect the A1 A switch is connected to the terminal-A3 terminal line. By controlling the connection and disconnection of these two switches, the purpose of switching the antenna connected to the main Wi-Fi chip is achieved.
  • the main Wi-Fi chip can provide four interfaces for connecting antenna 1 to antenna 4 respectively, and control the antennas connected to the main Wi-Fi chip by controlling the connection and disconnection of the switch between the interfaces and the antennas, and , in this case, the main Wi-Fi chip can also send and receive signals through antenna 1-antenna 3, or antenna 1-antenna 4 at the same time. Therefore, embodiments of the present application do not limit the number of antennas used by the Wi-Fi chip when transmitting and receiving signals. Similarly, the embodiments of this application describe the specific circuit structure of the signal switching unit shown in Figures 3 and 4, as well as the There is no limit on the number of antennas used by the Wi-Fi chip when sending and receiving signals, so I won’t go into details below.
  • the main Wi-Fi chip can be in dual-antenna working mode by default.
  • a preferred possibility is that when the main Wi-Fi chip switches the connected antenna, it can switch the two antennas used by the main Wi-Fi chip at the same time. Then, the switching rhythms of signal switching unit A and signal switching unit B are synchronized.
  • the electronic device 100 can simultaneously control the signal switching unit A and connect the A1 end to the A2 end of the signal switching unit A, so that the main Wi-Fi chip uses antenna 1 and antenna 2 to send and receive signals at the same time, or the electronic device 100 can control the signal switching unit at the same time.
  • the A1 end to A3 end of A and the B1 end to B3 end of signal switching unit B are connected, and further combined with the connection of the signal switching unit C line, the main Wi-Fi chip uses antenna 3 and antenna 4 to send and receive signals at the same time.
  • the main Wi-Fi chip shown in Figures 3 and 4 can also be in the dual-antenna working mode by default.
  • the electronic device 100 can control the signal switching unit to realize that the main Wi-Fi chip uses antenna 1 and antenna 2 at the same time, or, Antenna 3 and antenna 4 send and receive signals, which will not be described in detail below.
  • the main Wi-Fi chip can also send and receive signals through antenna 1 and antenna 3, or antenna 2 and antenna 4, or the main Wi-Fi chip can also send and receive signals through antenna 1 and antenna 4, or antenna 2 and antenna 3 signal, the embodiment of this application does not limit the antenna connected to the Wi-Fi chip.
  • the electronic device 100 may include: a processing unit, a main Wi-Fi chip, a secondary Wi-Fi chip, multiple signal switching units, and multiple antennas.
  • the structural schematic diagram shown in FIG. 3 is similar to the structural schematic diagram shown in FIG. 2 .
  • the difference is that the signal switching unit C shown in FIG. 2 is replaced by the signal switching units D and E shown in FIG. 3 .
  • the D1 terminal of the signal switching unit D is connected to the A3 terminal of the signal switching unit A
  • the D2 terminal of the signal switching unit D is connected to one end of the auxiliary Wi-Fi chip
  • the D3 terminal of the signal switching unit D is connected to the antenna 3
  • the D3 terminal of the signal switching unit E is connected to the antenna 3.
  • the E1 terminal is connected to the B3 terminal of the signal switching unit B, the E2 terminal of the signal switching unit E is connected to one end of the auxiliary Wi-Fi chip, and the E3 terminal of the signal switching unit E is connected to the antenna 4.
  • the signal switching units D and F can be single-pole double-throw switches.
  • control signal can be used to control the main Wi-Fi chip to send and receive signals through the antenna 1.
  • the control signal can be further controlled by controlling the signal, so that the main Wi-Fi chip sends and receives signals through the antenna 3.
  • control signal can be used to control the main Wi-Fi chip to send and receive signals through the antenna 2.
  • the control signal can be further connected through the control signal switching unit E, so that the main Wi-Fi chip sends and receives signals through the antenna 4 .
  • the control signal can be used to control the connection between the D1 end and the D3 end of the signal switching unit D (see the dotted line in the signal switching unit D shown in Figure 3).
  • the main Wi-Fi chip can send and receive signals through the antenna 3; alternatively, the control signal can be used to control the connection of the D2 end to the D3 end of the signal switching unit D (see Figure 3 The solid line in the signal switching unit D), at this time, the auxiliary Wi-Fi chip can send and receive signals through the antenna 3.
  • the control signal can be used to control the connection between the E1 end and the E3 end of the signal switching unit E (see the dotted line in the signal switching unit E shown in Figure 3).
  • the main Wi-Fi chip can send and receive signals through the antenna 4; alternatively, the control signal can be used to control the connection of the E2 end to the E3 end of the signal switching unit E (see Figure 3 The solid line in the signal switching unit E), at this time, the auxiliary Wi-Fi chip can send and receive signals through the antenna 4.
  • signal switching unit A can connect A1 to A2 by default, and signal switching unit B can connect B1 to B2 by default.
  • the main Wi-Fi chip can send and receive signals through antennas 1 and 2 by default, and signal switching unit D
  • the D2 terminal can be connected to the D3 terminal by default, and the signal switching unit E can be connected to the E2 terminal to the E3 terminal by default.
  • the auxiliary Wi-Fi chip can send and receive signals through antennas 3 and 4 by default.
  • the electronic device 100 may include: a processing unit, a main Wi-Fi chip, a secondary Wi-Fi chip, a signal switching unit, and multiple antennas.
  • the structural schematic diagram shown in Figure 4 is similar to the structural schematic diagram shown in Figure 2.
  • One end of the main Wi-Fi chip and the auxiliary Wi-Fi chip are both The processing unit is connected.
  • the difference is that the signal switching unit AC shown in Figure 2 is replaced by the signal switching unit F shown in Figure 4.
  • the F1 end and F2 end of the signal switching unit F are respectively connected to the two ends of the main Wi-Fi chip
  • the F3 end and the F4 end are respectively connected to the two ends of the slave Wi-Fi chip
  • the F5 end to the F8 end are connected to the antennas 1-4 respectively.
  • the signal switching unit F may be a four-pole four-throw switch.
  • the control signal can be used to control the connection between the F1 end and the F5 end of the signal switching unit F, and the connection between the F2 end and the F6 end.
  • the main Wi-Fi chip can pass the antenna 1 , 2 to send and receive signals; or, the control signal can be used to control the connection from the F1 end to the F7 end of the signal switching unit F, and the connection from the F2 end to the F8 end (see the dotted line in the signal switching unit F shown in Figure 4), this
  • the main Wi-Fi chip can send and receive signals through antennas 3 and 4; in addition, the control signal can also be used to control the connection from the F3 end to the F7 end of the signal switching unit F, and the connection from the F4 end to the F8 end.
  • the auxiliary Wi-Fi chip can send and receive signals through antennas 3 and 4.
  • the signal switching unit E can connect the F1 terminal to the F5 terminal, the F2 terminal to the F6 terminal, the F3 terminal to the F7 terminal, and the F4 terminal to the F8 terminal by default (see the solid line in the signal switching unit F shown in Figure 4), In this way, the main Wi-Fi chip can send and receive signals through antennas 1 and 2 by default, and the auxiliary Wi-Fi chip can send and receive signals through antennas 3 and 4 by default.
  • the circuit structure shown in Figure 4 is simpler. Only one radio frequency switch can control the selection of antennas by the main Wi-Fi chip and the auxiliary Wi-Fi chip. Among them, compared with the main Wi-Fi chip in Figures 2 and 3, which needs to go through the loss of two radio frequency switches to send and receive signals through antennas 3 and 4, the circuit shown in Figure 4 only has the loss of one radio frequency switch. Therefore, The circuit shown in Figure 4 has little impact on the insertion loss of the RF path.
  • the main Wi-Fi chip can send and receive signals through antennas 1 and 2 or antennas 3 and 4.
  • Antennas 3 and 4 serve as backup antennas for the main Wi-Fi chip.
  • the main Wi-Fi chip can switch to antennas 3 and 4 to send and receive signals, or the main Wi-Fi chip can send and receive signals through antennas 1 and 2.
  • additional antennas 3 and 4 are added to transmit and receive signals.
  • the auxiliary Wi-Fi chip only transmits and receives signals through antennas 3 and 4.
  • the auxiliary Wi-Fi chip can be used when the electronic device 100 is in multi-device collaboration and/or multi-network concurrency. In the scene, it enters the working state, shares the computing workload of the main Wi-Fi chip, and transmits data simultaneously through the backup antennas, namely antennas 3 and 4, to increase the speed of concurrent multi-service communication and reduce communication delays. Specific descriptions of multi-device collaboration and multi-network concurrency can be found in subsequent method embodiments, which will not be described here.
  • the main Wi-Fi chip when the main Wi-Fi chip switches to the backup antenna to send and receive signals, the main Wi-Fi chip can only switch to one antenna. For example, when the main Wi-Fi chip sends and receives signals through antennas 1 and 2, if the signal strength is weak , then the main Wi-Fi chip can switch antenna 2 to antenna 4. At this time, the main Wi-Fi chip can send and receive signals through antennas 1 and 4.
  • the embodiment of the present application does not limit the number of antennas switched by the Wi-Fi chip.
  • FIG. 5 shows a schematic flowchart of the antenna multiplexing method provided by the embodiment of the present application.
  • the method includes:
  • the electronic device 100 controls the main Wi-Fi chip to send and receive signals through the main antenna.
  • the electronic device 100 includes dual Wi-Fi chips: a primary Wi-Fi chip and a secondary Wi-Fi chip.
  • the antenna configured by default on the main Wi-Fi chip can be called the main antenna
  • the antenna configured by default on the auxiliary Wi-Fi antenna can be called a multiplex antenna.
  • the antenna types of the main antenna and the multiplexed antenna may include but are not limited to: inverted F-shaped antenna (Inverted F-shaped Antenna, IFA antenna), planar inverted F-shaped antenna (Planar Inverted F-shaped Antenna, PIFA antenna), slot antenna Slot antenna and so on.
  • the antenna polarization directions or patterns of the main antenna and the multiplexed antenna may be different.
  • the antenna polarization directions or patterns of the main antenna and the multiplexed antenna are complementary.
  • the electronic device 100 is not limited to only including two Wi-Fi chips. In other embodiments of the present application, the electronic device 100 may also include three Wi-Fi chips or four Wi-Fi chips, etc. , the embodiment of the present application does not limit the number of Wi-Fi chips included in the electronic device 100.
  • the main antenna or the multiplexed antenna may include one or more antennas. For example, the main antenna and the multiplexed antenna may include 2 antennas.
  • the main antenna may refer to antennas 1 and 2
  • the multiplexed antenna may refer to antennas 3 and 4.
  • the embodiments of this application do not limit the names of the main Wi-Fi chip, the auxiliary Wi-Fi chip, the main antenna, and the multiplexed antenna.
  • the main Wi-Fi chip can also be called the original Wi-Fi chip, the first Wi-Fi chip, and the first Wi-Fi chip.
  • -Fi chip, auxiliary Wi-Fi chip can also be called new Wi-Fi chip, second Wi-Fi chip, main antenna can also be called original antenna, first antenna, multiplexed antenna can also be called Add new antennas, second antennas, etc.
  • the names of the above components do not constitute limitations on the role or function of the component.
  • the electronic device 100 can control the main Wi-Fi chip to send and receive signals through the main antenna when the Wi-Fi function needs to be used, such as browsing the web, watching videos, etc. via Wi-Fi.
  • the electronic device 100 can connect the main Wi-Fi chip to the antennas 1 and 2 by controlling the connection from the A1 end to the A2 end of the signal switching unit A, and controlling the connection from the B1 end to the B2 end of the signal switching unit B. , to achieve the purpose of the electronic device 100 controlling the main Wi-Fi chip to send and receive signals through the main antenna.
  • the electronic device 100 can connect the F1 end to the F5 end and the F2 end to the F6 end of the control signal switching unit F, so that the main Wi-Fi chip connects to the antennas 1 and 2, so that the electronic device 100 controls the main Wi-Fi chip.
  • the purpose of the Fi chip is to send and receive signals through the main antenna.
  • the electronic device 100 triggers a decision whether to switch the antenna used by the main Wi-Fi chip.
  • the preset conditions may include one or more of the following:
  • the electronic device 100 can monitor the signal quality of the main Wi-Fi chip when it is working, and when the signal quality of the main Wi-Fi chip is lower than the preset threshold, trigger the decision whether to switch the antenna used by the main Wi-Fi chip.
  • the coverage effect of the antenna will change, affecting the signal quality when the main Wi-Fi chip is working. Therefore, when the folded form of the electronic device 100 changes, it can be triggered to determine whether to switch the antenna used by the main Wi-Fi chip.
  • the electronic device 100 can detect the posture change of the electronic device 100 through sensor devices, such as a gyroscope sensor, an acceleration sensor, etc., and then determine the folded form of the electronic device 100 .
  • sensor devices such as a gyroscope sensor, an acceleration sensor, etc.
  • This trigger operation can be used to control the main Wi-Fi chip to maintain optimal quality when sending and receiving signals, or to allow the main Wi-Fi chip to switch antennas.
  • the electronic device 100 may trigger and determine whether to switch the antenna used by the main Wi-Fi chip in response to the operation.
  • the electronic device 100 is in a preset scene
  • the electronic device 100 needs to prioritize ensuring the signal quality when the main Wi-Fi chip sends and receives signals, so that the signal quality when the main Wi-Fi chip sends and receives signals through the antenna remains optimal.
  • the preset scene may refer to the Wi-Fi communication in which the electronic device 100 executes a designated application or designated function through the main Wi-Fi chip, such as a game application, a video conferencing function, etc.
  • the designated application or designated function may be configured by the developer in advance.
  • the preset can also be preset by the user in advance, and the embodiments of the present application do not limit this.
  • the preset scene may refer to a video conference scene, that is, when the electronic device 100 performs Wi-Fi communication of the video conferencing application through the main Wi-Fi chip and conducts the video conference, in order to ensure the signal quality of the video conference, the electronic device 100 may When the device 100 performs Wi-Fi communication for a video conferencing application through the main Wi-Fi chip, it determines whether to switch the antenna used by the main Wi-Fi chip.
  • the electronic device 100 can determine whether to switch the antenna used by the main Wi-Fi chip by determining whether the secondary Wi-Fi chip is in a working state. This is because the secondary Wi-Fi chip uses the multiplexed antenna to send and receive signals. When the secondary Wi-Fi chip is not in working state, the multiplexed antenna is not occupied. At this time, the main Wi-Fi chip can use the multiplexed antenna as a backup antenna. Use this multiplexed antenna to send and receive signals.
  • the electronic device 100 determines whether the secondary Wi-Fi chip is in working state.
  • the electronic device 100 can control the secondary Wi-Fi chip to enter the working state in a dual Wi-Fi scenario, and control the secondary Wi-Fi chip to exit the working state when exiting the dual Wi-Fi scenario.
  • the auxiliary Wi-Fi chip When the auxiliary Wi-Fi chip is in working state, specifically the auxiliary Wi-Fi chip sends and receives signals through the multiplexed antenna.
  • the secondary Wi-Fi chip can be connected to the processor through pins, and the electronic device 100 can determine whether the secondary Wi-Fi chip is in a working state by reading information on the pins.
  • the dual Wi-Fi scenario may include one or more of the following:
  • the multi-device collaboration function is a distributed technology that can achieve cross-system and cross-device collaboration. After multiple devices are connected, resource sharing and collaborative operations can be achieved.
  • the multi-device collaboration scenario may refer to a screen casting scenario.
  • the electronic device 100 can trigger the auxiliary Wi-Fi chip to enter the working state when detecting that the multi-device collaboration function is activated.
  • the multi-device collaboration scenario as a screen projection scenario as an example, when the electronic device 100 detects that the screen projection function is used, it triggers the auxiliary Wi-Fi chip to enter the working state.
  • FIG. 6 exemplarily shows a schematic diagram of a scenario in which the electronic device 100 uses dual Wi-Fi chips to communicate in a multi-device collaboration scenario.
  • the electronic device 100 uses the 2.4G/5G frequency band and CH36 channel to establish a Wi-Fi connection with the router through the main Wi-Fi chip, and performs Internet services such as network downloading and web browsing.
  • the auxiliary Wi-Fi -Fi chip uses the 5G frequency band and CH149 channel to communicate with the electronic device 200, and then performs the screen projection service of the electronic device 100.
  • Multi-network concurrency means that the electronic device 100 can establish Wi-Fi connections with multiple channels of the router at the same time, enabling multiple channels to work at the same time, speeding up the data transmission rate, and improving communication quality. At this time, the electronic device 100 can connect to the two channels through the main Wi-Fi chip and the auxiliary Wi-Fi chip respectively to achieve communication in a multi-network concurrent scenario.
  • the electronic device 100 can establish Wi-Fi connections with multiple routers at the same time.
  • the electronic device 100 can be connected to multiple channels of the router at the same time.
  • the electronic device 100 may be provided with an application whitelist. Applications in the whitelist are allowed to be used in multi-network concurrent scenarios. Then, when the electronic device 100 detects that the application in the whitelist is running, the electronic device 100 triggers the auxiliary function.
  • the Wi-Fi chip enters the working state and realizes the data transmission of the application through multiple networks concurrently, increasing the network bandwidth and improving the network speed when users use the application.
  • FIG. 7 exemplarily shows a schematic diagram of a scenario in which the electronic device 100 uses dual Wi-Fi chips to communicate in a multi-network concurrent scenario.
  • the electronic device 100 can use the 5G frequency band and CH36 channel through the main Wi-Fi chip, and use the 5G frequency band and CH149 channel through the auxiliary Wi-Fi chip to communicate with the router at the same time.
  • the dual Wi-Fi scenario mentioned in the embodiment of this application may refer to the electronic device 100 running a preset application and/or activating the screen casting function.
  • auxiliary Wi-Fi chip is not limited to entering the working state in the above scenario, and the embodiment of the present application does not limit this scenario.
  • the electronic device 100 can periodically determine whether the secondary Wi-Fi chip is in working state. At this time, the electronic device 100 can periodically determine whether the secondary Wi-Fi chip is in use at a certain interval, so that the electronic device 100 can periodically determine whether the secondary Wi-Fi chip is in use. Determine whether it is necessary to switch the antenna connected to the main Wi-Fi chip. Alternatively, the electronic device 100 can continuously determine whether the auxiliary Wi-Fi chip is in use. At this time, the electronic device 100 can monitor the working status of the auxiliary Wi-Fi chip at all times to ensure that the electronic device 100 can operate when the auxiliary Wi-Fi chip is not working. status, the antenna connected to the main Wi-Fi chip can be adjusted in time.
  • the electronic device 100 can connect the C3 end to the C5 end and the C4 end to the C6 end of the control signal switching unit C, so that the auxiliary Wi-Fi chip connects to the antennas 3 and 4, so that the electronic device 100 controls the auxiliary Wi-Fi chip.
  • the purpose of the Fi chip is to send and receive signals through multiplexed antennas.
  • the electronic device 100 can connect the D2 end to the D3 end of the signal switching unit D, and the E2 end to the E3 end of the signal switching unit E to connect the auxiliary Wi-Fi chip to the antennas 3 and 4, thereby reaching the electronic device.
  • 100 controls the purpose of the auxiliary Wi-Fi chip to send and receive signals through multiplexed antennas.
  • the electronic device 100 can connect the F3 end to the F7 end, and the F4 end to the F8 end of the control signal switching unit F, so that the auxiliary Wi-Fi chip connects to the antennas 3 and 4, so that the electronic device 100 controls the auxiliary Wi-Fi chip.
  • the purpose of the Fi chip is to send and receive signals through multiplexed antennas.
  • the electronic device 100 determines that the secondary Wi-Fi chip is in the working state, the electronic device 100 can maintain the working state of the Wi-Fi chip, that is, maintain the Wi-Fi chip to send and receive signals through the multiplexed antenna, and do not switch the use of the main Wi-Fi chip.
  • antenna that is, step S105 is performed; on the contrary, if the electronic device 100 determines that the secondary Wi-Fi chip is not in the working state, then the multiplexed antenna is not occupied at this time, and the electronic device 100 can switch the antenna used by the main Wi-Fi chip, that is, Execute step S104.
  • the electronic device 100 can further determine whether to switch the antenna used by the primary Wi-Fi chip based on the signal quality when the primary Wi-Fi chip uses different antennas.
  • the electronic device 100 can use a smart antenna algorithm to determine whether to switch the antenna of the main Wi-Fi chip based on the signal quality when the main Wi-Fi chip uses different antennas.
  • the electronic device 100 can connect the main Wi-Fi chip to the main antenna and the multiplexed antenna respectively, and determine whether to switch the main Wi-Fi by comparing the signal quality when the main Wi-Fi chip uses the main antenna and the multiplexed antenna to send and receive data. -Antenna used by Fi chip.
  • the electronic device 100 can receive signal strength (Received Signal Strength Indicator, RSSI), signal to interference plus noise ratio (Signal to Interference plus Noise Ratio, SINR), and reference signal receiving power (Reference Signal Receiving Power) when sending and receiving signals through the antenna.
  • RSSI Received Signal Strength Indicator
  • SINR Signal to Interference plus Noise Ratio
  • RSRQ Reference Signal Receiving Quality
  • the electronic device 100 can use Received Signal Strength Indicator (RSSI) as a judgment indicator of signal quality.
  • RSSI Received Signal Strength Indicator
  • it can also be combined with other indicators that are strongly related to signal quality for combined judgment, such as negotiation rate, error rate, etc. Package rate and so on.
  • the embodiments of this application do not limit the parameters used to judge signal quality.
  • the main Wi-Fi chip switches to the multiplexed antenna to send and receive signals, that is, step S104 is performed. , otherwise, the main Wi-Fi chip does not switch the antenna, that is, it performs Go to step S105.
  • step S102 the electronic device 100 can determine whether the auxiliary Wi-Fi chip is in the working state after determining that the preset conditions are met, and when it is not in the working state, switch The antenna used by the main Wi-Fi chip, or further combined with the signal quality of the main Wi-Fi chip using different antennas to send and receive signals to determine whether to switch the antenna used by the main Wi-Fi chip; or when the electronic device 100 first performs step S103, and then performs In step S102, the electronic device 100 may also first determine whether the secondary Wi-Fi chip is in the working state, and then determine whether the preset conditions are met when the secondary Wi-Fi chip is not in the working state, and switch to the primary chip when the preset conditions are met. The antenna used by the Wi-Fi chip may be further combined with the signal quality of the main Wi-Fi chip using different antennas to send and receive signals to
  • the electronic device 100 controls the main Wi-Fi chip to switch to transmit and receive signals through the multiplexed antenna.
  • the electronic device 100 determines the antenna used by the main Wi-Fi chip based on the signal quality when using different antennas in conjunction with the main Wi-Fi chip, if the electronic device 100 determines to switch the antenna used by the main Wi-Fi chip, then the main Wi-Fi chip If the signal quality when sending and receiving signals through the multiplexed antenna is higher than the signal quality when using the main antenna to send and receive signals, the electronic device 100 can switch the antenna used by the main Wi-Fi chip and control the main Wi-Fi chip to send and receive signals through the multiplexed antenna. , ensuring that the signal quality remains optimal when the main Wi-Fi chip is working.
  • the electronic device 100 can be connected through the A1 terminal to the A3 terminal of the control signal switching unit A, the B1 terminal to the B3 terminal of the control signal switching unit B, and the C1 terminal to the C5 terminal of the control signal switching unit C.
  • the C4 end to the C6 end of the signal switching unit C is connected, so that the main Wi-Fi chip is connected to the antennas 3 and 4, so that the electronic device 100 controls the main Wi-Fi chip to send and receive signals through the multiplexed antenna.
  • the electronic device 100 can be connected through the A1 terminal to the A3 terminal of the control signal switching unit A, the B1 terminal to the B3 terminal of the control signal switching unit B, and the D1 terminal to the D3 terminal of the control signal switching unit D.
  • the E1 end of the control signal switching unit E is connected to the E3 end, so that the main Wi-Fi chip is connected to the antennas 3 and 4, so that the electronic device 100 controls the main Wi-Fi chip to send and receive signals through the multiplexed antenna.
  • the electronic device 100 can connect the F1 end to the F7 end and the F2 end to the F8 end of the control signal switching unit F, so that the main Wi-Fi chip connects to the antennas 3 and 4, so that the electronic device 100 controls the main Wi-Fi chip.
  • the purpose of the Fi chip is to send and receive signals through multiplexed antennas.
  • the electronic device 100 can control the main Wi-Fi chip.
  • the Wi-Fi chip switches back to sending and receiving signals through the main antenna, and controls the auxiliary Wi-Fi chip to send and receive signals through the multiplexed antenna.
  • the electronic device 100 may also control the main Wi-Fi chip to switch back to receiving signals through the main antenna. For example, the electronic device 100 may trigger the detection of the main Wi-Fi chip when detecting that the folded form of the electronic device 100 changes, or detecting that the signal quality of the current main Wi-Fi chip using a multiplexed antenna to send and receive signals is lower than a threshold. Does the Fi chip need to switch antennas?
  • the electronic device controls the main Wi-Fi chip to keep sending and receiving signals through the main antenna.
  • the electronic device 100 determines the antenna used by the main Wi-Fi chip based on the signal quality when using different antennas in conjunction with the main Wi-Fi chip, if the electronic device 100 determines not to switch the antenna used by the main Wi-Fi chip, then the main Wi-Fi The signal quality when the chip sends and receives signals through the main antenna is higher than the signal quality when using the multiplexed antenna to send and receive signals. Then the electronic device 100 does not need to switch the antenna used by the main Wi-Fi chip and still controls the main Wi-Fi chip to use the main antenna. Send and receive signals to ensure the best signal quality when the main Wi-Fi chip is working.
  • the electronic device 100 can also control the main Wi-Fi chip to switch to receive signals through the multiplexed antenna. For example, the electronic device 100 may trigger the detection of the main Wi-Fi when detecting that the folded form of the electronic device 100 changes, or detecting that the signal quality of the current main Wi-Fi chip using the main antenna to send and receive signals is lower than a threshold. Does the chip need to switch antennas?
  • the electronic device 100 determines that the secondary Wi-Fi chip is not in a working state, it can directly use the main antenna to send and receive signals without judging whether to switch the antenna used by the main Wi-Fi chip.
  • a new multiplexed antenna is added to simultaneously send and receive signals, that is, the number of antennas used by the main Wi-Fi chip is increased when working, and the signal quality when the main Wi-Fi chip is sending and receiving signals is increased.
  • the antenna multiplexing method multiplexes the smart antenna required by the main Wi-Fi chip with the antenna configured by the auxiliary Wi-Fi chip, so that the multiplexed antennas, such as antenna 3, 4 can be used as an antenna for the main Wi-Fi chip or as an antenna for the auxiliary Wi-Fi chip, which reduces the number of antennas that need to be configured on the electronic device 100 and avoids increasing the complexity of the manufacturing process when there are too many antennas. complexity, and at the same time, under the configuration of dual Wi-Fi chips, it can reduce the delay of concurrent multi-services and improve communication efficiency. Moreover, it fully considers the signal loss of the antenna in different folding forms of the device, avoiding the problem of device failure. After changing the folding form, the communication signal becomes weaker or even interrupted, which improves the user experience.
  • each step in the above method embodiment can be completed by an integrated logic circuit of hardware in the processor or instructions in the form of software.
  • the method steps disclosed in conjunction with the embodiments of this application can be directly implemented by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • This application also provides an electronic device, which may include a memory and a processor.
  • the memory can be used to store computer programs; the processor can be used to call the computer program in the memory, so that the electronic device executes the method executed by the electronic device 100 in any of the above embodiments.
  • the present application also provides a chip system, which includes at least one processor for implementing the functions involved in the method performed by the electronic device 100 in any of the above embodiments.
  • the chip system further includes a memory, the memory is used to store program instructions and data, and the memory is located within the processor or outside the processor.
  • the chip system can be composed of chips or include chips and other discrete devices.
  • processors in the chip system there may be one or more processors in the chip system.
  • the processor can be implemented in hardware or software.
  • the processor may be a logic circuit, an integrated circuit, or the like.
  • the processor may be a general-purpose processor implemented by reading software code stored in memory.
  • the memory may be integrated with the processor or may be provided separately from the processor, which is not limited by the embodiments of the present application.
  • the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip, or may be separately provided on different chips.
  • the embodiments of this application vary on the type of memory, and The arrangement of the memory and processor is not specifically limited.
  • the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or a system on chip (SoC). It can also be a central processor (central processor unit, CPU), a network processor (network processor, NP), a digital signal processing circuit (digital signal processor, DSP), or a microcontroller (micro controller unit (MCU), or a programmable logic device (PLD) or other integrated chip.
  • FPGA field programmable gate array
  • ASIC application specific integrated circuit
  • SoC system on chip
  • CPU central processor unit
  • NP network processor
  • DSP digital signal processing circuit
  • MCU microcontroller
  • PLD programmable logic device
  • the computer program product includes: a computer program (which can also be called a code, or an instruction).
  • a computer program which can also be called a code, or an instruction.
  • the computer program When the computer program is run, it causes the computer to execute the electronic device in any of the above embodiments. 100 any method of execution.
  • This application also provides a computer-readable storage medium that stores a computer program (which may also be called a code, or an instruction).
  • a computer program which may also be called a code, or an instruction.
  • the computer program When the computer program is run, the computer is caused to perform the method performed by any one of the electronic devices 100 in any of the above embodiments.
  • the processor in the embodiment of the present application may be an integrated circuit chip with signal processing capabilities.
  • each step of the above method embodiment can be completed through an integrated logic circuit of hardware in the processor or instructions in the form of software.
  • the above-mentioned processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (AP 800plication specific integrated circuit, ASIC), a field programmable gate array (field programmable gate array, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • DSP digital signal processor
  • ASIC application-specific integrated circuit
  • FPGA field programmable gate array
  • a general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
  • the steps of the method disclosed in conjunction with the embodiments of the present application can be directly implemented by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other mature storage media in this field.
  • the storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
  • the embodiment of the present application also provides a device.
  • the device may specifically be a component or module, and the device may include one or more connected processors and memories. Among them, memory is used to store computer programs. When the computer program is executed by one or more processors, the device is caused to execute the methods in each of the above method embodiments.
  • the devices, computer-readable storage media, computer program products or chips provided by the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects it can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be described again here.
  • the computer program product includes one or more computer instructions.
  • 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, e.g., 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) or wireless (such as infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated.
  • 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)
  • Quality & Reliability (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present application discloses an antenna multiplexing method and a related apparatus. In the method, an electronic device comprises two WiFi chips: a main WiFi chip and an auxiliary WiFi chip, wherein the main WiFi chip can transmit and receive signals by means of a main antenna, the auxiliary WiFi chip can transmit and receive signals by means of a multiplexed antenna, and when the auxiliary WiFi chip does not work, the main WiFi chip can also transmit and receive signals by using the multiplexed antenna. In this way, an electronic device can communicate by means of double WiFi chips, so that the communication speed is increased, an antenna used by an auxiliary WiFi chip can be multiplexed, and the antenna is used as an antenna used by a main WiFi chip, thereby reducing the number of antennas as much as possible.

Description

天线复用方法及相关装置Antenna multiplexing method and related devices
本申请要求于2022年08月31日提交中国专利局、申请号为202211056217.5、申请名称为“天线复用方法及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the China Patent Office on August 31, 2022, with the application number 202211056217.5 and the application name "Antenna Multiplexing Method and Related Devices", the entire content of which is incorporated into this application by reference. .
技术领域Technical field
本申请涉及终端及通信技术领域,尤其涉及天线复用方法及相关装置。The present application relates to the fields of terminal and communication technologies, and in particular to antenna multiplexing methods and related devices.
背景技术Background technique
随着信息技术的不断发展,电子设备能够执行的通信业务越来越多。其中,电子设备中配备的天线可以完成电子设备执行通信业务时的数据收发。现今,电子设备中可以配备包括但不限于:无线保真(wireless fidelity,Wi-Fi)天线、蓝牙天线、近场通信(Near Field Communication,NFC)天线等多种天线。With the continuous development of information technology, electronic devices can perform more and more communication services. Among them, the antenna equipped in the electronic device can complete the data sending and receiving when the electronic device performs communication services. Nowadays, electronic devices can be equipped with a variety of antennas including, but not limited to: wireless fidelity (Wi-Fi) antennas, Bluetooth antennas, Near Field Communication (NFC) antennas, etc.
应理解,增加天线的数量,虽然可以提高电子设备同时执行多个通信业务时的速率,但是也会增加电子设备的制作成本,使天线的设计工艺更加复杂。It should be understood that although increasing the number of antennas can improve the rate at which an electronic device performs multiple communication services at the same time, it will also increase the manufacturing cost of the electronic device and make the antenna design process more complex.
发明内容Contents of the invention
本申请提供了天线复用方法及相关装置,该天线复用方法将辅Wi-Fi芯片使用的天线进行复用,将其作为主Wi-Fi芯片的备用天线,在设备配备双Wi-Fi芯片的前提下实现了天线的复用,尽可能减少了天线的数量。This application provides an antenna multiplexing method and related devices. The antenna multiplexing method multiplexes the antenna used by the auxiliary Wi-Fi chip and uses it as a backup antenna for the main Wi-Fi chip. The device is equipped with dual Wi-Fi chips. Under the premise of realizing the multiplexing of antennas, the number of antennas is reduced as much as possible.
第一方面,本申请实施例提供了一种天线复用方法,该方法应用在包含第一Wi-Fi芯片、第二Wi-Fi芯片的电子设备,第一Wi-Fi芯片通过第一天线收发信号,第二Wi-Fi芯片通过第二天线收发信号,该方法包括:当电子设备满足预设条件时,电子设备判断第一Wi-Fi芯片是否启用第二天线收发信号,预设条件包括:第一Wi-Fi芯片通过第一天线收发信号的信号质量低于预设阈值、电子设备的折叠形态发生变化、接收到用户的触发操作或者电子设备处于预设场景;当第二Wi-Fi芯片没有启用第二天线收发信号时,电子设备控制第一Wi-Fi芯片切换至通过第二天线收发信号。In a first aspect, embodiments of the present application provide an antenna multiplexing method, which method is applied to an electronic device including a first Wi-Fi chip and a second Wi-Fi chip. The first Wi-Fi chip transmits and receives data through the first antenna. signal, the second Wi-Fi chip sends and receives signals through the second antenna. The method includes: when the electronic device meets preset conditions, the electronic device determines whether the first Wi-Fi chip enables the second antenna to send and receive signals. The preset conditions include: When the signal quality of the signal sent and received by the first Wi-Fi chip through the first antenna is lower than the preset threshold, the folding form of the electronic device changes, a user's trigger operation is received, or the electronic device is in a preset scene; when the second Wi-Fi chip When the second antenna is not enabled to send and receive signals, the electronic device controls the first Wi-Fi chip to switch to sending and receiving signals through the second antenna.
实施第一方面提供的方法,电子设备可以通过双Wi-Fi芯片来执行通信业务,提高业务的通信速率,加大网络带宽,降低通信实验。同时,通过对第二Wi-Fi芯片使用的第二天线做复用设计,使该第二天线可以作为第一Wi-Fi芯片所需的备用天线,满足了第一Wi-Fi芯片可以切换天线的需求,且尽可能减少了设备中配置的天线数量,降低了天线设计的工艺难度,降低了电子设备的制作成本。By implementing the method provided in the first aspect, the electronic device can perform communication services through dual Wi-Fi chips, thereby increasing the communication rate of the service, increasing network bandwidth, and reducing communication experiments. At the same time, by reusing the second antenna used by the second Wi-Fi chip, the second antenna can be used as a backup antenna required by the first Wi-Fi chip, allowing the first Wi-Fi chip to switch antennas. needs, and the number of antennas configured in the device is reduced as much as possible, which reduces the process difficulty of antenna design and reduces the production cost of electronic equipment.
结合第一方面,在一些实施方式中,电子设备控制第一Wi-Fi芯片切换至通过第二天线收发信号之前,该方法还包括:电子设备检测到第一Wi-Fi芯片通过第二天线收发信号的信号质量,高于,第一Wi-Fi芯片通过第一天线收发信号的信号质量。In connection with the first aspect, in some embodiments, before the electronic device controls the first Wi-Fi chip to switch to transmitting and receiving signals through the second antenna, the method further includes: the electronic device detects that the first Wi-Fi chip transmits and receives signals through the second antenna. The signal quality of the signal is higher than the signal quality of the first Wi-Fi chip sending and receiving signals through the first antenna.
其中,第一Wi-Fi芯片通过第一天线或第二天线收发信号的信号质量可以根据以下一项或多项参数确定:接收信号强度RSSI、信号与干扰加噪声比SINR、参考信号接收功率RSRP、参考信号接收质量RSRQ。优选地,电子设备可以通过接收信号强度RSSI来作为信号质量的判断指标,进一步地,还可以结合其他与信号质量强相关的指标进行组合判断,例如协商速率、误包率等等。Among them, the signal quality of the first Wi-Fi chip transmitting and receiving signals through the first antenna or the second antenna can be determined according to one or more of the following parameters: received signal strength RSSI, signal to interference plus noise ratio SINR, reference signal received power RSRP , reference signal reception quality RSRQ. Preferably, the electronic device can use the received signal strength RSSI as a judgment indicator of signal quality. Furthermore, it can also be combined with other indicators that are strongly related to signal quality to make a combined judgment, such as negotiation rate, packet error rate, etc.
这样,可以使得第一Wi-Fi芯片在工作时,能够以最佳的信号强度收发信号,保证了第一Wi-Fi收发信号时的通信质量。In this way, the first Wi-Fi chip can send and receive signals with optimal signal strength when working, ensuring communication quality when the first Wi-Fi chip sends and receives signals.
结合第一方面,在一些实施方式中,第一天线和第二天线的天线极化方向或方向图不同。In conjunction with the first aspect, in some implementations, the antenna polarization directions or patterns of the first antenna and the second antenna are different.
将第一天线和第二天线的设计为天线极化方向或方向图不同的天线,可以满足第一Wi-Fi芯片在电子设备处于不同折叠形态下的通信质量,保证了电子设备能够在处于各种折叠形态下,都能够有较好的性能指标和覆盖效果。Designing the first antenna and the second antenna as antennas with different antenna polarization directions or patterns can satisfy the communication quality of the first Wi-Fi chip when the electronic device is in different folded forms, ensuring that the electronic device can operate in various states. In all folding forms, it can have better performance indicators and coverage effects.
进一步地,第一天线和第二天线的天线极化方向或方向图互补。这样,可以保证电子设备在使用第一Wi-Fi芯片进行Wi-Fi通信时,不存在信号覆盖范围盲点。Further, the antenna polarization directions or patterns of the first antenna and the second antenna are complementary. In this way, it can be ensured that there is no signal coverage blind spot when the electronic device uses the first Wi-Fi chip for Wi-Fi communication.
结合第一方面,在一些实施方式中,第二Wi-Fi芯片在电子设备运行预设应用,和/或,启动投屏功能时,启用第二天线收发信号。Combined with the first aspect, in some embodiments, the second Wi-Fi chip enables the second antenna to send and receive signals when the electronic device runs a preset application and/or starts the screen casting function.
第二Wi-Fi芯片可以在电子设备处于多设备协同和/或多网并发场景时,控制第二Wi-Fi芯片进行工作 状态,使得电子设备在处于多设备协同和/或多网并发场景时,能够存在较好的通信质量。The second Wi-Fi chip can control the second Wi-Fi chip to work when the electronic device is in a multi-device collaboration and/or multi-network concurrent scenario. status, so that electronic devices can have better communication quality when they are in multi-device collaboration and/or multi-network concurrency scenarios.
结合第一方面,在一些实施方式中,电子设备控制第一Wi-Fi芯片切换至通过第二天线收发信号之后,方法还包括:当电子设备运行预设应用或启动投屏功能时,电子设备控制第一Wi-Fi芯片通过第一天线收发信号,并控制第二Wi-Fi芯片通过第二天线收发信号。In connection with the first aspect, in some embodiments, after the electronic device controls the first Wi-Fi chip to switch to transmitting and receiving signals through the second antenna, the method further includes: when the electronic device runs a preset application or starts a screen casting function, the electronic device The first Wi-Fi chip is controlled to send and receive signals through the first antenna, and the second Wi-Fi chip is controlled to send and receive signals through the second antenna.
也就是说,电子设备可以在第二Wi-Fi芯片需要工作时,将第一Wi-Fi芯片当前使用的第二天线切换为第一天线,使得第二Wi-Fi芯片能够使用第二天线收发信号,保证电子设备能够在第一Wi-Fi芯片使用第二天线收发信号之后,能够再次通过双Wi-Fi芯片收发信号。That is to say, when the second Wi-Fi chip needs to work, the electronic device can switch the second antenna currently used by the first Wi-Fi chip to the first antenna, so that the second Wi-Fi chip can use the second antenna to transmit and receive. signal, ensuring that the electronic device can send and receive signals through the dual Wi-Fi chips again after the first Wi-Fi chip uses the second antenna to send and receive signals.
结合第一方面,在一些实施方式中,电子设备控制第一Wi-Fi芯片切换至通过第二天线收发信号之后,方法还包括:当电子设备检测到第一Wi-Fi芯片通过第二天线收发信号的信号质量,低于,第一Wi-Fi芯片通过第一天线收发信号的信号质量时,电子设备控制第一Wi-Fi芯片切换回通过第一天线收发信号;其中,电子设备控制第一Wi-Fi芯片通过第二天线收发信号的信号质量,低于,电子设备控制第一Wi-Fi芯片通过第一天线收发信号的信号质量。In conjunction with the first aspect, in some embodiments, after the electronic device controls the first Wi-Fi chip to switch to transmitting and receiving signals through the second antenna, the method further includes: when the electronic device detects that the first Wi-Fi chip transmits and receives signals through the second antenna When the signal quality of the signal is lower than the signal quality of the first Wi-Fi chip transmitting and receiving signals through the first antenna, the electronic device controls the first Wi-Fi chip to switch back to transmitting and receiving signals through the first antenna; wherein, the electronic device controls the first Wi-Fi chip to switch back to transmitting and receiving signals through the first antenna. The signal quality of the Wi-Fi chip transmitting and receiving signals through the second antenna is lower than the signal quality of the electronic device controlling the first Wi-Fi chip transmitting and receiving signals through the first antenna.
也就是说,第一Wi-Fi芯片可以在使用第二天线收发信号的过程中,在信号质量变弱时能够切换到使用第一天线收发信号,保证第一Wi-Fi芯片的通信质量,实现第一Wi-Fi芯片根据不同天线收发信号时的信号质量,动态调整第一Wi-Fi芯片使用的天线。That is to say, the first Wi-Fi chip can switch to using the first antenna to send and receive signals when the signal quality becomes weak while using the second antenna to send and receive signals, thereby ensuring the communication quality of the first Wi-Fi chip and achieving The first Wi-Fi chip dynamically adjusts the antenna used by the first Wi-Fi chip according to the signal quality when different antennas send and receive signals.
结合第一方面,在一些实施方式中,第一天线和第二天线的天线类型包括:IFA天线,PIFA天线,或者Slot天线。In conjunction with the first aspect, in some implementations, the antenna types of the first antenna and the second antenna include: IFA antenna, PIFA antenna, or Slot antenna.
第二方面,本申请提供了一种电子设备,该电子设备可以包括:第一Wi-Fi芯片、第二Wi-Fi芯片、第一天线、第二天线、存储器,一个或多个处理器,以及一个或多个程序;一个或多个处理器在执行一个或多个程序时,使得电子设备实现如第一方面或第一方面的任意一种实施方式所描述的方法。In a second aspect, this application provides an electronic device, which may include: a first Wi-Fi chip, a second Wi-Fi chip, a first antenna, a second antenna, a memory, and one or more processors, and one or more programs; when one or more processors execute one or more programs, the electronic device implements the method described in the first aspect or any implementation manner of the first aspect.
第三方面,本申请实施例提供了一种计算机可读存储介质,包括指令,当指令在电子设备上运行时,使得电子设备执行实现如第一方面或第一方面的任意一种实施方式所描述的方法。In a third aspect, embodiments of the present application provide a computer-readable storage medium, including instructions. When the instructions are run on an electronic device, the electronic device executes the implementation as described in the first aspect or any implementation manner of the first aspect. described method.
第四方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行实现如第一方面或第一方面的任意一种实施方式所描述的方法。In a fourth aspect, embodiments of the present application provide a computer program product. When the computer program product is run on a computer, it causes the computer to execute the method described in the first aspect or any implementation manner of the first aspect.
附图说明Description of drawings
图1A为本申请实施例提供的电子设备的硬件结构示意图;Figure 1A is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application;
图1B为本申请实施例提供的电子设备的软件结构示意图;Figure 1B is a schematic diagram of the software structure of the electronic device provided by the embodiment of the present application;
图2为本申请实施例提供的一种多天线场景;Figure 2 shows a multi-antenna scenario provided by an embodiment of the present application;
图3为本申请实施例提供的另一种多天线场景;Figure 3 is another multi-antenna scenario provided by the embodiment of the present application;
图4为本申请实施例提供的另一种多天线场景;Figure 4 is another multi-antenna scenario provided by the embodiment of the present application;
图5为本申请实施例提供的天线复用方法的流程示意图;Figure 5 is a schematic flowchart of the antenna multiplexing method provided by the embodiment of the present application;
图6为本申请实施例提供的多设备协同场景下,电子设备100使用双Wi-Fi芯片进行通信的场景示意图;Figure 6 is a schematic diagram of a scenario in which the electronic device 100 uses dual Wi-Fi chips to communicate in the multi-device collaboration scenario provided by the embodiment of the present application;
图7为本申请实施例提供的多网并发场景下,电子设备100使用双Wi-Fi芯片进行通信的场景示意图。FIG. 7 is a schematic diagram of a scenario in which the electronic device 100 uses dual Wi-Fi chips to communicate in the multi-network concurrent scenario provided by the embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图对本申请实施例中的技术方案进行清楚、详尽地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。The technical solutions in the embodiments of the present application will be described clearly and in detail below with reference to the accompanying drawings. Among them, in the description of the embodiments of this application, unless otherwise stated, "/" means or, for example, A/B can mean A or B; "and/or" in the text is only a way to describe related objects. The association relationship means that there can be three relationships. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiment of the present application , "plurality" means two or more than two.
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。Hereinafter, the terms “first” and “second” are used for descriptive purposes only and shall not be understood as implying or implying relative importance or implicitly specifying the quantity of indicated technical features. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, “plurality” The meaning is two or more.
目前,电子设备可以同时执行多个通信业务,同时满足用户的多种娱乐和使用需求。Currently, electronic devices can perform multiple communication services at the same time and meet users' various entertainment and usage needs.
例如,笔记本电脑能够在利用无线保真(wireless fidelity,Wi-Fi)网络进行上网的同时,利用Wi-Fi网络实现与投屏设备的通信,启动笔记本电脑的投屏功能,从而同时满足用户上网和使用投屏功能的需求。 For example, a laptop computer can use a wireless fidelity (Wi-Fi) network to access the Internet and at the same time use the Wi-Fi network to communicate with a screen projection device and activate the screen projection function of the laptop computer, thereby satisfying the user's needs to access the Internet at the same time. and the need to use the screencasting function.
但是,同时上网和启动投屏功能也存在一定的缺陷。由于上网和启动投屏功能都通过笔记本电脑的一个Wi-Fi芯片来实现,导致上网业务的速率较低,使用投屏功能时延迟较大,甚至出现投屏画面卡顿的情况。However, there are certain flaws in surfing the Internet and activating the screen mirroring function at the same time. Since both surfing the Internet and activating the screen mirroring function are implemented through a Wi-Fi chip of the laptop, the speed of Internet access services is low, the delay is large when using the screen mirroring function, and even the screen mirroring may freeze.
另外,由于笔记本电脑的转轴设计,笔记本电脑存在多个折叠形态,其开合角可以呈现例如0度、110度、180度、360度等角度。那么,对于在多个折叠形态下都能够执行通信业务的笔记本电脑,这时需要笔记本电脑的天线在整体各个折叠形态下都能够有较好的性能指标和覆盖效果,保证笔记本电脑在各种折叠形态下都存在较好的通信效果。In addition, due to the hinge design of the notebook computer, the notebook computer has multiple folding configurations, and its opening and closing angles can present angles such as 0 degrees, 110 degrees, 180 degrees, 360 degrees, etc. Then, for a notebook computer that can perform communication services in multiple folding forms, the antenna of the notebook computer needs to have good performance indicators and coverage effects in all folding forms to ensure that the notebook computer can perform communication services in various folding forms. There is good communication effect in all forms.
可以看出,为了保证上网业务和投屏功能的通信效果,可以新增一个Wi-Fi芯片,通过双Wi-Fi芯片来保证多业务并发的通信效率,另外,为了保证笔记本电脑能在多个折叠形态下都存在较好的通信效率,那就需要存在备用天线能够在天线信号较弱时,能够切换到该备用天线来增强信号的强度。但是,对于仅包含一个Wi-Fi芯片的设备,再增加一个Wi-Fi芯片,则需要为该增加的Wi-Fi芯片配置一组天线,再加上备用天线,则总共需要额外在笔记本电脑上配备两组天线,这又会增加电子设备的制作成本,使天线的设计工艺更加复杂。It can be seen that in order to ensure the communication effect of Internet access business and screen projection function, a Wi-Fi chip can be added to ensure the concurrent communication efficiency of multiple services through dual Wi-Fi chips. In addition, in order to ensure that the laptop can operate on multiple There is good communication efficiency in the folded form, so there needs to be a backup antenna that can be switched to the backup antenna to enhance the signal strength when the antenna signal is weak. However, for a device that only contains one Wi-Fi chip, adding another Wi-Fi chip will require a set of antennas for the additional Wi-Fi chip, plus a backup antenna, which will require a total of additional 100% on the laptop. Equipped with two sets of antennas, this will increase the production cost of electronic equipment and make the antenna design process more complex.
因此,如何实现双Wi-Fi芯片以及满足设备使用天线收发信号的通信质量,同时尽可能减少天线的数量,是目前亟待解决的问题。Therefore, how to implement dual Wi-Fi chips and meet the communication quality of the device using antennas to send and receive signals, while reducing the number of antennas as much as possible, is an issue that needs to be solved urgently.
为了解决上述问题,本申请实施例提供了一种天线复用方法,该天线复用方法适用于包含双Wi-Fi芯片的电子设备,该双Wi-Fi芯片包括:主Wi-Fi芯片和辅Wi-Fi芯片。其中,该天线复用方法可以将辅Wi-Fi芯片对应的天线与主Wi-Fi芯片所需的备用天线进行复用设计,尽可能减少需要增加的天线的数量。In order to solve the above problems, embodiments of the present application provide an antenna multiplexing method. The antenna multiplexing method is suitable for electronic devices containing dual Wi-Fi chips. The dual Wi-Fi chips include: a main Wi-Fi chip and an auxiliary Wi-Fi chip. Wi-Fi chip. Among them, this antenna multiplexing method can reuse the antenna corresponding to the auxiliary Wi-Fi chip and the backup antenna required by the main Wi-Fi chip to reduce the number of antennas that need to be added as much as possible.
具体地,电子设备中可以配备有主天线和复用天线,主天线为主Wi-Fi芯片对应的天线,复用天线为辅Wi-Fi芯片对应的天线,也就是说,该主天线用于收发主Wi-Fi芯片的信号,该复用天线可用于收发辅Wi-Fi芯片的信号,另外,复用天线还可用于收发主Wi-Fi芯片的信号。其中,电子设备可以根据辅Wi-Fi芯片的工作状态,以及,主Wi-Fi芯片使用不同天线收发信号时的信号质量,确定主Wi-Fi芯片是否需要切换到复用天线,来决定该复用天线用于收发主Wi-Fi芯片的信号还是辅Wi-Fi芯片的信号。Specifically, the electronic device may be equipped with a main antenna and a multiplexed antenna. The main antenna is the antenna corresponding to the main Wi-Fi chip, and the multiplexed antenna is the antenna corresponding to the auxiliary Wi-Fi chip. That is to say, the main antenna is used for To send and receive signals from the main Wi-Fi chip, the multiplexed antenna can be used to send and receive signals from the auxiliary Wi-Fi chip. In addition, the multiplexed antenna can also be used to send and receive signals from the main Wi-Fi chip. Among them, the electronic device can determine whether the main Wi-Fi chip needs to switch to a multiplexed antenna based on the working status of the auxiliary Wi-Fi chip and the signal quality when the main Wi-Fi chip uses different antennas to send and receive signals. Use the antenna to send and receive signals from the main Wi-Fi chip or the auxiliary Wi-Fi chip.
这样,既能够保证电子设备在存在多个通信业务时,能够通过辅Wi-Fi芯片来分担主Wi-Fi芯片的运算工作量,并额外增加一组天线同时传输数据,提高业务的通信速率,加大网络带宽,降低通信时延,同时,又能在主Wi-Fi芯片工作时,能够通过切换主天线和复用天线,以最佳的信号强度进行通信,保证电子设备使用天线收发信号时的通信质量。总的来说,在使用Wi-Fi功能收发数据时,通过对辅Wi-Fi芯片对应的天线进行复用设计,使该辅Wi-Fi芯片对应的天线也可以作为主Wi-Fi芯片所需的备用天线,电子设备中只需配备两组天线,这两组天线同时实现了电子设备的双Wi-Fi芯片的配置要求,又保证了电子设备的通信效果,尽可能减少了电子设备的天线数量,降低了天线设计的工艺难度,降低了电子设备的制作成本。In this way, it can not only ensure that when there are multiple communication services in the electronic device, it can share the computing workload of the main Wi-Fi chip through the auxiliary Wi-Fi chip, and add an additional set of antennas to transmit data at the same time, improving the communication rate of the service. Increase network bandwidth and reduce communication delay. At the same time, when the main Wi-Fi chip is working, it can communicate with the best signal strength by switching the main antenna and the multiplexed antenna, ensuring that electronic devices use the antenna to send and receive signals. communication quality. In general, when using the Wi-Fi function to send and receive data, by reusing the antenna corresponding to the auxiliary Wi-Fi chip, the antenna corresponding to the auxiliary Wi-Fi chip can also be used as the main Wi-Fi chip. As a spare antenna, the electronic device only needs to be equipped with two sets of antennas. These two sets of antennas simultaneously meet the configuration requirements of the dual Wi-Fi chips of the electronic device, ensure the communication effect of the electronic device, and reduce the number of antennas of the electronic device as much as possible. The quantity reduces the process difficulty of antenna design and reduces the production cost of electronic equipment.
图1A示出了电子设备100的硬件结构示意图。FIG. 1A shows a schematic diagram of the hardware structure of the electronic device 100 .
电子设备100可以是手机、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、人工智能(artificial intelligence,AI)设备、可穿戴式设备、车载设备、智能家居设备和/或智慧城市设备等,本申请实施例对该电子设备的具体类型不作特殊限制。The electronic device 100 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (personal digital assistant) digital assistant (PDA), augmented reality (AR) device, virtual reality (VR) device, artificial intelligence (AI) device, wearable device, vehicle-mounted device, smart home device and/or Smart city equipment, etc., the embodiments of this application do not place special restrictions on the specific types of electronic equipment.
其中,电子设备100可以为存在多个折叠形态的设备,该折叠形态可以是指电子设备100工作过程中的摆放形态。例如,笔记本电脑可以以开合角为0度下进行工作,也可以以开合角为11度下进行工作,也可以以开合角为180度下进行工作,也可以以开合角为360度下进行工作。当笔记本电脑以不同开合角进行工作时,会导致天线的覆盖范围发生改变,进而改变通信信号的质量,影响网络体验。这时,电子设备100可以通过切换天线来保证通信质量。示例性地,电子设备100可以为笔记本电脑、折叠屏手机等等。The electronic device 100 may be a device having multiple folded configurations, and the folded configuration may refer to the placement configuration of the electronic device 100 during operation. For example, a laptop can work at an opening and closing angle of 0 degrees, or at an opening and closing angle of 11 degrees, or at an opening and closing angle of 180 degrees, or at a opening and closing angle of 360 degrees. Work under conditions. When a laptop works at different opening and closing angles, the coverage of the antenna will change, thereby changing the quality of the communication signal and affecting the network experience. At this time, the electronic device 100 can ensure communication quality by switching antennas. For example, the electronic device 100 may be a laptop computer, a folding screen mobile phone, or the like.
电子设备100可以包括处理器101,存储器102,无线通信模块103,天线103A,天线103B,天线103C,天线103D,USB接口104,电源开关105,传感器模块106,音频模块107,摄像头108,显示屏109等。其中,传感器模块106可以包括触摸传感器106A,磁传感器106B,加速度传感器106C,陀螺仪传感器106D等。其中,无线通信模块103可以包括WLAN通信模块,蓝牙通信模块等。上述多个部分可以通过总线传输数据。 The electronic device 100 may include a processor 101, a memory 102, a wireless communication module 103, an antenna 103A, an antenna 103B, an antenna 103C, an antenna 103D, a USB interface 104, a power switch 105, a sensor module 106, an audio module 107, a camera 108, and a display screen. 109 etc. Among them, the sensor module 106 may include a touch sensor 106A, a magnetic sensor 106B, an acceleration sensor 106C, a gyroscope sensor 106D, etc. Among them, the wireless communication module 103 may include a WLAN communication module, a Bluetooth communication module, etc. The multiple parts mentioned above can transmit data through the bus.
应理解,电子设备100包含的天线不限于上述提及的天线103A,天线103B,天线103C,天线103D,在本申请其他实施例中,电子设备100还可以包括其他更多或更少的天线,并且,上述提及的天线是针对电子设备100的Wi-Fi功能所提出的天线,电子设备100还可以包含用于实现其他功能,例如蓝牙功能、GPS功能的天线,或者,上述提及的天线也可以用于实现其他功能,本申请实施例对此不作限制。It should be understood that the antennas included in the electronic device 100 are not limited to the antenna 103A, the antenna 103B, the antenna 103C, and the antenna 103D mentioned above. In other embodiments of the present application, the electronic device 100 may also include other more or less antennas. Moreover, the above-mentioned antenna is an antenna proposed for the Wi-Fi function of the electronic device 100. The electronic device 100 may also include an antenna for implementing other functions, such as a Bluetooth function, a GPS function, or the above-mentioned antenna. It can also be used to implement other functions, which is not limited in the embodiments of this application.
处理器101可以包括一个或多个处理单元,例如:处理器101可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 101 may include one or more processing units. For example, the processor 101 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors.
在一些实施例中,处理器101可以获取辅Wi-Fi芯片的工作状态,即辅Wi-Fi芯片是否在收发信号,另外,处理器101还可以结合辅Wi-Fi芯片的工作状态,以及,主Wi-Fi芯片通过不同天线收发信号时的信号质量,来判断是否切换主Wi-Fi芯片使用的天线。In some embodiments, the processor 101 can obtain the working status of the secondary Wi-Fi chip, that is, whether the secondary Wi-Fi chip is sending and receiving signals. In addition, the processor 101 can also combine the working status of the secondary Wi-Fi chip, and, The main Wi-Fi chip uses the signal quality when sending and receiving signals from different antennas to determine whether to switch the antenna used by the main Wi-Fi chip.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can continuously learn by itself. Intelligent cognitive applications of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, etc.
存储器102可以用于存储计算机可执行程序代码,可执行程序代码可以包括指令。处理器101通过运行存储在存储器102的指令,从而执行电子设备100的各种功能应用以及数据处理。存储器102可以包括存储程序区和存储数据区。具体实现中,存储器102可以包括高速随机存取的存储器,并且也可包括非易失性存储器,例如一个或多个磁盘存储设备、闪存设备或其他非易失性固态存储设备。Memory 102 may be used to store computer executable program code, which may include instructions. The processor 101 executes instructions stored in the memory 102 to execute various functional applications and data processing of the electronic device 100 . The memory 102 may include an area for storing programs and an area for storing data. In specific implementations, the memory 102 may include high-speed random access memory, and may also include non-volatile memory, such as one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices.
电子设备100的无线通信功能可以通过天线103A,天线103B,天线103C,天线103D,无线通信模块103,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be implemented through the antenna 103A, the antenna 103B, the antenna 103C, the antenna 103D, the wireless communication module 103, the modem processor and the baseband processor.
天线103A、天线103B、天线103C和天线103D可以用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。The antennas 103A, 103B, 103C and 103D may be used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备输出声音信号,或通过显示屏109显示图像或视频。A modem processor may include a modulator and a demodulator. Among them, 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. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs sound signals through the audio device, or displays images or videos through the display screen 109 .
无线通信模块103可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块103可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块103可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。无线通信模块103经由天线103A接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。无线通信模块103还可以从对经过调制解调处理器调制后的信号放大,经天线103A转为电磁波辐射出去。The wireless communication module 103 can provide applications on the electronic device 100 including wireless local area networks (WLAN), Bluetooth (bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 103 may be one or more devices integrating at least one communication processing module. The wireless communication module 103 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The wireless communication module 103 receives electromagnetic waves through the antenna 103A, performs filtering, amplification and other processing on the received electromagnetic waves, and transmits them to the modem processor for demodulation. The wireless communication module 103 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation through the antenna 103A.
在一些实施例中,无线通信模块103可以包括WLAN通信模块和蓝牙通信模块。其中,电子设备100可以通过天线103A,天线103B,天线103C,天线103D中的任意一根天线收发蓝牙通信模块的蓝牙信号。另外,WLAN通信模块可以包括两个Wi-Fi芯片:主Wi-Fi芯片,辅Wi-Fi芯片。Wi-Fi芯片可以提供应用在电子设备100上的WLAN的解决方案,将传输数据调制成无线信号,供支持Wi-Fi技术的相关设备接收,或接收支持Wi-Fi技术的相关设备发送的无线信号并解调成数字信号。其中,主Wi-Fi芯片默认连接天线103A和天线103B,即主Wi-Fi芯片默认通过天线103A和天线103B收发信号,辅Wi-Fi芯片默认连接天线103C和天线103D,即辅Wi-Fi芯片默认通过天线103C和天线103D收发信号。示例性地,天线103A,天线103B,天线103C,天线103D可以支持2.4G、5G频段。具体关于主Wi-Fi芯片与辅Wi-Fi芯片在电子设备100中的连通关系可以参见后续图2-图4所示的多天线的结构示意图,这里先不展开。In some embodiments, the wireless communication module 103 may include a WLAN communication module and a Bluetooth communication module. Among them, the electronic device 100 can send and receive the Bluetooth signal of the Bluetooth communication module through any one of the antenna 103A, the antenna 103B, the antenna 103C, and the antenna 103D. In addition, the WLAN communication module may include two Wi-Fi chips: a main Wi-Fi chip and an auxiliary Wi-Fi chip. Wi-Fi chips can provide WLAN solutions applied to electronic devices 100, modulating transmission data into wireless signals for reception by related devices that support Wi-Fi technology, or receiving wireless signals sent by related devices that support Wi-Fi technology. signal and demodulate it into a digital signal. Among them, the main Wi-Fi chip is connected to the antenna 103A and the antenna 103B by default, that is, the main Wi-Fi chip sends and receives signals through the antenna 103A and the antenna 103B by default, and the auxiliary Wi-Fi chip is connected to the antenna 103C and the antenna 103D by default, that is, the auxiliary Wi-Fi chip By default, signals are sent and received through antenna 103C and antenna 103D. For example, antenna 103A, antenna 103B, antenna 103C, and antenna 103D can support 2.4G and 5G frequency bands. For details about the connection relationship between the main Wi-Fi chip and the auxiliary Wi-Fi chip in the electronic device 100, please refer to the schematic structural diagrams of multiple antennas shown in the following Figures 2 to 4, which will not be discussed here.
可以理解的是,本申请实施例对一个Wi-Fi芯片连接的天线数量不作限制,例如,主Wi-Fi芯片可以连接两个天线,辅Wi-Fi芯片可以仅连接一个天线。或者,WLAN通信模块还可以包含更多的Wi-Fi芯片,本申请实施例对此不作限制。It can be understood that embodiments of the present application do not limit the number of antennas connected to one Wi-Fi chip. For example, the main Wi-Fi chip can be connected to two antennas, and the auxiliary Wi-Fi chip can be connected to only one antenna. Alternatively, the WLAN communication module may also include more Wi-Fi chips, which is not limited in the embodiments of this application.
USB接口104可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备 等。The USB interface 104 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through them. The interface can also be used to connect other electronic devices, such as AR devices wait.
电源开关105可用于控制电源向电子设备100的供电。The power switch 105 may be used to control power supply to the electronic device 100 .
触摸传感器106A,也称“触控器件”。触摸传感器106A可以设置于显示屏109,由触摸传感器106A与显示屏109组成触摸屏,也称“触控屏”。触摸传感器106A用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏109提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器106A也可以设置于电子设备100的表面,与显示屏109所处的位置不同。Touch sensor 106A is also called a "touch device". The touch sensor 106A can be disposed on the display screen 109. The touch sensor 106A and the display screen 109 form a touch screen, which is also called a "touch screen". Touch sensor 106A is used to detect touch operations on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation may be provided through the display screen 109 . In other embodiments, the touch sensor 106A may also be disposed on the surface of the electronic device 100 in a position different from that of the display screen 109 .
磁传感器106B包括霍尔传感器。电子设备100可以利用磁传感器106B检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器106B检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。Magnetic sensor 106B includes a Hall sensor. The electronic device 100 may utilize the magnetic sensor 106B to detect the opening and closing of the flip holster. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 106B. Then, based on the detected opening and closing status of the leather case or the opening and closing status of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器106C可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 106C can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices and be used in horizontal and vertical screen switching, pedometer and other applications.
陀螺仪传感器106D可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器106D确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。The gyro sensor 106D may be used to determine the motion posture of the electronic device 100 . In some embodiments, the angular velocity of electronic device 100 about three axes (ie, x, y, and z axes) may be determined by gyro sensor 106D.
音频模块107用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块107还可以用于对音频信号编码和解码。在一些实施例中,音频模块107可以设置于处理器101中,或将音频模块107的部分功能模块设置于处理器101中。The audio module 107 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. Audio module 107 may also be used to encode and decode audio signals. In some embodiments, the audio module 107 may be disposed in the processor 101, or some functional modules of the audio module 107 may be disposed in the processor 101.
扬声器107A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器107A收听音乐,或收听提示音。Speaker 107A, also called "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music through the speaker 107A, or listen to prompt sounds.
麦克风107B,也称“话筒”,“传声器”,用于将声音信号转换为电信号。电子设备100可以设置至少一个麦克风107B。在另一些实施例中,电子设备100可以设置两个麦克风107B,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风107B,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。Microphone 107B, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. The electronic device 100 may be provided with at least one microphone 107B. In other embodiments, the electronic device 100 may be provided with two microphones 107B, which in addition to collecting sound signals, may also implement a noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 107B to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions, etc.
摄像头108用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头108,N为大于1的正整数。Camera 108 is used to capture still images or video. The object passes through the lens to produce an optical image that is projected onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other format image signals. In some embodiments, the electronic device 100 may include 1 or N cameras 108, where N is a positive integer greater than 1.
电子设备100可以通过GPU,显示屏109,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏109和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器101可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 can implement display functions through a GPU, a display screen 109, an application processor, and the like. The GPU is an image processing microprocessor and is connected to the display screen 109 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 101 may include one or more GPUs that execute program instructions to generate or alter display information.
显示屏109用于显示图像,视频等。显示屏109包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏109,N为大于1的正整数。The display screen 109 is used to display images, videos, etc. Display 109 includes a display panel. The display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode). emitting diode (AMOLED), flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 109, where N is a positive integer greater than 1.
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.
电子设备可以是搭载iOS、Android、Microsoft或者其它操作系统的便携式终端设备,例如手机、平板电脑、可穿戴设备等,还可以是具有触敏表面或触控面板的膝上型计算机(Laptop)、具有触敏表面或触控面板的台式计算机等非便携式终端设备。电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。The electronic device may be a portable terminal device equipped with iOS, Android, Microsoft or other operating systems, such as a mobile phone, a tablet, a wearable device, etc., or a laptop computer (Laptop) with a touch-sensitive surface or touch panel. Non-portable terminal devices such as desktop computers with touch-sensitive surfaces or touch panels. The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. This embodiment of the present invention takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 .
图1B是本发明实施例的电子设备100的软件结构示意图。FIG. 1B is a schematic diagram of the software structure of the electronic device 100 according to the embodiment of the present invention.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一 些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has clear roles and division of labor. The layers communicate through software interfaces. In a In some embodiments, the Android system is divided into four layers, from top to bottom: application layer, application framework layer, Android runtime and system library, and kernel layer.
应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图1B所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。As shown in Figure 1B, the application package can include camera, gallery, calendar, calling, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图1B所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in Figure 1B, the application framework layer can include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。A window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make this data accessible to applications. Said data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls that display text, controls that display pictures, etc. A view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide communication functions of the electronic device 100 . For example, call status management (including connected, hung up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a beep sounds, the electronic device vibrates, the indicator light flashes, etc.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library contains two parts: one is the functional functions that need to be called by the Java language, and the other is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and application framework layer into binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。System libraries can include multiple functional modules. For example: surface manager (surface manager), media libraries (Media Libraries), 3D graphics processing libraries (for example: OpenGL ES), 2D graphics engines (for example: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing.
2D图形引擎是2D绘图的绘图引擎。2D Graphics Engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
下面结合捕获拍照场景,示例性说明电子设备100软件以及硬件的工作流程。The following exemplifies the workflow of the software and hardware of the electronic device 100 in conjunction with capturing the photographing scene.
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为相机应用图标的控件为例,相机应用调用应用框架层的接口,启动相机应用,进而通过调用内核层启动摄像头驱动,通过摄像头193捕获静态图像或视频。When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes touch operations into raw input events (including touch coordinates, timestamps of touch operations, and other information). Raw input events are stored at the kernel level. The application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation and the control corresponding to the click operation as a camera application icon control as an example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer. Camera 193 captures still images or video.
下面结合图2-图4介绍本申请实施例提供的多天线场景。The following describes the multi-antenna scenario provided by the embodiment of the present application with reference to Figures 2-4.
如图2所示,电子设备100可包括:处理单元、主Wi-Fi芯片、辅Wi-Fi芯片、多个信号切换单元和多个天线。As shown in FIG. 2 , the electronic device 100 may include: a processing unit, a main Wi-Fi chip, a secondary Wi-Fi chip, multiple signal switching units, and multiple antennas.
其中,处理单元用于控制和管理主Wi-Fi芯片和辅Wi-Fi芯片的工作。示例性地,该处理单元可以为处理器101,处理单元可以通过通信接口连接主Wi-Fi芯片和辅Wi-Fi芯片。主Wi-Fi芯片和辅Wi-Fi芯片可以通过天线收发无线信号,实现电子设备100与其他设备建立Wi-Fi通信连接。信号切换单元可用于控 制不同线路的连通。示例性地,该信号切换单元可以为射频开关,包括:单刀双掷开关、四刀双掷开关。电子设备100可以通过该信号切换单元控制Wi-Fi芯片到不同天线的连通情况,来控制主Wi-Fi芯片和辅Wi-Fi芯片收发信号时使用的天线。Among them, the processing unit is used to control and manage the work of the main Wi-Fi chip and the auxiliary Wi-Fi chip. For example, the processing unit may be a processor 101, and the processing unit may be connected to the main Wi-Fi chip and the auxiliary Wi-Fi chip through a communication interface. The main Wi-Fi chip and the auxiliary Wi-Fi chip can send and receive wireless signals through the antenna, allowing the electronic device 100 to establish a Wi-Fi communication connection with other devices. The signal switching unit can be used to control Control the connection of different lines. For example, the signal switching unit may be a radio frequency switch, including a single-pole double-throw switch or a four-pole double-throw switch. The electronic device 100 can control the connectivity of the Wi-Fi chip to different antennas through the signal switching unit to control the antennas used by the main Wi-Fi chip and the auxiliary Wi-Fi chip to send and receive signals.
具体关于处理器101、主Wi-Fi芯片、辅Wi-Fi芯片的相关描述可以参见前述图1A中的相关内容,这里不再赘述。For specific descriptions of the processor 101, the main Wi-Fi chip, and the auxiliary Wi-Fi chip, please refer to the relevant content in Figure 1A, and will not be described again here.
从图2可以看出,处理单元分别连接主Wi-Fi芯片和辅Wi-Fi芯片的一端,信号切换单元A的A1端连接主Wi-Fi芯片的一端,信号切换单元A的A2端连接天线1,A3端连接信号切换单元C的C1端,信号切换单元B的B1端连接主Wi-Fi芯片的一端,信号切换单元B的B2端连接天线2,B3端连接信号切换单元C的C2端,信号切换单元C的C3端和C4端分别连接辅Wi-Fi芯片的两端,信号切换单元C的C5端和C6端分别连接天线3和天线4。其中,信号切换单元A和信号切换单元B可以为单刀双掷开关,信号切换单元C可以为四刀双掷开关。As can be seen from Figure 2, the processing unit is connected to one end of the main Wi-Fi chip and the auxiliary Wi-Fi chip respectively. The A1 end of the signal switching unit A is connected to one end of the main Wi-Fi chip. The A2 end of the signal switching unit A is connected to the antenna. 1. The A3 terminal is connected to the C1 terminal of the signal switching unit C, the B1 terminal of the signal switching unit B is connected to one end of the main Wi-Fi chip, the B2 terminal of the signal switching unit B is connected to the antenna 2, and the B3 terminal is connected to the C2 terminal of the signal switching unit C. , the C3 terminal and C4 terminal of the signal switching unit C are respectively connected to both ends of the auxiliary Wi-Fi chip, and the C5 terminal and C6 terminal of the signal switching unit C are connected to the antenna 3 and the antenna 4 respectively. Among them, the signal switching unit A and the signal switching unit B may be single-pole double-throw switches, and the signal switching unit C may be a four-pole double-throw switch.
应理解,在实际电路中,处理单元、主Wi-Fi芯片、辅Wi-Fi芯片、信号切换单元A-C、天线1-4还可以存在其他的接口,并连接有其他的器件,例如,信号切换单元A-C还存在接口用于连接电源和输入控制信号。其中,电源用于为信号切换单元A-C供电,控制信号用于控制信号切换单元A-C对不同线路的导通情况。It should be understood that in the actual circuit, the processing unit, the main Wi-Fi chip, the auxiliary Wi-Fi chip, the signal switching units A-C, and the antennas 1-4 may also have other interfaces and be connected to other devices, such as signal switching. Units A-C also have interfaces for connecting power supplies and input control signals. Among them, the power supply is used to supply power to the signal switching units A-C, and the control signal is used to control the conduction of different lines by the signal switching units A-C.
下面分别以信号切换单元A-C的线路导通情况,描述主Wi-Fi芯片和辅Wi-Fi芯片选择收发信号的天线的具体实现过程:The specific implementation process of the main Wi-Fi chip and the auxiliary Wi-Fi chip selecting the antenna to send and receive signals is described below based on the line conduction status of the signal switching units A-C respectively:
1)信号切换单元A1) Signal switching unit A
对于输入到信号切换单元A的控制信号,该控制信号可用于控制信号切换单元A的A1端到A2端连通(参见图2所示的信号切换单元A中的实线),这时,主Wi-Fi芯片可以通过天线1收发信号;或者,该控制信号可用于控制信号切换单元A的A1端到A3端连通(参见图2所示的信号切换单元A中的虚线),这时,主Wi-Fi芯片不通过天线1收发信号,进一步地,控制信号切换单元C对线路的连通,可以使得主Wi-Fi芯片通过天线3收发信号。For the control signal input to the signal switching unit A, the control signal can be used to control the connection between the A1 terminal and the A2 terminal of the signal switching unit A (see the solid line in the signal switching unit A shown in Figure 2). At this time, the main Wi -Fi chip can send and receive signals through antenna 1; alternatively, the control signal can be used to control the connection from the A1 end to the A3 end of the signal switching unit A (see the dotted line in the signal switching unit A shown in Figure 2). At this time, the main Wi -The Fi chip does not send and receive signals through antenna 1. Furthermore, controlling the connection of the signal switching unit C to the line can enable the main Wi-Fi chip to send and receive signals through antenna 3.
2)信号切换单元B2) Signal switching unit B
对于输入到信号切换单元B的控制信号,该控制信号可用于控制信号切换单元B的B1端到B2端连通(参见图2所示的信号切换单元B中的实线),这时,主Wi-Fi芯片可以通过天线2收发信号;或者,该控制信号可用于控制信号切换单元B的B1端到B3端连通(参见图2所示的信号切换单元B中的虚线),这时,主Wi-Fi芯片不通过天线2收发信号,进一步地,控制信号切换单元C线路的连通,可以使得主Wi-Fi芯片通过天线4收发信号。For the control signal input to the signal switching unit B, the control signal can be used to control the connection between the B1 end and the B2 end of the signal switching unit B (see the solid line in the signal switching unit B shown in Figure 2). At this time, the main Wi -Fi chip can send and receive signals through antenna 2; alternatively, the control signal can be used to control the connection from B1 end to B3 end of signal switching unit B (see the dotted line in signal switching unit B shown in Figure 2). At this time, the main Wi -The Fi chip does not send and receive signals through the antenna 2. Furthermore, controlling the connection of the signal switching unit C line allows the main Wi-Fi chip to send and receive signals through the antenna 4.
3)信号切换单元C3) Signal switching unit C
对于输入到信号切换单元C的控制信号,该控制信号可用于控制信号切换单元C的C1端到C5端连通(参见图2所示的信号切换单元C中的虚线),这时,在信号切换单元A的A1端到A3端连通的情况下,主Wi-Fi芯片可以通过天线3收发信号;另外,该控制信号还可用于控制信号切换单元C的C2端到C6端连通(参见图2所示的信号切换单元C中的虚线),这时,在信号切换单元B的B1端到B3端连通的情况下,主Wi-Fi芯片通过天线4收发信号。或者,该控制信号可用于控制信号切换单元C的C3端到C5端连通(参见图2所示的信号切换单元C中的实线),这时,辅Wi-Fi芯片可以通过天线3收发信号;另外,该控制信号还可用于控制信号切换单元C的C4端到C6端连通(参见图2所示的信号切换单元C中的实线),这时,辅Wi-Fi芯片还可以通过天线4收发信号。For the control signal input to the signal switching unit C, the control signal can be used to control the connection between the C1 terminal and the C5 terminal of the signal switching unit C (see the dotted line in the signal switching unit C shown in Figure 2). At this time, during the signal switching When the A1 end of unit A is connected to the A3 end, the main Wi-Fi chip can send and receive signals through the antenna 3; in addition, the control signal can also be used to control the connection of the C2 end to the C6 end of the signal switching unit C (see Figure 2 The dotted line in the signal switching unit C shown above). At this time, when the B1 end to the B3 end of the signal switching unit B are connected, the main Wi-Fi chip sends and receives signals through the antenna 4. Alternatively, the control signal can be used to control the connection between the C3 terminal and the C5 terminal of the signal switching unit C (see the solid line in the signal switching unit C shown in Figure 2). At this time, the auxiliary Wi-Fi chip can send and receive signals through the antenna 3 ; In addition, the control signal can also be used to control the connection from the C4 end to the C6 end of the signal switching unit C (see the solid line in the signal switching unit C shown in Figure 2). At this time, the auxiliary Wi-Fi chip can also pass the antenna 4. Send and receive signals.
初始地,信号切换单元A可以默认连通A1端到A2端,信号切换单元B可以默认连通B1端到B2端,这样,主Wi-Fi芯片可以默认通过天线1、2收发信号,信号切换单元C可以默认连通C3端到C5端,以及C4端到C6端,这样,辅Wi-Fi芯片可以默认通过天线3、4收发信号。Initially, signal switching unit A can connect A1 to A2 by default, and signal switching unit B can connect B1 to B2 by default. In this way, the main Wi-Fi chip can send and receive signals through antennas 1 and 2 by default, and signal switching unit C can The C3 end to the C5 end and the C4 end to the C6 end can be connected by default. In this way, the auxiliary Wi-Fi chip can send and receive signals through antennas 3 and 4 by default.
可以理解的是,信号切换单元A-C用于控制主Wi-Fi芯片和辅Wi-Fi芯片收发信号的天线,本申请实施例对信号切换单元A-C的具体电路结构不作限制。例如,电子设备100除了通过图2所示的单刀双掷开关控制主Wi-Fi芯片连通的天线外,还可以通过在图2所示的A1端-A2端线路上连接一个开关,以及在A1端-A3端线路上连接一个开关,通过控制这两个开关的连通和断开来达到切换主Wi-Fi芯片连接的天线的目的。又例如,主Wi-Fi芯片可以提供四个接口分别用于连接天线1-天线4,并通过控制接口到天线之间的开关的连通和断开来控制主Wi-Fi芯片连通的天线,并且,在这种情况下,主Wi-Fi芯片还可以同时通过天线1-天线3,或者,天线1-天线4收发信号。因此,本申请实施例对Wi-Fi芯片收发信号时使用的天线数量不作限制。类似的,本申请实施例对图3和图4所示的信号切换单元的具体电路结构,以及对 Wi-Fi芯片收发信号时使用的天线数量也不作限制,下面不再赘述。It can be understood that the signal switching unit AC is used to control the antennas used by the main Wi-Fi chip and the auxiliary Wi-Fi chip to send and receive signals. The embodiment of the present application does not limit the specific circuit structure of the signal switching unit AC. For example, in addition to controlling the antenna connected to the main Wi-Fi chip through the single-pole double-throw switch shown in Figure 2, the electronic device 100 can also connect a switch to the A1-A2 terminal line shown in Figure 2, and connect the A1 A switch is connected to the terminal-A3 terminal line. By controlling the connection and disconnection of these two switches, the purpose of switching the antenna connected to the main Wi-Fi chip is achieved. For another example, the main Wi-Fi chip can provide four interfaces for connecting antenna 1 to antenna 4 respectively, and control the antennas connected to the main Wi-Fi chip by controlling the connection and disconnection of the switch between the interfaces and the antennas, and , in this case, the main Wi-Fi chip can also send and receive signals through antenna 1-antenna 3, or antenna 1-antenna 4 at the same time. Therefore, embodiments of the present application do not limit the number of antennas used by the Wi-Fi chip when transmitting and receiving signals. Similarly, the embodiments of this application describe the specific circuit structure of the signal switching unit shown in Figures 3 and 4, as well as the There is no limit on the number of antennas used by the Wi-Fi chip when sending and receiving signals, so I won’t go into details below.
另外,需要注意的是,主Wi-Fi芯片可以默认处于双天线工作模式。一种优选的可能,主Wi-Fi芯片在切换连接的天线时,可以同时切换主Wi-Fi芯片所使用的两根天线。那么,信号切换单元A和信号切换单元B的切换节奏是同步的。电子设备100可以同时控制信号切换单元A和信号切换单元A的A1端到A2端连通,使得主Wi-Fi芯片同时使用天线1和天线2收发信号,或者,电子设备100可以同时控制信号切换单元A的A1端到A3端以及信号切换单元B的B1端到B3端连通,并进一步结合信号切换单元C线路的连通,使得主Wi-Fi芯片同时使用天线3和天线4收发信号。类似的,图3和图4所示的主Wi-Fi芯片也可以默认处于双天线工作模式,电子设备100可以通过控制信号切换单元实现主Wi-Fi芯片同时使用天线1和天线2,或,天线3和天线4收发信号,下面不再赘述。或者,主Wi-Fi芯片还可以通过天线1和天线3,或,天线2和天线4收发信号,或者,主Wi-Fi芯片还可以通过天线1和天线4,或,天线2和天线3收发信号,本申请实施例对Wi-Fi芯片连通的天线不作限制。In addition, it should be noted that the main Wi-Fi chip can be in dual-antenna working mode by default. A preferred possibility is that when the main Wi-Fi chip switches the connected antenna, it can switch the two antennas used by the main Wi-Fi chip at the same time. Then, the switching rhythms of signal switching unit A and signal switching unit B are synchronized. The electronic device 100 can simultaneously control the signal switching unit A and connect the A1 end to the A2 end of the signal switching unit A, so that the main Wi-Fi chip uses antenna 1 and antenna 2 to send and receive signals at the same time, or the electronic device 100 can control the signal switching unit at the same time. The A1 end to A3 end of A and the B1 end to B3 end of signal switching unit B are connected, and further combined with the connection of the signal switching unit C line, the main Wi-Fi chip uses antenna 3 and antenna 4 to send and receive signals at the same time. Similarly, the main Wi-Fi chip shown in Figures 3 and 4 can also be in the dual-antenna working mode by default. The electronic device 100 can control the signal switching unit to realize that the main Wi-Fi chip uses antenna 1 and antenna 2 at the same time, or, Antenna 3 and antenna 4 send and receive signals, which will not be described in detail below. Alternatively, the main Wi-Fi chip can also send and receive signals through antenna 1 and antenna 3, or antenna 2 and antenna 4, or the main Wi-Fi chip can also send and receive signals through antenna 1 and antenna 4, or antenna 2 and antenna 3 signal, the embodiment of this application does not limit the antenna connected to the Wi-Fi chip.
如图3所示,电子设备100可包括:处理单元、主Wi-Fi芯片、辅Wi-Fi芯片、多个信号切换单元和多个天线。As shown in FIG. 3 , the electronic device 100 may include: a processing unit, a main Wi-Fi chip, a secondary Wi-Fi chip, multiple signal switching units, and multiple antennas.
其中,图3所示的结构示意图与图2所示的结构示意图类似,不同的是,图2所示的信号切换单元C替换为图3所示的信号切换单元D、E。其中,信号切换单元D的D1端连接信号切换单元A的A3端,信号切换单元D的D2端连接辅Wi-Fi芯片的一端,信号切换单元D的D3端连接天线3,信号切换单元E的E1端连接信号切换单元B的B3端,信号切换单元E的E2端连接辅Wi-Fi芯片的一端,信号切换单元E的E3端连接天线4。其中,信号切换单元D、F可以为单刀双掷开关。The structural schematic diagram shown in FIG. 3 is similar to the structural schematic diagram shown in FIG. 2 . The difference is that the signal switching unit C shown in FIG. 2 is replaced by the signal switching units D and E shown in FIG. 3 . Among them, the D1 terminal of the signal switching unit D is connected to the A3 terminal of the signal switching unit A, the D2 terminal of the signal switching unit D is connected to one end of the auxiliary Wi-Fi chip, the D3 terminal of the signal switching unit D is connected to the antenna 3, and the D3 terminal of the signal switching unit E is connected to the antenna 3. The E1 terminal is connected to the B3 terminal of the signal switching unit B, the E2 terminal of the signal switching unit E is connected to one end of the auxiliary Wi-Fi chip, and the E3 terminal of the signal switching unit E is connected to the antenna 4. Among them, the signal switching units D and F can be single-pole double-throw switches.
具体关于图3中的部件的描述,以及未阐述的部件的连接情况可以参考前述图2的相关内容,这里不再赘述。For specific descriptions of the components in Figure 3, as well as the connection conditions of components not illustrated, please refer to the relevant content of the aforementioned Figure 2, and will not be described again here.
下面分别以信号切换单元A、B、D、E的线路导通情况,描述主Wi-Fi芯片和辅Wi-Fi芯片选择收发信号的天线的具体实现过程:The specific implementation process of the main Wi-Fi chip and the auxiliary Wi-Fi chip selecting the antenna to send and receive signals is described below based on the line conduction status of signal switching units A, B, D, and E respectively:
1)信号切换单元A1) Signal switching unit A
与图2中的信号切换单元A类似,对于输入到图3中的信号切换单元A的控制信号,该控制信号可用于控制主Wi-Fi芯片通过天线1收发信号,不同的是,在控制信号切换单元A的A1端到A3端连通时,可以进一步通过控制信号切换单元D对线路的连通,使得主Wi-Fi芯片通过天线3收发信号。Similar to the signal switching unit A in Figure 2, for the control signal input to the signal switching unit A in Figure 3, the control signal can be used to control the main Wi-Fi chip to send and receive signals through the antenna 1. The difference is that in the control signal When the A1 end of the switching unit A is connected to the A3 end, the connection of the line by the switching unit D can be further controlled by controlling the signal, so that the main Wi-Fi chip sends and receives signals through the antenna 3.
2)信号切换单元B2) Signal switching unit B
与图2中的信号切换单元B类似,对于输入到图3中的信号切换单元B的控制信号,该控制信号可用于控制主Wi-Fi芯片通过天线2收发信号,不同的是,在控制信号控制信号切换单元B的B1端到B3端连通时,可以进一步通过控制信号切换单元E对线路的连通,使得主Wi-Fi芯片通过天线4收发信号。Similar to the signal switching unit B in Figure 2, for the control signal input to the signal switching unit B in Figure 3, the control signal can be used to control the main Wi-Fi chip to send and receive signals through the antenna 2. The difference is that in the control signal When the B1 terminal to the B3 terminal of the control signal switching unit B are connected, the line can be further connected through the control signal switching unit E, so that the main Wi-Fi chip sends and receives signals through the antenna 4 .
3)信号切换单元D3) Signal switching unit D
对于输入到信号切换单元D的控制信号,该控制信号可用于控制信号切换单元D的D1端到D3端连通(参见图3所示的信号切换单元D中的虚线),这时,在信号切换单元A的A1端到A3端连通的情况下,主Wi-Fi芯片可以通过天线3收发信号;或者,该控制信号可用于控制信号切换单元D的D2端到D3端连通(参见图3所示的信号切换单元D中的实线),这时,辅Wi-Fi芯片可以通过天线3收发信号。For the control signal input to the signal switching unit D, the control signal can be used to control the connection between the D1 end and the D3 end of the signal switching unit D (see the dotted line in the signal switching unit D shown in Figure 3). At this time, during the signal switching When the A1 end of unit A is connected to the A3 end, the main Wi-Fi chip can send and receive signals through the antenna 3; alternatively, the control signal can be used to control the connection of the D2 end to the D3 end of the signal switching unit D (see Figure 3 The solid line in the signal switching unit D), at this time, the auxiliary Wi-Fi chip can send and receive signals through the antenna 3.
4)信号切换单元E4) Signal switching unit E
对于输入到信号切换单元E的控制信号,该控制信号可用于控制信号切换单元E的E1端到E3端连通(参见图3所示的信号切换单元E中的虚线),这时,在信号切换单元B的B1端到B3端连通的情况下,主Wi-Fi芯片可以通过天线4收发信号;或者,该控制信号可用于控制信号切换单元E的E2端到E3端连通(参见图3所示的信号切换单元E中的实线),这时,辅Wi-Fi芯片可以通过天线4收发信号。For the control signal input to the signal switching unit E, the control signal can be used to control the connection between the E1 end and the E3 end of the signal switching unit E (see the dotted line in the signal switching unit E shown in Figure 3). At this time, during the signal switching When the B1 end of unit B is connected to the B3 end, the main Wi-Fi chip can send and receive signals through the antenna 4; alternatively, the control signal can be used to control the connection of the E2 end to the E3 end of the signal switching unit E (see Figure 3 The solid line in the signal switching unit E), at this time, the auxiliary Wi-Fi chip can send and receive signals through the antenna 4.
初始地,信号切换单元A可以默认连通A1端到A2端,信号切换单元B可以默认连通B1端到B2端,这样,主Wi-Fi芯片可以默认通过天线1、2收发信号,信号切换单元D可以默认连通D2端到D3端,信号切换单元E可以默认连通E2端到E3端,这样,辅Wi-Fi芯片可以默认通过天线3、4收发信号。Initially, signal switching unit A can connect A1 to A2 by default, and signal switching unit B can connect B1 to B2 by default. In this way, the main Wi-Fi chip can send and receive signals through antennas 1 and 2 by default, and signal switching unit D The D2 terminal can be connected to the D3 terminal by default, and the signal switching unit E can be connected to the E2 terminal to the E3 terminal by default. In this way, the auxiliary Wi-Fi chip can send and receive signals through antennas 3 and 4 by default.
如图4所示,电子设备100可包括:处理单元、主Wi-Fi芯片、辅Wi-Fi芯片、一个信号切换单元和多个天线。As shown in FIG. 4 , the electronic device 100 may include: a processing unit, a main Wi-Fi chip, a secondary Wi-Fi chip, a signal switching unit, and multiple antennas.
其中,图4所示的结构示意图与图2所示的结构示意图类似,主Wi-Fi芯片和辅Wi-Fi芯片的一端都 连接处理单元,不同的是,图2所示的信号切换单元A-C替换为图4所示的信号切换单元F。其中,信号切换单元F的F1端和F2端分别连接主Wi-Fi芯片的两端,F3端和F4端分别连接从Wi-Fi芯片的两端,F5端到F8端分别连接天线1-4。其中,信号切换单元F可以为四刀四掷开关。Among them, the structural schematic diagram shown in Figure 4 is similar to the structural schematic diagram shown in Figure 2. One end of the main Wi-Fi chip and the auxiliary Wi-Fi chip are both The processing unit is connected. The difference is that the signal switching unit AC shown in Figure 2 is replaced by the signal switching unit F shown in Figure 4. Among them, the F1 end and F2 end of the signal switching unit F are respectively connected to the two ends of the main Wi-Fi chip, the F3 end and the F4 end are respectively connected to the two ends of the slave Wi-Fi chip, and the F5 end to the F8 end are connected to the antennas 1-4 respectively. . The signal switching unit F may be a four-pole four-throw switch.
具体关于图4中的部件的描述,以及未阐述的部件的连接情况可以参考前述图2的相关内容,这里不再赘述。For specific descriptions of the components in Figure 4 and the connection of components not described above, please refer to the relevant content of Figure 2, and will not be described again here.
下面以信号切换单元F的线路导通情况,描述主Wi-Fi芯片和辅Wi-Fi芯片选择收发信号的天线的具体实现过程:The specific implementation process of the main Wi-Fi chip and the auxiliary Wi-Fi chip selecting the antenna to send and receive signals is described below based on the line conduction status of the signal switching unit F:
针对输入到信号切换单元F的控制信号,该控制信号可用于控制信号切换单元F的F1端到F5端连通,以及,F2端到F6端连通,这时,主Wi-Fi芯片可以通过天线1、2收发信号;或者,该控制信号可用于控制信号切换单元F的F1端到F7端连通,以及,F2端到F8端连通(参见图4所示的信号切换单元F中的虚线),这时,主Wi-Fi芯片可以通过天线3、4收发信号;另外,该控制信号还可以用于控制信号切换单元F的F3端到F7端连通,以及,F4端到F8端连通,这时,辅Wi-Fi芯片可以通过天线3、4收发信号。For the control signal input to the signal switching unit F, the control signal can be used to control the connection between the F1 end and the F5 end of the signal switching unit F, and the connection between the F2 end and the F6 end. At this time, the main Wi-Fi chip can pass the antenna 1 , 2 to send and receive signals; or, the control signal can be used to control the connection from the F1 end to the F7 end of the signal switching unit F, and the connection from the F2 end to the F8 end (see the dotted line in the signal switching unit F shown in Figure 4), this At this time, the main Wi-Fi chip can send and receive signals through antennas 3 and 4; in addition, the control signal can also be used to control the connection from the F3 end to the F7 end of the signal switching unit F, and the connection from the F4 end to the F8 end. At this time, The auxiliary Wi-Fi chip can send and receive signals through antennas 3 and 4.
初始地,信号切换单元E可以默认连通F1端到F5端,F2端到F6端,F3端到F7端,F4端到F8端(参见图4所示的信号切换单元F中的实线),这样,主Wi-Fi芯片可以默认通过天线1、2收发信号,辅Wi-Fi芯片可以默认通过天线3、4收发信号。Initially, the signal switching unit E can connect the F1 terminal to the F5 terminal, the F2 terminal to the F6 terminal, the F3 terminal to the F7 terminal, and the F4 terminal to the F8 terminal by default (see the solid line in the signal switching unit F shown in Figure 4), In this way, the main Wi-Fi chip can send and receive signals through antennas 1 and 2 by default, and the auxiliary Wi-Fi chip can send and receive signals through antennas 3 and 4 by default.
另外,需要注意的是,相比于图2和图3,图4所示的电路结构更加简洁,仅通过一个射频开关即可控制主Wi-Fi芯片和辅Wi-Fi芯片对天线的选择,其中,相比于图2和图3中主Wi-Fi芯片通过天线3、4收发信号,需要经过两个射频开关的损耗,图4所示的电路中仅存在一个射频开关的损耗,因此,图4所示的电路对射频通路的插损影响较小。In addition, it should be noted that compared with Figures 2 and 3, the circuit structure shown in Figure 4 is simpler. Only one radio frequency switch can control the selection of antennas by the main Wi-Fi chip and the auxiliary Wi-Fi chip. Among them, compared with the main Wi-Fi chip in Figures 2 and 3, which needs to go through the loss of two radio frequency switches to send and receive signals through antennas 3 and 4, the circuit shown in Figure 4 only has the loss of one radio frequency switch. Therefore, The circuit shown in Figure 4 has little impact on the insertion loss of the RF path.
综上,从图2-图4可以看出,主Wi-Fi芯片可以通过天线1、2或天线3、4收发信号,其中,天线3、4作为主Wi-Fi芯片的备用天线,在主Wi-Fi芯片通过天线1、2收发信号时,如果信号强度较弱,则主Wi-Fi芯片可以切换到天线3、4收发信号,或者,主Wi-Fi芯片在通过天线1、2收发信号的基础上,额外增加天线3、4收发信号,另外,辅Wi-Fi芯片仅通过天线3、4收发信号,辅Wi-Fi芯片可以在电子设备100处于多设备协同和/或多网并发的场景时,进入工作状态,分担主Wi-Fi芯片的运算工作量,并通过备用的天线,即天线3、4,同时传输数据,提高多业务并发的通信速度,降低通信时延。具体关于多设备协同和多网并发的描述可以参见后续方法实施例,这里先不展开。In summary, it can be seen from Figures 2 to 4 that the main Wi-Fi chip can send and receive signals through antennas 1 and 2 or antennas 3 and 4. Antennas 3 and 4 serve as backup antennas for the main Wi-Fi chip. When the Wi-Fi chip sends and receives signals through antennas 1 and 2, if the signal strength is weak, the main Wi-Fi chip can switch to antennas 3 and 4 to send and receive signals, or the main Wi-Fi chip can send and receive signals through antennas 1 and 2. On the basis of, additional antennas 3 and 4 are added to transmit and receive signals. In addition, the auxiliary Wi-Fi chip only transmits and receives signals through antennas 3 and 4. The auxiliary Wi-Fi chip can be used when the electronic device 100 is in multi-device collaboration and/or multi-network concurrency. In the scene, it enters the working state, shares the computing workload of the main Wi-Fi chip, and transmits data simultaneously through the backup antennas, namely antennas 3 and 4, to increase the speed of concurrent multi-service communication and reduce communication delays. Specific descriptions of multi-device collaboration and multi-network concurrency can be found in subsequent method embodiments, which will not be described here.
应理解,在主Wi-Fi芯片切换到备用天线收发信号时,主Wi-Fi芯片可以仅切换一个天线,例如,在主Wi-Fi芯片通过天线1、2收发信号时,如果信号强度较弱,则主Wi-Fi芯片可以将天线2切换为天线4,这时,主Wi-Fi芯片可以通过天线1、4收发信号。本申请实施例对Wi-Fi芯片切换的天线数量不作限制。It should be understood that when the main Wi-Fi chip switches to the backup antenna to send and receive signals, the main Wi-Fi chip can only switch to one antenna. For example, when the main Wi-Fi chip sends and receives signals through antennas 1 and 2, if the signal strength is weak , then the main Wi-Fi chip can switch antenna 2 to antenna 4. At this time, the main Wi-Fi chip can send and receive signals through antennas 1 and 4. The embodiment of the present application does not limit the number of antennas switched by the Wi-Fi chip.
下面介绍本申请实施例提供的天线复用方法的流程。The following describes the process of the antenna multiplexing method provided by the embodiment of the present application.
图5示出了本申请实施例提供的天线复用方法的流程示意图。Figure 5 shows a schematic flowchart of the antenna multiplexing method provided by the embodiment of the present application.
如图5所示,该方法包括:As shown in Figure 5, the method includes:
S101.电子设备100控制主Wi-Fi芯片通过主天线收发信号。S101. The electronic device 100 controls the main Wi-Fi chip to send and receive signals through the main antenna.
在本申请实施例中,电子设备100包括双Wi-Fi芯片:主Wi-Fi芯片和辅Wi-Fi芯片。其中,主Wi-Fi芯片默认配置的天线可以称为主天线,辅Wi-Fi天线默认配置的天线可以称为复用天线。其中,主天线和复用天线的天线类型可以包括但不限于:倒置F型天线(Inverted F-shaped Antenna,IFA天线)、平面倒F形天线(Planar Inverted F-shaped Antenna,PIFA天线)、槽孔(Slot)天线等等。另外,主天线和复用天线的天线极化方向或方向图可以不同,优选地,主天线和复用天线的天线极化方向或方向图互补。In this embodiment of the present application, the electronic device 100 includes dual Wi-Fi chips: a primary Wi-Fi chip and a secondary Wi-Fi chip. Among them, the antenna configured by default on the main Wi-Fi chip can be called the main antenna, and the antenna configured by default on the auxiliary Wi-Fi antenna can be called a multiplex antenna. Among them, the antenna types of the main antenna and the multiplexed antenna may include but are not limited to: inverted F-shaped antenna (Inverted F-shaped Antenna, IFA antenna), planar inverted F-shaped antenna (Planar Inverted F-shaped Antenna, PIFA antenna), slot antenna Slot antenna and so on. In addition, the antenna polarization directions or patterns of the main antenna and the multiplexed antenna may be different. Preferably, the antenna polarization directions or patterns of the main antenna and the multiplexed antenna are complementary.
可以理解的是,电子设备100也可以不限于仅包含两个Wi-Fi芯片,在本申请其他实施例中,电子设备100还可以包含三个Wi-Fi芯片或四个Wi-Fi芯片等等,本申请实施例对电子设备100包含的Wi-Fi芯片的数量不作限制。另外,主天线或复用天线可以包括一个或多个天线,示例性地,主天线和复用天线都包括2个天线。It can be understood that the electronic device 100 is not limited to only including two Wi-Fi chips. In other embodiments of the present application, the electronic device 100 may also include three Wi-Fi chips or four Wi-Fi chips, etc. , the embodiment of the present application does not limit the number of Wi-Fi chips included in the electronic device 100. In addition, the main antenna or the multiplexed antenna may include one or more antennas. For example, the main antenna and the multiplexed antenna may include 2 antennas.
示例性地,参见图2-图4,主天线可以是指天线1、2,复用天线可以是指天线3、4。For example, referring to Figures 2 to 4, the main antenna may refer to antennas 1 and 2, and the multiplexed antenna may refer to antennas 3 and 4.
应理解,本申请实施例对主Wi-Fi芯片、辅Wi-Fi芯片、主天线、复用天线的名称不作限制,主Wi-Fi芯片还可以被称为原始Wi-Fi芯片、第一Wi-Fi芯片,辅Wi-Fi芯片还可以被称为新增Wi-Fi芯片,第二Wi-Fi芯片,主天线还可以被称为原始天线,第一天线,复用天线还可以被称为新增天线、第二天线等等, 上述部件的名称不构成对该部件的作用或功能的限定。It should be understood that the embodiments of this application do not limit the names of the main Wi-Fi chip, the auxiliary Wi-Fi chip, the main antenna, and the multiplexed antenna. The main Wi-Fi chip can also be called the original Wi-Fi chip, the first Wi-Fi chip, and the first Wi-Fi chip. -Fi chip, auxiliary Wi-Fi chip can also be called new Wi-Fi chip, second Wi-Fi chip, main antenna can also be called original antenna, first antenna, multiplexed antenna can also be called Add new antennas, second antennas, etc., The names of the above components do not constitute limitations on the role or function of the component.
其中,电子设备100可以在需要使用Wi-Fi功能时,例如利用Wi-Fi浏览网页、观看视频等,控制主Wi-Fi芯片通过主天线收发信号。Among them, the electronic device 100 can control the main Wi-Fi chip to send and receive signals through the main antenna when the Wi-Fi function needs to be used, such as browsing the web, watching videos, etc. via Wi-Fi.
参见图2和图3,电子设备100可以通过控制信号切换单元A的A1端到A2端连通,控制信号切换单元B的B1端到B2端连通,来使得主Wi-Fi芯片连通天线1、2,达到电子设备100控制主Wi-Fi芯片通过主天线收发信号的目的。Referring to Figures 2 and 3, the electronic device 100 can connect the main Wi-Fi chip to the antennas 1 and 2 by controlling the connection from the A1 end to the A2 end of the signal switching unit A, and controlling the connection from the B1 end to the B2 end of the signal switching unit B. , to achieve the purpose of the electronic device 100 controlling the main Wi-Fi chip to send and receive signals through the main antenna.
参见图4,电子设备100可以通过控制信号切换单元F的F1端到F5端连通,F2端到F6端连通,来使得主Wi-Fi芯片连通天线1、2,达到电子设备100控制主Wi-Fi芯片通过主天线收发信号的目的。Referring to Figure 4, the electronic device 100 can connect the F1 end to the F5 end and the F2 end to the F6 end of the control signal switching unit F, so that the main Wi-Fi chip connects to the antennas 1 and 2, so that the electronic device 100 controls the main Wi-Fi chip. The purpose of the Fi chip is to send and receive signals through the main antenna.
S102.当满足预设条件时,电子设备100触发判断是否切换主Wi-Fi芯片使用的天线。S102. When the preset conditions are met, the electronic device 100 triggers a decision whether to switch the antenna used by the main Wi-Fi chip.
其中,预设条件可以包括以下一项或多项:Among them, the preset conditions may include one or more of the following:
1)主Wi-Fi芯片收发信号时的信号质量变差1) The signal quality of the main Wi-Fi chip when sending and receiving signals deteriorates
这种情况下,电子设备100可以监控主Wi-Fi芯片工作时的信号质量,在主Wi-Fi芯片的信号质量低于预设阈值时,触发判断是否切换主Wi-Fi芯片使用的天线。In this case, the electronic device 100 can monitor the signal quality of the main Wi-Fi chip when it is working, and when the signal quality of the main Wi-Fi chip is lower than the preset threshold, trigger the decision whether to switch the antenna used by the main Wi-Fi chip.
2)电子设备100的折叠形态发生变化2) The folding form of the electronic device 100 changes
由于电子设备100的折叠形态的变化,会导致天线的覆盖效果发生变化,影响主Wi-Fi芯片工作时的信号质量。因此,电子设备100可以在折叠形态发生变化时,触发判断是否切换主Wi-Fi芯片使用的天线。Due to changes in the folded form of the electronic device 100, the coverage effect of the antenna will change, affecting the signal quality when the main Wi-Fi chip is working. Therefore, when the folded form of the electronic device 100 changes, it can be triggered to determine whether to switch the antenna used by the main Wi-Fi chip.
示例性地,电子设备100可以通过传感器器件,例如:陀螺仪传感器、加速度传感器等,来检测电子设备100的姿态变化,进而确定电子设备100的折叠形态。For example, the electronic device 100 can detect the posture change of the electronic device 100 through sensor devices, such as a gyroscope sensor, an acceleration sensor, etc., and then determine the folded form of the electronic device 100 .
3)用户主动发起触发操作3) The user actively initiates a trigger operation
该触发操作可用于控制主Wi-Fi芯片收发信号时的质量保持最佳,或者,允许主Wi-Fi芯片切换天线。这种情况下,电子设备100可以在检测到用户的触发操作后,响应于该操作,触发判断是否切换主Wi-Fi芯片使用的天线。This trigger operation can be used to control the main Wi-Fi chip to maintain optimal quality when sending and receiving signals, or to allow the main Wi-Fi chip to switch antennas. In this case, after detecting the user's trigger operation, the electronic device 100 may trigger and determine whether to switch the antenna used by the main Wi-Fi chip in response to the operation.
4)电子设备100处于预设场景4) The electronic device 100 is in a preset scene
在该预设场景下,电子设备100需要优先保证主Wi-Fi收发信号时的信号质量,使主Wi-Fi芯片通过天线收发信号时的信号质量保持最佳。该预设场景可以是指电子设备100通过主Wi-Fi芯片执行指定应用或指定功能的Wi-Fi通信,例如,游戏应用、视频会议功能等等,该指定应用或指定功能可以由开发人员提前预设,也可以由用户提前预设,本申请实施例对此不作限制。In this preset scenario, the electronic device 100 needs to prioritize ensuring the signal quality when the main Wi-Fi chip sends and receives signals, so that the signal quality when the main Wi-Fi chip sends and receives signals through the antenna remains optimal. The preset scene may refer to the Wi-Fi communication in which the electronic device 100 executes a designated application or designated function through the main Wi-Fi chip, such as a game application, a video conferencing function, etc. The designated application or designated function may be configured by the developer in advance. The preset can also be preset by the user in advance, and the embodiments of the present application do not limit this.
例如,该预设场景可以是指视频会议场景,即电子设备100在通过主Wi-Fi芯片执行视频会议应用的Wi-Fi通信,开展视频会议时,为了保证视频会议的信号质量,可以在电子设备100通过主Wi-Fi芯片执行视频会议应用的Wi-Fi通信时,判断是否切换主Wi-Fi芯片使用的天线。For example, the preset scene may refer to a video conference scene, that is, when the electronic device 100 performs Wi-Fi communication of the video conferencing application through the main Wi-Fi chip and conducts the video conference, in order to ensure the signal quality of the video conference, the electronic device 100 may When the device 100 performs Wi-Fi communication for a video conferencing application through the main Wi-Fi chip, it determines whether to switch the antenna used by the main Wi-Fi chip.
可以理解的是,本申请实施例对电子设备触发判断是否切换主Wi-Fi芯片使用的天线的条件不作限制。It can be understood that the embodiments of the present application do not limit the conditions for the electronic device to trigger and determine whether to switch the antenna used by the main Wi-Fi chip.
当满足预设条件时,电子设备100可以通过判断辅Wi-Fi芯片是否处于工作状态来确定是否切换主Wi-Fi芯片使用的天线。这是由于辅Wi-Fi芯片使用复用天线收发信号,当辅Wi-Fi芯片未处于工作状态,则复用天线未被占用,这时主Wi-Fi芯片可以将复用天线作为备用天线,使用该复用天线收发信号。When the preset conditions are met, the electronic device 100 can determine whether to switch the antenna used by the main Wi-Fi chip by determining whether the secondary Wi-Fi chip is in a working state. This is because the secondary Wi-Fi chip uses the multiplexed antenna to send and receive signals. When the secondary Wi-Fi chip is not in working state, the multiplexed antenna is not occupied. At this time, the main Wi-Fi chip can use the multiplexed antenna as a backup antenna. Use this multiplexed antenna to send and receive signals.
S103.电子设备100判断辅Wi-Fi芯片是否处于工作状态。S103. The electronic device 100 determines whether the secondary Wi-Fi chip is in working state.
电子设备100可以在双Wi-Fi场景下,控制辅Wi-Fi芯片进入工作状态,在退出双Wi-Fi场景时,控制辅Wi-Fi芯片退出工作状态。The electronic device 100 can control the secondary Wi-Fi chip to enter the working state in a dual Wi-Fi scenario, and control the secondary Wi-Fi chip to exit the working state when exiting the dual Wi-Fi scenario.
在辅Wi-Fi芯片处于工作状态时,具体是指辅Wi-Fi芯片通过复用天线收发信号。示例性地,在电子设备100中,辅Wi-Fi芯片可以通过引脚与处理器相连,电子设备100可以通过读取引脚的信息来确定辅Wi-Fi芯片是否处于工作状态。When the auxiliary Wi-Fi chip is in working state, specifically the auxiliary Wi-Fi chip sends and receives signals through the multiplexed antenna. For example, in the electronic device 100, the secondary Wi-Fi chip can be connected to the processor through pins, and the electronic device 100 can determine whether the secondary Wi-Fi chip is in a working state by reading information on the pins.
其中,该双Wi-Fi场景可以包括以下一项或多项:Among them, the dual Wi-Fi scenario may include one or more of the following:
1)多设备协同1) Multi-device collaboration
多设备协同功能是一种分布式技术,可以实现跨系统、跨设备协同,在多个设备建立连接后,可以实现资源共享,协同操作。示例性地,该多设备协同场景可以是指投屏场景。The multi-device collaboration function is a distributed technology that can achieve cross-system and cross-device collaboration. After multiple devices are connected, resource sharing and collaborative operations can be achieved. For example, the multi-device collaboration scenario may refer to a screen casting scenario.
也就是说,电子设备100可以在检测到启动多设备协同功能时,触发辅Wi-Fi芯片进入工作状态。以多设备协同场景为投屏场景为例,电子设备100检测到使用投屏功能时,触发辅Wi-Fi芯片进入工作状态。That is to say, the electronic device 100 can trigger the auxiliary Wi-Fi chip to enter the working state when detecting that the multi-device collaboration function is activated. Taking the multi-device collaboration scenario as a screen projection scenario as an example, when the electronic device 100 detects that the screen projection function is used, it triggers the auxiliary Wi-Fi chip to enter the working state.
图6示例性示出了多设备协同场景下,电子设备100使用双Wi-Fi芯片进行通信的场景示意图。 FIG. 6 exemplarily shows a schematic diagram of a scenario in which the electronic device 100 uses dual Wi-Fi chips to communicate in a multi-device collaboration scenario.
如图6所示,电子设备100通过主Wi-Fi芯片,使用2.4G/5G频段,CH36信道,与路由器建立Wi-Fi连接,执行网络下载、浏览网页等等上网业务,同时,通过辅Wi-Fi芯片,使用5G频段,CH149信道与电子设备200进行通信,进而执行电子设备100的投屏业务。As shown in Figure 6, the electronic device 100 uses the 2.4G/5G frequency band and CH36 channel to establish a Wi-Fi connection with the router through the main Wi-Fi chip, and performs Internet services such as network downloading and web browsing. At the same time, through the auxiliary Wi-Fi -Fi chip uses the 5G frequency band and CH149 channel to communicate with the electronic device 200, and then performs the screen projection service of the electronic device 100.
2)多网并发2) Multi-network concurrency
多网并发是指电子设备100能够同时与路由器的多个信道建立Wi-Fi连接,实现多信道同时工作,加快数据传输的速率,提升通信质量。这时,电子设备100可以通过主Wi-Fi芯片和辅Wi-Fi芯片分别与这两个信道连接,实现多网并发场景下的通信。Multi-network concurrency means that the electronic device 100 can establish Wi-Fi connections with multiple channels of the router at the same time, enabling multiple channels to work at the same time, speeding up the data transmission rate, and improving communication quality. At this time, the electronic device 100 can connect to the two channels through the main Wi-Fi chip and the auxiliary Wi-Fi chip respectively to achieve communication in a multi-network concurrent scenario.
总的来说,在多网并发场景下,电子设备100可以同时与多个路由器建立Wi-Fi连接,对于支持多信道同时工作的路由器,电子设备100可以同时与该路由器的多个信道连接。Generally speaking, in a multi-network concurrent scenario, the electronic device 100 can establish Wi-Fi connections with multiple routers at the same time. For a router that supports multiple channels working simultaneously, the electronic device 100 can be connected to multiple channels of the router at the same time.
具体地,电子设备100中可以设置有应用白名单,该白名单内的应用允许在多网并发场景下使用,那么,在电子设备100检测到运行白名单中的应用时,电子设备100触发辅Wi-Fi芯片进入工作状态,通过多网并发实现该应用的数据传输,加大网络带宽,提升用户使用该应用时的网络速度。Specifically, the electronic device 100 may be provided with an application whitelist. Applications in the whitelist are allowed to be used in multi-network concurrent scenarios. Then, when the electronic device 100 detects that the application in the whitelist is running, the electronic device 100 triggers the auxiliary function. The Wi-Fi chip enters the working state and realizes the data transmission of the application through multiple networks concurrently, increasing the network bandwidth and improving the network speed when users use the application.
图7示例性地示出了多网并发场景下,电子设备100使用双Wi-Fi芯片进行通信的场景示意图。FIG. 7 exemplarily shows a schematic diagram of a scenario in which the electronic device 100 uses dual Wi-Fi chips to communicate in a multi-network concurrent scenario.
如图7所示,电子设备100可以通过主Wi-Fi芯片,使用5G频段,CH36信道,以及,通过辅Wi-Fi芯片,使用5G频段,CH149信道,同时和路由器进行通信。As shown in Figure 7, the electronic device 100 can use the 5G frequency band and CH36 channel through the main Wi-Fi chip, and use the 5G frequency band and CH149 channel through the auxiliary Wi-Fi chip to communicate with the router at the same time.
也就是说,本申请实施例提及的双Wi-Fi场景可以是指电子设备100运行预设应用,和/或,启动投屏功能。That is to say, the dual Wi-Fi scenario mentioned in the embodiment of this application may refer to the electronic device 100 running a preset application and/or activating the screen casting function.
可以理解的是,不限于在上述场景下,辅Wi-Fi芯片进入工作状态,本申请实施例对该场景不作限制。It can be understood that the auxiliary Wi-Fi chip is not limited to entering the working state in the above scenario, and the embodiment of the present application does not limit this scenario.
另外,电子设备100可以周期性判断辅Wi-Fi芯片是否处于工作状态,这时,电子设备100可以间隔一定的时长,周期性判断辅Wi-Fi芯片是否在使用,以便电子设备100能够周期性判断是否需要切换主Wi-Fi芯片连通的天线。或者,电子设备100可以持续性判断辅Wi-Fi芯片是否在使用,这时,电子设备100可以时刻监测辅Wi-Fi芯片的工作状态,保证电子设备100能够在辅Wi-Fi芯片未处于工作状态时,能够及时调整主Wi-Fi芯片连通的天线。In addition, the electronic device 100 can periodically determine whether the secondary Wi-Fi chip is in working state. At this time, the electronic device 100 can periodically determine whether the secondary Wi-Fi chip is in use at a certain interval, so that the electronic device 100 can periodically determine whether the secondary Wi-Fi chip is in use. Determine whether it is necessary to switch the antenna connected to the main Wi-Fi chip. Alternatively, the electronic device 100 can continuously determine whether the auxiliary Wi-Fi chip is in use. At this time, the electronic device 100 can monitor the working status of the auxiliary Wi-Fi chip at all times to ensure that the electronic device 100 can operate when the auxiliary Wi-Fi chip is not working. status, the antenna connected to the main Wi-Fi chip can be adjusted in time.
参见图2,电子设备100可以通过控制信号切换单元C的C3端到C5端连通,C4端到C6端连通,来使得辅Wi-Fi芯片连通天线3、4,达到电子设备100控制辅Wi-Fi芯片通过复用天线收发信号的目的。Referring to Figure 2, the electronic device 100 can connect the C3 end to the C5 end and the C4 end to the C6 end of the control signal switching unit C, so that the auxiliary Wi-Fi chip connects to the antennas 3 and 4, so that the electronic device 100 controls the auxiliary Wi-Fi chip. The purpose of the Fi chip is to send and receive signals through multiplexed antennas.
参见图3,电子设备100可以通过控制信号切换单元D的D2端到D3端连通,信号切换单元E的E2端到E3端连通,来使得辅Wi-Fi芯片连通天线3、4,达到电子设备100控制辅Wi-Fi芯片通过复用天线收发信号的目的。Referring to Figure 3, the electronic device 100 can connect the D2 end to the D3 end of the signal switching unit D, and the E2 end to the E3 end of the signal switching unit E to connect the auxiliary Wi-Fi chip to the antennas 3 and 4, thereby reaching the electronic device. 100 controls the purpose of the auxiliary Wi-Fi chip to send and receive signals through multiplexed antennas.
参见图4,电子设备100可以通过控制信号切换单元F的F3端到F7端连通,F4端到F8端连通,来使得辅Wi-Fi芯片连通天线3、4,达到电子设备100控制辅Wi-Fi芯片通过复用天线收发信号的目的。Referring to Figure 4, the electronic device 100 can connect the F3 end to the F7 end, and the F4 end to the F8 end of the control signal switching unit F, so that the auxiliary Wi-Fi chip connects to the antennas 3 and 4, so that the electronic device 100 controls the auxiliary Wi-Fi chip. The purpose of the Fi chip is to send and receive signals through multiplexed antennas.
如果电子设备100确定辅Wi-Fi芯片处于工作状态,则电子设备100可以保持Wi-Fi芯片的工作状态,即维持Wi-Fi芯片通过复用天线收发信号,并且不切换主Wi-Fi芯片使用的天线,即执行步骤S105;相反,如果电子设备100确定辅Wi-Fi芯片未处于工作状态,则此时复用天线未被占用,电子设备100可以切换主Wi-Fi芯片使用的天线,即执行步骤S104。If the electronic device 100 determines that the secondary Wi-Fi chip is in the working state, the electronic device 100 can maintain the working state of the Wi-Fi chip, that is, maintain the Wi-Fi chip to send and receive signals through the multiplexed antenna, and do not switch the use of the main Wi-Fi chip. antenna, that is, step S105 is performed; on the contrary, if the electronic device 100 determines that the secondary Wi-Fi chip is not in the working state, then the multiplexed antenna is not occupied at this time, and the electronic device 100 can switch the antenna used by the main Wi-Fi chip, that is, Execute step S104.
在一些实施例中,当辅Wi-Fi芯片未处于工作状态时,电子设备100还可以进一步结合主Wi-Fi芯片使用不同天线时的信号质量来判断是否切换主Wi-Fi芯片使用的天线。In some embodiments, when the secondary Wi-Fi chip is not in working state, the electronic device 100 can further determine whether to switch the antenna used by the primary Wi-Fi chip based on the signal quality when the primary Wi-Fi chip uses different antennas.
其中,电子设备100可以使用智能天线算法,通过主Wi-Fi芯片使用不同天线时的信号质量来判断是否切换主Wi-Fi芯片的天线。Among them, the electronic device 100 can use a smart antenna algorithm to determine whether to switch the antenna of the main Wi-Fi chip based on the signal quality when the main Wi-Fi chip uses different antennas.
具体地,电子设备100可以将主Wi-Fi芯片分别与主天线和复用天线连通,通过比较主Wi-Fi芯片使用主天线和复用天线收发数据时的信号质量,来确定是否切换主Wi-Fi芯片使用的天线。Specifically, the electronic device 100 can connect the main Wi-Fi chip to the main antenna and the multiplexed antenna respectively, and determine whether to switch the main Wi-Fi by comparing the signal quality when the main Wi-Fi chip uses the main antenna and the multiplexed antenna to send and receive data. -Antenna used by Fi chip.
其中,电子设备100可以通过天线收发信号时的接收信号强度(Received Signal Strength Indicator,RSSI)、信号与干扰加噪声比(Signal to Interference plus Noise Ratio,SINR)、参考信号接收功率(Reference Signal Receiving Power,RSRP)、参考信号接收质量(Reference Signal Receiving Quality,RSRQ)等等参数来作为信号质量的衡量指标。优选地,电子设备100可以通过接收信号强度(Received Signal Strength Indicator,RSSI)来作为信号质量的判断指标,进一步地,还可以结合其他与信号质量强相关的指标进行组合判断,例如协商速率、误包率等等。本申请实施例对判断信号质量所使用的参数不作限制。Among them, the electronic device 100 can receive signal strength (Received Signal Strength Indicator, RSSI), signal to interference plus noise ratio (Signal to Interference plus Noise Ratio, SINR), and reference signal receiving power (Reference Signal Receiving Power) when sending and receiving signals through the antenna. , RSRP), Reference Signal Receiving Quality (RSRQ) and other parameters are used as measurement indicators of signal quality. Preferably, the electronic device 100 can use Received Signal Strength Indicator (RSSI) as a judgment indicator of signal quality. Furthermore, it can also be combined with other indicators that are strongly related to signal quality for combined judgment, such as negotiation rate, error rate, etc. Package rate and so on. The embodiments of this application do not limit the parameters used to judge signal quality.
当电子设备100检测到主Wi-Fi芯片使用主天线的信号质量低于主Wi-Fi芯片使用复用天线的信号质量,则主Wi-Fi芯片切换到复用天线收发信号,即执行步骤S104,否则,主Wi-Fi芯片不切换天线,即执 行步骤S105。When the electronic device 100 detects that the signal quality of the main Wi-Fi chip using the main antenna is lower than the signal quality of the main Wi-Fi chip using the multiplexed antenna, the main Wi-Fi chip switches to the multiplexed antenna to send and receive signals, that is, step S104 is performed. , otherwise, the main Wi-Fi chip does not switch the antenna, that is, it performs Go to step S105.
可以理解的是,本申请实施例对步骤S102和步骤S103的执行顺序不作限制。当电子设备100先执行步骤S102,后执行步骤S103,这时,电子设备100可以在确定满足预设条件时,再判断辅Wi-Fi芯片是否处于工作状态,并在未处于工作状态时,切换主Wi-Fi芯片使用的天线,或进一步结合主Wi-Fi芯片使用不同天线收发信号的信号质量判断是否切换主Wi-Fi芯片使用的天线;或者,当电子设备100先执行步骤S103,后执行步骤S102,电子设备100也可以先判断辅Wi-Fi芯片是否处于工作状态,并在辅Wi-Fi芯片未处于工作状态时,再确定是否满足预设条件,并在满足预设条件时切换主Wi-Fi芯片使用的天线,或进一步结合主Wi-Fi芯片使用不同天线收发信号的信号质量判断是否切换主Wi-Fi芯片使用的天线。It can be understood that the embodiment of the present application does not limit the execution order of step S102 and step S103. When the electronic device 100 first performs step S102 and then performs step S103, at this time, the electronic device 100 can determine whether the auxiliary Wi-Fi chip is in the working state after determining that the preset conditions are met, and when it is not in the working state, switch The antenna used by the main Wi-Fi chip, or further combined with the signal quality of the main Wi-Fi chip using different antennas to send and receive signals to determine whether to switch the antenna used by the main Wi-Fi chip; or when the electronic device 100 first performs step S103, and then performs In step S102, the electronic device 100 may also first determine whether the secondary Wi-Fi chip is in the working state, and then determine whether the preset conditions are met when the secondary Wi-Fi chip is not in the working state, and switch to the primary chip when the preset conditions are met. The antenna used by the Wi-Fi chip may be further combined with the signal quality of the main Wi-Fi chip using different antennas to send and receive signals to determine whether to switch the antenna used by the main Wi-Fi chip.
S104.电子设备100控制主Wi-Fi芯片切换至通过复用天线收发信号。S104. The electronic device 100 controls the main Wi-Fi chip to switch to transmit and receive signals through the multiplexed antenna.
当电子设备100结合主Wi-Fi芯片使用不同天线时的信号质量来确定主Wi-Fi芯片使用的天线,如果电子设备100确定切换主Wi-Fi芯片使用的天线,则说明主Wi-Fi芯片通过复用天线收发信号时的信号质量,高于使用主天线收发信号时的信号质量,则电子设备100可以切换主Wi-Fi芯片使用的天线,控制主Wi-Fi芯片通过复用天线收发信号,保证主Wi-Fi芯片工作时的信号质量保持最佳。When the electronic device 100 determines the antenna used by the main Wi-Fi chip based on the signal quality when using different antennas in conjunction with the main Wi-Fi chip, if the electronic device 100 determines to switch the antenna used by the main Wi-Fi chip, then the main Wi-Fi chip If the signal quality when sending and receiving signals through the multiplexed antenna is higher than the signal quality when using the main antenna to send and receive signals, the electronic device 100 can switch the antenna used by the main Wi-Fi chip and control the main Wi-Fi chip to send and receive signals through the multiplexed antenna. , ensuring that the signal quality remains optimal when the main Wi-Fi chip is working.
参见图2,电子设备100可以通过控制信号切换单元A的A1端到A3端连通,控制信号切换单元B的B1端到B3端连通,以及控制信号切换单元C的C1端到C5端连通,控制信号切换单元C的C4端到C6端连通,来使得主Wi-Fi芯片连通天线3、4,达到电子设备100控制主Wi-Fi芯片通过复用天线收发信号的目的。Referring to Figure 2, the electronic device 100 can be connected through the A1 terminal to the A3 terminal of the control signal switching unit A, the B1 terminal to the B3 terminal of the control signal switching unit B, and the C1 terminal to the C5 terminal of the control signal switching unit C. The C4 end to the C6 end of the signal switching unit C is connected, so that the main Wi-Fi chip is connected to the antennas 3 and 4, so that the electronic device 100 controls the main Wi-Fi chip to send and receive signals through the multiplexed antenna.
参见图3,电子设备100可以通过控制信号切换单元A的A1端到A3端连通,控制信号切换单元B的B1端到B3端连通,以及,控制信号切换单元D的D1端到D3端连通,控制信号切换单元E的E1端到E3端连通,来使得主Wi-Fi芯片连通天线3、4,达到电子设备100控制主Wi-Fi芯片通过复用天线收发信号的目的。Referring to Figure 3, the electronic device 100 can be connected through the A1 terminal to the A3 terminal of the control signal switching unit A, the B1 terminal to the B3 terminal of the control signal switching unit B, and the D1 terminal to the D3 terminal of the control signal switching unit D. The E1 end of the control signal switching unit E is connected to the E3 end, so that the main Wi-Fi chip is connected to the antennas 3 and 4, so that the electronic device 100 controls the main Wi-Fi chip to send and receive signals through the multiplexed antenna.
参见图4,电子设备100可以通过控制信号切换单元F的F1端到F7端连通,F2端到F8端连通,来使得主Wi-Fi芯片连通天线3、4,达到电子设备100控制主Wi-Fi芯片通过复用天线收发信号的目的。Referring to Figure 4, the electronic device 100 can connect the F1 end to the F7 end and the F2 end to the F8 end of the control signal switching unit F, so that the main Wi-Fi chip connects to the antennas 3 and 4, so that the electronic device 100 controls the main Wi-Fi chip. The purpose of the Fi chip is to send and receive signals through multiplexed antennas.
进一步地,在主Wi-Fi芯片通过复用天线收发信号的过程中,如果电子设备100进入双Wi-Fi场景,即电子设备100需要启用辅Wi-Fi芯片时,则电子设备100可以控制主Wi-Fi芯片切换回通过主天线收发信号,控制辅Wi-Fi芯片通过复用天线收发信号。Further, during the process of the main Wi-Fi chip transmitting and receiving signals through the multiplexed antenna, if the electronic device 100 enters a dual Wi-Fi scenario, that is, when the electronic device 100 needs to enable the secondary Wi-Fi chip, the electronic device 100 can control the main Wi-Fi chip. The Wi-Fi chip switches back to sending and receiving signals through the main antenna, and controls the auxiliary Wi-Fi chip to send and receive signals through the multiplexed antenna.
另外,在主Wi-Fi芯片通过复用天线收发信号的过程中,如果电子设备100检测到主Wi-Fi芯片使用主天线收发信号时的信号质量,高于,使用复用天线收发信号时的信号质量时,电子设备100也可以控制主Wi-Fi芯片切换回通过主天线收到信号。示例性地,电子设备100可以在检测到电子设备100的折叠形态发生变化,或者,检测到当前主Wi-Fi芯片使用复用天线收发信号时的信号质量低于阈值时,触发检测主Wi-Fi芯片是否需要切换天线。In addition, during the process of the main Wi-Fi chip sending and receiving signals through the multiplexed antenna, if the electronic device 100 detects that the signal quality when the main Wi-Fi chip uses the main antenna to send and receive signals is higher than that when the multiplexed antenna is used to send and receive signals. When the signal quality deteriorates, the electronic device 100 may also control the main Wi-Fi chip to switch back to receiving signals through the main antenna. For example, the electronic device 100 may trigger the detection of the main Wi-Fi chip when detecting that the folded form of the electronic device 100 changes, or detecting that the signal quality of the current main Wi-Fi chip using a multiplexed antenna to send and receive signals is lower than a threshold. Does the Fi chip need to switch antennas?
S105.电子设备控制主Wi-Fi芯片保持通过主天线收发信号。S105. The electronic device controls the main Wi-Fi chip to keep sending and receiving signals through the main antenna.
当电子设备100结合主Wi-Fi芯片使用不同天线时的信号质量来确定主Wi-Fi芯片使用的天线,如果电子设备100确定不切换主Wi-Fi芯片使用的天线,则说明主Wi-Fi芯片通过主天线收发信号时的信号质量,高于使用复用天线收发信号时的信号质量,则电子设备100可以不必切换主Wi-Fi芯片使用的天线,仍然控制主Wi-Fi芯片通过主天线收发信号,保证主Wi-Fi芯片工作时的信号质量保持最佳。When the electronic device 100 determines the antenna used by the main Wi-Fi chip based on the signal quality when using different antennas in conjunction with the main Wi-Fi chip, if the electronic device 100 determines not to switch the antenna used by the main Wi-Fi chip, then the main Wi-Fi The signal quality when the chip sends and receives signals through the main antenna is higher than the signal quality when using the multiplexed antenna to send and receive signals. Then the electronic device 100 does not need to switch the antenna used by the main Wi-Fi chip and still controls the main Wi-Fi chip to use the main antenna. Send and receive signals to ensure the best signal quality when the main Wi-Fi chip is working.
类似的,在主Wi-Fi芯片通过主天线收发信号的过程中,如果电子设备100检测到主Wi-Fi芯片使用复用天线收发信号时的信号质量,高于,使用主天线收发信号时的信号质量,且辅Wi-Fi芯片未工作时,电子设备100也可以控制主Wi-Fi芯片切换到通过复用天线收到信号。示例性地,电子设备100可以在检测到电子设备100的折叠形态发生变化,或者,检测到当前主Wi-Fi芯片使用主天线收发信号时的信号质量低于阈值时,触发检测主Wi-Fi芯片是否需要切换天线。Similarly, during the process of the main Wi-Fi chip sending and receiving signals through the main antenna, if the electronic device 100 detects that the signal quality when the main Wi-Fi chip uses the multiplexed antenna to send and receive signals is higher than when the main Wi-Fi chip uses the main antenna to send and receive signals. When the signal quality is low and the auxiliary Wi-Fi chip is not working, the electronic device 100 can also control the main Wi-Fi chip to switch to receive signals through the multiplexed antenna. For example, the electronic device 100 may trigger the detection of the main Wi-Fi when detecting that the folded form of the electronic device 100 changes, or detecting that the signal quality of the current main Wi-Fi chip using the main antenna to send and receive signals is lower than a threshold. Does the chip need to switch antennas?
可以理解的是,在电子设备100确定辅Wi-Fi芯片未处于工作状态时,也可以无需判断是否切换主Wi-Fi芯片使用的天线,直接在主Wi-Fi芯片使用主天线收发信号的基础上,新增复用天线同时收发信号,即增加主Wi-Fi芯片工作时使用的天线数量,增大主Wi-Fi芯片收发信号时的信号质量。It can be understood that when the electronic device 100 determines that the secondary Wi-Fi chip is not in a working state, it can directly use the main antenna to send and receive signals without judging whether to switch the antenna used by the main Wi-Fi chip. On the top, a new multiplexed antenna is added to simultaneously send and receive signals, that is, the number of antennas used by the main Wi-Fi chip is increased when working, and the signal quality when the main Wi-Fi chip is sending and receiving signals is increased.
总的来说,本申请实施例提供的天线复用方法,将主Wi-Fi芯片所需的智能天线,与辅Wi-Fi芯片配置的天线进行复用,使得复用天线,例如天线3、4既可以作为主Wi-Fi芯片使用的天线,也可以作为辅Wi-Fi芯片使用的天线,减少了电子设备100上需要配置的天线数量,避免天线过多时增加制作工艺的复 杂度,同时,又能够在双Wi-Fi芯片的配置下,降低多业务并发的时延,提高通信效率,并且,充分考虑了设备在不同折叠形态下,天线的信号损失,避免了设备在改变折叠形态后,出现通信信号变弱,甚至中断的情况,提升了用户的体验感。In general, the antenna multiplexing method provided by the embodiments of this application multiplexes the smart antenna required by the main Wi-Fi chip with the antenna configured by the auxiliary Wi-Fi chip, so that the multiplexed antennas, such as antenna 3, 4 can be used as an antenna for the main Wi-Fi chip or as an antenna for the auxiliary Wi-Fi chip, which reduces the number of antennas that need to be configured on the electronic device 100 and avoids increasing the complexity of the manufacturing process when there are too many antennas. complexity, and at the same time, under the configuration of dual Wi-Fi chips, it can reduce the delay of concurrent multi-services and improve communication efficiency. Moreover, it fully considers the signal loss of the antenna in different folding forms of the device, avoiding the problem of device failure. After changing the folding form, the communication signal becomes weaker or even interrupted, which improves the user experience.
应理解,上述方法实施例中的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。It should be understood that each step in the above method embodiment can be completed by an integrated logic circuit of hardware in the processor or instructions in the form of software. The method steps disclosed in conjunction with the embodiments of this application can be directly implemented by a hardware processor, or executed by a combination of hardware and software modules in the processor.
本申请还提供一种电子设备,该电子设备可以包括:存储器和处理器。其中,存储器可用于存储计算机程序;处理器可用于调用所述存储器中的计算机程序,以使得该电子设备执行上述任意一个实施例中电子设备100执行的方法。This application also provides an electronic device, which may include a memory and a processor. The memory can be used to store computer programs; the processor can be used to call the computer program in the memory, so that the electronic device executes the method executed by the electronic device 100 in any of the above embodiments.
本申请还提供了一种芯片系统,所述芯片系统包括至少一个处理器,用于实现上述任一个实施例中电子设备100执行的方法中所涉及的功能。The present application also provides a chip system, which includes at least one processor for implementing the functions involved in the method performed by the electronic device 100 in any of the above embodiments.
在一种可能的设计中,所述芯片系统还包括存储器,所述存储器用于保存程序指令和数据,存储器位于处理器之内或处理器之外。In a possible design, the chip system further includes a memory, the memory is used to store program instructions and data, and the memory is located within the processor or outside the processor.
该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。The chip system can be composed of chips or include chips and other discrete devices.
可选地,该芯片系统中的处理器可以为一个或多个。该处理器可以通过硬件实现也可以通过软件实现。当通过硬件实现时,该处理器可以是逻辑电路、集成电路等。当通过软件实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现。Optionally, there may be one or more processors in the chip system. The processor can be implemented in hardware or software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, or the like. When implemented in software, the processor may be a general-purpose processor implemented by reading software code stored in memory.
可选地,该芯片系统中的存储器也可以为一个或多个。该存储器可以与处理器集成在一起,也可以和处理器分离设置,本申请实施例并不限定。示例性地,存储器可以是非瞬时性处理器,例如只读存储器ROM,其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请实施例对存储器的类型,以及存储器与处理器的设置方式不作具体限定。Optionally, there may be one or more memories in the chip system. The memory may be integrated with the processor or may be provided separately from the processor, which is not limited by the embodiments of the present application. For example, the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip, or may be separately provided on different chips. The embodiments of this application vary on the type of memory, and The arrangement of the memory and processor is not specifically limited.
示例性地,该芯片系统可以是现场可编程门阵列(field programmable gate array,FPGA),可以是专用集成芯片(application specific integrated circuit,ASIC),还可以是系统芯片(system on chip,SoC),还可以是中央处理器(central processor unit,CPU),还可以是网络处理器(network processor,NP),还可以是数字信号处理电路(digital signal processor,DSP),还可以是微控制器(micro controller unit,MCU),还可以是可编程控制器(programmable logic device,PLD)或其他集成芯片。For example, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or a system on chip (SoC). It can also be a central processor (central processor unit, CPU), a network processor (network processor, NP), a digital signal processing circuit (digital signal processor, DSP), or a microcontroller (micro controller unit (MCU), or a programmable logic device (PLD) or other integrated chip.
本申请还提供一种计算机程序产品,所述计算机程序产品包括:计算机程序(也可以称为代码,或指令),当所述计算机程序被运行时,使得计算机执行上述任一个实施例中电子设备100任意一个执行的方法。This application also provides a computer program product. The computer program product includes: a computer program (which can also be called a code, or an instruction). When the computer program is run, it causes the computer to execute the electronic device in any of the above embodiments. 100 any method of execution.
本申请还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序(也可以称为代码,或指令)。当所述计算机程序被运行时,使得计算机执行上述任一个实施例中电子设备100任意一个执行的方法。This application also provides a computer-readable storage medium that stores a computer program (which may also be called a code, or an instruction). When the computer program is run, the computer is caused to perform the method performed by any one of the electronic devices 100 in any of the above embodiments.
应理解,本申请实施例中的处理器可以是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法实施例的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(AP 800plication specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。It should be understood that the processor in the embodiment of the present application may be an integrated circuit chip with signal processing capabilities. During the implementation process, each step of the above method embodiment can be completed through an integrated logic circuit of hardware in the processor or instructions in the form of software. The above-mentioned processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (AP 800plication specific integrated circuit, ASIC), a field programmable gate array (field programmable gate array, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. Each method, step and logical block diagram disclosed in the embodiment of this application can be implemented or executed. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly implemented by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module can be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other mature storage media in this field. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
另外,本申请实施例还提供一种装置。该装置具体可以是组件或模块,该装置可包括相连的一个或多个处理器和存储器。其中,存储器用于存储计算机程序。当该计算机程序被一个或多个处理器执行时,使得装置执行上述各方法实施例中的方法。In addition, the embodiment of the present application also provides a device. The device may specifically be a component or module, and the device may include one or more connected processors and memories. Among them, memory is used to store computer programs. When the computer program is executed by one or more processors, the device is caused to execute the methods in each of the above method embodiments.
其中,本申请实施例提供的装置、计算机可读存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法。因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。 Among them, the devices, computer-readable storage media, computer program products or chips provided by the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects it can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be described again here.
本申请的各实施方式可以任意进行组合,以实现不同的技术效果。The various embodiments of the present application can be combined arbitrarily to achieve different technical effects.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, 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. When the computer program instructions are loaded and executed on a computer, the processes or functions described in this 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, e.g., 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) or wireless (such as infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated. 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.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments are implemented. This process can be completed by instructing relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, , may include the processes of the above method embodiments. The aforementioned storage media include: ROM, random access memory (RAM), magnetic disks, optical disks and other media that can store program codes.
总之,以上所述仅为本发明技术方案的实施例而已,并非用于限定本发明的保护范围。凡根据本发明的揭露,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 In short, the above descriptions are only examples of the technical solutions of the present invention and are not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made based on the disclosure of the present invention shall be included in the protection scope of the present invention.

Claims (11)

  1. 一种天线复用方法,其特征在于,所述方法应用在包含第一Wi-Fi芯片、第二Wi-Fi芯片的电子设备,所述第一Wi-Fi芯片通过第一天线收发信号,所述第二Wi-Fi芯片通过第二天线收发信号,所述方法包括:An antenna multiplexing method, characterized in that the method is applied to an electronic device including a first Wi-Fi chip and a second Wi-Fi chip, and the first Wi-Fi chip sends and receives signals through the first antenna, so The second Wi-Fi chip sends and receives signals through the second antenna, and the method includes:
    当所述电子设备满足预设条件时,所述电子设备判断所述第一Wi-Fi芯片是否启用所述第二天线收发信号,所述预设条件包括:所述第一Wi-Fi芯片通过所述第一天线收发信号的信号质量低于预设阈值、所述电子设备的折叠形态发生变化、接收到用户的触发操作或者所述电子设备处于预设场景;When the electronic device meets a preset condition, the electronic device determines whether the first Wi-Fi chip enables the second antenna to send and receive signals. The preset condition includes: the first Wi-Fi chip passes The signal quality of the first antenna's transceiver signal is lower than a preset threshold, the folding form of the electronic device changes, a user's trigger operation is received, or the electronic device is in a preset scene;
    当所述第二Wi-Fi芯片没有启用所述第二天线收发信号时,所述电子设备控制所述第一Wi-Fi芯片切换至通过所述第二天线收发信号。When the second Wi-Fi chip does not enable the second antenna to transmit and receive signals, the electronic device controls the first Wi-Fi chip to switch to transmit and receive signals through the second antenna.
  2. 根据权利要求1所述的方法,其特征在于,所述电子设备控制所述第一Wi-Fi芯片切换至通过所述第二天线收发信号之前,所述方法还包括:The method of claim 1, wherein before the electronic device controls the first Wi-Fi chip to switch to transmitting and receiving signals through the second antenna, the method further includes:
    所述电子设备检测到所述第一Wi-Fi芯片通过所述第二天线收发信号的信号质量,高于,所述第一Wi-Fi芯片通过所述第一天线收发信号的信号质量。The electronic device detects that the signal quality of the first Wi-Fi chip transmitting and receiving signals through the second antenna is higher than the signal quality of the first Wi-Fi chip transmitting and receiving signals through the first antenna.
  3. 根据权利要求2所述的方法,其特征在于,所述第一Wi-Fi芯片通过所述第一天线或所述第二天线收发信号的信号质量根据以下一项或多项参数确定:接收信号强度RSSI,信号与干扰加噪声比SINR,参考信号接收功率RSRP或参考信号接收质量RSRQ。The method according to claim 2, characterized in that the signal quality of the first Wi-Fi chip transmitting and receiving signals through the first antenna or the second antenna is determined according to one or more of the following parameters: received signal Strength RSSI, signal to interference plus noise ratio SINR, reference signal received power RSRP or reference signal received quality RSRQ.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述第一天线和所述第二天线的天线极化方向或方向图不同。The method according to any one of claims 1 to 3, characterized in that the antenna polarization directions or patterns of the first antenna and the second antenna are different.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述第二Wi-Fi芯片在所述电子设备运行预设应用,和/或,启动投屏功能时,启用所述第二天线收发信号。The method according to any one of claims 1 to 4, characterized in that the second Wi-Fi chip enables the third Wi-Fi chip when the electronic device runs a preset application and/or starts a screen projection function. Two antennas send and receive signals.
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述电子设备控制所述第一Wi-Fi芯片切换至通过所述第二天线收发信号之后,所述方法还包括:The method according to any one of claims 1 to 5, characterized in that after the electronic device controls the first Wi-Fi chip to switch to transmitting and receiving signals through the second antenna, the method further includes:
    当所述电子设备运行预设应用或者启动投屏功能时,所述电子设备控制所述第一Wi-Fi芯片通过所述第一天线收发信号,并控制所述第二Wi-Fi芯片通过所述第二天线收发信号。When the electronic device runs a preset application or starts the screen projection function, the electronic device controls the first Wi-Fi chip to send and receive signals through the first antenna, and controls the second Wi-Fi chip to transmit and receive signals through the first antenna. The second antenna sends and receives signals.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述电子设备控制所述第一Wi-Fi芯片切换至通过所述第二天线收发信号之后,所述方法还包括:The method according to any one of claims 1 to 6, characterized in that after the electronic device controls the first Wi-Fi chip to switch to transmitting and receiving signals through the second antenna, the method further includes:
    当所述电子设备检测到所述第一Wi-Fi芯片通过所述第二天线收发信号的信号质量,低于,所述第一Wi-Fi芯片通过所述第一天线收发信号的信号质量时,所述电子设备控制所述第一Wi-Fi芯片切换回通过所述第一天线收发信号。When the electronic device detects that the signal quality of the first Wi-Fi chip transmitting and receiving signals through the second antenna is lower than the signal quality of the first Wi-Fi chip transmitting and receiving signals through the first antenna. , the electronic device controls the first Wi-Fi chip to switch back to transmitting and receiving signals through the first antenna.
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述第一天线和所述第二天线的天线类型包括:IFA天线,PIFA天线,或者Slot天线。The method according to any one of claims 1 to 7, characterized in that the antenna types of the first antenna and the second antenna include: IFA antenna, PIFA antenna, or Slot antenna.
  9. 一种电子设备,其特征在于,包括第一Wi-Fi芯片、第二Wi-Fi芯片、第一天线、第二天线、存储器,一个或多个处理器,以及一个或多个程序;所述一个或多个处理器在执行所述一个或多个程序时,使得所述电子设备实现如权利要求1至8任一项所述的方法。An electronic device, characterized in that it includes a first Wi-Fi chip, a second Wi-Fi chip, a first antenna, a second antenna, a memory, one or more processors, and one or more programs; When one or more processors execute the one or more programs, the electronic device implements the method according to any one of claims 1 to 8.
  10. 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1至8任一项所述的方法。 A computer-readable storage medium includes instructions, characterized in that when the instructions are run on an electronic device, the electronic device is caused to perform the method according to any one of claims 1 to 8.
  11. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得计算机执行如权利要求1至8任一项所述的方法。 A computer program product, characterized in that, when the computer program product is run on a computer, it causes the computer to execute the method according to any one of claims 1 to 8.
PCT/CN2023/114244 2022-08-31 2023-08-22 Antenna multiplexing method and related apparatus WO2024046173A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211056217.5 2022-08-31
CN202211056217.5A CN117715090A (en) 2022-08-31 2022-08-31 Antenna multiplexing method and related device

Publications (1)

Publication Number Publication Date
WO2024046173A1 true WO2024046173A1 (en) 2024-03-07

Family

ID=90100411

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/114244 WO2024046173A1 (en) 2022-08-31 2023-08-22 Antenna multiplexing method and related apparatus

Country Status (2)

Country Link
CN (1) CN117715090A (en)
WO (1) WO2024046173A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160381618A1 (en) * 2015-06-26 2016-12-29 Motorola Mobility Llc Rf-antenna architecture in mobile communication devices
WO2018027984A1 (en) * 2016-08-12 2018-02-15 华为技术有限公司 Terminal device and switching method
CN107911126A (en) * 2017-12-12 2018-04-13 北京松果电子有限公司 antenna switching method, device and storage medium
CN108494444A (en) * 2018-03-13 2018-09-04 广东欧珀移动通信有限公司 Method of controlling antenna, antenna module, electronic equipment and storage medium
CN110445517A (en) * 2019-06-17 2019-11-12 深圳市万普拉斯科技有限公司 Multi-input multi-output antenna system, method of controlling antenna and electronic equipment
CN112436265A (en) * 2019-08-26 2021-03-02 中国移动通信集团终端有限公司 Mobile terminal and antenna control method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160381618A1 (en) * 2015-06-26 2016-12-29 Motorola Mobility Llc Rf-antenna architecture in mobile communication devices
WO2018027984A1 (en) * 2016-08-12 2018-02-15 华为技术有限公司 Terminal device and switching method
CN107911126A (en) * 2017-12-12 2018-04-13 北京松果电子有限公司 antenna switching method, device and storage medium
CN108494444A (en) * 2018-03-13 2018-09-04 广东欧珀移动通信有限公司 Method of controlling antenna, antenna module, electronic equipment and storage medium
CN110445517A (en) * 2019-06-17 2019-11-12 深圳市万普拉斯科技有限公司 Multi-input multi-output antenna system, method of controlling antenna and electronic equipment
CN112436265A (en) * 2019-08-26 2021-03-02 中国移动通信集团终端有限公司 Mobile terminal and antenna control method thereof

Also Published As

Publication number Publication date
CN117715090A (en) 2024-03-15

Similar Documents

Publication Publication Date Title
WO2020238871A1 (en) Screen projection method and system and related apparatus
WO2021121052A1 (en) Multi-screen cooperation method and system, and electronic device
WO2022121775A1 (en) Screen projection method, and device
US20230422154A1 (en) Method for using cellular communication function, and related apparatus and system
CN111182614B (en) Method and device for establishing network connection and electronic equipment
WO2021218864A1 (en) Implementation method for wi-fi peer-to-peer service and related device
CN115793916A (en) Method, electronic device and system for displaying multiple windows
WO2022100304A1 (en) Method and apparatus for transferring application content across devices, and electronic device
CN112527174B (en) Information processing method and electronic equipment
CN111371849A (en) Data processing method and electronic equipment
CN112527222A (en) Information processing method and electronic equipment
WO2022222773A1 (en) Image capture method, and related apparatus and system
CN114442969A (en) Inter-device screen cooperation method and device
WO2023088459A1 (en) Device collaboration method and related apparatus
CN114489529A (en) Screen projection method of electronic device, medium thereof and electronic device
WO2022268009A1 (en) Screen sharing method and related device
WO2024046173A1 (en) Antenna multiplexing method and related apparatus
WO2023025191A1 (en) Communication method and electronic device
WO2023035834A1 (en) Wi-fi direct communication method and apparatus
WO2023273460A1 (en) Screen projection display method and electronic device
CN116709557B (en) Service processing method, device and storage medium
WO2024104095A1 (en) Data transmission method, apparatus and system
WO2024022307A1 (en) Screen mirroring method and electronic device
WO2023280160A1 (en) Channel switching method and apparatus
WO2024131878A1 (en) Screen-mirroring method, electronic device, and system

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: 23859206

Country of ref document: EP

Kind code of ref document: A1