Antenna control method, electronic equipment and computer readable storage medium

By continuously monitoring the posture of electronic equipment and adjusting the antenna frequency compensation value or switching the working antenna, the problem of antenna communication performance degradation is solved and call efficiency is improved.

CN120676084APending Publication Date: 2025-09-19HUAWEI TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411437753.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2025-09-19

AI Technical Summary

Technical Problem

Existing technologies make it difficult to accurately determine the frequency compensation value of an antenna, which causes the antenna's communication performance to deteriorate when the external space environment changes, affecting call efficiency.

Method used

By continuously monitoring the posture of the electronic device, using sensor data to identify posture changes, and adjusting the frequency compensation value of the antenna or switching the working antenna based on the posture, the antenna can be kept working within the preset frequency band.

Benefits of technology

The communication performance of the antenna is improved, the call efficiency is increased, and the performance degradation caused by posture changes is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120676084A_ABST
    Figure CN120676084A_ABST
Patent Text Reader

Abstract

The invention provides an antenna control method, electronic equipment and a computer readable storage medium. In the communication process of the electronic equipment and other equipment, the electronic equipment can continuously monitor the posture of the electronic equipment and control the antenna based on the posture of the electronic equipment, so that the situation that the natural performance is reduced after the posture of holding the electronic equipment by a user is changed is avoided. According to the method, the communication performance of the antenna is improved, and the call efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to an antenna control method, an electronic device, and a computer-readable storage medium. Background Art

[0002] With the continuous development of wireless communication technology, more and more electronic devices, such as mobile phones, tablet computers, wearable devices, etc., have appeared in people's daily lives.

[0003] Electronic devices can communicate with other devices through antennas. However, antenna performance can vary due to changes in the external space environment. Currently, device manufacturers use antenna tuners to adjust the antenna's operating frequency to improve communication performance. However, how to accurately determine the antenna's frequency compensation value, so that the antenna tuner can adjust the antenna's operating frequency based on this compensation value, requires further research. Summary of the Invention

[0004] This application provides an antenna control method, electronic device, and computer-readable storage medium. While an electronic device is communicating with another device, the electronic device can continuously monitor the device's posture and control the antenna based on that posture, preventing performance degradation caused by changes in the user's grip on the device. This method improves the antenna's communication performance and enhances call efficiency.

[0005] In a first aspect, the present application provides an antenna control method, the method comprising: an electronic device acquiring first sensor data; the electronic device identifying that the electronic device is in a first posture based on the first sensor data; the electronic device tuning the first antenna based on the first posture or switching the working antenna from the first antenna to the second antenna; the electronic device acquiring second sensor data; the electronic device identifying that the electronic device is in a second posture based on the second sensor data; when the second posture is the same as the first posture, the electronic device continues to tune the first antenna in the first posture or continues to keep the working antenna as the second antenna.

[0006] In some embodiments, after the electronic device answers a call, while the user places the electronic device to the ear to answer the call, the electronic device can continuously monitor the posture of the electronic device to identify which left head-hand posture or which right head-hand posture the electronic device is in.

[0007] In some embodiments, after the user places the electronic device next to the ear to answer a call, the electronic device may continue to monitor the posture of the electronic device to prevent the user from changing the position of the electronic device, so that the electronic device can accurately monitor the posture of the electronic device.

[0008] This method allows an electronic device to continuously monitor its posture while communicating with another device and control its antenna based on that posture, preventing performance degradation caused by changes in the user's grip. This method improves the antenna's communication performance and increases call efficiency.

[0009] In combination with the first aspect, in a possible implementation, the method also includes: when the second posture is different from the first posture, the electronic device tunes the first antenna in the second posture or switches the working antenna to a third antenna, which is different from the first antenna.

[0010] In this way, when the user places the electronic device to the ear to answer a call, or after the user places the electronic device to the ear to answer a call, the electronic device detects that the user has changed the posture of the electronic device. The electronic device can control the antenna based on the changed device posture to avoid the situation where the communication performance of the electronic device's antenna is reduced due to the change in the electronic device's posture.

[0011] In combination with the first aspect, in a possible implementation, the electronic device obtains the first sensor data, specifically including: when the electronic device plays the first call data through the receiver, the electronic device obtains the first sensor data.

[0012] In this way, when the electronic device plays call data through the receiver, the electronic device collects sensor data to monitor the posture of the electronic device, which can save power consumption of the electronic device.

[0013] In combination with the first aspect, in a possible implementation method, the electronic device identifies that the electronic device is in a first posture based on the first sensor data, specifically including: the electronic device confirms whether the electronic device is in motion based on the first sensor data; when the electronic device is in motion, the electronic device identifies that the electronic device is in the first posture based on the first sensor data.

[0014] In this way, when the electronic device recognizes that the device is in motion, the user may lift the device up and bring it close to their ear, and the electronic device will then recognize the device's posture. If the electronic device recognizes that the device is stationary, the user may still be holding the device in their hand to answer the call, and the device is not close to their ear. The electronic device may not recognize the device's posture, which can save power consumption.

[0015] In combination with the first aspect, in a possible implementation method, after the electronic device tunes the first antenna based on the first posture or switches the working antenna from the first antenna to the second antenna, the method also includes: the electronic device obtains the communication performance of the first antenna after tuning and the communication performance of the first antenna before tuning, or the communication performance of the second antenna and the communication performance of the first antenna; when the communication performance of the first antenna after tuning is weaker than the communication performance of the first antenna before tuning, or the communication performance of the second antenna is weaker than the communication performance of the first antenna, the electronic device obtains third sensor data and identifies that the electronic device is in a third posture based on the third sensor data, and the third posture is different from the first posture; the electronic device tunes the first antenna based on the third posture or switches the working antenna to a fourth antenna, and the fourth antenna is different from the first antenna.

[0016] In this way, if the communication performance of the first antenna after tuning is weaker than the communication performance before tuning of the first antenna, or the communication performance of the second antenna is weaker than the communication performance of the first antenna, it may be that the device posture recognition is incorrect. The electronic device can re-acquire sensor data and then identify the device posture. This feedback mechanism can avoid the situation where the antenna's communication performance is reduced due to incorrect device posture recognition.

[0017] In combination with the first aspect, in one possible implementation method, the electronic device tunes the first antenna based on the first posture or switches the working antenna from the first antenna to the second antenna, specifically including: the electronic device obtains the first display form of the display screen of the electronic device; the electronic device tunes the first antenna based on the first posture and the first display form or switches the working antenna from the first antenna to the second antenna.

[0018] In a possible implementation, the first display state includes any one of the following: a fully folded state, a fully unfolded state, an intermediate state, or a fully folded state, a fully unfolded state, a first intermediate state, and a second intermediate state.

[0019] For example, when the electronic device 100 is an inward folding screen, the first display screen form may include but is not limited to Figure 1A The expanded state shown, Figure 1B The intermediate state shown, Figure 1C Optional, not limited to Figure 1B The intermediate state shown, the inner folding screen can also include other more intermediate states.

[0020] For example, when the electronic device 100 is an outward folding screen, the first display screen form may include but is not limited to Figure 1D The expanded state shown, Figure 1E The intermediate state shown, Figure 1F Optional, not limited to Figure 1EThe intermediate state shown, the outer folding screen can also include other more intermediate states.

[0021] For example, when the electronic device 100 is a tri-fold screen, the first display screen form may include but is not limited to Figure 1G The expanded state shown, Figure 1H The folded state shown, Figure 1I The folded state shown, Figure 1J The folded state shown, Figure 1K and Figure 1L Optionally, the tri-fold screen may include more intermediate states.

[0022] For example, when the electronic device 100 has a foldable screen, the first display screen form may include but is not limited to: Figure 1M The expanded state shown, Figure 1N The intermediate state shown, Figure 1O Optional, not limited to Figure 1N The intermediate state shown, the upper and lower folding screens can also include other more intermediate states.

[0023] Thus, different display modes of the electronic device's display screen have different impacts on the antenna's communication performance. The electronic device can control the antenna based on both the display mode and the device's posture. Different display modes of the electronic device's display screen require different antenna control strategies.

[0024] In combination with the first aspect, in a possible implementation method, the electronic device tunes the first antenna based on the first posture, specifically including: the electronic device confirms the first frequency compensation value based on the first posture and the first display form; the electronic device tunes the first antenna based on the first frequency compensation value, and the first frequency compensation value is used to adjust the operating frequency band of the first antenna and enable the first antenna to operate within a preset operating frequency band.

[0025] In combination with the first aspect, in one possible implementation method, the electronic device tunes the first antenna based on the first posture, specifically including: the electronic device confirms the first frequency compensation value based on the first posture; the electronic device tunes the first antenna based on the first frequency compensation value, and the first frequency compensation value is used to adjust the operating frequency band of the first antenna and enable the first antenna to operate within a preset operating frequency band.

[0026] In combination with the first aspect, in one possible implementation, the communication performance of the antenna is determined by any one or more parameters including the antenna signal receiving power, the antenna signal maximum transmitting power, the power back-off value, the path loss of the antenna path, the channel bandwidth of the antenna, the antenna gain, the antenna efficiency, and the antenna radiation pattern.

[0027] In combination with the first aspect, in a possible implementation manner, the first posture or the second posture includes any one of the following: a first left head-hand gesture, a second left head-hand gesture, a first right head-hand gesture, and a second right head-hand gesture.

[0028] Optionally, the first posture or the second posture may also include any one of the following: left head-hand posture, right head-hand posture.

[0029] In combination with the first aspect, in one possible implementation, the electronic device confirms that the electronic device is in a first posture based on the first sensor data, specifically including: the electronic device determines the values ​​of the first sensor data obtained on the X-axis, Y-axis and Z-axis; when the values ​​of the first sensor data on the Y-axis and the values ​​on the Z-axis meet the first condition, the electronic device confirms that the electronic device is in the first posture based on the first sensor data.

[0030] In this way, after the electronic device answers a call, before the user places the electronic device next to the ear to answer the call, the electronic device can determine the device posture of the electronic device based on the value of the first sensor data, which can speed up the speed at which the electronic device confirms the device posture of the electronic device.

[0031] In combination with the first aspect, in a possible implementation method, the electronic device confirms that the electronic device is in a first posture based on the first sensor data, specifically including: when the electronic device confirms that the electronic device is in a left head-hand posture based on the first sensor data, the electronic device confirms that the first posture is a first left head-hand posture; when the electronic device confirms that the electronic device is in a right head-hand posture based on the first sensor data, the electronic device confirms that the first posture is a first right head-hand posture.

[0032] In this way, after the electronic device answers a call and before the user places the electronic device to the ear to answer the call, the electronic device can determine, based on the value of the first sensor data, that the electronic device is in the left head-hand posture or the right head-hand posture. In the case of multiple left head-hand postures or multiple right head-hand postures, the electronic device can use the first left head-hand posture among the multiple left head-hand postures as the first posture, or the electronic device can use the first right head-hand posture among the multiple right head-hand postures as the first posture.

[0033] In combination with the first aspect, in one possible implementation, the X-axis, Y-axis and Z-axis are the X-axis, Y-axis and Z-axis of the spherical coordinate system; when the first posture is the first left head-hand posture, the first condition includes: the value of the first sensor data on the Y-axis and the value on the Z-axis are greater than 0; when the first posture is the first right head-hand posture, the first condition includes: the value of the first sensor data on the Y-axis and the value on the Z-axis are less than 0.

[0034] In combination with the first aspect, in a possible implementation method, the electronic device confirms that the electronic device is in the second posture based on the second sensor data, specifically including: the electronic device obtains the pitch angle of the plane where the electronic device is located relative to the XOY plane in the spherical coordinate system, and the azimuth angle of the plane where the electronic device is located relative to the YOZ plane in the spherical coordinate system based on the second sensor data; when the azimuth angle and the pitch angle meet the second condition, the electronic device confirms that the electronic device is in the second posture.

[0035] In this way, when a user holds the electronic device to their ear to answer a call, the electronic device can determine the electronic device's pitch and azimuth based on the second sensor data, and then determine the device's posture based on the pitch and azimuth of the electronic device. This method can more accurately determine the device's posture, and can also verify whether the electronic device's first posture determined by the electronic device based on the first sensor data is correct.

[0036] In combination with the first aspect, in a possible implementation method, when the second posture is the first left head-hand posture, the second condition includes: the azimuth angle is greater than the first value and less than the second value, and the pitch angle is greater than the third value and less than the fourth value; when the second posture is the second left head-hand posture, the second condition includes: the azimuth angle is greater than the fifth value and less than the sixth value, and the pitch angle is greater than the seventh value and less than the eighth value; when the second posture is the first right head-hand posture, the second condition includes: the azimuth angle is greater than the ninth value and less than the tenth value, and the pitch angle is greater than the eleventh value and less than the twelfth value; when the second posture is the second right head-hand posture, the second condition includes: the azimuth angle is greater than the thirteenth value and less than the fourteenth value, and the pitch angle is greater than the fifteenth value and less than the sixteenth value.

[0037] Illustratively, the first left head-hand gesture may be a left head-hand gesture A, the first value may be c1, the second value may be d1, the third value may be a1, and the fourth value may be b1.

[0038] Illustratively, the second left head-hand gesture may be left head-hand gesture B, the fifth value may be c2, the sixth value may be d2, the seventh value may be a2, and the eighth value may be b2.

[0039] Illustratively, the first right head-hand gesture may be right head-hand gesture A, the ninth value may be g1, the tenth value may be h1, the eleventh value may be e1, and the twelfth value may be f1.

[0040] Illustratively, the second right head-hand gesture may be right head-hand gesture B, the thirteenth value may be g2, the fourteenth value may be h2, the fifteenth value may be e2, and the sixteenth value may be f2.

[0041] In combination with the first aspect, in a possible implementation manner, the first sensor data includes acceleration data and / or gyroscope data, and the second sensor data includes acceleration data and / or gyroscope data.

[0042] In combination with the first aspect, in a possible implementation method, the electronic device confirms that the electronic device is in a first posture based on the first sensor data, specifically including: the electronic device obtains a first pitch angle of the plane where the electronic device is located relative to the XOY plane in the spherical coordinate system, and a first azimuth angle of the plane where the electronic device is located relative to the YOZ plane in the spherical coordinate system based on the first sensor data; when the first azimuth angle and the first pitch angle meet the third condition, the electronic device confirms that the electronic device is in the first posture.

[0043] The electronic device confirms that the electronic device is in the second posture based on the second sensor data, specifically including: the electronic device obtains a second pitch angle of the plane where the electronic device is located relative to the XOY plane in the spherical coordinate system, and a second azimuth angle of the plane where the electronic device is located relative to the YOZ plane in the spherical coordinate system based on the second sensor data; when the second azimuth angle and the second pitch angle meet the fourth condition, the electronic device confirms that the electronic device is in the second posture.

[0044] For the interpretation of the third and fourth conditions, please refer to the interpretation of the second condition.

[0045] In this way, when a user holds the electronic device to his ear to answer a call, the electronic device can continuously monitor whether the device posture of the electronic device has changed in this manner.

[0046] In a second aspect, the present application provides an electronic device, which includes one or more memories and one or more processors; wherein, the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer programs. When the one or more processors execute and call the computer program, the electronic device executes a method provided in any possible implementation of any of the above aspects.

[0047] In a third aspect, the present application provides a computer-readable storage medium comprising instructions, which, when executed on an electronic device, enables the electronic device to execute a method provided in any possible implementation of any of the above aspects.

[0048] In a fourth aspect, the present application provides a chip system, which includes one or more processors, and the processor is used to call computer instructions to enable an electronic device to execute a method provided in any possible implementation of any of the above aspects.

[0049] In a fifth aspect, the present application provides a computer program product comprising instructions, which, when the computer program product is run on an electronic device, enables the electronic device to execute a method provided in any possible implementation of any of the above aspects.

[0050] For the description of the beneficial effects of the second to fifth aspects, reference may be made to the description of the beneficial effects in the first aspect, and this application will not repeat them here. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1A-Figure 1P A schematic diagram showing a display form of a display screen of an electronic device 100 is shown;

[0052] Figure 2A-2B Schematic diagrams showing left head-hand posture and right head-hand posture;

[0053] Figure 3 shows a schematic diagram of the hardware structure of the electronic device 100;

