Antenna switching method and terminal equipment
By obtaining the uplink average throughput and bit error rate changes before and after antenna switching, and determining whether to turn back with the threshold value, the uplink transmission rate instability caused by antenna switching in the prior art is solved, and higher switching accuracy and data transmission stability are achieved.
Patent Information
- Application Number
- CN202410165950.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-04
- Publication Date
- 2025-08-12
- Estimated Expiration
- 2044-02-04
AI Technical Summary
In the prior art, when switching mobile phone antennas, it is impossible to guarantee that the total radiated power of the antenna after switching is good, resulting in unstable uplink transmission rate. Especially when there is a large gap between transmission power and reception efficiency, it may switch to an antenna with better RSRP but poor TRP, affecting the stability of the uplink transmission rate.
By obtaining the uplink average throughput and bit error rate changes before and after antenna switching, and using the preset threshold value to determine whether to perform a turnback operation, ensuring that the forward benefit is provided after antenna switching, reducing the impact on the uplink transmission rate, and obtaining the RB average power when necessary to avoid the impact of power consumption.
It improves the accuracy and effectiveness of antenna switching, reduces the impact on the uplink transmission rate, and ensures the stability of uplink data transmission and the rational utilization of power consumption.
Smart Images

Figure CN120474646A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communications, and in particular to an antenna switching method and terminal device. Background Art
[0002] Because the radiation efficiency of mobile phone antennas is significantly affected by different grips and scenarios, mobile phones are often equipped with multiple antennas for the same frequency band. Therefore, when the current transmitting antenna's gain decreases due to grip or environmental constraints, antenna switching (i.e., transmit antenna selection (TAS)) can be used to reduce the impact of signal attenuation on communications.
[0003] Currently, antenna switching can switch the current transmitting antenna to an antenna with better reference signal receiving power (RSRP). However, this does not guarantee a better total radiated power (TRP) after the switch. In particular, when there is a large gap between the transmit power and receiving efficiency of each antenna, it is very likely that the antenna will be switched to an antenna with better RSRP but worse TRP, resulting in a significant drop in the uplink transmission rate and seriously affecting the stability of the uplink transmission rate. Summary of the Invention
[0004] The embodiments of the present application provide an antenna switching method and a terminal device. Based on the method described in the present 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, the present application provides an antenna switching method, the method comprising: obtaining a first uplink average throughput, a first uplink bit error rate, a second uplink average throughput, and a second uplink bit error rate when a first antenna is switched to a second antenna; 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; if a first difference between the second uplink average throughput and the first uplink average throughput is less than a first threshold value, and a second difference between the second uplink bit error rate and the first uplink bit error rate is greater than a second threshold value, switching the second antenna back to the first antenna.
[0006] Based on the method described in the first aspect, when the transmitting antenna is switched (i.e., the first antenna is switched to the second antenna), the change in the uplink average throughput and the change in the uplink bit error rate before and after the antenna switching can be combined to determine whether the antenna performs a reversal operation (i.e., the second antenna is switched back to the first antenna) to ensure that the antenna can provide positive benefits after switching, 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, and / or the second difference is less than or equal to the second threshold, obtaining a first RB average power and a 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; and if a third difference between the second RB average power and the first RB average power is greater than a third threshold, switching the second antenna back to the first antenna. Based on this approach, it is possible to ensure that uplink transmission power and high-throughput service scenarios are not affected, and to ensure that antenna switching does not significantly affect overall power consumption.
[0008] In one possible implementation, 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: obtaining the reference signal received power (RSRP) of multiple antennas; the multiple antennas include a first antenna and a second antenna, the first antenna being the transmitting antenna; if the sum of a fourth difference and a preset power value is greater than a fourth threshold, switching 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. Based on this approach, the probability of the transmitting antenna switching to the lower antenna can be reduced, ensuring the accuracy and effectiveness of antenna switching.
[0009] In a possible implementation, the second antenna is an antenna in an idle state among the multiple antennas. Based on this approach, the effectiveness and reliability of antenna switching can be improved.
[0010] In one possible implementation, after switching the second antenna back to the first antenna, the method further includes: obtaining a third RSRP of the first antenna and a fourth RSRP of the second antenna after a third preset time period; if the sum of a fifth difference and the preset power value is greater than a fourth threshold, 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 approach, the accuracy of antenna switching can be further improved and misjudgment can be avoided.
[0011] In one possible implementation, the method further includes: if the second antenna is switched back to the first antenna a predetermined number of times within the fourth predetermined time period, then, within the fifth predetermined time period, stopping switching from the first antenna to the second antenna. This approach can save power consumption associated with antenna switching and avoid impacting 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, obtaining the fifth RSRP of the first antenna and the sixth RSRP of the third antenna; the third antenna being an antenna other than the first and second antennas among the multiple antennas; if the sum of the sixth difference and the preset power value is greater than the fourth threshold, switching the first antenna to the third antenna; the sixth difference being the difference between the fifth RSRP and the sixth RSRP. Based on this approach, the flexibility of antenna switching is improved, the impact on the uplink transmission rate is further reduced, and the stability of uplink data transmission is improved.
[0013] In a second aspect, the present application provides an antenna switching device, which may be a terminal device, a device in a terminal device, or a device capable of being used in conjunction with a terminal device; wherein the antenna switching device may also be a chip system, and the antenna switching device may execute the method executed by the terminal device in the first aspect. The functions of the antenna switching device may be implemented by hardware, or by hardware executing corresponding software implementations. The hardware or software includes one or more units corresponding to the above functions. The units may be software and / or hardware. The operations and beneficial effects performed by the antenna switching device can refer to the methods and beneficial effects described in the first aspect above, and any repetitions will not be repeated.
[0014] In a third aspect, the present application provides a terminal device comprising 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 configured to store a computer program, and the processors being configured to invoke the computer program, so that the terminal device executes the method described in the first aspect.
[0015] In a fourth aspect, the present application provides a chip system for use in a terminal device, the chip system comprising at least one processor and an interface, the interface being used to receive instructions and transmit them to the at least one processor; the at least one processor executes the instructions so that the terminal device executes the method described in the first aspect.
[0016] In a fifth aspect, the present application provides an antenna switching system, which includes a terminal device; wherein the terminal device is used to execute the method described in the first aspect.
[0017] In a sixth aspect, the present application provides an antenna switching device, which includes a function or unit for executing any one of the methods in the first aspect.
[0018] In a seventh aspect, the present application provides a computer storage medium having a computer program / instruction stored thereon, which, when executed by a processor, implements the method and steps described in the first aspect.
[0019] In an eighth aspect, the present application provides a computer program product, comprising a computer program / instruction, which, when executed by a processor, implements the method and steps described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 This is a schematic diagram of the architecture of a communication system provided by an embodiment of the present application;
[0021] Figure 2 This is a schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application;
[0022] Figure 3 This is a software structure diagram of a terminal device provided in an embodiment of the present application;
[0023] Figure 4 This is a schematic diagram of a mobile phone configured with multiple antennas provided in an embodiment of the present application;
[0024] Figure 5 This is a flow chart of an antenna switching method provided in an embodiment of the present application;
[0025] Figure 6 is a flowchart of another antenna switching method provided in an embodiment of the present application;
[0026] Figure 7 This is a schematic structural diagram of an antenna switching device provided in an embodiment of the present application;
[0027] Figure 8 This is a schematic diagram of the structure of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] The following is a clear and detailed description of the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship between related objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0029] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0030] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of the technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.
[0031] To better understand the embodiments of the present application, the following first introduces the system architecture involved in the embodiments of the present application:
[0032] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as: long term evolution (LTE) system, LTE frequency division duplex (FDD) system, LTE time division duplex (TDD), new radio (NR), the 3rd generation partner project (3GPP) service-based network architecture (SBA), and other fifth generation (5G) communication systems or sixth generation (6G) communication systems and other communication systems evolved after 5G.
[0033] See Figure 1 , Figure 1 This is a schematic diagram of the architecture of a communication system provided by an embodiment of the present application. The communication system may include a network device and at least one terminal device. Figure 1In the example, a terminal device (such as terminal device 100) and a network device (such as network device 200) are used. The terminal device can be a cellular phone, a smart phone, a laptop, a handheld communication device, a handheld computing device, a satellite radio device, a global positioning system, a personal digital assistant (PDA), and / or any other suitable device for communicating on a wireless communication system, and can be connected to the network device. The terminal device can communicate with the network device. Of course, Figure 1 The number of terminal devices and network devices in the example is just an example, and can be less or more. Figure 1 The terminal equipment and network equipment involved in the communication system are described in detail.
[0034] 1. Terminal Equipment
[0035] Terminal equipment includes equipment that provides voice and / or data connectivity to users, for example, a terminal equipment is a device with wireless transceiver capabilities, e.g. Figure 1The terminal device 100 in the embodiment. The terminal device can be called a terminal or an electronic device. The terminal device can be deployed on land, including indoors or outdoors, handheld, wearable or vehicle-mounted; it can also be deployed on the water surface (such as ships, etc.); it can also be deployed in the air (such as airplanes, balloons and satellites, etc.). The terminal device can be a mobile phone, a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) terminal, an augmented reality (AR) terminal, a wireless terminal in industrial control, a vehicle-mounted terminal, a wireless terminal in self-driving, a wireless terminal in remote medical care, 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, a wearable terminal, etc. The embodiments of the present application do not limit the application scenarios. Terminal equipment may sometimes also be referred to as 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. The terminal may also be fixed or mobile. It will be understood that all or part of the functions of the terminal in this application may also be implemented by software functions running on hardware, or by virtualization functions instantiated on a platform (such as a cloud platform). The terminal device in this application may be a terminal for 5G or a terminal for 6G, and this application does not limit this. In an embodiment of the present application, the device for implementing the function of the terminal device may be a terminal device, or a device that can support the terminal device to implement the function, such as a chip system or a combination device or component that can implement the function of the terminal device, and the device may be installed in the terminal device.
[0036] The following describes the hardware structure of the terminal device 100. Figure 2 , Figure 2 It is a schematic diagram of the hardware structure of the terminal device 100 provided in an embodiment of the present application.
[0037] The 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, 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.
[0038] It should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 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.
[0039] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0040] The controller may be the nerve center and command center of the terminal device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0041] Processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the instruction or data again, it can directly access it from the memory. This avoids repeated accesses, reduces processor 110 latency, and thus improves system efficiency. Processor 110 accesses the instructions or data stored in the memory, causing terminal device 100 to execute the antenna switching method performed by the terminal device in the following method embodiment.
[0042] In some embodiments, the processor 110 may include one or more interfaces. The 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.
[0043] The charging management module 140 is configured to receive charging input from a charger, which may 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 provide power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160. In some other embodiments, the power management module 141 can also be set in the processor 110.
[0045] The wireless communication function of the terminal device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0046] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0047] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the terminal device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0048] The modem processor includes a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a medium- or 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 passed to the application processor.
[0049] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as Wi-Fi networks), Bluetooth (BT), BLE broadcast, global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. applied on the terminal device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, 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.
[0050] In some embodiments, antenna 1 of terminal device 100 is coupled to mobile communication module 150 , and antenna 2 is coupled to wireless communication module 160 , so that terminal device 100 can communicate with the network and other devices through wireless communication technology.
[0051] The terminal device 100 implements display functions through a GPU, display screen 194, and an application processor. The GPU is a microprocessor for image processing that connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or 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 1 or N display screens 194, where N is a positive integer greater than 1.
[0053] The terminal device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display 194, and an application processor. The ISP is used to process data fed back by the camera 193. The camera 193 is used to capture still images or videos. The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. The video codec is used to compress or decompress digital video. The terminal device 100 may support one or more video codecs.
[0054] NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn.
[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 implement a data storage function.
[0056] The internal memory 121 can be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the terminal device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function), etc. The data storage area can store data (such as audio data) created during the use of the terminal device 100, etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as a flash memory device.
[0057] The terminal device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0058] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.
[0059] Speaker 170A, also known as a "speaker," is used to convert audio electrical signals into sound signals. Receiver 170B, also known as a "handset," is used to convert audio electrical signals into sound signals. Microphone 170C, also known as a "microphone" or "microphone," is used to convert sound signals into electrical signals. Headphone jack 170D is used to connect wired headphones. Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals.
[0060] In some embodiments, the pressure sensor 180A can be set on the display screen 194. The gyroscope sensor 180B can be used to determine the motion posture of the terminal device 100. The air pressure sensor 180C is used to measure air pressure. The magnetic sensor 180D includes a Hall sensor. The acceleration sensor 180E can detect the magnitude of the acceleration of the terminal device 100 in various directions (generally three axes). The distance sensor 180F is used to measure distance. The proximity light sensor 180G can include, for example, a light emitting diode (LED) and a light detector. The ambient light sensor 180L is used to sense the brightness of ambient light. The fingerprint sensor 180H is used to collect fingerprints. The temperature sensor 180J is used to detect temperature. The touch sensor 180K, also known as a "touch panel", can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also known as a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The bone conduction sensor 180M can obtain vibration signals. Buttons 190 include a power button and volume buttons. Motor 191 can generate vibration prompts. Indicator 192 can be an indicator light that can be used to indicate charging status, power level changes, messages, missed calls, notifications, etc. SIM card interface 195 is used to connect a SIM card.
[0061] In addition, an operating system runs on top of the above components. For example, operating systems such as iOS and Android. The operating system of the terminal device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a microservice architecture, or a cloud architecture. The embodiment of the present application uses the Android system with a layered architecture as an example to illustrate the software structure of the terminal device 100. It should be noted that although the embodiment of the present application uses the Android system as an example, its basic principles are also applicable to terminal devices with other operating systems.
[0062] Figure 3 : This is a block diagram of the software structure of the terminal device 100 in an embodiment of the present 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 an embodiment of the present application, the operating system (taking the Android system, the Android system running on the AP as an example) can be divided into six layers, from top to bottom, namely the application layer (application, APP), the application framework layer (framework, FWK), the Android runtime (Android runtime) and system library, the hardware abstraction layer (hardware abstraction layer, HAL), the kernel layer and the hardware layer.
[0063] The application layer can include a series of application packages. Figure 3As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc. The application layer may also include system UI (system UI), which is used to display the interface of the terminal device.
[0064] The application framework layer provides application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Figure 3 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, a camera service, etc., and the embodiments of the present application do not impose any restrictions on this.
[0065] 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.
[0066] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0067] 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.
[0068] The phone manager is used to provide communication functions of the terminal device 100, such as management of call status (including answering, hanging up, etc.).
[0069] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0070] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically, without requiring user interaction. For example, the Notification Manager can be used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include displaying text messages in the status bar, emitting alert sounds, vibrating the device, or 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 downward through HIDL (hardware interface definition language).
[0072] The Android runtime includes the core library and the virtual machine. The Android runtime is responsible for scheduling and management of the Android system.
[0073] 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.
[0074] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0075] The system library can include multiple functional modules, such as a surface manager, media libraries, a 3D graphics processing library (such as OpenGL ES), and a 2D graphics engine (such as SGL).
[0076] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0077] 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 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 drawing engine for 2D drawings.
[0080] The hardware abstraction layer is an interface layer between the operating system kernel and the hardware circuit. Its purpose is to abstract the hardware. It hides the hardware interface details of a specific platform and can provide a virtual hardware platform for the operating system. The hardware abstraction layer is an encapsulation of the Linux kernel driver, providing an interface to the upper layer and shielding the implementation details of the low-level hardware. Figure 3 As shown, the hardware abstraction layer may 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, the core of an operating system. It is the first layer of software extension based on the hardware, providing the most basic operating system functions and the foundation of the operating system. It manages the system's processes, memory, device drivers, files, and network systems, and determines system performance and stability. The kernel layer can include display drivers, audio drivers, camera drivers, sensor drivers, and more. The camera driver is the driver layer for camera devices and is primarily responsible for interacting with the hardware.
[0082] The hardware layer includes displays, cameras, sensors, etc.
[0083] 2. Network Equipment
[0084] A network device may be an entity on the network side that is used to send signals, or receive signals, or both send and receive signals, for example Figure 1 The network device 200 in the embodiment of the present application. The network device can be an evolved Node B (eNB or eNodeB) in LTE; or a base station in a 5G network, a broadband network gateway (BNG), an aggregation switch or a non-third generation partnership project (3GPP) access device, etc., and the embodiments of the present application do not specifically limit this. Exemplarily, the base station in the embodiment of the present application may include various forms of base stations, such as: macro base stations, micro base stations (also known as small stations), relay stations, access points, next generation base stations (gNodeB, gNB), transmission access points (transmitting and receiving point, TRP), transmitting points (transmitting point, 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 (Internet of Things) communication, etc., and the embodiments of the present application do not specifically limit this. The network device can be called a wireless access network device, that is, an access device that enables a terminal device to access the communication system wirelessly. In the embodiments of the present application, the device used to implement the network device function can be the network device itself, or it can be a device that can support the network device to implement the function, such as a chip system or a combination device or component that can implement the network device function, which can be installed in the network device. The embodiments of the present application do not limit the specific technology and specific device form adopted by the network device.
[0085] It should be noted that Figure 1 This is just a schematic diagram of the architecture of a communication system. The communication system may also include other devices, such as wireless relay equipment, wireless backhaul equipment, core network equipment, etc. Figure 1 The embodiments of the present application do not limit the number of various devices included in the communication system.
[0086] To facilitate understanding of the solutions provided by the embodiments of the present application, the antenna switching technology involved in the embodiments of the present application is introduced below:
[0087] Taking a mobile phone as an example, the radiation efficiency of the mobile phone antenna is greatly affected by different grip postures and scenarios, so multiple antennas are often configured for the mobile phone in the same frequency band. Figure 4 As shown, the mobile phone can be configured with four antennas, namely ANT0, ANT1, ANT2 and ANT3; among them, ANT1 and ANT3 are configured at the upper end of the mobile phone (can be called upper antennas), and ANT0 and ANT2 are configured at the lower end of the mobile phone (can be called lower antennas); the network device can send a reference signal to the terminal device, and accordingly, the terminal device can receive the reference signal from the network device and can also detect the reference signal receiving power (RSRP) of each antenna. For example, the terminal device can detect RSRP0 of ANT3 and RSRP1 of ANT2. When the current transmitting antenna is affected by the grip posture or environmental restrictions, resulting in a decrease in antenna gain, 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 transmit antenna is typically selected based on a combination of factors, including the RSRP of each antenna, the maximum transmit power configured for each antenna, the specific absorption rate (SAR) reduction scenario, and the distance between the phone and the base station. To reduce the frequency of antenna switching, a threshold is set for antenna switching. A switch occurs only when the RSRP difference between the antenna to be switched and the RSRP of the current transmitting antenna exceeds this threshold.
[0089] However, an antenna's receiving performance doesn't always reflect its transmitting performance. For example, when the upper antenna is in a scenario that prioritizes SAR reduction, its total radiated power (TRP) will be weaker than that of the lower antenna, reducing its transmitting performance. Conversely, when the lower antenna is held in a handheld position, its receiving performance will be weaker than that of the upper antenna, resulting in an imbalance in the transmitting and receiving performance between the upper and lower antennas. This can easily cause the transmitting antenna to switch to the lower antenna. Because the lower antenna is easily obscured and has weaker transmitting performance, a preset power value (called the unbalanced TAS value) can be configured to reduce the chance of the transmitting antenna switching to the lower antenna. When switching transmitting antennas, the RSRP value and the unbalanced TAS value are considered together. Specifically, 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 exceeds the switching threshold, the transmitting antenna can switch to the antenna with a better RSRP.
[0090] However, in actual tests, antenna switching can switch the current transmitting antenna to an antenna with better RSRP, but it cannot guarantee a better TRP after the switch. In particular, when there is a large gap between the transmit power and receiving efficiency of each antenna, the configured unbalanced TAS value cannot accurately reflect the differences in the transmit performance of different antennas. It is very likely that the antenna will switch to an antenna with better RSRP but worse TRP, resulting in a significant drop in the uplink transmission rate, seriously affecting the stability of the uplink transmission rate.
[0091] Therefore, in order to reduce the impact on the uplink transmission rate and improve the stability of uplink data transmission, the present application provides an antenna switching method and a terminal device. The antenna switching method and the terminal device provided in the embodiments of the present application are further described in detail below.
[0092] Figure 5 This is a flow chart of an antenna switching method provided by an embodiment of the present application. Figure 5 As shown, the antenna switching method includes the following steps S501 and S502. Optionally, the antenna switching method also includes the following steps S503 and S504. Figure 5 The method shown may be performed by a terminal device. Alternatively, Figure 5 The execution entity of the method shown can be a chip in a terminal device, which is not limited in the embodiments of the present application. Figure 5 The method is described by taking a terminal device as an example of an execution subject.
[0093] S501: When the first antenna is switched to the second antenna, the terminal device obtains a first uplink average throughput, a first uplink bit error rate, a second uplink average throughput, and a 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, the terminal device switches the second antenna back to the first antenna.
[0095] In this embodiment of the present application, the first uplink average 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 switches to the second antenna; the second uplink average 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 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] It can be understood that when the terminal device switches the first antenna to the second antenna, if the first antenna switches to the second antenna with better RSRP but worse TRP, the uplink transmission rate will drop significantly. Therefore, in response to this phenomenon, the antenna switching method can be optimized according to the change of the uplink average throughput before and after the antenna switching. That is, when the uplink average throughput after the antenna switching decreases, the antenna re-switching operation can be considered (that is, switching the second antenna back to the first antenna) to ensure the stability of the uplink transmission rate. However, considering that the throughput is closely related to the scheduling of network equipment, the decrease in throughput may be due to the reduction in the scheduling of network equipment, and is not necessarily a negative benefit caused by antenna switching. Therefore, in order to improve the accuracy of the judgment, when the uplink average throughput decreases, the change in the uplink bit error rate before and after the antenna switching should also be synchronously counted. When the uplink average throughput after the antenna switching decreases and the uplink bit error rate increases, the antenna re-switching operation can be performed.
[0097] Specifically, when the first antenna is switched to the second antenna, the terminal device may monitor the uplink average throughput (first uplink average throughput, Tput0) and uplink bit error rate (first uplink bit error rate, Bler0) in a first preset time period before the switch, and the uplink average throughput (second uplink average throughput, Tput1) and uplink bit error rate (second uplink bit error rate, Bler1) in a second preset time period after the switch. The first preset time period and the second preset time period may be the same, for example, both may be 100 ms. Of course, the first preset time period and the second preset time period may also be different, which is not limited here. Then, the terminal device determines whether to re-switch the antenna based on the change in the uplink average throughput and the change in the uplink bit error rate, that is: when the first difference between the second uplink average throughput and the first uplink average throughput is less than the first threshold value (it can be considered that Tput1-Tput0<throughput threshold value), and the second difference between the second uplink bit error rate and the first uplink bit error rate is greater than the second threshold value (it can be considered that Bler1-Bler0>bit error threshold value), the terminal device needs to perform the antenna re-switching operation, that is, switch the second antenna back to the first antenna.
[0098] In one possible implementation, when the first antenna is switched to the second antenna, before 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, the method further includes: the terminal device obtains the RSRP of multiple antennas; the multiple antennas include the first antenna and the second antenna, the first antenna being the transmitting antenna; if the sum of the fourth difference and the preset power value is greater than the 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 developer, which is not limited here. Based on this method, the probability of the transmitting antenna switching to the lower antenna can be reduced, ensuring the accuracy and effectiveness of antenna switching.
[0099] It can be understood that before the first antenna switches to the second antenna, the terminal device can determine whether the current transmitting antenna has switched at intervals of a preset time period (for example, 200ms, or other values, not limited here). Assuming that 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 the terminal device receives the reference signal, it can detect the RSRP on 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 the preset power value (i.e., the unbalanced TAS value) is greater than the fourth threshold value (i.e., the switching threshold value), it can be considered that the second antenna is the antenna to be switched, and the operation of switching the first antenna to the second antenna needs to be executed. 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), there is no need to switch the first antenna.
[0100] In a possible implementation, the second antenna is an antenna in an idle state among multiple antennas.
[0101] It can be understood that a terminal device is equipped with multiple antennas. Since some antennas are reused to transmit cellular or Wi-Fi data, it is necessary to determine whether a switch is necessary among the idle antennas. Based on this approach, switching to an active antenna can be avoided, which helps improve the effectiveness and reliability of antenna switching.
[0102] S503. 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 obtains the first resource block (RB) average power and the second RB average power.
[0103] S504: If a third difference between the second RB average power and the first RB average power is greater than a third threshold, the terminal device switches the second antenna back to the first antenna.
[0104] In the embodiment of the present application, the first RB average power is the RB average power in a first preset time period, and the second RB average power is the RB average power in a second preset time period.
[0105] It can be understood that the terminal device judges based on 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 and does not perform the operation of switching the antenna back, the transmission power allocated to a single RB after the antenna switching (i.e., the RB average power) may increase significantly. Therefore, it is necessary to further consider the changes in the RB average power to ensure that it will not affect the uplink transmission power and high-throughput business 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 value, and / or the second difference is less than or equal to the second threshold value, the terminal device can monitor the RB average power (first RB average power, P0) in the first preset time period before the switch and the RB average power (second RB average power, P1) in the second preset time period after the switch. Then, the terminal device determines again whether the antenna should be switched back based on the change in the RB average power, that is, when the third difference between the second RB average power and the first RB average power is greater than the third threshold value (it can be considered that P1-P0>power control threshold value), the terminal device also needs to perform the antenna switching 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, the terminal device continues to maintain the state of switching from the first antenna to the second antenna.
[0108] In general, if Figure 6 As shown, the terminal device determines whether the current transmitting antenna has been switched at intervals of a preset time period. Assuming that the current transmitting antenna is the first antenna, the terminal device must 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.
[0109] First, it is 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 value (i.e., the fourth threshold value). 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 value, the second antenna can be considered as the antenna to be switched, and the terminal device performs the operation of switching the first antenna to the second antenna (in this case, 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 value, the terminal device does not need to switch the transmitting antenna, and the transmitting antenna remains unchanged (in this case, the first antenna is the transmitting antenna).
[0110] In the event that the first antenna switches to the second antenna, in order to ensure the stability of the uplink transmission rate, the terminal device needs to monitor the uplink average throughput (first uplink average throughput, Tput0) and uplink bit error rate (first uplink bit error rate, Bler0) in the first preset time period before the switch, as well as the uplink average throughput (second uplink average throughput, Tput1) and uplink bit error rate (second uplink bit error rate, Bler1) in the second preset time period after the switch. Then, it is determined whether the first difference between Tput1 and Tput0 is less than the first threshold value (i.e., whether Tput1-Tput0 is less than the throughput threshold value), and whether the second difference between Bler1 and Bler0 is greater than the second threshold value (i.e., whether Bler1-Bler0 is greater than the bit error threshold value).
[0111] If the first difference between Tput1 and Tput0 is less than the first threshold value (Tput-Tput0<throughput threshold value), and the second difference between Bler1 and Bler0 is greater than the second threshold value (Bler1-Bler0>error threshold value), the terminal device needs to perform an antenna re-switching operation and switch the second antenna back to the first antenna (at this time the first antenna is the transmitting 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 RB average power (first RB average power, P0) in a first preset time period before the switch and the RB average power (second RB average power, P1) in a second preset time period after the switch. Then, it is determined 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 re-switching operation, switching the second antenna back to the first antenna (in this case, 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 from the first antenna to the second antenna, that is, the transmitting antenna is switched, and the second antenna is the transmitting antenna.
[0114] In addition, in one 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 obtains 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 to the second antenna; the fifth difference is the difference between the third RSRP and the fourth RSRP.
[0115] It can be understood that after the terminal device performs the antenna reswitching operation, after a third preset time period, the terminal device can still determine whether to switch from the first antenna to the second antenna. 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 the preset power value is still greater than the fourth threshold, the terminal device will switch from the first antenna to the second antenna again. Based on this approach, the accuracy of antenna switching can be further improved and misjudgment can be avoided.
[0116] In a possible implementation, the method further includes: within a fourth preset time period, if the number of times the second antenna is switched 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] It can be understood that if the number of times the terminal device switches back from the second antenna to the first antenna reaches a preset number (e.g., 5 times) within a fourth preset time period (e.g., 800ms, or other values, not limited here), it indicates that the second antenna is currently not suitable for use and will easily provide negative returns after the antenna switching, affecting uplink data transmission. At this time, the terminal device can stop switching the first antenna to the second antenna within a fifth preset time period (e.g., 1s, or other values, not limited here). Based on this approach, power consumption of antenna switching can be saved and impact on uplink data transmission can be avoided.
[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 an antenna other than the first antenna and the second antenna among the multiple antennas; 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] It can be understood that if the terminal device still cannot switch the first antenna to the second antenna within the sixth preset time period, it indicates that there is a problem with the second antenna and it cannot be used. At this time, the terminal device can determine whether there are other antennas to switch to. Specifically, the terminal device can obtain the fifth RSRP of the first antenna and the sixth RSRP of the third antenna. The third antenna here refers to the antennas other than the first and second antennas in the multiple antennas. If the difference between the fifth RSRP and the sixth RSRP plus the 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 approach, 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 According to the described method, when the transmitting antenna is switched (i.e., the first antenna is switched to the second antenna), the terminal device can determine whether to perform a reversal operation (i.e., the second antenna is switched back to the first antenna) based on the changes in the uplink average throughput and the uplink bit error rate before and after the antenna switching, so as to ensure that the antenna switching can provide positive benefits, reduce the impact on the uplink transmission rate, and improve the stability of uplink data transmission; and can further determine whether to perform a reversal operation based on the changes in the RB average power before and after the antenna switching, so as to ensure that the antenna switching does not have a significant impact on the overall power consumption.
[0121] See Figure 7 , Figure 7 A schematic structural diagram of an antenna switching device 700 according to an embodiment of the present application is shown. Figure 7 The antenna switching device shown may be a terminal device, or a device in the terminal device, or a device that can be used in conjunction with the terminal device. Figure 7 The antenna switching device shown may include an acquisition unit 701 and a processing unit 702.
[0122] An acquiring unit 701 is configured to acquire, when a first antenna is switched to a 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 a first difference between the second uplink average throughput and the first uplink average throughput is smaller than a first threshold and a second difference between the second uplink bit error rate and the first uplink bit error rate is larger 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, obtain a first RB average power and a 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; and if a third difference between the second RB average power and the first RB average power is greater than a third threshold value, switch the second antenna back to the first antenna.
[0125] In one possible implementation, 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 obtaining unit 701 is further used to: obtain RSRPs of multiple antennas; the multiple antennas include a first antenna and a second antenna, and the first antenna is a transmitting antenna; the processing unit 702 is further used to: if the sum of a fourth difference and a preset power value is greater than a fourth threshold value, 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 a possible implementation, the second antenna is an antenna in an idle state among multiple antennas.
[0127] In one possible implementation, after the processing unit 702 switches the second antenna back to the first antenna, the acquiring unit 701 is further configured to: acquire a third RSRP of the first antenna and a fourth RSRP of the second antenna after a third preset time period; and the processing unit 702 is further configured to: switch the first antenna to the second antenna if the sum of a fifth difference and the preset power value is greater than a fourth threshold value; the fifth difference is the difference between the third RSRP and the fourth RSRP.
[0128] In a possible implementation, the processing unit 702 is further configured to: if the number of times the second antenna is switched to the first antenna reaches a preset number within the fourth preset time period, stop switching the first antenna to the second antenna within a fifth preset time period.
[0129] In one possible implementation, the acquiring unit 701 is further configured to: if the first antenna is not switched to the second antenna within a sixth preset time period, obtain a fifth RSRP of the first antenna and a sixth RSRP of the third antenna; the third antenna being an antenna other than the first antenna and the second antenna among the multiple antennas; and the processing unit 702 is further configured to: if the sum of the sixth difference value and the preset power value is greater than the fourth threshold value, switch the first antenna to the third antenna; the sixth difference value is the difference between the fifth RSRP and the sixth RSRP.
[0130] For the case where the antenna switching device can be a chip or a chip system, see Figure 8 Schematic diagram of the chip structure shown. 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 the processors 801 may be one or more, and the number of the interfaces 802 may be multiple.
[0131] For the case where the chip is used to implement the terminal device in the embodiment of the present application:
[0132] The interface 802 is used to receive or output signals;
[0133] The processor 801 is configured to execute data processing operations of the terminal device.
[0134] It is understood that some optional features in the embodiments of the present application may, in certain scenarios, be implemented independently of other features, such as the solution on which they are currently based, to solve corresponding technical problems and achieve corresponding effects. Alternatively, they may be combined with other features in certain scenarios as needed. Accordingly, the antenna switching device provided in the embodiments of the present application may also implement these features or functions accordingly, which will not be described in detail here.
[0135] It should be understood that the processor in the embodiment of the present application can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by an integrated logic circuit of hardware in the processor or instructions in the form of software. The above processor 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 device, discrete gate or transistor logic device, discrete hardware component.
[0136] It is understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0137] The present 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] The present application also provides a computer storage medium having a computer program / instruction stored thereon, which implements the method and steps of any of the above method embodiments when the computer program / instruction is executed by a processor.
[0139] The present application also provides a computer program product, including a computer program / instruction, which implements the method and steps of any of the above method embodiments when executed by a processor.
[0140] As used in the specification and appended claims of the present application, the singular expressions "a", "an", "said", "above", "the" and "this" are intended to include plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in the present application refers to and includes any or all possible combinations of one or more of the listed items. As used in the above embodiments, the term "when..." can be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...". Similarly, the phrase "when determining..." or "if (stated condition or event) is detected" can be interpreted to mean "if determining..." or "in response to determining..." or "when (stated condition or event) is detected" or "in response to detecting (stated condition or event)", depending on the context.
[0141] 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 instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. 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 (DSL)) 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 high-density digital video disc (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)). A person skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by a computer program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium. When the program is executed, it may include the processes of the above-mentioned method embodiments. The aforementioned storage media include various media that can store program codes, such as ROM or random access memory RAM, magnetic disks or optical disks.
[0142] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. An antenna switching method, characterized in that: The method comprises: 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 are obtained; the first uplink average throughput is the uplink average throughput in a first preset time period, the first uplink bit error rate is the uplink bit error rate in 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 in a second preset time period, the second uplink bit error rate is the uplink bit error rate in 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 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, the second antenna is switched back to the first antenna.
2. The method according to claim 1, characterized in that The method further comprises: 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, obtaining a first resource block RB average power and a second RB average power; the first RB average power is the RB average power in the first preset time period, and the second RB average power is the RB average power in the second preset time period; If a third difference between the second RB average power and the first RB average power is greater than a third threshold, the second antenna is switched back to the first antenna.
3. The method according to claim 1 or 2, 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: Obtaining reference signal received power (RSRP) of multiple antennas; the multiple antennas include a first antenna and a second antenna, where the first antenna is a transmitting antenna; If the sum of the fourth difference and the preset power value is greater than a fourth threshold, 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.
4. The method according to any one of claims 1 to 3, characterized in that The second antenna is an antenna in an idle state among the multiple antennas.
5. The method according to any one of claims 1 to 4, characterized in that After switching the second antenna back to the first antenna, the method further includes: After a third preset time period, obtaining a third RSRP of the first antenna and a fourth RSRP of the second antenna; If the sum of the fifth difference and the preset power value is greater than the fourth threshold, the first antenna is switched to the second antenna; the fifth difference is the difference between the third RSRP and the fourth RSRP.
6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: If the number of times the second antenna is switched to the first antenna reaches a preset number within a fourth preset time period, switching from the first antenna to the second antenna is stopped within a fifth preset time period.
7. The method according to any one of claims 1 to 5, characterized in that The method further comprises: If the first antenna is not switched to the second antenna within a sixth preset time period, obtaining a fifth RSRP of the first antenna and a sixth RSRP of a third antenna, where the third antenna is an antenna other than the first antenna and the second antenna among the multiple antennas; If the sum of the sixth difference and the preset power value is greater than the fourth threshold, the first antenna is switched to the third antenna; the sixth difference is the difference between the fifth RSRP and the sixth RSRP.
8. 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 call the computer program, so that the terminal device executes the method according to any one of claims 1 to 7.
9. A chip system, applied to a terminal device, characterized in that: The chip system includes at least one processor and an interface, wherein the interface is used to receive instructions and transmit them to the at least one processor; the at least one processor runs the instructions so that the terminal device executes the method as described in any one of claims 1-7.
10. A computer storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instructions are executed by a processor, the method and steps according to any one of claims 1 to 7 are implemented.
11. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method and steps according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Screen projection method and device, electronic equipment and computer readable storage medium
CN114499618A
Antenna switching method and related device
CN114826362A
Antenna switching method and device, storage medium and electronic equipment
CN115701003A
Beam switching antenna system and method and apparatus for controlling the same
US20050057394A1
Cited By
Antenna switching method, wireless communication equipment and medium
CN121367523A