[go: up one dir, main page]

CN114995526B - Method and electronic equipment for guiding and adjusting satellite antenna pointing direction - Google Patents

Method and electronic equipment for guiding and adjusting satellite antenna pointing direction Download PDF

Info

Publication number
CN114995526B
CN114995526B CN202210922681.1A CN202210922681A CN114995526B CN 114995526 B CN114995526 B CN 114995526B CN 202210922681 A CN202210922681 A CN 202210922681A CN 114995526 B CN114995526 B CN 114995526B
Authority
CN
China
Prior art keywords
axis
coordinate
satellite
antenna
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210922681.1A
Other languages
Chinese (zh)
Other versions
CN114995526A (en
Inventor
刘抒民
江成
王国龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210922681.1A priority Critical patent/CN114995526B/en
Publication of CN114995526A publication Critical patent/CN114995526A/en
Application granted granted Critical
Publication of CN114995526B publication Critical patent/CN114995526B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D3/00Control of position or direction
    • G05D3/12Control of position or direction using feedback
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01QANTENNAS, i.e. RADIO AERIALS
    • H01Q1/00Details of, or arrangements associated with, antennas
    • H01Q1/12Supports; Mounting means
    • H01Q1/22Supports; Mounting means by structural association with other equipment or articles
    • H01Q1/24Supports; Mounting means by structural association with other equipment or articles with receiving set
    • H01Q1/241Supports; Mounting means by structural association with other equipment or articles with receiving set used in mobile communications, e.g. GSM
    • H01Q1/242Supports; Mounting means by structural association with other equipment or articles with receiving set used in mobile communications, e.g. GSM specially adapted for hand-held use

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Variable-Direction Aerials And Aerial Arrays (AREA)

Abstract

本申请实施例提供一种引导调整卫星天线指向方向的方法及电子设备,所述电子设备包括卫星天线以及显示屏,所述方法包括:获取卫星天线的天线最佳方向,其中,天线最佳方向为卫星天线指向方向;获取用于与卫星天线进行通信的卫星相对于电子设备的卫星方向;以及根据天线最佳方向控制在显示屏上显示第一指示标记,以及根据卫星方向控制在显示屏上显示第二指示标记,其中,第一指示标记用于至少指示所述天线最佳方向,第二指示标记用于指示所述卫星方向,以通过第一、第二指示标记引导对卫星天线指向方向进行调整。从而,通过显示第一指示标记以及第二指示标识,可以直观地提示天线最佳方向与卫星方向的角度偏差,引导用户进行调整。

Figure 202210922681

An embodiment of the present application provides a method for guiding and adjusting the pointing direction of a satellite antenna and an electronic device, the electronic device includes a satellite antenna and a display screen, and the method includes: obtaining the optimal direction of the satellite antenna, wherein the optimal direction of the antenna Pointing the direction of the satellite antenna; obtaining the satellite direction of the satellite used to communicate with the satellite antenna relative to the electronic device; and controlling the display of the first indicator mark on the display screen according to the optimal direction of the antenna, and controlling the display on the display screen according to the direction of the satellite Displaying a second indicator, wherein the first indicator is used to at least indicate the optimal direction of the antenna, and the second indicator is used to indicate the direction of the satellite, so as to guide the satellite antenna to the direction of the satellite antenna through the first and second indicators Make adjustments. Therefore, by displaying the first indicator mark and the second indicator mark, the angular deviation between the optimal direction of the antenna and the direction of the satellite can be intuitively prompted to guide the user to make adjustments.

Figure 202210922681

Description

引导调整卫星天线指向方向的方法及电子设备Method and electronic device for guiding and adjusting satellite antenna pointing direction

技术领域technical field

本申请涉及通信技术领域,尤其涉及一种引导调整卫星天线指向方向的方法及电子设备。The present application relates to the field of communication technology, and in particular to a method for guiding and adjusting the pointing direction of a satellite antenna and electronic equipment.

背景技术Background technique

目前,为了满足不同的通信需求,一些电子设备配备了卫星天线,通过卫星天线与卫星建立连接实现卫星通信。通常情况下,电子设备中的天线相对于电子设备来说具有特定的天线最佳方向,也即增益最大方向,卫星天线也同样具有特定的天线最佳方向,而对于卫星通信来说,为了使得卫星天线实际的增益最大,需要使得所述天线最佳方向指向或者大致指向卫星所在的位置,此时,卫星通信才能真正实现最大或较大的增益,才能使得卫星通信的通信质量满足要求。然而,如何通过有效的方式确保或者引导用户将所述天线最佳方向指向或者大致指向卫星所在的位置,成为了需要解决的问题。At present, in order to meet different communication needs, some electronic devices are equipped with satellite antennas, through which satellite antennas and satellites are connected to realize satellite communication. Usually, the antenna in the electronic device has a specific optimal direction of the antenna relative to the electronic device, that is, the direction of the maximum gain, and the satellite antenna also has a specific optimal direction of the antenna. For satellite communication, in order to make The actual gain of the satellite antenna is the largest, and the optimal direction of the antenna needs to point or roughly point to the position of the satellite. At this time, the satellite communication can truly achieve the maximum or larger gain, so that the communication quality of the satellite communication can meet the requirements. However, how to effectively ensure or guide the user to point the antenna in the best direction or roughly point to the position of the satellite has become a problem to be solved.

发明内容Contents of the invention

本申请提供一种引导调整卫星天线指向方向的方法及电子设备,可有效地引导用户去调整卫星天线指向方向,以将所述天线最佳方向指向或者大致指向卫星所在的位置。The present application provides a method and electronic equipment for guiding and adjusting the pointing direction of a satellite antenna, which can effectively guide users to adjust the pointing direction of the satellite antenna so that the optimal direction of the antenna points or roughly points to the position of the satellite.

第一方面,提供一种引导调整卫星天线指向方向的方法,应用于一电子设备中,所述电子设备包括卫星天线以及显示屏,所述方法包括:获取所述卫星天线的天线最佳方向,其中,所述天线最佳方向为卫星天线指向方向;获取用于与所述卫星天线进行通信的卫星相对于所述电子设备的卫星方向;以及根据所述天线最佳方向控制在所述显示屏上显示第一指示标记,以及根据所述卫星方向控制在所述显示屏上显示第二指示标记,其中,所述第一指示标记用于至少指示所述天线最佳方向,所述第二指示标记用于指示所述卫星方向,以通过所述第一指示标记以及第二指示标记引导对卫星天线指向方向进行调整。从而,通过在显示屏上显示用于至少指示所述天线最佳方向的所述第一指示标记以及用于指示所述卫星方向的第二指示标识,可以直观地告知用户所述天线最佳方向与所述卫星方向的角度偏差,从而,引导用户对卫星天线指向方向进行调整,例如引导用户调整所述电子设备的放置姿态,而调整所述卫星天线指向方向,使得所述卫星天线指向方向与所述卫星方向相同或大致相同,从而有效提升所述卫星天线的实际增益,而提高卫星通信质量。In the first aspect, a method for guiding and adjusting the pointing direction of a satellite antenna is provided, which is applied to an electronic device, and the electronic device includes a satellite antenna and a display screen. The method includes: acquiring the best antenna direction of the satellite antenna, Wherein, the optimal direction of the antenna is the pointing direction of the satellite antenna; obtaining the satellite direction of the satellite used to communicate with the satellite antenna relative to the electronic device; and controlling the display screen according to the optimal direction of the antenna displaying a first indicator mark on the display screen, and displaying a second indicator mark on the display screen according to the satellite direction control, wherein the first indicator mark is used to at least indicate the optimal direction of the antenna, and the second indicator The marks are used to indicate the direction of the satellite, so as to adjust the pointing direction of the satellite antenna guided by the first indicating mark and the second indicating mark. Thereby, by displaying the first indication mark for at least indicating the optimal direction of the antenna and the second indication mark for indicating the direction of the satellite on the display screen, the user can be intuitively informed of the optimal direction of the antenna angle deviation from the satellite direction, thereby guiding the user to adjust the pointing direction of the satellite antenna, for example, guiding the user to adjust the placement posture of the electronic device, and adjusting the pointing direction of the satellite antenna so that the pointing direction of the satellite antenna is the same as The directions of the satellites are the same or roughly the same, thereby effectively increasing the actual gain of the satellite antenna and improving the quality of satellite communication.

一种可能的实施方式中,所述方法还包括:响应对所述电子设备的放置姿态的调整操作,而控制所述显示屏上显示的第二指示标记和所述第一指示标记之间的位置关系相应变化,从而提示所述天线最佳方向和所述卫星方向的角度偏差的变化。从而,用户在执行用于调整所述电子设备的放置姿态的调整操作时,可通过观察所述显示屏上显示的第二指示标记和所述第一指示标记之间的位置关系的变化,而可确定对电子设备的放置姿态进行调整的角度和方向,使得第二指示标记和所述第一指示标记的位置靠近,从而实现将所述卫星天线的天线最佳方向调节为与所述卫星方向相同或大致相同。In a possible implementation manner, the method further includes: controlling the distance between the second indicator displayed on the display screen and the first indicator in response to an adjustment operation on the placement posture of the electronic device. The positional relationship changes accordingly, thereby suggesting a change in the angular deviation between the optimal direction of the antenna and the direction of the satellite. Therefore, when the user performs the adjustment operation for adjusting the placement posture of the electronic device, he can observe the change of the positional relationship between the second indicator mark and the first indicator mark displayed on the display screen. The angle and direction for adjusting the placement attitude of the electronic device can be determined, so that the positions of the second indicator mark and the first indicator mark are close to each other, so that the optimal direction of the antenna of the satellite antenna is adjusted to be in line with the direction of the satellite. the same or approximately the same.

一种可能的实施方式中,所述第一指示标记在所述显示屏上的位置固定不动,所述第二指示标记在所述显示屏上的位置跟随所述电子设备的放置姿态的变化而变化;所述响应对所述电子设备的放置姿态的调整操作,而控制所述显示屏上显示的第二指示标记和所述第一指示标记之间的位置关系相应变化,包括:响应对所述电子设备的放置姿态的调整操作,而控制所述第二指示标记相应移动,从而使得所述第二指示标记和所述第一指示标记之间的位置关系相应变化。从而,响应对所述电子设备的放置姿态的调整操作而控制所述第二指示标记相应移动后,使得所述第二指示标记和所述第一指示标记之间的位置关系发生变化,而可直观且有效地引导用户通过调整所述电子设备的放置姿态使得所述第二指示标记和所述第一指示标记尽量靠近,实现将卫星天线指向方向调整为指向或大致指向卫星的位置,也即将所述卫星天线的天线最佳方向调节为与所述卫星方向相同或大致相同,从而提高天线增益。In a possible implementation manner, the position of the first indicator mark on the display screen is fixed, and the position of the second indicator mark on the display screen follows the change of the placement posture of the electronic device. change; the responding to the adjustment operation of the placement posture of the electronic device, and controlling the positional relationship between the second indication mark displayed on the display screen and the first indication mark to change accordingly, including: responding to the adjustment operation The adjustment operation of the placement posture of the electronic device controls the corresponding movement of the second indicator mark, so that the positional relationship between the second indicator mark and the first indicator mark changes accordingly. Therefore, after the corresponding movement of the second indicator mark is controlled in response to the adjustment operation of the placement posture of the electronic device, the positional relationship between the second indicator mark and the first indicator mark changes, and the Intuitively and effectively guide the user to adjust the position of the electronic device so that the second indicator and the first indicator are as close as possible to adjust the pointing direction of the satellite antenna to point or roughly point to the position of the satellite, that is, to The optimal direction of the antenna of the satellite antenna is adjusted to be the same or approximately the same as the direction of the satellite, thereby increasing the gain of the antenna.

一种可能的实施方式中,所述获取所述卫星天线的天线最佳方向,包括:获取所述卫星天线的天线最佳方向在电子设备坐标系中的天线方向单位向量,其中,所述电子设备坐标系为以垂直于所述显示屏的方向为Z轴,以平行于所述显示屏的短边方向为X轴,以平行于所述显示屏的长边方向为Y轴建立的坐标系。所述根据所述天线最佳方向控制在所述显示屏上显示第一指示标记,包括:确定所述天线方向单位向量在所述电子设备坐标系中的天线坐标位置;根据所述天线坐标位置确定所述天线方向单位向量映射在显示屏上的第一目标位置;以及控制在所述显示屏上的所述第一目标位置显示所述第一指示标记。从而,通过确定所述天线方向单位向量在所述电子设备坐标系中的天线坐标位置后,然后确定所述天线方向单位向量映射在显示屏上的第一目标位置,从而作为天线最佳方向映射在所述显示屏上的位置,并控制在所述显示屏上的所述第一目标位置显示所述第一指示标记,而可将天线最佳方向映射在显示屏上的第一目标位置并通过所述第一指示标记进行直观地指示。In a possible implementation manner, the obtaining the optimal antenna direction of the satellite antenna includes: obtaining an antenna direction unit vector of the optimal antenna direction of the satellite antenna in the electronic device coordinate system, wherein the electronic device The device coordinate system is a coordinate system established with the direction perpendicular to the display screen as the Z axis, the direction parallel to the short side of the display screen as the X axis, and the direction parallel to the long side of the display screen as the Y axis . The displaying of the first indication mark on the display screen according to the optimal direction of the antenna includes: determining the antenna coordinate position of the antenna direction unit vector in the electronic equipment coordinate system; determining a first target position on a display screen where the antenna direction unit vector is mapped; and controlling to display the first indicator mark at the first target position on the display screen. Therefore, after determining the antenna coordinate position of the antenna direction unit vector in the electronic device coordinate system, and then determining the first target position of the antenna direction unit vector mapped on the display screen, as the antenna optimal direction mapping position on the display screen, and control to display the first indicator mark at the first target position on the display screen, and map the optimal direction of the antenna on the first target position on the display screen and Intuitive indication is performed by the first indication mark.

一种可能的实施方式中,所述电子设备坐标系以所述显示屏的中心作为坐标原点,其中,垂直于所述显示屏且指向所述显示屏的观看侧的方向为Z轴正方向;所述根据所述天线坐标位置确定所述天线方向单位向量映射在显示屏上的第一目标位置,包括:获取一预先设定的位于电子设备坐标系的Z轴正半轴上的观测点的观测点坐标位置,所述观测点与所述坐标原点间隔预设距离,所述观测点在所述显示屏上的投影与所述作为坐标原点的显示屏的中心重合;根据所述观测点坐标位置以及所述天线坐标位置计算得到观测点与天线坐标位置点的连线和所述显示屏的交点的第一交点坐标位置,并将所述显示屏上的第一交点坐标位置作为所述第一目标位置,其中,所述天线坐标位置点为所述天线坐标位置对应的点,所述天线坐标位置中的Z轴坐标为负。从而,通过引入所述观测点P1,可以使得所述第一指示标记在所述显示屏上的位置尽量不位于所述显示屏的中心,而避免所述第一指示标记与所述第二指示标记在所述卫星天线的天线最佳方向与所述卫星方向未对齐的情况下就在所述显示屏的中心重合。In a possible implementation manner, the coordinate system of the electronic device takes the center of the display screen as a coordinate origin, wherein a direction perpendicular to the display screen and pointing to the viewing side of the display screen is a positive direction of the Z axis; The determining the first target position of the antenna direction unit vector mapped on the display screen according to the antenna coordinate position includes: obtaining a preset observation point located on the positive semi-axis of the Z axis of the electronic equipment coordinate system The coordinate position of the observation point, the observation point is separated from the coordinate origin by a preset distance, and the projection of the observation point on the display screen coincides with the center of the display screen as the origin of coordinates; according to the coordinates of the observation point The position and the antenna coordinate position are calculated to obtain the first intersection coordinate position of the intersection point of the observation point and the antenna coordinate position point and the intersection point of the display screen, and the first intersection coordinate position on the display screen is used as the first intersection coordinate position A target position, wherein the antenna coordinate position point is a point corresponding to the antenna coordinate position, and the Z-axis coordinate in the antenna coordinate position is negative. Therefore, by introducing the observation point P1, the position of the first indicator mark on the display screen may not be located in the center of the display screen as much as possible, so as to avoid the difference between the first indicator mark and the second indicator mark. The marker coincides with the center of the display screen in the event that the antenna optimum direction of the satellite dish is not aligned with the satellite direction.

一种可能的实施方式中,所述根据所述观测点坐标位置以及所述天线坐标位置计算得到观测点与天线坐标位置点的连线和所述显示屏的交点的第一交点坐标位置,包括:根据公式X1=L*x0/(L-z0)以及y1=L*y0/(L-z0),计算得出所述第一交点坐标位置中的X轴坐标以及Y轴坐标,从而得到所述第一交点坐标位置(x1,y1,z1);其中,所述x1为所述第一交点坐标位置中的X轴坐标,所述y1为所述第一交点坐标位置中的Y轴坐标,所述z1为所述第一交点坐标位置中的Z轴坐标,所述z1=0,所述L为所述观测点的Z轴坐标,所述x0为所述天线坐标位置的X轴坐标,所述y0为所述天线坐标位置的Y轴坐标,所述z0为所述天线坐标位置的Z轴坐标。In a possible implementation manner, the calculation according to the coordinate position of the observation point and the coordinate position of the antenna to obtain the first intersection coordinate position of the intersection point of the line connecting the observation point and the antenna coordinate position point and the display screen includes : According to the formula X1=L*x0/(L-z0) and y1=L*y0/(L-z0), calculate the X-axis coordinate and the Y-axis coordinate in the coordinate position of the first intersection point, so as to obtain the The coordinate position of the first intersection point (x1, y1, z1); wherein, the x1 is the X-axis coordinate in the coordinate position of the first intersection point, and the y1 is the Y-axis coordinate in the coordinate position of the first intersection point, The z1 is the Z-axis coordinate in the coordinate position of the first intersection point, the z1=0, the L is the Z-axis coordinate of the observation point, and the x0 is the X-axis coordinate of the antenna coordinate position, The y0 is the Y-axis coordinate of the antenna coordinate position, and the z0 is the Z-axis coordinate of the antenna coordinate position.

一种可能的实施方式中,所述确定所述天线方向单位向量在所述电子设备坐标系中的坐标位置,包括:分别确定所述天线方向单位向量在所述电子设备坐标系中的X轴、Y轴以及Z轴上的投影对应的坐标值,而得到所述天线方向单位向量在所述电子设备坐标系中的坐标位置。In a possible implementation manner, the determining the coordinate position of the antenna direction unit vector in the electronic device coordinate system includes: respectively determining the X axis of the antenna direction unit vector in the electronic device coordinate system , the coordinate values corresponding to the projections on the Y axis and the Z axis to obtain the coordinate position of the antenna direction unit vector in the electronic device coordinate system.

一种可能的实施方式中,所述获取用于与所述卫星天线进行通信的卫星相对于所述电子设备的卫星方向,包括:获取所述卫星在大地坐标系中相对于所述电子设备的卫星方向单位向量,其中,所述大地坐标系为以大地平面为XY平面,以重力方向为Z轴建立的坐标系。所述根据所述卫星方向控制在所述显示屏上显示第二指示标记,包括:将所述卫星在大地坐标系中相对于所述电子设备的卫星方向单位向量转化为在电子设备坐标系中的卫星坐标位置,其中,所述电子设备坐标系为以垂直于所述显示屏的方向为Z轴,以平行于所述显示屏的短边方向为X轴,以平行于所述显示屏的长边方向为Y轴建立的坐标系;根据所述卫星坐标位置确定所述卫星方向单位向量映射在显示屏上的第二目标位置;以及控制在所述显示屏上的所述第二目标位置显示所述第二指示标记。从而,通过先将所述卫星在大地坐标系中相对于所述电子设备的卫星方向单位向量转化为在电子设备坐标系中的卫星坐标位置,然后可根据所述卫星坐标位置确定所述卫星方向单位向量映射在显示屏上的第二目标位置,而可将卫星方向映射在显示屏上的第二目标位置并通过所述第二指示标记进行直观地指示。In a possible implementation manner, the obtaining the satellite direction of the satellite used for communicating with the satellite antenna relative to the electronic device includes: obtaining the satellite direction of the satellite relative to the electronic device in the geodetic coordinate system A satellite direction unit vector, wherein the earth coordinate system is a coordinate system established with the earth plane as the XY plane and the gravity direction as the Z axis. The displaying of the second indication mark on the display screen according to the satellite direction control includes: transforming the satellite direction unit vector of the satellite relative to the electronic device in the earth coordinate system into the electronic device coordinate system The satellite coordinate position, wherein, the coordinate system of the electronic device is that the direction perpendicular to the display screen is the Z axis, the direction parallel to the short side of the display screen is the X axis, and the direction parallel to the display screen is the X axis. The long side direction is the coordinate system established by the Y axis; according to the satellite coordinate position, determine the second target position on the display screen where the satellite direction unit vector is mapped; and control the second target position on the display screen The second indicator is displayed. Therefore, by first transforming the satellite direction unit vector of the satellite relative to the electronic device in the earth coordinate system into the satellite coordinate position in the electronic device coordinate system, the satellite direction can be determined according to the satellite coordinate position The unit vector is mapped to the second target position on the display screen, and the satellite direction can be mapped to the second target position on the display screen and visually indicated by the second indicator mark.

一种可能的实施方式中,所述将所述卫星在大地坐标系中相对于所述电子设备的卫星方向单位向量转化为在电子设备坐标系中的卫星坐标位置,包括:确定所述卫星方向单位向量在大地坐标系中的坐标位置;确定所述大地坐标系中的X轴单位向量、Y轴单位向量以及Z轴单位向量分别在所述电子设备坐标系的坐标位置;根据所述卫星方向单位向量在大地坐标系中的坐标位置以及所述大地坐标系中的X轴单位向量、Y轴单位向量以及Z轴单位向量分别在所述电子设备坐标系的坐标位置得到所述卫星方向单位向量在电子设备坐标系中的卫星坐标位置。从而,在得到所述大地坐标系中的X轴单位向量、Y轴单位向量以及Z轴单位向量分别在所述电子设备坐标系的坐标位置后,则可根据所述卫星方向单位向量在大地坐标系中的坐标位置以及所述大地坐标系中的X轴单位向量、Y轴单位向量以及Z轴单位向量分别在所述电子设备坐标系的坐标位置得到所述卫星方向单位向量在电子设备坐标系中的卫星坐标位置,从而可将所述卫星方向单位向量转换为在电子设备坐标系中的卫星坐标位置。In a possible implementation manner, the converting the satellite direction unit vector of the satellite relative to the electronic device in the geodetic coordinate system into the satellite coordinate position in the electronic device coordinate system includes: determining the satellite direction The coordinate position of the unit vector in the earth coordinate system; determine the coordinate positions of the X-axis unit vector, the Y-axis unit vector, and the Z-axis unit vector in the electronic device coordinate system in the earth coordinate system; according to the satellite direction The coordinate position of the unit vector in the earth coordinate system and the X-axis unit vector, the Y-axis unit vector, and the Z-axis unit vector in the earth coordinate system are respectively in the coordinate position of the electronic equipment coordinate system to obtain the satellite direction unit vector The satellite coordinate position in the electronic device coordinate system. Therefore, after obtaining the coordinate positions of the X-axis unit vector, the Y-axis unit vector, and the Z-axis unit vector in the coordinate system of the electronic device respectively in the coordinate system of the electronic device, the coordinates of the unit vector in the satellite direction can be determined according to the coordinate position of the unit vector of the satellite direction. The coordinate position in the coordinate system and the X-axis unit vector, the Y-axis unit vector and the Z-axis unit vector in the earth coordinate system are respectively at the coordinate positions of the electronic equipment coordinate system to obtain the satellite direction unit vector in the electronic equipment coordinate system The satellite coordinate position in , so that the satellite direction unit vector can be transformed into the satellite coordinate position in the electronic device coordinate system.

一种可能的实施方式中,所述确定所述卫星方向单位向量在大地坐标系中的坐标位置,包括:分别确定所述卫星方向单位向量在所述大地坐标系中的X轴、Y轴以及Z轴上的投影对应的坐标值,而得到所述卫星方向单位向量在所述电子设备坐标系中的坐标位置。所述确定所述大地坐标系中的X轴单位向量、Y轴单位向量以及Z轴单位向量分别在所述电子设备坐标系的坐标位置,包括:确定所述X轴单位向量分别在所述电子设备坐标系中的X轴、Y轴以及Z轴上的投影对应的坐标值,而得到所述X轴单位向量在所述电子设备坐标系中的坐标位置,确定所述Y轴单位向量分别在所述电子设备坐标系中的X轴、Y轴以及Z轴上的投影对应的坐标值,而得到所述Y轴单位向量在所述电子设备坐标系中的坐标位置,以及确定所述Z轴单位向量分别在所述电子设备坐标系中的X轴、Y轴以及Z轴上的投影对应的坐标值,而得到所述Z轴单位向量在所述电子设备坐标系中的坐标位置。In a possible implementation manner, the determining the coordinate position of the satellite direction unit vector in the earth coordinate system includes: separately determining the X axis, the Y axis and the Y axis of the satellite direction unit vector in the earth coordinate system The coordinate value corresponding to the projection on the Z axis is used to obtain the coordinate position of the satellite direction unit vector in the electronic device coordinate system. The determining the coordinate positions of the X-axis unit vector, the Y-axis unit vector, and the Z-axis unit vector in the coordinate system of the electronic device respectively includes: determining the coordinate positions of the X-axis unit vector in the electronic equipment coordinate system respectively. The coordinate values corresponding to the projection on the X-axis, Y-axis and Z-axis in the device coordinate system, and obtain the coordinate position of the X-axis unit vector in the electronic device coordinate system, and determine that the Y-axis unit vector is respectively in Coordinate values corresponding to projections on the X-axis, Y-axis, and Z-axis in the electronic device coordinate system to obtain the coordinate position of the Y-axis unit vector in the electronic device coordinate system, and determine the Z-axis The coordinate values corresponding to the projections of the unit vectors on the X-axis, Y-axis and Z-axis in the electronic device coordinate system respectively, so as to obtain the coordinate position of the Z-axis unit vector in the electronic device coordinate system.

一种可能的实施方式中,所述根据所述卫星方向单位向量在大地坐标系中的坐标位置以及所述大地坐标系中的X轴单位向量、Y轴单位向量以及Z轴单位向量分别在所述电子设备坐标系的坐标位置得到所述卫星方向单位向量在电子设备坐标系中的卫星坐标位置,包括:根据公式x2=xs*xxg+ys*xyg+zs*xzg,y2=xs*yxg+ys*yyg+zs*yzg以及z2=xs*zxg+ys*zyg+zs*zzg,计算得出卫星坐标位置(x2,y2,z2);其中,所述x2为所述卫星坐标位置的X轴坐标,所述y2为所述卫星坐标位置的Y轴坐标,所述z2为所述卫星坐标位置的Z轴坐标,所述xs,ys以及zs分别为所述卫星方向单位向量在大地坐标系中的X轴、Y轴以及Z轴上的坐标值,所述xxg,xyg以及xzg分别为所述大地坐标系中的X轴单位向量在所述电子设备坐标系中的X轴上的投影对应的坐标值应的X坐标,在所述电子设备坐标系的Y轴上的投影对应的Y坐标以及在所述电子设备坐标系的Z轴上的投影对应的Z坐标,所述yxg,yyg以及yzg分别为所述大地坐标系中的Y轴单位向量在所述电子设备坐标系的X轴上的投影对应的X坐标,在所述电子设备坐标系的Y轴上的投影对应的Y坐标以及在所述电子设备坐标系的Z轴上的投影对应的Z坐标,所述zxg,zyg以及zzg分别为所述大地坐标系中的Z轴单位向量对应在所述电子设备坐标系的X轴上的投影对应的X坐标,在所述电子设备坐标系的Y轴上的投影对应的Y坐标以及在所述电子设备坐标系的Z轴上的投影对应的Z坐标。In a possible implementation manner, the coordinate position of the satellite direction unit vector in the earth coordinate system and the X-axis unit vector, Y-axis unit vector, and Z-axis unit vector in the earth coordinate system are respectively in the Obtaining the satellite coordinate position of the satellite direction unit vector in the electronic device coordinate system from the coordinate position of the electronic device coordinate system, including: according to the formula x2=x s *x x g +y s *x yg +z s *x zg , y2=x s *y xg +y s *y yg +z s *y zg and z2=x s *z xg +y s *z yg +z s *z zg , calculate the satellite coordinate position (x2,y2 , z2); wherein, the x2 is the X-axis coordinate of the satellite coordinate position, the y2 is the Y-axis coordinate of the satellite coordinate position, the z2 is the Z-axis coordinate of the satellite coordinate position, and the x s , y s and z s are the coordinate values of the satellite direction unit vector on the X-axis, Y-axis and Z-axis in the earth coordinate system respectively, and the x xg , x yg and x zg are respectively the coordinate values of the earth coordinate system The X-coordinate corresponding to the projection of the X-axis unit vector in the coordinate system on the X-axis in the electronic device coordinate system should be the X-coordinate, the Y-coordinate corresponding to the projection on the Y-axis of the electronic device coordinate system and the The Z coordinate corresponding to the projection on the Z axis of the electronic equipment coordinate system, the y xg , y yg and y zg are respectively the Y axis unit vector in the earth coordinate system on the X axis of the electronic equipment coordinate system The X coordinate corresponding to the projection on the electronic equipment coordinate system, the Y coordinate corresponding to the projection on the Y axis of the electronic equipment coordinate system and the Z coordinate corresponding to the projection on the Z axis of the electronic equipment coordinate system, the z xg , z yg and z zg are the X coordinates corresponding to the projection of the Z-axis unit vector in the earth coordinate system on the X-axis of the electronic equipment coordinate system, and the projection on the Y-axis of the electronic equipment coordinate system corresponds to and the Z coordinate corresponding to the projection on the Z axis of the electronic device coordinate system.

一种可能的实施方式中,所述电子设备坐标系以所述显示屏的中心作为坐标原点,其中,垂直于所述显示屏且指向所述显示屏的观看侧的方向为Z轴正方向;所述根据所述卫星坐标位置确定所述卫星方向单位向量映射在显示屏上的第二目标位置,包括:获取一预先设定的位于电子设备坐标系的Z轴正半轴上的观测点的观测点坐标位置,所述观测点与所述坐标原点间隔预设距离,所述观测点在所述显示屏上的投影与所述作为坐标原点的显示屏的中心重合;根据所述观测点坐标位置以及所述卫星坐标位置计算得到观测点坐标位置与卫星坐标位置点的连线和所述显示屏的交点的第二交点坐标位置,并将所述显示屏上的第二交点坐标位置作为所述第二目标位置,其中,所述卫星坐标位置中的Z轴坐标为负,所述卫星坐标位置点为所述卫星坐标位置对应的点。从而,通过引入所述观测点,可以使得所述第一指示标记以及所述第二指示标记尽量不位于所述显示屏的中心,而避免所述第一指示标记与所述第二指示标记在所述卫星天线的天线最佳方向与所述卫星方向未对齐的情况下就在所述显示屏的中心重合,而由于所述第一指示标记的第一目标位置以及所述第二指示标记的第二目标位置的确定过程中,都引入该观测点,因此,还是能够较准确反映所述天线最佳方向和所述卫星天线的偏差。In a possible implementation manner, the coordinate system of the electronic device takes the center of the display screen as a coordinate origin, wherein a direction perpendicular to the display screen and pointing to the viewing side of the display screen is a positive direction of the Z axis; The determining the second target position of the satellite direction unit vector mapped on the display screen according to the satellite coordinate position includes: obtaining a preset observation point located on the positive semi-axis of the Z axis of the electronic device coordinate system The coordinate position of the observation point, the observation point is separated from the coordinate origin by a preset distance, and the projection of the observation point on the display screen coincides with the center of the display screen as the origin of coordinates; according to the coordinates of the observation point The position and the satellite coordinate position are calculated to obtain the second intersection coordinate position of the intersection of the observation point coordinate position and the satellite coordinate position point and the intersection point of the display screen, and the second intersection coordinate position on the display screen is used as the The second target position, wherein the Z-axis coordinate in the satellite coordinate position is negative, and the satellite coordinate position point is a point corresponding to the satellite coordinate position. Therefore, by introducing the observation point, the first indicator mark and the second indicator mark may not be located at the center of the display screen as far as possible, and the first indicator mark and the second indicator mark may not be located at the center of the display screen. When the optimal direction of the antenna of the satellite antenna is not aligned with the direction of the satellite, it coincides with the center of the display screen, and due to the first target position of the first indicator and the position of the second indicator In the process of determining the second target position, the observation point is always introduced, therefore, the optimal direction of the antenna and the deviation of the satellite antenna can be reflected more accurately.

一种可能的实施方式中,所述根据所述观测点坐标位置以及所述卫星坐标位置计算得到观测点坐标位置与卫星坐标位置点的连线和所述显示屏的交点的第二交点坐标位置,包括:根据公式x3=L*x4/(L-z4)以及y3=L*y4/(L-z4),计算得出所述第二交点坐标位置中的X轴坐标以及Y轴坐标,从而得到所述第二交点坐标位置(x3,y3,z3);其中,所述x3为所述第二交点坐标位置中的X轴坐标,所述y3为所述第二交点坐标位置中的Y轴坐标,所述z3为所述第二交点坐标位置中的Z轴坐标,所述z3=0,所述L为所述观测点的Z轴坐标,所述x4为所述卫星坐标位置中的X轴坐标,所述y4为所述卫星坐标位置中的Y轴坐标,所述z4为所述卫星坐标位置中的Z轴坐标。In a possible implementation manner, the calculation according to the coordinate position of the observation point and the coordinate position of the satellite obtains the second intersection coordinate position of the intersection point of the coordinate position of the observation point and the coordinate position point of the satellite and the intersection point of the display screen , comprising: according to the formulas x3=L*x4/(L-z4) and y3=L*y4/(L-z4), the X-axis coordinate and the Y-axis coordinate in the coordinate position of the second intersection point are calculated, so that Obtain the coordinate position of the second intersection point (x3, y3, z3); wherein, the x3 is the X-axis coordinate in the coordinate position of the second intersection point, and the y3 is the Y-axis in the coordinate position of the second intersection point Coordinates, the z3 is the Z-axis coordinate in the second intersection coordinate position, the z3=0, the L is the Z-axis coordinate of the observation point, and the x4 is the X in the satellite coordinate position Axis coordinates, the y4 is the Y-axis coordinate in the satellite coordinate position, and the z4 is the Z-axis coordinate in the satellite coordinate position.

一种可能的实施方式中,所述第一指示标记包括中心点以及环绕所述中心点的环形区域,所述中心点用于表征所述天线最佳方向,所述环形区域用于表征天线次佳方向,所述方法还包括:在响应对所述电子设备的放置姿态的调整操作,而控制所述第二指示标记相应移动的过程中,当所述第二指示标记移动至所述第一指示标记中的环形区域内时,控制产生第一提示信号。从而,由于所述环形区域用于表征天线次佳方向,表示卫星方向与该天线次佳方向大致相同时,所述卫星天线的天线增益大于或等于预设阈值,因此,当所述第二指示标记移动至所述第一指示标记中的环形区域内时,通过产生第一提示信号,来提醒用户,可以不用再调整所述电子设备的放置姿态,可以有效进行提醒,并能够减少用户的操作时间。In a possible implementation manner, the first indicator mark includes a central point and an annular area surrounding the central point, the central point is used to represent the best direction of the antenna, and the annular area is used to represent the secondary direction of the antenna. The method further includes: during the process of controlling the corresponding movement of the second indicator mark in response to the adjustment operation of the placement posture of the electronic device, when the second indicator mark moves to the first When the indicator mark is within the circular area, the control generates a first prompt signal. Therefore, since the annular area is used to characterize the suboptimal direction of the antenna, indicating that when the satellite direction is approximately the same as the suboptimal direction of the antenna, the antenna gain of the satellite antenna is greater than or equal to a preset threshold, therefore, when the second indication When the mark moves into the circular area of the first indicator mark, the user is reminded by generating the first prompt signal, and the placement posture of the electronic device can be no longer adjusted, the reminder can be effectively carried out, and the user's operation can be reduced time.

一种可能的实施方式中,所述方法还包括:当所述第二指示标记移动至所述第一指示标记中的中心点时,控制产生第二提示信号。从而,通过产生第二提示信号,可提示用户天线最佳方向已经和所述卫星方向完全相同,即天线增益已经最佳。In a possible implementation manner, the method further includes: when the second indicator mark moves to a center point of the first indicator mark, controlling to generate a second prompt signal. Therefore, by generating the second prompt signal, the user may be prompted that the optimal direction of the antenna is exactly the same as the direction of the satellite, that is, the antenna gain has been optimal.

一种可能的实施方式中,所述环形区域与所述中心点的显示参数不同,所述显示参数包括颜色以及图案中的至少一个。从而,可有效区分所述环形区域与所述中心点,而可供用户直观地区分当前所述第二指示标识移动到了环形区域还是所述中心点。In a possible implementation manner, display parameters of the circular area and the central point are different, and the display parameters include at least one of a color and a pattern. Therefore, the ring-shaped area and the center point can be effectively distinguished, and the user can intuitively distinguish whether the second indication mark has moved to the ring-shaped area or the center point.

一种可能的实施方式中,所述方法还包括:在对所述电子设备的放置姿态进行调整的过程中,计算所述卫星天线的天线增益;当确定所述卫星天线的天线增益大于或等于预设阈值时,控制产生第一提示信号。从而,通过直接去计算所述卫星天线200的天线增益,当所述卫星天线的天线增益大于或等于预设阈值时,控制产生第一提示信号,提示用户当前天线增益已经较佳,可以不用再调整所述电子设备的放置姿态。In a possible implementation manner, the method further includes: during the process of adjusting the placement posture of the electronic device, calculating the antenna gain of the satellite antenna; when it is determined that the antenna gain of the satellite antenna is greater than or equal to When the threshold is preset, the control generates a first prompt signal. Therefore, by directly calculating the antenna gain of the satellite antenna 200, when the antenna gain of the satellite antenna is greater than or equal to the preset threshold, the control generates a first prompt signal to prompt the user that the current antenna gain is already good, and there is no need to Adjust the placement posture of the electronic device.

第二方面,提供一种电子设备,所述电子设备包括卫星天线、显示屏以及处理器,所述处理器用于控制执行一种引导调整卫星天线指向方向的方法,所述方法包括:获取所述卫星天线的天线最佳方向,其中,所述天线最佳方向为卫星天线指向方向;获取用于与所述卫星天线进行通信的卫星相对于所述电子设备的卫星方向;以及根据所述天线最佳方向控制在所述显示屏上显示第一指示标记,以及根据所述卫星方向控制在所述显示屏上显示第二指示标记,其中,所述第一指示标记用于至少指示所述天线最佳方向,所述第二指示标记用于指示所述卫星方向,以通过所述第一指示标记以及第二指示标记引导对卫星天线指向方向进行调整。从而,通过在显示屏上显示用于至少指示所述天线最佳方向的所述第一指示标记以及用于指示所述卫星方向的第二指示标识,可以直观地告知用户所述天线最佳方向与所述卫星方向的角度偏差,从而,引导用户对卫星天线指向方向进行调整,例如引导用户调整所述电子设备的放置姿态,而调整所述卫星天线指向方向,使得所述卫星天线指向方向与所述卫星方向相同或大致相同,从而有效提升所述卫星天线的实际增益,而提高卫星通信质量。In a second aspect, an electronic device is provided. The electronic device includes a satellite antenna, a display screen, and a processor, and the processor is used to control and execute a method for guiding and adjusting the pointing direction of the satellite antenna. The method includes: obtaining the The optimal direction of the antenna of the satellite antenna, wherein the optimal direction of the antenna is the pointing direction of the satellite antenna; obtaining the satellite direction of the satellite used to communicate with the satellite antenna relative to the electronic device; and according to the optimal direction of the antenna The optimal direction control displays a first indicator on the display screen, and displays a second indicator on the display screen according to the satellite direction control, wherein the first indicator is used to at least indicate the best position of the antenna. The best direction, the second indicator mark is used to indicate the direction of the satellite, so as to adjust the pointing direction of the satellite antenna guided by the first indicator mark and the second indicator mark. Thereby, by displaying the first indication mark for at least indicating the optimal direction of the antenna and the second indication mark for indicating the direction of the satellite on the display screen, the user can be intuitively informed of the optimal direction of the antenna angle deviation from the satellite direction, thereby guiding the user to adjust the pointing direction of the satellite antenna, for example, guiding the user to adjust the placement posture of the electronic device, and adjusting the pointing direction of the satellite antenna so that the pointing direction of the satellite antenna is the same as The directions of the satellites are the same or roughly the same, thereby effectively increasing the actual gain of the satellite antenna and improving the quality of satellite communication.

第三方面,提供一种电子设备,所述电子设备包括存储器以及处理器,所述存储器存储有计算机程序;所述处理器用于调用所述计算机程序而执行一种引导调整卫星天线指向方向的方法。所述方法包括:获取所述卫星天线的天线最佳方向,其中,所述天线最佳方向为卫星天线指向方向;获取用于与所述卫星天线进行通信的卫星相对于所述电子设备的卫星方向;以及根据所述天线最佳方向控制在所述显示屏上显示第一指示标记,以及根据所述卫星方向控制在所述显示屏上显示第二指示标记,其中,所述第一指示标记用于至少指示所述天线最佳方向,所述第二指示标记用于指示所述卫星方向,以通过所述第一指示标记以及第二指示标记引导对卫星天线指向方向进行调整。从而,通过在显示屏上显示用于至少指示所述天线最佳方向的所述第一指示标记以及用于指示所述卫星方向的第二指示标识,可以直观地告知用户所述天线最佳方向与所述卫星方向的角度偏差,从而,引导用户对卫星天线指向方向进行调整,例如引导用户调整所述电子设备的放置姿态,而调整所述卫星天线指向方向,使得所述卫星天线指向方向与所述卫星方向相同或大致相同,从而有效提升所述卫星天线的实际增益,而提高卫星通信质量。In a third aspect, an electronic device is provided, the electronic device includes a memory and a processor, the memory stores a computer program; the processor is used to invoke the computer program to execute a method for guiding and adjusting the pointing direction of a satellite antenna . The method includes: obtaining an optimal antenna direction of the satellite antenna, wherein the optimal antenna direction is a pointing direction of the satellite antenna; obtaining a satellite used for communicating with the satellite antenna relative to a satellite of the electronic device direction; and displaying a first indicator mark on the display screen according to the optimal direction control of the antenna, and displaying a second indicator mark on the display screen according to the satellite direction control, wherein the first indicator mark It is used to at least indicate the optimal direction of the antenna, and the second indicator is used to indicate the direction of the satellite, so as to adjust the pointing direction of the satellite antenna guided by the first indicator and the second indicator. Thereby, by displaying the first indication mark for at least indicating the optimal direction of the antenna and the second indication mark for indicating the direction of the satellite on the display screen, the user can be intuitively informed of the optimal direction of the antenna angle deviation from the satellite direction, thereby guiding the user to adjust the pointing direction of the satellite antenna, for example, guiding the user to adjust the placement posture of the electronic device, and adjusting the pointing direction of the satellite antenna so that the pointing direction of the satellite antenna is the same as The directions of the satellites are the same or roughly the same, thereby effectively increasing the actual gain of the satellite antenna and improving the quality of satellite communication.

本申请的电子设备及引导调整卫星天线指向方向的方法,通过在显示屏上显示用于至少指示所述天线最佳方向的所述第一指示标记以及用于指示所述卫星方向的第二指示标识,可以直观地告知用户所述天线最佳方向与所述卫星方向的角度偏差,从而,引导用户通过调整所述电子设备的放置姿态而调整所述卫星天线指向方向,使得所述卫星天线指向方向与所述卫星方向相同或大致相同,从而有效提升所述卫星天线的实际增益,而提高卫星通信质量。The electronic device and the method for guiding and adjusting the pointing direction of a satellite antenna according to the present application, by displaying on the display screen the first indication mark for at least indicating the best direction of the antenna and the second indication for indicating the direction of the satellite mark, which can intuitively inform the user of the angle deviation between the optimal direction of the antenna and the direction of the satellite, thereby guiding the user to adjust the pointing direction of the satellite antenna by adjusting the placement posture of the electronic device, so that the pointing direction of the satellite antenna is The direction is the same or roughly the same as the direction of the satellite, so as to effectively increase the actual gain of the satellite antenna and improve the quality of satellite communication.

附图说明Description of drawings

为了更清楚地说明本申请实施例或背景技术中的技术方案,下面将对本申请实施例或背景技术中所需要使用的附图进行说明。In order to more clearly illustrate the technical solutions in the embodiment of the present application or the background art, the following will describe the drawings that need to be used in the embodiment of the present application or the background art.

图1为本申请实施例提供的电子设备的结构示意图;FIG. 1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;

图2为图1所示电子设备的示意出卫星天线的平面示意图;Fig. 2 is a schematic plan view of a satellite antenna of the electronic device shown in Fig. 1;

图3为本申请一实施例中的引导调整卫星天线指向方向的方法的流程图;3 is a flowchart of a method for guiding and adjusting the pointing direction of a satellite antenna in an embodiment of the present application;

图4为本申请一实施例中的在显示屏上显示的第一指示标记和第二指示标记的示意图;Fig. 4 is a schematic diagram of a first indicator mark and a second indicator mark displayed on a display screen in an embodiment of the present application;

图5为本申请一实施例中的电子设备处于第一放置姿态的示意图;5 is a schematic diagram of an electronic device in a first placement posture according to an embodiment of the present application;

图6为本申请一实施例中的调整所述电子设备的放置姿态为第二放置姿态的示意图;6 is a schematic diagram of adjusting the placement posture of the electronic device to a second placement posture in an embodiment of the present application;

图7为本申请一实施例中的电子设备处于正放状态下时的电子设备坐标系的示意图;FIG. 7 is a schematic diagram of an electronic device coordinate system when the electronic device is in an upright state in an embodiment of the present application;

图8为本申请一实施例中的电子设备处于侧视状态下时的电子设备坐标系的示意图;8 is a schematic diagram of an electronic device coordinate system when the electronic device is in a side view state in an embodiment of the present application;

图9为本申请一实施例中的大地坐标系的示意图;FIG. 9 is a schematic diagram of a geodetic coordinate system in an embodiment of the present application;

图10为本申请一实施例中的所述大地坐标系和所述电子设备坐标系的关系示意图;FIG. 10 is a schematic diagram of the relationship between the earth coordinate system and the electronic device coordinate system in an embodiment of the present application;

图11为本申请一实施例中的电子设备处于侧视状态下时的电子设备坐标系的另一示意图;FIG. 11 is another schematic diagram of the coordinate system of the electronic device when the electronic device is in a side view state in an embodiment of the present application;

图12为本申请一些实施例中的在显示屏上显示的第一指示标记和第二指示标记的示意图;Fig. 12 is a schematic diagram of a first indicator mark and a second indicator mark displayed on a display screen in some embodiments of the present application;

图13为本申请一实施例中的所述第二指示标记跟随所述电子设备的放置姿态的变化而移动的示意图;Fig. 13 is a schematic diagram of the movement of the second indicator mark following the change of the placement posture of the electronic device in an embodiment of the present application;

图14为本申请一实施例中的所述第二指示标记逐渐向所述第一指示标记对齐的仿真示意图;Fig. 14 is a schematic diagram of a simulation in which the second indicator mark is gradually aligned to the first indicator mark in an embodiment of the present application;

图15为本申请另一实施例中的引导调整卫星天线指向方向的方法的流程图;15 is a flowchart of a method for guiding and adjusting the pointing direction of a satellite antenna in another embodiment of the present application;

图16为本申请一些实施例中的电子设备的结构框图;Fig. 16 is a structural block diagram of an electronic device in some embodiments of the present application;

图17为本申请另一些实施例中的电子设备的结构框图。Fig. 17 is a structural block diagram of electronic equipment in other embodiments of the present application.

具体实施方式detailed description

下面结合本申请实施例中的附图对本申请实施例进行描述。Embodiments of the present application are described below with reference to the drawings in the embodiments of the present application.

请参阅图1,图1是本申请实施例提供的一种电子设备1000的结构示意图。Please refer to FIG. 1 . FIG. 1 is a schematic structural diagram of an electronic device 1000 provided in an embodiment of the present application.

电子设备1000可以是手持设备、车载设备、可穿戴设备、计算机设备、无线局域网(wireless local area network,WLAN)设备或路由器等具有无线通信功能的电子产品。在一些应用场景下,电子设备1000也可以叫做不同的名称,例如:用户设备、接入终端、用户单元、用户站、移动站、移动台、远方站、远程终端、移动设备、用户终端、无线电子设备、用户代理或用户装置、蜂窝电话、无线电话、会话启动协议(session initiation protocol,SIP)电话、无线本地环路(wireless local loop,WLL)站、个人数字处理(personal digitalassistant,PDA)、5G网络或未来演进网络中的终端设备等。The electronic device 1000 may be an electronic product with a wireless communication function, such as a handheld device, a vehicle-mounted device, a wearable device, a computer device, a wireless local area network (wireless local area network, WLAN) device, or a router. In some application scenarios, the electronic device 1000 may also be called by different names, for example: user equipment, access terminal, subscriber unit, subscriber station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, wireless Electronic equipment, user agent or user device, cellular telephone, wireless telephone, session initiation protocol (SIP) telephone, wireless local loop (wireless local loop, WLL) station, personal digital assistant (PDA), Terminal equipment in 5G networks or future evolution networks.

一些实施例中,电子设备1000也可以是一种部署在无线接入网用以提供无线通信功能的设备,包括但不限于:基站、中继站、接入点、车载设备、无线保真(wireless-fidelity,Wi-Fi)的站点、无线回传节点、小站、微站等等。其中,基站可以是基站收发台(base transceiver station,BTS)、节点B(NodeB,NB)、演进型基站B(evolutional NodeB,eNB或eNodeB)、NR(new radio)系统中的传输节点或收发点(transmission receptionpoint,TRP或者TP)或者下一代节点B(generation nodeB,gNB)、未来通信网络中的基站或网络设备。本申请实施例以电子设备1000是手机为例进行说明。In some embodiments, the electronic device 1000 may also be a device deployed in a wireless access network to provide wireless communication functions, including but not limited to: base stations, relay stations, access points, vehicle-mounted devices, wireless-fidelity (wireless- fidelity, Wi-Fi) sites, wireless backhaul nodes, small stations, micro stations, etc. Wherein, the base station can be a base transceiver station (base transceiver station, BTS), a node B (NodeB, NB), an evolved base station B (evolutional NodeB, eNB or eNodeB), a transmission node or a transceiver point in an NR (new radio) system (transmission receptionpoint, TRP or TP) or a next-generation node B (generation nodeB, gNB), a base station or a network device in a future communication network. The embodiment of the present application is described by taking the electronic device 1000 as a mobile phone as an example.

电子设备1000包括壳体100、显示模组200、电路板300、受话器(图未示)和扬声器(图未示),显示模组200安装于壳体100并与壳体100配合形成收容腔,电路板300、受话器和扬声器均安装于收容腔内。The electronic device 1000 includes a casing 100, a display module 200, a circuit board 300, a receiver (not shown) and a speaker (not shown), the display module 200 is installed on the casing 100 and cooperates with the casing 100 to form a receiving cavity, The circuit board 300, the receiver and the loudspeaker are all installed in the receiving cavity.

壳体100可以包括边框110和后盖120,后盖120固定于边框110的一侧。边框110与后盖120可以为一体成型的结构,以保证壳体100的结构稳定性。或者,边框110与后盖120也可以通过组装方式彼此固定。壳体100设有扬声孔1001,扬声孔1001的数量可以为一个或多个。示例性的,扬声孔1001的数量为多个,多个扬声孔1001设于边框110。扬声孔1001连通壳体100的内侧与壳体100的外侧。需要说明的是,本申请实施例所描述的“孔”是指具有完整孔壁的孔。The casing 100 may include a frame 110 and a rear cover 120 , and the rear cover 120 is fixed on one side of the frame 110 . The frame 110 and the rear cover 120 may be integrally formed to ensure the structural stability of the casing 100 . Alternatively, the frame 110 and the rear cover 120 may also be fixed to each other by assembly. The casing 100 is provided with a sound-speaking hole 1001, and the number of the sound-speaking hole 1001 may be one or more. Exemplarily, there are multiple speaker holes 1001 , and the plurality of speaker holes 1001 are disposed on the frame 110 . The sound hole 1001 communicates with the inside of the casing 100 and the outside of the casing 100 . It should be noted that the "hole" described in the embodiments of the present application refers to a hole with a complete hole wall.

显示模组200固定于边框110的另一侧。显示模组200和后盖120分别固定于边框110的两侧。用户使用电子设备1000时,显示模组200朝向用户放置,后盖120背离用户放置。显示模组200设有受话孔2001,受话孔2001为贯穿显示模组200的通孔。其中,显示模组200所在的面为电子设备100的正面,电子设备100的背离显示模组200的一面为电子设备100的背面,后盖120用于封盖电子设备1000的背面。其中,显示模组200包括显示屏及其驱动电路。显示模组200可为触摸显示模组。The display module 200 is fixed on the other side of the frame 110 . The display module 200 and the rear cover 120 are respectively fixed on two sides of the frame 110 . When the user uses the electronic device 1000, the display module 200 is placed facing the user, and the rear cover 120 is placed facing away from the user. The display module 200 is provided with a receiving hole 2001 , and the receiving hole 2001 is a through hole penetrating the display module 200 . Wherein, the surface where the display module 200 is located is the front of the electronic device 100 , the side of the electronic device 100 facing away from the display module 200 is the back of the electronic device 100 , and the back cover 120 is used to cover the back of the electronic device 1000 . Wherein, the display module 200 includes a display screen and its driving circuit. The display module 200 can be a touch display module.

电路板300位于后盖120和显示模组200之间。其中,电路板300可以为电子设备1000的主板(mainboard)。受话器位于电子设备1000的顶部,受话器发出的声音经受话孔2001传输至电子设备1000的外部,以实现电子设备1000的声音播放功能。扬声器位于电子设备1000的底部,扬声器发出的声音能够经扬声孔1001传输至电子设备1000的外部,以实现电子设备1000的声音播放功能。The circuit board 300 is located between the rear cover 120 and the display module 200 . Wherein, the circuit board 300 may be a main board (mainboard) of the electronic device 1000 . The receiver is located on the top of the electronic device 1000 , and the sound emitted by the receiver is transmitted to the outside of the electronic device 1000 through the phone hole 2001 , so as to realize the sound playing function of the electronic device 1000 . The speaker is located at the bottom of the electronic device 1000 , and the sound from the speaker can be transmitted to the outside of the electronic device 1000 through the sound hole 1001 to realize the sound playing function of the electronic device 1000 .

应当理解的是,本申请实施例描述电子设备1000时所采用“顶”和“底”等方位用词主要依据用户手持使用电子设备1000时的方位进行阐述,以朝向电子设备1000顶侧的位置为“顶”,以朝向电子设备1000底侧的位置为“底”,并不是指示或暗指所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对电子设备1000于实际应用场景中的方位的限定。在一些实施例中,电子设备1000的底部为设置有耳机孔、USB孔的端部,电子设备1000的顶部为与设置有耳机孔、USB孔的端部相对的另一端部。在一些实施例中,电子设备1000的短边为电子设备1000的顶部和底部所在的边,电子设备1000的长边为电子设备1000的连接于短边之间的边,也可为设置有音量调节按键等按键的侧边。It should be understood that the orientation words such as "top" and "bottom" used in the embodiment of the present application to describe the electronic device 1000 are mainly based on the orientation when the user holds the electronic device 1000 in use, so as to face the position of the top side of the electronic device 1000 "top" and "bottom" towards the bottom side of the electronic device 1000 do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be interpreted as a reference to The orientation of the electronic device 1000 in an actual application scene is limited. In some embodiments, the bottom of the electronic device 1000 is the end with the earphone hole and the USB hole, and the top of the electronic device 1000 is the other end opposite to the end with the earphone hole and the USB hole. In some embodiments, the short side of the electronic device 1000 is the side where the top and bottom of the electronic device 1000 are located, and the long side of the electronic device 1000 is the side connected between the short sides of the electronic device 1000, which may also be provided with a volume Adjust the sides of the buttons, etc.

其中,本申请中的“连接”以及“电连接”,通常指的均是电性连接。Wherein, "connection" and "electrical connection" in this application generally refer to electrical connection.

请参阅图2,是图1所示电子设备1000的示意出卫星天线的平面示意图。如图2所示,所述电子设备1000还包括卫星天线400以及显示屏500,其中,如前所述的,所述显示屏500包括于所述显示模组200中。Please refer to FIG. 2 , which is a schematic plan view illustrating a satellite antenna of the electronic device 1000 shown in FIG. 1 . As shown in FIG. 2 , the electronic device 1000 further includes a satellite antenna 400 and a display screen 500 , wherein, as mentioned above, the display screen 500 is included in the display module 200 .

其中,所述卫星天线400根据所述电子设备1000的设计需要,设置于所述电子设备1000中的特定位置,且对于所述电子设备1000来说,在所述电子设备1000制造完成后,所述卫星天线400在所述电子设备1000的位置固定,且所述卫星天线400的天线最佳方向相对于所述电子设备1000也是固定的。因此,随着所述电子设备1000的放置姿态的变化,所述卫星天线400的天线最佳方向在地理空间中所指向的方向也将变化。其中,所述地理空间指的是在地球大环境下的空间,也即经纬度空间。其中,所述卫星天线400的天线最佳方向也可称为最大辐射方向,或者最大增益方向,即,就所述卫星天线400本身而言,在所述天线最佳方向上进行电磁波信号的收发时,辐射能量以及增益是最大的。Wherein, the satellite antenna 400 is set at a specific position in the electronic device 1000 according to the design requirements of the electronic device 1000, and for the electronic device 1000, after the electronic device 1000 is manufactured, the The position of the satellite antenna 400 on the electronic device 1000 is fixed, and the optimal direction of the antenna of the satellite antenna 400 is also fixed relative to the electronic device 1000 . Therefore, as the placement posture of the electronic device 1000 changes, the direction in which the optimal antenna direction of the satellite antenna 400 points in the geographical space will also change. Wherein, the geographical space refers to the space under the environment of the earth, that is, the space of longitude and latitude. Wherein, the optimal antenna direction of the satellite antenna 400 can also be referred to as the maximum radiation direction, or the maximum gain direction, that is, as far as the satellite antenna 400 itself is concerned, the electromagnetic wave signal is transmitted and received in the optimal direction of the antenna. When , the radiated energy and gain are maximum.

其中,图1-图2介绍的为所述电子设备1000的基本结构,基于上述基本结构,本申请提供了一种引导调整卫星天线指向方向的方法,本申请的方法部分中,涉及到电子设备1000的图示,以所述电子设备1000为例进行说明。然而,需要了解的是,本申请的引导调整卫星天线指向方向的方法并不限于应用于图1-图2所示的电子设备。Among them, Figures 1-2 introduce the basic structure of the electronic device 1000. Based on the above basic structure, this application provides a method for guiding and adjusting the pointing direction of a satellite antenna. In the method part of this application, it involves electronic equipment The illustration of 1000 is described by taking the electronic device 1000 as an example. However, it should be understood that the method for guiding and adjusting the pointing direction of a satellite antenna in the present application is not limited to be applied to the electronic devices shown in FIGS. 1-2 .

请参阅图3,为本申请一实施例中的引导调整卫星天线指向方向的方法的流程图,所述方法应用于一电子设备中,如前所述的,所述电子设备包括卫星天线以及显示屏,如图3所示,所述方法包括:Please refer to FIG. 3 , which is a flowchart of a method for guiding and adjusting the pointing direction of a satellite antenna in an embodiment of the present application. The method is applied to an electronic device. As mentioned above, the electronic device includes a satellite antenna and a display screen, as shown in Figure 3, the method includes:

S301:获取所述卫星天线的天线最佳方向,其中,所述天线最佳方向为卫星天线指向方向。S301: Obtain an optimal antenna direction of the satellite antenna, where the optimal antenna direction is a pointing direction of the satellite antenna.

S303:获取用于与所述卫星天线进行通信的卫星相对于所述电子设备的卫星方向。S303: Obtain a satellite direction of a satellite used for communicating with the satellite antenna relative to the electronic device.

S305:根据所述天线最佳方向控制在所述显示屏上显示第一指示标记,以及根据所述卫星方向控制在所述显示屏上显示第二指示标记,其中,所述第一指示标记用于至少指示所述天线最佳方向,所述第二指示标记用于指示所述卫星方向,以通过所述第一指示标记以及第二指示标记引导对卫星天线指向方向进行调整。S305: Controlling to display a first indicator on the display screen according to the optimal direction of the antenna, and controlling displaying a second indicator on the display screen according to the satellite direction, wherein the first indicator is used In order to at least indicate the optimal direction of the antenna, the second indicator mark is used to indicate the direction of the satellite, so as to adjust the pointing direction of the satellite antenna guided by the first indicator mark and the second indicator mark.

从而,本申请中,通过在显示屏上显示用于至少指示所述天线最佳方向的所述第一指示标记以及用于指示所述卫星方向的第二指示标识,可以直观地告知用户所述天线最佳方向与所述卫星方向的角度偏差,从而,引导用户对卫星天线指向方向进行调整,例如引导用户调整所述电子设备的放置姿态,而调整所述卫星天线指向方向,使得所述卫星天线指向方向与所述卫星方向相同或大致相同,从而有效提升所述卫星天线的实际增益,而提高卫星通信质量。Therefore, in the present application, by displaying the first indicator for at least indicating the optimal direction of the antenna and the second indicator for indicating the direction of the satellite on the display screen, the user can be intuitively informed of the The angle deviation between the optimal direction of the antenna and the direction of the satellite, thereby guiding the user to adjust the pointing direction of the satellite antenna, for example, guiding the user to adjust the placement posture of the electronic device, and adjusting the pointing direction of the satellite antenna so that the satellite The pointing direction of the antenna is the same or roughly the same as the direction of the satellite, thereby effectively increasing the actual gain of the satellite antenna and improving the quality of satellite communication.

其中,本申请中的所述天线最佳方向为卫星天线指向方向,所述引导调整卫星天线指向方向,也即指的是引导用户调整电子设备的放置姿态而调整天线最佳方向。Wherein, the optimal direction of the antenna in this application is the pointing direction of the satellite antenna, and the guide to adjust the pointing direction of the satellite antenna refers to guiding the user to adjust the placement posture of the electronic device to adjust the optimal direction of the antenna.

请参阅图4,为本申请一实施例中的在显示屏500上显示的第一指示标记和第二指示标记的示意图。如图4所示,所述显示屏500上显示有第一指示标记B1以及第二指示标记B2,其中,所述第一指示标记B1以及第二指示标记B2的显示参数不同,所述显示参数至少包括颜色、图案中的一种。其中,所述第一指示标记B1以及第二指示标记B2之间的距离与所述天线最佳方向与所述卫星方向的角度偏差正相关,即,所述第一指示标记B1以及第二指示标记B2之间的距离越小,所述天线最佳方向与所述卫星方向的角度偏差也越小,所述第一指示标记B1以及第二指示标记B2之间的距离越大,所述天线最佳方向与所述卫星方向的角度偏差越大。其中,图4仅仅是一个示例图,所述第一指示标记B1以及所述第二指示标记B2并不限于图4所示的颜色或图案。Please refer to FIG. 4 , which is a schematic diagram of a first indicator mark and a second indicator mark displayed on a display screen 500 in an embodiment of the present application. As shown in FIG. 4, a first indicator B1 and a second indicator B2 are displayed on the display screen 500, wherein the display parameters of the first indicator B1 and the second indicator B2 are different, and the display parameters Include at least one of color and pattern. Wherein, the distance between the first indicator mark B1 and the second indicator mark B2 is positively correlated with the angle deviation between the optimal direction of the antenna and the direction of the satellite, that is, the first indicator mark B1 and the second indicator mark The smaller the distance between the marks B2, the smaller the angle deviation between the optimal direction of the antenna and the direction of the satellite, and the larger the distance between the first indicator mark B1 and the second indicator mark B2, the greater the distance between the antenna optimal direction and the satellite direction. The greater the angular deviation of the optimal direction from the satellite direction. Wherein, FIG. 4 is only an example diagram, and the first indicator mark B1 and the second indicator mark B2 are not limited to the colors or patterns shown in FIG. 4 .

在一些实施例中,所述方法还包括:响应对所述电子设备的放置姿态的调整操作,而控制所述显示屏上显示的第二指示标记和所述第一指示标记之间的位置关系相应变化,从而提示所述天线最佳方向和所述卫星方向的角度偏差的变化,而引导通过调整所述电子设备1000的放置姿态,实现对卫星天线指向方向进行调整。其中,所述显示屏上显示的第二指示标记和所述第一指示标记之间的位置关系包括距离和相对方向。In some embodiments, the method further includes: controlling the positional relationship between the second indicator displayed on the display screen and the first indicator in response to the adjustment operation on the placement posture of the electronic device Corresponding changes, thereby prompting changes in the angle deviation between the optimal direction of the antenna and the direction of the satellite, and guiding the adjustment of the pointing direction of the satellite antenna by adjusting the placement posture of the electronic device 1000 . Wherein, the positional relationship between the second indicator displayed on the display screen and the first indicator includes a distance and a relative direction.

从而,用户在执行用于调整所述电子设备的放置姿态的调整操作时,可通过观察所述显示屏上显示的第二指示标记和所述第一指示标记之间的位置关系的变化,而可确定对电子设备的放置姿态进行调整的角度和方向,使得第二指示标记和所述第一指示标记的位置靠近,从而实现将所述卫星天线的天线最佳方向调节为与所述卫星方向相同或大致相同。在一些实施例中,用户可通过操作手册或者新机引导程序等了解所述第一指示标记以及第二指示标记之间的距离越小,所述天线最佳方向与所述卫星方向的角度偏差也越小这一关系。其中,用户可握持所述电子设备而通过转动所述电子设备等方式来调整所述电子设备的放置姿态。Therefore, when the user performs the adjustment operation for adjusting the placement posture of the electronic device, he can observe the change of the positional relationship between the second indicator mark and the first indicator mark displayed on the display screen. The angle and direction for adjusting the placement attitude of the electronic device can be determined, so that the positions of the second indicator mark and the first indicator mark are close to each other, so that the optimal direction of the antenna of the satellite antenna is adjusted to be in line with the direction of the satellite. the same or approximately the same. In some embodiments, the user can know the smaller the distance between the first indicator mark and the second indicator mark through the operation manual or the new machine guide program, the smaller the angle deviation between the optimal direction of the antenna and the direction of the satellite. Also the smaller this relationship. Wherein, the user may hold the electronic device and adjust the placement posture of the electronic device by rotating the electronic device or the like.

在一些实施例中,所述第一指示标记在所述显示屏上的位置固定不动,所述第二指示标记在所述显示屏上的位置跟随所述电子设备的放置姿态的变化而变化,所述卫星天线400的指向方向跟随所述电子设备的放置姿态的变化而变化,所述响应对所述电子设备的放置姿态的调整操作,而控制所述显示屏上显示的第二指示标记和所述第一指示标记之间的位置关系相应变化,可包括:响应对所述电子设备的放置姿态的调整操作,而控制所述第二指示标记相应移动,从而使得所述显示屏上显示的第二指示标记和所述第一指示标记之间的位置关系相应变化。In some embodiments, the position of the first indicator mark on the display screen is fixed, and the position of the second indicator mark on the display screen changes as the position of the electronic device changes. , the pointing direction of the satellite antenna 400 changes following the change of the placement posture of the electronic device, and the second indication mark displayed on the display screen is controlled in response to the adjustment operation of the placement posture of the electronic device The positional relationship between the first indicator mark and the corresponding change may include: responding to the adjustment operation of the placement posture of the electronic device, controlling the second indicator mark to move correspondingly, so that the display screen displays The positional relationship between the second indicator mark and the first indicator mark changes accordingly.

其中,所述第一指示标记的位置至少包括了所述天线最佳方向映射在所述显示屏上的位置,所述第二指示标记为所述卫星方向映射在所述显示屏上的位置。如前所述的,一般而言,在电子设备制造完成后,所述卫星天线在所述电子设备的位置固定,且所述卫星天线的天线最佳方向相对于所述电子设备也是固定的,即相对于所述电子设备的显示屏的来说是保持固定的,本申请中,因此,不论所述电子设备如何摆放,根据所述天线最佳方向控制在所述显示屏上显示的第一指示标记在所述显示屏上的位置固定不动的。而由于所述第二指示标记为所述卫星方向映射在所述显示屏上的位置,当所述电子设备的摆放姿态变化时,所述显示屏的平面与所述卫星方向的角度将发生变化,因此,所述第二指示标记在所述显示屏上的位置跟随所述电子设备的放置姿态的变化而变化。而如前所述的,由于所述卫星天线指向方向也即所述卫星天线的天线最佳方向与所述电子设备保持固定,因此,在所述电子设备的放置姿态变化时,所述卫星天线指向方向也跟随所述电子设备的放置姿态的变化而变化。Wherein, the position of the first indication mark at least includes the position where the optimal direction of the antenna is mapped on the display screen, and the second indication mark is the position where the satellite direction is mapped on the display screen. As mentioned above, generally speaking, after the electronic equipment is manufactured, the position of the satellite antenna on the electronic equipment is fixed, and the optimal direction of the antenna of the satellite antenna is also fixed relative to the electronic equipment, That is, it remains fixed relative to the display screen of the electronic device. In this application, no matter how the electronic device is placed, the first display displayed on the display screen is controlled according to the optimal direction of the antenna. The position of an indicator mark on the display screen is fixed. Since the second indicator is the position where the satellite direction is mapped on the display screen, when the posture of the electronic device changes, the angle between the plane of the display screen and the satellite direction will change. Therefore, the position of the second indication mark on the display screen changes as the placement posture of the electronic device changes. As mentioned above, since the pointing direction of the satellite antenna, that is, the optimal direction of the antenna of the satellite antenna, remains fixed with the electronic device, therefore, when the placement attitude of the electronic device changes, the satellite antenna The pointing direction also changes following the change of the placement posture of the electronic device.

从而,响应对所述电子设备的放置姿态的调整操作而控制所述第二指示标记相应移动后,使得所述第二指示标记和所述第一指示标记之间的位置关系发生变化,而可直观且有效地引导用户通过调整所述电子设备的放置姿态使得所述第二指示标记和所述第一指示标记尽量靠近,实现将卫星天线指向方向调整为指向或大致指向卫星的位置,也即将所述卫星天线的天线最佳方向调节为与所述卫星方向相同或大致相同,从而提高天线增益。Therefore, after the corresponding movement of the second indicator mark is controlled in response to the adjustment operation of the placement posture of the electronic device, the positional relationship between the second indicator mark and the first indicator mark changes, and the Intuitively and effectively guide the user to adjust the position of the electronic device so that the second indicator and the first indicator are as close as possible to adjust the pointing direction of the satellite antenna to point or roughly point to the position of the satellite, that is, to The optimal direction of the antenna of the satellite antenna is adjusted to be the same or approximately the same as the direction of the satellite, thereby increasing the gain of the antenna.

请一并参阅图5及图6,图5为本申请一实施例中的所述电子设备1000处于第一放置姿态的示意图,图6为本申请一实施例中的调整所述电子设备的放置姿态为第二放置姿态的示意图。Please refer to FIG. 5 and FIG. 6 together. FIG. 5 is a schematic diagram of the electronic device 1000 in the first placement posture in an embodiment of the present application, and FIG. 6 is a schematic diagram of adjusting the placement of the electronic device in an embodiment of the present application. The attitude is a schematic diagram of the second placement attitude.

其中,所述卫星天线的天线最佳方向相对于所述电子设备1000是固定不变的,因此会随着所述电子设备1000的放置姿态的变化而变化,而所述卫星方向指的是所述卫星相对于所述电子设备1000的方向,由于卫星围绕地球转动的周期往往较长,在一定时间内,卫星相对于所述电子设备1000的卫星方向也是可以视为不变的。因此,如图5所示,当所述卫星天线处于第一放置姿态,所述卫星天线的天线最佳方向与所述卫星方向的偏差角度较大。Wherein, the optimal antenna direction of the satellite antenna is fixed relative to the electronic device 1000, so it will change with the change of the placement posture of the electronic device 1000, and the satellite direction refers to the The direction of the satellite relative to the electronic device 1000 may be regarded as constant within a certain period of time because the satellite rotates around the earth with a relatively long period. Therefore, as shown in FIG. 5 , when the satellite antenna is in the first placement posture, the angle of deviation between the optimal direction of the satellite antenna and the direction of the satellite is relatively large.

其中,如图5及图6所示,用户握持所述电子设备1000时,面朝所述电子设备1000的显示屏500,从而,可观看所述显示屏500上显示的第一指示标记和第二指示标记。如图6所示,用户可根据所述第一指示标记和第二指示标记的指引,调整电子设备的放置姿态而调整所述卫星天线的天线最佳方向,如图6所示,当所述电子设备处于第二放置姿态时,所述卫星天线的天线最佳方向与所述卫星方向相同或大致相同。Wherein, as shown in FIG. 5 and FIG. 6 , when the user holds the electronic device 1000, he or she faces the display screen 500 of the electronic device 1000, so that the user can watch the first indication mark and the display screen 500 displayed on the display screen 500. Second indicator mark. As shown in Figure 6, the user can adjust the placement posture of the electronic device to adjust the optimal antenna direction of the satellite antenna according to the guidance of the first indicator mark and the second indicator mark, as shown in Figure 6, when the When the electronic device is in the second placement attitude, the optimal antenna direction of the satellite antenna is the same or substantially the same as the satellite direction.

从而,本申请中,通过显示所述第一指示标记和所述第二指示标记进行指引,可有效引导用户去调整电子设备的放置姿态而使得所述卫星天线的天线最佳方向与所述卫星方向相同或大致相同。Therefore, in this application, by displaying the first indicator mark and the second indicator mark for guidance, the user can be effectively guided to adjust the placement posture of the electronic device so that the optimal direction of the antenna of the satellite antenna is in line with that of the satellite. in the same or approximately the same direction.

在一些实施例中,所述获取卫星天线400的天线最佳方向,包括:获取所述卫星天线的天线最佳方向在电子设备坐标系中的天线方向单位向量,其中,所述电子设备坐标系为以垂直于所述显示屏的方向为Z轴,以平行于所述显示屏的短边方向为X轴,以平行于所述显示屏的长边方向为Y轴建立的坐标系。In some embodiments, the obtaining the optimal antenna direction of the satellite antenna 400 includes: obtaining the antenna direction unit vector of the optimal antenna direction of the satellite antenna in the electronic device coordinate system, wherein the electronic device coordinate system A coordinate system is established with the direction perpendicular to the display screen as the Z axis, the direction parallel to the short side of the display screen as the X axis, and the direction parallel to the long side of the display screen as the Y axis.

即,在一些实施例中,所述获取到的卫星天线400的天线最佳方向具体可为天线最佳方向在电子设备坐标系中的天线方向单位向量。其中,所述天线方向单位向量的方向与所述天线最佳方向在所述电子设备坐标系中的方向相同,所述天线方向单位向量的长度为单位长度。That is, in some embodiments, the obtained optimal antenna direction of the satellite antenna 400 may specifically be an antenna direction unit vector of the optimal antenna direction in the electronic device coordinate system. Wherein, the direction of the antenna direction unit vector is the same as the direction of the antenna optimal direction in the electronic device coordinate system, and the length of the antenna direction unit vector is a unit length.

其中,如前所述的,所述卫星天线的天线最佳方向相对于所述电子设备是固定的,因此,所述卫星天线的天线最佳方向在电子设备坐标系中的天线方向单位向量也是固定的,例如可为预先存储于所述电子设备1000的存储器中的。因此,所述获取所述卫星天线的天线最佳方向在电子设备坐标系中的天线方向单位向量,可进一步包括:从所述电子设备1000的存储器中获取预先存储的所述卫星天线的天线最佳方向在电子设备坐标系中的天线方向单位向量。Wherein, as mentioned above, the optimal antenna direction of the satellite antenna is fixed relative to the electronic device, therefore, the antenna direction unit vector of the optimal antenna direction of the satellite antenna in the electronic device coordinate system is also fixed, for example, may be pre-stored in the memory of the electronic device 1000 . Therefore, the obtaining the antenna direction unit vector of the antenna optimal direction of the satellite antenna in the electronic device coordinate system may further include: obtaining the pre-stored optimal antenna direction of the satellite antenna from the memory of the electronic device 1000 The best direction is the antenna direction unit vector in the electronic equipment coordinate system.

在一些实施例中,所述根据所述天线最佳方向控制在所述显示屏上显示第一指示标记,包括:确定所述天线方向单位向量在所述电子设备坐标系中的天线坐标位置;根据所述天线坐标位置确定所述天线方向单位向量映射在显示屏上的第一目标位置;以及控制在所述显示屏上的所述第一目标位置显示所述第一指示标记。In some embodiments, the controlling to display the first indication mark on the display screen according to the optimal direction of the antenna includes: determining the antenna coordinate position of the antenna direction unit vector in the electronic device coordinate system; determining a first target position on a display screen where the antenna direction unit vector is mapped according to the antenna coordinate position; and controlling the display of the first indicator mark at the first target position on the display screen.

即,在一些实施例中,为通过确定所述天线方向单位向量在所述电子设备坐标系中的天线坐标位置后,然后确定所述天线方向单位向量映射在显示屏上的第一目标位置,从而作为天线最佳方向映射在所述显示屏上的位置,并控制在所述显示屏上的所述第一目标位置显示所述第一指示标记,而可将天线最佳方向映射在显示屏上的第一目标位置并通过所述第一指示标记进行直观地指示。That is, in some embodiments, after determining the antenna coordinate position of the antenna direction unit vector in the electronic device coordinate system, and then determining the first target position of the antenna direction unit vector mapped on the display screen, Therefore, as the position on the display screen where the optimal direction of the antenna is mapped, and the display of the first indicator mark is controlled at the first target position on the display screen, the optimal direction of the antenna can be mapped on the display screen The first target position on the screen is visually indicated by the first indicator mark.

在一些实施例中,所述确定所述天线方向单位向量在所述电子设备坐标系中的坐标位置,包括:分别确定所述天线方向单位向量在所述电子设备坐标系中的X轴、Y轴以及Z轴上的投影对应的坐标值,而得到所述天线方向单位向量在所述电子设备坐标系中的坐标位置。In some embodiments, the determining the coordinate position of the antenna direction unit vector in the electronic device coordinate system includes: separately determining the X axis and Y axis of the antenna direction unit vector in the electronic device coordinate system The coordinate values corresponding to the projection on the axis and the Z axis are obtained to obtain the coordinate position of the antenna direction unit vector in the coordinate system of the electronic device.

请参阅图7,为本申请一实施例中的电子设备1000处于正放状态下时的电子设备坐标系的示意图。如图7所示,所述电子设备坐标系为以垂直于所述显示屏500的方向为Z轴,以平行于所述显示屏500的短边方向为X轴,以平行于所述显示屏500的长边方向为Y轴建立的坐标系,所述天线方向单位向量

Figure 825406DEST_PATH_IMAGE001
,如图7中所示,从而,所述天线方向单位向量
Figure 468877DEST_PATH_IMAGE002
对应的X坐标、Y坐标以及Z坐标即分别为所述电子设备坐标系中的X轴、Y轴以及Z轴上的投影对应的坐标值,因此,可通过分别确定所述天线方向单位向量在所述电子设备坐标系中的X轴、Y轴以及Z轴上的投影对应的坐标值,则可得到所述天线方向单位向量在所述电子设备坐标系中的坐标位置。Please refer to FIG. 7 , which is a schematic diagram of an electronic device coordinate system when the electronic device 1000 is in a normal state in an embodiment of the present application. As shown in FIG. 7 , the coordinate system of the electronic device is that the direction perpendicular to the display screen 500 is the Z axis, the direction parallel to the short side of the display screen 500 is the X axis, and the direction parallel to the display screen 500 is the X axis. The long side direction of 500 is the coordinate system established by the Y axis, and the antenna direction unit vector
Figure 825406DEST_PATH_IMAGE001
, as shown in Figure 7, thus, the antenna direction unit vector
Figure 468877DEST_PATH_IMAGE002
The corresponding X coordinates, Y coordinates, and Z coordinates are the coordinate values corresponding to the projections on the X axis, Y axis, and Z axis in the electronic device coordinate system, respectively. Therefore, the antenna direction unit vector can be respectively determined in Coordinate values corresponding to projections on the X-axis, Y-axis, and Z-axis in the electronic device coordinate system can obtain the coordinate position of the antenna direction unit vector in the electronic device coordinate system.

其中,所述电子设备1000处于正放状态指的是所述电子设备的显示屏朝向用户,且顶端朝上,底端朝下的放置状态。Wherein, the electronic device 1000 being in the upright state refers to a placement state in which the display screen of the electronic device faces the user, with the top facing upward and the bottom facing downward.

进一步的,所述天线方向单位向量

Figure 7306DEST_PATH_IMAGE003
定义了方向,所述方向即为天线方向单位向量
Figure 736227DEST_PATH_IMAGE004
分别与电子设备坐标系中的X轴、Y轴以及Z轴的夹角,从而,可通过将天线方向单位向量
Figure 503457DEST_PATH_IMAGE005
的单位长度根据与各个轴的夹角求余弦,即可得到所述天线方向单位向量在所述电子设备坐标系中的X轴、Y轴以及Z轴上的投影对应的坐标值。例如,天线方向单位向量
Figure 1435DEST_PATH_IMAGE003
与电子设备坐标系中的X轴的夹角为
Figure 507502DEST_PATH_IMAGE006
,由于单位向量的长度为单位长度,即为1,则所述天线方向单位向量
Figure 395824DEST_PATH_IMAGE003
在所述电子设备坐标系中的X轴上的坐标值即为
Figure 278329DEST_PATH_IMAGE007
。Further, the antenna direction unit vector
Figure 7306DEST_PATH_IMAGE003
The direction is defined, which is the antenna direction unit vector
Figure 736227DEST_PATH_IMAGE004
The included angles with the X-axis, Y-axis and Z-axis in the coordinate system of the electronic equipment respectively, thus, the antenna direction unit vector can be calculated by
Figure 503457DEST_PATH_IMAGE005
Calculate the cosine of the unit length according to the included angle with each axis, and the coordinate values corresponding to the projection of the antenna direction unit vector on the X-axis, Y-axis, and Z-axis in the electronic device coordinate system can be obtained. For example, the antenna direction unit vector
Figure 1435DEST_PATH_IMAGE003
The included angle with the X-axis in the electronic equipment coordinate system is
Figure 507502DEST_PATH_IMAGE006
, since the length of the unit vector is unit length, which is 1, then the antenna direction unit vector
Figure 395824DEST_PATH_IMAGE003
The coordinate value on the X-axis in the coordinate system of the electronic device is
Figure 278329DEST_PATH_IMAGE007
.

请一并参阅图8,为本申请一实施例中的电子设备处于侧视状态下时的电子设备坐标系的示意图。在一些实施例中,所述电子设备坐标系具体还以所述显示屏500的中心作为坐标原点o,其中,垂直于所述显示屏500且指向所述显示屏500的观看侧的方向为Z轴正方向,相应的,垂直于所述显示屏500且指向所述电子设备1000的背面F1的方向为Z轴负方向。其中,所述根据所述天线坐标位置确定所述天线方向单位向量映射在显示屏500上的第一目标位置,包括:获取一预先设定的位于电子设备坐标系的Z轴正半轴上的观测点P1的观测点坐标位置,所述观测点P1与所述坐标原点o间隔预设距离,所述观测点P1在所述显示屏500上的投影与所述作为坐标原点o的显示屏的中心重合;根据所述观测点坐标位置以及所述天线坐标位置计算得到观测点P1与天线坐标位置点A1的连线和所述显示屏500的交点的第一交点坐标位置,并将所述显示屏500上的第一交点坐标位置作为所述第一目标位置,其中,所述天线坐标位置点A1为所述天线坐标位置对应的点,所述天线坐标位置中的Z轴坐标为负。Please also refer to FIG. 8 , which is a schematic diagram of an electronic device coordinate system when the electronic device is in a side view state in an embodiment of the present application. In some embodiments, the coordinate system of the electronic device specifically takes the center of the display screen 500 as the coordinate origin o, wherein the direction perpendicular to the display screen 500 and pointing to the viewing side of the display screen 500 is Z The positive direction of the axis, correspondingly, the direction perpendicular to the display screen 500 and pointing to the back surface F1 of the electronic device 1000 is the negative direction of the Z axis. Wherein, the determining the first target position of the antenna direction unit vector mapped on the display screen 500 according to the antenna coordinate position includes: obtaining a preset position located on the positive half axis of the Z axis of the electronic device coordinate system The coordinate position of the observation point of the observation point P1, the observation point P1 is separated from the coordinate origin o by a preset distance, the projection of the observation point P1 on the display screen 500 and the display screen as the coordinate origin o The center coincides; according to the coordinate position of the observation point and the coordinate position of the antenna, the first intersection coordinate position of the connection line between the observation point P1 and the antenna coordinate position point A1 and the intersection point of the display screen 500 is calculated, and the display The coordinate position of the first intersection point on the screen 500 is used as the first target position, wherein the antenna coordinate position point A1 is a point corresponding to the antenna coordinate position, and the Z-axis coordinate in the antenna coordinate position is negative.

其中,如图8所示的,前述的所述电子设备坐标系以所述显示屏500的中心作为坐标原点o,以垂直于所述显示屏500的方向为Z轴,以平行于所述显示屏500的短边方向为X轴,以平行于所述显示屏500的长边方向为Y轴,所述显示屏500具体指的是显示屏500的屏面,即,显示屏最外侧的面,本申请中的显示屏500所在的平面,也指的是显示屏500的屏面所在的平面。Wherein, as shown in FIG. 8 , the aforesaid electronic device coordinate system takes the center of the display screen 500 as the coordinate origin o, the direction perpendicular to the display screen 500 as the Z axis, and the direction parallel to the display screen 500 as the Z axis. The short side direction of the screen 500 is the X axis, and the long side direction parallel to the display screen 500 is the Y axis. The display screen 500 specifically refers to the screen surface of the display screen 500, that is, the outermost surface of the screen , the plane where the display screen 500 is located in this application also refers to the plane where the screen of the display screen 500 is located.

通常情况下,电子设备的显示屏500会对天线的辐射造成遮挡,因此,通常情况下,天线的辐射方向都是设计为朝向电子设备的背面并与所述背面呈一定角度,因此,所述电子设备坐标系垂直于所述显示屏且指向所述显示屏的观看侧的方向为Z轴正方向时,本申请的卫星天线的天线最佳方向的天线单位向量指向的则是Z轴负方向,因此,所述天线坐标位置中的Z轴坐标为负。Usually, the display screen 500 of the electronic device will block the radiation of the antenna. Therefore, usually, the radiation direction of the antenna is designed to face the back of the electronic device and form a certain angle with the back. Therefore, the When the coordinate system of the electronic equipment is perpendicular to the display screen and the direction pointing to the viewing side of the display screen is the positive direction of the Z-axis, the antenna unit vector of the best antenna direction of the satellite antenna of the present application points to the negative direction of the Z-axis , therefore, the Z-axis coordinate in the antenna coordinate position is negative.

在一些实施例中,所述根据所述观测点坐标位置以及所述天线坐标位置计算得到观测点P1与天线坐标位置点A1的连线和所述显示屏500的交点的第一交点坐标位置,可包括:In some embodiments, the coordinate position of the first intersection point of the intersection of the line connecting the observation point P1 and the antenna coordinate position point A1 and the display screen 500 is calculated according to the coordinate position of the observation point and the coordinate position of the antenna, May include:

根据公式X1=L*x0/(L-z0)以及y1=L*y0/(L-z0),计算得出所述第一交点坐标位置中的X轴坐标以及Y轴坐标,从而得到所述第一交点坐标位置(x1,y1,z1);其中,所述x1为所述第一交点坐标位置中的X轴坐标,所述y1为所述第一交点坐标位置中的Y轴坐标,所述z1为所述第一交点坐标位置中的z轴坐标,由于所述交点位于所述显示屏上,因此z1=0,所述L为所述观测点的Z轴坐标,所述x0为所述天线坐标位置的X轴坐标,所述y0为所述天线坐标位置的Y轴坐标,所述z0为所述天线坐标位置的Z轴坐标。According to the formula X1=L*x0/(L-z0) and y1=L*y0/(L-z0), the X-axis coordinate and the Y-axis coordinate in the coordinate position of the first intersection point are calculated to obtain the described The first intersection coordinate position (x1, y1, z1); wherein, the x1 is the X-axis coordinate in the first intersection coordinate position, and the y1 is the Y-axis coordinate in the first intersection coordinate position, so The z1 is the z-axis coordinate in the coordinate position of the first intersection point, since the intersection point is located on the display screen, z1=0, the L is the Z-axis coordinate of the observation point, and the x0 is the The X-axis coordinate of the antenna coordinate position, the y0 is the Y-axis coordinate of the antenna coordinate position, and the z0 is the Z-axis coordinate of the antenna coordinate position.

其中,如图8所示,设观测点P1与天线坐标位置点A1的连线和所述显示屏500的交点为B1,根据相似三角形的各边的比值相等可以得出:x1/x0=y1/y0=(L-z1)/(L-z0),其中,由于z1为0,因此,可以进一步得出x1/x0=y1/y0=L/(L-z0),从而,可以得到上面的两个公式X1=L*x0/(L-z0)以及y1=L*y0/(L-z0)。Wherein, as shown in Figure 8, the intersection point of the connection line between the observation point P1 and the antenna coordinate position point A1 and the display screen 500 is B1, and the ratios of the sides of similar triangles are equal to draw: x1/x0=y1 /y0=(L-z1)/(L-z0), where, since z1 is 0, it can be further obtained that x1/x0=y1/y0=L/(L-z0), thus, the above can be obtained Two formulas X1=L*x0/(L-z0) and y1=L*y0/(L-z0).

其中,图8中示意出的是天线坐标位置点A1与该交点B1在YZ平面上的投影构成相似三角形的示意图,根据图8可以得出,天线坐标位置点A1在YZ平面上的投影点与观测点P1的连线以及Z轴构成的直角三角形,与交点B1在YZ平面上的投影点与观测点P1的连线以及Z轴构成的另一直角三角形是相似三角形,从而可得出,y1/y0=(L-z1)/(L-z0)。相应的,通过将天线坐标位置点A1与该交点B1在XZ平面上的投影构成相似三角形,可以得出x1/x0=(L-z1)/(L-z0),因此,可以得出x1/x0=y1/y0=(L-z1)/(L-z0)。Wherein, Fig. 8 schematically shows a schematic diagram of a similar triangle formed by the projection of the antenna coordinate position point A1 and the intersection point B1 on the YZ plane. According to Fig. 8, it can be drawn that the projection point of the antenna coordinate position point A1 on the YZ plane is the same as The right triangle formed by the line connecting the observation point P1 and the Z axis, and the line connecting the projection point of the intersection point B1 on the YZ plane and the observation point P1 and another right triangle formed by the Z axis are similar triangles, so it can be concluded that y1 /y0=(L-z1)/(L-z0). Correspondingly, by forming a similar triangle with the projection of the antenna coordinate position point A1 and the intersection point B1 on the XZ plane, it can be obtained that x1/x0=(L-z1)/(L-z0), therefore, it can be obtained that x1/ x0=y1/y0=(L-z1)/(L-z0).

其中,如果未引入所述观测点P1,那么实际上天线坐标位置点A1与坐标原点o的连线的方向才更与所述天线方向单位向量相同,因此,会导致所述第一指示标记位于坐标原点o,而如后可以得知,在卫星方向映射到所述显示屏上时,也会存在同样的问题,也会导致第二指示标记都位于坐标原点o。从而,通过引入所述观测点P1,可以使得所述第一指示标记在所述显示屏上的位置尽量不位于所述显示屏的中心,而避免所述第一指示标记与所述第二指示标记在所述卫星天线的天线最佳方向与所述卫星方向未对齐的情况下就在所述显示屏的中心重合。Wherein, if the observation point P1 is not introduced, then in fact, the direction of the line connecting the antenna coordinate position point A1 and the coordinate origin o is more the same as the antenna direction unit vector, therefore, the first indicator mark will be located at The coordinate origin o, and as can be known later, when the satellite direction is mapped onto the display screen, the same problem will also exist, and the second indicator marks will also be located at the coordinate origin o. Therefore, by introducing the observation point P1, the position of the first indicator mark on the display screen may not be located in the center of the display screen as much as possible, so as to avoid the difference between the first indicator mark and the second indicator mark. The marker coincides with the center of the display screen in the event that the antenna optimum direction of the satellite dish is not aligned with the satellite direction.

其中,如图7所示,在所述电子设备坐标系中,在显示屏500面向使用者的正放状态下,平行于所述显示屏的短边且指向右方的方向为X轴正方向,所述平行于所述显示屏的长边方向且指向上方,也即平行于所述显示屏的长边方向且指向所述电子设备1000的顶部的方向为Y轴正方向。Wherein, as shown in FIG. 7 , in the coordinate system of the electronic device, when the display screen 500 is facing the user, the direction parallel to the short side of the display screen and pointing to the right is the positive direction of the X-axis. , the direction parallel to the long side direction of the display screen and pointing upward, that is, the direction parallel to the long side direction of the display screen and pointing to the top of the electronic device 1000 is the positive direction of the Y axis.

在一些实施例中,所述获取用于与所述卫星天线进行通信的卫星相对于所述电子设备的卫星方向,包括:获取所述卫星在大地坐标系中相对于所述电子设备的卫星方向单位向量,其中,所述大地坐标系为以大地平面为XY平面,以重力方向为Z轴建立的坐标系。In some embodiments, the obtaining the satellite direction of the satellite used for communicating with the satellite antenna relative to the electronic device includes: obtaining the satellite direction of the satellite relative to the electronic device in a geodetic coordinate system A unit vector, wherein the earth coordinate system is a coordinate system established with the earth plane as the XY plane and the gravity direction as the Z axis.

即,如前所述的,所述卫星方向是所述卫星相对于所述电子设备的方向,且具体的,获取所述卫星方向是获取所述卫星在大地坐标系中相对于所述电子设备的卫星方向单位向量。其中,所述卫星方向单位向量的方向在所述大地坐标系中与所述卫星方向相同,且长度为单位长度,其中,所述卫星方向单位向量的长度与所述天线方向单位向量的长度相同。That is, as mentioned above, the satellite direction is the direction of the satellite relative to the electronic device, and specifically, obtaining the satellite direction is obtaining the satellite relative to the electronic device in the geodetic coordinate system The satellite direction unit vector of . Wherein, the direction of the satellite direction unit vector is the same as the satellite direction in the geodetic coordinate system, and the length is unit length, wherein the length of the satellite direction unit vector is the same as the length of the antenna direction unit vector .

其中,在一些实施例中,所述获取所述卫星在大地坐标系中相对于所述电子设备的卫星方向单位向量,还可包括:通过和所述卫星通信,同步得到所述卫星的经纬度坐标,通过GPS系统等确定所述电子设备的经纬度坐标,根据所述卫星的经纬度坐标以及所述电子设备的经纬度坐标确定得到所述卫星在大地坐标系中相对于所述电子设备的卫星方向单位向量。Wherein, in some embodiments, the acquiring the satellite direction unit vector of the satellite relative to the electronic device in the geodetic coordinate system may further include: synchronously obtaining the latitude and longitude coordinates of the satellite by communicating with the satellite , determine the latitude and longitude coordinates of the electronic device through the GPS system, and determine the satellite direction unit vector of the satellite relative to the electronic device in the geodetic coordinate system according to the latitude and longitude coordinates of the satellite and the latitude and longitude coordinates of the electronic device .

其中,所述经纬度坐标即为所述大地坐标系中的坐标。Wherein, the latitude and longitude coordinates are coordinates in the earth coordinate system.

其中,本申请中,所述大地坐标系和所述电子设备坐标系均为直角坐标系,仅仅是建立的参考平面(XY平面)有所不同,所述大地坐标系为以大地平面为参考平面,而所述电子设备坐标系为以所述显示屏所在的平面为参考平面,由于所述电子设备的放置姿态的不同时,所述显示屏所在的平面不同,因此,所述电子设备坐标系中的X轴、Y轴以及Z轴的方向根据所述电子设备的放置姿态的不同而不同。Wherein, in this application, the earth coordinate system and the electronic equipment coordinate system are Cartesian coordinate systems, only the reference plane (XY plane) established is different, and the earth coordinate system takes the earth plane as the reference plane , and the coordinate system of the electronic device is based on the plane where the display screen is located as a reference plane. Since the placement posture of the electronic device is different, the plane where the display screen is located is different. Therefore, the coordinate system of the electronic device The directions of the X-axis, Y-axis and Z-axis in are different according to the placement attitude of the electronic device.

在一些实施例中,所述根据所述卫星方向控制在所述显示屏上显示第二指示标记,包括:将所述卫星在大地坐标系中相对于所述电子设备的卫星方向单位向量转化为在电子设备坐标系中的卫星坐标位置,其中,如前所述的,所述电子设备坐标系为以垂直于所述显示屏的方向为Z轴,以平行于所述显示屏的短边方向为X轴,以平行于所述显示屏的长边方向为Y轴建立的坐标系;根据所述卫星坐标位置确定所述卫星方向单位向量映射在显示屏上的第二目标位置;以及控制在所述显示屏上的所述第二目标位置显示所述第二指示标记。In some embodiments, the controlling to display the second indication mark on the display screen according to the satellite direction includes: transforming the satellite direction unit vector of the satellite relative to the electronic device in the earth coordinate system into The satellite coordinate position in the coordinate system of the electronic device, wherein, as mentioned above, the coordinate system of the electronic device is the direction perpendicular to the display screen as the Z axis, and the direction parallel to the short side of the display screen is the X axis, the coordinate system established with the long side direction parallel to the display screen as the Y axis; determine the second target position of the satellite direction unit vector mapping on the display screen according to the satellite coordinate position; and control the The second target position on the display screen displays the second indicator mark.

即,在一些实施例中,通过先将所述卫星在大地坐标系中相对于所述电子设备的卫星方向单位向量转化为在电子设备坐标系中的卫星坐标位置,然后可根据所述卫星坐标位置确定所述卫星方向单位向量映射在显示屏上的第二目标位置,而可将卫星方向映射在显示屏上的第二目标位置并通过所述第二指示标记进行直观地指示。That is, in some embodiments, by first transforming the satellite direction unit vector of the satellite relative to the electronic device in the earth coordinate system into the satellite coordinate position in the electronic device coordinate system, and then according to the satellite coordinate The position determines the second target position on the display screen where the satellite direction unit vector is mapped, and the satellite direction can be mapped on the second target position on the display screen and visually indicated by the second indicator mark.

在一些实施例中,所述将所述卫星在大地坐标系中相对于所述电子设备的卫星方向单位向量转化为在电子设备坐标系中的卫星坐标位置,包括:确定所述卫星方向单位向量在大地坐标系中的坐标位置;确定所述大地坐标系中的X轴单位向量、Y轴单位向量以及Z轴单位向量分别在所述电子设备坐标系的坐标位置;根据所述卫星方向单位向量在大地坐标系中的坐标位置以及所述大地坐标系中的X轴单位向量、Y轴单位向量以及Z轴单位向量分别在所述电子设备坐标系的坐标位置得到所述卫星方向单位向量在电子设备坐标系中的卫星坐标位置。In some embodiments, the converting the satellite direction unit vector of the satellite relative to the electronic device in the geodetic coordinate system into the satellite coordinate position in the electronic device coordinate system includes: determining the satellite direction unit vector Coordinate positions in the earth coordinate system; determine the coordinate positions of the X-axis unit vector, the Y-axis unit vector, and the Z-axis unit vector in the earth coordinate system in the electronic device coordinate system; according to the satellite direction unit vector The coordinate position in the earth coordinate system and the X-axis unit vector, the Y-axis unit vector and the Z-axis unit vector in the earth coordinate system are respectively in the coordinate position of the electronic equipment coordinate system to obtain the satellite direction unit vector in the electronic The satellite coordinate position in the device coordinate system.

本申请中,在得到所述大地坐标系中的X轴单位向量、Y轴单位向量以及Z轴单位向量分别在所述电子设备坐标系的坐标位置后,则可根据所述卫星方向单位向量在大地坐标系中的坐标位置以及所述大地坐标系中的X轴单位向量、Y轴单位向量以及Z轴单位向量分别在所述电子设备坐标系的坐标位置得到所述卫星方向单位向量在电子设备坐标系中的卫星坐标位置,从而可将所述卫星方向单位向量转换为在电子设备坐标系中的卫星坐标位置。In the present application, after obtaining the coordinate positions of the X-axis unit vector, Y-axis unit vector, and Z-axis unit vector in the coordinate system of the electronic device respectively in the coordinate system of the electronic device, the satellite direction unit vector can be The coordinate position in the earth coordinate system and the X-axis unit vector, the Y-axis unit vector and the Z-axis unit vector in the earth coordinate system are respectively in the coordinate position of the electronic device coordinate system to obtain the satellite direction unit vector in the electronic device The coordinate position of the satellite in the coordinate system, so that the satellite direction unit vector can be transformed into the coordinate position of the satellite in the coordinate system of the electronic device.

在一些实施例中,所述确定所述卫星方向单位向量在大地坐标系中的坐标位置,可包括:分别确定所述卫星方向单位向量在所述大地坐标系中的X轴、Y轴以及Z轴上的投影对应的坐标值,而得到所述卫星方向单位向量在所述电子设备坐标系中的坐标位置。In some embodiments, the determining the coordinate position of the satellite direction unit vector in the earth coordinate system may include: respectively determining the X axis, the Y axis and the Z axis of the satellite direction unit vector in the earth coordinate system The coordinate values corresponding to the projection on the axis are obtained to obtain the coordinate position of the satellite direction unit vector in the electronic device coordinate system.

请一并参阅图9,为本申请一实施例中的所述大地坐标系的示意图。类似的,在所述大地坐标系中,所述卫星方向单位向量

Figure 83343DEST_PATH_IMAGE008
定义了方向,所述方向即为所述卫星方向单位向量
Figure 25891DEST_PATH_IMAGE009
分别与大地坐标系中的X轴、Y轴以及Z轴的夹角,从而,可通过将所述卫星方向单位向量
Figure 463826DEST_PATH_IMAGE009
的单位长度根据与各个轴的夹角求余弦,即可得到所述卫星方向单位向量
Figure 822126DEST_PATH_IMAGE009
在所述大地坐标系中的X轴、Y轴以及Z轴上的投影对应的坐标值。例如,所述卫星方向单位向量
Figure 294696DEST_PATH_IMAGE009
与大地坐标系中的X轴的夹角为
Figure 828052DEST_PATH_IMAGE010
,由于单位向量的长度为单位长度,即为1,则所述卫星方向单位向量
Figure 753283DEST_PATH_IMAGE009
在所述大地坐标系中的X轴上的坐标值即为
Figure 977591DEST_PATH_IMAGE011
。Please also refer to FIG. 9 , which is a schematic diagram of the earth coordinate system in an embodiment of the present application. Similarly, in the earth coordinate system, the satellite direction unit vector
Figure 83343DEST_PATH_IMAGE008
The direction is defined, and the direction is the satellite direction unit vector
Figure 25891DEST_PATH_IMAGE009
The included angles with the X-axis, Y-axis and Z-axis in the geodetic coordinate system respectively, thus, the satellite direction unit vector can be
Figure 463826DEST_PATH_IMAGE009
According to the cosine of the unit length of the angle with each axis, the satellite direction unit vector can be obtained
Figure 822126DEST_PATH_IMAGE009
Coordinate values corresponding to projections on the X-axis, Y-axis, and Z-axis in the earth coordinate system. For example, the satellite direction unit vector
Figure 294696DEST_PATH_IMAGE009
The included angle with the X-axis in the earth coordinate system is
Figure 828052DEST_PATH_IMAGE010
, since the length of the unit vector is unit length, which is 1, then the satellite direction unit vector
Figure 753283DEST_PATH_IMAGE009
The coordinate value on the X-axis in the earth coordinate system is
Figure 977591DEST_PATH_IMAGE011
.

在一些实施例中,所述确定所述大地坐标系中的X轴单位向量、Y轴单位向量以及Z轴单位向量分别在所述电子设备坐标系的坐标位置,包括:确定所述X轴单位向量分别在所述电子设备坐标系中的X轴、Y轴以及Z轴上的投影对应的坐标值,而得到所述X轴单位向量在所述电子设备坐标系中的坐标位置,确定所述Y轴单位向量分别在所述电子设备坐标系中的X轴、Y轴以及Z轴上的投影对应的坐标值,而得到所述Y轴单位向量在所述电子设备坐标系中的坐标位置,以及确定所述Z轴单位向量分别在所述电子设备坐标系中的X轴、Y轴以及Z轴上的投影对应的坐标值,而得到所述Z轴单位向量在所述电子设备坐标系中的坐标位置。In some embodiments, the determining the coordinate positions of the X-axis unit vector, the Y-axis unit vector, and the Z-axis unit vector in the coordinate system of the electronic device respectively includes: determining the X-axis unit The coordinate values corresponding to the projections of the vectors on the X-axis, Y-axis, and Z-axis in the electronic device coordinate system respectively, so as to obtain the coordinate position of the X-axis unit vector in the electronic device coordinate system, and determine the Coordinate values corresponding to projections of the Y-axis unit vector on the X-axis, Y-axis, and Z-axis in the electronic device coordinate system respectively, so as to obtain the coordinate position of the Y-axis unit vector in the electronic device coordinate system, and determining the coordinate values corresponding to the projections of the Z-axis unit vector on the X-axis, Y-axis, and Z-axis in the electronic device coordinate system, so as to obtain the Z-axis unit vector in the electronic device coordinate system coordinate position.

请一并参阅图10,为本申请一实施例中的所述大地坐标系和所述电子设备坐标系的关系示意图。其中,如前所述的,所述大地坐标系和所述电子设备坐标系均为直角坐标系,仅仅是建立的参考平面(XY平面)有所不同,所述大地坐标系为以大地平面为参考平面,而所述电子设备坐标系为以所述显示屏所在的平面为参考平面,而大多数时候,所述电子设备的放置姿态不是显示屏朝上且水平放置,如图10所示,所述电子设备的放置姿态不是显示屏朝上且水平放置时,所述电子设备坐标系中的X轴、Y轴以及Z轴的方向与所述大地坐标系中的X轴、Y轴以及Z轴的方向将具有夹角。其中,图10中具体示意出了所述大地坐标系中的X轴单位向量

Figure 242350DEST_PATH_IMAGE012
,Y轴单位向量
Figure 526701DEST_PATH_IMAGE013
以及Z轴单位向量
Figure 126178DEST_PATH_IMAGE014
与所述电子设备坐标系中的X轴、Y轴以及Z轴的关系,及在所述电子设备坐标系中对应的坐标位置。其中,图10中的所述大地坐标系中的X轴单位向量
Figure 888598DEST_PATH_IMAGE012
,Y轴单位向量
Figure 70180DEST_PATH_IMAGE015
以及Z轴单位向量
Figure 463116DEST_PATH_IMAGE014
以虚线进行表示。Please also refer to FIG. 10 , which is a schematic diagram of the relationship between the earth coordinate system and the electronic device coordinate system in an embodiment of the present application. Wherein, as mentioned above, both the earth coordinate system and the electronic equipment coordinate system are Cartesian coordinate systems, only the reference plane (XY plane) established is different, and the earth coordinate system is based on the earth plane reference plane, and the coordinate system of the electronic device takes the plane where the display screen is located as the reference plane, and most of the time, the placement posture of the electronic device is not that the display screen faces up and is placed horizontally, as shown in FIG. 10 , When the placement posture of the electronic device is not placed horizontally with the display screen facing up, the directions of the X-axis, Y-axis and Z-axis in the coordinate system of the electronic device are not the same as the directions of the X-axis, Y-axis and Z-axis in the earth coordinate system. The orientation of the axes will have included angles. Wherein, the X-axis unit vector in the earth coordinate system is specifically shown in Fig. 10
Figure 242350DEST_PATH_IMAGE012
, the Y-axis unit vector
Figure 526701DEST_PATH_IMAGE013
and the Z-axis unit vector
Figure 126178DEST_PATH_IMAGE014
The relationship with the X-axis, Y-axis and Z-axis in the coordinate system of the electronic equipment, and the corresponding coordinate positions in the coordinate system of the electronic equipment. Wherein, the X-axis unit vector in the earth coordinate system in Fig. 10
Figure 888598DEST_PATH_IMAGE012
, the Y-axis unit vector
Figure 70180DEST_PATH_IMAGE015
and the Z-axis unit vector
Figure 463116DEST_PATH_IMAGE014
It is represented by a dotted line.

在一些实施例中,所述确定所述X轴单位向量

Figure 362938DEST_PATH_IMAGE012
分别在所述电子设备坐标系中的X轴、Y轴以及Z轴上的投影对应的坐标值,而得到所述X轴单位向量
Figure 617465DEST_PATH_IMAGE012
在所述电子设备坐标系中的坐标位置,确定所述Y轴单位向量
Figure 653554DEST_PATH_IMAGE015
分别在所述电子设备坐标系中的X轴、Y轴以及Z轴上的投影对应的坐标值,而得到所述Y轴单位向量
Figure 951811DEST_PATH_IMAGE015
在所述电子设备坐标系中的坐标位置,以及确定所述Z轴单位向量
Figure 338930DEST_PATH_IMAGE014
分别在所述电子设备坐标系中的X轴、Y轴以及Z轴上的投影对应的坐标值,而得到所述Z轴单位向量
Figure 443152DEST_PATH_IMAGE014
在所述电子设备坐标系中的坐标位置,可包括:通过姿态传感器侦测所述电子设备的放置姿态;根据所述放置姿态确定所述大地坐标系中的X轴(也即X轴单位向量)分别与所述电子设备坐标系中的X轴、Y轴以及Z轴的夹角,以及所述大地坐标系中的Y轴(也即Y轴单位向量)分别与所述电子设备坐标系中的X轴、Y轴以及Z轴的夹角,以及所述大地坐标系中的Z轴(也即Z轴单位向量)分别与所述电子设备坐标系中的X轴、Y轴以及Z轴的夹角;然后将所述X轴单位向量
Figure 786278DEST_PATH_IMAGE012
的单位长度分别根据所述X轴单位向量
Figure 583332DEST_PATH_IMAGE012
与所述电子设备坐标系中的X轴、Y轴以及Z轴的夹角求余弦,即可得到所述X轴单位向量
Figure 395431DEST_PATH_IMAGE016
在所述电子设备坐标系中的X轴、Y轴以及Z轴上的投影对应的坐标值,即得到所述X轴单位向量
Figure 568923DEST_PATH_IMAGE016
在所述电子设备坐标系中的坐标位置;以及将所述Y轴单位向量
Figure 282668DEST_PATH_IMAGE013
的单位长度分别根据所述Y轴单位向量
Figure 250624DEST_PATH_IMAGE013
与所述电子设备坐标系中的X轴、Y轴以及Z轴的夹角求余弦,即可得到所述Y轴单位向量
Figure 346756DEST_PATH_IMAGE015
在所述电子设备坐标系中的X轴、Y轴以及Z轴上的投影对应的坐标值,即得到所述Y轴单位向量
Figure 730464DEST_PATH_IMAGE017
在所述电子设备坐标系中的坐标位置;以及将所述Z轴单位向量
Figure 861231DEST_PATH_IMAGE014
的单位长度分别根据所述Z轴单位向量
Figure 187039DEST_PATH_IMAGE018
与所述电子设备坐标系中的X轴、Y轴以及Z轴的夹角求余弦,即可得到所述Z轴单位向量
Figure 770467DEST_PATH_IMAGE019
在所述电子设备坐标系中的X轴、Y轴以及Z轴上的投影对应的坐标值,即得到所述Z轴单位向量
Figure 957866DEST_PATH_IMAGE014
在所述电子设备坐标系中的坐标位置。In some embodiments, said determining said X-axis unit vector
Figure 362938DEST_PATH_IMAGE012
The coordinate values corresponding to the projections on the X-axis, Y-axis and Z-axis in the coordinate system of the electronic device, respectively, to obtain the X-axis unit vector
Figure 617465DEST_PATH_IMAGE012
Determine the Y-axis unit vector at the coordinate position in the coordinate system of the electronic device
Figure 653554DEST_PATH_IMAGE015
The coordinate values corresponding to the projections on the X-axis, Y-axis and Z-axis in the coordinate system of the electronic device, respectively, to obtain the Y-axis unit vector
Figure 951811DEST_PATH_IMAGE015
The coordinate position in the coordinate system of the electronic device, and determining the Z-axis unit vector
Figure 338930DEST_PATH_IMAGE014
The coordinate values corresponding to the projections on the X-axis, Y-axis and Z-axis in the coordinate system of the electronic device, respectively, to obtain the Z-axis unit vector
Figure 443152DEST_PATH_IMAGE014
The coordinate position in the coordinate system of the electronic device may include: detecting the placement posture of the electronic device through a posture sensor; determining the X-axis (that is, the X-axis unit vector) in the earth coordinate system according to the placement posture ) respectively with the X-axis, Y-axis and Z-axis in the coordinate system of the electronic equipment, and the Y-axis (that is, the Y-axis unit vector) in the coordinate system of the earth and the Y-axis in the coordinate system of the electronic equipment respectively The included angles of the X axis, Y axis and Z axis, and the Z axis (that is, the Z axis unit vector) in the earth coordinate system and the X axis, Y axis and Z axis in the electronic equipment coordinate system respectively included angle; then the X-axis unit vector
Figure 786278DEST_PATH_IMAGE012
The unit lengths are respectively according to the x-axis unit vector
Figure 583332DEST_PATH_IMAGE012
The X-axis unit vector can be obtained by calculating the cosine of the angle with the X-axis, Y-axis, and Z-axis in the coordinate system of the electronic device
Figure 395431DEST_PATH_IMAGE016
The coordinate values corresponding to the projections on the X-axis, Y-axis and Z-axis in the coordinate system of the electronic device, that is, the X-axis unit vector is obtained
Figure 568923DEST_PATH_IMAGE016
The coordinate position in the coordinate system of the electronic device; and the Y-axis unit vector
Figure 282668DEST_PATH_IMAGE013
The unit lengths are according to the y-axis unit vector
Figure 250624DEST_PATH_IMAGE013
Calculate the cosine of the angle with the X-axis, Y-axis and Z-axis in the coordinate system of the electronic device to obtain the Y-axis unit vector
Figure 346756DEST_PATH_IMAGE015
The coordinate values corresponding to the projections on the X-axis, Y-axis, and Z-axis in the electronic device coordinate system, that is, the Y-axis unit vector is obtained
Figure 730464DEST_PATH_IMAGE017
The coordinate position in the coordinate system of the electronic device; and the Z-axis unit vector
Figure 861231DEST_PATH_IMAGE014
The unit lengths are according to the Z-axis unit vector
Figure 187039DEST_PATH_IMAGE018
Calculate the cosine of the angle with the X-axis, Y-axis and Z-axis in the coordinate system of the electronic device to obtain the Z-axis unit vector
Figure 770467DEST_PATH_IMAGE019
The coordinate values corresponding to the projections on the X-axis, Y-axis, and Z-axis in the electronic device coordinate system, that is, the Z-axis unit vector is obtained
Figure 957866DEST_PATH_IMAGE014
The coordinate position in the coordinate system of the electronic device.