[0054] Figure 4 shows a schematic diagram of the software structure of the electronic device 100;

[0055] Figure 5A A schematic diagram showing the interaction of multiple functional modules in an electronic device 100 is shown;

[0056] Figure 5B A schematic diagram showing the interaction of multiple functional modules in another electronic device 100 is shown;

[0057] Figure 6 A schematic diagram showing the interaction of multiple hardware components in another electronic device 100 is shown;

[0058] Figure 7 A schematic diagram showing an electronic device 100 controlling an antenna in a first stage is shown;

[0059] Figure 8 A schematic diagram showing another electronic device 100 controlling an antenna in the first stage is shown;

[0060] Figure 9 A schematic diagram showing a method of controlling an antenna after the electronic device 100 tunes the first antenna or switches the working antenna;

[0061] Figure 10 A schematic diagram showing the electronic device 100 continuously monitoring the posture of the electronic device 100 to control the antenna of the electronic device 100 is shown;

[0062] Figure 11-12 shows a schematic diagram of the electronic device 100 in a folded state;

[0063] Figure 13A schematic flow chart of an antenna control method is shown. DETAILED DESCRIPTION

[0064] 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.

[0065] 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.

[0066] The term "user interface (UI)" in the following embodiments of this application refers to the media interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The commonly used form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operations displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of a wearable device.

[0067] First, the display form of the display screen of the electronic device 100 provided in this application is introduced.

[0068] The display screen of the electronic device 100 may include a straight screen and a folding screen. Folding screens can be divided into two-fold screens and multi-fold screens. Two-fold screens can be divided into inner folding screens and outer folding screens. Multi-fold screens can be three-fold screens, etc.

[0069] Figure 1A-Figure 1C A schematic diagram of the display form of the inward folding screen is shown.

[0070] The display form of the inward folding screen can be divided into folded state, intermediate state and unfolded state.

[0071] Figure 1A A schematic diagram showing the display form when the inner folding screen is in the unfolded state is shown.

[0072] Figure 1A(a) in the figure exemplarily shows a front view of the inner folding screen when it is in the unfolded state. Among them, when the inner folding screen is in the unfolded state, the displayable screens of the folding screen include screen A, screen B and screen C. Screen A and screen B can be a complete display screen or two independent display screens. The display area where screen A and screen B are located can also be called the inner screen. Exemplarily, when the inner folding screen is in the unfolded state, the angle α between screen A and screen B is greater than or equal to the first value and less than or equal to the second value. Exemplarily, the first value can be 160 degrees and the second value can be 180 degrees. For example, when the inner folding screen is in the unfolded state, the angle α between screen A and screen B can be 180 degrees.

[0073] Figure 1A (b) in the figure shows an exemplary back view of the inner folding screen in the folded state. When the inner folding screen is in the folded state, the folding screen display also includes screen C. Screen C is a completely independent display from screens A and B.

[0074] Figure 1B A schematic diagram showing the display state when the inner folding screen is in the intermediate state is shown.

[0075] The intermediate state means that the inner folding screen can be bent in the direction facing screen A and screen B into a folded state with a certain angle. When the inner folding screen is in the intermediate state, the screens that can be displayed by the folding screen include screen A, screen B and screen C. When the inner folding screen is in the intermediate state, the angle α between screen A and screen B is greater than or equal to the third value and less than or equal to the first value. Exemplarily, the first value can be 160 degrees, and the third value can be 90 degrees. For example, when the inner folding screen is in the folded state, the angle α between screen A and screen B can be 120 degrees.

[0076] Optional, Figure 1B Only one display form when the inner folding screen is in the intermediate state is shown. The angle α between screen A and screen B is different, and the display form when the inner folding screen is in the intermediate state is also different.

[0077] Figure 1C A schematic diagram showing the display form when the inner folding screen is in a folded state is shown.

[0078] The inner folding screen can continue to bend in the direction where screen A and screen B face each other until the inner folding screen is in a folded state.

[0079] like Figure 1C As shown, when the inner foldable screen is in the folded state, the display screen of the inner foldable screen only includes screen C, and screens A and B are hidden and invisible. The angle α between screens A and B is greater than or equal to 0 degrees and less than a third value. For example, the third value can be 90 degrees. For example, when the inner foldable screen is in the folded state, the angle α between screens A and B can be 0 degrees.

[0080] Figure 1D-1F A schematic diagram of the display form of the external folding screen is shown.

[0081] The external folding screen is similar to the internal folding screen and can also be divided into three display forms: unfolded state, intermediate state and folded state.

[0082] Figure 1D A schematic diagram showing the display form when the outer folding screen is in the unfolded state is shown.

[0083] in, Figure 1D (a) in the figure exemplarily shows a front view of the outer folding screen in the unfolded state. Wherein, when the outer folding screen is in the unfolded state, the displayable screens of the folding screen include screen A and screen B. Screen A and screen B can be a complete display screen or two independent display screens. Exemplarily, when the inner folding screen is in the unfolded state, the angle α between screen A and screen B is greater than or equal to the first value and less than or equal to the second value. Exemplarily, the first value can be 160 degrees and the second value can be 180 degrees. Exemplarily, when the outer folding screen is in the unfolded state, the angle α between screen A and screen B can be 180 degrees.

[0084] Figure 1D (b) in the figure shows an exemplary back view of the outer folding screen in the unfolded state. When the outer folding screen is in the unfolded state, compared with the inner folding screen in the unfolded state, the display screen of the outer folding screen does not include the C screen.

[0085] Figure 1E A schematic diagram showing the display form when the outer folding screen is in the intermediate state is shown.

[0086] The intermediate state is when the outer folding screen can be bent in a direction opposite to screen A and screen B into a folded state with a certain angle. That is, the folding directions of the outer folding screen and the inner folding screen are opposite. When the outer folding screen is in the intermediate state, the displayable screens of the folding screen include screen A and screen B, and the angle α between screen A and screen B is greater than or equal to a third value and less than or equal to the first value. For example, the third value can be 90 degrees, and the first value can be 160 degrees. Exemplarily, when the outer folding screen is in the intermediate state, the angle α between screen A and screen B can be 120 degrees.

[0087] Optional, Figure 1E Only one display form when the outer folding screen is in the intermediate state is shown. The angle α between screen A and screen B is different, and the display form when the inner folding screen is in the intermediate state is also different.

[0088] Figure 1F A schematic diagram showing the display form when the outer folding screen is in a folded state is shown.

[0089] like Figure 1FAs shown, when the external foldable screen is in the folded state, the display screens of the foldable screen may be screen A and screen B. The angle α between screens A and B is greater than or equal to 0 degrees and less than or equal to a third value, for example, the third value may be 90 degrees. For example, when the external foldable screen is in the folded state, the angle α between screens A and B may be 0 degrees.

[0090] Optional, Figure 1A-1F The inner folding screen and the outer folding screen shown are both described as folding left and right. In some embodiments, the inner folding screen and the outer folding screen can also be folded up and down, which is not limited in this application.

[0091] Figure 1G-1L A schematic diagram of the display form of a tri-fold screen is shown.

[0092] The tri-fold screen can be divided into three display forms: unfolded state, intermediate state and folded state.

[0093] Figure 1G A schematic diagram showing the display form of the tri-fold screen when it is in the unfolded state.

[0094] Figure 1G (a) in the figure exemplarily shows a front view of the tri-fold screen in the unfolded state. When the tri-fold screen is in the unfolded state, the displayable screens of the tri-fold screen include screen A, screen B and screen C. The tri-fold screen also includes a rotating shaft D and a rotating shaft E, and the rotating shaft D and the rotating shaft E are used to rotate screen A, screen B and screen C in the electronic device 100. Screen A and screen B can rotate along the directions opposite to or facing each other along the rotating shaft D until the back of screen A fits with the back of screen B, or until the display surface of screen A fits with the display surface of screen B. When the rotation angle of screen C remains unchanged, when screen B rotates along the rotating shaft D, screen B can drive screen C to rotate along the rotating shaft D by the same angle.

[0095] Screens C and B can rotate along axis E in opposite or opposite directions until the back of screen C is aligned with the back of screen B, or until the display surface of screen C is aligned with the display surface of screen B. When screen B rotates along axis E, screen B can drive screen A to rotate along axis E by the same angle, provided that the rotation angle of screen A remains unchanged.

[0096] In some embodiments, the angle between screen A and screen B may be referred to as α, and the angle between screen B and screen C may be referred to as β.

[0097] When the tri-fold screen is in the unfolded state, the display surfaces of screens A, B, and C of electronic device 100 can all be in the same plane. The angle α between the display surfaces of screens A and B can be close to 180°, and the angle β between the display surfaces of screens B and C can be close to 180°.

[0098] exist Figure 1GIn the front view shown in (a), the display screens of the electronic device 100 can be screen A, screen B and screen C from left to right.

[0099] Figure 1G (b) in the figure exemplarily shows the rear view of the tri-fold screen when it is in the unfolded state.

[0100] When the tri-fold screen is in the unfolded state, the backs of screens A, B, and C of the electronic device 100 can all be in the same plane. The angle between the backs of screens A and B can be close to 180°, and the angle between the backs of screens B and C can be close to 180°.

[0101] Figure 1H A schematic diagram showing the display form of the tri-fold screen when it is in the folded state.

[0102] Screen A and screen B can rotate in opposite directions along axis D until the back of screen A fits with the back of screen B. Screen C and screen B can rotate in opposite directions along axis E until the display surface of screen C fits with the display surface of screen B, so that the tri-fold screen is in a folded state.

[0103] When the tri-fold screen is in a folded state, the angle α between the display surface of screen A and the display surface of screen B can be close to 360°, the angle between the back of screen A and the back of screen B can be close to 0°, the angle β between the display surface of screen B and the display surface of screen C can be close to 0°, and the angle between the back of screen B and the back of screen C can be close to 360°.

[0104] Figure 1H (a) in FIG. 1 shows a front view of the electronic device in a folded state. Figure 1H As shown in (a), when the tri-fold screen is in the folded state, the electronic device 100 only displays the display surface of screen A.

[0105] Figure 1H (b) in FIG. 1 shows a rear view of the electronic device in a fully folded state. Figure 1H As shown in (b), when the tri-fold screen is in the folded state, the electronic device 100 only displays the back of the C screen.

[0106] Figure 1I A schematic diagram showing the display form of the tri-fold screen when it is in the folded state.

[0107] The folding state may include but is not limited to the BC folding state, the AB folding state and the BC folding state.

[0108] 1. The state where only screen B and screen C are attached can also be called BC folding state.

[0109] Screen C and screen B can rotate in opposite directions along the rotation axis E until the display surface of screen C is in contact with the display surface of screen B, so that the tri-fold screen is in the BC folded state.

[0110] Figure 1I Schematic diagrams of some electronic devices 100 in the BC folding state are exemplarily shown.

[0111] like Figure 1I (a) in FIG. 1 is a front view of the electronic device 100 in the BC folded state. Figure 1I As shown in (a) of FIG, when the tri-fold screen is in the BC folded state, the electronic device 100 displays the display surface of screen A and the back surface of screen C. The angle α between the display surface of screen A and the display surface of screen B can be close to 180°. The angle β between the display surface of screen B and the display surface of screen C can be close to 0°, and the angle between the back surface of screen B and the back surface of screen C can be close to 360°.

[0112] Figure 1I (b) in FIG. 1 shows the rear view of the electronic device in the BC folded state. Figure 1I As shown in (b) in FIG, when the tri-fold screen is in the BC folded state, the electronic device 100 displays the back of screen A and the back of screen B. The angle between the back of screen A and the back of screen B can be close to 180°.

[0113] 2. The state where only screen A and screen B are attached can also be called AB folded state.

[0114] Screen A and screen B can rotate in opposite directions along the rotation axis D until the back of screen A is in contact with the back of screen B, so that the tri-fold screen is in an AB folded state.

[0115] Figure 1J Schematic diagrams of some electronic devices 100 in the AB folded state are exemplarily shown.

[0116] like Figure 1J (a) in FIG. 1 is a front view of the electronic device 100 in the AB folded state. Figure 1J As shown in (a) of FIG. 1 , when the tri-fold screen is in the AB folded state, the electronic device 100 displays the display surface of screen B and the display surface of screen C. The angle β between the display surface of screen B and the display surface of screen C can be close to 180°.

[0117] Figure 1J (b) in FIG. 1 shows the rear view of the electronic device in the AB folded state. Figure 1JAs shown in (b) of FIG, when the tri-fold screen is in the AB folded state, the electronic device 100 displays the display surface of screen A and the back surface of screen C. The angle α between the display surface of screen A and the display surface of screen B can be close to 360°. The angle between the back surface of screen A and the back surface of screen B can be close to 0°. The angle between the back surface of screen B and the back surface of screen C can be close to 180°.

[0118] Figure 1K and Figure 1L A schematic diagram showing the display form when the tri-fold screen is in the middle state is shown.

[0119] Figure 1K The figure shows the front view of the tri-fold screen in the middle state. Figure 1K As shown, when the tri-fold screen is in the intermediate state, the electronic device 100 displays the display surface of screen A, the display surface of screen B, and the display surface of screen C. The angle α between the display surface of screen A and the display surface of screen B can be between 180° and 360°. The angle β between the display surface of screen B and the display surface of screen C can be between 0° and 180°.

[0120] Figure 1L The figure shows the rear view of the tri-fold screen in the middle state. Figure 1L As shown, when the tri-fold screen is in the intermediate state, the electronic device 100 displays the back of screen A, the back of screen B, and the back of screen C. The angle between the back of screen A and the back of screen B can be between 0° and 180°. The angle between the back of screen B and the back of screen C can be between 180° and 360°.

[0121] Optional, Figure 1G-1L The screens A, B, and C shown may be a complete display screen, the screens A and B may be a complete display screen, and the screens B and C may be a complete display screen.

[0122] It should be noted that Figure 1G-1L Only a partial display form diagram of the tri-fold screen is shown. The tri-fold screen can also have other display forms, which is not limited in this application.

[0123] Figure 1M-1O A schematic diagram of the display form of the upper and lower folding screen is shown.

[0124] The display modes of the upper and lower folding screens may include but are not limited to the unfolded state, the intermediate state and the folded state.

[0125] Figure 1M A schematic diagram showing the upper and lower folding screens in the unfolded state is shown.

[0126] The upper and lower folding screens provided in the embodiments of the present application can be either an outward-folding folding screen device or an inward-folding folding screen device. An outward-folding folding screen device folds the electronic device by folding outward, while an inward-folding folding screen device folds the electronic device by folding inward.

[0127] The embodiments of the present application are described using an inward-folding folding screen device as an example.

[0128] Figure 1M (a) shows the front view of the upper and lower folding screens in the unfolded state. Figure 1M As shown in (a) in FIG, the upper and lower folding screens include screen A, screen B and a folding line 101.

[0129] Optionally, screen A and screen B can be a complete display screen.

[0130] In the unfolded state, screens A and B face the user, and the angle between them is approximately 180°. That is, the plane of screen A and the plane of screen B are on the same horizontal plane. In the unfolded state, electronic device 100 can display images on screens A and B simultaneously. This allows the user to view images from both screens A and B simultaneously.

[0131] Figure 1M (b) in FIG. 1 shows a rear view of the electronic device 100 in an unfolded state. Figure 1M As shown in (b), the electronic device 100 includes a camera module and a display screen.

[0132] When the upper and lower folding screens are in the unfolded state, the display screen is off and cannot be operated.

[0133] Figure 1N A schematic diagram showing the upper and lower folding screens in the intermediate state is shown.

[0134] like Figure 1N As shown, in the intermediate state, there is a certain angle between the plane where screen A is located and the plane where screen B is located, and the angle is greater than 0° and less than 180°.

[0135] In the intermediate state, the electronic device 100 may display images only on screen A or screen B. In this way, the user can view images from only screen A or screen B. Alternatively, the electronic device 100 may simultaneously display different images on screens A and B. In this way, the user can selectively view images from screen A or screen B on both displays.

[0136] Figure 1O A schematic diagram showing the upper and lower folding screens in a folded state is shown.

[0137] like Figure 1OAs shown, in the folded state, the angle formed by the plane where screen A is located and the plane where screen B is located is close to 0°, and screen A and screen B are folded face to face.

