Antenna switching method, device, equipment and computer program product
By acquiring the antenna impedance information and sensor data of the terminal device, determining the usage scenario and performing antenna switching, the problem of not being able to switch to the optimal antenna in the prior art is solved, and the communication quality is improved.
Patent Information
- Application Number
- CN202411255085.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2025-02-25
AI Technical Summary
The existing antenna switching method cannot switch to the optimal antenna when the RSRP difference between antennas does not reach the switching threshold, affecting communication performance.
By acquiring the antenna impedance information and sensor data of the terminal device, determining the current usage scenario, and performing antenna switching operations based on this, selecting the optimal antenna to improve communication quality.
Accurately identify the usage scenarios based on antenna impedance information and sensor data, realize switching of the optimal antenna, improve antenna performance, and thus improve communication quality.
Smart Images

Figure CN119519781A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communication technology, and in particular to an antenna switching method, device, equipment and computer program product. Background Art
[0002] Terminal devices usually include multiple antennas. In order to improve signal quality, antenna switching is frequently performed during actual communication to select the most suitable antenna for data transmission. At present, antenna switching is mainly achieved based on the reference signal received power (RSRP) of the antenna. In a multi-antenna system, the RSRP values of multiple antennas are measured, and the RSRP value of the current antenna is compared with the RSRP values of other antennas. If the RSRP value of other antennas is higher than the RSRP value of the current antenna, and this difference exceeds the preset switching threshold, the device will consider antenna switching. However, the existing antenna switching method will not trigger the switching action if the RSRP difference between the antennas does not reach the switching threshold, so that it is impossible to switch to the optimal antenna, affecting the communication performance. Therefore, the existing antenna switching method needs to be improved. Summary of the invention
[0003] The embodiments of the present application are intended to provide an antenna switching method, apparatus, device and computer program product.
[0004] The technical solution of this application is implemented as follows:
[0005] In a first aspect, an antenna switching method is provided, comprising:
[0006] Obtain antenna impedance information and one or more sensor data of the terminal device;
[0007] Determine a current usage scenario of the terminal device based on antenna impedance information of the terminal device and one or more sensor data;
[0008] A first antenna switching operation is performed based on a current usage scenario of the terminal device.
[0009] In a second aspect, an antenna switching device is provided, comprising:
[0010] An acquisition unit, used to acquire antenna impedance information and one or more sensor data of a terminal device;
[0011] A determination unit, configured to determine a current usage scenario of the terminal device based on antenna impedance information of the terminal device and one or more sensor data;
[0012] A control unit is used to perform a first antenna switching operation based on a current usage scenario of the terminal device.
[0013] In a third aspect, an antenna switching device is provided, comprising: a processor and a memory configured to store a computer program that can be run on the processor,
[0014] Wherein, when the processor is configured to run the computer program, the steps of the aforementioned method are executed.
[0015] In a fourth aspect, a computer program product is provided, comprising a computer program, which implements the steps of the aforementioned method when executed by a processor.
[0016] The embodiment of the present application provides an antenna switching method, device, equipment and computer program product, the method comprising: obtaining antenna impedance information and one or more sensor data of a terminal device; determining the current usage scenario of the terminal device based on the antenna impedance information and one or more sensor data of the terminal device; performing a first antenna switching operation based on the current usage scenario of the terminal device. In this way, the usage scenario of the terminal device is accurately identified based on the antenna impedance information and sensor data, such as left / right hand, left / right head and hand, horizontal / vertical screen, etc., and the optimal antenna is switched according to the identified usage scenario to improve antenna performance, thereby improving communication quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 This is a schematic diagram of a first process of the antenna switching method in an embodiment of the present application;
[0018] Figure 2 A schematic diagram of an antenna impedance detection circuit provided in an embodiment of the present application;
[0019] Figure 3 A schematic diagram of a mobile phone antenna structure in an embodiment of the present application;
[0020] Figure 4A is the far-field radiation pattern of ANT0 in the BHHR scenario in the embodiment of the present application;
[0021] Figure 4B is the far-field radiation pattern of ANT1 in the BHHR scenario in the embodiment of the present application;
[0022] Figure 4C is the far-field radiation pattern of ANT0 in the BHHL scenario in the embodiment of the present application;
[0023] Figure 4D is the far-field radiation pattern of ANT1 in the BHHL scenario in the embodiment of the present application;
[0024] Figure 5 This is a second flow chart of the antenna switching method in an embodiment of the present application;
[0025] Figure 6 A third flow chart of the antenna switching method in an embodiment of the present application;
[0026] Figure 7 This is a schematic diagram of a fourth process of the antenna switching method in an embodiment of the present application;
[0027] Figure 8 This is a schematic diagram of the structure of the antenna switching device in the embodiment of the present application;
[0028] Fig. 9 Schematic diagram of the composition structure of the antenna switching device in the embodiment of the present application. DETAILED DESCRIPTION
[0029] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.
[0030] An antenna switching method provided in the embodiment of the present application can be applied to a terminal device with a wireless communication function, and the terminal device can be implemented in various forms. For example, the terminal device described in the embodiment of the present application may include a mobile phone, a camera, a tablet computer, a laptop computer, a PDA, a portable media player (PMP), a navigation device, a wearable device, a smart bracelet, a pedometer, etc.
[0031] The terminal device may include: RF (Radio Frequency) device, WiFi module, audio input device, audio output device, camera device, multiple sensors, display unit, user input unit, interface unit, memory, processor, power supply and other components.
[0032] Sensors include: proximity sensor, distance sensor, gyroscope, magnetometer, accelerometer, color temperature sensor, temperature sensor, humidity sensor, pressure sensor, light sensor, Hall sensor, etc.
[0033] Proximity sensors detect close contact between an object and a terminal device by emitting infrared or ultrasonic waves and measuring the strength or time delay of the reflected signal.
[0034] Distance sensor, used to sense the distance between an object and a terminal device.
[0035] A gyroscope is used to measure the angular velocity of the terminal device around three axes, helping to track changes in the orientation of the terminal device.
[0036] The accelerometer measures the acceleration of the terminal device on three axes. By analyzing and processing these data, the movement direction, speed, acceleration and other motion information of the terminal device can be determined.
[0037] Magnetometer measures the direction of the terminal device relative to the earth's magnetic field, helping to calibrate and correct the attitude and direction of the terminal device. Gyroscopes, accelerometers and magnetometers can work together to provide key information such as the attitude, angular velocity, acceleration, etc. of the terminal device in real time.
[0038] An embodiment of the present application provides an antenna switching method, which can be specifically an antenna switching method based on usage scenarios, which accurately identifies the usage scenarios of terminal devices according to antenna impedance information and sensor data, such as left / right hand, left / right head-hand, horizontal / vertical screen, etc., and switches to the optimal antenna according to the identified usage scenarios, thereby improving antenna performance and thus improving communication quality.
[0039] Figure 1 Schematic diagram of the first process of the antenna switching method in the embodiment of the present application. Figure 1 As shown, the method may specifically include:
[0040] Step 101: Acquire antenna impedance information and one or more sensor data of a terminal device;
[0041] Antenna impedance refers to the ratio of voltage to current at the antenna input. The size and phase characteristics of antenna impedance have an important impact on the performance of the antenna, including the radiation efficiency, bandwidth, and directivity of the antenna. Due to the particularity of the human body, when a part of the human body (such as the hand, head, etc.) approaches or touches the antenna, it will change the electromagnetic environment of the antenna, resulting in a significant impedance difference from free space. In addition, there are also significant impedance differences due to different ways of contact between the human body and the terminal device.
[0042] In some embodiments, the antenna impedance information may include a reflection coefficient for one or more antennas on the terminal device.
[0043] The reflection coefficient refers to the ratio of the amplitude of the reflected wave to the amplitude of the incident wave when the signal encounters impedance mismatch on the transmission line. The reflection coefficient is a complex number that represents the amplitude ratio and phase difference between the reflected wave and the incident wave. It is usually defined as the ratio of the reflected voltage to the incident voltage, but at the power level, it can also be understood as the square root of the ratio of the reflected power to the incident power. It describes the degree of signal reflection on the transmission line and has an important impact on the signal transmission quality and system performance. When the input impedance of the antenna is completely matched with the characteristic impedance of the transmission line or the load impedance of the receiver, the reflection coefficient is equal to zero (ideal situation), indicating that no signal reflection occurs. Conversely, when the impedance is mismatched, the reflection coefficient is not zero, and the greater the impedance mismatch, the greater the reflection coefficient. In other words, the reflection coefficient can also be understood as a kind of antenna impedance information.
[0044] Figure 2 A schematic diagram of an antenna impedance detection circuit provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, taking the impedance detection of antenna 1 as an example, the incident power and reflected power are detected respectively through the directional coupler (CPL1) inside the power amplifier (PA) module on the transmitting path and the detection circuit in the receiving path, so as to obtain the reflection coefficient of antenna 1. The impedance detection of other antennas is based on the same method.
[0045] One or more sensors refer to one or more sensors built into the terminal device. These sensors sense and measure the motion and posture information, usage environment information, etc. of the terminal device, and then combine with the antenna impedance information to accurately identify the current usage scenario of the terminal device and implement antenna switching operations based on the usage scenario.
[0046] In some embodiments, the one or more sensors include at least one of: an accelerometer, a gyroscope, a magnetometer, a proximity sensor.
[0047] Step 102: determining a current usage scenario of the terminal device based on antenna impedance information of the terminal device and one or more sensor data;
[0048] In the embodiment of the present application, the use scenario is identified by combining antenna impedance information and sensor data, which can improve the accuracy of the use scenario.
[0049] Specifically, based on the scene recognition algorithm, scene recognition is performed according to antenna impedance information and one or more sensor data to determine the current usage scenario of the terminal device.
[0050] In some embodiments, the scene recognition algorithm includes an artificial intelligence algorithm. Specifically, the antenna impedance information and the first sensor data are input into a pre-trained scene recognition model to determine the first information used to characterize the current usage scenario; wherein the pre-trained scene recognition model is trained based on the antenna impedance information and the first sensor data under multiple usage scenarios.
[0051] Scene recognition mode usually refers to models built using machine learning or deep learning technologies of artificial intelligence algorithms. These models can learn from a large amount of usage scenario data and automatically extract features to achieve understanding and classification of usage scenario data.
[0052] In some embodiments, determining the current usage scenario of the terminal device based on the antenna impedance information and one or more sensor data of the terminal device also includes: performing data processing and analysis based on second sensor data of the terminal device to determine second information used to characterize the current usage scenario.
[0053] The scene recognition algorithm also includes a data processing algorithm. Unlike artificial intelligence algorithms, which require a large amount of data to train models, this algorithm directly processes and analyzes data to determine the second information of the current usage scenario.
[0054] In some embodiments, the usage scenario includes one or more of the following information: holding state, head-hand state, horizontal and vertical screen state;
[0055] The holding state is used to indicate left-hand holding, right-hand holding, both-hand holding or not holding;
[0056] Head-hand status is used to indicate head-hand status or non-head-hand status;
[0057] The horizontal and vertical screen states are used to indicate the left horizontal screen state, the right horizontal screen state or the vertical screen state. The vertical screen state can be further divided into the upper vertical screen state and the lower vertical screen state.
[0058] One or more information is used to indicate a usage scenario. Exemplarily, the usage scenarios include: left head-hand scenario includes left hand holding and head-hand state; left hand scenario includes left hand holding, non-head hand state and portrait state; right head-hand scenario includes right hand holding and head-hand state; right hand scenario includes right hand holding, non-head hand state and portrait state; right landscape scene includes both hands holding, non-head hand state and right landscape state; left landscape scene includes both hands holding, non-head hand state and left landscape state, etc.
[0059] In some embodiments, the one or more sensors include at least one of the following: an accelerometer, a gyroscope, a magnetometer, and a proximity sensor. For example, the antenna impedance information and the first sensor data are input into a pre-trained scene recognition model to determine a holding state for characterizing the current usage scenario, and the first sensor includes one or more of an accelerometer, a gyroscope, and a magnetometer. For another example, based on the proximity sensor data, the head and hand state is determined. For another example, based on one or more sensor data of the accelerometer, the gyroscope, and the magnetometer, the horizontal and vertical screen state is determined.
[0060] In some embodiments, the usage scenario further includes one or more of the following information: folding state, holding position, and running business;
[0061] The folding state is used to indicate that the foldable terminal device is in a folded state or an unfolded state;
[0062] The holding position is used to indicate the specific holding position in the vertical screen state, including upper holding, lower holding and middle holding.
[0063] The running service may refer to one or more services currently running on the terminal device. For example, the running service includes mobile communication service and data service, the mobile communication service specifically includes call service and SMS service, and the data service specifically includes game service, audio and video service, social service, web browsing service, etc.
[0064] In some embodiments, since the folded state and holding position can also cause the problem of unbalanced antenna performance, differentiating the usage scenarios according to the folded state and holding position is conducive to solving the problem of unbalanced antenna performance. Different services have different requirements for antenna performance. Differentiating the usage scenarios according to the running services can improve the service quality of specific services.
[0065] Exemplary usage scenarios include: left head-hand call scenario includes left-hand holding, head-hand status and call services; right head-hand call scenario includes right-hand holding, head-hand status and call services; left lower-end holding scenario includes left-hand holding, non-head-hand status, vertical screen status and lower-end holding; right lower-end holding scenario includes right-hand holding, non-head-hand status, vertical screen status and lower-end holding; left horizontal screen game scenario includes two-hand holding, non-head-hand status, right horizontal screen status and game services; right horizontal screen game scenario includes two-hand holding, non-head-hand status, left horizontal screen status and game services, etc.
[0066] Step 103: Perform a first antenna switching operation based on the current usage scenario of the terminal device.
[0067] One usage scenario corresponds to one optimal antenna, and the optimal antenna includes one antenna or multiple antennas.
[0068] In some embodiments, a first antenna switching operation is performed based on the current usage scenario of the terminal device, including: determining a target antenna corresponding to the current usage scenario of the terminal device based on a correspondence between one or more usage scenarios and antennas; and the terminal device selects the target antenna corresponding to the current usage scenario as the working antenna.
[0069] Specifically, if the working antenna of the terminal device is not the target antenna, the working antenna is switched from other antennas to the target antenna; if the working antenna of the terminal device is the target antenna, the target antenna is kept as the working antenna.
[0070] In some embodiments, the method further includes: acquiring configuration information; and configuring the correspondence between one or more usage scenarios and antennas through the configuration information.
[0071] Figure 3 This is a schematic diagram of a mobile phone antenna structure in an embodiment of the present application, which is specifically a rear view of a mobile phone antenna structure. Multiple antennas are arranged around the metal middle frame of the mobile phone, which may specifically include at least one of the following: antenna ANT0 at the bottom position of the right side, antenna ANT4 at the middle position of the right side, antenna ANT5 at the top position of the right side, antenna ANT1 at the bottom position of the right side, antenna ANT3 at the middle position of the right side, antenna ANT5 at the bottom position of the right side, antenna ANT6 at the middle position of the top side or near the middle position, ANT0 and ANT1 can be located at symmetrical positions on both sides, ANT2 and ANT 3 can be located at symmetrical positions on both sides, and ANT4 and ANT 5 can be located at symmetrical positions on both sides.
[0072] When the usage scenario is left-handed holding or left-headed hand (the phone screen faces the user), ANT0 is covered by a large area of the palm, resulting in reduced performance of ANT0. In this case, ANT1 can be selected as the working antenna, or ANT2, ANT 3, ANT4, ANT5 or ANT6 can be selected as the working antenna.
[0073] When the usage scenario is right-handed or right-headed, ANT1 is covered by a large area of the palm, resulting in reduced ANT1 performance. In this case, ANT0 can be selected as the working antenna, or ANT2, ANT 3, ANT4, ANT5 or ANT6 can be selected as the working antenna.
[0074] The usage scenario is the left horizontal screen state (USBR), that is, when the USB port is on the right and the top is on the left, and it is detected that the mobile phone is held by the user with both hands, ANT0 and ANT4 are covered by a large area of the palm, resulting in reduced performance of ANT0 and ANT4. At this time, ANT1 can be selected as the working antenna, or ANT 3 or ANT5 can be selected as the working antenna.
[0075] The usage scenario is the right horizontal screen state (USBR), that is, when the USB port is on the left and the top is on the right, and it is detected that the mobile phone is held by the user with both hands, ANT1 and ANT5 are covered by a large area of the palm, resulting in reduced performance of ANT1 and ANT5. At this time, ANT0 can be selected as the working antenna, or ANT2 or ANT4 can be selected as the working antenna.
[0076] The usage scenario is in portrait mode, and it is detected that the phone is held by the user with both hands. ANT0 and ANT1 are covered by a large area of the palm, resulting in reduced performance of ANT0 and ANT1. Since the top antenna is not held, ANT2 can be selected as the working antenna. ANT 3, ANT4, ANT5 or ANT6 can also be selected as the working antenna.
[0077] Take the antenna efficiency of ANT0 in different usage scenarios as an example, as shown in Table 1.
[0078] Table 1 shows the antenna efficiency of antenna ANT0 in different scenarios
[0079]
[0080] From Table 1, we can see that the BHHR performance of ANT0 is significantly better than the BHHL performance in all three frequency bands, with an efficiency difference of 1.7 to 4 dB. On the contrary, the BHHL performance of ANT1 is better than the BHHR performance.
[0081] The embodiment of the present application also provides the BHHL / BHHR directional diagrams of ANT0 and ANT1 in the N28 frequency band, such as Figure 4A and Figure 4B As shown, it can be seen that the right head-hand (BHHR) radiation pattern performance (efficiency, gain) of ANT0 is significantly better than that of ANT1. Therefore, when the usage scenario is the right head-hand, the corresponding target antenna can be ANT0, and the first antenna switching operation is to switch the working antenna from other antennas to ANT0, or to keep ANT0 as the working antenna.
[0082] On the contrary, Figure 4C and Figure 4D As shown, the left head-hand (BHHL) radiation pattern performance of ANT1 is significantly better than the left head-hand (BHHL) radiation pattern performance of ANT0. Therefore, when the usage scenario is the left head-hand, the corresponding target antenna can be ANT1, and the first antenna switching operation is to switch the working antenna from other antennas to ANT1, or to keep ANT1 as the working antenna.
[0083] Therefore, for the identified left / right head-hand scenarios, the antenna is switched accurately. For example, when the right head-hand scenario is identified, ANT0 is selected as the working antenna. When the left head-hand scenario is identified, ANT1 is selected as the working antenna. In different scenarios, the corresponding antenna with better performance is used as the working antenna to ensure that the working performance of the antenna in different scenarios meets the requirements.
[0084] In some embodiments, the target antenna includes an optimal antenna corresponding to the current usage scenario and its parasitic antenna. Through coupled feeding, the radiating branches of the parasitic antenna interact with the radiating branches of the optimal antenna. This layout method helps to widen the bandwidth without changing the size of the antenna.
[0085] by Figure 3 For example, the parasitic antenna of antenna ANT0 may be ANT2, the parasitic antenna of ANT2 may be ANT4 and / or ANT0, the parasitic antenna of ANT4 may be ANT6 and / or ANT2, the parasitic antenna of ANT6 may be ANT5 and / or ANT4, the parasitic antenna of ANT5 may be ANT6 and / or ANT3, the parasitic antenna of ANT3 may be ANT5 and / or ANT1, and the parasitic antenna of antenna ANT1 may be ANT3.
[0086] In some embodiments, after performing a first antenna switching operation based on the current usage scenario of the terminal device, the method also includes at least one of the following: enabling an antenna switching strategy based on performance parameters, performing a second antenna switching operation based on the performance parameters of the target antenna and the performance parameters of the non-target antenna, the performance parameters including at least the reference signal received power (RSRP) of the antenna; enabling an antenna performance optimization strategy to optimize the performance of the working antenna.
[0087] The performance parameters are used to characterize the performance of the antenna. In some embodiments, the performance parameters may also include channel state information (including information such as the gain and phase of the channel) and / or antenna efficiency.
[0088] In some embodiments, the second antenna switching operation may include: when it is determined according to the performance parameter that the performance of the non-target antenna is better than the performance of the target antenna, the terminal device selects the non-target antenna as the working antenna.
[0089] The second antenna switching operation may further include: when it is determined according to the performance parameter that the performance of the target antenna is better than the performance of the non-target antenna, or the performance of the target antenna is close to the performance of the non-target antenna, keeping the target antenna as the working antenna.
[0090] For example, when the performance parameter is RSRP, the second antenna switching operation may include: determining the RSRP of the target antenna and the RSRP of the non-target antenna; when the RSRP of the non-target antenna is greater than the RSRP of the target antenna, and the difference between the RSRP of the non-target antenna and the RSRP of the target antenna is greater than the switching threshold, the terminal device selects the non-target antenna as the working antenna.
[0091] When switching based on the antenna switching strategy of performance parameters, the difference between the performance of the optimal antenna and the performance of the working antenna needs to exceed the switching threshold. If the difference does not exceed the switching threshold, it is impossible to switch to the optimal antenna. For example, in scenarios with weak signal coverage, the performance difference between the antennas is small. If the working antenna is not the optimal antenna, it will affect normal communication. Therefore, the first antenna switching operation is performed based on the antenna switching strategy of the usage scenario, and the working antenna is switched to the optimal antenna corresponding to the current usage scenario. Then, the second antenna switching operation is performed in combination with the antenna switching strategy based on performance parameters to ensure that the working antenna is the optimal antenna, which solves the problem that the optimal antenna cannot be switched to when only the antenna switching strategy based on performance parameters is used.
[0092] In some embodiments, the antenna performance optimization strategy includes at least one of: antenna impedance tuning, beam scanning, and beam switching.
[0093] The first antenna switching operation is performed based on the antenna switching strategy of the usage scenario, which can timely switch to the optimal antenna corresponding to the current usage scenario, and then combine the antenna performance optimization strategy to optimize the target antenna performance and further improve the communication quality.
[0094] That is to say, the antenna switching strategy based on performance parameters and the antenna performance optimization strategy, as a supplement and optimization of the antenna switching strategy based on the usage scenario, after performing antenna operation based on the scenario recognition result, the antenna switching strategy based on performance parameters can also be enabled to perform a second antenna switching operation to ensure that the working antenna is the optimal antenna, and / or enable the antenna performance optimization strategy to optimize the working antenna performance. Multiple antenna performance optimization strategies work together to better improve antenna performance. Of course, the antenna switching strategy based on the usage scenario can also be used alone.
[0095] In some embodiments, the method may also include: when the current usage scenario of the terminal device is a first usage scenario, disabling the antenna switching strategy and / or antenna performance optimization strategy based on performance parameters; when the current usage scenario of the terminal device is a second usage scenario, enabling the antenna switching strategy and / or antenna performance optimization strategy based on performance parameters.
[0096] That is to say, when the target antenna selected by the antenna switching strategy based on the usage scenario has better and more stable performance, other optimization strategies can be disabled to ensure communication quality while reducing power consumption; conversely, other optimization strategies can also be enabled.
[0097] The first usage scenario includes one or more scenarios. For example, the first usage scenario includes a left head and hand scenario and a right head and hand scenario.
[0098] The second usage scenario includes one or more scenarios. For example, the second usage scenario includes a right-hand holding scenario, a left-hand holding scenario, and a double-hand holding scenario.
[0099] In some embodiments, when the antenna switching strategy based on the usage scenario is enabled, the steps of the method provided in the embodiment of the present application are performed; otherwise, the steps of the method provided in the embodiment of the present application are not performed. An enabling control is set to enable and disable the function through the user's operation on the enabling space.
[0100] By adopting the above technical solution, the usage scenarios of the terminal device can be accurately identified according to the antenna impedance information and sensor data, such as left / right hand, left / right head-hand, horizontal / vertical screen, etc., and the optimal antenna can be switched according to the identified usage scenario to improve the antenna performance and thus improve the communication quality.
[0101] Based on the above embodiments of the present application, further examples are given, such as Figure 5 As shown, the method specifically includes:
[0102] Step 501: Acquire antenna impedance information and one or more sensor data of a terminal device;
[0103] For example, the one or more sensors may include: an accelerometer, a gyroscope, a magnetometer, a proximity sensor, etc.
[0104] Step 502: Inputting antenna impedance information and one or more sensor data into a pre-trained scene recognition model to determine a current usage scene;
[0105] During the training phase, the scene recognition model can be trained using antenna impedance information and sensor data in a variety of usage scenarios to obtain a scene recognition model for identifying terminal device usage scenarios.
[0106] For example, the usage scenarios recognized by the scene recognition model include: identifying left / right hand holding scenes, left / right head-hand scenes, and horizontal / vertical screen scenes, etc.
[0107] Step 503: Switch to the target antenna corresponding to the current usage scenario;
[0108] Step 504: Enable an antenna switching strategy based on performance parameters and / or enable an antenna performance optimization strategy.
[0109] Taking a mobile phone as an example, the antenna switching method based on the usage scenario of the embodiment of the present application is further illustrated. Figure 6 As shown, the method specifically includes:
[0110] Step 601: monitor the proximity sensor to determine the head and hand status;
[0111] For example, if the proximity sensor is in the approaching state, it is determined that the mobile phone is in the head-hand state; if the proximity sensor is in the distant state, it is determined that the mobile phone is in the non-head-hand state.
[0112] Step 602: Acquire sensor data and antenna impedance information;
[0113] For example, the sensor data may be data collected by one or more of an accelerometer, a gyroscope, and a magnetometer, and the data includes movement and posture information of the mobile phone.
[0114] For another example, whether the user is in a call scenario is determined based on the receiver status.
[0115] Step 603: inputting the sensor data and antenna impedance information into a scene recognition model to identify the holding state;
[0116] For example, the holding state is used to indicate left-hand holding and right-hand holding.
[0117] Step 604: Determine the current usage scenario according to the head-hand state and the holding state;
[0118] Step 605: Switch to the target antenna corresponding to the current usage scenario.
[0119] by Figure 3 For example, the usage scenarios include left-hand holding scenario, right-hand holding scenario, left-head-hand call scenario, and left-head-hand call scenario. The optimal antenna for the left-hand holding scenario is ANT1, the optimal antenna for the right-hand holding scenario is ANT0, the optimal antenna for the left-head-hand call scenario is ANT1, and the optimal antenna for the right-head-hand call scenario is ANT0.
[0120] To further improve antenna performance, after the holding state is recognized, beam scanning and beam switching are performed only on ANT0 / 1 to improve antenna performance and save power consumption.
[0121] In order to further improve the antenna performance, the antenna ANT2 is used as a parasitic branch of ANT0, or the antenna ANT3 is used as a parasitic branch of ANT1.
[0122] Based on the antenna impedance information and sensor data, the usage scenarios can be accurately identified through artificial intelligence algorithm learning, and the antenna can be accurately switched according to the identified usage scenarios. This can make up for the defects of the current RSRP-based switching algorithm and reduce the antenna switching delay.
[0123] like Figure 7 As shown, the method specifically includes:
[0124] Step 701: monitor the orientation of the mobile phone and determine the horizontal or vertical screen state;
[0125] For example, the orientation of the mobile phone is detected by an orientation sensor (TYPE_Device_Orientation) to identify whether the mobile phone is currently in a left landscape, right landscape, or portrait state. For example, the landscape / portrait orientation can be identified by monitoring sensor data such as an accelerometer and a gyroscope.
[0126] Step 702: Acquire sensor data and antenna impedance information;
[0127] Step 703: inputting sensor data and antenna impedance information into a scene recognition model to identify the holding state;
[0128] Step 704: When it is recognized that the mobile phone is in the left horizontal screen state and is held with both hands, the mobile phone antenna is switched to ANT3;
[0129] Step 705: When it is recognized that the mobile phone is in the right horizontal screen state and is held with both hands, the mobile phone antenna is switched to ANT2;
[0130] In landscape mode and with the phone held in both hands, the performance of the top and bottom antennas is poor because they are held with both hands. The performance of the side antennas ANT2 / 3 is the best, so switch the phone antenna to the side antennas ANT2 / 3.
[0131] In order to further improve the performance of antenna ANT2 / 3, after the horizontal screen state is recognized, beam scanning and beam switching are only performed on ANT2 / 3 to improve antenna performance and save power consumption.
[0132] In order to further improve the antenna performance, the antenna ANT4 may be used as a parasitic branch of ANT2, and the antenna ANT5 may be used as a parasitic branch of ANT3.
[0133] Step 706: When it is recognized that the mobile phone is in a portrait state and is held in one hand, the mobile phone antenna is switched to ANT4 / ANT5 / ANT6.
[0134] According to the antenna impedance information and sensor data, the horizontal and vertical screen scenes are accurately learned through artificial intelligence algorithms, and the antenna is switched according to the scene, which improves the quality of games, conferences, audio and video services in the horizontal screen scene, and the quality of short videos, calls and other services in the vertical screen scene, and improves the user experience. It can make up for the defects of the current switching algorithm based on RSRP and reduce the antenna switching delay.
[0135] To implement the method of the embodiment of the present application, based on the same inventive concept, the embodiment of the present application also provides an antenna switching device, such as Figure 8 As shown, the antenna switching device 80 includes:
[0136] An acquisition unit 801 is used to acquire antenna impedance information and one or more sensor data of a terminal device;
[0137] A determination unit 802, configured to determine a current usage scenario of the terminal device based on antenna impedance information of the terminal device and one or more sensor data;
[0138] The control unit 803 is used to perform a first antenna switching operation based on the current usage scenario of the terminal device.
[0139] In some embodiments, the determination unit 802 is configured to input the antenna impedance information and the first sensor data into a pre-trained scene recognition model to determine first information characterizing a current usage scene;
[0140] The pre-trained scene recognition model is trained based on antenna impedance information and first sensor data in multiple usage scenarios.
[0141] In some embodiments, the determination unit 802 is further used to perform data processing and analysis based on the second sensor data of the terminal device to determine the second information used to characterize the current usage scenario.
[0142] In some embodiments, the usage scenario includes one or more of the following information: holding state, head-hand state, horizontal and vertical screen state;
[0143] The holding state is used to indicate left-hand holding, right-hand holding, both-hand holding or not holding;
[0144] Head-hand status is used to indicate head-hand status or non-head-hand status;
[0145] The horizontal and vertical screen states are used to indicate the left horizontal screen state, the right horizontal screen state or the vertical screen state.
[0146] In some embodiments, the one or more sensors include at least one of: an accelerometer, a gyroscope, a magnetometer, a proximity sensor.
[0147] In some embodiments, the control unit 803 is specifically used to determine the target antenna corresponding to the current usage scenario of the terminal device based on the correspondence between one or more usage scenarios and antennas; the terminal device selects the target antenna corresponding to the current usage scenario as the working antenna.
[0148] In some embodiments, after performing a first antenna switching operation based on the current usage scenario of the terminal device, the control unit 803 is also used for at least one of the following: enabling an antenna switching strategy based on performance parameters, performing a second antenna switching operation based on the performance parameters of the target antenna and the performance parameters of the non-target antenna, the performance parameters including at least the reference signal receiving power of the antenna; enabling an antenna performance optimization strategy to optimize the performance of the working antenna.
[0149] In some embodiments, the second antenna switching operation may include: when it is determined according to the performance parameter that the performance of the non-target antenna is better than the performance of the target antenna, the terminal device selects the non-target antenna as the working antenna.
[0150] The second antenna switching operation may further include: when it is determined according to the performance parameter that the performance of the target antenna is better than the performance of the non-target antenna, or the performance of the target antenna is close to the performance of the non-target antenna, keeping the target antenna as the working antenna.
[0151] In some embodiments, the antenna performance optimization strategy includes at least one of: antenna impedance tuning, beam scanning, and beam switching.
[0152] In some embodiments, the control unit 803 is also used to disable the antenna switching strategy and / or antenna performance optimization strategy based on performance parameters when the current usage scenario of the terminal device is the first usage scenario; and to enable the antenna switching strategy and / or antenna performance optimization strategy based on performance parameters when the current usage scenario of the terminal device is the second usage scenario.
[0153] In some embodiments, the first usage scenario includes a left head-hand scenario and a right head-hand scenario.
[0154] In some embodiments, the target antenna includes an optimal antenna corresponding to the current usage scenario and its parasitic antenna.
[0155] In practical applications, the above device can be a terminal device or a chip applied to a terminal device. In the present application, the device can implement the functions of multiple units by software, hardware, or a combination of software and hardware, so that the device can execute the antenna switching method provided in any of the above embodiments. The technical effects of each technical solution of the device can refer to the technical effects of the corresponding technical solution in the antenna switching method, and this application will not elaborate on this one by one.
[0156] Based on the hardware implementation of each unit in the above antenna switching device, the embodiment of the present application also provides an antenna switching device, such as Fig. 9 As shown, the antenna switching device 90 includes: a processor 901 and a memory 902 configured to store a computer program that can be run on the processor;
[0157] The processor 901 is configured to execute the method steps in the aforementioned embodiment when running a computer program.
[0158] Of course, in practical applications, Fig. 9 As shown, the various components in the antenna switching device 90 are coupled together through a bus system 903. It can be understood that the bus system 903 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 903 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, various buses are marked as bus system 903 in the figure.
[0159] In practical applications, the processor may be at least one of an application-specific integrated circuit (ASIC), a digital signal processing device (DSPD), a programmable logic device (PLD), a field-programmable gate array (FPGA), a controller, a microcontroller, and a microprocessor. It is understandable that for different devices, the electronic device used to implement the functions of the processor may also be other, and the embodiments of the present application do not specifically limit this.
[0160] The above-mentioned memory can be a volatile memory (volatile memory), such as a random access memory (RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD); or a combination of the above-mentioned types of memory, and provide instructions and data to the processor.
[0161] The antenna switching device may be a terminal device or a chip applied to the terminal device.
[0162] The chip may also include an input interface, wherein the processor may control the input interface to communicate with other devices or chips, and specifically, may obtain information or data sent by other devices or chips.
[0163] The chip may further include an output interface, wherein the processor may control the output interface to communicate with other devices or chips, and specifically, may output information or data to other devices or chips.
[0164] In an exemplary embodiment, the embodiment of the present application further provides a computer-readable storage medium, such as a memory including a computer program, and the computer program can be executed by a processor of a terminal device to complete the steps of the aforementioned method.
[0165] An embodiment of the present application further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of any one of the methods described in the embodiments of the present application are implemented.
[0166] Optionally, the computer program product can be applied to the terminal device in the embodiments of the present application, and the computer program instructions enable the computer to execute the corresponding processes implemented by the terminal device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.
[0167] The embodiment of the present application also provides a computer program.
[0168] Optionally, the computer program can be applied to the terminal device in the embodiments of the present application. When the computer program runs on the computer, the computer executes the corresponding processes implemented by the terminal device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.
[0169] It should be understood that in the embodiments of the present application, related data such as user information is involved. When the embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0170] It should be understood that the terms used in the present application are only for the purpose of describing specific embodiments, but are not intended to limit the present application. The singular forms of "a", "said" and "the" used in the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more associated listed items. The expressions "having", "may have", "include" and "include", or "may include" and "may include" in this application can be used to indicate the presence of corresponding features (e.g., elements such as numerical values, functions, operations or components), but the presence of additional features is not excluded.
[0171] It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other and are not necessarily used to describe a specific order or sequence. For example, without departing from the scope of the present invention, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information.
[0172] The technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.
[0173] In the several embodiments provided in the present application, it should be understood that the disclosed methods, devices and equipment can be implemented in other ways. The embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0174] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0175] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0176] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. An antenna switching method, characterized in that: The method comprises: Obtain antenna impedance information and one or more sensor data of the terminal device; Determining a current usage scenario of the terminal device based on the antenna impedance information of the terminal device and the one or more sensor data; Perform a first antenna switching operation based on a current usage scenario of the terminal device.
2. The method according to claim 1, characterized in that The determining, based on the antenna impedance information of the terminal device and the one or more sensor data, a current usage scenario of the terminal device includes: Inputting the antenna impedance information and the first sensor data into a pre-trained scene recognition model to determine first information characterizing the current usage scene; The pre-trained scene recognition model is trained based on antenna impedance information and first sensor data in multiple usage scenarios.
3. The method according to claim 2, characterized in that The determining, based on the antenna impedance information of the terminal device and the one or more sensor data, a current usage scenario of the terminal device further includes: Data processing and analysis are performed based on the second sensor data of the terminal device to determine second information for characterizing the current usage scenario.
4. The method according to any one of claims 1 to 3, characterized in that: The usage scenario includes one or more of the following information: holding state, head-hand state, horizontal and vertical screen state; The holding state is used to indicate left-hand holding, right-hand holding, both-hand holding or not holding; The head-hand state is used to indicate a head-hand state or a non-head-hand state; The horizontal and vertical screen states are used to indicate a left horizontal screen state, a right horizontal screen state or a vertical screen state.
5. The method according to any one of claims 1 to 3, characterized in that: The one or more sensors include at least one of the following: an accelerometer, a gyroscope, a magnetometer, a proximity sensor.
6. The method according to claim 1, characterized in that The performing a first antenna switching operation based on the current usage scenario of the terminal device includes: Determine a target antenna corresponding to a current usage scenario of the terminal device based on a correspondence between one or more usage scenarios and antennas; The terminal device selects the target antenna corresponding to the current usage scenario as the working antenna.
7. The method according to claim 6, characterized in that After performing the first antenna switching operation based on the current usage scenario of the terminal device, the method further includes at least one of the following: Enable an antenna switching strategy based on performance parameters, and perform a second antenna switching operation based on the performance parameters of the target antenna and the performance parameters of the non-target antenna, wherein the performance parameters include at least a reference signal received power of the antenna; An antenna performance optimization strategy is enabled to optimize the performance of the working antenna.
8. The method according to claim 7, characterized in that The performing a second antenna switching operation based on the performance parameters of the target antenna and the performance parameters of the non-target antenna includes: In a case where it is determined according to the performance parameters that the performance of the non-target antenna is better than the performance of the target antenna, the terminal device selects the non-target antenna as the working antenna.
9. The method according to claim 7, characterized in that: The antenna performance optimization strategy includes at least one of the following: antenna impedance tuning, beam scanning and beam switching.
10. The method according to any one of claims 7 to 9, characterized in that: The method further comprises: When the current usage scenario of the terminal device is the first usage scenario, disabling the antenna switching strategy based on the performance parameter and / or the antenna performance optimization strategy; When the current usage scenario of the terminal device is the second usage scenario, the performance parameter-based antenna switching strategy and / or the antenna performance optimization strategy is enabled.
11. The method according to claim 10, characterized in that The first usage scenario includes a left head-hand scenario and a right head-hand scenario.
12. The method according to claim 6, characterized in that The target antenna includes an optimal antenna corresponding to the current usage scenario and a parasitic antenna thereof.
13. An antenna switching device, characterized in that: The antenna switching device comprises: An acquisition unit, used to acquire antenna impedance information and one or more sensor data of a terminal device; a determining unit, configured to determine a current usage scenario of the terminal device based on the antenna impedance information of the terminal device and the one or more sensor data; A control unit is used to perform a first antenna switching operation based on a current usage scenario of the terminal device.
14. An antenna switching device, characterized in that: The antenna switching device includes: a processor and a memory configured to store a computer program that can be run on the processor. Wherein, the processor is configured to execute the steps of the method according to any one of claims 1 to 12 when running the computer program.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.