具体的,例如,对于X轴单位向量

Figure 943140DEST_PATH_IMAGE012
而言,具体可通过将所述X轴单位向量
Figure 941314DEST_PATH_IMAGE012
的单位长度分别根据与所述电子设备坐标系中的X轴、Y轴以及Z轴的夹角求余弦,即可得到所述X轴单位向量
Figure 12038DEST_PATH_IMAGE012
在所述电子设备坐标系中的X轴、Y轴以及Z轴上的投影对应的坐标值。例如,所述X轴单位向量
Figure 65445DEST_PATH_IMAGE012
与所述电子设备坐标系中的X轴的夹角为
Figure 577329DEST_PATH_IMAGE020
,由于单位向量的长度为单位长度,即为1,则所述X轴单位向量
Figure 57989DEST_PATH_IMAGE012
在所述电子设备坐标系中的X轴上的坐标值即为
Figure 802960DEST_PATH_IMAGE021
。同样的,将所述Y轴单位向量
Figure 660057DEST_PATH_IMAGE013
的单位长度分别根据与所述电子设备坐标系中的X轴、Y轴以及Z轴的夹角求余弦,即可得到所述Y轴单位向量
Figure 354344DEST_PATH_IMAGE013
在所述电子设备坐标系中的X轴、Y轴以及Z轴上的投影对应的坐标值;将所述Z轴单位向量
Figure 943588DEST_PATH_IMAGE014
的单位长度分别根据与所述电子设备坐标系中的X轴、Y轴以及Z轴的夹角求余弦,即可得到所述Z轴单位向量
Figure 988904DEST_PATH_IMAGE014
在所述电子设备坐标系中的X轴、Y轴以及Z轴上的投影对应的坐标值。Specifically, for example, for the x-axis unit vector
Figure 943140DEST_PATH_IMAGE012
Specifically, the x-axis unit vector can be
Figure 941314DEST_PATH_IMAGE012
According to the cosine of the unit length with the X-axis, Y-axis and Z-axis in the coordinate system of the electronic device, the X-axis unit vector can be obtained
Figure 12038DEST_PATH_IMAGE012
Coordinate values corresponding to projections on the X-axis, Y-axis, and Z-axis in the electronic device coordinate system. For example, the x-axis unit vector
Figure 65445DEST_PATH_IMAGE012
The included angle with the X-axis in the coordinate system of the electronic device is
Figure 577329DEST_PATH_IMAGE020
, since the length of the unit vector is unit length, which is 1, then the X-axis unit vector
Figure 57989DEST_PATH_IMAGE012
The coordinate value on the X-axis in the coordinate system of the electronic device is
Figure 802960DEST_PATH_IMAGE021
. Similarly, the y-axis unit vector
Figure 660057DEST_PATH_IMAGE013
According to the cosine of the unit length with the X-axis, Y-axis and Z-axis in the coordinate system of the electronic device, the Y-axis unit vector can be obtained
Figure 354344DEST_PATH_IMAGE013
Coordinate values corresponding to projections on the X-axis, Y-axis, and Z-axis in the electronic device coordinate system; the Z-axis unit vector
Figure 943588DEST_PATH_IMAGE014
The unit length of the cosine is calculated according to the angles between the X-axis, the Y-axis and the Z-axis in the coordinate system of the electronic device respectively, and the Z-axis unit vector can be obtained
Figure 988904DEST_PATH_IMAGE014
Coordinate values corresponding to projections on the X-axis, Y-axis, and Z-axis in the electronic device coordinate system.