[0138] In the folded state, screen A and screen B no longer face the user, screen A and screen B cannot display, and the electronic device 100 can display the picture through the display screen.

[0139] In the folded state, the display screen is in a bright and operable state. For example, the display screen can be used to display information such as time and date.

[0140] Figure 1P A schematic diagram of the display form of a straight screen is shown.

[0141] like Figure 1P As shown, the straight screen includes a complete display screen, which is not foldable.

[0142] It should be noted that the above Figure 1A-Figure 1P The schematic diagrams of display modes of several display screens are merely illustrative. The display screen of the electronic device 100 may also include other display modes, which are not limited in this application.

[0143] Electronic devices are pre-installed with multiple antennas, which transmit and receive signals and communicate with other devices. However, the antenna's communication performance is affected by the device's posture. For example, when a user holds an electronic device close to their head, the head and hands, due to their high dielectric properties and low electrical conductivity, can cause the antenna to shift in frequency (referred to as frequency deviation), attenuating the antenna signal and reducing the antenna's communication performance.

[0144] Frequency deviation, also known as frequency error, refers to the extent to which an antenna's actual operating frequency band exceeds its preset operating frequency band, or the extent to which the RF signal deviates from the center frequency of its channel. It is typically expressed in PPM (Parts Per Million). The smaller the frequency deviation, the better the signal quality. When an antenna experiences frequency deviation, this deviation can be corrected by adjusting the antenna's frequency to ensure accurate signal transmission and reception.

[0145] During a call on an electronic device, in order to prevent the frequency deviation of the antenna from affecting the call quality of the electronic device. When the electronic device plays call data through the receiver, if the current working antenna of the electronic device is the first antenna, that is, the call data is received and sent by the first antenna, the electronic device can detect the posture of the electronic device and determine the first frequency compensation value of the first antenna based on the posture of the electronic device or determine that the optimal working antenna is the second antenna, and the first antenna is different from the second antenna. The electronic device can tune the first antenna based on the first frequency compensation value, and the first frequency compensation value is used to eliminate or weaken the frequency deviation of the antenna, so that the actual working frequency band of the first antenna is within the preset working frequency band. Alternatively, the electronic device can also switch the working antenna from the first antenna to the second antenna.

[0146] Optionally, the electronic device switches the working antenna to the second antenna by first tuning the second antenna to optimal performance, or by directly switching to the second antenna without tuning the second antenna. In some products or embodiments, the second antenna requires tuning, while in other products or embodiments, the second antenna does not require tuning.

[0147] It should be noted that the optimal working antenna can be adjusted according to different products and different device postures. Switching the working antenna to the second antenna mentioned below can mean that the second antenna is the optimal antenna in the current device posture.

[0148] Optionally, the posture of the electronic device may include but is not limited to any one of the following: left head-hand posture and right head-hand posture.

[0149] The left head-hand gesture may refer to a gesture in which the user holds the electronic device with his left hand and places it close to his head. Figure 2A The diagram shows an electronic device in a left-head-hand posture. When the electronic device is in a left-head-hand posture, the user can listen to the call data played by the electronic device through the earpiece through the left ear.

[0150] The right head-hand gesture may refer to a gesture in which the user holds the electronic device with his right hand and places it close to the head. Figure 2B The diagram shows an electronic device in a right-handed head posture. When the electronic device is in a right-handed head posture, the user can listen to the call data played by the electronic device through the earpiece through the right ear.

[0151] Optionally, when the user holds the electronic device in their left or right hand and places it close to their head, the relative position between the electronic device and the head also differs. The left hand gesture can be categorized into different left hand gestures, or the right hand gesture can be categorized into different right hand gestures, to more precisely identify the electronic device's gesture and more accurately tune the first antenna of the electronic device or switch to the optimal working antenna.

[0152] Through this method, the electronic device can eliminate or weaken the influence of the posture change of the electronic device on the frequency deviation of the first antenna, thereby improving the communication performance of the antenna, improving the call quality of the electronic device, and enhancing the user's call experience.

[0153] In some embodiments, different display states of the electronic device's display screen have different effects on the frequency deviation of the electronic device's antenna. When the electronic device plays call data through the receiver, the electronic device can determine the first frequency compensation value of the first antenna or determine the optimal working antenna as the second antenna based on the display state of the electronic device's display screen and the posture of the electronic device. Exemplary, the display state of the display screen may include but is not limited to Figure 1A-Figure 1P The shape of the display screen shown.

[0154] In this way, the accuracy of the electronic device in determining the frequency compensation value of the current working antenna or determining the optimal working antenna can be improved.

[0155] In some embodiments, after the electronic device tunes the first antenna based on the first frequency compensation value, the electronic device may compare the communication performance of the first antenna after tuning with the communication performance of the first antenna before tuning. If the communication performance of the first antenna after tuning is better than the communication performance of the first antenna before tuning, the electronic device may continue to tune the first antenna based on the first frequency compensation value. If the communication performance of the first antenna after tuning is weaker than the communication performance of the first antenna before tuning, it may be that the electronic device incorrectly identifies the posture of the electronic device, resulting in an error in the antenna tuning of the electronic device. The electronic device may reconfirm the posture of the electronic device and determine the frequency compensation value of the first antenna or reconfirm the optimal working antenna based on the reconfirmed posture of the electronic device.

[0156] In some embodiments, after the electronic device switches the working antenna from the first antenna to the second antenna, the electronic device may compare the communication performance of the first antenna with the communication performance of the second antenna. If the communication performance of the second antenna is better than that of the first antenna, the electronic device may maintain the second antenna as the working antenna. If the communication performance of the second antenna is weaker than that of the first antenna, it may be that the electronic device has incorrectly identified the posture of the electronic device. The electronic device may reconfirm the posture of the electronic device and determine the frequency compensation value of the first antenna based on the reconfirmed posture of the electronic device or reconfirm the switching of the working antenna.

[0157] In this way, the electronic device can determine whether the communication performance of the electronic device has been improved through feedback, thereby avoiding the situation where the call quality of the electronic device is reduced due to tuning errors or incorrect switching of the optimal working antenna caused by misidentification of the electronic device's posture.

[0158] Optionally, the communication performance of the antenna may be determined based on, but not limited to, any one or more of the following parameters: reference signal receiving power (RSRP), antenna signal maximum transmit power (also referred to as capped power, which is jointly affected by electromagnetic wave absorption ratio or specific absorption rate (SAR) and maximum power reduction (MPR)), power backoff value, etc. In some embodiments, RSRP may also be referred to as antenna signal receiving power.

[0159] Optionally, in addition to being limited to the above parameters, the communication performance of the antenna can also be determined based on but not limited to any one or more of the following parameters: antenna path loss, antenna channel bandwidth, antenna gain, antenna efficiency, antenna radiation pattern, etc.

[0160] Optionally, different device postures and / or different usage scenarios may have different impacts on the channel bandwidth, antenna gain, antenna efficiency, and antenna pattern of the antenna.

[0161] After identifying that the electronic device is in the right head-hand posture or the left head-hand posture, the electronic device needs to lower the SAR value to reduce the human body's absorption of electromagnetic radiation.

[0162] When the SAR value decreases, the antenna's transmit power also decreases. To mitigate the impact of the SAR reduction on the antenna's transmit power, in some embodiments, the electronic device can determine the magnitude of the SAR reduction based on the electronic device's posture. The magnitude of the SAR reduction varies depending on the electronic device's posture. This allows the electronic device to precisely reduce the SAR value, minimizing the impact on the antenna's transmit power.

[0163] For example, when the electronic device is in a left-hand posture, the SAR value decreases by an amount A. When the electronic device is in a right-hand posture, the SAR value decreases by an amount B, and A and B are different.

[0164] For another example, in a case where multiple left and right hand postures are included, including multiple right head-hand postures, when the electronic device is in left head-hand posture A, the SAR value is reduced by an amplitude value A1; when the electronic device is in left head-hand posture B, the SAR value is reduced by an amplitude value B1; and when the electronic device is in left head-hand posture C, the SAR value is reduced by an amplitude value C1. When the electronic device is in right head-hand posture A, the SAR value is reduced by an amplitude value A2; when the electronic device is in right head-hand posture B, the SAR value is reduced by an amplitude value B2; and when the electronic device is in right head-hand posture C, the SAR value is reduced by an amplitude value C2. A1, B1, and C1 are different. A2, B2, and C2 are different.

[0165] Figure 3 A schematic diagram of the hardware structure of the electronic device 100 is shown.

[0166] The electronic device 100 can be a mobile phone, a tablet computer, a laptop computer, a netbook, a smart screen, an in-vehicle device, a business intelligent terminal (including: videophone, conference desktop intelligent terminal, etc.), a personal digital assistant (PDA), an augmented reality (AR)\virtual reality (VR) device, an artificial intelligence (AI) device, etc. The electronic device 100 can also be other electronic devices, such as a laptop computer (Laptop) with a touch-sensitive surface (such as a touch panel). The embodiment of the present application does not limit the specific form of the electronic device. The embodiment of the present application is described by taking the electronic device 100 as a mobile phone as an example.

[0167] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a sensor module 180, a display 194, a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include one or more sensors, such as a gyroscope sensor 180B, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a touch sensor 180K, etc. In some embodiments, the sensor module 180 may also include one or more of the following sensors: a pressure sensor, an air pressure sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, an ambient light sensor, a bone conduction sensor, etc.

[0168] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, 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.

[0169] 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 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.

[0170] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or is reusing. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system. In some embodiments, the processor 110 may include one or more interfaces, such as a universal serial bus (USB) interface.

[0171] USB interface 130 is an interface that complies with USB standards and specifications, and may be a MiniUSB interface, MicroUSB interface, USB Type-C interface, etc. USB interface 130 can be used to connect a charger to charge electronic device 100, and can also be used to transfer data between electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. This interface can also be used to connect other electronic devices, such as AR devices.

[0172] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.

[0173] 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 and provides power to the processor 110, the internal memory 121, the display 194, the wireless communication module 160, and the like. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be provided in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be provided in the same device.

[0174] The wireless communication function of the electronic 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.

[0175] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antenna. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antenna can be used in combination with a tuning switch, which can change the impedance and / or frequency of the antenna to eliminate or reduce the frequency deviation of the antenna so that the actual operating frequency band of the antenna is within the preset operating frequency band. In some embodiments, the antenna can be used in combination with a radio frequency switch, which can change the operating frequency band and / or impedance of the antenna in combination with a tuner (Tuner) or a separate resistor, capacitor or inductor to achieve matching between the feed network and the conduction circuit, and change the performance of the antenna's required operating frequency band so that the antenna can achieve the maximum radiation communication performance that can be achieved in the operating frequency band.

[0176] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier (PA), 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.

[0177] Optionally, not limited to antenna 1, the mobile communication module 150 can also receive and send electromagnetic waves through other antennas.

[0178] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, demodulates 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.

[0179] Optionally, not limited to antenna 2, the mobile communication module 150 can also receive and send electromagnetic waves through more other antennas.

[0180] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0181] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0182] Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.

[0183] In some embodiments, a sensor may be provided on the display screen 194 , and the electronic device 100 may confirm whether the current user is holding the electronic device 100 in the left hand or the right hand based on sensor data collected by the sensor on the display screen 194 .

[0184] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).

[0185] The electronic device 100 can implement audio functions such as calls and recording through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, and the application processor.

[0186] 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.

[0187] The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls through the speaker 170A.

[0188] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or a voice message, the user can place the receiver 170B close to the ear to hear the voice.

[0189] Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, realize directional recording function, etc.

[0190] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.

[0191] The magnetic sensor 180D includes a Hall sensor, and the electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case.

[0192] Accelerometer 180E can detect the magnitude of acceleration of electronic device 100 in all directions (generally three axes). It can also detect the magnitude and direction of gravity when electronic device 100 is stationary. It can also be used to identify the electronic device's posture, enabling applications such as switching between landscape and portrait modes and pedometers.

[0193] In some embodiments, the electronic device 100 may determine the posture of the electronic device 100 based on the gyroscope data collected by the gyroscope sensor 180B and the acceleration data collected by the acceleration sensor 180E.

[0194] The distance sensor 180F is used to measure distance. The electronic device 100 can measure distance using infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure distance to achieve fast focusing.

[0195] In some embodiments, the electronic device 100 can confirm whether the electronic device 100 is close to the head based on data collected by the distance sensor 180F.

[0196] The touch sensor 180K is also called a "touch-sensitive device." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, at a location different from that of the display screen 194.

[0197] In some embodiments, if the display screen of the electronic device 100 is a flexible screen, the electronic device 100 may further include a Hall sensor, and the electronic device 100 may confirm the display form of the display screen based on sensor data collected by the Hall sensor.

[0198] In some embodiments, the electronic device 100 may further include one or more of a button, a motor, and an indicator. The buttons may include a power button, a volume button, and the like. The buttons may be mechanical buttons or touch buttons. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100. The motor may generate a vibration prompt. The indicator may be an indicator light, which may be used to indicate charging status, battery level changes, messages, missed calls, notifications, and the like.

[0199] The SIM card interface 195 is used to connect a SIM card.

[0200] Figure 4 A schematic diagram of the software structure of the electronic device 100 is shown.

[0201] The electronic device 100 may be a device running iOS, Android, Microsoft or other operating systems. The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.

[0202] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.

[0203] The application layer can include a series of application packages.

[0204] like Figure 4As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.

[0205] The application framework layer provides an application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0206] The application framework layer may include a window manager, content provider, view system, telephony manager, resource manager, notification manager, etc.

[0207] 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.

[0208] 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.

[0209] 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.

[0210] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).

[0211] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0212] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is 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 text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.

[0213] like Figure 4 As shown, the application framework layer also includes a device posture recognition module, a control decision module, an antenna control module, and an antenna performance monitoring module.

[0214] Among them, the device posture recognition module is used to recognize the posture of the electronic device based on the sensor data collected by the sensor. The posture of the electronic device includes but is not limited to the left head-hand posture and the right head-hand posture.

[0215] A control decision module is used to confirm the first frequency compensation value of the current working antenna (for example, the first antenna) or determine that the optimal working antenna is the second antenna based on the posture of the electronic device identified by the device posture recognition module, or based on the posture of the electronic device identified by the device posture recognition module and the display form of the display screen of the electronic device.

[0216] The antenna control module is used to tune the first antenna based on the first frequency compensation value of the first antenna confirmed by the control decision module, or switch the working antenna from the first antenna to the second antenna based on the optimal working antenna (such as the second antenna) confirmed by the control decision module.

[0217] The antenna performance monitoring module is used to monitor the communication performance of the first antenna after tuning or to monitor the communication performance of the second antenna.

[0218] For the functional introduction of each module above, please refer to Figure 5A or Figure 5B The description in the embodiments is not repeated here.

[0219] In some embodiments, the antenna performance monitoring module and the antenna control module may also be located in a modem chip or a radio frequency integrated circuit (RFIC). Modems may include, but are not limited to, cellular modems and satellite modems. Different modems may include an antenna performance monitoring module and an antenna control module.

[0220] 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.

[0221] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0222] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.

[0223] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0224] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0225] A 2D graphics engine is a drawing engine for 2D drawings.

[0226] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.

[0227] In some embodiments, when the electronic device 100 includes a main processor and a secondary processor, the gesture recognition module and the control decision module may also be located in the secondary processor (eg, Sensor Hub).

[0228] This application does not limit the locations of the device posture recognition module, control decision module, antenna control module, and antenna performance monitoring module.

[0229] The following is a detailed introduction Figure 4 The interactive process of the device posture recognition module, control decision module, antenna control module, and antenna performance monitoring module is shown.

[0230] Figure 5A A schematic diagram of the interaction of multiple functional modules in an electronic device 100 is shown.

[0231] like Figure 5A As shown, the electronic device 100 includes a device posture recognition module, a control decision module, an antenna control module, and an antenna performance monitoring module.

[0232] 1. The device posture recognition module obtains the working status of the receiver.

[0233] The working state of the handset may include a call data playing state and a non-call data state.

[0234] Optionally, after the electronic device 100 is powered on, the device posture recognition module may periodically / irregularly obtain the working status of the earpiece.

[0235] 2. The device posture recognition module obtains the sensor data collected by the sensor.

