An antenna switching method and a terminal device
By acquiring the changes in uplink average throughput and bit error rate before and after antenna switching, and combining this with a threshold value to determine whether to switch back, the problem of unstable uplink transmission rate after antenna switching in existing technologies is solved, and the stability and power consumption of uplink data transmission are optimized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HONOR DEVICE CO LTD
- Filing Date
- 2024-02-04
- Publication Date
- 2026-04-28
AI Technical Summary
In the existing technology, the antenna switching method cannot guarantee that the total radiated power of the antenna after switching is good, resulting in poor uplink transmission rate stability. Especially when there is a large gap between the transmit power and the receive efficiency, it is easy to switch to an antenna with better RSRP but poorer TRP, which affects the uplink transmission rate.
By acquiring the changes in uplink average throughput and bit error rate before and after antenna switching, and combining this with a preset threshold, it is determined whether to perform a back-switch operation, ensuring that positive benefits are provided after antenna switching and reducing the impact on uplink transmission rate.
It improves the stability of uplink data transmission, avoids the decrease in uplink transmission rate caused by antenna switching, ensures the accuracy and effectiveness of antenna switching, and saves power consumption.
Smart Images

Figure CN120474646B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communications, and more particularly to an antenna switching method and a terminal device. Background Technology
[0002] Because the radiation efficiency of mobile phone antennas is greatly affected by different grip postures and scenarios, multiple antennas are often configured for mobile phones in the same frequency band. When the current transmitting antenna's gain decreases due to grip posture or environmental limitations, antenna switching (i.e., transmit antenna selection (TAS) technology) can be used to reduce the impact of signal attenuation on communication.
[0003] Currently, antenna switching can be used to switch the current transmitting antenna to an antenna with better reference signal receiving power (RSRP). However, it cannot be guaranteed that the total radiated power (TRP) of the antenna will be better after the switch. In particular, when there is a large difference between the transmitting power and receiving efficiency of each antenna, it is very likely that the antenna with better RSRP but poorer TRP will be switched to, which will lead to a significant decrease in the uplink transmission rate and seriously affect the stability of the uplink transmission rate. Summary of the Invention
[0004] This application provides an antenna switching method and a terminal device. Based on the method described in this application, the impact on the uplink transmission rate can be reduced and the stability of uplink data transmission can be improved.
[0005] In a first aspect, this application provides an antenna switching method, the method comprising: when a first antenna is switched to a second antenna, acquiring a first uplink average throughput, a first uplink bit error rate, a second uplink average throughput, and a second uplink bit error rate; wherein the first uplink average throughput is the uplink average throughput within a first preset time period, the first uplink bit error rate is the uplink bit error rate within the first preset time period, and the end time of the first preset time period is the time when the first antenna is switched to the second antenna; wherein the second uplink average throughput is the uplink average throughput within a second preset time period, the second uplink bit error rate is the uplink bit error rate within the second preset time period, and the start time of the second preset time period is the time when the first antenna is switched to the second antenna; and if a first difference between the second uplink average throughput and the first uplink average throughput is less than a first threshold, and a second difference between the second uplink bit error rate and the first uplink bit error rate is greater than a second threshold, then the second antenna is switched back to the first antenna.
[0006] Based on the method described in the first aspect, when the transmit antenna is switched (i.e., the first antenna is switched to the second antenna), the changes in the average uplink throughput and the uplink bit error rate before and after the antenna switch can be combined to determine whether the antenna should be switched back (i.e., the second antenna is switched back to the first antenna). This ensures that the antenna switch can provide positive benefits, reduce the impact on the uplink transmission rate, and improve the stability of uplink data transmission.
[0007] In one possible implementation, the method further includes: if the first difference is greater than or equal to the first threshold value, and / or the second difference is less than or equal to the second threshold value, then obtaining the first average power of the first RB and the second average power of the second RB; the first average power of the first RB is the average power of the RBs within a first preset time period, and the second average power of the second RB is the average power of the RBs within a second preset time period; if a third difference between the second average power of the second RB and the first average power of the first RB is greater than a third threshold value, then switching the second antenna back to the first antenna. Based on this method, it can be ensured that uplink transmission power and high-throughput service scenarios are not affected, and that antenna switching does not have a significant impact on overall power consumption.
[0008] In one possible implementation, before acquiring the first uplink average throughput, the first uplink bit error rate, the second uplink average throughput, and the second uplink bit error rate when the first antenna is switched to the second antenna, the method further includes: acquiring the reference signal received power (RSRP) of a plurality of antennas; the plurality of antennas includes a first antenna and a second antenna, the first antenna being a transmitting antenna; if the sum of a fourth difference and a preset power value is greater than a fourth threshold value, then the first antenna is switched to the second antenna; the fourth difference is the difference between the first RSRP of the first antenna and the second RSRP of the second antenna. Based on this method, the probability of the transmitting antenna switching to the next antenna can be reduced, ensuring the accuracy and effectiveness of antenna switching.
[0009] In one possible implementation, the second antenna is an idle antenna among multiple antennas. This approach improves the effectiveness and reliability of antenna switching.
[0010] In one possible implementation, after switching the second antenna back to the first antenna, the method further includes: after a third preset time period, acquiring the third RSRP of the first antenna and the fourth RSRP of the second antenna; if the sum of the fifth difference and the preset power value is greater than the fourth threshold value, then switching the first antenna to the second antenna; the fifth difference is the difference between the third RSRP and the fourth RSRP. Based on this method, the accuracy of antenna switching can be further improved, and misjudgments can be avoided.
[0011] In one possible implementation, the method further includes: if, within a fourth preset time period, the number of times the first antenna is switched back to the first antenna reaches a preset number, then, within a fifth preset time period, switching the first antenna back to the second antenna is stopped. This method can save power consumption during antenna switching and avoid affecting uplink data transmission.
[0012] In one possible implementation, the method further includes: if the first antenna is not switched to the second antenna within a sixth preset time period, then obtaining the fifth RSRP of the first antenna and the sixth RSRP of the third antenna; the third antenna is one of the multiple antennas other than the first and second antennas; if the sum of the sixth difference and the preset power value is greater than the fourth threshold value, then switching the first antenna to the third antenna; the sixth difference is the difference between the fifth RSRP and the sixth RSRP. Based on this method, it is beneficial to improve the flexibility of antenna switching, further reduce the impact on the uplink transmission rate, and improve the stability of uplink data transmission.
[0013] Secondly, this application provides an antenna switching device, which can be a terminal device, a device within a terminal device, or a device compatible with a terminal device. The antenna switching device can also be a chip system, and it can execute the method performed by the terminal device in the first aspect. The function of the antenna switching device can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes one or more units corresponding to the above functions. These units can be software and / or hardware. The operations performed by the antenna switching device and its beneficial effects can be found in the method described in the first aspect and its beneficial effects; repetitions will not be repeated.
[0014] Thirdly, this application provides a terminal device including one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, the memories being used to store a computer program, and the processors being used to invoke the computer program, causing the terminal device to perform the method described in the first aspect.
[0015] Fourthly, this application provides a chip system for use in a terminal device. The chip system includes at least one processor and an interface for receiving instructions and transmitting them to the at least one processor. The at least one processor executes the instructions to cause the terminal device to perform the method described in the first aspect.
[0016] Fifthly, this application provides an antenna switching system, which includes a terminal device; wherein the terminal device is used to perform the method described in the first aspect.
[0017] In a sixth aspect, this application provides an antenna switching device that includes functions or units for performing the method as described in any of the first aspects.
[0018] In a seventh aspect, this application provides a computer storage medium having a computer program / instructions stored thereon, which, when executed by a processor, implements the method and steps described in the first aspect.
[0019] Eighthly, this application provides a computer program product including a computer program / instructions that, when executed by a processor, implement the method and steps described in the first aspect. Attached Figure Description
[0020] Figure 1 This is a schematic diagram of the architecture of a communication system provided in an embodiment of this application;
[0021] Figure 2 This is a schematic diagram of the hardware structure of a terminal device provided in an embodiment of this application;
[0022] Figure 3 This is a software structure block diagram of a terminal device provided in an embodiment of this application;
[0023] Figure 4 This is a schematic diagram of a mobile phone configured with multiple antennas according to an embodiment of this application;
[0024] Figure 5 This is a flowchart illustrating an antenna switching method provided in an embodiment of this application;
[0025] Figure 6 This is a flowchart illustrating another antenna switching method provided in an embodiment of this application;
[0026] Figure 7 This is a schematic diagram of the structure of an antenna switching device provided in an embodiment of this application;
[0027] Figure 8 This is a schematic diagram of the structure of a chip provided in an embodiment of this application. Detailed Implementation
[0028] The technical solutions in the embodiments of this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; the word "and / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.
[0029] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0030] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.
[0031] To better understand the embodiments of this application, the system architecture involved in the embodiments of this application will be described first below:
[0032] The technical solutions of this application can be applied to various communication systems, such as: Long Term Evolution (LTE) systems, LTE Frequency Division Duplex (FDD) systems, LTE Time Division Duplex (TDD) systems, New Radio (NR), the 3rd Generation Partner Project (3GPP) Service-Based Architecture (SBA) and other fifth-generation (5G) or sixth-generation (6G) communication systems, etc.
[0033] Please see Figure 1 , Figure 1 This is a schematic diagram of the architecture of a communication system provided in an embodiment of this application. The communication system may include network devices and at least one terminal device. Figure 1The example uses a terminal device (e.g., terminal device 100) and a network device (e.g., network device 200). The terminal device can be a cellular phone, smartphone, laptop, handheld communication device, handheld computing device, satellite radio, GPS, personal digital assistant (PDA), and / or any other suitable device for communication over a wireless communication system, and all can connect to the network device. All terminal devices are capable of communicating with the network device. Of course, Figure 1 The number of terminal devices and network devices listed is just an example; there could be fewer or more. The following sections will discuss these separately. Figure 1 The terminal equipment and network equipment involved in the communication system are described in detail.
[0034] I. Terminal Equipment
[0035] Terminal devices include devices that provide voice and / or data connectivity to users; for example, a terminal device is a device with wireless transceiver capabilities, such as... Figure 1The terminal device 100 is described above. The terminal device can be referred to as a terminal or an electronic device. It can be deployed on land, including indoors or outdoors, handheld, wearable, or vehicle-mounted; it can also be deployed on water (such as on ships); and it can be deployed in the air (e.g., on airplanes, balloons, and satellites). The terminal device can be a mobile phone, tablet computer, computer with wireless transceiver capabilities, virtual reality (VR) terminal, augmented reality (AR) terminal, wireless terminal in industrial control, vehicle-mounted terminal, wireless terminal in self-driving, wireless terminal in remote medical care, wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart city, wireless terminal in smart home, wearable terminal, etc. The embodiments of this application do not limit the application scenarios. Terminal equipment may also be referred to as a terminal, user equipment (UE), access terminal, vehicle-mounted terminal, industrial control terminal, UE unit, UE station, mobile station, mobile station, remote station, remote terminal, mobile device, UE terminal, wireless communication equipment, UE agent, or UE device, etc. A terminal can be fixed or mobile. It is understood that all or part of the functions of the terminal in this application can also be implemented through software functions running on hardware, or through virtualization functions instantiated on a platform (e.g., a cloud platform). The terminal equipment in this application can be a 5G terminal or a 6G terminal; this application does not limit this. In the embodiments of this application, the device used to implement the functions of the terminal equipment can be the terminal equipment itself, or it can be a device capable of supporting the terminal equipment in implementing the functions, such as a chip system or a combination of devices or components capable of implementing the functions of the terminal equipment. This device can be installed in the terminal equipment.
[0036] The hardware structure of terminal device 100 is described below. Please refer to [link / reference]. Figure 2 , Figure 2 This is a schematic diagram of the hardware structure of the terminal device 100 provided in the embodiments of this application.
[0037] Terminal device 100 may include a processor 110, 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, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 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, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity 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.
[0038] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the terminal device 100. In other embodiments of this application, the terminal device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0039] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0040] The controller can serve as the central nervous system and command center of the terminal device 100. The controller can generate operation control signals based on the instruction opcode and timing signals to control the fetching and execution of instructions.
[0041] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system. The processor 110 retrieves the instructions or data stored in the memory, causing the terminal device 100 to execute the antenna switching method executed by the terminal device in the following method embodiments.
[0042] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0043] The charging management module 140 is used to receive charging input from the charger. The charger can be a wireless charger or a wired charger.
[0044] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, internal memory 121, external memory, display 194, camera 193, and wireless communication module 160, etc. In some other embodiments, the power management module 141 may also be located in the processor 110.
[0045] The wireless communication function of the terminal device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor.
[0046] Antennas 1 and 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.
[0047] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the terminal device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0048] A modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates 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 processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor.
[0049] The wireless communication module 160 can provide solutions for wireless communication applications on the terminal device 100, including wireless local area networks (WLAN) (such as Wi-Fi), Bluetooth (BT), BLE broadcasting, global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR). The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0050] In some embodiments, the antenna 1 of the terminal device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the terminal device 100 can communicate with the network and other devices through wireless communication technology.
[0051] Terminal device 100 implements display functions through a GPU, display screen 194, and application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0052] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the terminal device 100 may include one or N display screens 194, where N is a positive integer greater than 1.
[0053] Terminal device 100 can perform shooting functions through an ISP, camera 193, video codec, GPU, display 194, and application processor. The ISP processes data fed back from the camera 193. The camera 193 captures still images or video. The digital signal processor processes digital signals, including digital image signals and other digital signals. The video codec compresses or decompresses digital video. Terminal device 100 can support one or more video codecs.
[0054] NPU stands for Neural Network (NN) Computing Processor. By drawing inspiration from the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can quickly process input information and continuously learn on its own.
[0055] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to perform data storage functions.
[0056] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of terminal device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as a sound playback function), etc. The data storage area may store data created during the use of terminal device 100 (such as audio data), etc. Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as flash memory devices.
[0057] Terminal device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
[0058] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.
[0059] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The receiver 170B, also known as a "handpiece," is used to convert audio electrical signals into sound signals. The microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. The headphone jack 170D is used to connect wired headphones. The pressure sensor 180A is used to sense pressure signals and convert them into electrical signals.
[0060] In some embodiments, a pressure sensor 180A may be disposed on a display screen 194. A gyroscope sensor 180B may be used to determine the motion posture of the terminal device 100. A barometric pressure sensor 180C is used to measure barometric pressure. A magnetic sensor 180D includes a Hall effect sensor. An accelerometer sensor 180E can detect the magnitude of acceleration of the terminal device 100 in various directions (generally three axes). A distance sensor 180F is used to measure distance. A proximity sensor 180G may include, for example, a light-emitting diode (LED) and a photodetector. An ambient light sensor 180L is used to sense ambient light intensity. A fingerprint sensor 180H is used to collect fingerprints. A temperature sensor 180J is used to detect temperature. A touch sensor 180K, also called a "touch panel," may be disposed on the display screen 194. The touch sensor 180K and the display screen 194 together form a touch screen, also called a "touchscreen." The touch sensor 180K is used to detect touch operations applied to or near it. A bone conduction sensor 180M can acquire vibration signals. Buttons 190 include a power button, volume buttons, etc. A motor 191 can generate vibration feedback. An indicator 192 can be an indicator light, used to indicate charging status, battery level changes, and also to indicate messages, missed calls, notifications, etc. A SIM card interface 195 is used to connect a SIM card.
[0061] In addition, an operating system runs on top of the aforementioned components. Examples include iOS and Android. The operating system of the terminal device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses the layered architecture Android system as an example to exemplify the software structure of the terminal device 100. It should be noted that although this application embodiment uses the Android system as an example for illustration, its basic principles are equally applicable to terminal devices with other operating systems.
[0062] Figure 3 This is a software structure block diagram of the terminal device 100 according to an embodiment of this application. The software structure adopts a layered architecture, which divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In this embodiment, the operating system (taking the Android system, which runs on the AP as an example) can be divided into six layers, from top to bottom: application layer (APP), application framework layer (FWK), Android runtime and system library, hardware abstraction layer (HAL), kernel layer, and hardware layer.
[0063] The application layer can include a series of application packages. For example... Figure 3As shown, the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS. The application layer can also include the system UI, which is used to display the interface of the terminal device.
[0064] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions. For example... Figure 3 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, camera service, etc., and this application embodiment does not impose any limitations on this.
[0065] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.
[0066] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.
[0067] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.
[0068] The phone manager is used to provide communication functions for terminal device 100. For example, it manages call status (including connection, hang-up, etc.).
[0069] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.
[0070] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of download completion or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating the device, and flashing indicator lights.
[0071] The camera service is the core process module of the camera framework. It mainly provides API interface functions to the application layer and calls the camera hardware abstraction layer through HIDL (hardware interface definition language).
[0072] The Android runtime consists of core libraries and a virtual machine. The Android runtime is responsible for scheduling and managing the Android system.
[0073] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.
[0074] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0075] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.
[0076] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.
[0077] The media library supports playback and recording of various common audio and video formats, as well as still image files. It also supports multiple audio and video encoding formats.
[0078] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0079] A 2D graphics engine is a graphics engine for 2D drawing.
[0080] The Hardware Abstraction Layer (HAL) is an interface layer located between the operating system kernel and the hardware circuitry, its purpose being to abstract the hardware. It hides the platform-specific hardware interface details, providing the operating system with a virtual hardware platform. For example, the HAL encapsulates Linux kernel drivers, providing an interface to the upper layers and shielding them from the implementation details of the lower-level hardware. Figure 3 As shown, the hardware abstraction layer can include Wi-Fi HAL, audio HAL, camera HAL, etc. Among them, the camera HAL is the core software framework of the camera.
[0081] The kernel layer is the layer between hardware and software. It is the core of an operating system, the first layer of software extension based on the hardware, providing the most basic functions of the operating system. It is the foundation for the operating system's operation, responsible for managing system processes, memory, device drivers, files, and network systems, and determining the system's performance and stability. The kernel layer can include display drivers, audio drivers, camera drivers, sensor drivers, etc. Among them, the camera driver is the driver layer for camera devices, mainly responsible for interaction with the hardware.
[0082] The hardware layer includes displays, cameras, sensors, etc.
[0083] II. Network Equipment
[0084] A network device can be an entity on the network side used to send signals, or receive signals, or both send and receive signals, for example... Figure 1 The network device 200 in this application can be an evolved Node B (eNB or eNodeB) in LTE; or a base station, broadband network gateway (BNG), aggregation switch, or non-3rd generation partnership project (3GPP) access device in a 5G network, etc. This application embodiment does not specifically limit this. For example, the base station in this application embodiment can include various forms of base stations, such as: macro base stations, micro base stations (also called small stations), relay stations, access points, next-generation base stations (gNodeB, gNB), transmitting and receiving points (TRP), transmitting points (TP), mobile switching centers, and devices that perform base station functions in device-to-device (D2D), vehicle-to-everything (V2X), machine-to-machine (M2M) communication, and Internet of Things (IoT) communication, etc. This application embodiment does not specifically limit this. A network device can be called a wireless access network device, that is, an access device that enables terminal devices to access the communication system wirelessly. In the embodiments of this application, the means for implementing the network device function can be the network device itself, or a means that supports the network device in implementing the function, such as a chip system or a combination of devices or components that can implement the network device function, and the means can be installed in the network device. The embodiments of this application do not limit the specific technology or specific device form used in the network device.
[0085] It should be noted that, Figure 1 This is merely a schematic diagram of a communication system architecture. The system may also include other devices, such as wireless repeaters, wireless backhaul devices, and core network equipment. Figure 1 Not shown in the figure. The embodiments of this application do not limit the number of various devices included in the communication system.
[0086] To facilitate understanding of the solutions provided in the embodiments of this application, the antenna switching technology involved in the embodiments of this application is described below:
[0087] Taking a mobile phone as an example, the radiation efficiency of a mobile phone antenna is greatly affected by different grip postures and scenarios. Therefore, multiple antennas are often configured for a mobile phone on the same frequency band. Figure 4 As shown, a mobile phone can be configured with four antennas: ANT0, ANT1, ANT2, and ANT3. ANT1 and ANT3 are located at the top of the phone (the upper antennas), while ANT0 and ANT2 are located at the bottom (the lower antennas). Network devices can send reference signals to the terminal device, and the terminal device can receive these signals and detect the reference signal receiving power (RSRP) of each antenna. For example, the terminal device can detect RSRP0 for ANT3 and RSRP1 for ANT2. When the current transmitting antenna gain decreases due to the user's grip or environmental limitations, antenna switching (i.e., transmit antenna selection (TAS) technology) can be used to reduce the impact of signal attenuation on communication, for example, switching ANT2 to ANT3.
[0088] The uplink transmitting antenna is typically selected based on a comprehensive consideration of factors such as the RSRP of each antenna, the maximum transmit power configured for each antenna, the scenario requiring reduced specific absorption rate (SAR), and the distance between the mobile phone and the base station. Furthermore, to reduce the frequency of antenna switching, a certain switching threshold is set for antenna switching; switching will only occur when the difference between the RSRP of the antenna to be switched and the RSRP of the current transmitting antenna exceeds this threshold.
[0089] However, the receiving performance of an antenna does not always reflect its transmitting performance. For example, in scenarios where the SAR is significantly reduced, the total radiated power (TRP) of the upper antenna will be weaker than that of the lower antenna, resulting in reduced transmitting performance. Conversely, in scenarios where the lower antenna is held in hand, its receiving performance will be weaker than that of the upper antenna, creating an imbalance in the transmitting and receiving performance of the two antennas. This can easily lead to the transmitting antenna switching to the lower antenna. Since the lower antenna is easily blocked and has weaker transmitting performance, a preset power value (called the unbalanced TAS value) can be configured to reduce the probability of the transmitting antenna switching to the lower antenna. When switching, the transmitting antenna needs to consider both the RSRP value and the unbalanced TAS value. That is, when the difference between the RSRP of the antenna to be switched and the RSRP of the current transmitting antenna plus the unbalanced TAS value is greater than the switching threshold, the transmitting antenna can switch to the antenna with the better RSRP.
[0090] However, in actual testing, while the current method of switching antennas can switch the current transmitting antenna to an antenna with a better RSRP, it cannot guarantee that the TRP of the antenna after the switch will be good. Especially when there is a large difference between the transmit power and receive efficiency of each antenna, the configured unbalanced TAS value cannot accurately reflect the difference in transmit performance of different antennas. It is very likely that the antenna will be switched to an antenna with a better RSRP but a poorer TRP, which will lead to a significant decrease in the uplink transmission rate and seriously affect the stability of the uplink transmission rate.
[0091] Therefore, in order to reduce the impact on uplink transmission rate and improve the stability of uplink data transmission, this application provides an antenna switching method and a terminal device. The antenna switching method and terminal device provided in the embodiments of this application will be further described in detail below.
[0092] Figure 5 This is a flowchart illustrating an antenna switching method provided in an embodiment of this application. Figure 5 As shown, the antenna switching method includes the following steps S501 and S502. Optionally, the antenna switching method further includes the following steps S503 and S504. Figure 5 The method shown can be executed by a terminal device. Alternatively, Figure 5 The method shown can be executed by a chip in a terminal device, but this application does not limit the implementation. Figure 5 The method will be explained using a terminal device as the executing entity.
[0093] S501, when the first antenna is switched to the second antenna, the terminal device obtains the first uplink average throughput, the first uplink bit error rate, the second uplink average throughput, and the second uplink bit error rate.
[0094] S502. If the first difference between the second uplink average throughput and the first uplink average throughput is less than the first threshold, and the second difference between the second uplink bit error rate and the first uplink bit error rate is greater than the second threshold, then the terminal device will switch the second antenna back to the first antenna.
[0095] In this embodiment, the first average uplink throughput is the average uplink throughput within a first preset time period, and the first uplink bit error rate is the uplink bit error rate within the first preset time period. The end time of the first preset time period is the moment when the first antenna switches to the second antenna. The second average uplink throughput is the average uplink throughput within a second preset time period, and the second uplink bit error rate is the uplink bit error rate within the second preset time period. The start time of the second preset time period is the moment when the first antenna switches to the second antenna. In other words, the first preset time period is the time period before the first antenna switches to the second antenna, and the second preset time period is the time period after the first antenna switches to the second antenna. The first preset time period and the second time period can be the same or different; for example, the first preset time period and the second time period can be 100ms.
[0096] This can be understood as follows: when a terminal device switches its first antenna to the second antenna, if the first antenna is switched to the second antenna which has a better RSRP but a worse TRP, a significant drop in uplink transmission rate will occur. Therefore, to address this phenomenon, the antenna switching method can be optimized based on the change in average uplink throughput before and after the antenna switch. Specifically, if the average uplink throughput decreases after the antenna switch, an antenna re-switching operation (switching the second antenna back to the first antenna) can be considered to ensure the stability of the uplink transmission rate. However, considering that throughput is closely related to network device scheduling, a decrease in throughput may be due to reduced network device scheduling, not necessarily a negative benefit caused by the antenna switch. Therefore, to improve the accuracy of the judgment, the change in uplink bit error rate before and after the antenna switch should also be statistically analyzed when the average uplink throughput decreases. Only when the average uplink throughput decreases and the uplink bit error rate increases after the antenna switch should an antenna re-switching operation be performed.
[0097] Specifically, when the first antenna is switched to the second antenna, the terminal device can monitor the average uplink throughput (first uplink average throughput, Tput0) and uplink bit error rate (first uplink bit error rate, Bler0) during a first preset time period before the switch, and the average uplink throughput (second uplink average throughput, Tput1) and uplink bit error rate (second uplink bit error rate, Bler1) during a second preset time period after the switch. The first and second preset time periods can be the same, for example, both can be 100ms. Of course, the first and second preset time periods can also be different, which is not limited here. Then, the terminal device determines whether to switch the antenna back based on the changes in the uplink average throughput and the changes in the uplink bit error rate. Specifically, if the first difference between the second uplink average throughput and the first uplink average throughput is less than the first threshold (Tput1-Tput0 can be considered as Tput1-Tput0 < throughput threshold), and the second difference between the second uplink bit error rate and the first uplink bit error rate is greater than the second threshold (Bler1-Bler0 can be considered as Bler1-Bler0 > bit error threshold), then the terminal device needs to perform an antenna back-switching operation, that is, switch the second antenna back to the first antenna.
[0098] In one possible implementation, before the terminal device acquires the first uplink average throughput, the first uplink bit error rate, the second uplink average throughput, and the second uplink bit error rate when the first antenna switches to the second antenna, the method further includes: the terminal device acquiring the RSRP of multiple antennas; the multiple antennas include a first antenna and a second antenna, the first antenna being a transmitting antenna; if the sum of a fourth difference and a preset power value is greater than a fourth threshold value, the terminal device switches the first antenna to the second antenna; the fourth difference is the difference between the first RSRP of the first antenna and the second RSRP of the second antenna. The preset power value can be a default value determined experimentally or a value preset by the developers, and is not limited here. Based on this method, the probability of the transmitting antenna switching to the next antenna can be reduced, ensuring the accuracy and effectiveness of antenna switching.
[0099] This can be understood as follows: before switching from the first antenna to the second antenna, the terminal device can determine whether the current transmitting antenna needs to be switched at preset time intervals (e.g., 200ms, or other values, which are not limited here). Assuming the current transmitting antenna is the first antenna, the terminal device needs to first obtain the first RSRP of the first antenna and the RSRPs of the other antennas. Specifically, the network device can send a reference signal to the terminal device. After receiving the reference signal, the terminal device can detect the RSRP of each antenna, such as the first RSRP of the first antenna and the second RSRP of the second antenna. If the difference between the first RSRP and the second RSRP plus a preset power value (i.e., the unbalanced TAS value) is greater than the fourth threshold value (i.e., the switching threshold value), then the second antenna can be considered as the antenna to be switched, and the operation of switching the first antenna to the second antenna needs to be performed. If the difference between the first RSRP and the second RSRP plus the preset power value (i.e., the unbalanced TAS value) is less than or equal to the fourth threshold value (i.e., the switching threshold value), then there is no need to switch the first antenna.
[0100] In one possible implementation, the second antenna is an antenna that is idle among a plurality of antennas.
[0101] This can be understood as follows: a terminal device is equipped with multiple antennas. Since some antennas reuse data for cellular or Wi-Fi transmission, it is necessary to determine whether a handover is needed among the idle antennas. This approach avoids switching to active antennas, thus improving the effectiveness and reliability of antenna handover.
[0102] S503. If the first difference is greater than or equal to the first threshold value, and / or the second difference is less than or equal to the second threshold value, then the terminal device obtains the average power of the first resource block (RB) and the average power of the second RB.
[0103] S504. If the third difference between the average power of the second RB and the average power of the first RB is greater than the third threshold, the terminal device will switch the second antenna back to the first antenna.
[0104] In this embodiment of the application, the first RB average power is the RB average power within a first preset time period, and the second RB average power is the RB average power within a second preset time period.
[0105] This can be understood as follows: the terminal device judges the situation by combining the changes in the uplink average throughput and the uplink bit error rate. When the first difference is greater than or equal to the first threshold value, and / or the second difference is less than or equal to the second threshold value, if the terminal device continues to maintain the state of switching the first antenna to the second antenna without performing the antenna switching operation, the transmit power allocated on a single RB (i.e., the average power of the RB) may increase significantly after the antenna switching. Therefore, it is necessary to further consider the changes in the average power of the RB to ensure that it will not affect the uplink transmission power and high-throughput service scenarios, and to ensure that the antenna switching will not have a significant impact on the overall power consumption.
[0106] Specifically, if the first difference is greater than or equal to the first threshold, and / or the second difference is less than or equal to the second threshold, the terminal device can monitor the average power of the RBs (first RB average power, P0) during the first preset time period before the handover and the average power of the RBs (second RB average power, P1) during the second preset time period after the handover. Then, the terminal device determines whether the antenna should be switched back based on the change in the average RB power. That is, if the third difference between the second RB average power and the first RB average power is greater than the third threshold (which can be considered as P1-P0>power control threshold), the terminal device also needs to perform an antenna switchback operation, that is, switch the second antenna back to the first antenna.
[0107] Optionally, if the third difference is less than or equal to the third threshold value, the terminal device continues to maintain the state of switching the first antenna to the second antenna.
[0108] In general, such as Figure 6 As shown, the terminal device determines whether the current transmitting antenna has switched at preset time intervals. Assuming the current transmitting antenna is the first antenna, the terminal device needs to first obtain the first RSRP of the first antenna and the RSRPs of the other antennas: Specifically, the network device can send a reference signal to the terminal device. After receiving the reference signal, the terminal device can detect the RSRP on each antenna, such as the first RSRP of the first antenna and the second RSRP of the second antenna.
[0109] First, it's necessary to determine whether the difference between the first RSRP of the first antenna and the RSRP of the other antennas, plus the unbalanced TAS value (i.e., the preset power value), is greater than the switching threshold (i.e., the fourth threshold). If the difference between the first RSRP of the first antenna and the second RSRP of the second antenna, plus the unbalanced TAS value, is greater than the switching threshold, then the second antenna can be considered the antenna to be switched, and the terminal device will perform the operation of switching the first antenna to the second antenna (at this time, the second antenna is the transmitting antenna). If the difference between the first RSRP of the first antenna and the second RSRP of the second antenna, plus the unbalanced TAS value, is less than or equal to the switching threshold, then the terminal device does not need to switch the transmitting antenna, and the transmitting antenna remains unchanged (at this time, the first antenna is the transmitting antenna).
[0110] In the event of a switch from the first antenna to the second antenna, to ensure the stability of the uplink transmission rate, the terminal device needs to monitor the average uplink throughput (first average uplink throughput, Tput0) and uplink bit error rate (first uplink bit error rate, Bler0) during a first preset time period before the switch, and the average uplink throughput (second average uplink throughput, Tput1) and uplink bit error rate (second uplink bit error rate, Bler1) during a second preset time period after the switch. Then, it determines whether the first difference between Tput1 and Tput0 is less than a first threshold (i.e., whether Tput1-Tput0 is less than the throughput threshold) and whether the second difference between Bler1 and Bler0 is greater than a second threshold (i.e., whether Bler1-Bler0 is greater than the bit error rate threshold).
[0111] If the first difference between Tput1 and Tput0 is less than the first threshold (Tput-Tput0 < throughput threshold), and the second difference between Bler1 and Bler0 is greater than the second threshold (Bler1-Bler0 > bit error threshold), then the terminal device needs to perform an antenna reswitching operation, switching the second antenna back to the first antenna (at this time, the first antenna is the transmit antenna).
[0112] If the first difference between Tput1 and Tput0 is greater than or equal to the first threshold, and / or the second difference between Bler1 and Bler0 is less than or equal to the second threshold, the terminal device further monitors the average RB power (first RB average power, P0) within the first preset time period before handover and the average RB power (second RB average power, P1) within the second preset time period after handover. Then, it determines whether the third difference between P1 and P0 is greater than the third threshold (i.e., whether P1-P0 is greater than the power control threshold).
[0113] If the third difference between P1 and P0 is greater than the third threshold (P1-P0>power control threshold), the terminal device also needs to perform an antenna reswitching operation, switching the second antenna back to the first antenna (at this time, the first antenna is the transmitting antenna). If the third difference between P1 and P0 is less than or equal to the third threshold, the terminal device continues to maintain the state of switching the first antenna to the second antenna, that is, the transmitting antenna has been switched, and the second antenna is now the transmitting antenna.
[0114] In another possible implementation, after the terminal device switches the second antenna back to the first antenna, the method further includes: after a third preset time period, the terminal device acquires the third RSRP of the first antenna and the fourth RSRP of the second antenna; if the sum of the fifth difference and the preset power value is greater than the fourth threshold value, the terminal device switches the first antenna back to the second antenna; the fifth difference is the difference between the third RSRP and the fourth RSRP.
[0115] This can be understood as follows: after the terminal device performs an antenna switching operation, it can still determine again whether to switch from the first antenna to the second antenna after a third preset time period. Specifically, after the third preset time period, the terminal device obtains the third RSRP of the first antenna and the fourth RSRP of the second antenna. If the difference between the third RSRP and the fourth RSRP, plus a preset power value, is still greater than the fourth threshold value, the terminal device will switch the first antenna to the second antenna again. Based on this method, the accuracy of antenna switching can be further improved, and misjudgments can be avoided.
[0116] In one possible implementation, the method further includes: if, within a fourth preset time period, the number of times the second antenna is switched back to the first antenna reaches a preset number, then the terminal device stops switching the first antenna to the second antenna within a fifth preset time period.
[0117] This can be understood as follows: if, within the fourth preset time period (e.g., 800ms, or other values, without limitation), the terminal device switches back to the first antenna from the second antenna a preset number of times (e.g., 5 times), it indicates that the second antenna is currently unsuitable for use and would very likely provide negative benefits after antenna switching, affecting uplink data transmission. In this case, the terminal device can stop switching from the first antenna to the second antenna within the fifth preset time period (e.g., 1s, or other values, without limitation). Based on this method, the power consumption of antenna switching can be saved, avoiding any impact on uplink data transmission.
[0118] In one possible implementation, the method further includes: if the first antenna is not switched to the second antenna within a sixth preset time period, the terminal device obtains the fifth RSRP of the first antenna and the sixth RSRP of the third antenna; the third antenna is one of the multiple antennas other than the first antenna and the second antenna; if the sum of the sixth difference and the preset power value is greater than the fourth threshold value, the terminal device switches the first antenna to the third antenna; the sixth difference is the difference between the fifth RSRP and the sixth RSRP.
[0119] This can be understood as follows: if the terminal device is still unable to switch the first antenna to the second antenna within the sixth preset time period, it indicates that the second antenna is currently faulty and unusable. At this point, the terminal device can determine whether there are other antennas that can be switched to. Specifically, the terminal device can obtain the fifth RSRP of the first antenna and the sixth RSRP of the third antenna. Here, the third antenna refers to any antenna other than the first and second antennas. If the difference between the fifth RSRP and the sixth RSRP, plus a preset power value, is greater than the fourth threshold value, it indicates that the terminal device can switch the first antenna to the third antenna. Based on this method, it is beneficial to improve the flexibility of antenna switching, further reduce the impact on the uplink transmission rate, and improve the stability of uplink data transmission.
[0120] It can be seen that, based on Figure 5 The described method allows the terminal device to determine whether to perform a back-switch operation (i.e., switch back from the second antenna to the first antenna) when the transmit antenna is switched (i.e., the first antenna switches to the second antenna) by combining the changes in the average uplink throughput and the uplink bit error rate before and after the antenna switch. This ensures that the antenna switch provides positive benefits, reduces the impact on the uplink transmission rate, and improves the stability of uplink data transmission. Furthermore, it can determine whether to perform a back-switch operation by combining the changes in the average RB power before and after the antenna switch, ensuring that the antenna switch does not have a significant impact on the overall power consumption.
[0121] Please see Figure 7 , Figure 7 A schematic diagram of the structure of an antenna switching device 700 according to an embodiment of this application is shown. Figure 7 The antenna switching device shown can be a terminal device, a device within a terminal device, or a device that can be used in conjunction with a terminal device. Figure 7 The antenna switching device shown may include an acquisition unit 701 and a processing unit 702. Wherein:
[0122] The acquisition unit 701 is configured to acquire, when the first antenna is switched to the second antenna, a first uplink average throughput, a first uplink bit error rate, a second uplink average throughput, and a second uplink bit error rate; the first uplink average throughput is the uplink average throughput within a first preset time period, the first uplink bit error rate is the uplink bit error rate within the first preset time period, and the end time of the first preset time period is the time when the first antenna is switched to the second antenna; the second uplink average throughput is the uplink average throughput within a second preset time period, the second uplink bit error rate is the uplink bit error rate within the second preset time period, and the start time of the second preset time period is the time when the first antenna is switched to the second antenna;
[0123] The processing unit 702 is configured to switch the second antenna back to the first antenna if the first difference between the second uplink average throughput and the first uplink average throughput is less than a first threshold and the second difference between the second uplink bit error rate and the first uplink bit error rate is greater than a second threshold.
[0124] In one possible implementation, the processing unit 702 is further configured to: if the first difference is greater than or equal to the first threshold value, and / or the second difference is less than or equal to the second threshold value, then obtain the first RB average power and the second RB average power; the first RB average power is the RB average power within a first preset time period, and the second RB average power is the RB average power within a second preset time period; if the third difference between the second RB average power and the first RB average power is greater than the third threshold value, then switch the second antenna back to the first antenna.
[0125] In one possible implementation, before acquiring the first uplink average throughput, the first uplink bit error rate, the second uplink average throughput, and the second uplink bit error rate when the first antenna is switched to the second antenna, the acquisition unit 701 is further configured to: acquire the RSRP of multiple antennas; the multiple antennas include the first antenna and the second antenna, the first antenna being a transmitting antenna; the processing unit 702 is further configured to: if the sum of the fourth difference and the preset power value is greater than the fourth threshold value, then switch the first antenna to the second antenna; the fourth difference is the difference between the first RSRP of the first antenna and the second RSRP of the second antenna.
[0126] In one possible implementation, the second antenna is an antenna that is idle among a plurality of antennas.
[0127] In one possible implementation, after the processing unit 702 switches the second antenna back to the first antenna, the acquisition unit 701 is further configured to: acquire the third RSRP of the first antenna and the fourth RSRP of the second antenna after a third preset time period; the processing unit 702 is further configured to: switch the first antenna to the second antenna if the sum of the fifth difference and the preset power value is greater than the fourth threshold value; the fifth difference is the difference between the third RSRP and the fourth RSRP.
[0128] In one possible implementation, the processing unit 702 is further configured to: if, within a fourth preset time period, the number of times the second antenna is switched back to the first antenna reaches a preset number, then, within a fifth preset time period, stop switching the first antenna to the second antenna.
[0129] In one possible implementation, the acquisition unit 701 is further configured to: if the first antenna is not switched to the second antenna within a sixth preset time period, acquire the fifth RSRP of the first antenna and the sixth RSRP of the third antenna; the third antenna is one of the multiple antennas other than the first antenna and the second antenna; the processing unit 702 is further configured to: if the sum of the sixth difference and the preset power value is greater than the fourth threshold value, switch the first antenna to the third antenna; the sixth difference is the difference between the fifth RSRP and the sixth RSRP.
[0130] For cases where the antenna switching device can be a chip or a chip system, please refer to [link / reference]. Figure 8 The diagram shows the structure of the chip. Figure 8 The chip 800 shown includes a processor 801 and an interface 802. Optionally, it may also include a memory 803. The number of processors 801 can be one or more, and the number of interfaces 802 can be multiple.
[0131] Regarding the use of the chip to implement the terminal device in the embodiments of this application:
[0132] The interface 802 is used to receive or output signals;
[0133] The processor 801 is used to perform data processing operations on the terminal device.
[0134] It is understood that some optional features in the embodiments of this application can be implemented independently in certain scenarios without relying on other features, such as the current solution on which they are based, to solve the corresponding technical problems and achieve the corresponding effects. Alternatively, they can be combined with other features as needed in certain scenarios. Accordingly, the antenna switching device given in the embodiments of this application can also implement these features or functions, which will not be elaborated here.
[0135] It should be understood that the processor in the embodiments of this application can be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method embodiments can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor described above can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0136] It is understood that the memory in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM). It should be noted that the memory used in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0137] This application also provides an antenna switching system, which includes a terminal device; wherein the terminal device is used to execute the method executed by the terminal device in any of the above method embodiments.
[0138] This application also provides a computer storage medium storing a computer program / instructions thereon, which, when executed by a processor, implements the methods and steps as described in any of the above method embodiments.
[0139] This application also provides a computer program product, including a computer program / instructions that, when executed by a processor, implement the methods and steps as described in any of the above method embodiments.
[0140] As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to include the plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the listed items. As used in the above embodiments, depending on the context, the term “when” can be interpreted as meaning “if…” or “after…” or “in response to determining…” or “in response to detecting…”. Similarly, depending on the context, the phrase “when…” or “if (the stated condition or event) is interpreted as meaning “if…” or “in response to determining…” or “when (the stated condition or event) is detected” or “in response to detecting (the stated condition or event)”.
[0141] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., high-density digital video disc (DVD)), or a semiconductor medium (e.g., solid-state disk (SSD)). Those skilled in the art will understand that implementing all or part of the processes in the above embodiments can be accomplished by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
[0142] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. An antenna switching method, characterized in that, The method includes: When the first antenna is switched to the second antenna, a first average uplink throughput, a first uplink bit error rate, a second average uplink throughput, and a second uplink bit error rate are obtained; the first average uplink throughput is the average uplink throughput within a first preset time period, the first uplink bit error rate is the uplink bit error rate within the first preset time period, and the end time of the first preset time period is the time when the first antenna is switched to the second antenna; the second average uplink throughput is the average uplink throughput within a second preset time period, the second uplink bit error rate is the uplink bit error rate within the second preset time period, and the start time of the second preset time period is the time when the first antenna is switched to the second antenna; If the first difference between the second uplink average throughput and the first uplink average throughput is less than the first threshold, and the second difference between the second uplink bit error rate and the first uplink bit error rate is greater than the second threshold, the second antenna will be switched back to the first antenna. If the first difference is greater than or equal to the first threshold value, and / or the second difference is less than or equal to the second threshold value, the average power of the first resource block (RB) and the average power of the second RB are obtained; the first average power of the RB is the average power of the RB within the first preset time period, and the second average power of the RB is the average power of the RB within the second preset time period. If the third difference between the average power of the second RB and the average power of the first RB is greater than the third threshold, then the second antenna will be switched back to the first antenna.
2. The method according to claim 1, characterized in that, Before obtaining the first uplink average throughput, the first uplink bit error rate, the second uplink average throughput, and the second uplink bit error rate when the first antenna is switched to the second antenna, the method further includes: Obtain the reference signal received power (RSRP) of multiple antennas; the multiple antennas include a first antenna and a second antenna, wherein the first antenna is a transmitting antenna; If the sum of the fourth difference and the preset power value is greater than the fourth threshold value, the first antenna is switched to the second antenna; the fourth difference is the difference between the first RSRP of the first antenna and the second RSRP of the second antenna.
3. The method according to claim 1 or 2, characterized in that, The second antenna is the antenna that is in an idle state among multiple antennas.
4. The method according to claim 2, characterized in that, After switching the second antenna back to the first antenna, the method further includes: After a third preset time period, the third RSRP of the first antenna and the fourth RSRP of the second antenna are obtained; If the sum of the fifth difference and the preset power value is greater than the fourth threshold value, then the first antenna is switched to the second antenna; the fifth difference is the difference between the third RSRP and the fourth RSRP.
5. The method according to claim 1 or 2, characterized in that, The method further includes: If, within a fourth preset time period, the number of times the second antenna is switched back to the first antenna reaches a preset number, then within a fifth preset time period, switching the first antenna back to the second antenna will cease.
6. The method according to claim 2, characterized in that, The method further includes: If the first antenna is not switched to the second antenna within the sixth preset time period, the fifth RSRP of the first antenna and the sixth RSRP of the third antenna are obtained; the third antenna is one of the multiple antennas other than the first antenna and the second antenna. If the sum of the sixth difference and the preset power value is greater than the fourth threshold value, then the first antenna is switched to the third antenna; the sixth difference is the difference between the fifth RSRP and the sixth RSRP.
7. A terminal device, comprising one or more memories and one or more processors, characterized in that, The memory is used to store a computer program; the processor is used to invoke the computer program, causing the terminal device to execute the method according to any one of claims 1-6.
8. A chip system applied to a terminal device, characterized in that, The chip system includes at least one processor and an interface for receiving instructions and transmitting them to the at least one processor; the at least one processor executes the instructions to cause the terminal device to perform the method as described in any one of claims 1-6.
9. A computer storage medium storing computer programs / instructions thereon, characterized in that, When the computer program / instructions are executed by the processor, they implement the methods and steps as described in any one of claims 1-6.
10. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the methods and steps as described in any one of claims 1-6.
Citation Information
Patent Citations
Antenna switching method and device, storage medium and electronic equipment
CN115701003A