在一些实施例中,所述根据所述卫星方向单位向量在大地坐标系中的坐标位置以及所述大地坐标系中的X轴单位向量、Y轴单位向量以及Z轴单位向量分别在所述电子设备坐标系的坐标位置得到所述卫星方向单位向量在电子设备坐标系中的卫星坐标位置,包括:根据公式x2=xs*xxg+ys*xyg+zs*xzg,y2=xs*yxg+ys*yyg+zs*yzg以及z2=xs*zxg+ys*zyg+zs*zzg,计算得出卫星坐标位置(x2,y2,z2);其中,所述x2为所述卫星坐标位置的X轴坐标,所述y2为所述卫星坐标位置的Y轴坐标,所述z2为所述卫星坐标位置的Z轴坐标,所述xs,ys以及zs分别为所述卫星方向单位向量在大地坐标系中的X轴、Y轴以及Z轴上的坐标值,所述xxg,xyg以及xzg分别为所述大地坐标系中的X轴单位向量在所述电子设备坐标系中的X轴上的投影对应的坐标值应的X坐标,在所述电子设备坐标系的Y轴上的投影对应的Y坐标以及在所述电子设备坐标系的Z轴上的投影对应的Z坐标,所述yxg,yyg以及yzg分别为所述大地坐标系中的Y轴单位向量在所述电子设备坐标系的X轴上的投影对应的X坐标,在所述电子设备坐标系的Y轴上的投影对应的Y坐标以及在所述电子设备坐标系的Z轴上的投影对应的Z坐标,所述zxg,zyg以及zzg分别为所述大地坐标系中的Z轴单位向量对应在所述电子设备坐标系的X轴上的投影对应的X坐标,在所述电子设备坐标系的Y轴上的投影对应的Y坐标以及在所述电子设备坐标系的Z轴上的投影对应的Z坐标。In some embodiments, the coordinate position of the satellite direction unit vector in the earth coordinate system and the X-axis unit vector, Y-axis unit vector, and Z-axis unit vector in the earth coordinate system are respectively in the electronic The coordinate position of the device coordinate system obtains the satellite coordinate position of the satellite direction unit vector in the electronic device coordinate system, including: according to the formula x2=x s *x x g +y s *x yg +z s *x zg , y2= x s *y xg +y s *y yg +z s *y zg and z2=x s *z xg +y s *z yg +z s *z zg , calculate the satellite coordinate position (x2,y2,z2 ); wherein, the x2 is the X-axis coordinate of the satellite coordinate position, the y2 is the Y-axis coordinate of the satellite coordinate position, the z2 is the Z-axis coordinate of the satellite coordinate position, and the x s , y s and z s are the coordinate values of the satellite direction unit vector on the X-axis, Y-axis and Z-axis in the earth coordinate system respectively, and the x xg , x yg and x zg are respectively the earth coordinate system The X-coordinate corresponding to the projection of the X-axis unit vector on the X-axis in the electronic device coordinate system should be the X-coordinate, the corresponding Y-coordinate to the projection on the Y-axis of the electronic device coordinate system and in the The Z coordinate corresponding to the projection on the Z axis of the electronic equipment coordinate system, the y xg , y yg and y zg are respectively the Y-axis unit vector in the earth coordinate system on the X axis of the electronic equipment coordinate system The X coordinate corresponding to the projection, the Y coordinate corresponding to the projection on the Y axis of the electronic equipment coordinate system and the Z coordinate corresponding to the projection on the Z axis of the electronic equipment coordinate system, the z xg , z yg and z zg are the X coordinates corresponding to the projection of the Z-axis unit vector in the earth coordinate system on the X-axis of the electronic equipment coordinate system, and the Y coordinates corresponding to the projection on the Y-axis of the electronic equipment coordinate system. Coordinates and Z coordinates corresponding to the projection on the Z axis of the electronic device coordinate system.

