Antenna control method, electronic equipment and computer readable storage medium
By monitoring and adjusting the antenna's operating frequency or switching the antenna, the problem of antenna communication performance degradation when the external space environment changes is solved, thereby improving communication performance and call efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2024-10-14
- Publication Date
- 2026-04-28
AI Technical Summary
Existing technologies make it difficult to accurately determine the frequency compensation value of an antenna, which leads to a decrease in antenna communication performance when the external space environment changes.
By continuously monitoring the attitude of electronic devices, sensor data is used to identify attitude changes, and the operating frequency of the antenna is adjusted or the antenna is switched based on the attitude to maintain communication performance.
It improves the antenna's communication performance, avoids performance degradation caused by changes in the user's hand grip, and improves call efficiency.
Smart Images

Figure CN121940486A_ABST
Abstract
Description
[0001] This application is a divisional application. The original application, application number 202411437753.9, was filed on October 14, 2024. The entire contents of the original application are incorporated herein by reference. Technical Field
[0002] This application relates to the field of terminal technology, and in particular to an antenna control method, electronic device, and computer-readable storage medium. Background Technology
[0003] With the continuous development of wireless communication technology, more and more electronic devices, such as mobile phones, tablets, and wearable devices, have appeared in people's daily lives.
[0004] Electronic devices can communicate with other devices via antennas. However, the communication performance of an antenna can vary due to changes in the external environment. Currently, device manufacturers can adjust the operating frequency of antennas using antenna tuners to improve their communication performance. However, accurately determining the antenna's frequency compensation value, and then adjusting the antenna's operating frequency based on that compensation value using an antenna tuner, requires further research. Summary of the Invention
[0005] This application provides an antenna control method, an electronic device, and a computer-readable storage medium. During communication between the electronic device and other devices, the electronic device can continuously monitor its posture and control the antenna based on that posture, preventing performance degradation caused by changes in the user's hand position. This method improves antenna communication performance and enhances call efficiency.
[0006] In a first aspect, this 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 a first antenna or switching the operating antenna from the first antenna to a second antenna based on the first posture; 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; and, if the second posture is the same as the first posture, the electronic device continuing to tune the first antenna in the first posture or continuing to keep the operating antenna as the second antenna.
[0007] In some embodiments, after the electronic device answers a call, while the user is holding the electronic device to their ear to answer the call, the electronic device can continuously monitor the posture of the electronic device to identify which left-hand or right-hand posture the electronic device is in.
[0008] In some embodiments, after a user places the electronic device to their ear to answer a call, the electronic device can continue to monitor its posture to prevent the user from changing the position of the electronic device, thereby enabling the electronic device to accurately monitor its posture.
[0009] This method allows the electronic device to continuously monitor its posture during calls with other devices and control the antenna accordingly. This prevents performance degradation caused by changes in the user's hand position. Ultimately, this method improves antenna communication performance and enhances call efficiency.
[0010] In conjunction with the first aspect, in one possible implementation, the method further includes: when the second attitude is different from the first attitude, the electronic device tunes the first antenna in the second attitude or switches the operating antenna to a third antenna, which is different from the first antenna.
[0011] In this way, when a user places the electronic device to their ear to answer a call, or after the user has placed the electronic device to their ear to answer a call, the electronic device can detect that the user has changed the posture of the electronic device. The electronic device can then control the antenna based on the changed posture, thus preventing the communication performance of the electronic device's antenna from deteriorating due to the change in the electronic device's posture.
[0012] In conjunction with the first aspect, in one possible implementation, the electronic device acquires the first sensor data, specifically including: the electronic device acquires the first sensor data when the electronic device plays the first call data through the receiver.
[0013] In this way, while the electronic device is playing call data through the receiver, it can also collect sensor data to monitor its posture, thus saving power consumption.
[0014] In conjunction with the first aspect, in one possible implementation, the electronic device identifies that it is in a first posture based on the first sensor data, specifically including: the electronic device confirms whether it is in motion based on the first sensor data; and if the electronic device is in motion, the electronic device identifies that it is in the first posture based on the first sensor data.
[0015] In this way, when the electronic device detects that it is in motion, the user may raise the device and bring it close to their ear, at which point the electronic device will then recognize the device's posture. If the electronic device detects that the device is stationary, the user may still hold the device in their hand to answer the call, without bringing the device close to their ear. In this case, the electronic device does not need to recognize the device's posture, thus saving power consumption.
[0016] In conjunction with the first aspect, in one possible implementation, after the electronic device tunes the first antenna based on a first attitude or switches the operating antenna from the first antenna to a second antenna, the method further includes: the electronic device acquiring 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; if the communication performance of the first antenna after tuning 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, the electronic device acquires third sensor data and identifies the electronic device as being in a third attitude based on the third sensor data, the third attitude being different from the first attitude; the electronic device tunes the first antenna based on the third attitude or switches the operating antenna to a fourth antenna, the fourth antenna being different from the first antenna.
[0017] In this way, if the communication performance of the first antenna after tuning is weaker than that before tuning, or the communication performance of the second antenna is weaker than that of the first antenna, it may be due to an error in the device attitude recognition. The electronic device can reacquire sensor data and re-recognize the device attitude. This feedback mechanism can prevent the antenna's communication performance from degrading due to an error in the device attitude recognition.
[0018] In conjunction with the first aspect, in one possible implementation, the electronic device tunes the first antenna based on a first attitude or switches the operating antenna from the first antenna to the second antenna, specifically including: the electronic device acquiring a first display mode of the electronic device's display screen; the electronic device tuning the first antenna based on the first attitude and the first display mode or switching the operating antenna from the first antenna to the second antenna.
[0019] In one possible implementation, the first display form includes any 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.
[0020] For example, when the electronic device 100 is an inward-folding screen, the form of the first display screen may include, but is not limited to, those described above. Figure 1A The unfolded state shown Figure 1B The intermediate state shown Figure 1C The folded state shown. Optional, not limited to... Figure 1B The intermediate states shown can be further categorized into many other intermediate states for the inward-folding screen.
[0021] For example, when the electronic device 100 is an outward-folding screen, the first display screen form may include, but is not limited to, the following: Figure 1D The unfolded state shown Figure 1E The intermediate state shown Figure 1F The folded state shown. Optional, not limited to... Figure 1EThe intermediate states shown can be further categorized into other intermediate states for the outward-folding screen.
[0022] For example, when the electronic device 100 is a tri-fold screen, the form of the first display screen may include, but is not limited to, those described above. Figure 1G The unfolded 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 The intermediate state shown is shown. Optionally, the tri-fold screen can also include other intermediate states.
[0023] For example, when the electronic device 100 is a vertically folding screen, the first display screen form may include, but is not limited to, the following: Figure 1M The unfolded state shown Figure 1N The intermediate state shown Figure 10 The folded state shown. Optional, not limited to... Figure 1N The intermediate states shown can be further categorized into other intermediate states for vertically folding screens.
[0024] Thus, different display formats of electronic devices have varying impacts on antenna communication performance. Electronic devices can control their antennas based on both the display format and the device's orientation. Different display formats necessitate different antenna control strategies.
[0025] In conjunction with the first aspect, in one possible implementation, the electronic device tunes the first antenna based on a first attitude, specifically including: the electronic device confirming a first frequency compensation value based on the first attitude and a first display form; the electronic device tuning the first antenna based on the first frequency compensation value, wherein the first frequency compensation value is used to adjust the operating frequency band of the first antenna and make the first antenna operate within a preset operating frequency band.
[0026] In conjunction with the first aspect, in one possible implementation, the electronic device tunes the first antenna based on a first attitude, specifically including: the electronic device confirming a first frequency compensation value based on the first attitude; the electronic device tuning the first antenna based on the first frequency compensation value, wherein the first frequency compensation value is used to adjust the operating frequency band of the first antenna and make the first antenna operate within a preset operating frequency band.
[0027] In conjunction with the first aspect, in one possible implementation, the communication performance of the antenna is determined by any one or more parameters in the antenna signal received power, maximum transmit power, power backoff value, path loss of the antenna path, channel bandwidth, antenna gain, antenna efficiency, and antenna pattern.
[0028] In conjunction with the first aspect, in one possible implementation, the first posture or the second posture includes any one of the following: the first left head-hand posture, the second left head-hand posture, the first right head-hand posture, and the second right head-hand posture.
[0029] Optionally, the first or second posture may also include any of the following: left head-and-hand posture, right head-and-hand posture.
[0030] In conjunction with the first aspect, in one possible implementation, the electronic device confirms that it is in a first posture based on the first sensor data, specifically including: the electronic device determining the values of the first sensor data acquired on the X-axis, Y-axis, and Z-axis; and when the values of the first sensor data on the Y-axis and Z-axis satisfy a first condition, the electronic device confirms that it is in the first posture based on the first sensor data.
[0031] In this way, after the electronic device answers a call, but before the user places the electronic device to their ear to answer the call, the electronic device can determine its posture based on the values of the first sensor data, which can speed up the process of the electronic device confirming its posture.
[0032] In conjunction with the first aspect, in one possible implementation, the electronic device confirms that it is in a first posture based on the first sensor data, specifically including: when the electronic device confirms that it is in a left head-and-hand posture based on the first sensor data, the electronic device confirms that the first posture is a first left head-and-hand posture; when the electronic device confirms that it is in a right head-and-hand posture based on the first sensor data, the electronic device confirms that the first posture is a first right head-and-hand posture.
[0033] Thus, after the electronic device answers a call but before the user places the device to their ear, it can determine whether it is in a left-head-and-hand posture or a right-head-and-hand posture based on the values of the first sensor data. In cases involving multiple left-head-and-hand postures or multiple right-head-and-hand postures, the electronic device can use the first left-head-and-hand posture from among the multiple left-head-and-hand postures as the first posture; alternatively, the electronic device can use the first right-head-and-hand posture from among the multiple right-head-and-hand postures as the first posture.
[0034] In conjunction 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 a spherical coordinate system; when the first posture is a 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 a 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.
[0035] In conjunction with the first aspect, in one possible implementation, the electronic device confirms that it is in a second attitude based on the second sensor data, specifically including: the electronic device acquiring 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; and confirming that the electronic device is in a second attitude when the azimuth angle and the pitch angle satisfy the second condition.
[0036] In this way, when a user holds the electronic device to their ear to answer a call, the device can obtain its pitch and azimuth angles based on data from the second sensor, and then confirm its attitude based on the pitch and azimuth angles. This method can more accurately confirm the device's attitude and also verify whether the initial attitude confirmed by the electronic device based on the first sensor data is correct.
[0037] In conjunction with the first aspect, in one possible implementation, when the second posture is the first left-head-and-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-and-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-and-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-and-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.
[0038] For example, the first left head-hand posture can be left head-hand posture A, the first value can be c1, the second value can be d1, the third value can be a1, and the fourth value can be b1.
[0039] For example, the second left head-hand posture can be left head-hand posture B, the fifth value can be c2, the sixth value can be d2, the seventh value can be a2, and the eighth value can be b2.
[0040] For example, the first right head-and-hand posture can be right head-and-hand posture A, the ninth value can be g1, the tenth value can be h1, the eleventh value can be e1, and the twelfth value can be f1.
[0041] For example, the second right head-and-hand posture can be right head-and-hand posture B, the thirteenth value can be g2, the fourteenth value can be h2, the fifteenth value can be e2, and the sixteenth value can be f2.
[0042] In conjunction with the first aspect, in one 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.
[0043] In conjunction with the first aspect, in one possible implementation, the electronic device confirms that it is in a first attitude based on the first sensor data, specifically including: the electronic device obtaining 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; and when the first azimuth angle and the first pitch angle satisfy a third condition, the electronic device confirms that it is in the first attitude.
[0044] The electronic device confirms that it is in a second attitude based on the second sensor data, specifically including: the electronic device obtains the second pitch angle of the plane where the electronic device is located relative to the XOY plane in the spherical coordinate system, and the 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 satisfy the fourth condition, the electronic device confirms that it is in a second attitude.
[0045] For an explanation of the third and fourth conditions, please refer to the explanation of the second condition.
[0046] In this way, when a user holds the electronic device to their ear to answer a call, the device can continuously monitor whether its posture has changed.
[0047] In a second aspect, this application provides an electronic device including one or more memories and one or more processors; wherein the one or more memories and one or more processors are coupled, the one or more memories are used to store a computer program, and when the one or more processors execute a call to the computer program, the electronic device performs a method provided in any possible implementation of any of the above aspects.
[0048] Thirdly, this application provides a computer-readable storage medium including instructions that, when executed on an electronic device, cause the electronic device to perform a method provided in any possible implementation of any of the above aspects.
[0049] Fourthly, this application provides a chip system including one or more processors, which are used to invoke computer instructions to cause an electronic device to perform a method provided in any possible implementation of any of the above aspects.
[0050] Fifthly, this application provides a computer program product containing instructions that, when the computer program product is run on an electronic device, causes the electronic device to execute a method provided in any possible implementation of any of the above aspects.
[0051] For a description of the beneficial effects in aspects two through five, please refer to the description of the beneficial effects in aspect one; this application will not repeat them here. Attached Figure Description
[0052] Figures 1A-1P A schematic diagram of the display screen of electronic device 100 is shown; Figures 2A-2B Schematic diagrams of left head-and-hand pose and right head-and-hand pose are shown; Figure 3 A schematic diagram of the hardware structure of the electronic device 100 is shown; Figure 4 A schematic diagram of the software structure of the electronic device 100 is shown; Figure 5A A schematic diagram illustrating the interaction of multiple functional modules in an electronic device 100 is shown. Figure 5B An interactive schematic diagram of multiple functional modules in another electronic device 100 is shown; Figure 6 A schematic diagram illustrating the interaction of multiple hardware components in another electronic device 100 is shown; Figure 7 A schematic diagram of an electronic device 100 controlling an antenna in the first stage is shown; Figure 8 A schematic diagram of another electronic device 100 controlling the antenna in the first stage is shown; Figure 9 This diagram illustrates how an electronic device 100 controls an antenna after tuning or switching the operating antenna on the first day. Figure 10 A schematic diagram is shown showing how an electronic device 100 continuously monitors its attitude and controls its antenna. Figures 11-12 A schematic diagram of the electronic device 100 in a folded state is shown; Figure 13 A flowchart of an antenna control method is shown. Detailed Implementation
[0053] The technical solutions in the embodiments of this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; the word "and / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.
[0054] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.
[0055] The term "user interface (UI)" used in the following embodiments of this application refers to the medium interface through which an application or operating system interacts and exchanges information with a user. It realizes the conversion between the internal form of information and the form that the user can accept. The commonly used form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be visual interface elements such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets displayed on the screen of a wearable device.
[0056] First, let's introduce the display form of the screen of the electronic device 100 provided in this application.
[0057] The display screen of electronic device 100 may include flat screens and foldable screens. Foldable screens can be further divided into bi-fold screens and multi-fold screens. Bi-fold screens can be divided into inward-folding screens, outward-folding screens, etc. Multi-fold screens may be tri-fold screens, etc.
[0058] Figures 1A-1C A schematic diagram of the inward-folding screen display is shown.
[0059] The display forms of inward-folding screens can be divided into folded state, intermediate state, and unfolded state.
[0060] Figure 1A A schematic diagram of the display form when the inward-folding screen is in the unfolded state is shown.
[0061] Figure 1A(a) illustrates an exemplary front view of the inward-folding screen in its unfolded state. When the inward-folding screen is in its 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 single, complete display or two separate display screens. The display area containing screens A and B can also be referred to as the inner screen. For example, when the inward-folding screen is in its unfolded state, the angle α between screens A and B is greater than or equal to a first value and less than or equal to a second value. For example, the first value can be 160 degrees, and the second value can be 180 degrees. For instance, when the inward-folding screen is in its unfolded state, the angle α between screens A and B can be 180 degrees.
[0062] Figure 1A (b) illustrates an example view of the back of the inward-folding screen in its folded state. When the inward-folding screen is in its folded state, the display also includes screen C. Screen C is a display completely independent of screens A and B.
[0063] Figure 1B A schematic diagram of the display form when the inward-folding screen is in the intermediate state is shown.
[0064] The intermediate state refers to the folding shape where the inward-folding screen can be bent at a certain angle towards the facing surfaces of screens A and B. When the inward-folding screen is in this intermediate state, the displayable screens include screens A, B, and C. In this intermediate state, the angle α between screens A and B is greater than or equal to a third value and less than or equal to a first value. For example, the first value could be 160 degrees, and the third value could be 90 degrees. Alternatively, when the inward-folding screen is in its folded state, the angle α between screens A and B could be 120 degrees.
[0065] Optional, Figure 1B Only one display mode of the inward-folding screen in the intermediate state is shown. The display mode of the inward-folding screen in the intermediate state is different when the included angle α between screen A and screen B is different.
[0066] Figure 1C A schematic diagram of the display form when the inward-folding screen is in the folded state is shown.
[0067] The inward-folding screen can continue to bend in the direction where screens A and B are facing each other, until the inward-folding screen is in a folded state.
[0068] like Figure 1C As shown, when the inward-folding screen is in the folded state, the only displayable screen includes screen C; 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 instance, when the inward-folding screen is in the folded state, the angle α between screens A and B can be 0 degrees.
[0069] Figures 1D-1F A schematic diagram of the outward-folding screen display is shown.
[0070] Similar to inward-folding screens, outward-folding screens can also be divided into three display forms: unfolded, intermediate, and folded.
[0071] Figure 1D A schematic diagram of the display form when the outward-folding screen is in the unfolded state is shown.
[0072] in, Figure 1D (a) exemplarily illustrates a front view of the outward-folding screen in its unfolded state. When the outward-folding screen is in its unfolded state, the displayable screens of the folding screen include screen A and screen B. Screen A and screen B can be a single, continuous display or two separate displays. Exemplarily, when the inward-folding screen is in its unfolded state, the angle α between screen A and screen B is greater than or equal to a first value and less than or equal to a second value. Exemplarily, the first value can be 160 degrees, and the second value can be 180 degrees. Exemplarily, when the outward-folding screen is in its unfolded state, the angle α between screen A and screen B can be 180 degrees.
[0073] Figure 1D (b) in the figure exemplarily shows a rear view of the outward-folding screen in the unfolded state. When the outward-folding screen is in the unfolded state, the display of the outward-folding screen does not include the C-screen, compared to the inward-folding screen in the unfolded state.
[0074] Figure 1E A schematic diagram of the display form when the outward-folding screen is in the intermediate state is shown.
[0075] The intermediate state refers to the folding shape where the outward-folding screen can bend in a direction opposite to screens A and B, forming a folded shape with a certain angle. In other words, the folding directions of the outward-folding screen and the inward-folding screen are opposite. When the outward-folding screen is in the intermediate state, the displayable screens include screens A and B, and the angle α between screens A and B is greater than or equal to a third value and less than or equal to a first value. For example, the third value could be 90 degrees, and the first value could be 160 degrees. For instance, when the outward-folding screen is in the intermediate state, the angle α between screens A and B could be 120 degrees.
[0076] Optional, Figure 1E Only one display mode is shown when the outward-folding screen is in the intermediate state. The angle α between screen A and screen B is different, and the display mode when the inward-folding screen is in the intermediate state is also different.
[0077] Figure 1F A schematic diagram of the display form when the outward-folding screen is in the folded state is shown.
[0078] like Figure 1FAs shown, when the outward-folding screen is in the folded state, the displayable screens can be screen A and screen B. The angle α between screen A and screen B is greater than or equal to 0 degrees and less than or equal to a third value, for example, the third value can be 90 degrees. For example, when the outward-folding screen is in the folded state, the angle α between screen A and screen B can be 0 degrees.
[0079] Optional, Figures 1A-1F The inward and outward folding screens shown are illustrated using left-right folding as an example. In some embodiments, the inward and outward folding screens can also be folded vertically, and this application does not limit this.
[0080] Figure 1G-Figure 1L A schematic diagram of the tri-fold screen display form is shown.
[0081] Tri-fold screens can be divided into three display forms: unfolded, intermediate, and folded.
[0082] Figure 1G A schematic diagram of the display form of the tri-fold screen in its unfolded state is shown.
[0083] Figure 1G (a) exemplarily shows a front view of the tri-fold screen in its unfolded state. When unfolded, the tri-fold screen includes screens A, B, and C. The tri-fold screen also includes hinges D and E for rotating screens A, B, and C in the electronic device 100. Screens A and B can rotate along hinge D in opposite or facing directions until the back of screen A is flush with the back of screen B, or until the display surface of screen A is flush with the display surface of screen B. With screen C rotating at a constant angle, when screen B rotates along hinge D, screen B can cause screen C to rotate by the same angle along hinge D.
[0084] Screens C and B can rotate along hinge E in opposite directions or facing directions until the back of screen C is flush with the back of screen B, or until the display surface of screen C is flush with the display surface of screen B. With screen A rotating at a constant angle, when screen B rotates along hinge E, screen B can cause screen A to rotate by the same angle along hinge E.
[0085] In some embodiments, the angle between screen A and screen B can be called α, and the angle between screen B and screen C can be called β.
[0086] When the tri-fold screen is in the unfolded state, the display surfaces of screen A, screen B, and screen C of the electronic device 100 can all be on the same plane. The angle α between the display surfaces of screen A and screen B can be close to 180°, and the angle β between the display surfaces of screen B and screen C can be close to 180°.
[0087] 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.
[0088] Figure 1G (b) in the example shows the rear view of the tri-fold screen in the unfolded state.
[0089] When the tri-fold screen is unfolded, the backs of screen A, screen B, and screen C of electronic device 100 can all be on the same plane. The angle between the back of screen A and the back of screen B can be close to 180°, and the angle between the back of screen B and the back of screen C can also be close to 180°.
[0090] Figure 1H A schematic diagram of the display form of the tri-fold screen in the folded state is shown.
[0091] Screens A and B can rotate in opposite directions along hinge D until the back of screen A is flush with the back of screen B. Screens C and B can rotate in opposite directions along hinge E until the display surface of screen C is flush with the display surface of screen B, thus putting the tri-fold screen in a folded state.
[0092] When the tri-fold screen is in the 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°.
[0093] Figure 1H Image (a) shows a front view of the electronic device in its 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.
[0094] Figure 1H Image (b) shows a rear view of the electronic device in its 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.
[0095] Figure 1I A schematic diagram of the display form of the tri-fold screen in the folded state is shown.
[0096] Folded states can include, but are not limited to, BC folded states, AB folded states, and BC folded states.
[0097] 1. When only the B screen and C screen are bonded together, it can also be called the BC folded state.
[0098] Screens C and B can rotate in the direction they face each other along the pivot E until the display surface of screen C and screen B are in contact, so that the tri-fold screen is in the BC folded state.
[0099] Figure 1I Examples of some electronic devices 100 in the BC folded state are shown.
[0100] like Figure 1I Image (a) shows a front view of the electronic device 100 in the BC folded state. Figure 1I As shown in (a), 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°.
[0101] Figure 1I Figure (b) shows a rear view of the electronic device in the BC folded state. Figure 1I As shown in (b), 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°.
[0102] 2. When only screens A and B are bonded together, it can also be called the AB folded state.
[0103] Screens A and B can rotate in opposite directions along pivot D until the back of screen A and the back of screen B are in contact, so that the tri-fold screen is in the AB folded state.
[0104] Figure 1J Examples of some electronic devices 100 in the AB folded state are shown.
[0105] like Figure 1J Image (a) shows a front view of electronic device 100 in the AB folded state. Figure 1J As shown in (a), 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°.
[0106] Figure 1J Figure (b) shows a rear view of the electronic device in the AB folded state. Figure 1JAs shown in (b), 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°.
[0107] Figure 1K and Figure 1L A schematic diagram of the display form of the tri-fold screen in its intermediate state is shown.
[0108] Figure 1K The image shown is a front view of the tri-fold screen in its intermediate state. Figure 1K As shown, when the tri-fold screen is in its intermediate state, the electronic device 100 displays screen A, screen B, and screen C. The angle α between screen A and screen B can be between 180° and 360°. The angle β between screen B and screen C can be between 0° and 180°.
[0109] Figure 1L The image shown is the rear view when the tri-fold screen is in its intermediate state. Figure 1L As shown, when the tri-fold screen is in its 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°.
[0110] Optional, Figure 1G-Figure 1L The screens A, B, and C shown can be a single, complete display screen. Screens A and B can also be a single, complete display screen, as can screens B and C.
[0111] It should be noted that, Figure 1G-Figure 1L The diagram only shows a partial display form of the tri-fold screen. The tri-fold screen can also be in other display forms, and this application does not limit it.
[0112] Figure 1M-Figure 1O A schematic diagram of the display form of the vertically folding screen is shown.
[0113] The display forms of vertically folding screens can include, but are not limited to, unfolded, intermediate, and folded states.
[0114] Figure 1M A schematic diagram is shown when the vertically folding screen is in the unfolded state.
[0115] The vertically folding screen provided in this application can be either an outward-folding or inward-folding screen device. An outward-folding screen device folds the electronic device by folding it outwards, while an inward-folding screen device folds the electronic device by folding it inwards.
[0116] This application uses an inward-folding screen device as an example for illustration.
[0117] Figure 1M Image (a) shows a front view of the vertically folding screen in its unfolded state. Figure 1M As shown in (a), the vertically folding screen includes screen A, screen B, and folding line 101.
[0118] Optionally, screen A and screen B can be a single, complete display.
[0119] In the unfolded state, screens A and B face the user, and the angle between them is close to 180°, meaning that the plane containing screen A and the plane containing screen B are on the same horizontal plane. In the unfolded state, the electronic device 100 can display images on both screens A and B simultaneously. This allows the user to view images from both screens at the same time.
[0120] Figure 1M (b) shows a rear view of the electronic device 100 in its deployed state. Figure 1M As shown in (b), the electronic device 100 includes a camera module and a display screen.
[0121] When the vertically folding screen is in the unfolded state, the display is off and cannot be operated.
[0122] Figure 1N A schematic diagram is shown when the vertically folded screen is in the intermediate state.
[0123] 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 this angle is greater than 0° and less than 180°.
[0124] In the intermediate state, the electronic device 100 can display the image only on screen A or screen B. This allows the user to view only the image from screen A or screen B. Alternatively, the electronic device 100 can display different images on screen A and screen B simultaneously. This allows the user to selectively view the image from screen A or screen B from both displays.
[0125] Figure 10 A schematic diagram is shown when the vertically folding screen is in the folded state.
[0126] like Figure 10As shown, in the folded state, the angle between the plane containing screen A and the plane containing screen B is close to 0°, and screens A and B are folded face to face.
[0127] In the folded state, screens A and B are no longer facing the user and cannot be displayed. Electronic device 100 can display images through the display screen.
[0128] When folded, the display is on and operable, for example, it can be used to display information such as time and date.
[0129] Figure 1P A schematic diagram of a candybar screen display is shown.
[0130] like Figure 1P As shown, a candybar screen consists of a single, non-foldable display.
[0131] It should be noted that the above Figures 1A-1P The schematic diagrams of several display screen forms are only shown as examples. The display screen of electronic device 100 may also include other display forms, and this application does not limit them.
[0132] Electronic devices are equipped with multiple antennas, which enable them to transmit and receive signals and communicate with other devices. However, the communication performance of an antenna is affected by the posture of the electronic device. For example, when a user holds an electronic device close to their head, the high dielectric properties and low conductivity of the head and hand cause frequency shift (frequency offset) in the antenna, resulting in signal attenuation and reduced communication performance.
[0133] Frequency offset, or frequency error, refers to the extent to which an antenna's actual operating frequency exceeds its preset operating frequency, or how much the radio frequency signal deviates from the center frequency of its channel. It is usually expressed in parts per million (PPM). The smaller the frequency offset, the better the signal quality. When an antenna exhibits frequency offset, this deviation can be corrected by adjusting the antenna's frequency to ensure that the antenna can accurately transmit and receive signals.
[0134] During a call on an electronic device, to avoid frequency offset by the antenna affecting call quality, the electronic device can determine the optimal operating antenna. If the primary antenna is the one currently operating and transmitting call data, the device can detect its orientation and determine a first frequency compensation value for the primary antenna, or identify a second antenna as the optimal operating antenna. The primary and second antennas are different. The electronic device can then tune the primary antenna based on the first frequency compensation value, which eliminates or reduces frequency offset, ensuring the primary antenna's actual operating frequency band is within a preset range. Alternatively, the electronic device can switch its operating antenna from the primary antenna to the second antenna.
[0135] Optionally, the electronic device can switch the operating antenna to the second antenna by first tuning the second antenna to its optimal performance before switching, or it can switch directly to the second antenna without tuning it. In some products or embodiments, the second antenna needs to be tuned; in other products or embodiments, tuning may not be required.
[0136] It should be noted that the optimal operating antenna can be adjusted according to different products and equipment orientations. The phrase "switching the operating antenna to the second antenna" mentioned below indicates that the second antenna is the optimal antenna for the current equipment orientation.
[0137] Optionally, the posture of the electronic device may include, but is not limited to, any of the following: left head-hand posture and right head-hand posture.
[0138] Among them, the left head-hand posture can refer to the posture in which the user holds the electronic device with their left hand close to their head. Figure 2A The diagram illustrates an electronic device in a left-head-and-hand position. When the electronic device is in this position, the user can listen to call data played through the earpiece via their left ear.
[0139] The right-hand head posture can refer to the posture in which a user holds an electronic device with their right hand close to their head. Figure 2B The diagram illustrates an electronic device in a right-head-and-hand position. When the electronic device is in this position, the user can listen to call data played through the earpiece via their right ear.
[0140] Optionally, the relative position between the electronic device and the head differs depending on whether the user holds the electronic device with their left or right hand and brings it close to their head. Left head-hand posture can be categorized into different left head-hand postures, or right head-hand posture into different right head-hand postures, to more precisely identify the posture of the electronic device and achieve more accurate tuning of the electronic device's primary antenna or switching to the optimal operating antenna.
[0141] This method allows electronic devices to eliminate or reduce the impact of attitude changes on the frequency offset of the first antenna, thereby improving the antenna's communication performance, enhancing the call quality of the electronic device, and improving the user's call experience.
[0142] In some embodiments, different display states of the electronic device's screen have different effects on the frequency offset of the electronic device's antenna. When the electronic device plays call data through a receiver, it can determine a first frequency compensation value for the first antenna or determine the optimal operating antenna as the second antenna based on the display state of the electronic device's screen and the orientation of the electronic device. For example, the display state of the screen may include, but is not limited to, those shown on the screen. Figures 1A-1P The shape of the display screen is shown.
[0143] This can improve the accuracy of electronic devices in determining the frequency compensation value of the current working antenna or in determining the optimal working antenna.
[0144] In some embodiments, after the electronic device tunes the first antenna based on a first frequency compensation value, the electronic device can compare the communication performance of the first antenna after tuning with that before tuning. If the communication performance of the first antenna after tuning is better than that before tuning, the electronic device can 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 that before tuning, it may be due to an error in the electronic device's attitude identification, causing an error in the antenna tuning. The electronic device can then reconfirm its attitude and determine the frequency compensation value for the first antenna or reconfirm the optimal operating antenna based on the reconfirmed attitude.
[0145] In some embodiments, after the electronic device switches its operating antenna from the first antenna to the second antenna, the electronic device can compare the communication performance of the first antenna and the second antenna. If the communication performance of the second antenna is better than that of the first antenna, the electronic device can keep the second antenna as the operating antenna. If the communication performance of the second antenna is weaker than that of the first antenna, it may be due to an error in the electronic device's attitude recognition. In this case, the electronic device can reconfirm its attitude and determine the frequency compensation value of the first antenna based on the reconfirmed attitude, or reconfirm the switching of the operating antenna.
[0146] In this way, electronic devices can determine whether their communication performance has been improved through feedback. This avoids situations where misidentification of the electronic device's posture leads to tuning errors or incorrect switching of the optimal operating antenna, which could degrade call quality.
[0147] Optionally, the communication performance of the antenna can be determined based on, but not limited to, any one or more of the following parameters: reference signal receiving power (RSRP), maximum transmit power of the antenna signal (also known as the top power limit, which is affected by the electromagnetic wave absorption ratio or specific absorption rate (SAR) and maximum power reduction (MPR), power back-off value, etc. In some embodiments, RSRP can also be referred to as antenna signal receiving power.
[0148] Alternatively, and not limited to the parameters mentioned above, the communication performance of an antenna can also be determined based on one or more of the following parameters: path loss of the antenna path, channel bandwidth of the antenna, antenna gain, antenna efficiency, antenna pattern, etc.
[0149] Optionally, different device orientations and / or different usage scenarios may have different effects on the antenna's channel bandwidth, antenna gain, antenna efficiency, and antenna pattern.
[0150] After identifying whether the electronic device is in a right-head-and-hand or left-head-and-hand posture, the electronic device needs to reduce its SAR value to reduce the absorption of electromagnetic radiation by the human body.
[0151] As the SAR value decreases, the antenna's transmit power also decreases. To avoid the impact of a reduced SAR value on the antenna's transmit power, in some embodiments, the electronic device can determine the magnitude of the SAR value reduction based on its orientation. Different orientations of the electronic device result in different magnitudes of SAR value reduction. This allows the electronic device to precisely reduce the SAR value, thereby minimizing the impact on the antenna's transmit power.
[0152] For example, when the electronic device is in a left-head-and-hand posture, the SAR value decreases by value A. When the electronic device is in a right-head-and-hand posture, the SAR value decreases by value B; A and B are different.
[0153] For example, in a scenario involving multiple left and right hand postures, and multiple right head-and-hand postures, the SAR value decreases by A1 when the electronic device is in left head-and-hand posture A, B1 when in left head-and-hand posture B, and C1 when in left head-and-hand posture C. Similarly, the SAR value decreases by A2 when in right head-and-hand posture A, B2 when in right head-and-hand posture B, and C2 when in right head-and-hand posture C. A1, B1, and C1 are different. A2, B2, and C2 are also different.
[0154] Figure 3 A schematic diagram of the hardware structure of the electronic device 100 is shown.
[0155] Electronic device 100 can be a mobile phone, tablet computer, laptop computer, netbook, smart screen, in-vehicle device, as well as business intelligent terminal (including: video phone, conference desktop intelligent terminal, etc.), personal digital assistant (PDA), augmented reality (AR) / virtual reality (VR) device, artificial intelligence (AI) device, etc. Electronic device 100 can also be other electronic devices, such as laptop computers with touch-sensitive surfaces (e.g., touch panels). This application embodiment does not limit the specific form of the electronic device. This application embodiment uses a mobile phone as an example for illustration.
[0156] 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, antenna 1, 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 screen 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 accelerometer sensor 180E, a proximity 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, a barometric pressure sensor, a proximity sensor, a fingerprint sensor, a temperature sensor, an ambient light sensor, a bone conduction sensor, etc.
[0157] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0158] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.
[0159] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system. In some embodiments, the processor 110 may include one or more interfaces, such as a universal serial bus (USB) interface.
[0160] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, or USB Type-C port. USB port 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.
[0161] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives 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 supply power to the electronic device via the power management module 141.
[0162] The power management module 141 connects 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, providing power to the processor 110, internal memory 121, display screen 194, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.
[0163] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[0164] Antennas 1 and 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in conjunction with a tuning switch, which can change the antenna's impedance and / or frequency to eliminate or reduce frequency offset, so that the antenna's actual operating frequency band is within a preset operating frequency band. In some embodiments, the antenna can be used in conjunction with a radio frequency switch, which, in conjunction with a tuner or a separate resistor, capacitor, or inductor, can change the antenna's operating frequency band and / or impedance to achieve matching between the feed network and the conductive circuit, and to change the performance of the antenna in the desired operating frequency band so that the antenna can achieve the maximum achievable radiated communication performance in the operating frequency band.
[0165] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier (PA), low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0166] Optionally, not limited to antenna 1, the mobile communication module 150 can also receive and transmit electromagnetic waves through other antennas.
[0167] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, demodulates and filters the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, frequency modulate and amplify them, and then convert them into electromagnetic waves for radiation via antenna 2.
[0168] Optionally, not limited to antenna 2, the mobile communication module 150 can also receive and transmit electromagnetic waves through other antennas.
[0169] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via 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 technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).
[0170] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0171] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may 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 miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.
[0172] In some embodiments, a sensor may be provided on the display screen 194, and the electronic device 100 may determine whether the current user is holding the electronic device 100 with their left or right hand based on the sensor data collected by the sensor on the display screen 194.
[0173] Internal memory 121 may include one or more random access memory (RAM) and one or more non-volatile memory (NVM).
[0174] Electronic device 100 can implement audio functions, such as making calls and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, and application processor.
[0175] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.
[0176] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.
[0177] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.
[0178] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. Electronic device 100 may have at least one microphone 170C. In some embodiments, electronic device 100 may have two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 100 may also have three, four, or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.
[0179] The gyroscope sensor 180B can be used to determine the motion attitude of the electronic device 100. In some embodiments, the gyroscope sensor 180B can determine the angular velocity of the electronic device 100 about three axes (i.e., the x, y, and z axes). The gyroscope sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the shake of the electronic device 100, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shake of the electronic device 100 by moving in the opposite direction, thus achieving image stabilization. The gyroscope sensor 180B can also be used in navigation and motion-sensing game scenarios.
[0180] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip cover.
[0181] The 180E accelerometer can detect the magnitude of acceleration of electronic device 100 in various directions (typically three axes). When electronic device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of electronic devices and applied to applications such as screen orientation switching and pedometers.
[0182] In some embodiments, the electronic device 100 can determine its attitude based on gyroscope data collected by gyroscope sensor 180B and acceleration data collected by accelerometer sensor 180E.
[0183] A distance sensor 180F is used to measure distance. Electronic device 100 can measure distance via infrared or laser. In some embodiments, during a shooting scene, electronic device 100 can utilize the distance sensor 180F to measure distance for rapid focusing.
[0184] In some embodiments, the electronic device 100 can determine whether it is close to the head based on data collected by the distance sensor 180F.
[0185] Touch sensor 180K, also known as a "touch device," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touchscreen." Touch sensor 180K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of electronic device 100, in a different position than display screen 194.
[0186] In some embodiments, if the display screen of the electronic device 100 is a flexible screen, the electronic device 100 may also include a Hall sensor, and the electronic device 100 may confirm the display form of the display screen based on the sensor data collected by the Hall sensor.
[0187] In some embodiments, the electronic device 100 may further include one or more of buttons, a motor, and an indicator. Buttons may include a power button, volume buttons, etc. Buttons may be mechanical buttons or touch buttons. The electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of the electronic device 100. The motor may generate vibration cues. The indicator may be an indicator light, which can be used to indicate charging status, battery level changes, and can also be used to indicate messages, missed calls, notifications, etc.
[0188] The SIM card interface 195 is used to connect the SIM card.
[0189] Figure 4 A schematic diagram of the software structure of the electronic device 100 is shown.
[0190] Electronic device 100 may be a device running iOS, Android, Microsoft, or other operating systems. The software system of electronic device 100 may adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture.
[0191] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0192] The application layer can include a series of application packages.
[0193] like Figure 4 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS.
[0194] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0195] The application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
[0196] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.
[0197] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.
[0198] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.
[0199] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).
[0200] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.
[0201] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.
[0202] like Figure 4As shown, the application framework layer also includes a device attitude recognition module, a control decision module, an antenna control module, and an antenna performance monitoring module.
[0203] The device posture recognition module is used to identify the posture of electronic devices based on sensor data collected by sensors. The posture of electronic devices includes, but is not limited to, left head and hand posture and right head and hand posture.
[0204] The control decision module is used to determine the first frequency compensation value of the current working antenna (e.g., the first antenna) or to determine the optimal working antenna as the second antenna based on the attitude of the electronic device identified by the device attitude recognition module, or based on the attitude of the electronic device identified by the device attitude recognition module and the display mode of the electronic device's display screen.
[0205] 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 to switch the working antenna from the first antenna to the second antenna based on the optimal working antenna (e.g., the second antenna) confirmed by the control decision module.
[0206] 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.
[0207] For a description of the functions of each of the above modules, please refer to [link / reference]. Figure 5A or Figure 5B The descriptions in the embodiments are not repeated here.
[0208] In some embodiments, the antenna performance monitoring module and the antenna control module may also be located in the modem chip or the radio frequency integrated circuit (RFIC). The modem may include, but is not limited to, cellular modems, satellite modems, etc. Different modems may include an antenna performance monitoring module and an antenna control module.
[0209] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0210] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.
[0211] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.
[0212] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.
[0213] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0214] A 2D graphics engine is a graphics engine for 2D drawing.
[0215] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.
[0216] In some embodiments, where the electronic device 100 includes a main processor and a secondary processor, the attitude recognition module and the control decision module may also be located in the secondary processor (e.g., Sensor Hub).
[0217] This application does not limit the location of the device attitude recognition module, control decision module, antenna control module, and antenna performance monitoring module.
[0218] The following is a detailed introduction. Figure 4 The interaction process of the device attitude recognition module, control decision module, antenna control module, and antenna performance monitoring module is shown.
[0219] Figure 5A A schematic diagram illustrating the interaction of multiple functional modules in an electronic device 100 is shown.
[0220] like Figure 5A As shown, the electronic device 100 includes a device attitude recognition module, a control decision module, an antenna control module, and an antenna performance monitoring module.
[0221] 1. The device posture recognition module obtains the working status of the earpiece.
[0222] The earpiece's working status can include playing call data and not playing call data.
[0223] Optionally, after the electronic device 100 is powered on, the device posture recognition module can periodically / irregularly acquire the working status of the earpiece.
[0224] 2. The device posture recognition module acquires sensor data collected by the sensors.
[0225] Sensors include, but are not limited to, any one or more of gyroscope sensors, accelerometer sensors, etc. Sensor data includes, but is not limited to, any one or more of gyroscope data, acceleration data, etc.
[0226] Optionally, the sensor may include not only gyroscope sensors and accelerometer sensors, but also optical sensors; this application does not limit this.
[0227] Optionally, after the electronic device 100 is powered on, the device posture recognition module can periodically / irregularly acquire sensor data collected by the sensor.
[0228] Optionally, after the electronic device 100 is powered on, the sensor collects sensor data only when the earpiece is in the state of playing call data. When the electronic device 100 is powered on but the earpiece is not in the state of playing call data—for example, when the electronic device 100 is not playing call audio, or when the electronic device 100 is playing call audio through a speaker, or when the electronic device 100 is playing call audio through a Bluetooth headset, or when the earpiece and speaker form a stereo system—the user does not need to place the electronic device 100 close to their head, and the electronic device 100 does not need to recognize the posture of the electronic device 100. The electronic device 100 can therefore not acquire sensor data, saving power consumption.
[0229] 3. If the earpiece is in the state of playing call data, the device posture recognition module can identify the electronic device in posture A based on sensor data. Posture A includes left head and hand posture or right head and hand posture.
[0230] Optionally, the device posture recognition module can identify the posture A of the electronic device based on the processed sensor data.
[0231] Optionally, the processing of sensor data may include, but is not limited to, mathematical operations, such as addition, subtraction, multiplication, division, exponentiation, sign operations, absolute value operations, etc.
[0232] If the device posture recognition module identifies that the electronic device is not in a left head-and-hand posture or a right head-and-hand posture based on sensor data, the device posture recognition module can continue to monitor sensor data to monitor whether the electronic device 100 is in a left head-and-hand posture or a right head-and-hand posture.
[0233] For information on how the device posture recognition module identifies whether the electronic device 100 is in a left-head-and-hand posture or a right-head-and-hand posture based on sensor data, please refer to [reference needed]. Figure 7 or Figure 10 Description in the embodiments.
[0234] Optionally, posture A is not limited to the left head-and-hand posture or the right head-and-hand posture. The electronic device 100 can further divide the left head-and-hand posture into different left head-and-hand postures, or the electronic device 100 can further divide the right head-and-hand posture into different right head-and-hand postures.
[0235] 4. The device attitude recognition module sends attitude A to the control decision module.
[0236] 5. The control decision module determines the first frequency compensation value of the first antenna based on attitude A, or determines the optimal working antenna as the second antenna.
[0237] After confirming that the electronic device 100 is in attitude A, the attitude recognition module can send attitude A to the control decision module. The control decision module is used to determine the first frequency compensation value of the current working antenna (e.g., the first antenna) or determine the optimal working antenna as the second antenna, which is different from the first antenna, based on attitude A.
[0238] The electronic device 100 has a pre-installed antenna configuration information table. This table stores control strategies for antennas corresponding to different electronic device attitudes, or different electronic device attitudes and different display screen configurations. The antenna control strategies can include the tuning parameters of the currently operating antenna or the optimal operating antenna. Based on attitude A, the electronic device 100 can determine the first frequency compensation value of the first antenna or identify the operating antenna as the second antenna from this antenna configuration information table.
[0239] Optionally, the information in the antenna configuration information table can be updated periodically or irregularly.
[0240] 6. The control decision module sends a control signal containing the first frequency compensation value of the first antenna or a control signal containing the switching to the second antenna to the antenna control module.
[0241] After determining the first frequency compensation value of the first antenna based on attitude 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.
[0242] 7. The antenna control module acquires the communication performance of the first antenna after the electronic device is in attitude A and the communication performance of the first antenna before the electronic device is in attitude A, or the communication performance of the first antenna after the electronic device is in attitude A and the communication performance of the second antenna after the electronic device is in attitude A.
[0243] Optionally, step 7 can be omitted.
[0244] 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.
[0245] In some embodiments, after receiving a control signal containing a first frequency compensation value of the first antenna sent by the control decision module, in response to the control signal, the antenna control module can tune the first antenna based on the first frequency compensation value of the first antenna to eliminate or reduce the frequency deviation of the first antenna when the electronic device 100 is in attitude A, so that the actual operating frequency band of the first antenna is within the preset operating frequency band.
[0246] Optionally, before tuning the first antenna based on the first frequency compensation value of the first antenna, the antenna control module can monitor changes in the communication performance of the first antenna. If the communication performance of the first antenna after the electronic device is in attitude A is weaker than that of the first antenna before the electronic device is in attitude A, or if the communication performance of the first antenna after the electronic device is in attitude A is weaker than that of the first antenna before the electronic device is in attitude A, and the communication performance of the first antenna after the electronic device is in attitude A differs significantly from that of the first antenna before the electronic device is in attitude A, then the electronic device 100 can tune the first antenna based on the first frequency compensation value of the first antenna.
[0247] In some embodiments, after receiving a control signal from the control decision module that includes switching to the second antenna, the antenna control module can switch the operating antenna from the first antenna to the second antenna.
[0248] Optionally, before switching the operating antenna from the first antenna to the second antenna, the antenna control module can monitor the communication performance of the first antenna and the second antenna. If the communication performance of the second antenna after the electronic device is in attitude A is better than that of the first antenna after the electronic device is in attitude A, or if the communication performance of the second antenna after the electronic device is in attitude A is better than that of the first antenna after the electronic device is in attitude A, and the communication performance of the second antenna after the electronic device is in attitude A differs significantly from that of the first antenna after the electronic device is in attitude A, then the electronic device 100 can switch the operating antenna from the first antenna to the second antenna.
[0249] Optionally, after the antenna control module tunes the first antenna based on the first frequency compensation value of the first antenna, or switches the operating antenna from the first antenna to the second antenna, the device attitude recognition module can continue to acquire motion data collected by the sensors and continue to monitor whether the attitude of the electronic device has changed based on this motion data. If the attitude 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 operating antenna from the first antenna to the second antenna. If the attitude of the electronic device has changed, the antenna control module can tune the first antenna based on the changed attitude of the electronic device or switch to another optimal operating antenna.
[0250] In some embodiments, before switching from the first antenna to the second antenna, the antenna control module can compare the communication performance of the first antenna after tuning with that of the second antenna. That is, in some embodiments, when the electronic device 100 is in attitude A, if the communication performance of the first antenna after tuning is better than that of the second antenna, the electronic device 100 can tune the first antenna without switching to the second antenna. If the communication performance of the first antenna after tuning is weaker than that of the second antenna, no tuning is performed, and the device directly switches to the second antenna. In some embodiments, if the accuracy of the electronic device 100 in detecting the device attitude is not high enough to directly determine whether the communication performance of the first antenna after tuning is better than that of the second antenna, the electronic device 100 can tune the first antenna, then compare the communication performance of the first antenna after tuning with that of the second antenna, and then decide whether to switch to the second antenna.
[0251] In some embodiments, since there are multiple left-hand and right-hand orientations, the communication performance of the second working antenna will vary under different orientations. In some embodiments, the electronic device 100 can also tune the second antenna to achieve optimal communication performance before switching to the second antenna under different left-hand or right-hand orientations. That is, the first antenna can be tuned under the current device orientation, and the second antenna can also be tuned under the current device orientation. If the communication performance of the second antenna after tuning is better than that of the first antenna after tuning, then the second antenna can be switched to. If the communication performance of the second antenna after tuning is weaker than that of the first antenna after tuning, then the second antenna is not switched to.
[0252] The communication performance here will comprehensively consider the performance of the first antenna after tuning and the performance of the second antenna after tuning under different left-hand and right-hand orientations. It will also consider the top power and power backoff values of the first and second antennas under different orientations. The top power and power backoff values here are jointly affected by SAR and MPR. It will also consider the conduction losses of the first and second antennas, such as the path loss of circuit traces. It will also consider the channel impact of the first and second antennas under different orientations and in different usage scenarios. It will also consider the antenna performance of the first and second antennas under different orientations, such as antenna gain, antenna efficiency, antenna polarization, and antenna pattern.
[0253] 9. The antenna performance monitoring module obtains the communication performance of the first antenna after tuning or the communication performance of the second antenna.
[0254] 10. If the communication performance of the first antenna after tuning is better than that 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 that of the first antenna, the antenna performance monitoring module continues to use the second antenna as the working antenna.
[0255] When 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 first antenna after tuning or the communication performance of the second antenna.
[0256] In some embodiments, if the communication performance of the first antenna after tuning is better than the communication performance before tuning, it indicates 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 first antenna based on the first frequency compensation value.
[0257] 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 attitude A, the second working antenna has not experienced frequency offset or the frequency offset is small, and the antenna control module can continue to keep the working antenna as the second antenna.
[0258] 11. If the communication performance of the first antenna after tuning is weaker than that before tuning, or if the communication performance of the second antenna is weaker than that of the first antenna, the antenna performance monitoring module shall re-detect the attitude of the electronic device.
[0259] 12. The antenna performance monitoring module sends a first instruction to the device attitude recognition module. The first instruction is used to instruct the scene recognition module to re-detect the attitude of the electronic device.
[0260] When 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 first antenna after tuning or the communication performance of the second antenna.
[0261] In some embodiments, if the communication performance of the first antenna after tuning is weaker than that before tuning, it indicates that the first frequency compensation value has not eliminated or reduced the frequency offset of the first antenna, which may lead to a more severe frequency offset. In this case, it is necessary to re-detect the attitude of the electronic device 100 to avoid mistuning due to incorrect attitude judgment of the electronic device 100. The antenna performance monitoring module can then send a first instruction to the device attitude recognition module, which instructs the scene recognition module to re-detect the attitude of the electronic device.
[0262] 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 attitude A. In this case, it is necessary to re-detect the attitude of the electronic device 100 to avoid the problem of erroneous antenna switching due to incorrect attitude judgment of the electronic device 100. The antenna performance monitoring module can then send a first instruction to the device attitude recognition module, which instructs the scene recognition module to re-detect the attitude of the electronic device.
[0263] It should be noted that, Figure 5A The steps shown are for illustrative purposes only and are not intended to explain this application. Figure 5A The execution order of the steps shown is not limited.
[0264] In some embodiments, different display states of the electronic device's display screen have different effects on the frequency offset 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 determine the optimal operating antenna based on the display state of the electronic device's display screen and the orientation of the electronic device.
[0265] Figure 5B A schematic diagram illustrating the interaction of multiple functional modules in another electronic device 100 is shown.
[0266] Figure 5B and Figure 5A Similar, the difference lies in... Figure 5B In addition, the control decision module also needs to obtain the display mode of the electronic device's screen, 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 mode and orientation A of the electronic device's screen. For Figure 5B The description of each step can be provided by parameters. Figure 5A The descriptions in the document are not repeated here.
[0267] Figure 6 A schematic diagram illustrating the interaction of multiple hardware components in another electronic device 100 is shown.
[0268] 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 shown.
[0269] 1. Processor, used to obtain the working status of the earpiece.
[0270] 2. The processor is also used to acquire sensor data collected by the sensor.
[0271] 3. The processor is also used to obtain the display mode of the electronic device's screen.
[0272] The processor is used to determine the attitude A of the electronic device 100 based on sensor data. For details on how the processor determines the attitude A of the electronic device 100 based on sensor data, please refer to [reference needed]. Figure 5A The embodiments are described in steps 1, 2 and 3.
[0273] Optionally, if the electronic device 100 has a candybar screen, the processor may not need to obtain the display mode of the electronic device's screen.
[0274] For information on how the processor identifies the posture A of the electronic device 100 based on sensor data, please refer to [reference needed]. Figure 7 or Figure 10 Description in the embodiments.
[0275] 4. The processor is also used to send the display mode and orientation A of the display screen to the modem.
[0276] 5. A modem for acquiring the communication performance of a first antenna after the electronic device is in attitude A and the communication performance of a first antenna before the electronic device is in attitude A, or the communication performance of a first antenna after the electronic device is in attitude A and the communication performance of a second antenna after the electronic device is in attitude A.
[0277] 6. A modem, also used to send a control signal to a radio frequency integrated circuit containing a first frequency compensation value of a first antenna or a control signal containing a switch to a second antenna.
[0278] After confirming that the electronic device 100 is in attitude A, the modem can determine the first frequency compensation value of the current working antenna (e.g., the first antenna) or determine the optimal working antenna as the second antenna, which is different from the first antenna.
[0279] The electronic device 100 has a pre-installed antenna configuration information table. This table stores control strategies for antennas corresponding to different electronic device attitudes, or different electronic device attitudes and different display screen display formats. The antenna control strategies can include the tuning parameters of the currently operating antenna or the optimal operating antenna. The modem can determine the first frequency compensation value of the first antenna or identify the operating antenna as the second antenna based on attitude A from this antenna configuration information table.
[0280] Optionally, before sending a control signal containing a first frequency compensation value for the first antenna to the RF integrated circuit, 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 attitude A is better than that of the first antenna before the electronic device is in attitude A, or if the communication performance of the first antenna after the electronic device is in attitude A is better than that of the first antenna before the electronic device is in attitude A, and the communication performance of the first antenna after the electronic device is in attitude A differs significantly from that of the first antenna before the electronic device is in attitude A, then the modem may send a control signal containing a first frequency compensation value for the first antenna to the RF integrated circuit.
[0281] Optionally, before sending a control signal to the RF integrated circuit including switching to the second antenna, the modem can monitor the communication performance of the first antenna and the second antenna. If the communication performance of the second antenna after the electronic device is in attitude A is better than that of the first antenna after the electronic device is in attitude A, or if the communication performance of the second antenna after the electronic device is in attitude A is better than that of the first antenna after the electronic device is in attitude A, and the communication performance of the second antenna after the electronic device is in attitude A differs significantly from that of the first antenna after the electronic device is in attitude A, then the modem can send a control signal to the RF integrated circuit including switching to the second antenna.
[0282] Optionally, step 5 can be omitted.
[0283] 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 to switch the operating antenna from the first antenna to the second antenna.
[0284] After determining the first frequency compensation value of the first antenna based on attitude A or determining that the optimal operating antenna is the second antenna, the modem 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 radio frequency integrated circuit.
[0285] The radio frequency integrated circuit can tune the first antenna based on the first frequency compensation value of the first antenna, or switch the operating antenna from the first antenna to the second antenna.
[0286] for Figure 6 The descriptions and explanations of each step in the embodiments can be found in the following references. Figure 5A The descriptions in the embodiments are not repeated here.
[0287] This application provides an antenna control method. 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 mode of the electronic device 100's display screen. Based on the device posture of the electronic device 100, or based on the device posture of the electronic device 100 and the display mode of the electronic device 100's display screen, the electronic device 100 can determine a first frequency compensation value for the current working antenna (e.g., a first antenna) or determine an optimal working antenna (e.g., a second antenna). 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, so as to improve the communication performance of the electronic device 100 and improve the call quality of the electronic device 100.
[0288] The method includes, but is not limited to, the following two phases: the phase in which the user holds the electronic device 100 in his hand and brings the electronic device 100 close to his head to answer the phone, and the phase in which the electronic device 100 is kept close to his head to answer the phone.
[0289] The following section will detail how electronic device 100 controls the antenna, combining these two stages.
[0290] Phase 1: The user holds the electronic device 100 close to their head to answer the phone.
[0291] When electronic device 100 answers a call and plays call data through the handset, in order to ensure that the user can accurately obtain the content of the call data played by electronic device 100 through the handset, the user can hold electronic device 100 in their hand, lift electronic device 100 upwards and bring electronic device 100 close to their head, so that the user can accurately obtain the content of the call data played by electronic device 100 through the handset through their ear.
[0292] Figure 7 A schematic diagram of an electronic device 100 controlling an antenna in the first stage is shown.
[0293] S701, electronic device 100 transmits and receives call data via the first antenna.
[0294] S702, Electronic device 100 plays call data through the earpiece.
[0295] The electronic device 100 has multiple antennas pre-installed.
[0296] In some embodiments, different communication methods correspond to different antennas. The communication methods of 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.
[0297] In some embodiments, different communication methods can reuse the same antenna. For example, the antenna for Bluetooth, the antenna for Wi-Fi, and the antenna for data networks can be the same.
[0298] For example, before a user brings the electronic device 100 close to their head to answer a call, the electronic device 100 can transmit and receive call data via a first antenna.
[0299] In some embodiments, electronic device 100 can establish a call connection with other electronic devices via a telephone application. The other electronic devices can send call data to a base station, which then sends the call data to a first antenna on electronic device 100. Electronic device 100 can receive call data through the first antenna.
[0300] In some embodiments, electronic device 100 can also establish a call connection with other electronic devices through a social application. The other electronic devices can send audio data to a social application server, which then sends the call data to a first antenna on electronic device 100. Electronic device 100 can receive the call data through the first antenna.
[0301] S703, Electronic device 100 acquires first sensor data collected by the sensor, the first sensor data including acceleration data and / or angular velocity data.
[0302] Sensors include, but are not limited to, any one or more of the following: gyroscope sensors, accelerometer sensors, etc.
[0303] Optionally, the electronic device 100 can identify the earpiece's operating state before acquiring the first sensor data. When the earpiece is in the state of playing call data, the sensor then acquires the first sensor data. When the earpiece is not in the state of playing call data, such as when the electronic device 100 is not playing call audio, or when the electronic device 100 is playing call audio through a speaker, or when the electronic device 100 is playing call audio through a Bluetooth headset, the user does not need to bring the electronic device 100 close to their head, and the electronic device 100 does not need to identify the posture of the electronic device 100. Therefore, the electronic device 100 can choose not to acquire the first sensor data, thus saving power consumption.
[0304] S704. Electronic device 100 confirms whether it is in motion based on the data from the first sensor.
[0305] In some embodiments, when the electronic device 100 plays call data through the earpiece, the electronic device 100 can be placed still on a table, or the user can hold the electronic device 100 and place it still in front of the user.
[0306] In some embodiments, when the electronic device 100 plays call data through the earpiece, the user can hold the electronic device 100 and lift it up close to their head, for example, place it next to their ear, so that the user can clearly see the content of the call data played by the electronic device 100 through the earpiece.
[0307] Therefore, after acquiring the first sensor data, the electronic device 100 can determine whether it is in motion based on the first sensor data. When the electronic device 100 is in motion, it may have performed an operation of holding the electronic device 100 and lifting it up to its head. The electronic device 100 then identifies whether it is in posture A, i.e., executes S705.
[0308] When the electronic device 100 is not in motion, and the user has not lifted the electronic device 100 up and brought it close to their head, 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.
[0309] S705, Electronic device 100 confirms whether electronic device 100 is in posture A based on the data from the first sensor, posture A includes left head and hand posture or right head and hand posture.
[0310] Optionally, posture A can be either a left head-and-hand posture or a right head-and-hand posture.
[0311] Optionally, not limited to left head-and-hand posture or right head-and-hand posture, the electronic device 100 can further divide the left head-and-hand posture into different left head-and-hand postures, or the electronic device 100 can further divide the right head-and-hand posture into different right head-and-hand postures.
[0312] When the electronic device 100 is confirmed to be in attitude A based on the first sensor data, the electronic device 100 can tune the first antenna or switch to the optimal working antenna when the electronic device 100 is in attitude A, that is, execute S706.
[0313] 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 caused the electronic device 100 to be in motion, but the user did not perform the operation of lifting the electronic device 100 up and bringing 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.
[0314] Optionally, in addition to confirming whether the electronic device 100 is in attitude A based on sensor data, the electronic device 100 can also combine other parameters to confirm its attitude, so as to improve the accuracy of the electronic device 100 in recognizing its attitude.
[0315] For example, other parameters could be touch information collected by the display screen of electronic device 100.
[0316] In some embodiments, the display screen of the electronic device 100 may be pre-installed with a sensor, such as a touch sensor. When a user holds the electronic device 100, the touch sensor on the display screen can collect touch data. The electronic device 100 can recognize gestures based on the touch data. The gestures of holding the electronic device 100 with the left hand are different from those of holding the electronic device 100 with the right hand. Based on the touch data collected by the touch sensor, the electronic device 100 can identify whether the user is holding the electronic device 100 with their left hand or their right hand.
[0317] For example, other parameters could be sensor data acquired by a proximity light sensor.
[0318] In some embodiments, when the electronic device 100 is close to the head, the proximity sensor can detect the presence of an object nearby, which can help identify whether the electronic device 100 is close to the head.
[0319] For example, other parameters could be images captured by a camera.
[0320] 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 of the image.
[0321] In some embodiments, the electronic device 100 can also be identified as being in posture A based on its business scenario.
[0322] For example, when the electronic device 100 is taking a picture, the user typically holds the electronic device 100 with one or both hands, ensuring that the electronic device 100 is directly in front of the user, and that the electronic device 100 is not placed close to the head. Based on this, it can help identify whether the electronic device 100 is in posture A.
[0323] For example, other parameters could be the electromagnetic wave absorption ratio or the specific absorption rate (SAR).
[0324] In some embodiments, when a user holds the electronic device close to their head, the electronic device 100 will reduce the SAR (Specific Absorption Rate) to avoid the impact of antenna radiation on human health, as required by AR (Analog and Radiation Protection) 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, and the presence or absence of the electronic device 100 close to the head can be determined based on the change in SAR.
[0325] Optionally, the electronic device 100 can identify the device's posture based on sensor data. In three-dimensional space, sensor data is a vector that can be represented by amplitude and phase, with phase also referred to as direction. Sensor data can be decomposed into the X, Y, and Z axes of a spherical coordinate system. This application can use... , , These represent the components of the sensor data along the X, Y, and Z axes, respectively. , , These can respectively 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. For example, It is represented as (+X, -X), where "+" indicates the positive direction of the X-axis, "-" indicates the negative direction of the X-axis, and X represents the magnitude in the X-axis direction. Optionally, the "+" can be omitted. , Represent (+Y, -Y), (+Z, -Z), and respectively. Similarly, the device's posture can be identified by representing the sensor data in terms of its components along the X, Y, and Z axes, or by performing vector mathematical operations based on these components.
[0326] For example, the X-axis, Y-axis, and Z-axis can refer to the X-axis, Y-axis, and Z-axis in a spherical coordinate system. A spherical coordinate system is defined as follows: its origin coincides with the Earth's center of mass; the positive direction of the Z-axis points to the Earth's North Pole; the positive direction of the X-axis 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.
[0327] When the sensor data values on the Y and Z axes are positive, the posture of electronic device 100 can be confirmed as a left head-and-hand posture. When the sensor data values on the Y and Z axes are negative, the posture of electronic device 100 can be confirmed as a right head-and-hand posture.
[0328] It should be noted that when the definitions of the X, Y, and Z axes are different, the specific implementation of determining the left head-hand or right head-hand posture based on sensor data will also differ. This application only uses a spherical coordinate system for illustration and does not constitute a limitation.
[0329] Optionally, electronic device 100 may skip S704 and directly execute S705.
[0330] S706, Electronic device 100 determines the first frequency compensation value of the first antenna or determines the optimal working antenna as the second antenna based on attitude A.
[0331] Optionally, the electronic device 100 may have a pre-set antenna configuration information table. The antenna configuration information table stores the control strategies of the antennas corresponding to different electronic device postures, or different electronic device postures and different display screen display forms. The antenna control strategies may include the tuning parameters of the current working antenna or the optimal working antenna.
[0332] Table 1
[0333] Table 1 shows an antenna configuration information table. As shown in Table 1, when attitude A is a left head-and-hand posture, the first frequency compensation value is frequency compensation value A, or the second antenna is antenna A. When attitude A is a right head-and-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 attitude, or it can be the optimal antenna without tuning. This application does not limit this, and the same applies below.
[0334] Table 2
[0335] In some embodiments, the left head-hand posture may include multiple different left head-hand postures, and the right head-hand posture may include multiple different right head-hand postures. This allows the electronic device 100 to more precisely identify its posture, enabling more accurate tuning of the current operating antenna or more precise switching to the optimal operating antenna.
[0336] Table 2 shows another antenna configuration information table. As shown in Table 2, the left head-and-hand posture includes left head-and-hand posture A, left head-and-hand posture B, and left head-and-hand posture C. When the electronic device is in left head-and-hand posture A, the first frequency compensation value is frequency compensation value A, or the second antenna is antenna A. When the electronic device is in left head-and-hand posture B, the first frequency compensation value is frequency compensation value C, or the second antenna is antenna C. When the electronic device is in left head-and-hand posture C, the first frequency compensation value is frequency compensation value D, or the second antenna is antenna D.
[0337] The right head-and-hand posture includes right head-and-hand posture A, right head-and-hand posture B, and right head-and-hand posture C. When the electronic device is in right head-and-hand posture A, the first frequency compensation value is the frequency compensation value B, or the second antenna is antenna B. When the electronic device is in right head-and-hand posture B, the first frequency compensation value is the frequency compensation value E, or the second antenna is antenna E. When the electronic device is in right head-and-hand posture C, the first frequency compensation value is the frequency compensation value F, or the second antenna is antenna F.
[0338] In cases involving multiple different left-head-and-hand postures and multiple different right-head-and-hand postures, in the first stage, the electronic device 100 can identify whether it is in a left-head-and-hand or right-head-and-hand posture based on the first sensor data. For example, after identifying that the electronic device 100 is in a left-head-and-hand posture, it can control the antenna based on the control strategy for the antenna corresponding to the left-head-and-hand posture A. Similarly, after identifying that the electronic device 100 is in a right-head-and-hand posture, it can control the antenna based on the control strategy for the antenna corresponding to the right-head-and-hand posture A.
[0339] It should be noted that, Figure 7 The steps shown are for illustrative purposes only and are not intended to explain this application. Figure 7 The execution order of the steps shown is not limited.
[0340] In some embodiments, after determining the second frequency compensation value of the first antenna, and before tuning the first antenna based on the second frequency compensation value, the electronic device 100 can monitor changes in the communication performance of the first antenna. If the communication performance of the first antenna after the electronic device is in attitude A is better than the communication performance of the first antenna before the electronic device is in attitude A, or the communication performance of the first antenna after the electronic device is in attitude A is better than the communication performance of the first antenna before the electronic device is in attitude A, and the communication performance of the first antenna after the electronic device is in attitude A differs significantly from the communication performance of the first antenna before the electronic device is in attitude A, then the electronic device 100 can tune the first antenna based on the first frequency compensation value of the first antenna.
[0341] In some embodiments, after determining that the optimal operating antenna is the second antenna, and after the electronic device switches the operating antenna from the first antenna to the second antenna, the electronic device can 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 attitude A is better than the communication performance of the first antenna after the electronic device is in attitude A, or if the communication performance of the second antenna after the electronic device is in attitude A is better than the communication performance of the first antenna after the electronic device is in attitude A, and the communication performance of the second antenna after the electronic device is in attitude A differs significantly from the communication performance of the first antenna after the electronic device is in attitude A, then the electronic device 100 can switch the operating antenna to the second antenna.
[0342] Figure 8 A schematic diagram of another electronic device 100 controlling the antenna in the first stage is shown.
[0343] Figure 8 and Figure 7 Similarly, for Figure 8 The descriptions of S801-S805 in the embodiments can be found in the descriptions of S701-S705, and will not be repeated here.
[0344] Figure 8 and Figure 7 The difference in the embodiments is that the electronic device 100 needs to recognize not only the posture of the electronic device 100, but also the display mode of the display screen of the electronic device 100.
[0345] Figure 7 The implementation example may be a method flow for a flat-screen device. Figure 8 An example implementation may be a method flow for a foldable screen device.
[0346] S806. Obtain the first display mode of the display screen of the electronic device 100.
[0347] S807, electronic device 100 determines the first frequency compensation value of the first antenna or determines the optimal working antenna as the second antenna based on attitude A and the first display mode of the display screen.
[0348] In some embodiments, after identifying the attitude A of the electronic device 100, the electronic device 100 also needs to obtain the display mode of its display screen, such as a first display screen mode. The electronic device 100 can determine the first frequency compensation value of the first antenna or determine the optimal operating antenna as the second antenna based on attitude A and the first display screen mode.
[0349] For example, when the electronic device 100 is an inward-folding screen, the form of the first display screen may include, but is not limited to, those described above. Figure 1A The unfolded state shown Figure 1B The intermediate state shown Figure 1C The folded state shown. Optional, not limited to... Figure 1B The intermediate states shown can be further categorized into many other intermediate states for the inward-folding screen.
[0350] For example, when the electronic device 100 is an outward-folding screen, the first display screen form may include, but is not limited to, the following: Figure 1D The unfolded state shown Figure 1E The intermediate state shown Figure 1F The folded state shown. Optional, not limited to... Figure 1E The intermediate states shown can be further categorized into other intermediate states for the outward-folding screen.
[0351] For example, when the electronic device 100 is a tri-fold screen, the form of the first display screen may include, but is not limited to, those described above. Figure 1G The unfolded 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 The intermediate state shown is shown. Optionally, the tri-fold screen can also include other intermediate states.
[0352] For example, when the electronic device 100 is a vertically folding screen, the first display screen form may include, but is not limited to, the following: Figure 1M The unfolded state shown Figure 1N The intermediate state shown Figure 10 The folded state shown. Optional, not limited to... Figure 1N The intermediate states shown can be further categorized into other intermediate states for vertically folding screens.
[0353] Table 3
[0354] Table 3 shows another antenna configuration information table. As shown in Table 3, electronic devices include multiple display screens, and the control strategies for antennas differ depending on the display screen configuration.
[0355] For example, when the electronic device is in a left-head-and-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-and-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-and-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.
[0356] For example, when the electronic device is in a right-head-and-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-and-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-and-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.
[0357] Table 4
[0358] In some embodiments, the left head-hand posture may include multiple different left head-hand postures, and the right head-hand posture may also include multiple different left head-hand postures. In this way, the electronic device 100 can more accurately identify the posture of the electronic device 100, so as to achieve more precise tuning of the current working antenna or more precise switching to the optimal working antenna.
[0359] Table 4 shows another antenna configuration information table. Table 4 only exemplifies the antenna control strategies corresponding to the orientation of some electronic devices and the shape of the display screen.
[0360] For example, when the electronic device is in a left-head-and-hand posture A and the display screen of the electronic device 100 is in an unfolded state, the first frequency compensation value is the frequency compensation value A, or the second antenna is antenna A. When the electronic device is in a left-head-and-hand posture A and the display screen of the electronic device 100 is in an intermediate state, the first frequency compensation value is the frequency compensation value K, or the second antenna is antenna K. When the electronic device is in a left-head-and-hand posture A and the display screen of the electronic device 100 is in a folded state, the first frequency compensation value is the frequency compensation value L, or the second antenna is antenna L.
[0361] For example, when the electronic device is in a right-head-and-hand posture A and the display screen of the electronic device 100 is in an unfolded state, the first frequency compensation value is the frequency compensation value B, or the second antenna is antenna B. When the electronic device is in a right-head-and-hand posture A and the display screen of the electronic device 100 is in an intermediate state, the first frequency compensation value is the frequency compensation value M, or the second antenna is antenna M. When the electronic device is in a right-head-and-hand posture A and the display screen of the electronic device 100 is in a folded state, the first frequency compensation value is the frequency compensation value N, or the second antenna is antenna N.
[0362] In cases involving multiple different left-head-and-hand postures, in the first stage, the electronic device 100 can identify whether it is in a left-head-and-hand posture or a right-head-and-hand posture based on the first sensor data. For example, after identifying that the electronic device 100 is in a left-head-and-hand posture, the electronic device 100 can control the antenna based on the left-head-and-hand posture A and the corresponding antenna control strategy for the display screen configuration. Similarly, after identifying that the electronic device 100 is in a right-head-and-hand posture, the electronic device 100 can control the antenna based on the right-head-and-hand posture A and the corresponding antenna control strategy for the display screen configuration.
[0363] In the case of multiple different left head-hand postures and multiple different left 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.
[0364] In some embodiments, after the electronic device 100 tunes the first antenna based on a first frequency compensation value, or switches the operating antenna to the second antenna, the electronic device 100 can monitor whether the communication performance of the antenna has been improved. This avoids a situation where the communication performance of the antenna of the electronic device 100 degrades due to the electronic device 100 misidentifying the orientation of the electronic device 100.
[0365] Figure 9 This diagram illustrates how an electronic device 100 controls an antenna after tuning or switching the operating antenna on the first day.
[0366] S901, electronic device 100 tunes the first antenna or switches the operating antenna to the second antenna based on the first frequency compensation value.
[0367] S902, Electronic device 100 obtains the communication performance of the first antenna after tuning, or the communication performance of the second antenna.
[0368] 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 can obtain the communication performance of the first antenna after tuning.
[0369] In some embodiments, after the electronic device 100 switches its operating antenna to the second antenna, the electronic device 100 can acquire the communication performance of the second antenna.
[0370] S903, Electronic device 100 needs to confirm whether the communication performance of the first antenna after tuning is better than that of the first antenna before tuning, or whether the communication performance of the second antenna is better than that of the first antenna.
[0371] If the communication performance of the first antenna after tuning is better than that of the first antenna before tuning, or if the communication performance of the second antenna is better than that of the first antenna, the electronic device 100 can maintain the current working state of the antenna.
[0372] If the communication performance of the first antenna after tuning is weaker than that before tuning, or if the communication performance of the second antenna is weaker than that of the first antenna, it indicates that the electronic device 100 may be misjudging its attitude, leading to a decrease in its communication performance. The electronic device 100 can re-identify its attitude, i.e., execute S904.
[0373] If the communication performance of the first antenna after tuning is better than that of the first antenna before tuning, or if the communication performance of the second antenna is better than that of the first antenna, it indicates that the problem of the antenna's communication performance being reduced due to the frequency offset of the electronic device 100 has been improved. The electronic device 100 can maintain the current working state of the antenna, that is, execute S905.
[0374] S904, Electronic device 100 continues to execute S703 or S803.
[0375] 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.
[0376] pass Figure 9 According to the method of the embodiment, the electronic device 100 can avoid the problem of reduced antenna communication performance due to incorrect judgment of the posture of the electronic device 100 or the posture of the electronic device 100 and the display mode of the electronic device 100's display screen through a feedback mechanism.
[0377] Phase Two: The electronic device is kept 100% close to the head while answering a phone call.
[0378] In the first stage, after the attitude of electronic device 100 is identified as attitude A, the attitude of electronic device 100 may change. After the attitude of electronic device 100 changes, the frequency offset of the antenna in electronic device 100 also changes. Therefore, electronic device 100 needs to continue to monitor its attitude and, based on the changed attitude of electronic device 100, retune its current operating antenna, or redetermine and switch to the optimal operating antenna based on the changed attitude of electronic device 100.
[0379] The change in the attitude of electronic device 100 may include, but is not limited to, any of the following: Scenario 1: After determining that the electronic device 100 is in posture A in the first stage, the user may change the position for answering the call. For example, the electronic device 100 may be in posture B. Posture A could be a left-head-and-hand posture, and posture B could be a right-head-and-hand posture, or posture A could be a right-head-and-hand posture, and posture B could be a left-head-and-hand posture. For example, in the first stage, the user can hold the electronic device 100 and hold it close to their right ear to answer the call. Then, in the second stage, the user can hold the electronic device 100 and hold it close to their left ear to answer the call.
[0380] Scenario 2: In cases involving multiple different left-head-and-hand postures or multiple different right-head-and-hand postures, after determining that the electronic device 100 is in posture A in the first stage, the angle at which the user holds the electronic device 100 will change. For example, in the first stage, the electronic device 100 is in the left-head-and-hand posture. Subsequently, the user can continue to hold the electronic device 100 and hold 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. For example, in the second stage, the electronic device 100 can be in left-head-and-hand posture A, left-head-and-hand posture B, or left-head-and-hand posture C.
[0381] This application does not limit itself to situations one and two mentioned above, but may include other situations that cause changes in the attitude of the electronic device 100.
[0382] Figure 10 This diagram illustrates how an electronic device 100 continuously monitors its attitude and controls its antenna.
[0383] S1001, Electronic device 100 acquires the second sensor data collected by the sensor.
[0384] S1002, Electronic device 100 determines its attitude B based on the data from the second sensor.
[0385] After confirming that the electronic device 100 is in attitude A, the electronic device 100 can continue to acquire the second sensor data collected by the sensor, and determine the attitude B of the electronic device 100 based on the second sensor data.
[0386] In some embodiments, when the left head-hand posture includes multiple different left head-hand postures or the right head-hand posture includes multiple different right head-hand postures, posture B can be any of the following: left head-hand posture A, left head-hand posture B, left head-hand posture C, right head-hand posture A, right head-hand posture B, or right head-hand posture C.
[0387] In some embodiments, where the left head-hand posture does not include multiple different left head-hand postures or the right head-hand posture does not include multiple different right head-hand postures, posture B can be any of the following: left head-hand posture, right head-hand posture.
[0388] Optionally, the electronic device 100 may confirm the pitch and roll angles of the electronic device 100 based on the second sensor data, and confirm the pitch and roll angles of the electronic device 100.
[0389] Optionally, the pitch angle of the electronic device 100 can 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 can 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 and roll angles here are consistent with those in the standard spherical coordinate system. In some embodiments, the roll angle may also be referred to as the roll angle, lateral angle, yaw angle, or azimuth angle; this application does not impose any limitations, only different names, but the basic physical meaning is the same.
[0390] In this application, it is generally assumed that the receiver (also known as a handset or receiver) is located in the positive Z-axis direction.
[0391] Electronic device 100 is a non-foldable device: The attitude of the electronic device 100 can be confirmed in the following ways.
[0392] When the left head-hand posture does not include multiple different left head-hand postures or the right head-hand posture does not include multiple different right head-hand postures, the posture of the electronic device 100 includes the left head-hand posture and the right head-hand posture.
[0393] For example, 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 a left head-and-hand posture.
[0394] For example, the angle between a and b can be between 0° and 90°, and the angle between c and d can be between -180° and 0°.
[0395] For example, 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 a right head-and-hand posture.
[0396] For example, the angle between a and b can be between 0° and 90°, and the angle between c and d can be between 0° and 180°.
[0397] When the left head and hand posture includes multiple different left head and hand postures or the right head and hand posture includes multiple different right head and hand postures, the posture of the electronic device 100 includes left head and hand posture A, left head and hand posture B, left head and hand posture C, right head and hand posture A, right head and hand posture B, and right head and hand posture C.
[0398] For example, 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.
[0399] Optionally, a1 and b1, and / or c1 and d1, may include a continuous angular range. For example, the range between a1 and b1 could be between 0° and 30°, and the range between c1 and d1 could be between -180° and -120°. Optionally, a1 and b1, and / or c1 and d1, may also include multiple discontinuous angular ranges. For example, the range between a1 and b1 could be between 0° and 30°, or 40° and 70°, and the range between c1 and d1 could be between -140° and -170°, or -180° and -120°.
[0400] For example, 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.
[0401] Similarly, for the explanation of a2 and b2, c2 and d2, you can refer 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 angular range for illustration.
[0402] For example, the angle between a2 and b2 can be between 30° and 60°, and the angle between c2 and d2 can be between -120° and -60°.
[0403] For example, 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.
[0404] Similarly, for the explanation of a3 and b3, c3 and d3, you can refer to the above explanation of a1 and b1, c1 and d1. This application uses the example of a3 and b3, c3 and d3 including a continuous angular range for illustration.
[0405] For example, the angle between a3 and b3 can be between 60° and 90°, and the angle between c3 and d3 can be between -60° and 0°.
[0406] For example, 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-and-hand posture A.
[0407] For example, the angle between e1 and f1 can be between 0° and 30°, and the angle between g1 and h1 can be between 0° and 60°.
[0408] For example, 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-and-hand posture B.
[0409] For example, the angle between e1 and f1 can be between 0° and 30°, and the angle between g1 and h1 can be between 60° and 120°.
[0410] For example, 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-and-hand posture C.
[0411] For example, the angle between e1 and f1 can be between 0° and 30°, and the angle between g1 and h1 can be between 120° and 180°.
[0412] Similarly, the explanations for e1 and f1, g1 and h1, e2 and f2, g2 and h2, and e3 and f3, g3 and h3 can be referenced to the explanations for a1 and b1, c1 and d1 above. This application uses the example of e1 and f1, g1 and h1, e2 and f2, g2 and h2, e3 and f3, g3 and h3 including a continuous angular range for illustration.
[0413] Electronic device 100 is a foldable device: In some embodiments, when the electronic device 100 is a foldable device, the specific implementation of the posture B of the electronic device 100 based on the second sensor data when the electronic device 100 is in the unfolded state is similar to the specific implementation of the posture B of the electronic device 100 based on the second sensor data when the electronic device 100 is a flat screen device. Please refer to the description of the above embodiments, and this application will not repeat it here.
[0414] In some embodiments, when the electronic device 100 is a foldable device, the user does not need to rotate the electronic device 100 to the left or right when the electronic device 100 is in a folded state. In this case, how to confirm the specific implementation of the posture B of the electronic device 100 based on the second sensor data is similar to how to confirm the specific implementation of the posture B of the electronic device 100 based on the second sensor data when the electronic device 100 is a flat-screen device. Please refer to the description of the above embodiments, and this application will not repeat it here.
[0415] For example, we will use a vertically folding screen as an example to illustrate this.
[0416] For example, such as Figure 11 As shown in (a), when the vertically folding screen is in the unfolded state, a receiver 1 is located at the top of the back panel of the electronic device 100, a receiver 2 and an antenna 1 are located on the left side of the back panel, and an antenna 2 is located at the bottom of the back panel. When the electronic device 100 is in the unfolded state, the receiver 1 is the active receiver, and the antenna 2 is the active antenna. Afterwards, the display screen of the electronic device 100 can be folded towards each other and display... Figure 11 The folded state is shown in (b) above. Afterwards, the user can... Figure 11 The electronic device 100 shown in (b) is in a folded state and rotates 180 degrees around a rotation axis perpendicular to the horizontal plane, and displays... Figure 11 The folded state shown in (c) is shown in the figure.
[0417] like Figure 11 As shown in (c), when the electronic device 100 is in a folded state, it also includes a camera module and a small screen 102, which is in a lit state. The small screen 102 is displayed facing forward, and the user can operate the device without rotating it left or right. Figure 11 The small screen 102 shown in (c) is, for example, in Figure 11 The operation shown in (c) of the small screen 102 is to make phone calls to other devices, etc.
[0418] In some embodiments, when the electronic device 100 is a foldable device, the user may need to rotate the electronic device 100 to the left or right when the electronic device 100 is in a folded state.
[0419] For example, we will use a vertically folding screen as an example to illustrate this.
[0420] right Figure 12 The descriptions of (a) and (b) in the text can be found in [reference]. Figure 11 The descriptions of (a) and (b) in the above are not repeated here. The electronic device 100 displays... Figure 11 After the folded state shown in (b), the user can... Figure 12 The electronic device 100 shown in (b) is in a folded state and rotates 180 degrees around a rotation axis perpendicular to the horizontal plane, and displays... Figure 12 The folded state shown in (c) is shown in the figure.
[0421] like Figure 12 As shown in (c), when the electronic device 100 is in the folded state, it also includes a camera module and a small screen 102, which is in the on state. The small screen 102 is displayed horizontally at this time. To make the small screen 102 display correctly, the user can rotate the electronic device 100 90 degrees to the left and display... Figure 12 The folded state shown in (d) is shown in the figure.
[0422] like Figure 12 As shown in (d), the user can operate Figure 12 The small screen 102 shown in (d) is, for example, in Figure 12 The operation shown in (d) of the small screen 102 is to make phone calls to other devices, etc.
[0423] Optionally, when electronic device 100 is in Figure 11 and Figure 12 In the folded state shown, electronic device 100 can switch between the operating receiver and the operating antenna. Electronic device 100 may also choose not to switch between the operating receiver and the operating antenna.
[0424] For example, when electronic device 100 is in Figure 11 In the folded state shown in (c), the receiver working 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.
[0425] For example, when electronic device 100 is in Figure 12 In the folded state shown in (d), the receiver working 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.
[0426] Optionally, after the user rotates the electronic device 100, the pitch and roll angles of the electronic device 100 relative to the spherical coordinate system will change. The specific implementation of how the electronic device 100 determines its attitude based on the pitch and roll angles calculated from the second sensor data will also change.
[0427] Therefore, for foldable devices, in one possible implementation, when the electronic device 100 switches from an unfolded state to a folded state or an intermediate state, the electronic device 100 needs to monitor whether it has rotated left or right. In the case of left rotation, the electronic device 100 can subtract a first angle compensation value from the matched angle, the first angle compensation value being related to the angle of left rotation. In the case of right rotation, the electronic device 100 can add a second angle compensation value to the matched angle, the second angle compensation value being related to the angle of left rotation.
[0428] The matching angle can refer to the angular range corresponding to the posture of the electronic device 100. For example, when the posture of the electronic device 100 is a left head and hand posture, the matching angle can be between a and b. When the posture of the electronic device 100 is a right head and hand posture, the matching angle can be between a and b, c and d, etc. Specifically, similar to how to determine the posture B of the electronic device 100 based on the second sensor data when the electronic device 100 is a flat screen device, please refer to the description of the above embodiments, which will not be repeated here.
[0429] In other possible implementations, when the electronic device 100 switches from an unfolded state to a folded state or an intermediate state, it can be assumed that the user has rotated the electronic device 100. The electronic device 100 can obtain its lateral angle and roll angle based on the second sensor data. The electronic device 100 then obtains the matching angle when it is in the folded state, which may be different from the matching angle when it is in the unfolded state. The specific implementation is similar to how the posture B of the electronic device 100 is determined based on the second sensor data when the electronic device 100 is a flat-screen device; please refer to the description in the above embodiments, which will not be repeated here.
[0430] In some embodiments, the electronic device 100 can determine whether it has rotated based on whether the receiver in operation has switched. For example, when the receiver in operation in the electronic device 100 switches 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 it is in the folded state, and then determine the attitude B of the electronic device 100 based on the matching angle when it is in the folded state, the pitch angle and the roll angle of the electronic device 100.
[0431] In summary, this means that when the display screen of electronic device 100 has different display forms, how can electronic device 100 determine the different matching angles of attitude B of electronic device 100 based on the pitch angle and roll angle of electronic device 100?
[0432] S1003. Electronic device 100 needs to confirm whether posture B is the same as posture A.
[0433] After acquiring attitude B, the electronic device 100 needs to confirm whether attitude B is the same as attitude A.
[0434] If attitude B is the same as attitude A, the first antenna can continue to be tuned with the first frequency compensation value, or the working antenna can continue to be the second antenna, and S1004 can be executed.
[0435] If attitude B is different from attitude A, electronic device 100 may tune the first antenna based on attitude B, or reconfirm the optimal working antenna and execute S1005.
[0436] S1004, 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.
[0437] S1005, the electronic device 100 determines the second frequency compensation value of the first antenna or identifies the working antenna as the third antenna based on attitude B, or attitude B and the first display mode of the display screen.
[0438] For example, the second frequency compensation value is different from the first frequency compensation value, and the second antenna is different from the first antenna.
[0439] In some embodiments, when the left head-hand posture includes multiple different left head-hand postures and the right head-hand posture includes multiple different right head-hand postures, in the first stage, in order for the electronic device 100 to quickly identify its posture based on the first sensor data, the electronic device 100 can identify whether it is in a left head-hand posture or a right head-hand posture based on the values of the first sensor data on the X, Y, and Z axes. However, in the first stage, the electronic device 100 cannot accurately identify which left head-hand posture or which right head-hand posture it is. In the first stage, if the posture of the electronic device 100 is a left head-hand posture, and the left head-hand posture includes left head-hand posture A, left head-hand posture B, and left head-hand posture C, the electronic device 100 can default to being in left head-hand posture A. That is, in the first stage, posture A of the electronic device 100 is left head-hand posture A, and the electronic device 100 can control the antenna based on the control strategy of the antenna corresponding to left head-hand posture A.
[0440] In the second stage, electronic device 100 can acquire data from the second sensor and accurately identify which left-hand or right-hand posture it is in based on the data. For example, in the second stage, electronic device 100 identifies itself as being in posture B, which can be any one of left-hand posture A, left-hand posture B, and left-hand posture C. Electronic device 100 also needs to confirm whether posture B and posture A are the same. If they are the same, no adjustment is needed. If they are different, it indicates that the default device posture in the first stage was incorrect, and the current working antenna needs to be retuned based on posture B or the optimal working antenna needs to be reconfirmed. Specifically, and Figure 10 The implementation examples are similar and can be referred to. Figure 10 The descriptions in the embodiments are not repeated here.
[0441] For example, if posture A is left head-and-hand posture A, and posture B is also left head-and-hand posture A, then no adjustment is needed.
[0442] For example, if posture A is left head-and-hand posture A and posture B is also left head-and-hand posture B, then electronic device 100 needs to retune the current working antenna or reconfirm the optimal working antenna based on left head-and-hand posture B.
[0443] In some embodiments, posture A may also be referred to as the first posture, and posture B may also be referred to as the second posture.
[0444] In some embodiments, after the second stage, i.e., when the user has brought the electronic device 100 close to their ear to answer the call, the posture of the electronic device 100 may also change.
[0445] The change in the attitude of electronic device 100 may include, but is not limited to, any of the following: Scenario 1: After the second stage, once the electronic device 100 is in posture B, the user may change the position for answering the call. For example, the electronic device 100 may be in posture C, where posture C is a left-head-and-hand position and posture B is a right-head-and-hand position; or, posture C is a right-head-and-hand position and posture B is a left-head-and-hand position. For instance, after the second stage, the user can hold the electronic device 100 close to their right ear to answer the call. Afterward, the user can change the position for answering the call, for example, holding the electronic device 100 close to their left ear to answer the call.
[0446] Scenario 2: In cases involving multiple different left-head-and-hand postures or multiple different right-head-and-hand postures, after determining that the electronic device 100 is in posture B in the second stage, the angle at which the user holds the electronic device 100 will change. For example, after the second stage, the electronic device 100 is in left-head-and-hand posture A. The user can then continue to hold the electronic device 100 and hold it close to their left ear to answer a call. However, the user can change the relative position between the electronic device 100 and their head; the electronic device 100 can be in either left-head-and-hand posture B or left-head-and-hand posture C.
[0447] Not limited to Situations 1 and 2 above, after the second stage, there may be other situations that cause changes in the attitude of the electronic device 100, which this application does not limit.
[0448] In some embodiments, posture B may also be referred to as the first posture, and posture C may also be referred to as the second posture.
[0449] Based on the above analysis, electronic device 100 can continuously monitor its device posture. For example, electronic device 100 can acquire data from the second sensor and determine its posture C based on the second sensor data. If posture C is the same as posture B, it indicates that the user has not changed the posture of electronic device 100 after the second stage, and electronic device 100 can continue to tune the first antenna with the first frequency compensation value, or continue to keep the operating antenna as the second antenna. If posture C is different from posture B, it indicates that the user has changed the posture of electronic device 100 after the second stage, and electronic device 100 can determine the frequency compensation value of the first antenna or determine the operating antenna as the third antenna based on posture C, or based on posture C and the first display mode of the display screen. Specifically, and Figure 10 The implementation examples are similar and can be referred to. Figure 10 The descriptions in the embodiments are not repeated here.
[0450] In some embodiments, posture B may also be referred to as the first posture, and posture C may also be referred to as the second posture.
[0451] Figure 13 A flowchart of an antenna control method is shown.
[0452] S1301, The electronic device acquires data from the first sensor.
[0453] S1302, The electronic device identifies the first posture based on the data from the first sensor.
[0454] S1303, The electronic device tunes the first antenna or switches the operating antenna from the first antenna to the second antenna based on the first attitude.
[0455] S1304, The electronic device acquires data from the second sensor.
[0456] S1305. The electronic device identifies that it is in a second posture based on the data from the second sensor.
[0457] S1306. If the second attitude is the same as the first attitude, the electronic device continues to tune the first antenna in the first attitude or continues to keep the working antenna as the second antenna.
[0458] In some embodiments, after the electronic device answers a call, while the user is holding the electronic device to their ear to answer the call, the electronic device can continuously monitor the posture of the electronic device to identify which left-hand or right-hand posture the electronic device is in.
[0459] In some embodiments, after a user places the electronic device to their ear to answer a call, the electronic device can continue to monitor its posture to prevent the user from changing the position of the electronic device, thereby enabling the electronic device to accurately monitor its posture.
[0460] This method allows the electronic device to continuously monitor its posture during calls with other devices and control the antenna accordingly. This prevents performance degradation caused by changes in the user's hand position. Ultimately, this method improves antenna communication performance and enhances call efficiency.
[0461] In one possible implementation, the method further includes: when the second attitude is different from the first attitude, the electronic device tunes the first antenna in the second attitude or switches the operating antenna to a third antenna, which is different from the first antenna.
[0462] In this way, when a user places the electronic device to their ear to answer a call, or after the user has placed the electronic device to their ear to answer a call, the electronic device can detect that the user has changed the posture of the electronic device. The electronic device can then control the antenna based on the changed posture, thus preventing the communication performance of the electronic device's antenna from deteriorating due to the change in the electronic device's posture.
[0463] In one possible implementation, the electronic device acquires the first sensor data, specifically including: the electronic device acquires the first sensor data when the electronic device plays the first call data through the receiver.
[0464] In this way, while the electronic device is playing call data through the receiver, it can also collect sensor data to monitor its posture, thus saving power consumption.
[0465] In one possible implementation, the electronic device identifies that it is in a first posture based on the first sensor data, specifically including: the electronic device confirms whether it is in motion based on the first sensor data; and if it is in motion, the electronic device identifies that it is in the first posture based on the first sensor data.
[0466] In this way, when the electronic device detects that it is in motion, the user may raise the device and bring it close to their ear, at which point the electronic device will then recognize the device's posture. If the electronic device detects that the device is stationary, the user may still hold the device in their hand to answer the call, without bringing the device close to their ear. In this case, the electronic device does not need to recognize the device's posture, thus saving power consumption.
[0467] In one possible implementation, after the electronic device tunes the first antenna based on a first attitude or switches the operating antenna from the first antenna to a second antenna, the method further includes: the electronic device acquiring 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; if the communication performance of the first antenna after tuning 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, the electronic device acquires third sensor data and identifies a third attitude based on the third sensor data, the third attitude being different from the first attitude; the electronic device tunes the first antenna based on the third attitude or switches the operating antenna to a fourth antenna, the fourth antenna being different from the first antenna.
[0468] In this way, if the communication performance of the first antenna after tuning is weaker than that before tuning, or the communication performance of the second antenna is weaker than that of the first antenna, it may be due to an error in the device attitude recognition. The electronic device can reacquire sensor data and re-recognize the device attitude. This feedback mechanism can prevent the antenna's communication performance from degrading due to an error in the device attitude recognition.
[0469] In one possible implementation, the electronic device tunes the first antenna based on a first attitude or switches the operating antenna from the first antenna to the second antenna, specifically including: the electronic device acquiring a first display mode of the electronic device's display screen; the electronic device tuning the first antenna or switching the operating antenna from the first antenna to the second antenna based on the first attitude and the first display mode.
[0470] In one possible implementation, the first display form includes any 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.
[0471] For example, when the electronic device 100 is an inward-folding screen, the form of the first display screen may include, but is not limited to, those described above. Figure 1A The unfolded state shown Figure 1B The intermediate state shown Figure 1C The folded state shown. Optional, not limited to... Figure 1B The intermediate states shown can be further categorized into many other intermediate states for the inward-folding screen.
[0472] For example, when the electronic device 100 is an outward-folding screen, the first display screen form may include, but is not limited to, the following: Figure 1D The unfolded state shown Figure 1E The intermediate state shown Figure 1F The folded state shown. Optional, not limited to... Figure 1E The intermediate states shown can be further categorized into other intermediate states for the outward-folding screen.
[0473] For example, when the electronic device 100 is a tri-fold screen, the form of the first display screen may include, but is not limited to, those described above. Figure 1G The unfolded 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 The intermediate state shown is shown. Optionally, the tri-fold screen can also include other intermediate states.
[0474] For example, when the electronic device 100 is a vertically folding screen, the first display screen form may include, but is not limited to, the following: Figure 1M The unfolded state shown Figure 1N The intermediate state shown Figure 10 The folded state shown. Optional, not limited to... Figure 1N The intermediate states shown can be further categorized into other intermediate states for vertically folding screens.
[0475] Thus, different display formats of electronic devices have varying impacts on antenna communication performance. Electronic devices can control their antennas based on both the display format and the device's orientation. Different display formats necessitate different antenna control strategies.
[0476] In one possible implementation, the electronic device tunes the first antenna based on a first attitude, specifically including: the electronic device confirming a first frequency compensation value based on the first attitude and a first display form; the electronic device tuning the first antenna based on the first frequency compensation value, wherein the first frequency compensation value is used to adjust the operating frequency band of the first antenna and make the first antenna operate within a preset operating frequency band.
[0477] In one possible implementation, the electronic device tunes the first antenna based on a first attitude, specifically including: the electronic device confirming a first frequency compensation value based on the first attitude; the electronic device tuning the first antenna based on the first frequency compensation value, wherein the first frequency compensation value is used to adjust the operating frequency band of the first antenna and make the first antenna operate within a preset operating frequency band.
[0478] In one possible implementation, the communication performance of the antenna is determined by one or more parameters, including antenna signal received power, maximum antenna signal transmitted power, power backoff value, path loss of the antenna path, antenna channel bandwidth, antenna gain, antenna efficiency, and antenna pattern.
[0479] The first or second posture includes any one of the following: first left head-and-hand posture, second left head-and-hand posture, first right head-and-hand posture, and second right head-and-hand posture.
[0480] Optionally, the first or second posture may also include any of the following: left head-and-hand posture, right head-and-hand posture.
[0481] In one possible implementation, the electronic device confirms that it is in a first posture based on the first sensor data, specifically including: the electronic device determining the values of the first sensor data acquired on the X-axis, Y-axis and Z-axis; and when the values of the first sensor data on the Y-axis and Z-axis meet a first condition, the electronic device confirms that it is in the first posture based on the first sensor data.
[0482] In this way, after the electronic device answers a call, but before the user places the electronic device to their ear to answer the call, the electronic device can determine its posture based on the values of the first sensor data, which can speed up the process of the electronic device confirming its posture.
[0483] In one possible implementation, the electronic device confirms that it is in a first posture based on the first sensor data, specifically including: when the electronic device confirms that it is in a left head-and-hand posture based on the first sensor data, the electronic device confirms that the first posture is a first left head-and-hand posture; when the electronic device confirms that it is in a right head-and-hand posture based on the first sensor data, the electronic device confirms that the first posture is a first right head-and-hand posture.
[0484] Thus, after the electronic device answers a call but before the user places the device to their ear, it can determine whether it is in a left-head-and-hand posture or a right-head-and-hand posture based on the values of the first sensor data. In cases involving multiple left-head-and-hand postures or multiple right-head-and-hand postures, the electronic device can use the first left-head-and-hand posture from among the multiple left-head-and-hand postures as the first posture; alternatively, the electronic device can use the first right-head-and-hand posture from among the multiple right-head-and-hand postures as the first posture.
[0485] In one possible implementation, the X-axis, Y-axis, and Z-axis are the X-axis, Y-axis, and Z-axis of a spherical coordinate system; when the first posture is a 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 a 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.
[0486] In one possible implementation, the electronic device confirms that it is in a second attitude based on the second sensor data. Specifically, the electronic device acquires the pitch angle of the plane on which it is located relative to the XOY plane in the spherical coordinate system and the azimuth angle of the plane on which it is located relative to the YOZ plane in the spherical coordinate system based on the second sensor data. If the azimuth angle and the pitch angle satisfy the second condition, the electronic device confirms that it is in the second attitude.
[0487] In this way, when a user holds the electronic device to their ear to answer a call, the device can obtain its pitch and azimuth angles based on data from the second sensor, and then confirm its attitude based on the pitch and azimuth angles. This method can more accurately confirm the device's attitude and also verify whether the initial attitude confirmed by the electronic device based on the first sensor data is correct.
[0488] In one possible implementation, when the second posture is the first left-head-and-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-and-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-and-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-and-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.
[0489] For example, the first left head-hand posture can be left head-hand posture A, the first value can be c1, the second value can be d1, the third value can be a1, and the fourth value can be b1.
[0490] For example, the second left head-hand posture can be left head-hand posture B, the fifth value can be c2, the sixth value can be d2, the seventh value can be a2, and the eighth value can be b2.
[0491] For example, the first right head-and-hand posture can be right head-and-hand posture A, the ninth value can be g1, the tenth value can be h1, the eleventh value can be e1, and the twelfth value can be f1.
[0492] For example, the second right head-and-hand posture can be right head-and-hand posture B, the thirteenth value can be g2, the fourteenth value can be h2, the fifteenth value can be e2, and the sixteenth value can be f2.
[0493] In one 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.
[0494] In one possible implementation, the electronic device confirms that it is in a first attitude based on the first sensor data, specifically including: the electronic device obtaining 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; and when the first azimuth angle and the first pitch angle satisfy a third condition, the electronic device confirms that it is in the first attitude.
[0495] The electronic device confirms that it is in a second attitude based on the second sensor data, specifically including: the electronic device obtains the second pitch angle of the plane where the electronic device is located relative to the XOY plane in the spherical coordinate system, and the 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 satisfy the fourth condition, the electronic device confirms that it is in a second attitude.
[0496] For an explanation of the third and fourth conditions, please refer to the explanation of the second condition.
[0497] In this way, when a user holds the electronic device to their ear to answer a call, the device can continuously monitor whether its posture has changed.
[0498] This application provides an electronic device, which includes one or more memories and one or more processors; wherein the one or more memories and one or more processors are coupled, and the one or more memories are used to store computer programs, and when the one or more processors execute and call the computer programs, the electronic device performs... Figure 13 An antenna control method is shown.
[0499] This application provides a computer-readable storage medium, including instructions that, when executed on an electronic device, cause the electronic device to perform... Figure 13 An antenna control method is shown.
[0500] This application provides a chip system, which includes one or more processors, the processors being used to invoke computer instructions to cause an electronic device to perform... Figure 13 An antenna control method is shown.
[0501] This application provides a computer program product containing instructions that, when executed on an electronic device, causes the electronic device to perform... Figure 13 An antenna control method is shown.
[0502] The above are merely some embodiments and implementation methods of this application. The scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0503] It is understood that the user interfaces described in the embodiments of this application are merely example interfaces and do not constitute a limitation on the solution of this application. In other embodiments, the user interface may adopt different interface layouts, may include more or fewer controls, and may add or remove other functional options, as long as they are based on the same inventive concept provided in this application, they are all within the protection scope of this application.
[0504] It should be noted that, without causing contradictions or conflicts, any feature in any embodiment of this application, or any part of any feature, can be combined, and the combined technical solution is also within the scope of the embodiments of this application.
[0505] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. An antenna control method, characterized in that, The method includes: The electronic device acquires data from the first sensor; The electronic device identifies that it is in a first posture based on the data from the first sensor. The electronic device tunes the first antenna or switches the operating antenna from the first antenna to the second antenna based on the first attitude; The electronic device acquires second sensor data, which is acquired after the first sensor data. The electronic device identifies that it is in a second posture based on the data from the second sensor. 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.
2. The method according to claim 1, characterized in that, 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 operating 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 acquires first sensor data, specifically including: When the electronic device plays the first call data through the receiver, the electronic device acquires the first sensor data.
4. The method according to claim 1, characterized in that, The electronic device identifies its first posture based on the data from the first sensor, specifically including: The electronic device determines whether it is in motion based on the data from the first sensor. When the electronic device is in the motion state, the electronic device identifies that it is in the first posture based on the first sensor data.
5. The method according to any one of claims 1-4, characterized in that, After the electronic device tunes the first antenna based on a first attitude or switches the operating antenna from the first antenna to the second antenna, the method further includes: The electronic device acquires 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 that of the first antenna before tuning, or when the communication performance of the second antenna is weaker than that of the first antenna, the electronic device acquires third sensor data and identifies the electronic device in a third posture based on the third sensor data, the third posture being different from the first posture. The electronic device tunes the first antenna based on a third attitude or switches the operating antenna to a fourth antenna, which is different from the first antenna.
6. The method according to any one of claims 1-5, characterized in that, The electronic device tunes the first antenna or switches the operating antenna from the first antenna to the second antenna based on a first attitude, specifically including: The electronic device acquires 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. If the communication performance of the first antenna after tuning is better than that of the first antenna before tuning, or if the communication performance of the second antenna is better than that of the first antenna, the electronic device tunes the first antenna or switches the operating antenna from the first antenna to the second antenna based on the first attitude.
7. The method according to any one of claims 1-6, characterized in that, The electronic device tunes the first antenna or switches the operating antenna from the first antenna to the second antenna based on a first attitude, specifically including: The electronic device acquires a first display mode of the electronic device's display screen; The electronic device tunes the first antenna or switches the operating antenna from the first antenna to the second antenna based on the first posture and the first display mode.
8. The method according to claim 7, wherein the first display form 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.
9. The method according to claim 7 or 8, characterized in that, The electronic device tunes the first antenna based on a first attitude, specifically including: The electronic device determines the first frequency compensation value based on the first posture and the first display mode; The electronic device tunes the first antenna based on the first frequency compensation value, which is used to adjust the operating frequency band of the first antenna and make the first antenna operate within a preset operating frequency band.
10. The method according to any one of claims 1-6, characterized in that, The electronic device tunes the first antenna based on a first attitude, 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, which is used to adjust the operating frequency band of the first antenna and make the first antenna operate within a preset operating frequency band.
11. The method according to claim 5 or 6, characterized in that, The communication performance of an antenna is determined by one or more parameters, including antenna signal received power, maximum antenna signal transmitted power, power back-off value, path loss of the antenna path, antenna channel bandwidth, antenna gain, antenna efficiency, and antenna pattern.
12. The method according to any one of claims 1-8, characterized in that, The first posture or the second posture includes any one of the following: the first left head-and-hand posture, the second left head-and-hand posture, the first right head-and-hand posture, and the second right head-and-hand posture.
13. The method according to claim 12, characterized in that, The electronic device confirms that it is in a first posture based on the data from the first sensor, specifically including: The electronic device determines the values of the first sensor data acquisition on the X-axis, Y-axis, and Z-axis; If the values of the first sensor data on the Y-axis and the Z-axis satisfy a first condition, the electronic device confirms that it is in the first posture based on the first sensor data.
14. The method according to claim 13, characterized in that, The electronic device confirms that it is in the first posture based on the first sensor data, specifically including: When the electronic device confirms that it is in a left head-and-hand posture based on the first sensor data, the electronic device confirms that the first posture is the first left head-and-hand posture; When the electronic device confirms that it is in a right head-and-hand posture based on the first sensor data, the electronic device confirms that the first posture is the first right head-and-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 a spherical coordinate system; when the first posture is the first left head and 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 and 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.
16. The method according to claim 12, characterized in that, The electronic device confirms that it is in a second posture based on the data from the second sensor, 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 data from the second sensor. If the azimuth angle and the pitch angle satisfy the second condition, the electronic device confirms that it is in the second attitude.
17. The method according to claim 16, characterized in that, When the second posture is the first left head and 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 and 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 and 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-and-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-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 and the one or more processors are coupled, and the one or more memories are used to store a computer program, which, when executed by the one or more processors, calls the computer program to perform the method of any one of claims 1-18.
20. A computer-readable storage medium comprising instructions, characterized in that, When the instructions are executed on an electronic device, the electronic device performs the method of any one of claims 1-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 performs the method of any one of claims 1-18.