[0236] The sensor includes but is not limited to any one or more of a gyroscope sensor, an acceleration sensor, etc. The sensor data includes but is not limited to any one or more of a gyroscope data, an acceleration sensor, etc.

[0237] Optionally, it is not limited to gyroscope sensors and acceleration sensors, and may also include light sensors, which is not limited in this application.

[0238] Optionally, after the electronic device 100 is powered on, the device posture recognition module may periodically / irregularly obtain sensor data collected by the sensor.

[0239] Optionally, after the electronic device 100 is turned on, when the working state of the earpiece is the call data playing state, the sensor collects sensor data again. After the electronic device 100 is turned on, when the working state of the earpiece is not the call data playing state, for example, when the electronic device 100 is not playing call audio, or when the electronic device 100 is playing call audio through the speaker, or when the electronic device 100 is playing call audio through the Bluetooth headset, or when the earpiece and the speaker form a stereo, the user does not need to hold the electronic device 100 close to the head, and the electronic device 100 does not need to recognize the posture of the electronic device 100. The electronic device 100 does not need to obtain sensor data, which can save power consumption of the electronic device 100.

[0240] 3. If the working state of the earpiece is the call data playing state, the device posture recognition module can recognize that the electronic device is in posture A based on the sensor data, and posture A includes a left head-hand posture or a right head-hand posture.

[0241] Optionally, the device posture recognition module may recognize the posture A of the electronic device based on the processed sensor data.

[0242] Optionally, the sensor data may be processed in a manner that includes but is not limited to mathematical operations, such as addition, subtraction, multiplication, division, power operations, sign operations, absolute value operations, and the like.

[0243] If the device posture recognition module identifies based on the sensor data that the electronic device is not in the left head-hand posture or the right head-hand posture, the device posture recognition module may continue to monitor the sensor data to monitor whether the electronic device 100 is in the left head-hand posture or the right head-hand posture.

[0244] For how the device posture recognition module recognizes whether the electronic device 100 is in the left head hand posture or the right head hand posture based on the sensor data, please refer to Figure 7 or Figure 10 Description in the Examples.

[0245] Optionally, posture A is not limited to the left head-hand posture or the right head-hand posture. The electronic device 100 can further divide the left head-hand posture into different left head-hand postures, or the electronic device 100 can further divide the right head-hand posture into different right head-hand postures.

[0246] 4. The device posture recognition module sends posture A to the control decision module.

[0247] 5. The control decision module determines a first frequency compensation value of the first antenna based on posture A or determines that the optimal working antenna is the second antenna.

[0248] After confirming that the electronic device 100 is in posture A, the posture recognition module can send posture A to the control decision module, which is used to confirm the first frequency compensation value of the current working antenna (for example, the first antenna) based on posture A or determine that the optimal working antenna is the second antenna, which is different from the first antenna.

[0249] The electronic device 100 has a pre-installed antenna configuration information table. The antenna configuration information table stores antenna control strategies corresponding to different electronic device postures, or different electronic device postures and different display modes. The antenna control strategy may include tuning parameters for the currently operating antenna or the optimal operating antenna. Based on posture A, the electronic device 100 can confirm the first frequency compensation value of the first antenna from the antenna configuration information table or determine that the operating antenna is the second antenna.

[0250] Optionally, the information in the antenna configuration information table may be updated periodically or irregularly.

[0251] 6. The control decision module sends a control signal including the first frequency compensation value of the first antenna or a control signal including switching to the second antenna to the antenna control module.

[0252] After determining the first frequency compensation value of the first antenna based on posture A or determining that the optimal working antenna is the second antenna, the control decision module can send a control signal containing the first frequency compensation value of the first antenna or a control signal containing switching to the second antenna to the antenna control module.

[0253] 7. The antenna control module obtains the communication performance of the first antenna after the electronic device is in posture A and the communication performance of the first antenna before the electronic device is in posture A, or the communication performance of the first antenna after the electronic device is in posture A and the communication performance of the second antenna after the electronic device is in posture A.

[0254] Optionally, step 7 may not be performed.

[0255] 8. The antenna control module tunes the first antenna based on the first frequency compensation value of the first antenna, or switches the working antenna from the first antenna to the second antenna.

[0256] In some embodiments, after receiving a control signal containing a first frequency compensation value of the first antenna sent by the control decision module, the antenna control module can tune the first antenna based on the first frequency compensation value of the first antenna in response to the control signal to eliminate or reduce the frequency deviation of the first antenna when the electronic device 100 is in posture A, so that the actual operating frequency band of the first antenna is within the preset operating frequency band.

[0257] Optionally, before tuning the first antenna based on the first frequency compensation value of the first antenna, the antenna control module may monitor changes in the communication performance of the first antenna. If the communication performance of the first antenna after the electronic device is in posture A is weaker than the communication performance of the first antenna before the electronic device is in posture A, or the communication performance of the first antenna after the electronic device is in posture A is weaker than the communication performance of the first antenna before the electronic device is in posture A, and the communication performance of the first antenna after the electronic device is in posture A is significantly different from the communication performance of the first antenna before the electronic device is in posture A, the electronic device 100 may tune the first antenna based on the first frequency compensation value of the first antenna.

[0258] In some embodiments, after receiving the control signal including the control signal for switching to the second antenna sent by the control decision module, the antenna control module may switch the working antenna from the first antenna to the second antenna.

[0259] Optionally, before switching the working antenna from the first antenna to the second antenna, the antenna control module may monitor the communication performance of the first antenna and the communication performance of the second antenna. If the communication performance of the second antenna after the electronic device is in posture A is better than the communication performance of the first antenna after the electronic device is in posture A, or the communication performance of the second antenna after the electronic device is in posture A is better than the communication performance of the first antenna after the electronic device is in posture A, and the communication performance of the second antenna after the electronic device is in posture A is significantly different from the communication performance of the first antenna after the electronic device is in posture A, the electronic device 100 may switch the working antenna from the first antenna to the second antenna.

[0260] Optionally, after the antenna control module tunes the first antenna based on the first frequency compensation value of the first antenna, or switches the working antenna from the first antenna to the second antenna, the device posture recognition module can continue to obtain motion data collected by the sensor, and continue to monitor whether the posture of the electronic device has changed based on the motion data. In the case that the posture of the electronic device has not changed, the antenna control module can continue to tune the first antenna based on the first frequency compensation value of the first antenna, or switch the working antenna from the first antenna to the second antenna. In the case that the posture of the electronic device has changed, the antenna control module can tune the first antenna based on the changed posture of the electronic device or switch to other optimal working antennas.

[0261] In some embodiments, before the first antenna switches to the second antenna, the antenna control module may compare the communication performance of the first antenna after tuning with the communication performance of the second antenna. That is, in some embodiments, when the electronic device 100 is in posture A, if the communication performance of the first antenna after tuning is better than the communication performance of the second antenna, the electronic device 100 may tune the first antenna without switching to the second antenna. If the communication performance of the first antenna after tuning is weaker than the communication performance of the second antenna, no tuning is performed and the second antenna is directly switched to. In some embodiments, if the accuracy of the electronic device 100 in detecting the device posture is not high enough to directly determine whether the communication performance of the tuned first antenna is better than the communication performance of the second antenna, the electronic device 100 may tune the first antenna, then compare the communication performance of the first antenna after tuning with the communication performance of the second antenna, and then decide whether to switch to the second antenna.

[0262] In some embodiments, since there are multiple left head-hand postures and right head-hand postures, the communication performance of the second working antenna will be different in different postures. In some embodiments, for different left head-hand postures or different right head-hand postures, the electronic device 100 can also tune the second antenna before switching to the second antenna to achieve optimal communication performance. That is, the first antenna can be tuned in the current device posture, and the second antenna can also be tuned in the current device posture. If the communication performance of the second antenna after tuning is better than the communication performance of the first antenna after tuning, it can be switched to the second antenna. If the communication performance of the second antenna after tuning is weaker than the communication performance of the first antenna after tuning, it will not be switched to the second antenna.

[0263] The communication performance here will comprehensively consider the performance of the first antenna and the second antenna after tuning under different left head-hand postures and right head-hand postures. It will also consider the upper limit power and power backoff values ​​of the first antenna and the second antenna under different postures. The upper limit power and power backoff values ​​here are affected by the combined influence of SAR and MPR. The conduction loss of the first antenna and the second antenna will also be considered, such as the path loss of the circuit routing, etc. The channel impact of the first antenna and the second antenna in different postures and different usage scenarios will also be considered. The antenna performance of the first antenna and the second antenna in different postures, such as antenna gain, antenna efficiency, antenna polarization, antenna radiation pattern, etc., will also be considered.

[0264] 9. The antenna performance monitoring module obtains the communication performance of the first antenna after tuning or the communication performance of the second antenna.

[0265] 10. If the communication performance of the first antenna after tuning is better than the communication performance before tuning, the antenna performance monitoring module continues to tune the first antenna based on the first frequency compensation value. Alternatively, if the communication performance of the second antenna is better than the communication performance of the first antenna, the antenna performance monitoring module continues to use the second antenna as the active antenna.

[0266] The antenna control module tunes the first antenna based on the first frequency compensation value of the first antenna, or switches the working antenna from the first antenna to the second antenna. The antenna performance monitoring module can obtain the communication performance of the tuned first antenna or the communication performance of the second antenna.

[0267] In some embodiments, if the communication performance of the first antenna after tuning is better than the communication performance before tuning, it means that the first frequency compensation value has eliminated or reduced the frequency deviation of the first antenna, and the antenna control module can continue to tune the frequency of the first antenna based on the first frequency compensation value.

[0268] In some embodiments, if the communication performance of the second antenna is better than that of the first antenna, it means that when the electronic device 100 is in posture A, the second working antenna has no frequency deviation or the frequency deviation is small, and the antenna control module can continue to keep the working antenna as the second antenna.

[0269] 11. If the communication performance of the first antenna after tuning is weaker than the communication performance before tuning, or the communication performance of the second antenna is weaker than the communication performance of the first antenna, the antenna performance monitoring module re-detects the posture of the electronic device.

[0270] 12. The antenna performance monitoring module sends a first instruction to the device posture recognition module. The first instruction is used to instruct the scene recognition module to re-detect the posture of the electronic device.

[0271] The antenna control module tunes the first antenna based on the first frequency compensation value of the first antenna, or switches the working antenna from the first antenna to the second antenna. The antenna performance monitoring module can obtain the communication performance of the tuned first antenna or the communication performance of the second antenna.

[0272] In some embodiments, if the communication performance after tuning the first antenna is weaker than the communication performance before tuning the first antenna, it indicates that the first frequency compensation value has not eliminated or reduced the frequency deviation of the first antenna, which may cause the frequency deviation of the first antenna to become more serious. In this case, it is necessary to re-detect the posture of the electronic device 100 to avoid mis-tuning due to incorrect posture judgment of the electronic device 100. The antenna performance monitoring module can then send a first instruction to the device posture recognition module, and the first instruction is used to instruct the scene recognition module to re-detect the posture of the electronic device.

[0273] In some embodiments, if the communication performance of the second antenna is weaker than that of the first antenna, it indicates that the second antenna is not the optimal antenna when the electronic device 100 is in posture A. In this case, it is necessary to re-detect the posture of the electronic device 100 to avoid the problem of incorrect antenna switching due to incorrect posture judgment of the electronic device 100. The antenna performance monitoring module can then send a first instruction to the device posture recognition module, the first instruction being used to instruct the scene recognition module to re-detect the posture of the electronic device.

[0274] It should be noted that Figure 5A The steps shown in the figure are only used to explain the present application. Figure 5A There is no limitation on the order in which the steps are executed.

[0275] In some embodiments, different display states of the electronic device's display screen may have different effects on the frequency deviation of the electronic device's antenna. Therefore, when the electronic device plays call data through the receiver, the electronic device can determine the frequency compensation value of the first antenna or the optimal working antenna based on the display state of the electronic device's display screen and the electronic device's posture.

[0276] Figure 5B A schematic diagram of the interaction of multiple functional modules in another electronic device 100 is shown.

[0277] Figure 5B and Figure 5A Similar, but different in Figure 5B In the embodiment, the control decision module also needs to obtain the display form of the display screen of the electronic device, and determine the first frequency compensation value of the first antenna or determine the optimal working antenna as the second antenna based on the display form and posture A of the display screen of the electronic device. Figure 5B Description of each step in the Figure 5A The application will not repeat them here.

[0278] Figure 6 A schematic diagram of the interaction of multiple hardware in another electronic device 100 is shown.

[0279] like Figure 6 As shown, the electronic device 100 includes a processor, a modem, and a radio frequency integrated circuit (RFIC). For example, the processor may be Figure 3 The processor 110 is shown.

[0280] 1. The processor is used to obtain the working status of the handset.

[0281] 2. The processor is also used to obtain sensor data collected by the sensor.

[0282] 3. The processor is also used to obtain the display mode of the display screen of the electronic device.

[0283] The processor is used to confirm the posture A of the electronic device 100 based on the sensor data. For how the processor confirms the posture A of the electronic device 100 based on the sensor data, please refer to Figure 5A Description of step 1, step 2 and step 3 in the examples.

[0284] Optionally, when the electronic device 100 is a straight screen, the processor may not obtain the display form of the display screen of the electronic device.

[0285] For how the processor identifies the posture A of the electronic device 100 based on the sensor data, please refer to Figure 7 or Figure 10 Description in the Examples.

[0286] 4. The processor is further configured to send the display form and posture A of the display screen to a modem.

[0287] 5. A modem, used to obtain the communication performance of the first antenna after the electronic device is in posture A and the communication performance of the first antenna before the electronic device is in posture A, or the communication performance of the first antenna after the electronic device is in posture A and the communication performance of the second antenna after the electronic device is in posture A.

[0288] 6. The modem is further configured to send a control signal including a first frequency compensation value of the first antenna or a control signal including switching to the second antenna to the radio frequency integrated circuit.

[0289] After confirming that the electronic device 100 is in posture A, the modem can confirm the first frequency compensation value of the current working antenna (eg, the first antenna) based on posture A or determine that the optimal working antenna is the second antenna, which is different from the first antenna.

[0290] The electronic device 100 is pre-installed with an antenna configuration information table. The antenna configuration information table stores antenna control strategies corresponding to different electronic device postures, or different electronic device postures and different display modes. The antenna control strategies may include tuning parameters for the currently operating antenna or the optimal operating antenna. Based on posture A, the modem can confirm the first frequency compensation value of the first antenna from the antenna configuration information table or determine that the operating antenna is the second antenna.

[0291] Optionally, before sending a control signal including a first frequency compensation value for the first antenna to the RFIC, the modem may monitor changes in the communication performance of the first antenna. If the communication performance of the first antenna after the electronic device is in posture A is better than the communication performance of the first antenna before the electronic device is in posture A, or if the communication performance of the first antenna after the electronic device is in posture A is better than the communication performance of the first antenna before the electronic device is in posture A, and the communication performance of the first antenna after the electronic device is in posture A is significantly different from the communication performance of the first antenna before the electronic device is in posture A, the modem may send a control signal including the first frequency compensation value for the first antenna to the RFIC.

[0292] Optionally, before sending a control signal including switching to the second antenna to the RFIC, the modem may monitor the communication performance of the first antenna and the communication performance of the second antenna. If the communication performance of the second antenna after the electronic device is in posture A is better than the communication performance of the first antenna after the electronic device is in posture A, or the communication performance of the second antenna after the electronic device is in posture A is better than the communication performance of the first antenna after the electronic device is in posture A, and the communication performance of the second antenna after the electronic device is in posture A is significantly different from the communication performance of the first antenna after the electronic device is in posture A, the modem may send a control signal including switching to the second antenna to the RFIC.

[0293] Optionally, step 5 may not be performed.

[0294] 7. The radio frequency integrated circuit is used to tune the first antenna based on the first frequency compensation value of the first antenna, or switch the working antenna from the first antenna to the second antenna.

[0295] After determining the first frequency compensation value of the first antenna based on posture A or determining that the optimal working antenna is the second antenna, the modem can send a control signal including the first frequency compensation value of the first antenna or a control signal including switching to the second antenna to the RF integrated circuit.

[0296] The radio frequency integrated circuit can tune the first antenna based on the first frequency compensation value of the first antenna, or switch the working antenna from the first antenna to the second antenna.