具体的,由于所述卫星方向单位向量

Figure 804020DEST_PATH_IMAGE022
,在大地坐标系中的X轴、Y轴以及Z轴上的坐标值分别为xs,ys以及zs,而如前所述的,所述大地坐标系中的X轴单位向量为
Figure 352813DEST_PATH_IMAGE023
,Y轴单位向量为
Figure 440855DEST_PATH_IMAGE013
以及Z轴单位向量为
Figure 911151DEST_PATH_IMAGE018
。由于X轴单位向量为
Figure 844471DEST_PATH_IMAGE016
,Y轴单位向量为
Figure 700301DEST_PATH_IMAGE013
以及Z轴单位向量为
Figure 959244DEST_PATH_IMAGE014
分别表征了大地坐标系中的X轴、Y轴以及Z轴的方向且长度单位为1,而xs,ys以及zs分别为卫星方向单位向量
Figure 447994DEST_PATH_IMAGE022
在X轴、Y轴以及Z轴上的投影长度,也即分量长度。因此,
Figure 122689DEST_PATH_IMAGE024
则为所述卫星方向单位向量
Figure 646074DEST_PATH_IMAGE022
在大地坐标系中的X轴上的分量,
Figure 764334DEST_PATH_IMAGE025
为所述卫星方向单位向量
Figure 5960DEST_PATH_IMAGE022
在大地坐标系中的Y轴上的分量,
Figure 546662DEST_PATH_IMAGE026
为所述卫星方向单位向量
Figure 596658DEST_PATH_IMAGE022
在大地坐标系中的Z轴上的分量。而所述卫星方向单位向量
Figure 197404DEST_PATH_IMAGE022
为该三个分量之和,则可得出公式:
Figure 113276DEST_PATH_IMAGE027
。Specifically, since the satellite direction unit vector
Figure 804020DEST_PATH_IMAGE022
, the coordinate values on the X-axis, Y-axis and Z-axis in the earth coordinate system are x s , y s and z s respectively, and as mentioned above, the X-axis unit vector in the earth coordinate system is
Figure 352813DEST_PATH_IMAGE023
, the Y-axis unit vector is
Figure 440855DEST_PATH_IMAGE013
and the Z-axis unit vector is
Figure 911151DEST_PATH_IMAGE018
. Since the X-axis unit vector is
Figure 844471DEST_PATH_IMAGE016
, the Y-axis unit vector is
Figure 700301DEST_PATH_IMAGE013
and the Z-axis unit vector is
Figure 959244DEST_PATH_IMAGE014
represent the directions of the X-axis, Y-axis and Z-axis in the geodetic coordinate system respectively, and the length unit is 1, while x s , y s and z s are the satellite direction unit vectors respectively
Figure 447994DEST_PATH_IMAGE022
The projection length on the X-axis, Y-axis and Z-axis, that is, the component length. therefore,
Figure 122689DEST_PATH_IMAGE024
is the satellite direction unit vector
Figure 646074DEST_PATH_IMAGE022
The component on the X-axis in the geodetic coordinate system,
Figure 764334DEST_PATH_IMAGE025
is the satellite direction unit vector
Figure 5960DEST_PATH_IMAGE022
The component on the Y axis in the geodetic coordinate system,
Figure 546662DEST_PATH_IMAGE026
is the satellite direction unit vector
Figure 596658DEST_PATH_IMAGE022
The component on the Z axis in the earth coordinate system. while the satellite direction unit vector
Figure 197404DEST_PATH_IMAGE022
As the sum of the three components, the formula can be obtained:
Figure 113276DEST_PATH_IMAGE027
.

