Transmitting antenna switching method and device, readable storage medium and chip system
By selecting and switching to a second antenna whose bit error rate and transmission power difference are less than a threshold based on the received signal parameters in an electronic device, the communication performance problem caused by the antenna environment is solved, and the communication stability and flexibility are improved.
Patent Information
- Application Number
- CN202410327925.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-20
- Publication Date
- 2025-09-30
AI Technical Summary
In electronic devices, antenna performance is easily affected by the environment, which can lead to improper switching of the transmitting antenna and affect communication performance.
By using the first antenna to send uplink signals in the first time period, determining the second antenna based on the received signal parameters of multiple antennas, and switching to the second antenna under the conditions that the bit error rate and transmission power difference are less than the threshold, communication stability is ensured.
It improves the communication performance and stability of electronic equipment, reduces the impact of transmitting antenna switching on uplink data transmission, and improves flexibility and reliability.
Smart Images

Figure CN120729355A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a transmitting antenna switching method, device, readable storage medium and chip system. Background Art
[0002] When using electronic devices (such as smartphones), antenna performance is easily affected by the environment. For example, the way you hold the electronic device or the position where you place the electronic device may block the antenna, resulting in reduced antenna performance. Therefore, transmit antenna selection (TAS) occurs during the use of electronic devices. By switching the transmit antenna, when the signal from one antenna is poor, the electronic device's signal can be switched to another antenna for transmission, thereby resolving the signal blocking problem caused by antenna obstruction. How to perform transmit antenna switching to improve the communication performance of electronic devices is a technical issue worthy of research. Summary of the Invention
[0003] The embodiments of the present application provide a transmitting antenna switching method, device, readable storage medium and chip system, which can flexibly switch the transmitting antenna to an antenna with better performance in receiving and sending signals, thereby improving the communication performance of the electronic device.
[0004] In a first aspect, the present application provides a transmitting antenna switching method, which is applied to an electronic device, the electronic device including multiple antennas; the method includes: using a first antenna to send an uplink signal in a first time period, the multiple antennas including the first antenna; determining a second antenna from the multiple antennas based on received signal parameters of the multiple antennas; the second antenna is different from the first antenna; switching the transmitting antenna of the electronic device from the first antenna to the second antenna, and using the second antenna to send an uplink signal in a second time period; the second time period is later than the first time period; in response to the difference between the uplink bit error rate of the first antenna in the first time period and the uplink bit error rate of the second antenna in the second time period being less than a first threshold, and the difference between the uplink transmission power of the first antenna in the first time period and the uplink transmission power of the second antenna in the second time period being less than a second threshold, continuing to use the second antenna to send the uplink signal after the second time period.
[0005] In the above embodiment, the electronic device can select a second antenna with better signal reception performance from its multiple antennas, and then further compare the changes in the uplink bit error rate and uplink transmit power before and after the transmit antenna is switched from the first antenna to the second antenna. If the changes in the uplink bit error rate and uplink transmit power meet the requirements, the second antenna can be used to transmit the uplink signal. In this way, the uplink transmission performance of the electronic device can be prevented from being affected by the transmit antenna switching, which is conducive to improving the stability of the electronic device's communication.
[0006] In combination with the first aspect, in one possible embodiment, the above method also includes: in response to the difference between the uplink bit error rate of the first antenna in the first time period and the uplink bit error rate of the second antenna in the second time period being greater than or equal to a first threshold, using the first antenna to send an uplink signal after the second time period; or, in response to the difference between the uplink transmission power of the first antenna in the first time period and the uplink transmission power of the second antenna in the second time period being greater than or equal to a second threshold, using the first antenna to send an uplink signal after the second time period.
[0007] As can be seen, if either the change in uplink bit error rate or the change in uplink transmit power before and after the transmit antenna switch does not meet a certain condition, the electronic device can switch the transmit antenna from the second antenna back to the first antenna. This helps improve the flexibility of transmit antenna switching and ensures that the transmit antenna switch does not affect the uplink transmission performance of the electronic device.
[0008] In combination with the first aspect, in one possible embodiment, the above method also includes: in response to the difference between the uplink bit error rate of the first antenna in the first time period and the uplink bit error rate of the second antenna in the second time period being less than a first threshold, and the difference between the uplink transmission power of the first antenna in the first time period and the uplink transmission power of the second antenna in the second time period being greater than or equal to a second threshold, using the first antenna to send an uplink signal after the second time period.
[0009] It can be seen that if the uplink bit error rate does not change significantly before and after the transmitting antenna is switched, but the uplink transmitting power increases significantly, then the transmitting antenna should be switched back from the second antenna to the first antenna to avoid increased power consumption of the electronic device.
[0010] In combination with the first aspect, in one possible embodiment, the above method also includes: in response to the difference between the uplink bit error rate of the first antenna in the first time period and the uplink bit error rate of the second antenna in the second time period being greater than or equal to a first threshold, and the difference between the uplink transmission power of the first antenna in the first time period and the uplink transmission power of the second antenna in the second time period being less than a second threshold, using the first antenna to send an uplink signal after the second time period.
[0011] It can be seen that if the uplink bit error rate increases significantly before and after the transmitting antenna is switched, even if the uplink transmit power does not change significantly, the transmitting antenna can be switched back from the second antenna to the first antenna to ensure the stability of uplink data transmission.
[0012] In combination with the first aspect, in one possible manner, the above-mentioned determining the second antenna from multiple antennas based on the received signal parameters of multiple antennas includes: determining the second antenna based on the difference between the received signal parameters of the first antenna and the received signal parameters of each antenna in the multiple antennas except the first antenna; the difference between the received signal parameters of the first antenna and the received signal parameters of the second antenna is greater than or equal to a third threshold, and the second antenna is the antenna with the largest received signal parameter among the multiple antennas.
[0013] It can be seen that by comparing the reception signal parameters of the first antenna with the reception signal parameters of other antennas, the antenna with the best reception signal parameters can be selected as the second antenna, which is beneficial to improving the reception signal performance of the electronic device.
[0014] With reference to the first aspect, in one possible manner, the third threshold is a switching threshold, or the third threshold is a difference between the switching threshold and a threshold adjustment parameter.
[0015] It can be seen that by introducing the threshold adjustment parameter, the timing of triggering the switching of the transmitting antenna can be affected, thereby helping to improve the flexibility of the switching of the transmitting antenna.
[0016] In combination with the first aspect, in one possible manner, the method further includes: acquiring the first threshold and the second threshold according to a service type of a current service of the electronic device.
[0017] The first threshold may be described as a bit error rate threshold, and the second threshold may be described as a power control threshold.
[0018] It can be seen that obtaining different bit error rate thresholds and power control thresholds according to service types is conducive to improving the reliability of transmitting antenna switching.
[0019] In a second aspect, the present application provides an electronic device, comprising: one or more processors, a display screen, and a memory; the memory is coupled to the one or more processors, the memory being used to store computer program code, the computer program code comprising computer instructions, the one or more processors calling the computer instructions to cause the electronic device to execute: using a first antenna to send an uplink signal in a first time period, the multiple antennas including the first antenna; determining a second antenna from the multiple antennas based on received signal parameters of the multiple antennas; the second antenna is different from the first antenna; switching the transmitting antenna of the electronic device from the first antenna to the second antenna, and using the second antenna to send an uplink signal in a second time period; the second time period is later than the first time period; in response to the difference between the uplink bit error rate of the first antenna in the first time period and the uplink bit error rate of the second antenna in the second time period being less than a first threshold, and the difference between the uplink transmit power of the first antenna in the first time period and the uplink transmit power of the second antenna in the second time period being less than a second threshold, continuing to use the second antenna to send the uplink signal after the second time period.
[0020] In combination with the second aspect, in one possible manner, the one or more processors call the computer instructions to cause the electronic device to execute: in response to the difference between the uplink bit error rate of the first antenna in the first time period and the uplink bit error rate of the second antenna in the second time period being greater than or equal to a first threshold, using the first antenna to send an uplink signal after the second time period; or, in response to the difference between the uplink transmission power of the first antenna in the first time period and the uplink transmission power of the second antenna in the second time period being greater than or equal to a second threshold, using the first antenna to send an uplink signal after the second time period.
[0021] In combination with the second aspect, in one possible manner, the one or more processors call the computer instructions to cause the electronic device to execute: in response to the difference between the uplink bit error rate of the first antenna in the first time period and the uplink bit error rate of the second antenna in the second time period being less than a first threshold, and the difference between the uplink transmission power of the first antenna in the first time period and the uplink transmission power of the second antenna in the second time period being greater than or equal to a second threshold, using the first antenna to send an uplink signal after the second time period.
[0022] In combination with the second aspect, in one possible manner, the one or more processors call the computer instructions to cause the electronic device to execute: in response to the difference between the uplink bit error rate of the first antenna in the first time period and the uplink bit error rate of the second antenna in the second time period being greater than or equal to a first threshold, and the difference between the uplink transmission power of the first antenna in the first time period and the uplink transmission power of the second antenna in the second time period being less than a second threshold, using the first antenna to send an uplink signal after the second time period.
[0023] In combination with the second aspect, in one possible manner, the one or more processors call the computer instructions to cause the electronic device to execute: determining the second antenna based on the difference between the received signal parameters of the first antenna and the received signal parameters of each antenna other than the first antenna in the multiple antennas; the difference between the received signal parameters of the first antenna and the received signal parameters of the second antenna is greater than or equal to a third threshold, and the second antenna is the antenna with the largest received signal parameter among the multiple antennas.
[0024] With reference to the second aspect, in one possible manner, the third threshold is a switching threshold, or the third threshold is a difference between the switching threshold and a threshold adjustment parameter.
[0025] In combination with the second aspect, in one possible manner, the one or more processors call the computer instructions to enable the electronic device to execute: obtaining a first threshold and a second threshold according to a service type of a current service of the electronic device.
[0026] In a third aspect, the present application provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the method described in the first aspect above is implemented.
[0027] In a fourth aspect, the present application provides a chip system, which is coupled to a memory and is used to read and execute a computer program stored in the memory to implement the method described in the first aspect above.
[0028] In a fifth aspect, the present application provides a computer program product comprising instructions, which, when executed on an electronic device, enables the electronic device to execute the method as described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 is a schematic diagram of an antenna configured in an electronic device provided in an embodiment of the present application;
[0030] Figure 2A is a schematic diagram of a posture for holding an electronic device provided in an embodiment of the present application;
[0031] Figure 2B is a schematic diagram of another posture for holding an electronic device provided in an embodiment of the present application;
[0032] Figure 3 This is a schematic diagram of experimental data of transmitting antenna switching provided by an embodiment of the present application;
[0033] Figure 4 This is a schematic diagram of a system architecture used in an embodiment of the present application;
[0034] Figure 5This is a schematic diagram of switching the transmitting antenna of an electronic device provided in an embodiment of the present application;
[0035] Figure 6A This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0036] Figure 6B This is a schematic diagram of the software structure of an electronic device provided in an embodiment of the present application;
[0037] Figure 7 This is a flow chart of a method for switching transmitting antennas provided in an embodiment of the present application;
[0038] Figure 8 1 is a schematic diagram of a time axis for transmitting antenna switching provided in an embodiment of the present application;
[0039] Figure 9 This is a flow chart of another transmitting antenna switching method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0041] The terms "first", "second", "third", etc. in the embodiments of the present application are distinguished from different objects, rather than being used to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a series of steps or units are included, or optionally, steps or units that are not listed are also included, or optionally, other steps or units inherent to these processes, methods, products or devices are also included. The terms "one embodiment" or "some embodiments" etc. mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Thus, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in the differences in the embodiments of the present application are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in another way.
[0042] In addition, "at least one" means one or more, and "more" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, where a, b, c can be single or multiple.
[0043] Current electronic devices (such as smartphones) are often equipped with multiple antennas. All or some of the antennas can be used to receive signals, that is, as receiving antennas, and all or some of the antennas can be used to send signals, that is, as transmitting antennas. An antenna can be used as both a receiving antenna and a transmitting antenna. For example, see Figure 1 , Figure 1 Schematic diagram of an antenna configured in an electronic device provided in an embodiment of the present application. Figure 1 As shown, the electronic device may be configured with an antenna 11 on the top, an antenna 14 on the left, an antenna 12 on the right, and an antenna 13 on the bottom. Figure 1 Taking the example of an electronic device configured with four antennas does not constitute a limitation on the embodiments of the present application. For example, the electronic device may be configured with more or fewer antennas. Among the antennas configured in the electronic device, some antennas may be used as transmitting antennas and some antennas may be used as receiving antennas. For example, Figure 1 The antenna 11, antenna 14, antenna 12, and antenna 13 can all be used as receiving antennas for receiving signals, and the antenna 11 can be used as a transmitting antenna for sending signals. In other words, the antenna 11 can be used as both a receiving antenna and a transmitting antenna.
[0044] In actual use, the way you hold the electronic device or the position where you place it may block the antenna, affecting the antenna's performance. For example, see Figure 2A , Figure 2A Schematic diagram of a posture for holding an electronic device provided in an embodiment of the present application. Figure 2A As shown, when holding the electronic device vertically, Figure 1 The antenna 14 on the left side of the electronic device may be blocked. In this case, if the signal of the electronic device is transmitted through the antenna 14, the performance of the electronic device in transmitting the signal may be affected. For another example, see Figure 2B , Figure 2BSchematic diagram of another posture for holding an electronic device provided in an embodiment of the present application. Figure 2B As shown, when holding the electronic device horizontally, Figure 1 The antenna 11 on the top of the electronic device will be blocked. In this case, if the signal of the electronic device is transmitted through the antenna 11, the performance of the electronic device in sending signals may be affected.
[0045] Therefore, in order to ensure the communication performance of electronic devices, it is necessary to switch the transmitting antenna in combination with the specific usage of the electronic devices during actual use. The current transmitting antenna switching scheme selects the switched transmitting antenna based on the performance of the received signal of each antenna. For example, Figure 2A In the usage scenario shown, if the current transmitting antenna of the electronic device is antenna 14, in order to avoid affecting the performance of the electronic device sending signals, the one with the best receiving signal performance can be selected from antenna 11, antenna 12, and antenna 13 based on the performance of receiving signals. Figure 2B In the usage scenario shown, if the current transmitting antenna of the electronic device is antenna 11, in order to avoid affecting the performance of the electronic device in sending signals, then based on the performance of antenna 12, antenna 13, and antenna 14 in receiving signals, the one with the best performance in receiving signals can be selected from antenna 12, antenna 13, and antenna 14 as the transmitting antenna after switching.
[0046] However, the performance of the antenna's received signal does not always accurately reflect the performance of the antenna's transmitted signal. Using the above antenna switching solution may result in the antenna's transmitted signal performance being reduced after the antenna is switched, thereby affecting the uplink data transmission of the electronic device. For example, see Figure 3 , Figure 3 This is a schematic diagram of experimental data of a transmitting antenna switching provided by an embodiment of the present application. Among them, the electronic device includes four antennas: antenna 2, antenna 4, antenna 6, and antenna 8. Among the four antennas, antenna 8 has the best performance in receiving signals. Figure 3 It can be seen from the experimental data that after the transmitting antenna of the electronic device is switched to antenna 8, the number of resource blocks (RBs) is reduced and the modulation and coding scheme (MCS) level is reduced. This means that after the transmitting antenna of the electronic device is switched to antenna 8, the uplink data transmission rate of the electronic device is reduced and the uplink communication performance is reduced.
[0047] Based on this, an embodiment of the present application provides a transmitting antenna switching method, which can reduce the impact of transmitting antenna switching on uplink data transmission, and is conducive to improving the flexibility of transmitting antenna switching of electronic devices.
[0048] The following is an introduction to the system architecture used in the embodiments of the present application.
[0049] See Figure 4 , Figure 4 This is a schematic diagram of a system architecture used in the embodiment of this application. Figure 4 As shown, the system architecture may include a network device 101 and an electronic device 100 .
[0050] The network device 101 may be a general node B (gNB) in a fifth generation (5G) mobile communication system, an evolutionary node B (eNB or eNodeB) in a fourth generation (4G) mobile communication system, or a base station in other possible wireless access technologies, such as a base station NodeB, an evolved base station eNodeB, a base station in a fifth generation (5G) communication system, a base station in a sixth generation (6G) communication system, or a base station in a new communication system that will emerge in future communication developments.
[0051] The electronic device 100 can be a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, etc.
[0052] The electronic device 100 may include multiple antennas. Figure 4 Taking the electronic device including four antennas as an example, it is understandable that the electronic device may also include different antennas. Figure 4 The number of antennas shown may include, for example, more than four antennas, which is not limited in this application. Figure 4Each of the four antennas of the electronic device 100 can be used to receive signals from the network device 101, that is, as a receiving antenna, and one of the four antennas (such as antenna 3) can be used to send signals to the network device 101, that is, as a transmitting antenna. For example, see Figure 5 , Figure 5 FIG. 1 is a schematic diagram of a transmitting antenna switching of an electronic device provided in an embodiment of the present application. Figure 5 As shown in (1), the electronic device may include a transmitting antenna switching module 50, and the transmitting antenna switching module 50 may include multiple antenna switching switches, such as antenna switching switch 501, antenna switching switch 502, and antenna switching switch 503. The antenna switching switch may be, for example, a double pole double throw (DPDT) switch. Figure 5 As shown in (2), the ports of the double-pole double-throw switch can be in a straight-through state or a cross-over state. For example, when the ports of the double-pole double-throw switch are in a straight-through state, ports a and c are connected and ports b and c are connected; when the ports of the double-pole double-throw switch are in a cross-over state, ports a and d are connected and ports b and c are connected. By using multiple antenna switching switches in combination, it is possible to switch the transmitting antenna used to send signals between antenna 0, antenna 1, antenna 2, and antenna 3.
[0053] The hardware structure of the electronic device 100 in the embodiment of the present application is introduced below.
[0054] See Figure 6A , Figure 6A This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. Figure 6AAs shown, the electronic device 100 may include: a processor 110, an application processor 110A, a modem processor 110B (also known as a modem or baseband chip), an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1 supporting mobile communication, an antenna 2 supporting wireless communication, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0055] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor 110A (AP), a modem processor 110B, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0056] The modem processor (modem) runs on the baseband chip and coprocessor, and the modem may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted 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 being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem can be an independent device. In other embodiments, the modem can be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0057] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. The mobile communication function of the electronic device can be implemented by antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor. In the embodiment of the present application, the electronic device may include at least one antenna 1 and at least one antenna 2.
[0058] The mobile communication module 150 can provide wireless communication solutions for electronic devices, including second-generation wireless telephone technology (2G), third-generation mobile communication technology (3G), fourth-generation mobile communication technology (4G), and fifth-generation mobile communication technology (5G). The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low-noise amplifier (LNA), and the like. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor and convert them into electromagnetic waves for radiation via the antenna 1. In some embodiments, some functional modules of the mobile communication module 150 may be located within the processor 110. In some embodiments, some functional modules of the mobile communication module 150 and some modules of the processor 110 may be located within the same device. In the embodiment of the present application, the electronic device can select an antenna with better uplink transmission performance as a transmitting antenna for sending signals through the mobile communication module 150.
[0059] The wireless communication module 160 can provide wireless communication solutions for electronic devices, including wireless local area networks (WLAN) (such as WiFi networks), Bluetooth (BT), BLE broadcasting, global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0060] In some embodiments, the antenna 1 of the electronic device is coupled to the mobile communication module 150, and the antenna 2 of the electronic device is coupled to the wireless communication module 160, so that the electronic device can communicate with the network and other electronic devices through wireless communication technology. The wireless communication technology may include at least one of the following communication technologies: global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, IR technology. The GNSS may include at least one of the following positioning technologies: global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS), and satellite based augmentation system (SBAS).
[0061] It is understandable that Figure 6A The illustrated structure does not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0062] The above describes the hardware structure of electronic devices. The following describes the software structure of electronic devices.
[0063] The software structure of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. This embodiment of the application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100. Figure 6B , Figure 6B This is a schematic diagram of the software structure of an electronic device provided in an embodiment of the present application.
[0064] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0065] The application layer can include a series of application packages. Figure 6B As shown, the application package can include applications such as camera, gallery, chat, map, calendar, music, call, navigation, game, video, etc.
[0066] 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. The application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc. In this embodiment of the application, the application framework layer may also include an antenna switching control module.
[0067] The 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, take screenshots, etc.
[0068] Content providers are used to store and retrieve data and make it accessible to applications. Data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0069] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0070] The phone manager is used to provide communication functions for electronic devices, such as call status management (including answering, hanging up, etc.).
[0071] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0072] The notification manager enables applications to display notification information in the status bar, which can be used to convey informational messages and disappear automatically after a short stay without user interaction.
[0073] The antenna switching control module monitors the operation of applications in the application layer, such as the electronic device's signal reception and transmission performance during application execution. It also drives the transmit antenna switching module in the core layer, described below, to switch the transmit antenna when conditions for switching the transmit antenna are met.
[0074] The Android runtime includes the core library and the virtual machine. The Android runtime is responsible for scheduling and management of the Android system.
[0075] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0076] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files in the application layer and application framework layer as binary files. The virtual machine is responsible for managing the object lifecycle, stack management, thread management, security and exception management, and garbage collection.
[0077] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0078] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0079] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0080] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0081] A 2D graphics engine is a drawing engine for 2D drawings.
[0082] The kernel layer is the layer between hardware and software. The kernel layer includes at least the display driver, camera driver, audio driver, sensor driver, and transmit antenna switching module.
[0083] In the embodiment of the present application, the transmitting antenna switching module can drive multiple antenna switching switches to switch the transmitting antennas.
[0084] It should be noted that the various functional modules included in the above software structure are merely exemplary and do not constitute a specific limitation on the software architecture of the mobile phone of this application. In other embodiments, the various functional modules included in the above software structure may be more or less, and this application does not impose any limitation on this. Although the embodiments of this application are described using the Android system as an example, the basic principles are also applicable to electronic devices based on operating systems such as iOS or Windows.
[0085] The following describes a method for switching transmitting antennas provided in an embodiment of the present application. The method can be applied to an electronic device that may include multiple antennas.
[0086] See Figure 7 , Figure 7 FIG. 1 is a flow chart of a method for switching a transmitting antenna provided in an embodiment of the present application. Figure 7 As shown, the transmitting antenna switching method may include but is not limited to the following steps:
[0087] S701: Use a first antenna to send an uplink signal in a first time period.
[0088] In this embodiment of the present application, the electronic device may use the first antenna to transmit an uplink signal to the network device during a first time period. Accordingly, the network device may receive the uplink signal transmitted by the electronic device using the first antenna during the first time period. The electronic device may include the first antenna among its multiple antennas, and the first antenna may be understood as the transmitting antenna used by the electronic device before switching to a new transmitting antenna. In other words, S701 may be understood as indicating that the transmitting antenna of the electronic device during the first time period is the first antenna.
[0089] In some embodiments, the electronic device may use the first antenna to send multiple uplink signals to the network device within a first time period. The multiple uplink signals may be signals of the same type or signals of different types. Optionally, the uplink signal may be a reference signal, such as a sounding reference signal (SRS), a demodulation reference signal (DMRS), a positioning reference signal (PRS), and a phase tracking signal (PTRS). The uplink signal may also be a data signal, such as a physical uplink shared channel (PUSCH) (i.e., the signal is sent via PUSCH), a physical uplink control channel (PUCCH) (i.e., the signal is sent via PUCCH), and a physical random access channel (PRACH) (also known as a random access signal).
[0090] In some embodiments, the network device may send a downlink signal to the electronic device. Optionally, the timing for the network device to send the downlink signal to the electronic device may be before S701 or after S701. The downlink signal may be a cell reference signal (CRS), a channel state information reference signal (CSI-RS), a DMRS (demodulation reference signal), a synchronization signal (SS), etc., or may be a physical downlink control channel (PDCCH), a physical downlink shared channel (PDSCH), etc.
[0091] S702: Determine a second antenna from the multiple antennas based on received signal parameters of the multiple antennas.
[0092] In an embodiment of the present application, multiple antennas of an electronic device can be used to receive downlink signals from a network device and obtain received signal parameters of the downlink signals received by the multiple antennas. The electronic device can then determine a second antenna from the multiple antennas based on the received signal parameters of the multiple antennas. The second antenna can be understood as the transmitting antenna to be switched, or can be described as a candidate transmitting antenna. The second antenna is an antenna different from the first antenna.
[0093] Optionally, the antenna's received signal parameter may be any one or more of the following: reference signal received power (RSRP), reference signal received quality (RSRQ), and signal to interference noise ratio (SINR). RSRP refers to the power of the received reference signal, which can be used to reflect the signal strength and quality of the network. It can be used to measure the power of the reference signal received by the electronic device from the network device. A larger RSRP value indicates a stronger received signal and better network coverage. RSRQ refers to the received reference signal quality, which can be used to reflect the signal quality of the network. It can be used to measure the quality of the reference signal received by the electronic device from the network device. A larger RSRQ value indicates better received signal quality and better network communication quality. SINR refers to the ratio of signal strength to noise intensity, which can also be used to reflect the signal quality of the network. Similarly, a higher SINR value indicates better network signal quality and better network communication quality. For ease of understanding, the following embodiments of the present application are described using RSRP as an example of a received signal parameter.
[0094] In some embodiments, the received signal parameter of one of the multiple antennas may be the average of the received signal parameters within a time period. For example, assuming the time period is 5 seconds, the received signal parameter of antenna 1 may be the average RSRP value of signals received within that 5-second period. The received signal parameter of one of the multiple antennas may also be the received signal parameter at a single moment. For example, the received signal parameter of antenna 1 may be the RSRP value of the signal received at the most recent moment.
[0095] In some embodiments, the electronic device may determine the second antenna based on the parameters between the received signal parameters of the first antenna and the received signal parameters of each antenna in the plurality of antennas except the first antenna. The difference between the received signal parameters of the first antenna and the received signal parameters of the second antenna is greater than or equal to a third threshold. The difference between the received signal parameters of the first antenna and the received signal parameters of the second antenna refers to the difference obtained by subtracting the received signal parameters of the first antenna from the received signal parameters of the second antenna. This difference being greater than or equal to the third threshold may indicate that the performance of the second antenna's received signal is better than that of the first antenna's received signal. It is understood that in the case where the difference between the received signal parameters of two or more antennas and the received signal parameters of the first antenna is greater than the third threshold, the second antenna is the antenna with the largest received signal parameter, that is, the second antenna has the best received signal performance.
[0096] Optionally, the third threshold can be determined in two ways: 1. Directly using the handover threshold as the third threshold; 2. Using the difference between the handover threshold and a threshold adjustment parameter as the third threshold. The handover threshold can be an unchangeable fixed value provided by a universal platform's transmit antenna switching algorithm, while the threshold adjustment parameter can be a value configured by the electronic device manufacturer.
[0097] For method one, if the difference between the received signal parameters of one antenna among the multiple antennas of the electronic device and the received signal parameters of the first antenna is greater than the switching threshold, then this antenna can be determined as the second antenna; if the difference between the received signal parameters of two or more antennas among the multiple antennas of the electronic device and the received signal parameters of the first antenna is greater than the switching threshold, then the antenna with the largest received signal parameter among these two or more antennas can be determined as the second antenna.
[0098] For example, assume that an electronic device has multiple antennas including antenna 0, antenna 1, antenna 2, and antenna 3, where the first antenna is antenna 0 and the switching threshold is 10 dBm. If the RSRP value of antenna 1 is 9 dBm greater than the RSRP value of antenna 0, the RSRP value of antenna 2 is 12 dBm greater than the RSRP value of antenna 0, and the RSRP value of antenna 3 is 2 dBm greater than the RSRP value of antenna 0, then antenna 2 can be determined as the second antenna.
[0099] For method two, if there is a difference between the receiving signal parameters of one antenna among the multiple antennas of the electronic device and the receiving signal parameters of the first antenna, and the value obtained by adding the threshold value adjustment parameter is greater than the switching threshold, then this antenna can be determined as the second antenna; if there is a difference between the receiving signal parameters of two or more antennas among the multiple antennas of the electronic device and the receiving signal parameters of the first antenna, and the value obtained by adding the threshold value adjustment parameter is greater than the switching threshold, then the antenna with the largest receiving signal parameter among these two or more antennas can be determined as the second antenna.
[0100] For example, assume that an electronic device includes multiple antennas including antenna 0, antenna 1, antenna 2, and antenna 3, where the first antenna is antenna 1, the switching threshold is 12dBm, and the threshold adjustment parameter is 5dBm. If the RSRP value of antenna 0 is 9dBm greater than the RSRP value of antenna 1, the RSRP value of antenna 2 is 8dBm greater than the RSRP value of antenna 1, and the RSRP value of antenna 3 is 5dBm greater than the RSRP value of antenna 1, since 9dBm plus 5dBm equals 14dBm, which is greater than 12dBm, and 8dBm plus 5dBm equals 13dBm, which is also greater than 12dBm, then the second antenna can be the antenna with the highest RSRP value between antenna 0 and antenna 2. In other words, antenna 0 can be determined as the second antenna.
[0101] As far as electronic devices are concerned, when designing their antennas, one indicator that must be considered is the electromagnetic wave absorption ratio or specific absorption rate (SAR). The SAR value generally refers to the heat energy generated by electromagnetic waves in electronic devices. It is a measure of the impact on the human body. In other words, the size of the SAR value indicates the impact of the electromagnetic radiation of electronic equipment on human health. Usually, the size of the SAR value is proportional to the total radiated power (TRP) of the antenna. In order to reduce the SAR value and reduce the radiation impact of electronic equipment on the human body, the TRP of the antenna will also be reduced to a certain extent. In electronic devices, the upper antenna close to the human head often reduces the SAR value more, such as the above Figure 1 The antenna 11 in the image will reduce the SAR value more than the antenna 13, and the TRP of the antenna 11 will also be weaker than the TRP of the antenna 13. Figure 2A As shown in Figure 1, the lower antenna (i.e., antenna 13) is blocked. In this case, to reduce the probability of the transmitting antenna switching to the lower antenna, the threshold adjustment value configuration method described in the second method can be used. Specifically, if the difference between the received signal parameters of the upper antenna (i.e., antenna 11) and the lower antenna, plus the threshold adjustment parameter, is greater than the switching threshold, the upper antenna is determined to be a candidate transmitting antenna (i.e., the second antenna).
[0102] It can be seen that, compared with the first method, the second method is conducive to improving the flexibility of the switching of the transmitting antenna. The second method can flexibly configure the threshold adjustment parameters to affect the switching of the transmitting antenna.
[0103] In some embodiments, for the second method, the electronic device can select different threshold adjustment parameters according to different usage scenarios. Among them, the usage scenarios may include, for example, left-hand vertical holding scenario, right-hand vertical holding scenario, left-hand horizontal holding scenario, right-hand horizontal holding scenario, and both-hands horizontal holding scenario. For different usage scenarios, different threshold adjustment parameters are selected to affect the switching threshold, thereby facilitating the transmission antenna to switch to an antenna with better performance. For example, assuming Figure 1 The electronic device shown uses antenna 11 as the current transmitting antenna (ie, the first antenna). For the right-hand call scenario, Figure 1 The antennas 12, 13, and 14 of the electronic device shown may be blocked. To reduce the probability of the transmitting antenna switching to these antennas, a larger threshold adjustment parameter can be configured. For another example, for the left-hand horizontal holding scenario, Figure 1 The antenna 11 shown may be blocked. To reduce the probability of the transmitting antenna continuing to use the antenna 11, a smaller threshold adjustment parameter may be configured.
[0104] In some embodiments, the electronic device may periodically determine whether a second antenna exists among the multiple antennas, that is, the electronic device may periodically determine whether to switch the transmitting antenna. Optionally, the electronic device may also determine whether a second antenna exists among the multiple antennas at a preset time interval. The preset time interval may be a fixed time interval or a variable time interval. For example, the preset time interval may be an ordered data set, where the later the data in the data set is sorted, the smaller the value, that is, the shorter the preset time interval. Optionally, the electronic device may also determine whether a second antenna exists among the multiple antennas after receiving an instruction from a network device. This application does not limit this.
[0105] S703: Switch the transmitting antenna of the electronic device from the first antenna to the second antenna, and use the second antenna to send an uplink signal during a second time period.
[0106] In the embodiment of the present application, after the electronic device determines the second antenna, it can switch the transmitting antenna of the electronic device from the first antenna to the second antenna and use the second antenna in a second time period, where the second time period is later than the first time period.
[0107] Optionally, the first time period may be a time period before the electronic device executes S702, or a time period after the electronic device executes S702 and before executing S703.
[0108] For example, see Figure 8 , Figure 8 Schematic diagram of a time axis for switching a transmitting antenna provided by an embodiment of the present application. Figure 8 As shown in (1), the first time period may be before the electronic device determines the second antenna, and the second time period may be after the electronic device determines the second antenna. That is, the electronic device may first use the first antenna to send uplink signals in the first time period, and then after determining the second antenna, switch the transmitting antenna from the first antenna to the second antenna, and use the second antenna to send uplink signals in the second time period. Figure 8 As shown in (2), the first time period may also be after the electronic device determines the second antenna. That is, after determining the second antenna, the electronic device may use the first antenna to send uplink signals during the first time period, and then switch the transmitting antenna from the first antenna to the second antenna, and use the second antenna to send uplink signals during the second time period.
[0109] In the process of an electronic device using a first antenna to send an uplink signal in a first time period, the uplink bit error rate and uplink transmission power of the first antenna in the first time period can be counted. In the process of an electronic device using a second antenna to send an uplink signal in a second time period, the uplink bit error rate and uplink transmission power of the second antenna in the second time period can be counted. In the process of an electronic device using a second antenna to send an uplink signal in a second time period, the uplink bit error rate and uplink transmission power of the second antenna in the second time period can be counted. The uplink bit error rate can be used to measure the accuracy and reliability of uplink data transmission. The uplink transmission power can be the transmission power allocated to each resource block (RB) during the uplink data transmission process, or it can be the total transmission power of all RBs during the uplink data transmission process. The uplink transmission power here can be used to measure the power consumption of the electronic device during uplink data transmission.
[0110] Optionally, the electronic device may measure the uplink data transmission performance of the two antennas by collecting statistics on other uplink data transmission indicators, such as the uplink retransmission rate, uplink scheduling rate, uplink transmission duration, uplink transmission block size, etc., within the first time period and the second time period.
[0111] In some embodiments, the uplink bit error rate can be calculated by counting the acknowledgments (ACKs) and negative acknowledgments (NACKs) from the network device. Taking the use of the second antenna by the electronic device in the second time period as an example, the electronic device can use the second antenna to send uplink signals to the network device multiple times in the second time period, and the network device can send feedback information to the electronic device each time it receives an uplink signal from the electronic device. If the uplink signal received by the network device is correct, feedback information including ACK can be sent to the electronic device. If the uplink signal received by the network device is incorrect, feedback information including NACK can be sent to the electronic device. The electronic device can then calculate the uplink bit error rate of using the second antenna in the second time period based on the number of uplink signals sent to the network device in the second time period and the number of ACKs and NACKs received.
[0112] In some embodiments, the electronic device may include an antenna switching control module and a transmit antenna switching module, which may include multiple antenna switching switches. After the electronic device determines the second antenna, the antenna switching control module may send an antenna switching instruction to the transmit antenna switching module. The antenna switching instruction may be used to instruct the electronic device's transmit antenna to switch from the first antenna to the second antenna. In response to the antenna switching instruction, the transmit antenna switching module may control the multiple antenna switching switches to disconnect the transmit path connected to the first antenna and connect the transmit path connected to the second antenna, thereby switching the transmit antenna from the first antenna to the second antenna.
[0113] S704, in response to the difference between the uplink bit error rate of the first antenna in the first time period and the uplink bit error rate of the second antenna in the second time period being less than the first threshold, and the difference between the uplink transmission power of the first antenna in the first time period and the uplink transmission power of the second antenna in the second time period being less than the second threshold, continue to use the second antenna to send uplink signals after the second time period.
[0114] In the embodiment of the present application, after the electronic device executes S703, it cannot yet finally determine that the second antenna is the transmitting antenna to be subsequently used. It is necessary to measure the uplink transmission performance of the first antenna and the second antenna based on the result of comparing the uplink bit error rate and uplink transmit power of the first antenna in the first time period with the uplink bit error rate and uplink transmit power of the second antenna in the second time period, and then determine whether to continue using the second antenna to send uplink signals. Whether to continue using the second antenna to send uplink signals can be understood as whether to use the second antenna as the transmitting antenna after switching.
[0115] If the comparison result shows that the difference between the uplink bit error rate of the first antenna in the first time period and the uplink bit error rate of the second antenna in the second time period is less than a first threshold, and the difference between the uplink transmit power of the first antenna in the first time period and the uplink transmit power of the second antenna in the second time period is less than a second threshold, then the second antenna can continue to be used to send uplink signals after the second time period, that is, the second antenna is determined to be the transmitting antenna to be used subsequently. Here, the difference between the uplink bit error rate of the first antenna in the first time period and the uplink bit error rate of the second antenna in the second time period refers to the difference obtained by subtracting the uplink bit error rate of the first antenna in the first time period from the uplink bit error rate of the second antenna in the second time period. If this difference is less than the first threshold, it can be indicated that switching the transmitting antenna from the first antenna to the second antenna will not cause the bit error rate to increase or will not cause the bit error rate to increase too much, that is, it will not affect the stability of uplink data transmission. Similarly, the difference between the uplink transmission power of the first antenna in the first time period and the uplink transmission power of the second antenna in the second time period refers to the difference obtained by subtracting the uplink transmission power of the first antenna in the first time period from the uplink transmission power of the second antenna in the second time period. The difference is less than the second threshold, which indicates that switching the transmitting antenna from the first antenna to the second antenna will not cause an increase in the transmission power, that is, the power consumption of the uplink data transmission of the electronic device will not increase or the power consumption of the uplink data transmission of the electronic device will not increase too much.
[0116] In some embodiments, the electronic device may use Figure 9 The process shown determines whether to continue using the second antenna to send uplink signals after the second time period. Specifically:
[0117] S91: Calculate a difference between an uplink bit error rate of the first antenna in a first time period and an uplink bit error rate of the second antenna in a second time period.
[0118] The first time period and the second time period may be time periods of the same length, for example, both may be 100 ms.
[0119] S92: Is it greater than or equal to a first threshold?
[0120] The first threshold can also be described as a bit error rate threshold. The electronic device can first determine whether the difference between the uplink bit error rate of the first antenna in the first time period and the uplink bit error rate of the second antenna in the second time period is greater than or equal to the first threshold.
[0121] If the difference between the uplink bit error rate of the first antenna in the first time period and the uplink bit error rate of the second antenna in the second time period is greater than or equal to the first threshold, the processing method can be any of the following:
[0122] Method 1: No longer determining whether the difference between the uplink transmit power of the first antenna in the first time period and the uplink transmit power of the second antenna in the second time period is greater than or equal to the second threshold. The electronic device directly switches the transmit antenna from the second antenna back to the first antenna and executes S95. This helps improve transmit antenna switching efficiency.
[0123] Method ②: Further determine whether the difference between the uplink transmit power of the first antenna during the first time period and the uplink transmit power of the second antenna during the second time period is greater than or equal to a second threshold. If the difference between the uplink transmit power of the first antenna during the first time period and the uplink transmit power of the second antenna during the second time period is less than the second threshold, the electronic device switches the transmitting antenna from the second antenna back to the first antenna and executes S95. In this method, it can be indicated that switching the transmitting antenna from the first antenna to the second antenna significantly increases the uplink bit error rate, which may affect the stability of uplink data transmission. At the same time, if the power consumption reduction effect is not significant, switching the transmitting antenna from the second antenna back to the first antenna is more conducive to improving uplink transmission performance.
[0124] If the difference between the uplink bit error rate of the first antenna in the first time period and the uplink bit error rate of the second antenna in the second time period is less than the first threshold, the electronic device may execute S93.
[0125] S93: Calculate the difference between the uplink transmit power of the first antenna in the first time period and the uplink transmit power of the second antenna in the second time period.
[0126] S94: Is it greater than or equal to a second threshold?
[0127] The second threshold can also be described as a power control threshold. If the difference between the uplink bit error rate of the first antenna in the first time period and the uplink bit error rate of the second antenna in the second time period is less than the first threshold, the electronic device can further determine whether the difference between the uplink transmission power of the first antenna in the first time period and the uplink transmission power of the second antenna in the second time period is greater than or equal to the second threshold.
[0128] If the difference between the uplink transmit power of the first antenna in the first time period and the uplink transmit power of the second antenna in the second time period is greater than or equal to the second threshold, the electronic device may switch the transmitting antenna from the second antenna back to the first antenna and execute S95.
[0129] S95: After the second time period, use the first antenna to send an uplink signal.
[0130] If the difference between the uplink transmission power of the first antenna in the first time period and the uplink transmission power of the second antenna in the second time period is less than the second threshold, the electronic device may execute S96.
[0131] S96: Continue to use the second antenna to send uplink signals after the second time period.
[0132] Optionally, the above S93 and S94 may also be executed before S91.
[0133] In this case, the electronic device may first determine whether the difference between the uplink transmit power of the first antenna in the first time period and the uplink transmit power of the second antenna in the second time period is greater than or equal to the second threshold.
[0134] If the difference between the uplink transmit power of the first antenna in the first time period and the uplink transmit power of the second antenna in the second time period is less than the second threshold, it is further determined whether the difference between the uplink bit error rate of the first antenna in the first time period and the uplink bit error rate of the second antenna in the second time period is greater than or equal to the first threshold.
[0135] If the difference between the uplink bit error rate of the first antenna in the first time period and the uplink bit error rate of the second antenna in the second time period is greater than or equal to a first threshold, the step of switching the transmitting antenna of the electronic device from the second antenna back to the first antenna can be performed, and the first antenna can be used to send uplink signals after the second time period. If the difference between the uplink bit error rate of the first antenna in the first time period and the uplink bit error rate of the second antenna in the second time period is less than the first threshold, the second antenna can continue to be used to send uplink signals after the second time period.
[0136] If the difference between the uplink transmit power of the first antenna in the first time period and the uplink transmit power of the second antenna in the second time period is greater than or equal to the second threshold, the processing method can be any of the following:
[0137] Method 1: Instead of determining whether the difference between the uplink bit error rate of the first antenna in the first time period and the uplink bit error rate of the second antenna in the second time period is greater than or equal to the first threshold, the electronic device's transmitting antenna is directly switched from the second antenna back to the first antenna. After the second time period, uplink signals are sent using the first antenna. This improves the efficiency of transmitting antenna switching.
[0138] Method 2: Further determine whether the difference between the uplink bit error rate of the first antenna in the first time period and the uplink bit error rate of the second antenna in the second time period is greater than or equal to a first threshold. If the difference between the uplink bit error rate of the first antenna in the first time period and the uplink bit error rate of the second antenna in the second time period is less than the first threshold, execute the step of switching the transmitting antenna of the electronic device from the second antenna back to the first antenna, and use the first antenna to send uplink signals after the second time period. In this method, it can be shown that the power consumption of the transmitting antenna is significantly increased when switching from the first antenna to the second antenna. At the same time, if the difference in bit error rate is not significant, switching the transmitting antenna from the second antenna back to the first antenna is more conducive to improving the performance of uplink transmission.
[0139] In some embodiments, the first threshold and the second threshold can be obtained according to the service type of the current service of the electronic device. In other words, the bit error rate threshold and the power control threshold can be dynamically adjusted according to the service type of the current service. For example, for service types with large data transmission volume, such as video service, game service, etc., a lower power control threshold (i.e., the second threshold) can be set to avoid a substantial increase in power consumption after the transmitting antenna is switched. For another example, for service types with high requirements for data transmission accuracy, a lower bit error rate threshold (i.e., the first threshold) can be set to avoid affecting the stability of data transmission after the transmitting antenna is switched. Among them, different service types can have a mapping relationship with different first thresholds and second thresholds, and the mapping relationship can be expressed in the form of a table, as shown in Table 1 below:
[0140] Table 1
[0141] Business Type First threshold Second threshold A a1 a2 B b1 b2
[0142] Optionally, the electronic device may obtain the first threshold and the second threshold by reporting the service type of the current service to the network device, and the network device may issue the first threshold and the second threshold based on the service type of the current service of the electronic device. Alternatively, the electronic device may pre-store a mapping relationship between different service types and different first and second thresholds in a storage space (e.g., Table 1 above), and the electronic device may obtain the first threshold and the second threshold from the storage space based on the service type of the current service.
[0143] By implementing the embodiments of the present application, the electronic device can select a second antenna with better signal receiving performance from multiple antennas, and then further compare the changes in the uplink bit error rate and the uplink transmit power before and after the transmitting antenna is switched from the first antenna to the second antenna. If the changes in the uplink bit error rate and the uplink transmit power meet the conditions, the second antenna will continue to be used to send the uplink signal. If the changes in the uplink bit error rate and the uplink transmit power do not meet the conditions, the transmitting antenna can be switched back, that is, the transmitting antenna can be switched from the second antenna back to the first antenna. In this way, both the performance of the receiving signal of the transmitting antenna and the performance of the transmitting signal of the transmitting antenna can be guaranteed, which is conducive to improving the flexibility of the transmitting antenna switching and ensuring the stability of the communication of the electronic device.
[0144] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described herein are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive).
[0145] It should be noted that for the aforementioned various method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
[0146] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs.
[0147] The modules in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.
[0148] A person skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the relevant hardware through a program, and the program can be stored in a computer-readable storage medium, which may include: a flash drive, ROM, RAM, a magnetic disk or an optical disk, etc.
[0149] The above disclosure is only a preferred embodiment of the present application and is only a part of the embodiments of the present application. It cannot be used to limit the scope of rights of the present application.
Claims
1. A method for switching a transmitting antenna, characterized in that: Applied to an electronic device, the electronic device includes multiple antennas; the method includes: Using a first antenna to send an uplink signal in a first time period, the multiple antennas including the first antenna; determining a second antenna from the plurality of antennas based on received signal parameters of the plurality of antennas; the second antenna being different from the first antenna; Switching the transmitting antenna of the electronic device from the first antenna to the second antenna, and using the second antenna to send uplink signals in a second time period; the second time period is later than the first time period; In response to the difference between the uplink bit error rate of the first antenna in the first time period and the uplink bit error rate of the second antenna in the second time period being less than a first threshold, and the difference between the uplink transmit power of the first antenna in the first time period and the uplink transmit power of the second antenna in the second time period being less than a second threshold, the second antenna continues to be used to send uplink signals after the second time period.
2. The method according to claim 1, wherein The method further comprises: In response to a difference between an uplink bit error rate of the first antenna in the first time period and an uplink bit error rate of the second antenna in the second time period being greater than or equal to a first threshold, using the first antenna to send an uplink signal after the second time period; Alternatively, in response to the difference between the uplink transmit power of the first antenna in the first time period and the uplink transmit power of the second antenna in the second time period being greater than or equal to a second threshold, the first antenna is used to send an uplink signal after the second time period.
3. The method according to claim 1, wherein The method further comprises: In response to the difference between the uplink bit error rate of the first antenna in the first time period and the uplink bit error rate of the second antenna in the second time period being less than a first threshold, and the difference between the uplink transmit power of the first antenna in the first time period and the uplink transmit power of the second antenna in the second time period being greater than or equal to a second threshold, the first antenna is used to send an uplink signal after the second time period.
4. The method according to claim 1, wherein The method further comprises: In response to the difference between the uplink bit error rate of the first antenna in the first time period and the uplink bit error rate of the second antenna in the second time period being greater than or equal to a first threshold, and the difference between the uplink transmit power of the first antenna in the first time period and the uplink transmit power of the second antenna in the second time period being less than a second threshold, the first antenna is used to send an uplink signal after the second time period.
5. The method according to any one of claims 1 to 4, characterized in that The determining a second antenna from the multiple antennas based on received signal parameters of the multiple antennas includes: Determine the second antenna based on the difference between the received signal parameters of the first antenna and the received signal parameters of each antenna among the multiple antennas except the first antenna; the difference between the received signal parameters of the first antenna and the received signal parameters of the second antenna is greater than or equal to a third threshold, and the second antenna is the antenna with the largest received signal parameter among the multiple antennas.
6. The method according to claim 5, wherein The third threshold is a switching threshold, or the third threshold is a difference between the switching threshold and a threshold adjustment parameter.
7. The method according to any one of claims 1 to 4, characterized in that The method further comprises: A first threshold and a second threshold are acquired according to a service type of a current service of the electronic device.
8. An electronic device, characterized in that: The electronic device comprises a memory and one or more processors; the memory is coupled to the one or more processors and is used to store a computer program, wherein the computer program includes program instructions; the one or more processors call the program instructions so that the electronic device executes the method according to any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
10. A chip system, characterized in that: The chip system is coupled to a memory, and the chip system is used to read and execute a computer program stored in the memory to implement the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Antenna switching method, communication terminal and computer readable storage medium
CN107453767A
Antenna switching method, multi-antenna terminal and computer readable memory medium
CN107659345A
Antenna switching method, multi-antenna terminal, and computer-readable storage medium
CN107666345A
Antenna switching method, antenna switching device, storage medium and electronic device
CN110278010A
Antenna switching method, antenna switching device, storage medium and electronic device
CN110380771A