[0297] for Figure 6 For the description and explanation of each step in the embodiment, please refer to Figure 5A The description in the embodiments will not be repeated here.

[0298] The present application provides an antenna control method, in which the electronic device 100 can identify the device posture of the electronic device 100, or identify the device posture of the electronic device 100 and the display form of the display screen of the electronic device 100. The electronic device 100 can determine the first frequency compensation value of the current working antenna (for example, the first antenna) or determine the optimal working antenna (for example, the second antenna) based on the device posture of the electronic device 100, or based on the device posture of the electronic device 100 and the display form of the display screen of the electronic device 100. The electronic device 100 can tune the first antenna based on the first frequency compensation value, or switch the working antenna to the second antenna to improve the communication performance of the electronic device 100 and improve the call quality of the electronic device 100.

[0299] The method includes but is not limited to the following two stages: a stage in which the user holds the electronic device 100 and places the electronic device 100 close to the head to answer a call, and a stage in which the electronic device 100 continues to be placed close to the head to answer a call.

[0300] Next, the method of how the electronic device 100 controls the antenna is described in detail in combination with these two stages.

[0301] Phase 1: The user holds the electronic device 100 and places the electronic device 100 close to the head to answer a call.

[0302] When the electronic device 100 answers a call and plays call data through the earpiece, in order to ensure that the user can accurately obtain the content of the call data played by the electronic device 100 through the earpiece, the user can hold the electronic device 100, lift the electronic device 100 upward and place the electronic device 100 close to the head, so that the user can accurately obtain the content of the call data played by the electronic device 100 through the earpiece through the ear.

[0303] Figure 7 A schematic diagram showing an electronic device 100 controlling an antenna in a first stage is shown.

[0304] S701: The electronic device 100 sends and receives call data via the first antenna.

[0305] S702: The electronic device 100 plays the call data through the receiver.

[0306] The electronic device 100 is pre-installed with multiple antennas.

[0307] In some embodiments, different communication modes correspond to different antennas. The communication modes of the electronic device 100 include, but are not limited to, Bluetooth, Wi-Fi, and data networks. The antennas corresponding to Bluetooth, Wi-Fi, and data networks may be different.

[0308] In some embodiments, different communication modes can reuse the same antenna. For example, the antenna corresponding to Bluetooth, the antenna corresponding to Wi-Fi, and the antenna corresponding to the data network can be the same.

[0309] For example, before the user places the electronic device 100 close to the head to answer a call, the electronic device 100 can send and receive call data through the first antenna.

[0310] In some embodiments, the electronic device 100 can establish a call connection with another electronic device through a phone application, and the other electronic device can send the call data to a base station, which then sends the call data to the first antenna on the electronic device 100. The electronic device 100 can receive the call data through the first antenna.

[0311] In some embodiments, the electronic device 100 can also establish a call connection with other electronic devices through a social application. The other electronic device can send audio data to the social application server, and the social application server then sends the call data to the first antenna on the electronic device 100. The electronic device 100 can receive the call data through the first antenna.

[0312] S703: The electronic device 100 obtains first sensor data collected by a sensor, where the first sensor data includes acceleration data and / or angular velocity data.

[0313] The sensor includes but is not limited to any one or more of a gyroscope sensor, an acceleration sensor, etc.

[0314] Optionally, before acquiring the first sensor data, the electronic device 100 may identify the working state of the earpiece. When the working state of the earpiece is the call data playing state, the sensor collects the first sensor data again. When the working state of the earpiece is the call data non-playing state, for example, when the electronic device 100 is not playing call audio, or when the electronic device 100 is playing call audio through the speaker, or when the electronic device 100 is playing call audio through a Bluetooth headset, the user does not need to hold the electronic device 100 close to the head, and the electronic device 100 does not need to identify the posture of the electronic device 100. The electronic device 100 does not need to acquire the first sensor data, which can save power consumption of the electronic device 100.

[0315] S704: The electronic device 100 confirms whether the electronic device 100 is in motion based on the first sensor data.

[0316] In some embodiments, when the electronic device 100 plays call data through the earpiece, the electronic device 100 can be placed still on a desktop, or the user can hold the electronic device 100 and place it still in front of the user.

[0317] In some embodiments, when the electronic device 100 plays call data through the earpiece, the user can hold the electronic device 100 upward and place it close to the head, for example, place it next to the ear, so that the user can clearly obtain the content of the call data played by the electronic device 100 through the earpiece.

[0318] Therefore, after acquiring the first sensor data, the electronic device 100 can determine whether the electronic device 100 is in motion based on the first sensor data. When the electronic device 100 is in motion, the electronic device 100 may have performed an operation of holding the electronic device 100 and lifting it up close to the head. When the electronic device 100 identifies whether the electronic device 100 is in posture A, it executes S705.

[0319] When the electronic device 100 is not in motion, the user has not lifted the electronic device 100 up and placed it close to the head, and the electronic device 100 does not need to identify whether the electronic device 100 is in posture A, that is, the electronic device 100 continues to execute S703.

[0320] S705 : The electronic device 100 confirms whether the electronic device 100 is in posture A based on the first sensor data, where posture A includes a left head-hand posture or a right head-hand posture.

[0321] Optionally, posture A may be a left head-hand posture or a right head-hand posture.

[0322] Optionally, not limited to the left head-hand gesture or the right head-hand gesture, the electronic device 100 may further divide the left head-hand gesture into different left head-hand gestures, or the electronic device 100 may further divide the right head-hand gesture into different right head-hand gestures.

[0323] When it is confirmed based on the first sensor data that the electronic device 100 is in posture A, the electronic device 100 may tune the first antenna based on posture A or switch to the optimal working antenna when the electronic device 100 is in posture A, ie, execute S706 .

[0324] When it is confirmed based on the first sensor data that the electronic device 100 is not in posture A, it is possible that the user's movement causes the electronic device 100 to be in motion, but the user does not perform the operation of lifting the electronic device 100 upward and placing it close to the head. The electronic device 100 can continue to monitor whether the electronic device 100 is in posture A, that is, the electronic device 100 continues to execute S703 to continuously monitor whether the electronic device 100 is in posture A.

[0325] Optionally, instead of being limited to confirming whether the electronic device 100 is in posture A based on sensor data, the electronic device 100 may also confirm the posture of the electronic device 100 in combination with other parameters to improve the accuracy of the electronic device 100 in identifying the posture of the electronic device 100 .

[0326] Illustratively, the other parameters may be touch information collected by the display screen of the electronic device 100 .

[0327] In some embodiments, a sensor, such as a touch sensor, may be pre-installed on the display screen of the electronic device 100. When the user holds the electronic device 100, the touch sensor on the display screen may collect touch data, and the electronic device 100 may recognize gestures based on the touch data. The gestures of holding the electronic device 100 with the left hand and the gestures of holding the electronic device 100 with the right hand are different. Based on the touch data collected by the touch sensor, the electronic device 100 may recognize whether the user is holding the electronic device 100 with the left hand or the right hand.

[0328] For example, the other parameter may be sensor data collected by a proximity light sensor.

[0329] In some embodiments, when the electronic device 100 is close to the head, the proximity light sensor can recognize that there is an object nearby, which can assist in identifying whether the electronic device 100 is close to the head.

[0330] Exemplarily, other parameters may be images captured by a camera.

[0331] In some embodiments, when the electronic device 100 is close to the head, the camera of the electronic device 100 can capture an image and identify whether the electronic device 100 is close to the head based on the content in the image.

[0332] In some embodiments, it is also possible to assist in identifying whether the electronic device 100 is in posture A based on the business scenario of the electronic device 100.

[0333] For example, when the electronic device 100 is taking a photo, the user generally holds the electronic device 100 with one or both hands and places the electronic device 100 directly in front of the user, and the electronic device 100 is not placed close to the head. Based on this, it can assist in identifying whether the electronic device 100 is in posture A.

[0334] For example, the other parameter may be an electromagnetic wave absorption ratio or a specific absorption rate (SAR).

[0335] In some embodiments, when a user holds the electronic device close to their head, electronic device 100 may reduce the SAR (Special Response) to prevent the impact of antenna radiation on human health, as required by AR regulations. If the SAR is less than a certain value, it can be confirmed that the user is holding the electronic device close to their head. Based on the change in SAR, it can be determined whether electronic device 100 is close to the head.

[0336] Optionally, the electronic device 100 can identify the device posture based on sensor data. In three-dimensional space, sensor data is a vector that can be represented by amplitude and phase. Phase can also be called direction. Sensor data can be decomposed into the X-axis, Y-axis and Z-axis of the spherical coordinate system. This application can use Represents the components of sensor data on the X-axis, Y-axis, and Z-axis respectively, They can represent the direction and magnitude on the X axis, the direction and magnitude on the Y axis, and the direction and magnitude on the Z axis, respectively. For example, It can be expressed as (+X, -X), where "+" represents the positive direction of the X axis, "-" represents the negative direction of the X axis, and X represents the amplitude in the X axis direction. Optionally, the "+" can also be omitted. Can be expressed as (+Y, -Y), (+Z, -Z), and Similarly, the device posture can be identified by using the component representation of sensor data on the X, Y, and Z axes, or by performing vector mathematical operations based on the component representation of sensor data on the X, Y, and Z axes.

[0337] For example, the X-axis, Y-axis, and Z-axis may refer to the X-axis, Y-axis, and Z-axis in a spherical coordinate system. A spherical coordinate system is defined as follows: the origin of the spherical coordinate system coincides with the center of mass of the Earth, the positive direction of the Z-axis of the spherical coordinate system points to the Earth's North Pole, the positive direction of the X-axis of the spherical coordinate system points to the intersection of the Earth's equatorial plane and the Greenwich meridian, and the Y-axis forms a right-handed coordinate system with the XOZ plane in the equatorial plane.

[0338] When the sensor data values ​​on the Y axis and the Z axis are positive, it can be confirmed that the posture of the electronic device 100 is a left head and hand posture. When the sensor data values ​​on the Y axis and the Z axis are negative, it can be confirmed that the posture of the electronic device 100 is a right head and hand posture.

[0339] It should be noted that when the definitions of the X-axis, Y-axis, and Z-axis are different, the specific implementation of how to determine the left head-hand posture or the right head-hand posture based on the sensor data is also different. This application is only for illustration purposes and does not constitute a limitation.

[0340] Optionally, the electronic device 100 may not execute S704 but directly execute S705.

[0341] S706: The electronic device 100 determines a first frequency compensation value of the first antenna based on posture A or determines that the optimal working antenna is the second antenna.

[0342] Optionally, an antenna configuration information table may be pre-installed in the electronic device 100, and the antenna configuration information table may store antenna control strategies corresponding to different electronic device postures, or different electronic device postures and different display screen display forms. The antenna control strategy may include the tuning parameters of the current working antenna or the optimal working antenna.

[0343] Table 1

[0344] The posture of electronic devices Antenna control strategy Left head-hand posture Frequency compensation value A, or the optimal working antenna is antenna A Right head-hand gesture Frequency compensation value B, or the optimal working antenna is antenna B

[0345] Table 1 shows an antenna configuration information table. As shown in Table 1, when posture A is a left-head-hand posture, the first frequency compensation value is frequency compensation value A, or the second antenna is antenna A. When posture A is a right-head-hand posture, the first frequency compensation value is frequency compensation value B, or the second antenna is antenna B. The second antenna can be the optimal antenna after tuning for that posture, or it can be the optimal antenna without tuning. This application does not limit this, and the same applies below.

[0346] Table 2

[0347]

[0348] In some embodiments, the left head-hand gesture may include multiple different left head-hand gestures, and the right head-hand gesture may include multiple different right head-hand gestures. In this way, the electronic device 100 can more precisely identify the posture of the electronic device 100 to achieve more accurate tuning of the current working antenna or more accurate switching to the optimal working antenna.

[0349] Table 2 shows another antenna configuration information table. As shown in Table 2, the left head-hand posture includes left head-hand posture A, left head-hand posture B, and left head-hand posture C. When the posture of the electronic device is left head-hand posture A, the first frequency compensation value is frequency compensation value A, or the second antenna is antenna A. When the posture of the electronic device is left head-hand posture B, the first frequency compensation value is frequency compensation value C, or the second antenna is antenna C. When the posture of the electronic device is left head-hand posture C, the first frequency compensation value is frequency compensation value D, or the second antenna is antenna D.

[0350] The right head-hand gesture includes right head-hand gesture A, right head-hand gesture B, and right head-hand gesture C. When the posture of the electronic device is right head-hand gesture A, the first frequency compensation value is frequency compensation value B, or the second antenna is antenna B. When the posture of the electronic device is right head-hand gesture B, the first frequency compensation value is frequency compensation value E, or the second antenna is antenna E. When the posture of the electronic device is right head-hand gesture C, the first frequency compensation value is frequency compensation value F, or the second antenna is antenna F.

[0351] In the case of multiple different left head-hand gestures and multiple different right head-hand gestures, in the first stage, the electronic device 100 can identify whether the electronic device 100 is in the left head-hand gesture or the right head-hand gesture based on the first sensor data. For example, after identifying that the electronic device 100 is in the left head-hand gesture, the electronic device 100 can control the antenna based on the control strategy for the antenna corresponding to the left head-hand gesture A. For another example, after identifying that the electronic device 100 is in the right head-hand gesture, the electronic device 100 can control the antenna based on the control strategy for the antenna corresponding to the right head-hand gesture A.

[0352] It should be noted that Figure 7 The steps shown in the figure are only used to explain the present application. Figure 7 There is no limitation on the order in which the steps are executed.

[0353] In some embodiments, after determining the second frequency compensation value of the first antenna, before tuning the first antenna based on the second frequency compensation value of the first antenna, the electronic device 100 may monitor changes in the communication performance of the first antenna. If the communication performance of the first antenna after the electronic device is in posture A is better than the communication performance of the first antenna before the electronic device is in posture A, or the communication performance of the first antenna after the electronic device is in posture A is better than the communication performance of the first antenna before the electronic device is in posture A, and the communication performance of the first antenna after the electronic device is in posture A is significantly different from the communication performance of the first antenna before the electronic device is in posture A, the electronic device 100 may tune the first antenna based on the first frequency compensation value of the first antenna.

[0354] In some embodiments, after determining that the optimal working antenna is the second antenna, after the electronic device switches the working antenna from the first antenna to the second antenna, the electronic device may compare the communication performance of the first antenna and the communication performance of the second antenna. If the communication performance of the second antenna after the electronic device is in posture A is better than the communication performance of the first antenna after the electronic device is in posture A, or the communication performance of the second antenna after the electronic device is in posture A is better than the communication performance of the first antenna after the electronic device is in posture A, and the communication performance of the second antenna after the electronic device is in posture A is significantly different from the communication performance of the first antenna after the electronic device is in posture A, the electronic device 100 may switch the working antenna to the second antenna.

[0355] Figure 8 FIG. 1 is a schematic diagram showing another electronic device 100 controlling an antenna in the first stage.

[0356] Figure 8 and Figure 7 Similar, for Figure 8 For the introduction of S801-S805 in the embodiment, reference can be made to the description of S701-S705, which will not be repeated in this application.

[0357] Figure 8 and Figure 7 The difference between the embodiments is that the electronic device 100 not only needs to recognize the posture of the electronic device 100 , but also needs to recognize the display form of the display screen of the electronic device 100 .

[0358] Figure 7 The embodiment may be a method flow for a straight screen device. Figure 8 The embodiment may be a method flow for a folding screen device.

[0359] S806: Acquire a first display mode of the display screen of the electronic device 100.

[0360] S807: The electronic device 100 determines a first frequency compensation value of the first antenna or determines the optimal working antenna as the second antenna based on the posture A and the first display mode of the display screen.

[0361] In some embodiments, after recognizing posture A of electronic device 100, electronic device 100 further needs to obtain the display form of the display screen of electronic device 100, such as the first display form. Based on posture A and the first display form, electronic device 100 can determine the first frequency compensation value of the first antenna or determine the optimal working antenna as the second antenna.

[0362] For example, when the electronic device 100 is an inward folding screen, the first display screen form may include but is not limited to Figure 1A The expanded state shown, Figure 1BThe intermediate state shown, Figure 1C Optional, not limited to Figure 1B The intermediate state shown, the inner folding screen can also include other more intermediate states.