请返回图10,所述X轴单位向量为

Figure 457669DEST_PATH_IMAGE028
在所述电子设备坐标系的坐标为(xxg,xyg,xzg),即
Figure 893330DEST_PATH_IMAGE028
=(xxg,xyg,xzg),也即前述的,所述xxg,xyg以及xzg分别为所述大地坐标系中的X轴单位向量在所述电子设备坐标系中的X轴上的投影对应的坐标值应的X坐标,在所述电子设备坐标系的Y轴上的投影对应的Y坐标以及在所述电子设备坐标系的Z轴上的投影对应的Z坐标。所述Y轴单位向量为
Figure 399398DEST_PATH_IMAGE029
在所述电子设备坐标系的坐标为(yxg,yyg,yzg),即
Figure 615615DEST_PATH_IMAGE029
=(yxg,yyg,yzg),也即前述的,所述yxg,yyg以及yzg分别为所述大地坐标系中的Y轴单位向量在所述电子设备坐标系的X轴上的投影对应的X坐标,在所述电子设备坐标系的Y轴上的投影对应的Y坐标以及在所述电子设备坐标系的Z轴上的投影对应的Z坐标。所述Z轴单位向量为
Figure 923887DEST_PATH_IMAGE030
在所述电子设备坐标系的坐标为(zxg,zyg,zzg),即
Figure 276371DEST_PATH_IMAGE031
=(zxg,zyg,zzg),也即前述的,所述zxg,zyg以及zzg分别为所述大地坐标系中的Z轴单位向量对应在所述电子设备坐标系的X轴上的投影对应的X坐标,在所述电子设备坐标系的Y轴上的投影对应的Y坐标以及在所述电子设备坐标系的Z轴上的投影对应的Z坐标。Please return to Figure 10, the X-axis unit vector is
Figure 457669DEST_PATH_IMAGE028
The coordinates in the electronic equipment coordinate system are (x xg , x yg , x zg ), namely
Figure 893330DEST_PATH_IMAGE028
=(x xg , x yg , x zg ), that is, as mentioned above, the x xg , x yg and x zg are respectively the X of the X-axis unit vector in the earth coordinate system in the electronic device coordinate system The coordinate value corresponding to the projection on the axis should be the X coordinate, the Y coordinate corresponding to the projection on the Y axis of the electronic equipment coordinate system, and the Z coordinate corresponding to the projection on the Z axis of the electronic equipment coordinate system. The Y-axis unit vector is
Figure 399398DEST_PATH_IMAGE029
The coordinates in the electronic equipment coordinate system are (y xg , y yg , y zg ), namely
Figure 615615DEST_PATH_IMAGE029
=(y xg , y yg , y zg ), that is, as mentioned above, the y xg , y yg and y zg are respectively the Y-axis unit vector in the earth coordinate system on the X-axis of the electronic equipment coordinate system The X coordinate corresponding to the projection on , the Y coordinate corresponding to the projection on the Y axis of the electronic equipment coordinate system, and the Z coordinate corresponding to the projection on the Z axis of the electronic equipment coordinate system. The Z-axis unit vector is
Figure 923887DEST_PATH_IMAGE030
The coordinates in the electronic equipment coordinate system are (z xg , z yg , z zg ), namely
Figure 276371DEST_PATH_IMAGE031
=(z xg , z yg , z zg ), that is, as mentioned above, the z xg , z yg and z zg are the Z-axis unit vectors in the earth coordinate system corresponding to X in the electronic equipment coordinate system The X coordinate corresponding to the projection on the axis, the Y coordinate corresponding to the projection on the Y axis of the electronic equipment coordinate system, and the Z coordinate corresponding to the projection on the Z axis of the electronic equipment coordinate system.

