Tuning circuit control method, electronic device, and computer-readable storage medium
By automatically switching the satellite antenna beam pointing using a tuning circuit control method, the problem of communication quality degradation caused by position changes in satellite communication is solved. Adaptive high-gain alignment is achieved, reducing design difficulty and power consumption, and expanding application scenarios.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- HONOR DEVICE CO LTD
- Filing Date
- 2025-08-04
- Publication Date
- 2026-06-11
AI Technical Summary
During satellite communication, changes in the user's location cause changes in the relative position of the mobile phone and the satellite, causing the high-gain direction of the satellite antenna to deviate from the satellite's direction, resulting in a decrease in communication quality. Traditional methods increase the difficulty by designing wide-lobed antennas and are limited by the structure of the mobile phone.
By using a tuning circuit control method, the beam pointing of the satellite antenna is automatically switched according to the relative direction. Control commands are obtained using a preset mapping relationship, and the tuning circuit switches the satellite antenna state to keep the high-gain direction aligned with the satellite.
No need to redesign the antenna; it adaptively adjusts the beam direction to ensure communication quality, adapts to location changes, reduces design difficulty and power consumption, and expands application scenarios.
Smart Images

Figure CN2025112474_11062026_PF_FP_ABST
Abstract
Description
Tuning circuit control methods, electronic devices and computer-readable storage media
[0001] This application claims priority to Chinese Patent Application No. 202411760568.3, filed on December 2, 2024, entitled “Tuning Circuit Control Method, Electronic Device and Computer-Readable Storage Medium”, the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of satellite communication technology, specifically to a tuning circuit control method, electronic device, and computer-readable storage medium. Background Technology
[0003] With the development of satellite communication technology, people have increasingly higher requirements for satellite communication. Users hope to have better communication quality when using satellite communication.
[0004] On the one hand, when a user uses a mobile phone's satellite communication function, the satellite itself is in operation, and its position relative to the phone changes. On the other hand, the user's position may also change during satellite communication; for example, if a user is holding the phone while walking, the phone's position and orientation will change. When the relative position of the phone and the satellite changes, the high-gain direction of the phone's satellite antenna will deviate from the satellite's direction, leading to a decrease in satellite communication quality. The traditional approach is to design and adjust the phone's satellite antenna to make its main lobe wider, meaning the high-gain direction can cover a wider area. This ensures that even if the relative position of the phone and the satellite changes, the high-gain direction of the satellite antenna will remain pointed towards the satellite for a certain period, thus achieving better communication quality.
[0005] However, designing and debugging satellite antennas to achieve higher directional coverage over a wider range increases the difficulty of designing and debugging satellite antennas. Furthermore, due to the compact structure of mobile phones, this approach cannot be implemented in some mobile phones, limiting its application scenarios. Summary of the Invention
[0006] This application provides a tuning circuit control method, device, chip, electronic device, computer-readable storage medium, and computer program product that can automatically switch the beam pointing of a satellite antenna, improve communication quality, and is easy to implement.
[0007] In a first aspect, a tuning circuit control method is provided, applied to an electronic device, the electronic device including a satellite antenna and a tuning circuit, the method comprising: acquiring a first frame relative direction, the first frame relative direction being the direction of the satellite relative to the electronic device in the first frame; determining a first control command based on the first frame relative direction and a preset mapping relationship, the preset mapping relationship including at least a correspondence between the first relative direction and the first control command, the first frame relative direction and the first relative direction being matched; sending the first control command to the tuning circuit, the tuning circuit, under the instruction of the first control command, tuning the satellite antenna to a first tuning state.
[0008] Optionally, the electronic device can be a terminal device such as a mobile phone with satellite communication capabilities. The electronic device is equipped with a satellite antenna, and the number of satellite antennas can be one or more.
[0009] The satellite antenna is equipped with a tuning circuit. This tuning circuit can operate in multiple tuning states. The beam direction of the satellite antenna differs depending on the tuning state.
[0010] The aforementioned preset mapping relationship may include a correspondence between a first relative direction and a first control command, and may also include correspondences between other directions and other control commands. Optionally, the preset mapping relationship may include a one-to-one correspondence between multiple different relative directions and multiple different control commands. Different control commands can indicate that the tuning circuit is in different tuning states.
[0011] The relative direction in the above-mentioned preset mapping relationship can be the direction of a point in space, or it can be a range of directions in space.
[0012] Specifically, the electronic device can acquire its current pose using its own sensors. It can also determine the direction of the satellite relative to itself at the current moment based on the ephemeris and the current time, denoted as the first frame relative direction. This first moment can be the time of the first frame. Next, the electronic device can query a preset mapping relationship to determine the first relative direction that matches the first frame relative direction, and then filter out the first control command corresponding to that first relative direction.
[0013] It should be noted that when the first relative direction is the direction of a point in space, the first frame relative direction and the first relative direction match, which can be the same as or close to the first relative direction. When the first frame relative direction and the first relative direction are close, it means that the angle between the first frame relative direction and the first relative direction is smaller than the angle between the first frame relative direction and other directions.
[0014] When the first relative direction is a range of directions in space, the matching of the first frame relative direction and the first relative direction can be that the first frame relative direction is within the range of directions represented by the first relative direction.
[0015] After the electronic device queries the preset mapping relationship and obtains the first control command, it can send the first control command to the tuning circuit. Under the instruction of the first control command, the tuning circuit can control the corresponding switch to switch, so that the corresponding matching circuit acts on the satellite antenna, thereby achieving the first tuning state.
[0016] It should be noted that when there are multiple satellite antennas, and each satellite antenna has a corresponding tuning circuit, the first control command can instruct the corresponding switches in these multiple tuning circuits to switch, so that the corresponding matching circuit acts on the corresponding satellite antenna. When there are multiple satellite antennas, some satellite antennas may have corresponding tuning circuits, while others may not, and remain in a fixed tuning state.
[0017] When there are multiple satellite antennas, the first tuning state described above represents the common tuning state of the multiple satellite antennas under the action of their respective tuning circuits.
[0018] In this implementation, the electronic device queries a preset mapping relationship to obtain a first control command that matches the relative direction of the current first frame. Following this command, the device instructs the tuning circuit to tune the satellite antenna, ensuring that the antenna beam is oriented as much as possible towards the relative direction of the first frame containing the satellite, thus improving communication quality. This method eliminates the need for antenna redesign and retuning, making it easy to implement. Furthermore, it adaptively controls the tuning state based on the relative direction, ensuring that even if the relative position changes during satellite communication, the beam direction can be switched promptly to point as close to the satellite as possible, guaranteeing communication quality.
[0019] In some possible implementations, the preset mapping relationship also includes the correspondence between the second relative direction and the second control command. The second control command is used to indicate that the satellite antenna is in the second tuning state. In the first tuning state, the gain of the satellite antenna in the relative direction of the first frame is greater than the gain of the satellite antenna in the relative direction of the first frame in the second tuning state.
[0020] The aforementioned preset mapping relationship also includes the correspondence between the second relative direction and the second control command. That is, when the satellite is near or within the range of the second relative direction, the electronic equipment can obtain the second control command by querying the preset mapping relationship and send it to the tuning circuit. Under the instruction of the second control command, the tuning circuit switches the tuning state, causing the satellite antenna to be in the second tuning state.
[0021] It is understandable that when the satellite is in the first frame relative direction, if the electronic device sends a first control command to the tuning circuit, causing the satellite antenna to be in the first tuning state, the gain of the satellite antenna in the first frame relative direction is greater than the gain of the satellite antenna in the first frame relative direction when the satellite antenna is in the second tuning state.
[0022] It can be understood that when a satellite is in a certain relative direction, and the corresponding control command found in the above-mentioned preset mapping relationship instructs the satellite antenna to be in the corresponding tuning state, the gain of the satellite antenna in this relative direction is greater than the gain of the satellite antenna in this relative direction when it is in other tuning states under other control command instructions.
[0023] This method adaptively controls the tuning state based on the relative direction, ensuring that even if the relative direction changes during satellite communication, the beam pointing can be switched in a timely manner to point as close to the satellite as possible. This ensures that the satellite antenna always has maximum gain in the direction of the satellite, thus maximizing communication quality.
[0024] In some possible implementations, the first control command is determined based on the relative direction of the first frame and a preset mapping relationship, including: acquiring the relative direction change amount, where the relative direction change amount is the change amount of the relative direction of the first frame and the relative direction of the second frame, the relative direction of the second frame is the direction of the satellite relative to the electronic device in the second frame, the second frame is the frame preceding the first frame, in the second frame, the tuning circuit tunes the satellite antenna to a third tuning state under the instruction of the third control command, and determines whether the relative direction change amount is greater than or equal to a preset direction change threshold; if so, the first control command is determined based on the relative direction of the first frame and the preset mapping relationship.
[0025] In the first frame, the electronic device can first determine the change in relative direction between the first frame's relative direction and the second frame's relative direction. If the change in relative direction is greater than or equal to a preset direction change threshold, it indicates that the third tuning state of the previous frame may not be able to guarantee communication quality. Therefore, beam switching can be performed, i.e., a first control command is determined based on the relative direction of the first frame and a preset mapping relationship. This ensures timely beam switching when the position change is significant, thus guaranteeing communication quality.
[0026] It should be noted that in the previous frame, the electronic device sends a third control command to the tuning circuit, causing the tuning satellite antenna to enter a third tuning state. Optionally, this third tuning state can be the same as or different from the second tuning state.
[0027] Optionally, when the third control command and the second control command are the same, the third tuning state and the second tuning state are the same; when the third control command and the second control command are different, the third tuning state and the second tuning state are different.
[0028] In some possible implementations, the method also includes: if the relative direction change is less than a preset direction change threshold, no control command is sent to the tuning circuit, and the tuning circuit, under the instruction of the third control command, tunes the satellite antenna to the third tuning state in the first frame.
[0029] If the relative directional change is less than a preset directional change threshold, the electronic device does not need to send any control commands to the tuning circuit. In this case, during the first frame, the tuning circuit can continue to keep the satellite antenna in the third tuning state under the instruction of the third control command issued in the previous frame. This avoids the unnecessary overhead caused by frequent beam switching due to frequent control commands when the relative directional change of the satellite is small.
[0030] In some possible implementations, control commands are not sent to the tuning circuit, including: determining whether the communication quality parameters in the second frame meet the preset communication quality requirements; if not, no control commands are sent to the tuning circuit if the preset adjustment period has not been reached in the first frame.
[0031] The electronic device can further determine whether the communication quality parameters of the previous frame (second frame) meet the preset communication quality requirements if the relative directional change is less than a preset directional change threshold. If not, the electronic device can further determine whether the time interval between the first frame and the last control command is greater than or equal to a preset adjustment period. If the first frame has not yet reached the preset adjustment period (the time interval between the first frame and the last control command is less than the preset adjustment period), it indicates that the time since the last adjustment of the tuning state is relatively short. To avoid unnecessary overhead caused by frequent beam switching due to frequent control command issuance, the electronic device can refrain from sending control commands to the tuning circuit, allowing the satellite antenna to maintain the tuning state of the second frame.
[0032] In some possible implementations, the method further includes: when the first frame reaches a preset adjustment period, determining a first control command based on the relative direction of the first frame and a preset mapping relationship.
[0033] If the communication quality parameters in the current frame (the second frame) do not meet the preset communication quality requirements, and the time interval between the first frame and the last control command is greater than or equal to the preset adjustment period, it indicates that the time since the last adjustment of the tuning state is relatively long. In this case, adjusting the tuning state will not result in frequent switching issues. Furthermore, based on the relative direction of the first frame and the preset mapping relationship, the first control command is determined, and the beam can be switched again based on the current relative direction, so that the switched beam points as close as possible to the direction of the satellite, thereby improving communication quality.
[0034] In some possible implementations, the method further includes: if the communication quality parameters in the second frame meet the preset communication quality requirements, then determine the first control command based on the relative direction of the first frame and the preset mapping relationship.
[0035] Optionally, communication quality parameters may include any one or more of the following: the packet loss rate of the transmitted signal's ACK, the received signal's SNR, the received signal's RSSI, and the received signal's RSRP.
[0036] Optionally, in the case of time-division satellite communication, if the current frame is a transmit time slot, the recorded communication quality parameters are parameters related to the transmitted signal, such as the ACK of the transmitted signal, also known as TX ACK. If the current frame is a receive time slot, the communication quality parameters can be parameters related to the received signal, such as any one or more of SNR, RSSI, and RSRP.
[0037] The preset communication quality requirements are the thresholds corresponding to the above communication quality parameters. For example, when the communication quality parameter is TX ACK, the preset communication quality requirement can be that the packet loss rate of TX ACK is less than or equal to 10%; when the communication quality parameter is SNR, the preset communication quality requirement can be that RSSI is greater than or equal to -89dBm; when the communication quality parameter is RSRQ, the preset communication quality requirement can be that RSRQ is greater than or equal to -3dBm.
[0038] If the communication quality parameters of the electronic device in the first frame meet the preset communication quality requirements, the electronic device can determine the first control command based on the relative direction of the first frame and the preset mapping relationship.
[0039] In some possible implementations, the first control command is determined based on the relative direction of the first frame and a preset mapping relationship, including: determining whether the value of the first flag bit is a first value, the first value being used to characterize that the communication quality in the first frame is higher than that in the second frame; if so, the first control command is determined based on the relative direction of the first frame and the preset mapping relationship.
[0040] The first flag can be a switching flag. Optionally, the first value can be 0. When the value of the first flag is the first value, it indicates that the communication quality of the electronic device at this time is higher than that of the previous frame. The electronic device can then determine the first control command based on the relative direction of the first frame and the preset mapping relationship. Optionally, the electronic device can also continue to obtain the relative direction in the next frame and obtain the control command corresponding to the relative direction to instruct the tuning circuit to switch.
[0041] In some possible implementations, the method further includes: if the value of the first flag bit is not the first value, then a third control command is sent to the tuning circuit, and the tuning circuit tunes the satellite antenna to the third tuning state under the instruction of the third control command.
[0042] When the value of the first flag bit is not the first value, for example, it is the second value. Optionally, the second value can be 1. This indicates that the communication quality of the electronic device at this time is lower than that of the previous frame. The electronic device can then revert to the previous frame with higher communication quality to avoid communication quality degradation. For example, the electronic device sends a third control command to the tuning circuit, and the tuning circuit, under the instruction of the third control command, tunes the satellite antenna to the third tuning state.
[0043] In some possible implementations, the method also includes updating the value of the first flag bit to the first value.
[0044] When the value of the first flag bit is not the first value, the electronic device reverts to the previous frame with higher communication quality and updates the value of the first flag bit to the first value. This indicates that there may be obstruction or interference, and the control command corresponding to the current frame cannot improve the communication quality. The first value is used to indicate the revert to the tuning state in the next frame.
[0045] In some possible implementations, determining the first control command based on the relative direction of the first frame and a preset mapping relationship includes: determining the first tuning state based on the relative direction of the first frame and a preset beam mapping relationship, wherein the preset beam mapping relationship includes at least the correspondence between the first relative direction and the first tuning state; and determining the first control command based on the first tuning state and a preset command mapping relationship, wherein the preset command mapping relationship includes at least the correspondence between the first tuning state and the first control command.
[0046] Optionally, the aforementioned preset beam mapping relationship may also include one-to-one correspondences between multiple other directions and multiple other tuning states. Optionally, the aforementioned preset command mapping relationship may also include one-to-one correspondences between multiple other tuning states and multiple other control commands.
[0047] The preset mapping relationship can also include beam mapping relationship and preset command mapping relationship. The electronic device can first query the beam mapping relationship to obtain the first tuning state corresponding to the relative direction of the first frame, and then query the preset command mapping relationship to find the first control command corresponding to the first tuning state.
[0048] In some possible implementations, the method further includes: obtaining the communication quality parameters at the time of the third frame, which is the frame following the first frame; if the communication quality parameters at the time of the third frame indicate that the communication quality at the time of the third frame is higher than the communication quality at the time of the first frame, then keeping the satellite antenna in the first tuning state.
[0049] Optionally, when the electronic device finds that the value of the first flag bit is the first value in the first frame, it can continue to obtain the communication quality parameters of the third frame in the third frame after the first frame.
[0050] Communication quality parameters characterize communication quality that is higher than other communication quality parameters. These parameters can be one or more of the following: lower TX ACK packet loss rate, higher RSSI, higher RSRQ, etc., or they can be more conducive to communication compared to other communication indicators.
[0051] The electronic device determines whether the communication quality in the third frame is higher than that in the first frame based on the communication quality parameters. If so, there is no need to send control commands to the tuning circuit, thus keeping the satellite antenna in the first tuning state.
[0052] In some possible implementations, the method further includes: if the communication quality parameters in the third frame indicate that the communication quality in the third frame is not higher than the communication quality in the first frame, then the value of the first flag bit is updated to the second value, and the satellite antenna is kept in the first tuning state until the end of the third frame; when the value of the first flag bit is determined to be the second value in the fourth frame, the first control command is sent to the tuning circuit again.
[0053] If the communication quality in the third frame is lower than or equal to the higher communication quality in the first frame, the value of the first flag can be updated to the second value. Furthermore, no control command needs to be sent to the tuning circuit in the third frame, thus maintaining the satellite antenna in the first tuning state until the end of the third frame. Then, in the following fourth frame, the first control command is sent to the tuning circuit again. Optionally, in the fourth frame, the electronic device can continue to determine whether the value of the first flag is the second value. Since the electronic device updated the value of the first flag to the second value in the third frame, if it again determines the value of the first flag to be the second value in the fourth frame, it can send the first control command to the tuning circuit again, i.e., revert to the tuning state of the previous frame.
[0054] Optionally, the electronic device may maintain the satellite antenna in the first tuning state without sending a control command to the tuning circuit if the communication quality in the third frame is higher or the same as that in the first frame. Instead, if the communication quality in the third frame is lower than that in the first frame, the electronic device updates the value of the first flag to the second value and maintains the satellite antenna in the first tuning state until the end of the third frame. Then, when the value of the first flag is determined to be the second value in the fourth frame, the first control command is sent to the tuning circuit again, i.e., it reverts to the tuning state of the previous frame.
[0055] This method can maintain the current tuning state to ensure communication quality when communication quality improves after beam switching; it can also promptly revert to the tuning state when communication quality deteriorates, thereby preventing further deterioration of communication quality.
[0056] In some possible implementations, before obtaining the relative direction of the first frame, the method further includes: in response to a user-executed satellite alignment operation, obtaining the current pose, current time, ephemeris, and preset service duration of the electronic device, wherein the current pose includes the current position and current attitude; determining the satellite trajectory of the accessible satellite and the access period for each accessible satellite based on the current position, current time, ephemeris, and preset service duration; determining the satellite alignment parameters based on the satellite trajectory, access period, gain mapping relationship, and current attitude, wherein the satellite alignment parameters include: the angle to be rotated and / or the satellite alignment area, and the gain mapping relationship includes the correspondence between multiple angles and multiple gains, wherein the first gain corresponds to the fourth relative direction, the first gain is any one of multiple gains, the fourth relative direction is the angle corresponding to the first gain among multiple angles, the first gain in the fourth relative direction is greater than other gains in the fourth relative direction, and the state of the tuning circuit corresponding to the first gain is different from that of other gains; and outputting the satellite alignment parameters.
[0057] The above gain mapping relationship includes multiple correspondences between relative directions and multiple gains. The gain corresponding to each relative direction is the largest among the different gains of the satellite antenna under various states of the tuning circuit, i.e., the maximum gain or optimal gain. The relative direction here can be the direction of a point in space, or a range of directions (or angles) in space.
[0058] Before engaging in satellite services, electronic devices can first align with satellites. The current location of the electronic device can be read using positioning functionality. This location can include the longitude, latitude, and altitude of the electronic device.
[0059] Since ephemeris can accurately express the precise position or trajectory of each satellite over time, electronic devices can use ephemeris to query which satellites can connect to the electronic device within a preset service duration starting from the current time. These queried satellites can be called visible satellites.
[0060] The electronic device can also determine, based on ephemeris data, the specific time periods during which it can connect to visible satellites within a preset service duration; these are called accessible time periods. The electronic device can also obtain the satellite trajectory of each connected satellite within the accessible time period by querying the ephemeris. Optionally, the satellite trajectory can be represented using the coordinates of multiple consecutive points in a three-dimensional coordinate system.
[0061] The electronic device can calculate the angle required for satellite alignment based on its own pose and the trajectory of the first satellite to be accessed (e.g., satellite 1), combined with a gain mapping relationship (e.g., Table 1). This angle is called the rotation angle. The electronic device can also obtain multiple relative directions relative to itself from multiple points at different locations on the satellite trajectory; then, it searches for a reference point in the gain mapping relationship that is close to all these relative directions. Afterward, the electronic device can calculate an average direction based on the average of the multiple relative directions, and obtain the rotation angle based on the angle difference between the average direction and the direction of the corresponding reference point. The electronic device can also obtain the satellite alignment area based on its pose after rotation. The electronic device can calculate the human's satellite alignment pose based on its own posture and the area obstructed by the human body. Finally, the electronic device outputs some or all of the satellite alignment parameters to guide the user to rotate the electronic device or their body to achieve satellite alignment.
[0062] In some possible implementations, if the gain mapping relationship includes the relative direction corresponding to the human body occlusion area, then the star-alignment parameters also include: star-alignment attitude.
[0063] Optionally, when considering human occlusion, the electronic device can calculate the human's attitude towards the satellite based on the electronic device's current attitude, satellite trajectory, access time, area considering human occlusion, and gain mapping relationship.
[0064] Optionally, when the above gain mapping relationship is a mapping relationship that combines the human body occlusion area, the electronic device can calculate the star-tracking attitude based on the human body occlusion area represented by the gain mapping relationship. That is, the star-tracking parameters also include the star-tracking attitude.
[0065] In some possible implementations, the adjusted attitude of the electronic device is obtained; under the adjusted attitude, the relative direction of the third frame is obtained, which is the direction of the satellite relative to the electronic device under the adjusted attitude; based on the relative direction of the third frame and a preset mapping relationship, a fourth control command is determined, which also includes the correspondence between the third relative direction and the fourth control command, and the relative direction of the third frame and the third relative direction are matched; the fourth control command is sent to the tuning circuit, and under the instruction of the fourth control command, the tuning circuit tunes the satellite antenna to the fourth tuning state; while the satellite antenna is in the fourth tuning state, satellite alignment is performed.
[0066] After the user adjusts the electronic device's attitude according to the satellite alignment parameters, and after adjusting the user's own satellite alignment attitude, the electronic device can continue to acquire the current attitude, referred to as the adjusted attitude; or, based on the previously calculated rotation angle, the adjusted attitude of the electronic device can be calculated, allowing the electronic device to acquire the satellite's relative direction to the electronic device in the third frame under the adjusted attitude. Then, the electronic device queries the aforementioned preset mapping relationship for a matching third relative direction and acquires the corresponding fourth control command. The electronic device sends the fourth control command to the tuning circuit, thereby putting the satellite antenna into the corresponding fourth tuning state. In the fourth tuning state, the satellite antenna's beam pointing is closer to the satellite's direction compared to other tuning states. Based on this, satellite alignment can be performed quickly, improving alignment efficiency and success rate.
[0067] In some possible implementations, the satellite alignment parameters include: the angle to be rotated, the alignment area, and the alignment attitude. The satellite alignment parameters are determined based on the satellite trajectory, access period, gain mapping relationship, and current attitude, including: determining the angle to be rotated and the alignment area based on the current pose and gain mapping relationship; and determining the alignment attitude based on the satellite trajectory, access period, and alignment area.
[0068] In some possible implementations, before obtaining the current pose, current time, ephemeris, and preset service duration of the electronic device in response to the user's satellite targeting operation, the method further includes: determining whether the beam switching function is enabled; if so, obtaining the current pose, current time, ephemeris, and preset service duration.
[0069] In this implementation, by setting the flag corresponding to the beam switching function, compatibility with different hardware and software versions can be achieved, improving the compatibility of the method. When the beam switching function is turned off, it may be because the current electronic device does not have a tuning circuit for the satellite antenna and cannot support beam switching, or the product specifications of the electronic device do not require support for beam switching. In this case, the beam switching function can be turned off by default, and the default satellite alignment procedure can be executed directly, thereby avoiding invalid beam switching operations.
[0070] In a second aspect, a tuning circuit control device is provided, comprising a unit consisting of software and / or hardware, the unit being used to perform any one of the methods described in the first aspect.
[0071] Thirdly, embodiments of this application provide a chip including a processor; the processor is used to read and execute a computer program stored in a memory to perform any one of the methods described in the first aspect.
[0072] Optionally, the chip further includes a memory, which is connected to the processor via a circuit or wire.
[0073] Alternatively, the chip may further include a communication interface.
[0074] Optionally, the chip is a satellite chip.
[0075] Fourthly, an electronic device is provided, comprising: a processor, a memory, and an interface; the processor, memory, and interface cooperate with each other to enable the electronic device to perform any one of the methods described in the first aspect.
[0076] Fifthly, an electronic device is provided, which includes any one of the chips described in the third aspect.
[0077] In a sixth aspect, a computer-readable storage medium is provided, wherein a computer program is stored therein, and when the computer program is executed by a processor, the processor performs any one of the methods described in the first aspect.
[0078] In a seventh aspect, a computer program product is provided, the computer program product comprising: computer program code, which, when executed on an electronic device, causes the electronic device to perform any one of the methods described in the first aspect. Attached Figure Description
[0079] Figure 1 is a schematic diagram of the mobile phone beam and satellite beam under the best communication quality of a satellite communication example provided in an embodiment of this application;
[0080] Figure 2 is a schematic diagram of satellite beams and mobile phone beams at different locations provided in an embodiment of this application;
[0081] Figure 3 is a schematic diagram of an example of horizontal and pitch angles provided in an embodiment of this application;
[0082] Figure 4 is a schematic diagram of a satellite communication circuit provided in an embodiment of this application, and the mobile phone beam under different tuning states;
[0083] Figure 5 is a visualized radiation pattern of a satellite antenna provided in an embodiment of this application;
[0084] Figure 6 is a schematic diagram of an example of a satellite alignment process provided in an embodiment of this application;
[0085] Figure 7 is a schematic diagram of an example satellite trajectory provided in an embodiment of this application;
[0086] Figure 8 is a schematic diagram of an example of a human body occlusion area provided in an embodiment of this application;
[0087] Figure 9 is a schematic diagram of a user adjusting the orientation according to the star orientation provided in an embodiment of this application;
[0088] Figure 10 is a flowchart of an example of satellite service using a tuning circuit control method provided in an embodiment of this application;
[0089] Figure 11 is a flowchart of an example of a tuning circuit control method provided in an embodiment of this application;
[0090] Figure 12 is a schematic diagram of a tuning circuit control device provided in an embodiment of this application. Detailed Implementation
[0091] The technical solutions of the embodiments of this application will be 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; "and / or" in this 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.
[0092] Hereinafter, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include one or more of that feature.
[0093] The tuning circuit control method provided in this application can be applied to electronic devices such as mobile phones, tablets, wearable devices, in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, and personal digital assistants (PDAs). The electronic devices can also be terminal devices. This application does not impose any restrictions on the specific type of electronic device.
[0094] For ease of understanding, the following embodiments of this application will be used in conjunction with the accompanying drawings and application scenarios to specifically illustrate the tuning circuit control method provided in the embodiments of this application.
[0095] With the development of satellite communication technology, people have increasingly higher requirements for satellite communication. Users hope to have better communication quality when using satellite communication.
[0096] However, because the satellite itself is in operation and its position relative to the phone changes during satellite communication, the user's position may also change. For example, if a user is holding the phone while walking, the phone's position and orientation will change. When the relative position of the phone and the satellite changes, the high-gain direction of the phone's satellite antenna will deviate from the satellite's direction, resulting in a decrease in satellite communication quality.
[0097] For ease of understanding, beam direction is used here to describe the high-gain direction of an antenna. Generally, antenna gain can be represented using a radiation pattern. The direction with high gain in the radiation pattern can be called the antenna's beam direction or beam pointing. In some cases, an antenna may have more than one beam, for example, multiple beams exist. The one representing the highest gain among these multiple beams can be called the main beam or main lobe.
[0098] The antenna has the highest gain in the direction of the main beam. That is, all other things being equal, the antenna has the highest gain in the direction of the main beam, and the communication quality is better in this direction; while in other directions, the gain decreases, and the communication quality will decrease accordingly.
[0099] As shown in Figure 1, in a scenario of mobile phone and satellite communication, an example is taken where the satellite antenna has one beam. The beam of the satellite antenna on the mobile phone is called the mobile phone beam, and the beam of the antenna on the satellite is called the satellite beam. It can be understood that, all other things being equal, the satellite communication quality is best when the mobile phone beam and the satellite beam are in the relative position shown in Figure 1.
[0100] However, as the relative positions of the mobile phone and the satellite change, the mobile phone beam and the satellite beam are no longer aligned. For example, as shown in Figure 2, when the satellite is at position 1, position 2, position 4, or position 5, the mobile phone beam and the satellite beam are no longer aligned, resulting in a decrease in communication quality. Furthermore, when the relative position of the satellite is position 1 or position 4, obstructions between the satellite and the mobile phone (e.g., obstruction 1: buildings, obstruction 2: trees) will also affect the quality of satellite communication, leading to a decrease in communication quality.
[0101] If the satellite antenna on a mobile phone could be designed and tuned to make its main lobe wider, meaning its high-gain direction could cover a wider angular range, then even if the relative positions of the phone and the satellite change, the high-gain direction of the satellite antenna could still maintain its orientation towards the satellite within a certain range, thus preserving good communication quality. However, designing and tuning a satellite antenna to cover a wider range of high-gain directions increases the difficulty of satellite antenna design and tuning, and due to the compact structure of mobile phones, this approach is not feasible for some devices, limiting its application scenarios.
[0102] This application provides a tuning circuit control method that can switch the beam orientation of the satellite antenna according to the relative position of the satellite and the mobile phone, so that the beam direction of the mobile phone's satellite antenna is as close as possible to the direction of the satellite, thereby improving the quality of satellite communication. This method improves satellite communication quality without increasing the design and debugging difficulty of the satellite antenna or increasing the transmission power of the satellite communication, saving costs while avoiding increased power consumption, and has a wide range of applications.
[0103] To clearly describe the technical solution of this application, the process of satellite communication via mobile phone is briefly introduced below:
[0104] The process of a mobile phone completing a satellite communication involves two stages. The first stage is the satellite pairing stage. When a user needs to use satellite communication, they can open the satellite communication app installed on their phone and perform a pairing operation. For example, the user can click the pairing control on the app's interface. The phone responds to the user's pairing operation, executing the first stage process to pair with the satellite. Satellite pairing, also known as satellite search, involves the phone searching for connectable satellites and establishing a communication connection with the found satellites. The second stage is the service stage. After pairing is complete, the phone can enter the service stage, where it can conduct satellite calls and other satellite services through the connected satellite.
[0105] The following sections will provide a detailed description of the specific processes of satellite communication involved in the embodiments of this application, including the satellite phase and the service phase, as well as the specific methods of beam switching involved in these processes.
[0106] Star-matching phase:
[0107] During the satellite alignment phase, alignment primarily relies on the user adjusting the phone's orientation to change the satellite's position (relative orientation) relative to the phone, and / or the user rotating their body to change their position relative to the phone.
[0108] To illustrate how to adjust relative direction, let's first introduce how to describe it. Taking the mobile phone (or its satellite antenna) as the center point O, direction in three-dimensional space can be described using the angles of the azimuth plane (horizontal angle) and the elevation plane (elevation angle). See Figure 3 for details. The azimuth plane, also known as the horizontal plane, is denoted as Phi (Φ), and its value ranges from 0 to 360 degrees. The elevation plane, also known as the vertical plane, is denoted as Theta (θ), and its value ranges from 0 to 180 degrees. Using Figure 3 as an example, the relative position of point A in space with respect to the mobile phone is denoted as (θ, Φ), which can also be called relative direction.
[0109] It should be noted that, in order to switch the beam direction of the satellite antenna, the mobile phone can be equipped with a tuning circuit to change the tuning state of the satellite antenna, thereby achieving the switching of different beam directions. Figure 4a shows an example of a satellite communication circuit in a mobile phone. Antenna 1 can act as a satellite antenna to transmit and receive satellite signals. Antenna 1 is equipped with a tuning circuit, which includes various matching circuits with different matching forms, such as matching circuit 1, matching circuit 2, matching circuit 3, matching circuit 4, and matching circuit 5. Each matching circuit can act independently on antenna 1, and combinations of different matching circuits can also act together on antenna 1, placing antenna 1 in different tuning states. When a matching circuit needs to be applied to antenna 1, the switch connected to that matching circuit can be turned on. Figure 4a uses single-pole single-throw switches as an example; these five single-pole single-throw switches can be denoted as S1, S2, S3, S4, and S5, respectively. Optionally, the positions of the single-pole single-throw switches and their corresponding matching circuits can be interchanged. For example, the five different matching circuits shown in Figure 4a can each act independently on antenna 1, allowing antenna 1 to be in five different tuning states. In these five tuning states, the beam direction of the satellite antenna is different, as shown in Figure 4b. In Figure 4b, the mobile phone beams of antenna 1 in the five different tuning states are shown as the directions of mobile phone beams 1, 2, 3, 4, and 5, respectively.
[0110] Referring again to Figure 4a, for example, when S1 is on and S2, S3, S4, and S5 are all off, matching circuit 1 acts on antenna 1 for tuning, putting antenna 1 in the first tuning state. In this case, the beam of antenna 1 can be seen as the mobile phone beam 1 in Figure 4b. When S2 is on and S1, S3, S4, and S5 are all off, matching circuit 2 acts on antenna 1 for tuning, putting antenna 1 in the second tuning state. In this case, the beam of antenna 1 can be seen as the mobile phone beam 2 in Figure 4b. When S3 is on and S1, S2, S4, and S5 are all off, matching circuit 3 acts on antenna 1 for tuning. 1. Tuning is performed so that antenna 1 is in the third tuning state. At this time, the beam of antenna 1 can be shown as the mobile phone beam 3 in Figure 4b. When S4 is turned on and S1, S2, S3 and S5 are all turned off, the matching circuit 4 acts on antenna 1 to tune it, so that antenna 1 is in the fourth tuning state. At this time, the beam of antenna 1 can be shown as the mobile phone beam 4 in Figure 4b. When S5 is turned on and S1, S2, S3 and S4 are all turned off, the matching circuit 5 acts on antenna 1 to tune it, so that antenna 1 is in the fifth tuning state. At this time, the beam of antenna 1 can be shown as the mobile phone beam 5 in Figure 4b.
[0111] The structure of the tuning circuit shown in Figure 4a, and the correspondence between the number of matching circuits and the different directions of the mobile phone beams shown in Figure 4b, are merely examples and are not intended to limit the correspondence between the state of the tuning circuit and the orientation of the mobile phone beams. Optionally, in the circuit shown in Figure 4a, two or more different matching circuits can act together on antenna 1, causing antenna 1 to be in a tuning state and forming a new direction of the mobile phone beam. For example, S1 and S2 are both on, while S3, S4, and S5 are off. Matching circuit 1 and matching circuit 2 act together on the satellite antenna, causing antenna 1 to be in another tuning state. In this case, the beam direction of antenna 1 can be different from the mobile phone beams 1-5 shown in Figure 4b. Optionally, multiple different matching circuits in the tuning circuit can also be combined in any way to form even more different directions of mobile phone beams, which will not be elaborated here.
[0112] Optionally, each of the above-mentioned matching circuit forms may include, but is not limited to, any one or more combinations of series capacitor, parallel inductor, series inductor and parallel capacitor. The specific values of the capacitor and inductor, as well as whether the capacitor and inductor are lumped parameter elements or distributed parameter elements, are not limited in the embodiments of this application, as long as the antenna tuning state can be achieved.
[0113] Optionally, in the satellite communication circuit shown in Figure 4a above, when in the satellite communication transmission time slot, the satellite transmission signal can be output through the system-on-chip (SOC). The satellite transmission signal is amplified by a power amplifier (PA), then switched by a switch (shown as an example of a single-pole double-throw (SPDT) switch in the figure), and transmitted from antenna 1. When in the satellite communication reception time slot, the satellite reception signal is received through antenna 1, switched by the SPDT, and then enters low-noise amplifier (LNA) 1 for low-noise amplification. Afterwards, the satellite reception signal can be switched by a switch (shown as an example of a single-pole double-throw (SPDT) switch in the figure), filtered by filter 1, and then input to the SOC for demodulation. Filter 1 can be a satellite communication receiving filter (RX SAW).
[0114] Optionally, a positioning chip can also be integrated into the satellite chip SOC, which can support both satellite communication and positioning functions.
[0115] Optionally, the mobile phone can also have two satellite antennas, as shown in Figure 4a, where both antenna 1 and antenna 2 are satellite antennas. This is an example of a satellite communication circuit in a mobile phone. Antenna 2 can also function as a satellite antenna to receive satellite signals. Antenna 2 is equipped with a tuning circuit 2, which includes various matching circuits with different matching forms, such as matching circuit 6, matching circuit 7, matching circuit 8, matching circuit 9, and matching circuit 10. Each matching circuit in tuning circuit 2 can act individually or collectively on antenna 2 under the control of switches S6, S7, S8, S9, and S10, causing antenna 2 to be in different tuning states. For the specific principles of how S6 to S10 control antenna 2, please refer to the relevant description of tuning circuit 1, which will not be repeated here.
[0116] The satellite communication circuit shown in Figure 4a above may further include a controller. This controller outputs different control signals, which are used to control the switching states of the PA and LNA, gain level switching, and path switching of each switch (SPDT, SP4T). Optionally, the controller can also be integrated with the SOC, i.e., the SOC outputs the control signals; this embodiment does not limit this. The controller can also output control signals to the switches (e.g., S1 to S10) in the tuning circuit that control the on / off state of the matching circuit, to select different matching circuits. In other words, the tuning circuit can switch the beam of antenna 1 under the instruction of the control signals output by the controller, achieving beam switching in different directions. Optionally, the forms of the switches in Figure 4a are only examples; they can also be switches for other ports, as long as they meet the path switching requirements; this embodiment does not limit this.
[0117] The embodiment shown in Figure 4 describes the circuit structure for implementing beam switching in different directions. The specific scenarios for beam switching in mobile phones will be explained in detail below.
[0118] Users can establish beam mapping relationships for satellite antennas on their mobile phones. This beam mapping relationship includes correspondences between multiple directions and various tuning states. Each tuning state also corresponds to a set of control signals, which control the tuning circuitry to ensure the antenna is in the corresponding tuning state. Optionally, the establishment of this beam mapping relationship can include:
[0119] Space is divided into multiple directions by stepping through the elevation and azimuth planes at certain angles. The maximum gain of the satellite antenna in each direction is then obtained. For a given direction, the maximum gain among the different gains corresponding to different tuning states of the satellite antenna is the maximum gain in that direction, also known as the optimal gain. See Table 1 for details. Table 1 shows the maximum gain (i.e., gain mapping relationship) for different directions, using a step of 1 degree in both the horizontal and elevation planes as an example. It should be noted that the satellite antenna has different gains in different tuning states for each direction. Furthermore, the satellite antenna exhibits different directivity in different tuning states.
[0120] For example, when a satellite antenna has three different tuning states, it can generate beams in three different directions. For instance, in these three tuning states, the gains for one direction (b°, a°) are G1, G2, and G3, respectively. G3 is the maximum value, and therefore, G3 can be considered the maximum gain for direction (b°, a°). The tuning state with a gain of G3 for direction (b°, a°) is the tuning state matched for that direction. In Table 1, the maximum gain Gain_b_a for direction (b°, a°) is G3.
[0121] Table 1
[0122] Once the maximum gain for each direction is obtained, Table 1 above can be generated. It should be noted that the gain corresponding to different tuning states in each direction can be obtained by testing the satellite antenna or by modeling and simulating the satellite antenna; this embodiment of the application does not limit this.
[0123] In some cases, directions with similar angles are likely to have the same tuning state. Therefore, to reduce the amount of data, the elevation and azimuth planes can be set with multiple directions in larger increments. For example, the directions of the elevation and azimuth planes can be divided in increments of 3 degrees, 5 degrees, 10 degrees, etc., which is not limited in this embodiment. For example, if the azimuth plane is divided into 36 parts at 10 degrees and the elevation plane is divided into 18 parts at 10 degrees, 18*36 directions can be obtained. The corresponding maximum gain and the tuning state corresponding to the maximum gain can be obtained in each direction.
[0124] Optionally, each direction can be represented by the angle of a point in space, or by a range of angles in space. For example, the direction of 5 degrees in the pitch plane and 5 degrees in the horizontal plane can be represented by the direction of a point in space with 5 degrees in the pitch plane and 5 degrees in the horizontal plane, or by a range of angles from 0 to 10 degrees in the pitch plane and from 0 to 10 degrees in the horizontal plane. Optionally, the maximum gain of each direction can be the average of the maximum gains of multiple sub-directions within the corresponding angle range. For example, the multiple sub-directions corresponding to the angle range (0°, 0°) to (10°, 10°) include: (0°, 0°), (0°, 1°), (0°, 2°)......(0°, 10°), (1°, 0°), (1°, 1°), (1°, 2°)......(1°, 10°)......(10°, 0°), (10°, 1°), (10, 2°)......(10, 10°). The maximum gain of these multiple sub-directions can be found in Table 1 above, ranging from Gain_0_0 to Gain_10_10. Therefore, the maximum gain corresponding to the angular range (0°, 0°) to (10°, 10°) can be the average value of Gain_0_0 to Gain_10_10. Optionally, the angular step between these multiple sub-directions can also be a value greater than 1 degree, such as 2 degrees, 3 degrees, etc.
[0125] After obtaining the maximum gain table, the mobile phone can establish a beam mapping relationship (i.e., a preset beam mapping relationship) based on the tuning state of the tuning circuit under the maximum gain in different directions. In other words, the beam mapping relationship includes correspondences between multiple different directions and various tuning states. Optionally, the beam mapping relationship can be seen in Table 2, where different directions are represented by the pitch and horizontal angles of a point in space.
[0126] For example, Table 2 shows that the direction (10°, 20°) corresponds to tuning state Index2. This means that in the direction (10°, 20°), calling the control parameters corresponding to tuning state Index2 can make the satellite antenna have a greater gain in the direction (10°, 20°). Similarly, the direction (20°, 40°) corresponds to tuning state Index3. This means that in the direction (20°, 40°), calling the control parameters corresponding to Index3 can make the satellite antenna have a greater gain in the direction (20°, 40°). The meanings of other directions can be found in the descriptions of the first two directions, and will not be repeated here.
[0127] Table 2
[0128] In practical applications, when the angle between the satellite's direction and the specific direction shown in Table 2 is not exactly the same, the tuning state corresponding to the direction closest to the satellite's direction in Table 2 can be used as the tuning state corresponding to that satellite's direction. For example, if the angle difference between the direction (11°, 22°) and the direction (10°, 20°) shown in Table 2 is the smallest, then the tuning state achieved by calling the control parameters corresponding to Index2 for the direction (10°, 20°) can be determined at the satellite's direction (11°, 22°) on the phone. Compared to other tuning states, this will allow the satellite antenna to have greater gain at the direction (11°, 22°).
[0129] In some embodiments, the directions shown in Table 2 are the directions of points in space, which can be called reference points. That is, different angle ranges can correspond to reference points in different directions, and each reference point corresponds to a tuning state. Optionally, the direction of each reference point can be the center point of the corresponding angle range or the direction of the angle close to the center point.
[0130] Optionally, Table 2 above uses a 10-degree step for spatial division as an example. In beam mapping, multiple directions can also be divided into spatial divisions with different steps such as 1 degree, 3 degrees, and 5 degrees. This application embodiment does not limit the specific step size. It should be noted that the tuning states corresponding to different steps and different directions may be the same or different.
[0131] Based on the test or simulation results of the satellite antenna, without considering human body obstruction, the optimal radiation pattern (i.e., maximum gain table) of the satellite antenna can be visualized as shown in Figure 5a. In Figure 5a, the horizontal axis represents the angle of the horizontal plane, called the horizontal angle, and the vertical axis represents the angle of the elevation plane, called the elevation angle. The gray area represents the directions where the satellite antenna gain is above -7.28 dBic, and the mobile phone can normally achieve satellite alignment in these directions. In the gray area, the higher the brightness (the lighter the color), the greater the gain; the lower the brightness (the darker the color), the smaller the gain.
[0132] Figure 5b shows the optimal radiation pattern of the satellite antenna considering human body obstruction. Alternatively, considering human body obstruction, a rectangular object 2 meters high, 0.5 meters wide, and 0.5 meters thick can be used to simulate a human body, and a mobile phone can be placed at a height of 1.5 meters to obtain the radiation pattern of the satellite antenna. The description of Figure 5b in Figure 5 is similar to that in Figure 5a. The difference is that Figure 5b has less gray area and more white area than Figure 5a. This additional white area represents the direction where the gain is below -7.28 dBic due to human body obstruction. In directions with gain below -7.28 dBic, the probability of the mobile phone successfully aligning with the satellite is low.
[0133] It should be noted that when a mobile phone conducts satellite communication, the satellite antenna beam must be pointed towards the sky to effectively establish communication with the satellite. In other words, the performance of the upper hemisphere of the satellite antenna's radiation pattern (i.e., the portion along the positive Z-axis shown in Figure 3) is related to satellite communication performance. Therefore, Figure 5 shows the radiation pattern of the satellite antenna in the direction of elevation angles from 0 degrees to 90 degrees, specifically the upper hemisphere of the radiation pattern, for reference.
[0134] After establishing the beam mapping relationship, the mobile phone can perform satellite alignment based on this relationship. The satellite alignment process can be illustrated in Figure 6, including:
[0135] S601. In response to the user's satellite targeting operation, determine whether the beam switching function is enabled. If not, proceed to step S602A; if yes, proceed to step S602B.
[0136] Specifically, users can use their mobile phones to open the satellite communication app and click the satellite pairing control within the app's interface to perform satellite pairing operations. In response to the user's satellite pairing operation, the phone first determines whether the beam switching function is enabled. Specifically, the phone can read the flag bits corresponding to the beam switching function, such as the enable bit `BeamSwitchEnable` for the beam switching NV item, and determine whether the beam switching function is enabled based on the value of this flag bit. For example, if `BeamSwitchEnable` is 0, it means the beam switching function is not enabled. If `BeamSwitchEnable` is 1, it means the beam switching function is enabled.
[0137] It should be noted that by setting the flag corresponding to the beam switching function, compatibility with different hardware and software versions can be achieved, thus improving the compatibility of this method.
[0138] S602A: Execute the default satellite alignment procedure.
[0139] When the beam switching function is turned off, it may be because the current mobile phone does not have a tuning circuit for the satellite antenna and cannot support beam switching, or the product specifications of the mobile phone do not require support for the beam switching function. In this case, the beam switching function can be turned off by default and the default satellite alignment process can be directly executed to avoid invalid beam switching operations.
[0140] Optionally, the default satellite alignment process may include: periodically acquiring the phone's position and calculating the satellite's direction relative to the phone based on the phone's position and ephemeris data, known as the relative direction. The phone can periodically acquire the relative direction and repeatedly attempt satellite alignment; it can also display the relative direction between the satellite and the phone in real time on the phone's interface, thereby guiding the user to rotate the phone multiple times to complete the alignment process.
[0141] When beam switching is enabled, the phone can quickly align with satellites based on beam mapping. Specifically, the phone can execute S602B and later related procedures.
[0142] S602B: Obtain the phone's location, current time, ephemeris, and preset service duration.
[0143] Specifically, a mobile phone can use its location function to read its current location. This location can include the phone's longitude, latitude, and altitude. The phone can also use its location function to obtain its current longitude and latitude, and then read the corresponding altitude to determine its altitude. Optionally, the phone can also use its built-in barometer sensor to measure atmospheric pressure and calculate the altitude based on changes in atmospheric pressure.
[0144] Ephemeris is a precise table of a satellite's position or trajectory that changes over time; it is a function of time. Mobile phones can read ephemeris data stored in their memory.
[0145] The mobile phone can also obtain the current time and read the preset service duration. Optionally, the preset service duration can be a fixed duration, such as ten minutes. That is, under normal circumstances, the time required to complete one satellite communication is within ten minutes. Optionally, the preset service duration can also be five minutes, fifteen minutes, etc., and the specific duration of the preset service duration is not limited in this application embodiment.
[0146] S603. Based on the mobile phone's location, current time, ephemeris, and preset service duration, calculate the satellites that the mobile phone can access and the time periods (i.e., access periods) within the preset service duration starting from the current time.
[0147] Since ephemeris can accurately express the precise position or trajectory of each satellite over time, mobile phones can use ephemeris to query which satellites can connect to the phone and pass over the phone within a preset service period starting from the current time. These queried satellites can be called visible satellites.
[0148] The mobile phone can also determine the specific time periods during which it can connect to visible satellites within a preset service duration, based on the ephemeris data; these are called accessible time periods. The mobile phone can also obtain the satellite trajectory of each connected satellite within the accessible time period by querying the ephemeris. Optionally, the satellite trajectory can be represented using the coordinates of multiple consecutive coordinate points in a three-dimensional coordinate system.
[0149] For example, if the preset service duration is ten minutes, the phone can check the ephemeris to see that Satellite 1 and Satellite 2 will be orbiting above the phone within the next ten minutes starting from the current moment. These are Satellite 1 (also called Visible Satellite 1) and Satellite 2 (also called Visible Satellite 2). See Figure 7 for details. Furthermore, the phone can determine through the ephemeris that Satellite 1 is closer to the phone between the first and seventh minutes, allowing the phone to connect. The trajectory of Satellite 1 is shown as Satellite Trajectory 1 in Figure 7. As Satellite 1 continues its orbit, starting from the eighth minute, it sets and becomes farther away from the phone, while Satellite 2 gradually rises and becomes closer. Therefore, the phone can connect to Satellite 2 between the eighth and tenth minutes, and its trajectory is shown as Satellite Trajectory 1 in Figure 7. The other Satellites 1 and 2 in Figure 7 are satellites that cannot be connected to within the preset service duration.
[0150] S604. Determine the satellite alignment parameters based on the gain mapping relationship, the human body obstruction area, the mobile phone's pose, and the satellite trajectory of the accessed satellite during the access period.
[0151] Specifically, a phone's pose includes its position and orientation. For details on how a phone obtains its position, please refer to the previous description; it will not be repeated here. Optionally, a phone can detect its orientation using its own sensors, such as a gyroscope.
[0152] The mobile phone can calculate the angle to rotate for satellite alignment based on its own position and the trajectory of the first satellite to be connected (e.g., satellite 1), combined with a gain mapping relationship. This angle is called the rotation angle. For example, the phone calculates the relative direction of the satellite to the phone based on its position and the satellite trajectory. Then, the phone finds the reference point closest to this relative direction in the beam mapping relationship and calculates the angle difference between this relative direction and the reference point to obtain the rotation angle. When the user rotates the phone according to the rotation angle, the relative direction of the satellite will be the same as or close to the direction represented by the corresponding reference point. For example, the phone can find the reference point (30 degrees, 40 degrees) with the smallest angle difference in the beam mapping relationship based on the relative direction (80 degrees, 30 degrees), and then calculate the rotation angle as: pitch adjustment -50 degrees, horizontal adjustment 10 degrees.
[0153] Optionally, the phone can also obtain multiple relative directions relative to itself based on multiple points at different locations in the satellite trajectory; then, it can find a reference point in the beam mapping relationship that is close to all of these relative directions. Afterward, the phone can calculate an average direction based on the average of the multiple relative directions, and obtain the rotation angle based on the angle difference between the average direction and the direction of the corresponding reference point. It should be noted that when the user rotates the phone according to the rotation angle, the phone's beam direction can cover the direction of the satellite trajectory within a preset service duration.
[0154] Optionally, the phone can also determine the rotation angle based on its current orientation and the satellite trajectory, so that the area of focus can be maximized after the phone rotates at the desired angle. For example, when the phone rotates -50 degrees around the X-axis and 10 degrees around the Y-axis, the area of focus can be a region with a pitch angle greater than 50 degrees and a horizontal angle greater than 10 degrees.
[0155] The phone can also determine the target satellite region based on its orientation after rotation. The target satellite region is the angular area covered by the phone's beam direction.
[0156] Due to the obstruction of the human body, it is difficult for a mobile phone to establish a connection with satellites in the direction of the person's location. For example, in Figure 5b, the newly added white area compared to Figure 5a represents the direction of the human body, which can also be called the human body obstruction area. When a user holds the mobile phone to connect to a satellite, the human body will affect the communication performance of the phone's satellite antenna.
[0157] When considering human body obstruction, in the above gain mapping relationship, there is no corresponding tuning state in the direction of the human body obstruction area (the tuning state is empty), or there is no direction corresponding to the human body obstruction area in the gain mapping relationship. In other words, if a human body blocks the mobile phone's satellite antenna, no tuning state can achieve satellite alignment.
[0158] Optionally, it can be assumed that during star observation, the user's usual action is: the user holds the phone with the screen facing them and the top of the phone pointing towards the sky. In this case, the area obstructed by the human body can be seen as the angular range shown in Figure 8. Other areas are not obstructed by the human body and can be referred to as the unobstructed area. Figure 8 uses the obstructed and unobstructed areas of the human body in a plane as examples. It can be understood that the actual obstructed area of the human body is an angular range in space and is not limited to a single plane.
[0159] Optionally, when considering human occlusion, the mobile phone can calculate the user's satellite orientation based on the phone's posture and the area of human occlusion. See Figure 9 for details. When the user faces due west to align with a satellite, the phone detects its own posture with the screen facing due east, thus confirming the user is facing due west. At this time, by analyzing the satellite trajectory of the accessed satellite 1 during the access period and the phone's position, the phone can determine that the user is between the phone and the satellite, interfering with satellite communication. Based on this, the phone can calculate the satellite orientation as A = 180 degrees, indicating the user has changed from facing due west to facing due east. When the user turns to face due east, the phone detects its own posture with the screen facing due west, thus confirming the user is facing due east. At this time, by analyzing the satellite trajectory of the accessed satellite 1 during the access period and the phone's position, the phone can determine that the user is no longer between the phone and the satellite, and no further body rotation is required.
[0160] Optionally, the mobile phone can calculate the angle that the phone needs to rotate around the Z-axis based on the satellite trajectory, available access time, and available satellite area calculated above. The angle of rotation of the phone around the Z-axis can also be regarded as the angle that the user needs to rotate, i.e., the satellite alignment posture. For example, if the user's position would block the signal in the direction of satellite 1 in the available satellite area, as shown in Figure 9, although satellite 1 is in the available satellite area, the signal between satellite 1 and the mobile phone is blocked because the user's body is facing due east. Therefore, when the user rotates their body according to the satellite alignment posture, that is, from facing due east to facing due west, the body will no longer block the signal between satellite 1 and the mobile phone.
[0161] The aforementioned rotation angle, target area, and target attitude can be collectively referred to as target parameters.
[0162] S605. Perform satellite alignment according to the satellite alignment parameters instructed by the user.
[0163] Optionally, the mobile phone can display one or more of the aforementioned rotation angle, target area, and target attitude on the satellite communication app interface to guide the user in completing the target alignment. For example, the phone can guide the user to hold the phone vertically, with the screen facing them, and turn it into a target attitude. Then, the phone displays the direction of the rotation angle relative to the phone's current orientation, guiding the user to rotate the phone according to the direction, thus completing the rotation of the desired angle. For example, after the user changes from facing west to facing due east, they can adjust the phone's pitch angle to -50 degrees and the horizontal angle to 10 degrees. Optionally, after the user rotates the phone, the target area can be displayed on the phone, along with the real-time relative direction between the phone and the target area, allowing the user to directly observe whether the phone is in the target area, avoiding excessive and unnecessary phone rotation and body turning. After the user adjusts their orientation and phone attitude according to the target parameters, the target area can cover the satellite trajectory within the satellite access duration.
[0164] Optionally, the phone can also determine whether to guide the user to rotate their body and the phone based on the satellite alignment parameters and the phone's orientation. If so, for example, if the desired rotation angle is specified, the user can be guided to rotate their body and the phone to complete satellite alignment. For example, if the satellite alignment orientation is 0 or close to 0, then body rotation is unnecessary; if the desired rotation angle is (0,0) or close to (0,0), then phone rotation is unnecessary. If not, the phone determines the target tuning state based on the current orientation and completes satellite alignment.
[0165] Specifically, based on its rotated posture, the phone determines the satellite's relative direction to the phone and invokes the target tuning state corresponding to that direction from the beam mapping relationship. In this target tuning state, the satellite antenna on the phone has a greater gain in the direction facing the satellite, enabling faster satellite alignment.
[0166] During satellite alignment, after determining the target tuning state, the mobile phone can invoke the target control command corresponding to that tuning state to perform beam switching. Specifically, the mobile phone can query the correspondence between multiple preset tuning states and multiple control commands, and select the target control command corresponding to the target tuning state. Then, the mobile phone, through the controller, sends the target control command to the corresponding tuning circuit to complete the beam switching.
[0167] Table 3 shows the correspondence between different tuning states and different control commands, which can be called the control command mapping relationship. As can be seen from Table 3, each control command includes multiple control bits. These multiple control bits can instruct the tuning circuit to switch to the corresponding tuning state. Specifically, the multiple control bits can control the on / off state of multiple single-pole single-throw switches connected in series with the matching circuit in the tuning circuit, thereby controlling whether the corresponding matching circuit acts on the satellite antenna, thus realizing the corresponding tuning state. Optionally, the number of control bits in the control command is not limited, as long as it can accurately switch the tuning state of the tuning circuit. Optionally, the control command can also use, for example, 1, 2, 3, or other forms such as A, B, C to represent different tuning states. The tuning circuit can be equipped with a decoder to parse the control command and obtain the corresponding multiple control bits to control the tuning state of the tuning circuit. This application embodiment does not limit the specific form of the control command, as long as it can accurately instruct the tuning circuit to switch the tuning state.
[0168] Table 3
[0169] For example, the tuning states in Table 3 include six types: Index0, Index1, Index2, Index3, Index4, and Index5, and the control command includes fifteen control bits. Optionally, the control command can be transmitted via MIPI signals or via GPIO signals; this embodiment of the application does not limit the transmission.
[0170] For example, continuing to refer to Figure 4a, in the control commands MipiCfg0_0 to MipiCfg0_14 corresponding to the tuning state Index0, MipiCfg0_14 represents the switching state of S1 in the tuning circuit, MipiCfg0_13 represents the switching state of S2 in the tuning circuit, MipiCfg0_12 represents the switching state of S3 in the tuning circuit, MipiCfg0_11 represents the switching state of S4 in the tuning circuit, MipiCfg0_10 represents the switching state of S5 in the tuning circuit, and so on, with MipiCfg0_5 representing the switching state of S10 in the tuning circuit. Therefore, when MipiCfg0_0 to MipiCfg0_14 are: 00000000000001, this control command can instruct S1 in the tuning circuit to be turned on, and S2 to S10 to be turned off.
[0171] For example, when the mobile phone determines the target tuning state to be Index 0, and MipiCfg0_0 to MipiCfg0_14 are 00000000000001, under the action of matching circuit 1, the satellite antenna is in the Index 0 tuning state, and the beam points closer to the satellite. In other words, compared to other tuning states (Index 1 to Index 5), the satellite antenna has the highest gain in the direction of the satellite under the tuning effect of Index 0. Therefore, the mobile phone can improve the strength of the transmitted and received signals by using the switched beam for satellite alignment, thereby improving the success rate and efficiency of satellite alignment.
[0172] If the satellite antenna includes two antennas, the control commands are used to indicate the state of the tuning circuits of these two antennas. For example, when the satellite communication circuit is as shown in Figure 4a, with antenna 1 corresponding to tuning circuit 1 and antenna 2 corresponding to tuning circuit 2, the control commands may include ten valid control bits (e.g., MipiCfg0_0 to MipiCfg0_9) to control S1 to S10 respectively.
[0173] S606. Determine if satellite synchronization was successful. If yes, proceed with the subsequent business process; otherwise, exit the implementation process if satellite synchronization times out.
[0174] Optionally, if the phone still fails to successfully pair with a satellite after switching beams, it may be due to severe external obstruction. If multiple pairing attempts fail, a pairing timeout occurs, possibly because the external environment is unsuitable for pairing. In this case, to avoid wasting resources, the phone can automatically exit the pairing process. Afterward, the phone can guide the user to pair again after a fixed interval, i.e., repeat the above pairing process. Optionally, the user can also actively perform the pairing operation to repeat pairing after a timeout; this embodiment does not limit this approach.
[0175] Alternatively, the mobile phone can also perform a fast satellite alignment process based on the beam mapping relationship directly when the user performs a satellite alignment operation, without needing to determine whether the beam switching function is turned on.
[0176] Optionally, the mobile phone can perform the satellite pairing process shown in Figure 6 to complete the satellite pairing, or it can perform other satellite pairing processes to complete the satellite pairing. This application embodiment does not limit the satellite pairing method of the mobile phone.
[0177] After successful satellite pairing, the phone can enter the second phase of service. In this phase, users can use the satellite for services such as making calls.
[0178] The beam switching process during the service phase can be seen in Figure 10:
[0179] S1001. Obtain the communication quality parameters of the current frame and record the relative direction of the satellite with respect to the mobile phone in the current frame.
[0180] After successfully pairing with the satellite, the mobile phone records the communication quality parameters of the current frame. Optionally, the current frame can be recorded as the second frame. Optionally, the communication quality parameters may include any one or more of the following: the packet loss rate of the transmitted signal's acknowledgment (ACK), the signal-to-noise ratio (SNR) of the received signal, the RSSI of the received signal, and the reference signal received quality (RSRP) of the received signal.
[0181] Optionally, in the case of time-division satellite communication, if the current frame is a transmit time slot, the recorded communication quality parameters are parameters related to the transmitted signal, such as the ACK of the transmitted signal, also known as TX ACK. If the current frame is a receive time slot, the communication quality parameters can be parameters related to the received signal, such as any one or more of SNR, RSSI, and RSRP.
[0182] The phone also acquires its pose and satellite trajectory for the current frame, and calculates the relative direction of the satellite with respect to the phone for the current frame, i.e., the relative direction mentioned earlier. This relative direction is the direction of the satellite relative to the phone, which can be represented by pitch and horizontal angles, as described above.
[0183] S1002. Obtain the pose of the mobile phone in the next frame.
[0184] When the next frame arrives, the phone obtains its own pose. Here, the next frame can be referred to as the first frame.
[0185] S1003. Based on the mobile phone's pose and satellite trajectory in the next frame, determine the relative orientation of the satellite with respect to the mobile phone in the next frame.
[0186] S1004. Determine whether the change in the relative direction of the satellite to the mobile phone exceeds a preset direction change threshold between the current frame and the next frame. If not, proceed to S1005A; if yes, proceed to S1005B.
[0187] The phone can compare the relative directions of two frames and determine whether the change in their relative directions (i.e., the amount of change in relative direction) exceeds a preset direction change threshold (Delta_Phase). Specifically, the preset direction change threshold can include a horizontal angle threshold and a pitch angle threshold. Taking a horizontal angle threshold and a pitch angle threshold of 10 degrees as an example, if the change in either the horizontal angle or the pitch angle exceeds 10 degrees, then the change in relative direction exceeds the preset direction change threshold; if neither the horizontal angle nor the pitch angle exceeds 10 degrees, then the change in relative direction does not exceed the preset direction change threshold.
[0188] If the change in relative direction does not exceed the preset direction change threshold, the mobile phone can execute S1005A; if the change in relative direction exceeds the preset direction change threshold, the mobile phone can continue to execute the subsequent beam switching process, such as executing S1005B.
[0189] S1005A: Determine whether the communication quality parameters of the second frame meet the preset communication quality requirements. If not, proceed to S1005B; if yes, proceed to S1006.
[0190] Optionally, when the communication quality parameter is TX ACK, the corresponding preset communication quality requirement can be greater than or equal to 10%. When the packet loss rate of TX ACK is greater than 10%, it can be determined that the communication quality parameter does not meet the preset communication quality requirement; when the packet loss rate of TX ACK is less than or equal to 10%, it can be determined that the communication quality parameter meets the preset communication quality requirement.
[0191] Optionally, when the communication quality parameter is SNR, the corresponding preset communication quality requirement can be greater than -1. When TX SNR is greater than or equal to -1, it can be determined that the communication quality parameter meets the preset communication quality requirement; when TX SNR is less than -1, it can be determined that the communication quality parameter does not meet the preset communication quality requirement.
[0192] Optionally, when the communication quality parameter is RSSI, the corresponding preset communication quality requirement can be greater than or equal to -89dBm. When RSSI is greater than or equal to -89dBm, it can be determined that the communication quality parameter meets the preset communication quality requirement; when RSSI is less than -89dBm, it can be determined that the communication quality parameter does not meet the preset communication quality requirement.
[0193] Optionally, when the communication quality parameter is RSRQ, the corresponding preset communication quality requirement can be greater than or equal to -3dBm. When RSRQ is greater than or equal to -3dBm, it can be determined that the communication quality parameter meets the preset communication quality requirement; when RSRQ is less than -3dBm, it can be determined that the communication quality parameter does not meet the preset communication quality requirement.
[0194] If the communication quality parameters of the second frame do not meet the preset communication quality requirements, then execute S1005B; if the communication quality parameters of the second frame meet the preset communication quality requirements, then execute S1006.
[0195] S1005B: Determine if the switching flag is 0. If yes, execute S1007A; otherwise, execute S1007B.
[0196] This switching flag indicates whether the communication quality after beam switching is better than the communication quality before beam switching. Communication quality can be measured using communication quality parameters: for example, if the packet loss rate of TX ACK increases, it indicates that the communication quality has deteriorated; if the packet loss rate of TX ACK decreases, it indicates that the communication quality has improved; if the SNR increases, it indicates that the communication quality has improved; if the SNR decreases, it indicates that the communication quality has deteriorated; if the RSSI increases, it indicates that the communication quality has improved; if the RSSI decreases, it indicates that the communication quality has deteriorated; if the RSRQ increases, it indicates that the communication quality has improved; if the RSRQ decreases, it indicates that the communication quality has deteriorated.
[0197] Optionally, the switching flag can be the Bypass flag. A Bypass value of 1 indicates that the communication quality after beam switching is worse than the communication quality before beam switching; a Bypass value of 0 indicates that the communication quality after beam switching is better than the communication quality before beam switching.
[0198] The mobile phone can read the Bypass value to determine whether the communication quality after beam switching is better than the communication quality before beam switching. If Bypass is 0, the mobile phone determines that the communication quality after beam switching is better than the signal quality before beam switching, that is, the communication quality in the first frame is better than the second frame, and beam switching can be performed, i.e., step S1007A is executed; if Bypass is 1, the mobile phone determines that the communication quality after beam switching is worse than the communication quality before beam switching, and beam switching is not necessary for the time being, i.e., step S1007B is executed.
[0199] S1006. Determine whether the preset detection period has been reached when the first frame is captured. If yes, execute S1005B; otherwise, execute S1009.
[0200] If the communication quality parameters of the mobile phone in the second frame do not meet the preset communication quality requirements, the phone continues to determine whether the preset detection period has been reached in the first frame. If the preset detection period has not been reached, in order to avoid frequent beam switching, the subsequent process of beam switching can be skipped, and the current tuning state can be kept unchanged until the end of the current frame, that is, S1014 is executed.
[0201] Optionally, the preset detection period can be 8 seconds, 10 seconds, or 12 seconds, etc., and this application embodiment does not limit this.
[0202] S1007A: Based on the relative direction of the satellite to the mobile phone in the next frame, determine the target reference point and the target tuning state corresponding to the target reference point from the beam mapping relationship. Then, execute S1010.
[0203] Based on the relative direction of the satellite to the phone in the first frame, the mobile phone can search in the beam mapping relationship to determine the reference point whose angle is closest to the relative direction, and use it as the target reference point. Then, based on the beam mapping relationship, the mobile phone determines the tuning state corresponding to the target reference point as the target tuning state.
[0204] For example, in the first frame, the satellite's relative direction to the phone is (11°, 22°). As shown in Table 2, the beam mapping relationship shows that among all directions, the direction (10°, 20°) has the smallest angular difference with the relative direction (11°, 22°). Therefore, the reference point corresponding to the satellite's direction (11°, 22°) on the phone is the point with the direction (10°, 20°). The phone can then determine that the tuning state Index2 corresponding to the direction (10°, 20°) is the target tuning state.
[0205] S1007B, Set the switching flag to 0. Then execute S1008.
[0206] When Bypass is not 0, for example, when Bypass is 1, it means that the phone has previously compared the communication quality after beam switching to a worse quality than before beam switching. However, in the next frame, the communication quality may not be worse than the previous frame. Therefore, Bypass is set to 0 to facilitate the subsequent re-determination of the required tuning state.
[0207] S1008, revert to the tuning state of the previous frame. Then, execute S1013.
[0208] After determining that the communication quality after beam switching is worse than the communication quality before beam switching, the mobile phone sets the switching flag to 0. It can also use the tuning state used by the mobile phone in the previous frame (e.g., the current frame in S1001) as the target tuning state, and send corresponding control commands according to the tuning state in the previous frame to configure the tuning circuit, that is, control the satellite antenna to fall back to the tuning state of the previous frame.
[0209] S1009. Maintain the current tuning state until S1016.
[0210] When the phone determines whether the preset detection period has been reached when the first frame is completed, it can determine that the target tuning state is the current tuning state, that is, to keep the current tuning state unchanged until the first frame ends.
[0211] S1010. Determine the target control command corresponding to the target tuning state based on the mapping relationship between the target tuning state and the control command.
[0212] The mobile phone can query the control command mapping relationship and determine the target control command (i.e., the first control command) corresponding to the target tuning state (i.e., the first tuning state).
[0213] S1011, Issue target control instructions.
[0214] Once the mobile phone determines the target control command, it can send the target control command to the tuning circuit to control the switching of the satellite antenna beam.
[0215] Optionally, when satellite communication is in time-division communication mode, the mobile phone can send target control commands during the switching of satellite communication transmit and receive time slots. For example, if the current frame is in the previous transmit time slot, the timing for sending the target control command can be the next transmit time slot, and the corresponding communication quality parameter is the parameter corresponding to the transmitted signal, such as the packet loss rate of TX ACK. If the current frame is in the previous receive time slot, the timing for sending the target control command can be the next receive time slot, and the corresponding communication quality parameter can be the parameter corresponding to the received signal, such as any one or more of RSSI, RSRQ, and SNR.
[0216] S1012, Obtain communication quality parameters and the mobile phone's pose.
[0217] At this point, the phone is still in the first frame. After the phone sends the target control command, the satellite antenna is in target tuning mode. The phone can then acquire and record the communication quality parameters of the first frame.
[0218] Optionally, the phone can also acquire and record the pose at this time to determine the amount of change in relative direction in subsequent frames.
[0219] S1013. Determine whether the current communication quality is better than the communication quality of the previous frame. If not, proceed to S1014. If yes, proceed to S1015.
[0220] The mobile phone can determine whether the communication quality of the first frame is better than that of the previous frame (i.e., the second frame) based on the communication quality parameters of the first frame recorded. For the specific determination method, please refer to the relevant description in step S1005B, which will not be repeated here.
[0221] S1014. Set the switching flag to 1. Then, execute S1015.
[0222] When the communication quality of the first frame is worse than that of the previous frame, the phone can set the Bypass flag to 1 and record the effect after this beam switching. Afterward, the phone can maintain the current tuning state until the current frame ends.
[0223] If the switching flag bit recorded by the mobile phone is 1, when the beam switching process is executed in a loop, for example, if the state that the communication quality will be degraded after the beam switching is obtained in a subsequent frame, then when S1005B is executed, it can switch back to the previous tuning state with better communication quality, thereby avoiding the situation where the communication quality degrades after beam switching under some interference or obstruction.
[0224] S1015. Maintain the current tuning state until the end of the current frame.
[0225] When the communication quality of the first frame is better than that of the previous frame, the phone can maintain the current tuning state until the current frame ends.
[0226] Optionally, the mobile phone can also continue to acquire the pose and communication quality parameters at the third frame, and combine them with the first frame to repeat the above steps S1004 and subsequent steps during the satellite communication service phase, so as to achieve dynamic adjustment of the beam direction.
[0227] S1016. Determine whether to exit satellite communication. If yes, proceed to S1017; otherwise, return to S1002.
[0228] The phone can periodically check whether to exit satellite communication. The phone can determine this by checking if a satellite call has ended, by checking if the user has actively ended the call, or by checking if the user has actively closed the satellite communication app.
[0229] If the phone determines that the satellite call is still ongoing, meaning it is still in the service phase, it can return to repeat steps S1002 and subsequent steps to achieve adaptive beam switching. This ensures that during a satellite call, the phone's antenna beam direction remains pointed towards the satellite, improving satellite communication quality and thus enhancing the user experience.
[0230] S1017, Exit satellite communication.
[0231] When a mobile phone finishes its satellite service, it can exit satellite communication, for example, by disconnecting the communication connection between the mobile phone and the satellite.
[0232] Alternatively, this method can be applied to scenarios involving communication with low-Earth orbit satellites.
[0233] Figure 11 is a schematic flowchart of a tuning circuit control method provided in an embodiment of this application. This method is applied to an electronic device, which includes a satellite antenna and a tuning circuit. As shown in Figure 11, the method includes:
[0234] S1101. Obtain the relative direction of the first frame. The relative direction of the first frame is the direction of the satellite relative to the electronic device in the first frame.
[0235] S1102. Determine the first control command based on the relative direction of the first frame and the preset mapping relationship. The preset mapping relationship includes at least the correspondence between the first relative direction and the first control command, and the relative direction of the first frame matches the first relative direction.
[0236] S1103. The first control command is sent to the tuning circuit, and the tuning circuit tunes the satellite antenna to the first tuning state under the instruction of the first control command.
[0237] Optionally, the electronic device can be a terminal device such as a mobile phone with satellite communication capabilities. The electronic device is equipped with a satellite antenna, and there can be one or more satellite antennas. The satellite antenna is equipped with a tuning circuit. This tuning circuit can have multiple tuning states. The beam direction of the satellite antenna differs in different tuning states.
[0238] The aforementioned preset mapping relationship may include a correspondence between a first relative direction and a first control command, and may also include correspondences between other directions and other control commands. Optionally, the preset mapping relationship may include a one-to-one correspondence between multiple different relative directions and multiple different control commands. Different control commands can indicate that the tuning circuit is in different tuning states. The relative direction in the aforementioned preset mapping relationship can be the direction of a point in space, or it can be a range of directions in space.
[0239] Specifically, the electronic device can acquire its current pose using its own sensors. It can also determine the satellite's orientation relative to the device at the current moment based on the ephemeris and the current time, denoted as the first frame relative orientation. This first moment can be the time of the first frame. Next, the electronic device can query a preset mapping relationship to determine the first relative orientation that matches the first frame relative orientation, and then filter out the first control command corresponding to that first relative orientation.
[0240] It should be noted that when the first relative direction is the direction of a point in space, matching the first frame relative direction can mean that the first frame relative direction and the first relative direction are the same or close. When the first frame relative direction and the first relative direction are close, it means that the angle between the first frame relative direction and the first relative direction is smaller than the angle between the first frame relative direction and other directions. When the first relative direction is a range of directions in space, matching the first frame relative direction and the first relative direction can mean that the first frame relative direction is within the range of directions represented by the first relative direction. After the electronic device queries the preset mapping relationship and obtains the first control command, it can send the first control command to the tuning circuit. Under the instruction of the first control command, the tuning circuit can control the corresponding switch to switch, so that the corresponding matching circuit acts on the satellite antenna, thereby achieving the first tuning state.
[0241] It should be noted that when there are multiple satellite antennas, and each satellite antenna has a corresponding tuning circuit, the first control command can instruct the corresponding switches in these multiple tuning circuits to switch, so that the corresponding matching circuit acts on the corresponding satellite antenna. When there are multiple satellite antennas, some satellite antennas may have corresponding tuning circuits, while others may not, and remain in a fixed tuning state.
[0242] When there are multiple satellite antennas, the first tuning state described above represents the common tuning state of the multiple satellite antennas under the action of their respective tuning circuits.
[0243] In this implementation, the electronic device queries a preset mapping relationship to obtain a first control command that matches the relative direction of the current first frame. Following this command, the device instructs the tuning circuit to tune the satellite antenna, ensuring that the antenna beam is oriented as close as possible to the relative direction of the first frame containing the satellite, thus improving communication quality. This method eliminates the need for antenna redesign and retuning, making it easy to implement. Furthermore, it adaptively controls the tuning state based on the relative direction, ensuring that even if the relative direction changes during satellite communication, the beam direction can be switched promptly to point as close to the satellite as possible, guaranteeing communication quality.
[0244] Optionally, the preset mapping relationship also includes the correspondence between the second relative direction and the second control command. The second control command is used to indicate that the satellite antenna is in the second tuning state. In the first tuning state, the gain of the satellite antenna in the relative direction of the first frame is greater than the gain of the satellite antenna in the relative direction of the first frame in the second tuning state.
[0245] The aforementioned preset mapping relationship also includes the correspondence between the second relative direction and the second control command. That is, when the satellite is near or within the range of the second relative direction, the electronic equipment can obtain the second control command by querying the preset mapping relationship and send it to the tuning circuit. Under the instruction of the second control command, the tuning circuit switches the tuning state, causing the satellite antenna to be in the second tuning state.
[0246] It is understandable that when the satellite is in the first frame relative direction, if the electronic device sends a first control command to the tuning circuit, causing the satellite antenna to be in the first tuning state, the gain of the satellite antenna in the first frame relative direction is greater than the gain of the satellite antenna in the first frame relative direction when the satellite antenna is in the second tuning state.
[0247] It can be understood that when a satellite is in a certain relative direction, and the corresponding control command found in the above-mentioned preset mapping relationship instructs the satellite antenna to be in the corresponding tuning state, the gain of the satellite antenna in this relative direction is greater than the gain of the satellite antenna in this relative direction when it is in other tuning states under other control command instructions.
[0248] This method adaptively controls the tuning state based on the relative direction, ensuring that even if the relative direction changes during satellite communication, the beam pointing can be switched in a timely manner to point as close to the satellite as possible. This ensures that the satellite antenna always has maximum gain in the direction of the satellite, thus maximizing communication quality.
[0249] The foregoing has detailed examples of the methods provided in this application. It is understood that the corresponding apparatus, in order to achieve the above functions, includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should readily recognize that, based on the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0250] This application can divide the tuning circuit control device into functional modules based on the above method example. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one module. The integrated module can be implemented in hardware or as a software functional module. It should be noted that the module division in this application is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.
[0251] Figure 12 shows a schematic diagram of a tuning circuit control device provided in this application. The device 1200 includes:
[0252] The acquisition module 1201 is used to acquire the relative direction of the first frame, which is the direction of the satellite relative to the electronic device in the first frame.
[0253] The determining module 1202 is used to determine the first control command based on the relative direction of the first frame and the preset mapping relationship. The preset mapping relationship includes at least the correspondence between the first relative direction and the first control command, and the relative direction of the first frame matches the first relative direction.
[0254] The control module 1203 is used to send a first control command to the tuning circuit, and the tuning circuit tunes the satellite antenna to a first tuning state under the instruction of the first control command.
[0255] The specific manner in which the device 1200 executes the tuning circuit control method and the beneficial effects thereof can be found in the relevant descriptions in the method embodiments, and will not be repeated here.
[0256] This application also provides an electronic device including the processor described above. The electronic device provided in this embodiment can be a terminal device used to execute the tuning circuit control method described above. When using integrated units, the terminal device may include a processing module, a storage module, and a communication module. The processing module can be used to control and manage the actions of the terminal device; for example, it can be used to support the terminal device in executing the steps performed by the display unit, detection unit, and processing unit. The storage module can be used to support the terminal device in executing stored program code and data. The communication module can be used to support communication between the terminal device and other devices.
[0257] The processing module can be a processor or a controller. It can implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor can also be a combination of functions that implement computing capabilities, such as a combination of one or more microprocessors, a digital signal processor (DSP), and a microprocessor, etc. The storage module can be a memory. The communication module can specifically be a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, or other devices that interact with other terminal devices.
[0258] In one embodiment, when the processing module is a processor and the storage module is a memory, the terminal device involved in this embodiment can be a device with the following structure.
[0259] For example, a terminal device may include a processor, an external memory interface, internal memory, a universal serial bus (USB) interface, a charging management module, a power management module, a battery, one or more antennas, a mobile communication module, a wireless communication module, an audio module, a speaker, a receiver, a microphone, a headphone jack, a sensor module, buttons, a motor, an indicator, a camera, a display screen, and a subscriber identification module (SIM) card interface, etc. The sensor module may include pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, accelerometers, proximity sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, bone conduction sensors, etc.
[0260] It is understood that the structures described in the embodiments of this application do not constitute a specific limitation on the terminal device. In other embodiments of this application, the terminal device 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.
[0261] A processor may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.
[0262] The controller can serve as the nerve center and command center of the terminal device. Based on the instruction opcode and timing signals, the controller generates operation control signals to control the fetching and execution of instructions.
[0263] The processor may also include memory for storing instructions and data. In some embodiments, the memory in the processor is a cache memory. This memory can store instructions or data that the processor has just used or that are used repeatedly. If the processor needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces processor waiting time, and thus improves system efficiency.
[0264] In some embodiments, the processor may include one or more interfaces. Interfaces may include inter-integrated circuit (I2C) interfaces, inter-integrated circuit sound (I2S) interfaces, pulse code modulation (PCM) interfaces, universal asynchronous receiver / transmitter (UART) interfaces, mobile industry processor interfaces (MIPI), general-purpose input / output (GPIO) interfaces, subscriber identity module (SIM) interfaces, and / or universal serial bus (USB) interfaces, etc.
[0265] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the terminal device. In other embodiments of this application, the terminal device may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0266] The wireless communication function of a terminal device can be implemented through one or more antennas, a mobile communication module, a wireless communication module, a modem processor, and a baseband processor.
[0267] Antennas are used to transmit and receive electromagnetic wave signals. The structure and number of antennas are merely one example. Each antenna in a terminal device can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, the first antenna can be reused 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.
[0268] A mobile communication module can provide solutions for wireless communication applications including 2G / 3G / 4G / 5G on terminal devices. The mobile communication module may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module can receive electromagnetic waves via a first antenna, filter and amplify the received electromagnetic waves, and transmit them to a modem processor for demodulation. The mobile communication module can also amplify the signal modulated by the modem processor and radiate it as electromagnetic waves via the first antenna. In some embodiments, at least some functional modules of the mobile communication module may be housed in the processor. In some embodiments, at least some functional modules of the mobile communication module and at least some modules of the processor may be housed in the same device.
[0269] A modem processor may include a modulator and a demodulator. The modulator modulates a low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates a received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to a baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to an application processor. The application processor outputs sound signals through an audio device (not limited to a speaker, receiver, etc.) or displays images or videos on a display screen. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor and housed within the same device as the mobile communication module or other functional modules.
[0270] Wireless communication modules can provide solutions for wireless communication applications on terminal devices, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), satellite communication, frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. A wireless communication module can be one or more devices integrating at least one communication processing module. The wireless communication module receives electromagnetic waves via a second antenna, modulates and filters the electromagnetic wave signal, and sends the processed signal to the processor. The wireless communication module can also receive signals to be transmitted from the processor, modulate and amplify them, and then transmit them as electromagnetic waves via a second antenna.
[0271] In some embodiments, the first antenna of the terminal device is coupled to the mobile communication module, and the first antenna is coupled to the wireless communication module, enabling the terminal device to communicate with the network 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-CDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS may include Global Positioning System (GPS), Global Navigation Satellite System (GLONASS), BeiDou Navigation Satellite System (BDS), Quasi-Zenith Satellite System (QZSS), and / or Satellite Based Augmentation Systems (SBAS).
[0272] Terminal devices implement display functions through GPUs, displays, and application processors. A GPU is a microprocessor for image processing, connecting the display and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. A processor may include one or more GPUs, which execute program instructions to generate or modify display information.
[0273] The display screen is used to display images, videos, etc. The display screen includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the terminal device may include one or N displays, where N is a positive integer greater than 1.
[0274] A pressure sensor is used to sense pressure signals and convert them into electrical signals. In some embodiments, the pressure sensor can be located on a display screen. There are many types of pressure sensors, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may consist of at least two parallel plates with conductive material. When force is applied to the pressure sensor, the capacitance between the electrodes changes. The terminal device determines the pressure intensity based on the change in capacitance. When a touch operation is applied to the display screen, the terminal device detects the intensity of the touch operation based on the pressure sensor. The terminal device can also calculate the touch position based on the detection signal from the pressure sensor. In some embodiments, touch operations applied to the same touch position but with different intensities can correspond to different operation commands. For example, when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS message is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS message is executed.
[0275] A gyroscope sensor can be used to determine the motion posture of a terminal device. In some embodiments, the gyroscope sensor can determine the angular velocity of the terminal device around three axes (i.e., the x, y, and z axes). A gyroscope sensor can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor detects the angle of the terminal device's shake, calculates the distance the lens module needs to compensate based on the angle, and allows the lens to counteract the shake by moving in the opposite direction, thus achieving image stabilization. Gyroscope sensors can also be used in navigation and motion-sensing gaming scenarios.
[0276] A barometric pressure sensor is used to measure air pressure. In some embodiments, the terminal device calculates altitude using the air pressure value measured by the barometric pressure sensor to assist in positioning and navigation.
[0277] The magnetic sensor includes a Hall effect sensor. The terminal device can use the magnetic sensor to detect the opening and closing of the flip cover. In some embodiments, when the terminal device is a flip phone, it can detect the opening and closing of the flip cover using the magnetic sensor. Based on the detected opening and closing state of the cover or the flip cover, features such as automatic unlocking of the flip cover can be configured.
[0278] Accelerometers can detect the magnitude of acceleration in various directions (typically three axes) of a terminal device. When the terminal device is stationary, they can detect the magnitude and direction of gravity. They can also be used to identify the attitude of the terminal device, and are applied to applications such as screen orientation switching and pedometers.
[0279] A distance sensor is used to measure distance. The terminal device can measure distance using infrared or laser. In some embodiments, during a shooting scene, the terminal device can utilize the distance sensor to measure distance for rapid focusing.
[0280] A touch sensor, also known as a "touch panel," is located on a display screen. The touch sensor and the display screen together form a touchscreen, also called a "touch screen." The touch sensor detects touch operations applied to or near it. It then transmits 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 the display screen. In some embodiments, the touch sensor may also be located on the surface of the terminal device, in a different position than the display screen.
[0281] The software system of a terminal device can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application uses the layered architecture Android system as an example to illustrate the software structure of the terminal device.
[0282] The software architecture of a terminal device is a layered architecture. This layered architecture divides the 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. The application layer can include a series of application packages.
[0283] The application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, SMS, and satellite calling.
[0284] 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.
[0285] The application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
[0286] 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.
[0287] 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.
[0288] 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.
[0289] A phone manager is used to provide communication functions for terminal devices. For example, it manages call status (including connection and disconnection).
[0290] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.
[0291] The notification manager allows applications to display notification information in the status bar. It can be used to convey informational messages and can disappear automatically after a short time without user interaction.
[0292] The Android runtime consists of core libraries and a virtual machine. The Android runtime is responsible for scheduling and managing the Android system.
[0293] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.
[0294] 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.
[0295] 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.
[0296] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.
[0297] 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.
[0298] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0299] A 2D graphics engine is a graphics engine for 2D drawing.
[0300] 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.
[0301] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to perform the tuning circuit control method described in any of the above embodiments.
[0302] This application also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned related steps to implement the tuning circuit control method in the above embodiments.
[0303] In this embodiment, the electronic device, computer-readable storage medium, computer program product or chip are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding methods provided above, and will not be repeated here.
[0304] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection between devices or units. The replaced units may or may not be physically separate. The component shown as a unit may be one physical unit or multiple physical units, that is, it may be located in one place or distributed in multiple different places. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0305] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0306] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0307] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method of controlling a tuning circuit, characterized by, Applied to an electronic device, the electronic device including a satellite antenna and a tuning circuit, the method includes: Obtain the relative direction of the first frame, which is the direction of the satellite relative to the electronic device in the first frame; A first control command is determined based on the relative direction of the first frame and a preset mapping relationship. The preset mapping relationship includes at least the correspondence between the first relative direction and the first control command, and the relative direction of the first frame matches the first relative direction. The first control command is sent to the tuning circuit, and the tuning circuit tunes the satellite antenna to a first tuning state under the instruction of the first control command.
2. The method of claim 1, wherein, The preset mapping relationship also includes the correspondence between the second relative direction and the second control command, wherein the second control command is used to indicate that the satellite antenna is in the second tuning state; In the first tuning state, the gain of the satellite antenna in the relative direction of the first frame is greater than the gain of the satellite antenna in the relative direction of the first frame in the second tuning state.
3. The method of claim 2, wherein, The step of determining the first control command based on the relative direction of the first frame and the preset mapping relationship includes: The relative direction change is obtained, which is the change in the relative direction of the first frame and the relative direction of the second frame. The relative direction of the second frame is the direction of the satellite relative to the electronic device in the second frame. The second frame is the frame before the first frame. In the second frame, the tuning circuit tunes the satellite antenna to a third tuning state under the instruction of a third control command. When the third control command and the second control command are the same, the third tuning state and the second tuning state are the same. When the third control command and the second control command are different, the third tuning state and the second tuning state are different. Determine whether the relative direction change is greater than or equal to a preset direction change threshold; If so, the first control command is determined based on the relative direction of the first frame and the preset mapping relationship.
4. The method of claim 3, wherein, The method further includes: If the relative direction change is less than the preset direction change threshold, no control command is sent to the tuning circuit. In the first frame, the tuning circuit tunes the satellite antenna to the third tuning state under the instruction of the third control command.
5. The method of claim 4, wherein, The statement that control commands are not sent to the tuning circuit includes: Determine whether the communication quality parameters in the second frame meet the preset communication quality requirements; If not, no control command will be sent to the tuning circuit if the preset adjustment period has not been reached in the first frame.
6. The method of claim 5, wherein, The method further includes: When the first frame reaches the preset adjustment period, the first control command is determined according to the relative direction of the first frame and the preset mapping relationship.
7. The method according to claim 4 or 5, characterized in that, The method further includes: If the communication quality parameters in the second frame meet the preset communication quality requirements, then the first control command is determined based on the relative direction of the first frame and the preset mapping relationship.
8. The method according to claim 6 or 7, characterized in that, The step of determining the first control command based on the relative direction of the first frame and the preset mapping relationship includes: Determine whether the value of the first flag bit is the first value, where the first value is used to characterize that the communication quality in the first frame is higher than that in the second frame; If so, the first control command is determined based on the relative direction of the first frame and the preset mapping relationship.
9. The method of claim 8, wherein, The method further includes: If the value of the first flag bit is not the first value, the third control command is sent to the tuning circuit, and the tuning circuit tunes the satellite antenna to the third tuning state under the instruction of the third control command.
10. The method of claim 9, wherein, The method further includes: Update the value of the first flag bit to the first value.
11. The method according to any one of claims 8 to 10, characterized in that, The step of determining the first control command based on the relative direction of the first frame and the preset mapping relationship includes: A first tuning state is determined based on the relative direction of the first frame and a preset beam mapping relationship, wherein the preset beam mapping relationship includes at least the correspondence between the first relative direction and the first tuning state. The first control command is determined based on the first tuning state and the preset command mapping relationship, wherein the preset command mapping relationship includes at least the correspondence between the first tuning state and the first control command.
12. The method according to any one of claims 9 to 11, characterized in that, The method further includes: Obtain the communication quality parameters for the third frame, which is the frame following the first frame; If the communication quality parameters in the third frame indicate that the communication quality in the third frame is higher than that in the first frame, then the satellite antenna remains in the first tuning state.
13. The method of claim 12, wherein, The method further includes: If the communication quality parameters in the third frame indicate that the communication quality in the third frame is not higher than that in the first frame, then the value of the first flag bit is updated to the second value, and the satellite antenna is kept in the first tuning state until the third frame ends. When the value of the first flag bit is determined to be the second value in the fourth frame, the first control command is sent to the tuning circuit again.
14. The method according to any one of claims 1 to 13, characterized in that, Before obtaining the relative direction of the first frame, the process also includes: In response to a user's satellite tracking operation, the current pose, current time, ephemeris, and preset service duration of the electronic device are obtained, wherein the current pose includes the current position and current attitude. Based on the current location, the current time, the ephemeris, and the preset service duration, determine the satellite trajectories of the accessible satellites and the access time period for each accessible satellite; Based on the satellite trajectory, the access period, the gain mapping relationship, and the current attitude, the satellite alignment parameters are determined. The satellite alignment parameters include: the angle to be rotated and / or the satellite alignment area. The gain mapping relationship includes the correspondence between multiple relative directions and multiple gains. The first gain corresponds to the fourth relative direction. The first gain is any one of the multiple gains. The fourth relative direction is the angle corresponding to the first gain among the multiple relative directions. The first gain in the fourth relative direction is greater than the other gains in the fourth relative direction. The states of the tuning circuits corresponding to the first gain and the other gains are different. Output the star alignment parameters.
15. The method of claim 14, wherein, If the gain mapping relationship includes the relative direction corresponding to the human body occlusion area, then the star-alignment parameters also include: star-alignment attitude.
16. The method of claim 15, wherein, The method further includes: Obtain the adjusted posture of the electronic device; Under the adjusted attitude, the third frame relative direction is obtained, which is the direction of the satellite relative to the electronic device under the adjusted attitude of the electronic device; Based on the relative direction of the third frame and the preset mapping relationship, a fourth control command is determined. The preset mapping relationship also includes the correspondence between the third relative direction and the fourth control command, and the relative direction of the third frame matches the third relative direction. The fourth control command is sent to the tuning circuit, and the tuning circuit tunes the satellite antenna to the fourth tuning state under the instruction of the fourth control command. When the satellite antenna is in the fourth tuning state, satellite alignment is performed.
17. The method of claim 16, wherein, The satellite alignment parameters include: the rotation angle to be rotated, the satellite alignment area, and the satellite alignment attitude. Determining the satellite alignment parameters based on the satellite trajectory, the access period, the gain mapping relationship, and the current attitude includes: Based on the current pose and the gain mapping relationship, determine the rotation angle and the star-alignable region; The satellite alignment attitude is determined based on the satellite trajectory, the access period, and the satellite alignment area.
18. The method according to claim 16 or 17, characterized in that, Before obtaining the current pose, current time, ephemeris, and preset service duration of the electronic device in response to the user's satellite alignment operation, the method further includes: Determine if the beam switching function is enabled; If so, then obtain the current pose, the current time, the ephemeris, and the preset service duration.
19. An electronic device, comprising: include: Processor, memory, and interface; The processor, the memory, and the interface cooperate with each other to enable the electronic device to perform the method as described in any one of claims 1 to 18.
20. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, causes the processor to perform the method of any one of claims 1 to 18.