[0363] For example, when the electronic device 100 is an outward folding screen, the first display screen form may include but is not limited to Figure 1D The expanded state shown, Figure 1E The intermediate state shown, Figure 1F Optional, not limited to Figure 1E The intermediate state shown, the outer folding screen can also include other more intermediate states.

[0364] For example, when the electronic device 100 is a tri-fold screen, the first display screen form may include but is not limited to Figure 1G The expanded state shown, Figure 1H The folded state shown, Figure 1I The folded state shown, Figure 1J The folded state shown, Figure 1K and Figure 1L Optionally, the tri-fold screen may include more intermediate states.

[0365] For example, when the electronic device 100 has a foldable screen, the first display screen form may include but is not limited to: Figure 1M The expanded state shown, Figure 1N The intermediate state shown, Figure 1O Optional, not limited to Figure 1N The intermediate state shown, the upper and lower folding screens can also include other more intermediate states.

[0366] Table 3

[0367]

[0368] Table 3 shows another antenna configuration information table. As shown in Table 3, the electronic device includes multiple display modes of the display screen, and the control strategies of the antennas corresponding to different display modes of the display screen are different.

[0369] Exemplarily, when the electronic device is in a left-head-hand posture and the display screen is in an unfolded state, the first frequency compensation value is frequency compensation value A, or the second antenna is antenna A. When the electronic device is in a left-head-hand posture and the display screen is in an intermediate state, the first frequency compensation value is frequency compensation value G, or the second antenna is antenna G. When the electronic device is in a left-head-hand posture and the display screen is in a folded state, the first frequency compensation value is frequency compensation value H, or the second antenna is antenna H.

[0370] Exemplarily, when the electronic device is in a right-head-hand posture and the display screen is in an unfolded state, the first frequency compensation value is frequency compensation value B, or the second antenna is antenna B. When the electronic device is in a right-head-hand posture and the display screen is in an intermediate state, the first frequency compensation value is frequency compensation value I, or the second antenna is antenna I. When the electronic device is in a right-head-hand posture and the display screen is in a folded state, the first frequency compensation value is frequency compensation value J, or the second antenna is antenna J.

[0371] Table 4

[0372]

[0373] In some embodiments, the left head-hand gesture may include multiple different left head-hand gestures, and the right head-hand gesture may also include multiple different left head-hand gestures. In this way, the electronic device 100 can more precisely identify the posture of the electronic device 100, so as to more accurately tune the current working antenna or more accurately switch to the optimal working antenna.

[0374] Table 4 shows another antenna configuration information table. Table 4 only exemplifies the control strategies of the antennas corresponding to the postures of some electronic devices and the shapes of the display screens.

[0375] Exemplarily, when the electronic device is in a left-head-hand posture A and the display screen of the electronic device 100 is in an unfolded state, the first frequency compensation value is frequency compensation value A, or the second antenna is antenna A. When the electronic device is in a left-head-hand posture A and the display screen of the electronic device 100 is in an intermediate state, the first frequency compensation value is frequency compensation value K, or the second antenna is antenna K. When the electronic device is in a left-head-hand posture A and the display screen of the electronic device 100 is in a folded state, the first frequency compensation value is frequency compensation value L, or the second antenna is antenna L.

[0376] Exemplarily, when the electronic device is in a right-head-hand posture A and the display screen of the electronic device 100 is in an unfolded state, the first frequency compensation value is frequency compensation value B, or the second antenna is antenna B. When the electronic device is in a right-head-hand posture A and the display screen of the electronic device 100 is in an intermediate state, the first frequency compensation value is frequency compensation value M, or the second antenna is antenna M. When the electronic device is in a right-head-hand posture A and the display screen of the electronic device 100 is in a folded state, the first frequency compensation value is frequency compensation value N, or the second antenna is antenna N.

[0377] In the case of multiple different left head-hand postures and multiple different left head-hand gestures, in the first stage, the electronic device 100 can identify whether the electronic device 100 is in the left head-hand posture or the right head-hand posture based on the first sensor data. For example, after identifying that the electronic device 100 is in the left head-hand posture, the electronic device 100 can control the antenna based on the left head-hand posture A and the control strategy for the antenna corresponding to the corresponding display screen form. For another example, after identifying that the electronic device 100 is in the right head-hand posture, the electronic device 100 can control the antenna based on the right head-hand posture A and the control strategy for the antenna corresponding to the corresponding display screen form.

[0378] In the case of multiple different left head-hand postures and multiple different right head-hand postures, in the first stage, after the electronic device 100 recognizes the left head-hand posture or the right head-hand posture, the electronic device 100 can adjust the antenna based on the control strategy of the antenna corresponding to the left head-hand posture A or the right head-hand posture A.

[0379] In some embodiments, after the electronic device 100 tunes the first antenna based on the first frequency compensation value or switches the working antenna to the second antenna, the electronic device 100 can monitor whether the communication performance of the antenna has been improved. This prevents the communication performance of the antenna of the electronic device 100 from being degraded due to the electronic device 100 incorrectly recognizing the posture of the electronic device 100.

[0380] Figure 9 It shows a schematic diagram of controlling the antenna after the electronic device 100 tunes the first antenna or switches the working antenna.

[0381] S901: The electronic device 100 tunes the first antenna based on a first frequency compensation value or switches the working antenna to the second antenna.

[0382] S902: The electronic device 100 obtains the communication performance of the first antenna after tuning, or the communication performance of the second antenna.

[0383] In some embodiments, after the electronic device 100 tunes the first antenna based on the first frequency compensation value of the first antenna, the electronic device may obtain the communication performance of the first antenna after tuning.

[0384] In some embodiments, after the electronic device 100 switches the working antenna to the second antenna, the electronic device 100 may obtain the communication performance of the second antenna.

[0385] S903: The electronic device 100 needs to confirm whether the communication performance of the tuned first antenna is better than the communication performance of the first antenna before tuning, or whether the communication performance of the second antenna is better than the communication performance of the first antenna.

[0386] When the communication performance of the tuned first antenna is better than the communication performance of the first antenna before tuning, or the communication performance of the second antenna is better than the communication performance of the first antenna, the electronic device 100 may maintain the current working state of the antenna.

[0387] If the communication performance of the tuned first antenna is weaker than the communication performance of the first antenna before tuning, or if the communication performance of the second antenna is weaker than the communication performance of the first antenna, it may indicate that the electronic device 100 has misidentified the posture of the electronic device 100, resulting in a decrease in the communication performance of the electronic device 100. The electronic device 100 may re-identify the posture of the electronic device 100, that is, execute S904.

[0388] When the communication performance of the first antenna after tuning is better than the communication performance of the first antenna before tuning, or the communication performance of the second antenna is better than the communication performance of the first antenna, it means that the problem of the degradation of the communication performance of the antenna due to the frequency deviation of the electronic device 100 has been improved, and the electronic device 100 can maintain the current working state of the antenna, that is, execute S905.

[0389] S904: The electronic device 100 continues to execute S703 or S803.

[0390] S905: The electronic device 100 continues to tune the first antenna with the first frequency compensation value, or continues to keep the working antenna as the second antenna.

[0391] pass Figure 9 According to the method of the embodiment, the electronic device 100 can avoid the problem of degradation of the antenna's communication performance due to an incorrect judgment of the posture of the electronic device 100, or the posture of the electronic device 100 and the display form of the display screen of the electronic device 100, through a feedback mechanism.

[0392] The second stage: the electronic device 100 is kept close to the head to answer the call.

[0393] In the first stage, after the electronic device 100 is identified as having a posture A, the posture of the electronic device 100 may also change. After the posture of the electronic device 100 changes, the degree of frequency deviation of the antenna in the electronic device 100 also varies. Therefore, the electronic device 100 needs to continue to monitor the posture of the electronic device 100 and, after the posture of the electronic device 100 changes, re-tune the currently working antenna of the electronic device 100 based on the changed posture of the electronic device 100, or re-determine and switch to the optimal working antenna based on the changed posture of the electronic device 100.

[0394] The situation where the posture of the electronic device 100 changes may include but is not limited to any of the following:

[0395] Scenario 1: After determining in the first stage that electronic device 100 is in posture A, the user may change the position in which they answer the call. For example, electronic device 100 may be in posture B, where posture A may be a left-head-hand posture and posture B may be a right-head-hand posture. Alternatively, posture A may be a right-head-hand posture and posture B may be a left-head-hand posture. For example, in the first stage, the user may hold electronic device 100 close to their right ear to answer the call. Later, in the second stage, the user may hold electronic device 100 close to their left ear to answer the call.

[0396] Case 2: In the case of multiple different left head-hand postures or multiple different right head-hand postures, after the electronic device 100 is determined to be in posture A in the first stage, the angle at which the user holds the electronic device 100 may change. For example, in the first stage, the electronic device 100 is in the left head-hand posture. Afterwards, the user may continue to hold the electronic device 100 and place it close to their left ear to answer the call, but the user may change the relative position between the electronic device 100 and their head. For example, in the second stage, the electronic device 100 may be in left head-hand posture A, left head-hand posture B, or left head-hand posture C.

[0397] The above situation is not limited to the first and second situations, and may also include other more situations that cause the posture of the electronic device 100 to change, which is not limited in this application.

[0398] Figure 10 A schematic diagram is shown in which the electronic device 100 continuously monitors the posture of the electronic device 100 and controls the antenna of the electronic device 100 .

[0399] S1001: The electronic device 100 obtains second sensor data collected by a sensor.

[0400] S1002 : The electronic device 100 determines a posture B of the electronic device 100 based on second sensor data.

[0401] After confirming that the electronic device 100 is in posture A, the electronic device 100 may continue to acquire second sensor data collected by the sensor, and determine the posture B of the electronic device 100 based on the second sensor data.

[0402] In some embodiments, when the left head-hand gesture includes multiple different left head-hand gestures or the right head-hand gesture includes multiple different right head-hand gestures, gesture B can be any one of the following: left head-hand gesture A, left head-hand gesture B, left head-hand gesture C, right head-hand gesture A, right head-hand gesture B, right head-hand gesture C.

[0403] In some embodiments, when the left head-hand gesture does not include multiple different left head-hand gestures or the right head-hand gesture does not include multiple different right head-hand gestures, gesture B can be any one of the following: left head-hand gesture, right head-hand gesture.

[0404] Optionally, the electronic device 100 may confirm the pitch angle and roll angle of the electronic device 100 based on the second sensor data, and confirm based on the pitch angle and roll angle of the electronic device 100 .

[0405] Optionally, the pitch angle of the electronic device 100 may refer to the angle between the plane where the display screen of the electronic device 100 is located and the XOY plane of the spherical coordinate system, and the roll angle of the electronic device 100 may refer to the angle between the plane where the display screen of the electronic device 100 is located and the YOZ plane of the spherical coordinate system. The pitch angle and roll angle herein are consistent with the pitch angle and roll angle in the standard spherical coordinate system. In some embodiments, the roll angle may also be referred to as the roll angle, lateral angle, tumble angle, or azimuth angle. This application does not impose any restrictions on this. Although the names are different, the basic physical meaning is the same.

[0406] In this application, it is generally considered that the receiver (also called earpiece or receiver) is located in the positive direction of the Z axis.

[0407] The electronic device 100 is a non-foldable device:

[0408] The electronic device 100 can confirm the posture of the electronic device 100 in the following manner.

[0409] In a case where the left head-hand gesture does not include a plurality of different left head-hand gestures or the right head-hand gesture does not include a plurality of different right head-hand gestures, the gesture of the electronic device 100 includes the left head-hand gesture and the right head-hand gesture.

[0410] Exemplarily, when the pitch angle of the electronic device 100 is between a and b, and the roll angle of the electronic device 100 is between c and d, the electronic device 100 is in the left head-hand posture.

[0411] For example, the angle between a and b may be between 0° and 90°, and the angle between c and d may be between -180° and 0°.

[0412] Exemplarily, when the pitch angle of the electronic device 100 is between e and f, and the roll angle of the electronic device 100 is between g and h, the electronic device 100 is in the right head-hand posture.

[0413] For example, the angle between a and b may be between 0° and 90°, and the angle between c and d may be between 0° and 180°.

[0414] When the left head-hand gesture includes multiple different left head-hand gestures or the right head-hand gesture includes multiple different right head-hand gestures, the gestures of the electronic device 100 include left head-hand gesture A, left head-hand gesture B, left head-hand gesture C, right head-hand gesture A, right head-hand gesture B, and right head-hand gesture C.

[0415] Exemplarily, when the pitch angle of the electronic device 100 is between a1 and b1 and the roll angle of the electronic device 100 is between c1 and d1, the electronic device 100 is in the left head-hand posture A.

[0416] Optionally, a1 and b1, and / or c1 and d1, may include a continuous angle range. For example, a1 and b1 may be between 0° and 30°, and c1 and d1 may be between -180° and -120°. Optionally, a1 and b1, and / or c1 and d1, may also include multiple discontinuous angle ranges. For example, a1 and b1 may be between 0° and 30°, or between 40° and 70°, and c1 and d1 may be between -140° and -170°, or between -180° and -120°.

[0417] Exemplarily, when the pitch angle of the electronic device 100 is between a2 and b2, and the roll angle of the electronic device 100 is between c2 and d2, the electronic device 100 is in the left head-hand posture B.

[0418] Similarly, for the explanation of a2 and b2, c2 and d2, reference can be made to the above explanation of a1 and b1, c1 and d1. This application takes the example of a2 and b2, c2 and d2 including a continuous angle range for explanation.

[0419] For example, the angle between a2 and b2 may be between 30° and 60°, and the angle between c2 and d2 may be between -120° and -60°.

[0420] Exemplarily, when the pitch angle of the electronic device 100 is between a3 and b3 and the roll angle of the electronic device 100 is between c3 and d3, the electronic device 100 is in the left head-hand posture C.

[0421] Similarly, for the explanation of a3 and b3, c3 and d3, reference can be made to the above explanation of a1 and b1, c1 and d1. This application takes the example of a3 and b3, c3 and d3 including a continuous angle range for explanation.

[0422] For example, the angle between a3 and b3 may be between 60° and 90°, and the angle between c3 and d3 may be between -60° and 0°.

[0423] Exemplarily, when the pitch angle of the electronic device 100 is between e1 and f1 and the roll angle of the electronic device 100 is between g1 and h1, the electronic device 100 is in the right head-hand posture A.

[0424] For example, the angle between e1 and f1 may be between 0° and 30°, and the angle between g1 and h1 may be between 0° and 60°.

[0425] Exemplarily, when the pitch angle of the electronic device 100 is between e2 and f2, and the roll angle of the electronic device 100 is between g2 and h2, the electronic device 100 is in the right head-hand posture B.

[0426] For example, the angle between e1 and f1 may be between 0° and 30°, and the angle between g1 and h1 may be between 60° and 120°.

[0427] Exemplarily, when the pitch angle of the electronic device 100 is between e3 and f3 and the roll angle of the electronic device 100 is between g3 and h3, the electronic device 100 is in the right head-hand posture C.

[0428] For example, the angle between e1 and f1 may be between 0° and 30°, and the angle between g1 and h1 may be between 120° and 180°.

[0429] Similarly, for the explanation of e1 and f1, g1 and h1, for the explanation of e2 and f2, g2 and h2, and for the explanation of e3 and f3, g3 and h3, reference can be made to the above explanation of a1 and b1, c1 and d1. This application takes the example of e1 and f1, g1 and h1, e2 and f2, g2 and h2, e3 and f3, g3 and h3 including a continuous angle range for illustration.

[0430] The electronic device 100 is a foldable device:

[0431] In some embodiments, when the electronic device 100 is a foldable device, when the electronic device 100 is in the unfolded state, how to confirm the posture B of the electronic device 100 based on the second sensor data is similar to how to confirm the posture B of the electronic device 100 based on the second sensor data when the electronic device 100 is a straight screen device. Please refer to the description of the above embodiments, and this application will not repeat them here.

[0432] In some embodiments, when the electronic device 100 is a foldable device, when the electronic device 100 is in the folded state, the user may not rotate the electronic device 100 to the left or right. In this case, the specific implementation of how to confirm the posture B of the electronic device 100 based on the second sensor data is similar to the specific implementation of how to confirm the posture B of the electronic device 100 based on the second sensor data when the electronic device 100 is a candy-screen device. Please refer to the description of the above embodiment, and this application will not repeat it here.