因此,将

Figure 156602DEST_PATH_IMAGE028
=(xxg,xyg,xzg),
Figure 594537DEST_PATH_IMAGE029
=(yxg,yyg,yzg)以及
Figure 280733DEST_PATH_IMAGE031
=(zxg,zyg,zzg),代入前述的公式
Figure 674674DEST_PATH_IMAGE032
,则可得出
Figure 788123DEST_PATH_IMAGE033
=xs*(xxg,xyg,xzg)+ys*(yxg,yyg,yzg)+zs*(zxg,zyg,zzg)=(xs*xxg+ys*xyg+zs*xzg,xs*yxg+ys*yyg+zs*yzg,xs*zxg+ys*zyg+zs*zzg),从而得到在电子设备坐标系中的坐标x2=xs*xxg+ys*xyg+zs*xzg,y2=xs*yxg+ys*yyg+zs*yzg,以及z2=xs*zxg+ys*zyg+zs*zzg。Therefore, the
Figure 156602DEST_PATH_IMAGE028
=( xxg , xyg , xzg ),
Figure 594537DEST_PATH_IMAGE029
=(y xg , y yg , y zg ) and
Figure 280733DEST_PATH_IMAGE031
=(z xg , z yg , z zg ), substitute into the aforementioned formula
Figure 674674DEST_PATH_IMAGE032
, it can be obtained
Figure 788123DEST_PATH_IMAGE033
=x s *(x xg , x yg , x zg )+y s *(y xg , y yg , y zg )+z s *(z xg , z yg , z zg )=(x s *x xg + y s *x yg +z s *x zg , x s *y xg +y s *y yg +z s *y zg , x s *z xg +y s *z yg +z s *z zg ), thus Obtain the coordinates x2=x s *x xg +y s *x yg +z s *x zg in the electronic equipment coordinate system, y2=x s *y xg +y s *y yg +z s *y zg , and z2=x s *z xg +y s *z yg +z s *z zg .

因此,通过上述方式,可准确地得到所述卫星方向单位向量在电子设备坐标系中的卫星坐标位置。Therefore, through the above method, the satellite coordinate position of the satellite direction unit vector in the electronic device coordinate system can be accurately obtained.

请一并参阅图11,为本申请一实施例中的所述电子设备处于侧视状态下时的电子设备坐标系的另一示意图。在一些实施例中,同样的,所述电子设备坐标系具体还以所述显示屏500的中心作为坐标原点o,其中,垂直于所述显示屏500且指向所述显示屏500的观看侧的方向为Z轴正方向,相应的,垂直于所述显示屏500且指向所述电子设备1000的背面F1的方向为Z轴负方向。其中,所述根据所述卫星坐标位置确定所述卫星方向单位向量映射在显示屏上的第二目标位置,包括:获取一预先设定的位于电子设备坐标系的Z轴正半轴上的观测点P1的观测点坐标位置,所述观测点与所述坐标原点间隔预设距离,所述观测点P1在所述显示屏500上的投影与所述作为坐标原点o的显示屏的中心重合;根据所述观测点坐标位置以及卫星坐标位置计算得到观测点P1与卫星坐标位置点A2的连线和所述显示屏的交点B2的第二交点坐标位置,并将所述显示屏上的第二交点坐标位置作为所述第二目标位置,其中,所述卫星坐标位置中的Z轴坐标为负,其中,所述卫星坐标位置点为所述卫星坐标位置对应的点。Please also refer to FIG. 11 , which is another schematic diagram of an electronic device coordinate system when the electronic device is in a side view state in an embodiment of the present application. In some embodiments, similarly, the coordinate system of the electronic device also takes the center of the display screen 500 as the coordinate origin o, wherein, the The direction is the positive direction of the Z axis, and correspondingly, the direction perpendicular to the display screen 500 and pointing to the back surface F1 of the electronic device 1000 is the negative direction of the Z axis. Wherein, the determining the second target position of the satellite direction unit vector mapped on the display screen according to the satellite coordinate position includes: obtaining a preset observation on the positive half axis of the Z axis of the electronic equipment coordinate system The coordinate position of the observation point of point P1, the observation point is separated from the coordinate origin by a preset distance, and the projection of the observation point P1 on the display screen 500 coincides with the center of the display screen as the coordinate origin o; According to the coordinate position of the observation point and the coordinate position of the satellite, the second intersection coordinate position of the connection line between the observation point P1 and the satellite coordinate position point A2 and the intersection point B2 of the display screen is calculated, and the second intersection point coordinate position on the display screen is displayed. The intersection point coordinate position is used as the second target position, wherein the Z-axis coordinate in the satellite coordinate position is negative, and wherein the satellite coordinate position point is a point corresponding to the satellite coordinate position.

通常情况下,在使用卫星通信的过程中,卫星的位置一般位于电子设备的背面,因此,所述电子设备坐标系垂直于所述显示屏且指向所述显示屏的观看侧的方向为Z轴正方向时,本申请的卫星方向单位向量指向的也是Z轴负方向,因此,所述卫星坐标位置中的Z轴坐标为负。Usually, in the process of using satellite communication, the position of the satellite is generally located on the back of the electronic device, therefore, the coordinate system of the electronic device is perpendicular to the display screen and the direction pointing to the viewing side of the display screen is the Z axis In the positive direction, the satellite direction unit vector of the present application also points to the negative direction of the Z-axis, therefore, the Z-axis coordinate in the satellite coordinate position is negative.

在一些实施例中,所述根据所述观测点坐标位置以及卫星坐标位置计算得到观测点P1与卫星坐标位置点A2的连线和所述显示屏的交点B2的第二交点坐标位置,包括:In some embodiments, the calculation according to the coordinate position of the observation point and the satellite coordinate position to obtain the second intersection coordinate position of the line connecting the observation point P1 and the satellite coordinate position point A2 and the intersection B2 of the display screen includes:

根据公式x3=L*x4/(L-z4)以及y3=L*y4/(L-z4),计算得出所述第二交点坐标位置中的X轴坐标以及Y轴坐标,从而得到所述第二交点坐标位置(x3,y3,z3);其中,所述x3为所述第二交点坐标位置中的X轴坐标,所述y3为所述第二交点坐标位置中的Y轴坐标,所述z3为所述第二交点坐标位置中的Z轴坐标,所述z3=0,所述L为所述观测点的Z轴坐标,所述x4为所述卫星坐标位置中的X轴坐标,也即所述卫星坐标位置点A2的X轴坐标,所述y4为所述卫星坐标位置中的Y轴坐标,也即所述卫星坐标位置点A2的Y轴坐标,所述z4为所述卫星坐标位置中的Z轴坐标,也即所述卫星坐标位置点A2的Z轴坐标。According to the formula x3=L*x4/(L-z4) and y3=L*y4/(L-z4), the X-axis coordinate and the Y-axis coordinate in the coordinate position of the second intersection point are calculated to obtain the described The second intersection point coordinate position (x3, y3, z3); wherein, the x3 is the X-axis coordinate in the second intersection point coordinate position, and the y3 is the Y-axis coordinate in the second intersection point coordinate position, so The z3 is the Z-axis coordinate in the second intersection point coordinate position, the z3=0, the L is the Z-axis coordinate of the observation point, and the x4 is the X-axis coordinate in the satellite coordinate position, That is, the X-axis coordinate of the satellite coordinate position point A2, the y4 is the Y-axis coordinate in the satellite coordinate position, that is, the Y-axis coordinate of the satellite coordinate position point A2, and the z4 is the satellite The Z-axis coordinate in the coordinate position, that is, the Z-axis coordinate of the satellite coordinate position point A2.

其中,如图11所示,设观测点P1与卫星坐标位置点A2的连线和所述显示屏500的交点为B2,根据相似三角形的各边的比值相等可以得出:x3/x4=y3/y4=(L-z3)/(L-z4),其中,由于z3为0,因此,可以进一步得出x3/x4=y3/y4=L/(L-z4),从而,可以得到上面的两个公式x3=L*x4/(L-z4)以及y3=L*y4/(L-z4)。Wherein, as shown in Figure 11, the intersection point of the connection line between the observation point P1 and the satellite coordinate position point A2 and the display screen 500 is B2, and the ratios of the sides of similar triangles are equal to draw: x3/x4=y3 /y4=(L-z3)/(L-z4), where, since z3 is 0, it can be further obtained that x3/x4=y3/y4=L/(L-z4), thus, the above can be obtained Two formulas x3=L*x4/(L-z4) and y3=L*y4/(L-z4).

其中,图11中示意出的是卫星坐标位置点A2与该交点B2在YZ平面上的投影构成相似三角形的示意图,根据图1可以得出,卫星坐标位置点A2在YZ平面上的投影点与观测点P1的连线以及Z轴构成的直角三角形,与交点B2在YZ平面上的投影点与观测点P1的连线以及Z轴构成的另一直角三角形是相似三角形,从而可得出,y3/y4=(L-z3)/(L-z4)。相应的,通过将卫星坐标位置点A2与该交点B2在XZ平面上的投影构成相似三角形,可以得出x3/x4=(L-z3)/(L-z4),因此,可以得出x1/x0=y1/y0=(L-z1)/(L-z0)。Wherein, shown in Fig. 11 is the schematic diagram that the projection of the satellite coordinate position point A2 and the intersection point B2 on the YZ plane forms a similar triangle. According to Fig. 1, it can be drawn that the projection point of the satellite coordinate position point A2 on the YZ plane is the same as The right triangle formed by the line connecting the observation point P1 and the Z axis, and the other right triangle formed by the line connecting the projection point of the intersection point B2 on the YZ plane and the observation point P1 and the Z axis are similar triangles, so it can be concluded that y3 /y4=(L-z3)/(L-z4). Correspondingly, by forming a similar triangle with the projection of the satellite coordinate position point A2 and the intersection point B2 on the XZ plane, it can be obtained that x3/x4=(L-z3)/(L-z4), therefore, it can be obtained that x1/ x0=y1/y0=(L-z1)/(L-z0).

从而,经过上述方法步骤,可以确定电子设备当前所处的放置姿态下,所述第二指示标记在所述显示屏上显示的所述第二目标位置。如前所述的,由于是根据所述卫星方向单位向量转换至所述电子设备坐标系中的卫星坐标位置,来确定所述卫星方向单位向量映射在显示屏上的第二目标位置,而根据前述的计算方式,所述卫星坐标位置又根据所述电子设备的放置姿态的改变而改变。Therefore, through the above method steps, the second target position displayed on the display screen by the second indication mark in the current placement posture of the electronic device can be determined. As mentioned above, since the second target position mapped on the display screen by the satellite direction unit vector is determined according to the conversion of the satellite direction unit vector to the satellite coordinate position in the electronic device coordinate system, and according to In the aforementioned calculation method, the satellite coordinate position changes according to the change of the placement attitude of the electronic device.

其中,前述的所述观测点的Z轴坐标L的值可为d/2-3d中的值,其中,所述“d”为所述电子设备的显示屏的长边长度。Wherein, the value of the aforementioned Z-axis coordinate L of the observation point may be a value in d/2-3d, wherein the "d" is the length of the long side of the display screen of the electronic device.

其中,如果未引入所述观测点P1,那么实际上天线坐标位置点A1与坐标原点o的连线的方向才更与所述天线方向单位向量相同,而卫星坐标位置点A2与坐标原点o的连线的方向也才更与所述卫星方向单位向量相同。因此,会导致所述第一指示标记和第二指示标记都位于坐标原点o。本申请中,通过引入所述观测点P1,可以使得所述第一指示标记以及所述第二指示标记尽量不位于所述显示屏的中心,而避免所述第一指示标记与所述第二指示标记在所述卫星天线的天线最佳方向与所述卫星方向未对齐的情况下就在所述显示屏的中心重合,而由于所述第一指示标记的第一目标位置以及所述第二指示标记的第二目标位置的确定过程中,都引入该观测点P1,因此,还是能够较准确反映所述天线最佳方向和所述卫星天线的偏差。Wherein, if the observation point P1 is not introduced, then in fact, the direction of the line connecting the antenna coordinate position point A1 and the coordinate origin o is more the same as the antenna direction unit vector, and the satellite coordinate position point A2 and the coordinate origin o The direction of the connecting line is also the same as the satellite direction unit vector. Therefore, both the first indicator mark and the second indicator mark are located at the coordinate origin o. In the present application, by introducing the observation point P1, the first indicator mark and the second indicator mark may not be located in the center of the display screen as much as possible, and the first indicator mark and the second indicator mark may be avoided. The indication mark coincides with the center of the display screen when the optimal direction of the antenna of the satellite antenna is not aligned with the direction of the satellite, and due to the first target position of the first indication mark and the second In the process of determining the second target position of the indicator mark, the observation point P1 is introduced, so it can still accurately reflect the optimal direction of the antenna and the deviation of the satellite antenna.

其中,前述的响应对所述电子设备的放置姿态的调整操作,而控制所述第二指示标记相应移动,可包括:响应对所述电子设备的放置姿态的调整操作,重新确定电子设备1000当前所处的放置姿态下,所述第二指示标记在所述显示屏上显示的所述第二目标位置,并控制所述第二指示标记显示在所述重新确定出的第二目标位置。Wherein, the aforesaid controlling the corresponding movement of the second indication mark in response to the adjustment operation of the placement posture of the electronic device may include: re-determining the current position of the electronic device 1000 in response to the adjustment operation of the placement posture of the electronic device. In the placement posture, the second indicator mark is displayed on the display screen at the second target position, and the second indicator mark is controlled to be displayed at the re-determined second target position.

其中,在对所述电子设备的放置姿态的调整操作中,可每间隔预设时间重新确定电子设备当前所处的放置姿态下,所述第二指示标记在所述显示屏上显示的所述第二目标位置,并控制所述第二指示标记显示在所述重新确定出的第二目标位置。其中,所述预设时间可为0.2秒等较短的距离,从而,由于视觉残留等效果,用户看到所述第二指示标记为较为流畅地在所述显示屏上移动。Wherein, in the operation of adjusting the placement posture of the electronic device, the electronic device can be re-determined at intervals of the current placement posture of the electronic device, and the second indication mark displayed on the display screen the second target position, and control the second indication mark to be displayed at the re-determined second target position. Wherein, the preset time may be a short distance such as 0.2 seconds, so that due to effects such as visual persistence, the user sees that the second indication mark moves on the display screen more smoothly.

其中,所述重新确定电子设备1000当前所处的放置姿态下,所述第二指示标记在所述显示屏上显示的所述第二目标位置,具体可参见前述的确定所述第二目标位置的方式,在此不再赘述。Wherein, in the re-determining the second target position displayed on the display screen by the second indication mark under the current placement posture of the electronic device 1000, please refer to the aforementioned determination of the second target position for details. way, which will not be repeated here.

请一并参阅图12,为本申请一些实施例中的在显示屏500上显示的第一指示标记和第二指示标记的示意图。如图12所示,所述第一指示标记B1包括中心点B11以及环绕所述中心点B11的环形区域B12,所述中心点B11用于表征所述天线最佳方向,所述环形区域B12用于表征天线次佳方向。其中,所述方法还包括:在响应对所述电子设备1000的放置姿态的调整操作,而控制所述第二指示标记B2相应移动的过程中,当所述第二指示标记B2移动至所述第一指示标记B1中的环形区域B12内时,控制产生第一提示信号。Please also refer to FIG. 12 , which is a schematic diagram of the first indicator mark and the second indicator mark displayed on the display screen 500 in some embodiments of the present application. As shown in Figure 12, the first indicator mark B1 includes a central point B11 and an annular area B12 surrounding the central point B11, the central point B11 is used to represent the optimal direction of the antenna, and the annular area B12 is used for to characterize the next-best orientation of the antenna. Wherein, the method further includes: during the process of controlling the corresponding movement of the second indicator mark B2 in response to the adjustment operation of the placement posture of the electronic device 1000 , when the second indicator mark B2 moves to the When the first indication mark B1 is within the ring-shaped area B12, the control generates a first prompt signal.