[0433] For example, the following description will be made using the example of a folding screen.

[0434] For example, Figure 11 As shown in (a) of FIG, when the upper and lower folding screens are in the unfolded state, a receiver 1 is provided on the top of the back panel of the electronic device 100, a receiver 2 and an antenna 1 are provided on the left side of the back panel of the electronic device 100, and an antenna 2 is provided on the bottom of the back panel of the electronic device 100. When the electronic device 100 is in the unfolded state, the working receiver is the receiver 1 and the working antenna is the antenna 2. Afterwards, the display screens of the electronic device 100 can be folded toward each other and display Figure 11 The folded state shown in (b) in the figure. Afterwards, the user can Figure 11 The electronic device 100 in the folded state shown in (b) is flipped 180 degrees around a rotation axis perpendicular to the horizontal plane and displays Figure 11 The folded state shown in (c).

[0435] like Figure 11 As shown in (c), when the electronic device 100 is in the folded state, the electronic device 100 also includes a camera module and a small screen 102, and the small screen 102 is in the bright screen state. The small screen 102 is displayed in the positive direction at this time, and the user can operate the electronic device 100 without rotating it left or right. Figure 11 The small screen 102 shown in (c) in FIG. Figure 11 Operations can be performed on the small screen 102 shown in (c) to make calls to other devices, etc.

[0436] In some embodiments, when the electronic device 100 is a foldable device, when the electronic device 100 is in the folded state, the user may need to rotate the electronic device 100 to the left or right.

[0437] For example, the following description will be made using the example of a folding screen.

[0438] right Figure 12 The description of (a) and (b) can refer to Figure 11 The introduction of (a) and (b) in the present application will not be repeated here. Figure 11 After the folded state shown in (b) in the figure, the user can Figure 12The electronic device 100 in the folded state shown in (b) is flipped 180 degrees around a rotation axis perpendicular to the horizontal plane and displays Figure 12 The folded state shown in (c).

[0439] like Figure 12 As shown in (c), when the electronic device 100 is in the folded state, the electronic device 100 also includes a camera module and a small screen 102, and the small screen 102 is in the bright screen state. The small screen 102 is displayed horizontally at this time. In order to make the small screen 102 display in the forward direction, the user can rotate the electronic device 100 90 degrees to the left and display Figure 12 The folded state shown in (d).

[0440] like Figure 12 As shown in (d), users can operate Figure 12 The small screen 102 shown in (d) in FIG. Figure 12 Operations can be performed on the small screen 102 shown in (d) to make calls to other devices, etc.

[0441] Optionally, when the electronic device 100 is in Figure 11 and Figure 12 In the folded state shown, the electronic device 100 can switch the working receiver or the working antenna. The electronic device 100 can also not switch the working receiver or the working antenna.

[0442] For example, when the electronic device 100 is in Figure 11 In the folded state shown in (c) in FIG, the working receiver in the electronic device 100 can be switched from receiver 1 to receiver 2, and the working antenna in the electronic device 100 can be switched from antenna 2 to antenna 1.

[0443] For example, when the electronic device 100 is in Figure 12 In the folded state shown in (d) in FIG, the working receiver in the electronic device 100 can be switched from receiver 1 to receiver 2, and the working antenna in the electronic device 100 can be switched from antenna 2 to antenna 1.

[0444] Optionally, after the user rotates the electronic device 100, the pitch angle and roll angle of the electronic device 100 relative to the spherical coordinate system may change. The specific implementation of how the electronic device 100 determines the device posture based on the pitch angle and roll angle calculated by the second sensor data may also change.

[0445] Based on this, for a foldable device, in one possible implementation, when the electronic device 100 switches from the unfolded state to the folded state or an intermediate state, the electronic device 100 needs to monitor whether the electronic device 100 is rotated left or right. In the case of left rotation, the electronic device 100 can subtract a first angle compensation value from the matching angle, and the first angle compensation value is related to the angle of left rotation of the electronic device 100. In the case of right rotation, the electronic device 100 can add a second angle compensation value to the matching angle, and the second angle compensation value is related to the angle of left rotation of the electronic device 100.

[0446] Among them, the matching angle may refer to the angle range corresponding to the posture of the electronic device 100. For example, when the posture of the electronic device 100 is a left head-hand posture, the matching angle may be between a and b. When the posture of the electronic device 100 is a right head-hand posture, the matching angle may be between a and b, c and d, etc. Specifically, similar to the specific implementation of how to confirm the posture B of the electronic device 100 based on the second sensor data when the electronic device 100 is a straight screen device, reference may be made to the description of the above embodiment, and this application will not repeat it here.

[0447] In other possible implementations, when the electronic device 100 switches from the unfolded state to the folded state or the intermediate state, it may be assumed that the user has rotated the electronic device 100. The electronic device 100 may obtain the lateral angle and the rolling angle of the electronic device 100 based on the second sensor data. The electronic device 100 then obtains the matching angle when the electronic device 100 is in the folded state. The matching angle when the electronic device 100 is in the folded state may be different from the matching angle when the electronic device 100 is in the unfolded state. The specific implementation is similar to the specific implementation of how to confirm the posture B of the electronic device 100 based on the second sensor data when the electronic device 100 is a straight screen device. Please refer to the description of the above embodiment, and this application will not go into details here.

[0448] In some embodiments, the electronic device 100 can determine whether the electronic device 100 has rotated based on whether the active receiver of the electronic device 100 is switched. For example, when the active receiver in the electronic device 100 is switched from receiver 1 to receiver 2, it can be considered that the electronic device 100 has rotated. The electronic device 100 can obtain the matching angle when the electronic device 100 is in the folded state, and then determine the posture B of the electronic device 100 based on the matching angle when the electronic device 100 is in the folded state, the pitch angle, and the roll angle of the electronic device 100.

[0449] In summary, that is, when the display modes of the display screen of the electronic device 100 are different, how the electronic device 100 determines the matching angle of the posture B of the electronic device 100 based on the pitch angle and roll angle of the electronic device 100 is different.

[0450] S1003: The electronic device 100 needs to confirm whether posture B is the same as posture A.

[0451] After obtaining the posture B, the electronic device 100 needs to confirm whether the posture B is the same as the posture A.

[0452] When the posture B is the same as the posture A, the first antenna may continue to be tuned with the first frequency compensation value, or the working antenna may continue to be the second antenna, and S1004 may be executed.

[0453] When the posture B is different from the posture A, the electronic device 100 may tune the first antenna based on the posture B, or reconfirm the optimal working antenna and execute S1005.

[0454] S1004: The electronic device 100 continues to tune the first antenna with the first frequency compensation value, or continues to keep the working antenna as the second antenna.

[0455] S1005: The electronic device 100 determines the second frequency compensation value of the first antenna or determines that the working antenna is the third antenna based on the posture B, or the posture B and the first display mode of the display screen.

[0456] Exemplarily, the second frequency compensation value is different from the first frequency compensation value, and the second antenna is different from the first antenna.

[0457] In some embodiments, when the left head-hand gesture includes multiple different left head-hand gestures and the right head-hand gesture includes multiple different right head-hand gestures, in the first stage, in order to enable the electronic device 100 to quickly identify the gesture of the electronic device 100 based on the first sensor data, the electronic device 100 can identify whether the electronic device 100 is in the left head-hand gesture or the right head-hand gesture based on the values ​​of the first sensor data on the X-axis, Y-axis, and Z-axis. However, in the first stage, the electronic device 100 cannot accurately identify which left head-hand gesture or which right head-hand gesture it is. In the first stage, if the gesture of the electronic device 100 is the left head-hand gesture, and the left head-hand gesture includes left head-hand gesture A, left head-hand gesture B, and left head-hand gesture C, the electronic device 100 can default to the electronic device 100 being in the left head-hand gesture A, that is, the gesture A of the electronic device 100 in the first stage is the left head-hand gesture A, and the electronic device 100 can control the antenna based on the control strategy of the antenna corresponding to the left head-hand gesture A.

[0458] In the second stage, the electronic device 100 can obtain the second sensor data, and accurately identify which left head-hand posture or which right head-hand posture the electronic device 100 is in based on the second sensor data. For example, in the second stage, the electronic device 100 identifies that the electronic device 100 is in posture B, and posture B can be any one of left head-hand posture A, left head-hand posture B, and left head-hand posture C. The electronic device 100 also needs to confirm whether posture B is the same as posture A. If they are the same, no adjustment is required. In different cases, it means that the default device posture in the first stage is incorrect, and the current working antenna needs to be re-tuned or the optimal working antenna needs to be re-confirmed based on posture B. Specifically, and Figure 10 The embodiment is similar, you can refer to Figure 10 The description in the embodiments will not be repeated here.

[0459] For example, if posture A is a left head-hand posture A and posture B is also a left head-hand posture A, no adjustment is required.

[0460] For example, if posture A is left head-hand posture A and posture B is also left head-hand posture B, the electronic device 100 needs to re-tune the current working antenna or re-confirm the optimal working antenna based on left head-hand posture B.

[0461] In some embodiments, gesture A may also be referred to as a first gesture, and gesture B may also be referred to as a second gesture.

[0462] In some embodiments, after the second stage, that is, the user has placed the electronic device 100 close to the ear to answer the call, the posture of the electronic device 100 may also change.

[0463] The situation where the posture of the electronic device 100 changes may include but is not limited to any of the following:

[0464] Scenario 1: After the second stage, when the electronic device 100 is in posture B, the user may change the position in which they answer the call. For example, the electronic device 100 may be in posture C, where posture C may be a left-head-hand posture and posture B may be a right-head-hand posture. Alternatively, posture C may be a right-head-hand posture and posture B may be a left-head-hand posture. For example, after the second stage, the user may hold the electronic device 100 close to their right ear to answer the call. Thereafter, the user may change the position in which they answer the call, for example, holding the electronic device 100 close to their left ear to answer the call.

[0465] Case 2: In the case of multiple different left head-hand postures or multiple different right head-hand postures, after the second stage determines that the electronic device 100 is in posture B, the angle at which the user holds the electronic device 100 may change. For example, after the second stage, the electronic device 100 is in left head-hand posture A. The user can then continue to hold the electronic device 100 and place it close to their left ear to answer a call, but the user can change the relative position between the electronic device 100 and their head, and the electronic device 100 may be in left head-hand posture B or left head-hand posture C.

[0466] It is not limited to the above-mentioned situation 1 and situation 2. After the second stage, there may also be other more situations that cause the posture of the electronic device 100 to change, which is not limited in this application.

[0467] In some embodiments, gesture B may also be referred to as a first gesture, and gesture C may also be referred to as a second gesture.

[0468] Based on the above analysis, the electronic device 100 can continuously monitor the device posture of the electronic device 100. For example, the electronic device 100 can obtain the second sensor data, and determine the posture C of the electronic device 100 based on the second sensor data. When the posture C is the same as the posture B, it means that after the second stage, the user has not changed the posture of the electronic device 100. The electronic device 100 can continue to tune the first antenna with the first frequency compensation value, or continue to keep the working antenna as the second antenna. When the posture C is different from the posture B, it means that after the second stage, the user has changed the posture of the electronic device 100. The electronic device 100 can confirm the frequency compensation value of the first antenna or determine that the working antenna is the third antenna based on the posture C, or based on the posture C and the first display form of the display screen. Specifically, and Figure 10 The embodiment is similar, you can refer to Figure 10 The description in the embodiments is not repeated here.

[0469] In some embodiments, gesture B may also be referred to as a first gesture, and gesture C may also be referred to as a second gesture.

[0470] Figure 13 A schematic flow chart of an antenna control method is shown.

[0471] S1301: The electronic device obtains first sensor data.

[0472] S1302: The electronic device recognizes that the electronic device is in a first posture based on first sensor data.

[0473] S1303: The electronic device tunes the first antenna based on the first posture or switches the working antenna from the first antenna to the second antenna.

[0474] S1304: The electronic device obtains second sensor data.

[0475] S1305: The electronic device recognizes that the electronic device is in a second posture based on the second sensor data.

[0476] S1306: When the second posture is the same as the first posture, the electronic device continues to tune the first antenna in the first posture or continues to keep the working antenna as the second antenna.

[0477] In some embodiments, after the electronic device answers a call, while the user places the electronic device to the ear to answer the call, the electronic device can continuously monitor the posture of the electronic device to identify which left head-hand posture or which right head-hand posture the electronic device is in.

[0478] In some embodiments, after the user places the electronic device next to the ear to answer a call, the electronic device may continue to monitor the posture of the electronic device to prevent the user from changing the position of the electronic device, so that the electronic device can accurately monitor the posture of the electronic device.

[0479] This method allows an electronic device to continuously monitor its posture while communicating with another device and control its antenna based on that posture, preventing performance degradation caused by changes in the user's grip. This method improves the antenna's communication performance and increases call efficiency.

[0480] In a possible implementation, the method further includes: when the second posture is different from the first posture, the electronic device tunes the first antenna in the second posture or switches the working antenna to a third antenna, which is different from the first antenna.

[0481] In this way, when the user places the electronic device to the ear to answer a call, or after the user places the electronic device to the ear to answer a call, the electronic device detects that the user has changed the posture of the electronic device. The electronic device can control the antenna based on the changed device posture to avoid the situation where the communication performance of the electronic device's antenna is reduced due to the change in the electronic device's posture.

[0482] In a possible implementation, the electronic device obtains the first sensor data, specifically including: when the electronic device plays the first call data through the receiver, the electronic device obtains the first sensor data.

[0483] In this way, when the electronic device plays call data through the receiver, the electronic device collects sensor data to monitor the posture of the electronic device, which can save power consumption of the electronic device.

[0484] In one possible implementation, the electronic device identifies that the electronic device is in a first posture based on first sensor data, specifically including: the electronic device confirms whether the electronic device is in motion based on the first sensor data; when the electronic device is in motion, the electronic device identifies that the electronic device is in the first posture based on the first sensor data.

[0485] In this way, when the electronic device recognizes that the device is in motion, the user may lift the device up and bring it close to their ear, and the electronic device will then recognize the device's posture. If the electronic device recognizes that the device is stationary, the user may still be holding the device in their hand to answer the call, and the device is not close to their ear. The electronic device may not recognize the device's posture, which can save power consumption.

[0486] In one possible implementation, after the electronic device tunes the first antenna based on the first posture or switches the working antenna from the first antenna to the second antenna, the method also includes: the electronic device obtains the communication performance of the first antenna after tuning and the communication performance of the first antenna before tuning, or the communication performance of the second antenna and the communication performance of the first antenna; when the communication performance of the first antenna after tuning is weaker than the communication performance of the first antenna before tuning, or the communication performance of the second antenna is weaker than the communication performance of the first antenna, the electronic device obtains third sensor data and identifies that the electronic device is in a third posture based on the third sensor data, and the third posture is different from the first posture; the electronic device tunes the first antenna based on the third posture or switches the working antenna to a fourth antenna, and the fourth antenna is different from the first antenna.

[0487] In this way, if the communication performance of the first antenna after tuning is weaker than the communication performance before tuning of the first antenna, or the communication performance of the second antenna is weaker than the communication performance of the first antenna, it may be that the device posture recognition is incorrect. The electronic device can re-acquire sensor data and then identify the device posture. This feedback mechanism can avoid the situation where the antenna's communication performance is reduced due to incorrect device posture recognition.

[0488] In one possible implementation, the electronic device tunes the first antenna based on the first posture or switches the working antenna from the first antenna to the second antenna, specifically including: the electronic device obtains the first display form of the display screen of the electronic device; the electronic device tunes the first antenna based on the first posture and the first display form or switches the working antenna from the first antenna to the second antenna.

[0489] In a possible implementation, the first display state includes any one of the following: a fully folded state, a fully unfolded state, an intermediate state, or a fully folded state, a fully unfolded state, a first intermediate state, and a second intermediate state.

[0490] For example, when the electronic device 100 is an inward folding screen, the first display screen form may include but is not limited to Figure 1A The expanded state shown, Figure 1B The intermediate state shown, Figure 1C Optional, not limited to Figure 1B The intermediate state shown, the inner folding screen can also include other more intermediate states.