其中,由于所述环形区域B12用于表征天线次佳方向,表示卫星方向与该天线次佳方向大致相同时,所述卫星天线400的天线增益大于或等于预设阈值,因此,当所述第二指示标记B2移动至所述第一指示标记B1中的环形区域B12内时,通过产生第一提示信号,来提醒用户,可以不用再调整所述电子设备1000的放置姿态,能够有效进行及时提醒,且能减少调整时间。其中,所述预设阈值为所述满足较好的卫星天线通信质量的阈值,为预先通过实验等确定出的值。Wherein, since the annular area B12 is used to characterize the second-best direction of the antenna, it means that when the satellite direction is approximately the same as the second-best direction of the antenna, the antenna gain of the satellite antenna 400 is greater than or equal to a preset threshold, therefore, when the second When the second indicator B2 moves into the ring-shaped area B12 of the first indicator B1, the user is reminded by generating the first prompt signal, and it is no longer necessary to adjust the placement posture of the electronic device 1000, and timely reminders can be effectively carried out , and can reduce the adjustment time. Wherein, the preset threshold is the threshold satisfying better satellite antenna communication quality, which is a value determined in advance through experiments or the like.

在另一些实施例中,所述方法也还包括:响应对所述电子设备1000的放置姿态的调整操作,在对所述电子设备的放置姿态进行调整的过程中,计算所述卫星天线200的天线增益,当所述卫星天线200的天线增益大于或等于预设阈值时,控制产生第一提示信号。其中,如何计算天线增益并非本申请的保护重点,可通过现有的一些天线增益算法计算所述卫星天线200的天线增益。In some other embodiments, the method also includes: in response to the adjustment operation on the placement posture of the electronic device 1000 , during the process of adjusting the placement posture of the electronic device, calculating the Antenna gain, when the antenna gain of the satellite antenna 200 is greater than or equal to a preset threshold, control to generate a first prompt signal. Wherein, how to calculate the antenna gain is not the protection focus of this application, and the antenna gain of the satellite antenna 200 can be calculated through some existing antenna gain algorithms.

即,由于所述环形区域B12用于表征天线次佳方向,表示卫星方向与该天线次佳方向大致相同时,所述卫星天线400的天线增益大于或等于预设阈值,因此,所述卫星天线400的天线增益大于或等于预设阈值,和所述第二指示标记B2移动至所述第一指示标记B1中的环形区域B12内是对应的。从而,在另一些实施例中,也可以直接去计算所述卫星天线200的天线增益,当所述卫星天线200的天线增益大于或等于预设阈值时,控制产生第一提示信号。That is, since the annular area B12 is used to characterize the second-best direction of the antenna, indicating that when the satellite direction is approximately the same as the second-best direction of the antenna, the antenna gain of the satellite antenna 400 is greater than or equal to a preset threshold value, therefore, the satellite antenna The antenna gain of 400 is greater than or equal to the preset threshold, which corresponds to the movement of the second indicator mark B2 into the ring-shaped area B12 of the first indicator mark B1. Therefore, in some other embodiments, the antenna gain of the satellite antenna 200 may also be directly calculated, and when the antenna gain of the satellite antenna 200 is greater than or equal to a preset threshold, control generates a first prompt signal.

在一些实施例中,所述第一提示信号可为语音提示信号,例如输出“当前姿态已经达到较好状态”等语音内容。在一些实施例中,所述第一提示信号可为振动提示信号,通过振动提示用户。在一些实施例中,所述第一提示信号还可为控制所述环形区域B12的显示参数和/或显示方式进行改变,所述显示参数可包括颜色、图案中的一种,所述显示方式可包括闪烁显示等等。从而,提示用户所述卫星天线400当前的天线增益已经大于或等于预设阈值。In some embodiments, the first prompt signal may be a voice prompt signal, such as outputting voice content such as "the current posture has reached a better state". In some embodiments, the first prompt signal may be a vibration prompt signal, which reminds the user through vibration. In some embodiments, the first prompt signal can also be used to control the display parameters and/or display methods of the annular area B12 to change, the display parameters can include one of color and pattern, and the display method May include blinking displays and the like. Therefore, the user is prompted that the current antenna gain of the satellite antenna 400 is greater than or equal to the preset threshold.

在一些实施例中,所述方法还包括:当所述第二指示标记移动至所述第一指示标记中的中心点时,控制产生第二提示信号。其中,所述第二提示信号也可为语音提示信号,例如输出“当前姿态已经达到最佳状态”等语音内容。所述第二提示信号也可为振动提示信号,且所述振动强度大于所述第一提示信号的振动强度。在一些实施例中,所述第二提示信号还可为控制所述中心点B11的显示参数和/或显示方式进行改变,所述显示参数可包括颜色、图案中的一种,所述显示方式可包括闪烁显示等等。从而,提示用户当前的放置姿态下,天线最佳方向已经和所述卫星方向已经相同,即所述卫星天线400当前的天线增益已经最佳。In some embodiments, the method further includes: when the second indicator mark moves to the center point of the first indicator mark, controlling to generate a second prompt signal. Wherein, the second prompt signal may also be a voice prompt signal, for example, outputting voice content such as "the current posture has reached the best state". The second prompt signal may also be a vibration prompt signal, and the vibration intensity is greater than that of the first prompt signal. In some embodiments, the second prompt signal can also be used to control the display parameters and/or display methods of the central point B11 to change, the display parameters can include one of color and pattern, and the display method May include blinking displays and the like. Therefore, the user is prompted that under the current placement attitude, the optimal direction of the antenna is already the same as the direction of the satellite, that is, the current antenna gain of the satellite antenna 400 is already optimal.

在一些实施例中,所述环形区域B12与所述中心点B11的显示参数不同,所述显示参数包括颜色以及图案中的至少一个,从而,可有效区分所述环形区域B12与所述中心点B11,而可供用户直观地区分当前所述第二指示标识B2移动到了环形区域B12还是所述中心点B11。In some embodiments, the display parameters of the annular area B12 and the central point B11 are different, and the display parameters include at least one of color and pattern, so that the annular area B12 and the central point can be effectively distinguished B11, which allows the user to intuitively distinguish whether the second indicator B2 has moved to the ring-shaped area B12 or the center point B11.

其中,所述环形区域B12的位置以及尺寸,可根据天线次佳方向映射到显示屏500上的位置集合确定。其中,与所述天线最佳方向偏差在一定角度内的方向均为所述天线次佳方向,因此,映射到显示屏500上即为所述环形区域B12。Wherein, the position and size of the ring-shaped area B12 can be determined according to a set of positions mapped on the display screen 500 from the second-best direction of the antenna. Wherein, the direction that deviates from the optimal direction of the antenna within a certain angle is the sub-optimal direction of the antenna, therefore, the annular area B12 is mapped on the display screen 500 .

其中,如图12所示,所述第二指示标识B2可为卫星图案,以更加直观地展示卫星的方向。Wherein, as shown in FIG. 12 , the second indicator B2 may be a satellite pattern, so as to show the direction of the satellite more intuitively.

请参阅图13,为本申请一实施例中的所述第二指示标记B2跟随所述电子设备1000的放置姿态的变化而移动的示意图。Please refer to FIG. 13 , which is a schematic diagram of the movement of the second indicator mark B2 following the change of the placement posture of the electronic device 1000 in an embodiment of the present application.

如图13所示,以所述电子设备1000正放为例,即所述电子设备1000的显示屏500朝向用户,顶端朝上,底端朝下。当所述电子设备1000绕X轴顺时针转动时,所述第二指示标记B2在图13所示的视角下在所述显示屏500中向上移动,当所述电子设备1000绕X轴逆时针转动时,所述第二指示标记B2在图13所示的视角下在所述显示屏500中向下移动。当所述电子设备1000绕Y轴顺时针转动时,所述第二指示标记B2在图13所示的视角下在所述显示屏500中向左移动,当所述电子设备1000绕Y轴逆时针转动时,所述第二指示标记B2在图13所示的视角下在所述显示屏500中向右移动。当所述电子设备1000绕Z轴逆时针转动时,所述第二指示标记B2在图13所示的视角下在所述显示屏500中顺时针移动,当所述电子设备1000绕Z轴顺时针转动时,所述第二指示标记B2在图13所示的视角下在所述显示屏500中逆时针移动。As shown in FIG. 13 , taking the electronic device 1000 upright as an example, that is, the display screen 500 of the electronic device 1000 faces the user, with the top facing up and the bottom facing down. When the electronic device 1000 rotates clockwise around the X-axis, the second indication mark B2 moves upward in the display screen 500 under the viewing angle shown in FIG. When turning, the second indication mark B2 moves downward in the display screen 500 under the viewing angle shown in FIG. 13 . When the electronic device 1000 rotates clockwise around the Y axis, the second indicator B2 moves leftward in the display screen 500 from the viewing angle shown in FIG. 13 ; When the hour hand rotates, the second indicator B2 moves to the right in the display screen 500 under the viewing angle shown in FIG. 13 . When the electronic device 1000 rotates counterclockwise around the Z axis, the second indicator mark B2 moves clockwise in the display screen 500 under the viewing angle shown in FIG. When the clock hand turns, the second indicator mark B2 moves counterclockwise in the display screen 500 under the viewing angle shown in FIG. 13 .

其中,以上的顺时针、逆时针转动均为从对应坐标轴的正半轴观看时的转动状态。Wherein, the above clockwise and counterclockwise rotations are the rotation states viewed from the positive half axis of the corresponding coordinate axis.

请参阅图14,为本申请一实施例中的所述第二指示标记B2逐渐向所述第一指示标记B1对齐的仿真示意图。如图14所示中的(a)所示的,在初始状态下,所述第二指示标记B2位于所述第一指示标记B1左上方,从而,需要所述第二指示标记B2向右、向下和/或顺时针移动,如图14所示中的(b)-(e)所示的,通过将所述电子设备1000绕Z轴逆时针转动同时将所述电子设备1000绕X轴逆时针转动,从而,可使得所述第二指示标记B2逐渐向所述第一指示标记B1靠近,直至如图14中的(e)所示的达到所述第二指示标记B2和所述第一指示标记B1重合或者接近重合的状态。Please refer to FIG. 14 , which is a simulation schematic diagram of the second indicator mark B2 gradually aligning to the first indicator mark B1 in an embodiment of the present application. As shown in (a) of Figure 14, in the initial state, the second indicator mark B2 is located above the left upper side of the first indicator mark B1, thus, the second indicator mark B2 needs to move to the right, Downward and/or clockwise movement, as shown in (b)-(e) shown in Figure 14, by rotating the electronic device 1000 counterclockwise around the Z axis Rotate counterclockwise, so that the second indicator mark B2 can gradually approach the first indicator mark B1 until it reaches the second indicator mark B2 and the first indicator mark B1 as shown in (e) in FIG. 14 . A state indicating that the marks B1 overlap or are close to overlap.

请参阅图15,为本申请另一实施例中的引导调整卫星天线指向方向的方法的流程图,所述方法应用于一电子设备中,如前所述的,所述电子设备包括卫星天线以及显示屏,如图15所示,所述方法包括:Please refer to FIG. 15 , which is a flowchart of a method for guiding and adjusting the pointing direction of a satellite antenna in another embodiment of the present application. The method is applied to an electronic device. As mentioned above, the electronic device includes a satellite antenna and display screen, as shown in Figure 15, the method includes:

S151:获取所述卫星天线的天线最佳方向,其中,所述天线最佳方向为卫星天线指向方向。S151: Obtain an optimal antenna direction of the satellite antenna, where the optimal antenna direction is a pointing direction of the satellite antenna.

S153:获取用于与所述卫星天线进行通信的卫星相对于所述电子设备的卫星方向。S153: Obtain a satellite direction of a satellite used for communicating with the satellite antenna relative to the electronic device.

S155:根据所述天线最佳方向控制在所述显示屏上显示第一指示标记,以及根据所述卫星方向控制在所述显示屏上显示第二指示标记,其中,所述第一指示标记用于至少指示所述天线最佳方向,所述第二指示标记用于指示所述卫星方向,以通过所述第一指示标记以及第二指示标记引导对卫星天线指向方向进行调整。S155: Display a first indicator mark on the display screen according to the optimal direction control of the antenna, and display a second indicator mark on the display screen according to the satellite direction control, wherein the first indicator mark uses In order to at least indicate the optimal direction of the antenna, the second indicator mark is used to indicate the direction of the satellite, so as to adjust the pointing direction of the satellite antenna guided by the first indicator mark and the second indicator mark.

S157:响应对所述电子设备的放置姿态的调整操作,而控制所述显示屏上显示的第二指示标记和所述第一指示标记之间的位置关系相应变化,从而提示所述天线最佳方向和所述卫星方向的角度偏差的变化。S157: In response to the adjustment operation on the placement posture of the electronic device, control the positional relationship between the second indicator displayed on the display screen and the first indicator to change accordingly, thereby prompting that the antenna is optimal The change in direction and angular deviation of the satellite direction.

在一些实施例中,所述第一指示标记在所述显示屏上的位置固定不动,所述第二指示标记在所述显示屏上的位置跟随所述电子设备的放置姿态的变化而变化,所述卫星天线指向方向跟随所述电子设备的放置姿态的变化而变化,所述响应对所述电子设备的放置姿态的调整操作,而控制所述显示屏上显示的第二指示标记和所述第一指示标记之间的位置关系相应变化,可包括:响应对所述电子设备的放置姿态的调整操作,而控制所述第二指示标记相应移动,从而控制所述显示屏上显示的第二指示标记和所述第一指示标记之间的位置关系相应变化。In some embodiments, the position of the first indicator mark on the display screen is fixed, and the position of the second indicator mark on the display screen changes as the position of the electronic device changes. The pointing direction of the satellite antenna changes following the change of the placement posture of the electronic device, and the second indication mark displayed on the display screen and the The corresponding change in the positional relationship between the first indicator marks may include: controlling the corresponding movement of the second indicator marks in response to the adjustment operation on the placement posture of the electronic device, so as to control the first indicator displayed on the display screen. The positional relationship between the two indicator marks and the first indicator mark changes accordingly.

S159:在对所述电子设备的放置姿态进行调整的过程中,计算所述卫星天线的天线增益,当所述卫星天线200的天线增益大于或等于预设阈值时,控制产生第一提示信号。S159: During the process of adjusting the placement attitude of the electronic device, calculate the antenna gain of the satellite antenna, and control to generate a first prompt signal when the antenna gain of the satellite antenna 200 is greater than or equal to a preset threshold.

其中,所述步骤S151-S153与图3中的步骤S301-S303分别对应,更具体的内容可参见前述的描述。其中,所述步骤S157以及S159在前面的内容中也有相关描述,更具体的内容也可参见前述的描述。Wherein, the steps S151-S153 correspond to the steps S301-S303 in FIG. 3 respectively, and for more specific content, please refer to the foregoing description. Wherein, the steps S157 and S159 are also described in the foregoing content, and for more specific content, please refer to the foregoing description.

从而,本申请可通过直观的方式有效引导用户将天线最佳方向与所述卫星方向对齐或大致对齐,使得所述天线增益大于或等于预设阈值,可有效提升和确保卫星通信质量。Therefore, the application can effectively guide the user to align or roughly align the optimal direction of the antenna with the direction of the satellite in an intuitive way, so that the gain of the antenna is greater than or equal to the preset threshold, which can effectively improve and ensure the quality of satellite communication.

请参阅图16,为本申请一些实施例中的电子设备1000的结构框图。如图16所示,所述电子设备1000包括卫星天线400、显示屏500以及处理器600。Please refer to FIG. 16 , which is a structural block diagram of an electronic device 1000 in some embodiments of the present application. As shown in FIG. 16 , the electronic device 1000 includes a satellite antenna 400 , a display screen 500 and a processor 600 .

其中,所述处理器600用于控制执行前述任一实施例中的方法,以有效引导有效引导用户将天线最佳方向与所述卫星方向对齐或大致对齐,使得所述天线增益大于或等于预设阈值。Wherein, the processor 600 is used to control the execution of the method in any of the above-mentioned embodiments, so as to effectively guide the user to align or roughly align the optimal direction of the antenna with the direction of the satellite, so that the gain of the antenna is greater than or equal to the predetermined Set the threshold.

例如,所述处理器600控制执行的方法包括:获取所述卫星天线的天线最佳方向,其中,所述天线最佳方向为卫星天线指向方向;获取用于与所述卫星天线进行通信的卫星相对于所述电子设备的卫星方向;以及根据所述天线最佳方向控制在所述显示屏上显示第一指示标记,以及根据所述卫星方向控制在所述显示屏上显示第二指示标记,其中,所述第一指示标记用于至少指示所述天线最佳方向,所述第二指示标记用于指示所述卫星方向,以通过所述第一指示标记以及第二指示标记引导对卫星天线指向方向进行调整。For example, the method executed under the control of the processor 600 includes: acquiring the optimal antenna direction of the satellite antenna, wherein the optimal antenna direction is the pointing direction of the satellite antenna; acquiring the satellite antenna for communicating with the satellite antenna Relative to the satellite direction of the electronic device; and controlling the display of a first indicator on the display screen according to the optimal direction of the antenna, and controlling the display of a second indicator on the display screen according to the satellite direction, Wherein, the first indicator mark is used to at least indicate the optimal direction of the antenna, and the second indicator mark is used to indicate the direction of the satellite, so as to guide the satellite antenna through the first indicator mark and the second indicator mark Pointing direction to adjust.

其中,如图16所述,所述电子设备1000还包括姿态传感器700,所述姿态传感器700用于侦测所述电子设备1000的放置姿态。其中,所述姿态传感器700可包括陀螺仪、重力传感器等等。Wherein, as shown in FIG. 16 , the electronic device 1000 further includes an attitude sensor 700 for detecting the placement attitude of the electronic device 1000 . Wherein, the attitude sensor 700 may include a gyroscope, a gravity sensor and the like.

在一些实施例中,如图16所示,所述电子设备1000还可包括提示单元800,所述提示单元800可包括扬声器和振动器。其中,当前述的第一提示信号和第二提示信号为语音提示信号时,所述处理器600可控制所述扬声器输出所述语音提示信号。当前述的第一提示信号和第二提示信号为振动提示信号时,所述处理器600可控制所述振动器振动,而输出所述振动提示信号。In some embodiments, as shown in FIG. 16 , the electronic device 1000 may further include a prompt unit 800, and the prompt unit 800 may include a speaker and a vibrator. Wherein, when the aforementioned first prompt signal and second prompt signal are voice prompt signals, the processor 600 may control the speaker to output the voice prompt signal. When the aforementioned first prompt signal and second prompt signal are vibration prompt signals, the processor 600 may control the vibrator to vibrate to output the vibration prompt signal.

其中,所述处理器600控制执行的功能操作可参见前述任一实施例中的方法中的步骤,在此不再赘述。For the functional operations controlled and executed by the processor 600, reference may be made to the steps in the method in any of the foregoing embodiments, and details are not repeated here.

请参阅图17,为本申请另一些实施例中的电子设备1000的结构框图。所述电子设备1000可包括存储器10以及处理器600。其中,所述存储器10中存储有计算机程序,所述计算机程序用于供所述处理器600调用后执行如上述方法实施例中记载的任一方法的部分或全部步骤。Please refer to FIG. 17 , which is a structural block diagram of an electronic device 1000 in other embodiments of the present application. The electronic device 1000 may include a memory 10 and a processor 600 . Wherein, a computer program is stored in the memory 10, and the computer program is used to be called by the processor 600 to execute some or all steps of any method described in the above method embodiments.

例如,所述计算机程序用于供所述处理器600调用后执行如下的步骤:获取所述卫星天线的天线最佳方向,其中,所述天线最佳方向为卫星天线指向方向;获取用于与所述卫星天线进行通信的卫星相对于所述电子设备的卫星方向;以及根据所述天线最佳方向控制在所述显示屏上显示第一指示标记,以及根据所述卫星方向控制在所述显示屏上显示第二指示标记,其中,所述第一指示标记用于至少指示所述天线最佳方向,所述第二指示标记用于指示所述卫星方向,以通过所述第一指示标记以及第二指示标记引导对卫星天线指向方向进行调整。For example, the computer program is used to perform the following steps after being called by the processor 600: obtaining the best antenna direction of the satellite antenna, wherein the best antenna direction is the pointing direction of the satellite antenna; The satellite with which the satellite antenna communicates is relative to the satellite direction of the electronic device; and according to the optimal direction control of the antenna, the first indication mark is displayed on the display screen, and the display is controlled according to the satellite direction. A second indicator is displayed on the screen, wherein the first indicator is used to at least indicate the optimal direction of the antenna, and the second indicator is used to indicate the direction of the satellite, so as to pass through the first indicator and The second indicator mark guides the adjustment of the pointing direction of the satellite antenna.

更具体的内容可参见前述任一实施例中的方法流程的具体描述。For more specific content, reference may be made to the specific description of the method flow in any of the foregoing embodiments.

在一些实施例中,所述卫星天线400可设置于电路板300上,例如,所述天线目标400可设置于一固定于电路板300上的天线支架上,然后通过所述天线支架设置于所述电路板300上。其中,所述卫星天线400可为固定设置于所述天线支架上的FPC(flexibleprinted circuit,柔性电路板)天线或通过激光镭射技术在天线支架上形成的LDS(Laser-Direct-structuring,激光直接成型)天线。其中,FPC天线指的是形成于FPC上的金属天线图案,所述FPC天线可通过粘接、嵌设、焊接等方式固定于天线支架上。LDS天线指的是通过激光镭射技术,直接在所述绝缘材料制成的天线支架上镀上的金属天线图案。In some embodiments, the satellite antenna 400 can be set on the circuit board 300, for example, the antenna target 400 can be set on an antenna bracket fixed on the circuit board 300, and then set on the antenna bracket through the antenna bracket. on the circuit board 300. Wherein, the satellite antenna 400 can be an FPC (flexible printed circuit, flexible circuit board) antenna fixedly arranged on the antenna bracket or an LDS (Laser-Direct-structuring, laser direct structuring) antenna formed on the antenna bracket by laser technology. )antenna. Wherein, the FPC antenna refers to a metal antenna pattern formed on the FPC, and the FPC antenna can be fixed on the antenna support by bonding, embedding, welding and the like. The LDS antenna refers to the metal antenna pattern plated directly on the antenna bracket made of the insulating material through laser laser technology.

在一些实施例中,所述卫星天线400也可为共用所述电子设备1000的金属边框而形成的天线。In some embodiments, the satellite antenna 400 may also be an antenna formed by sharing the metal frame of the electronic device 1000 .

其中,本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,所述计算机程序被处理器调用后执行如上述方法实施例中记载的任一方法的部分或全部步骤。Wherein, the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and the computer program is invoked by a processor to perform any method as described in the above-mentioned method embodiments some or all of the steps.

例如,所述计算机程序用于供所述处理器调用后执行如下的步骤:获取所述卫星天线的天线最佳方向,其中,所述天线最佳方向为卫星天线指向方向;获取用于与所述卫星天线进行通信的卫星相对于所述电子设备的卫星方向;以及根据所述天线最佳方向控制在所述显示屏上显示第一指示标记,以及根据所述卫星方向控制在所述显示屏上显示第二指示标记,其中,所述第一指示标记用于至少指示所述天线最佳方向,所述第二指示标记用于指示所述卫星方向,以通过所述第一指示标记以及第二指示标记引导对卫星天线指向方向进行调整。更具体的内容可参见前述任一实施例中的方法流程的具体描述。For example, the computer program is used to perform the following steps after being invoked by the processor: obtaining the best antenna direction of the satellite antenna, wherein the best antenna direction is the pointing direction of the satellite antenna; The direction of the satellite with which the satellite antenna communicates with respect to the satellite of the electronic device; and controlling the display of the first indicator mark on the display screen according to the optimal direction of the antenna, and controlling the display on the display screen according to the direction of the satellite The second indicator mark is displayed on the top, wherein the first indicator mark is used to at least indicate the optimal direction of the antenna, and the second indicator mark is used to indicate the direction of the satellite, so as to pass through the first indicator mark and the second indicator mark Two indicator marks guide the adjustment of the satellite antenna pointing direction. For more specific content, reference may be made to the specific description of the method flow in any of the foregoing embodiments.

其中,所述处理器可包括电子设备1000的处理器600和其他任意的具有处理功能的处理器,例如其他任意的单片机、数字信号处理器等等。Wherein, the processor may include the processor 600 of the electronic device 1000 and other arbitrary processors with processing functions, such as other arbitrary single-chip microcomputers, digital signal processors, and the like.

在一些实施例中,所述计算机可读存储介质可为前述的电子设备1000中的存储器10,从而,所述计算机程序存储在所述存储器10中,而可被所述电子设备1000的所述处理器600调用后执行前述的任一方法的部分或全部步骤。In some embodiments, the computer-readable storage medium may be the memory 10 in the aforementioned electronic device 1000 , so that the computer program is stored in the memory 10 and can be used by the electronic device 1000 The processor 600 executes some or all steps of any one of the foregoing methods after calling.

本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使处理器执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包。所述处理器可包括电子设备1000的处理器600和其他任意的具有处理功能的处理器。An embodiment of the present application further provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a processor to execute any of the methods described in the above method embodiments Some or all steps of a method. The computer program product may be a software installation package. The processor may include the processor 600 of the electronic device 1000 and any other processor with a processing function.

从而,本申请的引导调整卫星天线指向方向的方法及电子设备1000,通过在显示屏上显示用于至少指示所述天线最佳方向的所述第一指示标记以及用于指示所述卫星方向的第二指示标识,可以直观地告知用户所述天线最佳方向与所述卫星方向的角度偏差,从而,引导用户对卫星天线指向方向进行调整,例如引导用户调整所述电子设备的放置姿态,而调整所述卫星天线指向方向,使得所述卫星天线指向方向与所述卫星方向相同或大致相同,从而有效提升所述卫星天线的实际增益,而提高卫星通信质量。Therefore, the method for guiding and adjusting the pointing direction of a satellite antenna and the electronic device 1000 of the present application display the first indication mark for at least indicating the optimal direction of the antenna and the indication mark for indicating the direction of the satellite on the display screen. The second indicator can intuitively inform the user of the angle deviation between the optimal direction of the antenna and the direction of the satellite, thereby guiding the user to adjust the pointing direction of the satellite antenna, for example, guiding the user to adjust the placement posture of the electronic device, and The pointing direction of the satellite antenna is adjusted so that the pointing direction of the satellite antenna is the same or approximately the same as the direction of the satellite, thereby effectively increasing the actual gain of the satellite antenna and improving the quality of satellite communication.

本文参照了各种示范实施例进行说明。然而,本领域的技术人员将认识到,在不脱离本文范围的情况下,可以对示范性实施例做出改变和修正。例如,各种操作步骤以及用于执行操作步骤的组件,可以根据特定的应用或考虑与系统的操作相关联的任何数量的成本函数以不同的方式实现(例如一个或多个步骤可以被删除、修改或结合到其他步骤中)。This document is described with reference to various exemplary embodiments. However, those skilled in the art will recognize that changes and modifications can be made to the exemplary embodiments without departing from the scope herein. For example, the various operational steps, as well as the components used to perform the operational steps, may be implemented in different ways depending on the particular application or considering any number of cost functions associated with the operation of the system (e.g., one or more steps may be deleted, modified or incorporated into other steps).

另外,如本领域技术人员所理解的,本文的原理可以反映在计算机可读存储介质上的计算机程序产品中,该可读存储介质预装有计算机可读程序代码,即程序指令。任何有形的、非暂时性的计算机可读存储介质皆可被使用,包括磁存储设备(硬盘、软盘等)、光学存储设备(CD-ROM、DVD、Blu Ray盘等)、闪存和/或诸如此类。这些计算机程序指令可被加载到通用计算机、专用计算机或其他可编程数据处理设备上以形成机器,使得这些在计算机上或其他可编程数据处理装置上执行的指令可以生成实现指定的功能的装置。这些计算机程序指令也可以存储在计算机可读存储器中,该计算机可读存储器可以指示计算机或其他可编程数据处理设备以特定的方式运行,这样存储在计算机可读存储器中的指令就可以形成一件制造品,包括实现指定功能的实现装置。计算机程序指令也可以加载到计算机或其他可编程数据处理设备上,从而在计算机或其他可编程设备上执行一系列操作步骤以产生一个计算机实现的进程,使得在计算机或其他可编程设备上执行的指令可以提供用于实现指定功能的步骤。In addition, as understood by those skilled in the art, the principles herein can be embodied in a computer program product on a computer-readable storage medium preloaded with computer-readable program code, ie, program instructions. Any tangible, non-transitory computer-readable storage medium may be used, including magnetic storage devices (hard disks, floppy disks, etc.), optical storage devices (CD-ROM, DVD, Blu Ray discs, etc.), flash memory and/or the like . These computer program instructions can be loaded into a general purpose computer, special purpose computer or other programmable data processing apparatus to form a machine, so that these instructions executed on the computer or other programmable data processing apparatus can generate an apparatus for realizing specified functions. These computer program instructions may also be stored in a computer-readable memory which can instruct a computer or other programmable data processing device to operate in a particular manner such that the instructions stored in the computer-readable memory form a Manufactures, including implementing devices for implementing specified functions. Computer program instructions can also be loaded on a computer or other programmable data processing device, thereby performing a series of operational steps on the computer or other programmable device to produce a computer-implemented process, so that the computer or other programmable device Instructions may provide steps for performing specified functions.

以上描述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内;在不冲突的情况下,本申请的实施例及实施例中的特征可以相互组合。因此,本申请的保护范围应以权利要求的保护范围为准。The above description is only the specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application, and should It falls within the protection scope of the present application; in the case of no conflict, the embodiments of the present application and the features in the embodiments can be combined with each other. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims (17)

1. A method for guiding and adjusting the pointing direction of a satellite antenna is applied to an electronic device, the electronic device comprises the satellite antenna and a display screen, and the method comprises the following steps:
acquiring the optimal antenna direction of the satellite antenna, comprising:
acquiring an antenna direction unit vector of the optimal direction of the antenna of the satellite antenna in a coordinate system of the electronic equipment, wherein the optimal direction of the antenna is the pointing direction of the satellite antenna; the electronic equipment coordinate system is a coordinate system established by taking the center of the display screen as a coordinate origin, taking the direction parallel to the short side of the display screen as an X axis, taking the direction parallel to the long side of the display screen as a Y axis and taking the direction vertical to the display screen as a Z axis; the direction which is perpendicular to the display screen and points to the viewing side of the display screen is the positive direction of the Z axis;
obtaining a satellite orientation of a satellite used to communicate with the satellite antenna relative to the electronic device; and
displaying a first indication mark on the display screen according to the antenna optimal direction control, and displaying a second indication mark on the display screen according to the satellite direction control, wherein the first indication mark is used for at least indicating the antenna optimal direction, and the second indication mark is used for indicating the satellite direction, so that the pointing direction of the satellite antenna is adjusted through the guidance of the first indication mark and the second indication mark;
wherein the controlling of displaying a first indicator on the display screen according to the optimal direction of the antenna comprises:
determining an antenna coordinate position of the antenna direction unit vector in the electronic equipment coordinate system;
determining a first target position of the antenna direction unit vector mapped on the display screen according to the antenna coordinate position, wherein the first target position comprises:
acquiring a preset observation point coordinate position of an observation point on a Z-axis positive half shaft of an electronic equipment coordinate system, wherein the observation point is spaced from the origin of coordinates by a preset distance, and the projection of the observation point on the display screen is superposed with the center of the display screen serving as the origin of coordinates; and
calculating to obtain a first intersection point coordinate position of an intersection point of a connecting line of the observation point and the antenna coordinate position point and the display screen according to the observation point coordinate position and the antenna coordinate position, and taking the first intersection point coordinate position on the display screen as the first target position, wherein the antenna coordinate position point is a point corresponding to the antenna coordinate position, and a Z-axis coordinate in the antenna coordinate position is negative; and
and controlling the first indication mark to be displayed at the first target position on the display screen.
2. The method of claim 1, further comprising:
and controlling the corresponding change of the position relation between the second indicating mark and the first indicating mark displayed on the display screen in response to the adjustment operation of the placing posture of the electronic equipment, so as to prompt the change of the angle deviation of the optimal direction of the antenna and the direction of the satellite.
3. The method according to claim 2, wherein the position of the first indicator on the display screen is fixed, and the position of the second indicator on the display screen changes along with the change of the placement posture of the electronic device; the controlling, in response to the operation of adjusting the placement posture of the electronic device, a corresponding change in a positional relationship between a second indicator mark displayed on the display screen and the first indicator mark includes:
and controlling the second indicating mark to correspondingly move in response to the adjustment operation of the placing posture of the electronic equipment, so that the position relation between the second indicating mark and the first indicating mark is correspondingly changed.
4. The method of claim 1, wherein calculating a first intersection coordinate position of an intersection of a line connecting the observation point and the antenna coordinate position point and the display screen according to the observation point coordinate position and the antenna coordinate position comprises:
calculating the X-axis coordinate and the Y-axis coordinate in the first intersection coordinate position according to the formulas X1= L X0/(L-z 0) and Y1= L Y0/(L-z 0), thereby obtaining the first intersection coordinate position (X1, Y1, z 1); wherein X1 is an X-axis coordinate in the first intersection coordinate position, Y1 is a Y-axis coordinate in the first intersection coordinate position, Z1 is a Z-axis coordinate in the first intersection coordinate position, Z1=0, L is a Z-axis coordinate of the observation point, X0 is an X-axis coordinate of the antenna coordinate position, Y0 is a Y-axis coordinate of the antenna coordinate position, and Z0 is a Z-axis coordinate of the antenna coordinate position.
5. The method of claim 1, wherein determining the coordinate location of the antenna direction unit vector in the electronic device coordinate system comprises:
and respectively determining coordinate values corresponding to the projections of the antenna direction unit vector on the X axis, the Y axis and the Z axis in the electronic equipment coordinate system to obtain the coordinate position of the antenna direction unit vector in the electronic equipment coordinate system.
6. The method of claim 3, wherein obtaining a satellite orientation of a satellite used to communicate with the satellite antenna relative to the electronic device comprises:
acquiring a satellite direction unit vector of the satellite relative to the electronic equipment in a geodetic coordinate system, wherein the geodetic coordinate system is a coordinate system established by taking a geodetic plane as an XY plane and taking a gravity direction as a Z axis;
the displaying a second indication mark on the display screen according to the satellite direction control comprises:
converting the satellite direction unit vector of the satellite relative to the electronic equipment in the geodetic coordinate system into a satellite coordinate position in the electronic equipment coordinate system;
determining a second target position of the unit vector of the satellite direction mapped on the display screen according to the satellite coordinate position; and
and controlling the second indication mark to be displayed at the second target position on the display screen.
7. The method of claim 6, wherein translating the unit vector of satellite direction of the satellite in the geodetic coordinate system relative to the electronic device to a satellite coordinate position in the electronic device coordinate system comprises:
determining the coordinate position of the satellite direction unit vector in a geodetic coordinate system;
determining coordinate positions of an X-axis unit vector, a Y-axis unit vector and a Z-axis unit vector in the geodetic coordinate system in the electronic equipment coordinate system respectively;
and obtaining the satellite coordinate position of the satellite direction unit vector in the electronic equipment coordinate system according to the coordinate position of the satellite direction unit vector in the geodetic coordinate system and the coordinate positions of the X-axis unit vector, the Y-axis unit vector and the Z-axis unit vector in the geodetic coordinate system in the electronic equipment coordinate system respectively.
8. The method of claim 7, wherein determining the coordinate position of the unit vector of satellite directions in the geodetic coordinate system comprises:
coordinate values corresponding to projections of the satellite direction unit vector on an X axis, a Y axis and a Z axis in the geodetic coordinate system are respectively determined, so that the coordinate position of the satellite direction unit vector in the coordinate system of the electronic equipment is obtained;
the determining the coordinate positions of the X-axis unit vector, the Y-axis unit vector and the Z-axis unit vector in the geodetic coordinate system in the electronic device coordinate system respectively comprises:
the coordinate values corresponding to the projections of the X-axis unit vector on the X-axis, the Y-axis and the Z-axis in the electronic device coordinate system are determined to obtain the coordinate position of the X-axis unit vector in the electronic device coordinate system, the coordinate values corresponding to the projections of the Y-axis unit vector on the X-axis, the Y-axis and the Z-axis in the electronic device coordinate system are determined to obtain the coordinate position of the Y-axis unit vector in the electronic device coordinate system, and the coordinate values corresponding to the projections of the Z-axis unit vector on the X-axis, the Y-axis and the Z-axis in the electronic device coordinate system are determined to obtain the coordinate position of the Z-axis unit vector in the electronic device coordinate system.
9. The method of claim 8, wherein the obtaining the satellite coordinate position of the satellite direction unit vector in the electronic device coordinate system according to the coordinate position of the satellite direction unit vector in the geodetic coordinate system and the coordinate positions of the X-axis unit vector, the Y-axis unit vector and the Z-axis unit vector in the geodetic coordinate system in the electronic device coordinate system respectively comprises:
according to the formula x2= x s *x xg +y s *x yg +z s *x zg ,y2=x s *y xg +y s *y yg +z s *y zg And z2= x s *z xg +y s *z yg +z s *z zg Calculating to obtain a satellite coordinate position (x 2, y2, z 2); wherein, X2 is the X-axis coordinate of the satellite coordinate position, Y2 is the Y-axis coordinate of the satellite coordinate position, Z2 is the Z-axis coordinate of the satellite coordinate position, and X s ,y s And z s The coordinate values of the unit vector of the satellite direction on the X axis, the Y axis and the Z axis in the geodetic coordinate system are respectively xg ,x yg And x zg X coordinates corresponding to coordinate values corresponding to the projection of the X-axis unit vector in the geodetic coordinate system on the X axis in the electronic equipment coordinate system, Y coordinates corresponding to the projection on the Y axis in the electronic equipment coordinate system and Z coordinates corresponding to the projection on the Z axis in the electronic equipment coordinate system, wherein the Y coordinates are respectively xg ,y yg And y zg Respectively being an X coordinate corresponding to a projection of a Y-axis unit vector in the geodetic coordinate system on an X-axis of the electronic device coordinate system, a Y coordinate corresponding to a projection on a Y-axis of the electronic device coordinate system and a Z coordinate corresponding to a projection on a Z-axis of the electronic device coordinate system, the Z being xg ,z yg And z zg The coordinate system comprises an X coordinate corresponding to the projection of the Z-axis unit vector in the geodetic coordinate system on the X axis of the electronic device coordinate system, a Y coordinate corresponding to the projection on the Y axis of the electronic device coordinate system and a Z coordinate corresponding to the projection on the Z axis of the electronic device coordinate system.
10. The method of claim 6, wherein determining the second target location on the display screen to which the unit vector of satellite direction is mapped based on the position of the satellite coordinates comprises:
acquiring a preset observation point coordinate position of an observation point on a Z-axis positive half shaft of an electronic equipment coordinate system, wherein the observation point is spaced from the origin of coordinates by a preset distance, and the projection of the observation point on the display screen is superposed with the center of the display screen serving as the origin of coordinates;
and calculating according to the coordinate position of the observation point and the coordinate position of the satellite to obtain a second intersection point coordinate position of a connecting line of the coordinate position of the observation point and the coordinate position of the satellite and an intersection point of the display screen, and taking the second intersection point coordinate position on the display screen as the second target position, wherein the Z-axis coordinate in the coordinate position of the satellite is negative, and the coordinate position of the satellite is a point corresponding to the coordinate position of the satellite.
11. The method of claim 10, wherein calculating a second intersection coordinate position of an intersection of a line connecting the observation point coordinate position and the satellite coordinate position point and the display screen according to the observation point coordinate position and the satellite coordinate position comprises:
calculating the X-axis coordinate and the Y-axis coordinate in the second intersection coordinate position according to the formulas X3= L X4/(L-z 4) and Y3= L Y4/(L-z 4), thereby obtaining the second intersection coordinate position (X3, Y3, z 3); wherein X3 is an X-axis coordinate in the second intersection coordinate position, Y3 is a Y-axis coordinate in the second intersection coordinate position, Z3 is a Z-axis coordinate in the second intersection coordinate position, Z3=0, L is a Z-axis coordinate of the observation point, X4 is an X-axis coordinate in the satellite coordinate position, Y4 is a Y-axis coordinate in the satellite coordinate position, and Z4 is a Z-axis coordinate in the satellite coordinate position.
12. The method of any of claims 3-11, wherein the first indicator mark comprises a center point and a ring area surrounding the center point, the center point being used to characterize the antenna best direction, and the ring area being used to characterize the antenna sub-best direction, the method further comprising:
in the process of controlling the second indicating mark to correspondingly move in response to the adjustment operation of the placement posture of the electronic equipment, when the second indicating mark moves to the annular area in the first indicating mark, a first prompting signal is controlled to be generated.
13. The method of claim 12, further comprising:
when the second indicating mark moves to the central point in the first indicating mark, a second prompting signal is controlled to be generated.
14. The method of claim 12, wherein the annular region is different from the display parameters of the center point, the display parameters including at least one of color and pattern.
15. The method according to any one of claims 2-11, further comprising:
calculating the antenna gain of the satellite antenna in the process of adjusting the placing posture of the electronic equipment;
and when the antenna gain of the satellite antenna is determined to be greater than or equal to a preset threshold value, controlling to generate a first prompt signal.
16. An electronic device, comprising:
a satellite antenna;
a display screen; and
a processor for controlling the execution of the method of any one of claims 1-15.
17. An electronic device, comprising:
a memory storing a computer program;
a processor for invoking the computer program to perform the method of any of claims 1-15.
CN202210922681.1A 2022-08-02 2022-08-02 Method and electronic equipment for guiding and adjusting satellite antenna pointing direction Active CN114995526B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210922681.1A CN114995526B (en) 2022-08-02 2022-08-02 Method and electronic equipment for guiding and adjusting satellite antenna pointing direction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210922681.1A CN114995526B (en) 2022-08-02 2022-08-02 Method and electronic equipment for guiding and adjusting satellite antenna pointing direction

Publications (2)

Publication Number Publication Date
CN114995526A CN114995526A (en) 2022-09-02
CN114995526B true CN114995526B (en) 2023-01-10

Family

ID=83021483

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210922681.1A Active CN114995526B (en) 2022-08-02 2022-08-02 Method and electronic equipment for guiding and adjusting satellite antenna pointing direction

Country Status (1)

Country Link
CN (1) CN114995526B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024225747A1 (en) * 2023-04-24 2024-10-31 삼성전자 주식회사 Electronic device including satellite communication antenna, and operation method thereof

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5170176A (en) * 1990-02-27 1992-12-08 Kokusai Denshin Denwa Co., Ltd. Quadrifilar helix antenna
US5583514A (en) * 1994-03-07 1996-12-10 Loral Aerospace Corp. Rapid satellite acquisition device
US5936553A (en) * 1997-02-28 1999-08-10 Garmin Corporation Navigation device and method for displaying navigation information in a visual perspective view
JP2005004542A (en) * 2003-06-12 2005-01-06 Mitsubishi Electric Corp Mobile communication device, server device, walk guidance device, method of mobile communication, method of communication, method of guiding walk, program, and computer readable recording medium for recording this program
TWM392447U (en) * 2010-06-03 2010-11-11 Motion Technology Co Ltd T Satellite antenna rotation seat with angle-adjusting display
CN105793667A (en) * 2013-12-02 2016-07-20 半球全球卫星导航系统公司 Integrated Machine Guidance System
CN105874723A (en) * 2014-01-08 2016-08-17 株式会社东芝 Satellite communication system
CN109639337A (en) * 2018-11-23 2019-04-16 南京控维通信科技有限公司 Graphical auxiliary suitable for satellite communication equipment is to star method
CN110515101A (en) * 2019-06-21 2019-11-29 成都天锐星通科技有限公司 A kind of satellite fast acquisition method and phased array antenna system
CN113790732A (en) * 2021-08-06 2021-12-14 荣耀终端有限公司 Method and device for generating location information

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7391381B2 (en) * 2004-01-07 2008-06-24 Motia Vehicle mounted satellite antenna system with in-motion tracking using beam forming
US10164723B2 (en) * 2017-03-17 2018-12-25 Higher Ground Llc Adaptive augmented reality satellite acquisition
KR102439787B1 (en) * 2018-01-18 2022-09-02 삼성전자주식회사 Electronic device for sweeping the phase of the antenna

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5170176A (en) * 1990-02-27 1992-12-08 Kokusai Denshin Denwa Co., Ltd. Quadrifilar helix antenna
US5583514A (en) * 1994-03-07 1996-12-10 Loral Aerospace Corp. Rapid satellite acquisition device
US5936553A (en) * 1997-02-28 1999-08-10 Garmin Corporation Navigation device and method for displaying navigation information in a visual perspective view
JP2005004542A (en) * 2003-06-12 2005-01-06 Mitsubishi Electric Corp Mobile communication device, server device, walk guidance device, method of mobile communication, method of communication, method of guiding walk, program, and computer readable recording medium for recording this program
TWM392447U (en) * 2010-06-03 2010-11-11 Motion Technology Co Ltd T Satellite antenna rotation seat with angle-adjusting display
CN105793667A (en) * 2013-12-02 2016-07-20 半球全球卫星导航系统公司 Integrated Machine Guidance System
CN105874723A (en) * 2014-01-08 2016-08-17 株式会社东芝 Satellite communication system
CN109639337A (en) * 2018-11-23 2019-04-16 南京控维通信科技有限公司 Graphical auxiliary suitable for satellite communication equipment is to star method
CN110515101A (en) * 2019-06-21 2019-11-29 成都天锐星通科技有限公司 A kind of satellite fast acquisition method and phased array antenna system
CN113790732A (en) * 2021-08-06 2021-12-14 荣耀终端有限公司 Method and device for generating location information

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
动中通卫星天线圆锥扫描算法研究与应用;陈汝军;《计算机技术与发展》;20151231;第25卷(第12期);201-205 *
基于嵌入式控制器的便携式卫星通信控制系统设计;孙钟阜等;《机电产品开发与创新》;20130128(第01期);124-126+92 *

Also Published As

Publication number Publication date
CN114995526A (en) 2022-09-02

Similar Documents

Publication Publication Date Title
EP3962119B1 (en) Positioning method and apparatus
JP6077068B1 (en) Augmented reality system and augmented reality method
US9271103B2 (en) Audio control based on orientation
JP4951673B2 (en) Tracking mobile terminal groups
JP4268626B2 (en) Mobile communication terminal
JP6059607B2 (en) Wireless tag search method and apparatus
US12158535B2 (en) Positioning method and communication device
WO2015067982A1 (en) Directional proximity detection
JP6687835B2 (en) Mobile terminal device and program
CN114995526B (en) Method and electronic equipment for guiding and adjusting satellite antenna pointing direction
CN109191373A (en) Navigation coordinate converts gauss projection and sits calibration method, system, equipment and medium
CN114494408A (en) Star finding method and device
CN117579738B (en) Interface display method, electronic equipment and chip system
CN116097667A (en) Method for searching for lost device by using UWB and AR and apparatus therefor
WO2013152559A1 (en) Position-based prompt method and mobile terminal
JP5647595B2 (en) Mobile communication terminal, mobile communication method, and mobile communication program
JP2014007572A (en) Graphical user interface device, system, method, computer program, and recording medium
KR101985326B1 (en) Localization control method of sound for portable device and portable device thereof
WO2017206037A1 (en) Positioning method and apparatus
JP6740988B2 (en) Map information providing device, portable map transmitting device, map information providing system, map information providing method and program
CN112734346B (en) Method, device and equipment for determining lane coverage and readable storage medium
JPH11313373A (en) Mobile communication terminal device and control method therefor
CN113630712B (en) Positioning method, device and equipment
WO2019187748A1 (en) Electronic apparatus and processing system
JP2015122604A (en) Wireless communication system, wireless communication apparatus, and computer program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address