[0491] For example, when the electronic device 100 is an outward folding screen, the first display screen form may include but is not limited to Figure 1D The expanded state shown, Figure 1E The intermediate state shown, Figure 1F Optional, not limited to Figure 1E The intermediate state shown, the outer folding screen can also include other more intermediate states.

[0492] For example, when the electronic device 100 is a tri-fold screen, the first display screen form may include but is not limited to Figure 1G The expanded state shown, Figure 1H The folded state shown, Figure 1I The folded state shown, Figure 1J The folded state shown, Figure 1K and Figure 1L Optionally, the tri-fold screen may include more intermediate states.

[0493] For example, when the electronic device 100 has a foldable screen, the first display screen form may include but is not limited to: Figure 1M The expanded state shown, Figure 1N The intermediate state shown, Figure 1O Optional, not limited to Figure 1N The intermediate state shown, the upper and lower folding screens can also include other more intermediate states.

[0494] Thus, different display modes of the electronic device's display screen have different impacts on the antenna's communication performance. The electronic device can control the antenna based on both the display mode and the device's posture. Different display modes of the electronic device's display screen require different antenna control strategies.

[0495] In one possible implementation, the electronic device tunes the first antenna based on the first posture, specifically including: the electronic device confirms the first frequency compensation value based on the first posture and the first display form; the electronic device tunes the first antenna based on the first frequency compensation value, and the first frequency compensation value is used to adjust the operating frequency band of the first antenna and enable the first antenna to operate within a preset operating frequency band.

[0496] In one possible implementation, the electronic device tunes the first antenna based on the first posture, specifically including: the electronic device confirms a first frequency compensation value based on the first posture; the electronic device tunes the first antenna based on the first frequency compensation value, and the first frequency compensation value is used to adjust the operating frequency band of the first antenna and enable the first antenna to operate within a preset operating frequency band.

[0497] In one possible implementation, the communication performance of the antenna is determined by any one or more parameters of the antenna signal receiving power, the antenna signal maximum transmitting power, the power back-off value, the antenna path loss, the antenna channel bandwidth, the antenna gain, the antenna efficiency, and the antenna radiation pattern.

[0498] The first gesture or the second gesture includes any one of the following: a first left head-hand gesture, a second left head-hand gesture, a first right head-hand gesture, and a second right head-hand gesture.

[0499] Optionally, the first posture or the second posture may also include any one of the following: left head-hand posture, right head-hand posture.

[0500] In one possible implementation, the electronic device confirms that the electronic device is in the first posture based on the first sensor data, specifically including: the electronic device determines the values ​​of the first sensor data obtained on the X-axis, Y-axis and Z-axis; when the values ​​of the first sensor data on the Y-axis and the values ​​on the Z-axis meet the first condition, the electronic device confirms that the electronic device is in the first posture based on the first sensor data.

[0501] In this way, after the electronic device answers a call, before the user places the electronic device next to the ear to answer the call, the electronic device can determine the device posture of the electronic device based on the value of the first sensor data, which can speed up the speed at which the electronic device confirms the device posture of the electronic device.

[0502] In one possible implementation, the electronic device confirms that the electronic device is in a first posture based on the first sensor data, specifically including: when the electronic device confirms that the electronic device is in a left head-hand posture based on the first sensor data, the electronic device confirms that the first posture is a first left head-hand posture; when the electronic device confirms that the electronic device is in a right head-hand posture based on the first sensor data, the electronic device confirms that the first posture is a first right head-hand posture.

[0503] In this way, after the electronic device answers a call and before the user places the electronic device to the ear to answer the call, the electronic device can determine, based on the value of the first sensor data, that the electronic device is in the left head-hand posture or the right head-hand posture. In the case of multiple left head-hand postures or multiple right head-hand postures, the electronic device can use the first left head-hand posture among the multiple left head-hand postures as the first posture, or the electronic device can use the first right head-hand posture among the multiple right head-hand postures as the first posture.

[0504] In one possible implementation, the X-axis, Y-axis, and Z-axis are the X-axis, Y-axis, and Z-axis of the spherical coordinate system; when the first posture is the first left head-hand posture, the first condition includes: the value of the first sensor data on the Y-axis and the value on the Z-axis are greater than 0; when the first posture is the first right head-hand posture, the first condition includes: the value of the first sensor data on the Y-axis and the value on the Z-axis are less than 0.

[0505] In one possible implementation, the electronic device confirms that the electronic device is in the second posture based on the second sensor data, specifically including: the electronic device obtains the pitch angle of the plane where the electronic device is located relative to the XOY plane in the spherical coordinate system, and the azimuth angle of the plane where the electronic device is located relative to the YOZ plane in the spherical coordinate system based on the second sensor data; when the azimuth angle and the pitch angle meet the second condition, the electronic device confirms that the electronic device is in the second posture.

[0506] In this way, when a user holds the electronic device to their ear to answer a call, the electronic device can determine the electronic device's pitch and azimuth based on the second sensor data, and then determine the device's posture based on the pitch and azimuth of the electronic device. This method can more accurately determine the device's posture, and can also verify whether the electronic device's first posture determined by the electronic device based on the first sensor data is correct.

[0507] In one possible implementation, when the second posture is the first left head-hand posture, the second condition includes: the azimuth angle is greater than the first value and less than the second value, and the pitch angle is greater than the third value and less than the fourth value; when the second posture is the second left head-hand posture, the second condition includes: the azimuth angle is greater than the fifth value and less than the sixth value, and the pitch angle is greater than the seventh value and less than the eighth value; when the second posture is the first right head-hand posture, the second condition includes: the azimuth angle is greater than the ninth value and less than the tenth value, and the pitch angle is greater than the eleventh value and less than the twelfth value; when the second posture is the second right head-hand posture, the second condition includes: the azimuth angle is greater than the thirteenth value and less than the fourteenth value, and the pitch angle is greater than the fifteenth value and less than the sixteenth value.

[0508] Illustratively, the first left head-hand gesture may be a left head-hand gesture A, the first value may be c1, the second value may be d1, the third value may be a1, and the fourth value may be b1.

[0509] Illustratively, the second left head-hand gesture may be left head-hand gesture B, the fifth value may be c2, the sixth value may be d2, the seventh value may be a2, and the eighth value may be b2.

[0510] Illustratively, the first right head-hand gesture may be right head-hand gesture A, the ninth value may be g1, the tenth value may be h1, the eleventh value may be e1, and the twelfth value may be f1.

[0511] Illustratively, the second right head-hand gesture may be right head-hand gesture B, the thirteenth value may be g2, the fourteenth value may be h2, the fifteenth value may be e2, and the sixteenth value may be f2.

[0512] In a possible implementation, the first sensor data includes acceleration data and / or gyroscope data, and the second sensor data includes acceleration data and / or gyroscope data.

[0513] In one possible implementation, the electronic device confirms that the electronic device is in the first posture based on the first sensor data, specifically including: the electronic device obtains a first pitch angle of the plane where the electronic device is located relative to the XOY plane in the spherical coordinate system, and a first azimuth angle of the plane where the electronic device is located relative to the YOZ plane in the spherical coordinate system based on the first sensor data; when the first azimuth angle and the first pitch angle meet the third condition, the electronic device confirms that the electronic device is in the first posture.

[0514] The electronic device confirms that the electronic device is in the second posture based on the second sensor data, specifically including: the electronic device obtains a second pitch angle of the plane where the electronic device is located relative to the XOY plane in the spherical coordinate system, and a second azimuth angle of the plane where the electronic device is located relative to the YOZ plane in the spherical coordinate system based on the second sensor data; when the second azimuth angle and the second pitch angle meet the fourth condition, the electronic device confirms that the electronic device is in the second posture.

[0515] For the interpretation of the third and fourth conditions, please refer to the interpretation of the second condition.

[0516] In this way, when a user holds the electronic device to his ear to answer a call, the electronic device can continuously monitor whether the device posture of the electronic device has changed in this manner.

[0517] The present application provides an electronic device, which includes one or more memories and one or more processors; wherein the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer programs. When the one or more processors execute and call the computer programs, the electronic device executes Figure 13 An antenna control method is shown.

[0518] The present application provides a computer-readable storage medium including instructions, which, when executed on an electronic device, causes the electronic device to execute Figure 13 An antenna control method is shown.

[0519] The present application provides a chip system including one or more processors, which are used to call computer instructions to enable electronic devices to execute Figure 13 An antenna control method is shown.

[0520] The present application provides a computer program product containing instructions, which, when executed on an electronic device, enables the electronic device to execute Figure 13 An antenna control method is shown.

[0521] The above are only some of the embodiments and implementations of this application. The scope of protection of this 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.

[0522] It is understood that the various user interfaces described in the embodiments of this application are merely exemplary interfaces and do not limit the scope of this application. In other embodiments, the user interface may adopt a different interface layout, include more or fewer controls, and add or remove other functional options. As long as they are based on the same inventive concept provided by this application, they are all within the scope of protection of this application.

[0523] It should be noted that, without causing any contradiction or conflict, any feature in any embodiment of the present application, or any part of any feature, can be combined, and the combined technical solution is also within the scope of the embodiments of the present application.

[0524] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. An antenna control method, characterized in that: The method comprises: The electronic device obtains first sensor data; The electronic device recognizes, based on the first sensor data, that the electronic device is in a first posture; The electronic device tunes the first antenna based on the first posture or switches the working antenna from the first antenna to the second antenna; The electronic device acquires second sensor data; The electronic device recognizes, based on the second sensor data, that the electronic device is in a second posture; When the second posture is the same as the first posture, the electronic device continues to tune the first antenna in the first posture or continues to keep the second antenna as the working antenna.

2. The method according to claim 1, characterized in that The method further comprises: When the second posture is different from the first posture, the electronic device tunes the first antenna in the second posture or switches the working antenna to a third antenna, which is different from the first antenna.

3. The method according to claim 1 or 2, characterized in that The electronic device obtains first sensor data, specifically including: When the electronic device plays the first call data through the receiver, the electronic device obtains the first sensor data.

4. The method according to claim 1, wherein The electronic device identifying, based on the first sensor data, that the electronic device is in a first posture specifically includes: The electronic device confirms, based on the first sensor data, whether the electronic device is in motion; When the electronic device is in the motion state, the electronic device recognizes that the electronic device is in the first posture based on the first sensor data.

5. The method according to any one of claims 1 to 4, characterized in that After the electronic device tunes the first antenna based on the first posture or switches the working antenna from the first antenna to the second antenna, the method further includes: The electronic device obtains the communication performance of the first antenna after tuning and the communication performance of the first antenna before tuning, or the communication performance of the second antenna and the communication performance of the first antenna; When the communication performance of the first antenna after tuning is weaker than the communication performance of the first antenna before tuning, or the communication performance of the second antenna is weaker than the communication performance of the first antenna, the electronic device obtains third sensor data, and identifies, based on the third sensor data, that the electronic device is in a third posture, where the third posture is different from the first posture; The electronic device tunes the first antenna based on a third posture or switches the working antenna to a fourth antenna, where the fourth antenna is different from the first antenna.

6. The method according to any one of claims 1 to 5, characterized in that The electronic device tunes the first antenna based on the first posture or switches the working antenna from the first antenna to the second antenna, specifically including: The electronic device obtains the communication performance of the first antenna after tuning and the communication performance of the first antenna before tuning, or the communication performance of the second antenna and the communication performance of the first antenna; When the communication performance of the first antenna after tuning is better than the communication performance of the first antenna before tuning, or the communication performance of the second antenna is better than the communication performance of the first antenna, the electronic device tunes the first antenna based on the first posture or switches the working antenna from the first antenna to the second antenna.

7. The method according to any one of claims 1 to 6, characterized in that The electronic device tunes the first antenna based on the first posture or switches the working antenna from the first antenna to the second antenna, specifically including: The electronic device acquires a first display mode of a display screen of the electronic device; The electronic device tunes the first antenna or switches the working antenna from the first antenna to the second antenna based on the first posture and the first display form.

8. The method according to claim 7, wherein the first display state comprises any one of the following: a fully folded state, a fully unfolded state, an intermediate state, or a fully folded state, a fully unfolded state, a first intermediate state, and a second intermediate state.

9. The method according to claim 7 or 8, characterized in that The electronic device tunes the first antenna based on the first posture, specifically including: The electronic device determines a first frequency compensation value based on the first posture and the first display form; The electronic device tunes the first antenna based on the first frequency compensation value, where the first frequency compensation value is used to adjust a working frequency band of the first antenna and enable the first antenna to operate within a preset working frequency band.

10. The method according to any one of claims 1 to 6, characterized in that The electronic device tunes the first antenna based on the first posture, specifically including: The electronic device confirms a first frequency compensation value based on the first posture; The electronic device tunes the first antenna based on the first frequency compensation value, where the first frequency compensation value is used to adjust a working frequency band of the first antenna and enable the first antenna to operate within a preset working frequency band.

11. The method according to claim 5 or 6, characterized in that The communication performance of an antenna is determined by any one or more parameters including antenna signal receiving power, antenna signal maximum transmitting power, power back-off value, antenna path loss, antenna channel bandwidth, antenna gain, antenna efficiency, and antenna radiation pattern.

12. The method according to any one of claims 1 to 8, characterized in that The first posture or the second posture includes any one of the following: a first left head-hand posture, a second left head-hand posture, a first right head-hand posture, and a second right head-hand posture.

13. The method according to claim 12, characterized in that The electronic device confirming, based on the first sensor data, that the electronic device is in a first posture specifically includes: The electronic device determines the values ​​of the first sensor data acquired on the X-axis, the Y-axis, and the Z-axis; When the values ​​of the first sensor data on the Y axis and the Z axis satisfy a first condition, the electronic device confirms that the electronic device is in the first posture based on the first sensor data.

14. The method according to claim 13, characterized in that The electronic device confirming, based on the first sensor data, that the electronic device is in the first posture specifically includes: When the electronic device confirms that the electronic device is in a left head-hand posture based on the first sensor data, the electronic device confirms that the first posture is the first left head-hand posture; When the electronic device confirms that the electronic device is in the right head-hand posture based on the first sensor data, the electronic device confirms that the first posture is the first right head-hand posture.

15. The method according to claim 14, characterized in that The X-axis, Y-axis, and Z-axis are the X-axis, Y-axis, and Z-axis of the spherical coordinate system; when the first posture is the first left head-hand posture, the first condition includes: the value of the first sensor data on the Y-axis and the value on the Z-axis are greater than 0; When the first posture is the first right head-hand posture, the first condition includes: a value of the first sensor data on the Y axis and a value of the first sensor data on the Z axis are less than 0.

16. The method according to claim 12, characterized in that The electronic device confirming, based on the second sensor data, that the electronic device is in the second posture specifically includes: The electronic device obtains, based on the second sensor data, a pitch angle of the plane where the electronic device is located relative to an XOY plane in a spherical coordinate system, and an azimuth angle of the plane where the electronic device is located relative to a YOZ plane in the spherical coordinate system; When the azimuth angle and the pitch angle satisfy a second condition, the electronic device confirms that the electronic device is in the second posture.

17. The method according to claim 16, characterized in that When the second posture is the first left head-hand posture, the second condition includes: the azimuth angle is greater than a first value and less than a second value, and the pitch angle is greater than a third value and less than a fourth value; When the second posture is the second left head-hand posture, the second condition includes: the azimuth angle is greater than the fifth value and less than the sixth value, and the pitch angle is greater than the seventh value and less than the eighth value; When the second posture is the first right head-hand posture, the second condition includes: the azimuth angle is greater than a ninth value and less than a tenth value, and the pitch angle is greater than an eleventh value and less than a twelfth value; When the second posture is the second right head-hand posture, the second condition includes: the azimuth angle is greater than the thirteenth value and less than the fourteenth value, and the pitch angle is greater than the fifteenth value and less than the sixteenth value.

18. The method according to any one of claims 1 to 17, characterized in that The first sensor data includes acceleration data and / or gyroscope data, and the second sensor data includes acceleration data and / or gyroscope data.

19. An electronic device, characterized in that: The electronic device includes one or more memories and one or more processors; wherein the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer programs. When the one or more processors execute and call the computer program, the method described in any one of claims 1-18 is executed.

20. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 18.

21. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are run on an electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 18.

Citation Information

Cited By

  • Antenna control method, electronic device and computer-readable storage medium

    WO2026081977A1