Method and device for using ephemeris data

By using real-time ephemeris data to verify predicted ephemeris data in satellite communication, the problem of communication failure caused by predicted ephemeris data deviation was solved, resulting in a higher success rate and better user experience.

CN121966649APending Publication Date: 2026-05-01HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HONOR DEVICE CO LTD
Filing Date
2024-10-31
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

The predicted ephemeris data used in existing satellite communications may contain biases, leading to a decrease in the success rate of satellite services and affecting user experience.

Method used

By acquiring predicted ephemeris data and real-time ephemeris data, the satellite position difference is calculated. If the difference is greater than a threshold, the corresponding data in the predicted ephemeris data is replaced, and the ephemeris data is updated to improve accuracy and ensure the success rate of satellite communication.

Benefits of technology

While ensuring the accuracy and success rate of satellite communication, it reduces data consumption, adapts to communication needs in scenarios without network coverage, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121966649A_ABST
    Figure CN121966649A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a method and device for using ephemeris data, relates to the field of communication, and can avoid satellite communication function abnormity caused by large deviation of predicted ephemeris data. The method is applied to the electronic equipment and comprises the following steps: respectively acquiring predicted ephemeris data and real-time ephemeris data; calculating a first position of the first satellite according to the first data, and calculating a second position of the first satellite according to the second data; the first data comprises ephemeris data of a first satellite in the real-time ephemeris data, the second data comprises ephemeris data of the first satellite in partial data of the predicted ephemeris data, and the partial data comprises ephemeris data with the same or similar time range as the real-time ephemeris data; under the condition that the difference value between the first position and the second position is larger than or equal to a preset threshold value, the second data are replaced with the first data, updated predicted ephemeris data are obtained, and the updated predicted ephemeris data are used for satellite communication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communications, and more particularly to a method and apparatus for using ephemeris data. Background Technology

[0002] Satellite communication can refer to the technology that enables electronic devices to establish communication connections with satellites to exchange data. For example, electronic devices can make phone calls or send text messages via satellite.

[0003] Satellite communication requires acquiring ephemeris data, capturing satellite signals based on the ephemeris data, and then conducting satellite communication based on the captured satellite signals. Ephemeris data is a series of tables or databases that provide information such as the satellite's position and velocity in its orbit.

[0004] Currently, the ephemeris data used in satellite communication (e.g., BeiDou communication) mainly comes from the operators' servers, which can store predicted ephemeris data for terminals to download. However, the predicted ephemeris data provided by the operators' servers may be inaccurate (e.g., the server's data source may be incorrect), or due to reasons such as temporary satellite orbit changes, abnormal data access, bandwidth limitations, and untimely downloads, the predicted ephemeris data downloaded by the terminal may have significant deviations, thus affecting the normal use of satellite services, leading to a decrease in service success rate and a reduced user experience. Summary of the Invention

[0005] This application provides a method and apparatus for using ephemeris data, which can avoid abnormal satellite communication functions caused by large deviations in the predicted ephemeris data.

[0006] To achieve the above objectives, the embodiments of this application adopt the following technical solutions:

[0007] In a first aspect, a method for using ephemeris data is provided for use in electronic devices. The method includes: acquiring predicted ephemeris data and real-time ephemeris data respectively, wherein the predicted ephemeris data includes ephemeris data within a first time range, and the real-time ephemeris data includes ephemeris data within a second time range, wherein the second time range is smaller than the first time range and is within the first time range; calculating a first position of a first satellite based on the first data, and calculating a second position of the first satellite based on the second data; wherein the first data includes ephemeris data of the first satellite in the real-time ephemeris data, and the second data includes ephemeris data of the first satellite in a portion of the predicted ephemeris data, wherein the portion of the data includes ephemeris data within the same or similar time range as the real-time ephemeris data; and, if the difference between the first position and the second position is greater than or equal to a preset threshold, replacing the second data with the first data to obtain updated predicted ephemeris data, wherein the updated predicted ephemeris data is used for satellite communication.

[0008] Based on the method provided in this application, predicted ephemeris data can be verified using real-time ephemeris data. For example, the position of the same satellite (the first satellite) can be calculated using both real-time ephemeris data and predicted ephemeris data. If the difference between the two calculated positions of the first satellite (the first position and the second position) is greater than or equal to a preset threshold, it indicates that the predicted ephemeris data is not accurate enough. In this case, the inaccurate data in the predicted ephemeris data can be replaced with the corresponding data in the real-time ephemeris data (e.g., replacing the second data with the first data) to update the predicted ephemeris data. This improves the accuracy of the predicted ephemeris data, thereby increasing the success rate of satellite communication.

[0009] It should be noted that, in one possible approach, satellite communication could be based solely on predicted ephemeris data. However, predicted ephemeris data is quite large, potentially including ephemeris data within a first time frame (e.g., 28 days). Frequent downloads of predicted ephemeris data to ensure accuracy could lead to excessive data consumption by electronic devices. In contrast, some embodiments of this application use real-time ephemeris data to verify the predicted ephemeris data. Real-time ephemeris data is smaller, typically including ephemeris data within a second time frame (e.g., 4 hours). Verifying the predicted ephemeris data using real-time ephemeris data can improve accuracy while avoiding excessive data consumption.

[0010] In another possible approach, satellite communication can be based solely on real-time ephemeris data. However, since the time range corresponding to real-time ephemeris data is relatively small (e.g., 4 hours), frequent downloads of real-time ephemeris data are necessary. Compared to this approach, some embodiments of this application employ a scheme that ensures satellite communication can still be conducted using predicted ephemeris data even when there is no network and real-time ephemeris data cannot be downloaded. Furthermore, since the predicted ephemeris data is verified against real-time ephemeris data (verified against downloaded real-time ephemeris data when network access is available), its accuracy is guaranteed. Therefore, compared to schemes relying solely on real-time ephemeris data for satellite communication, some embodiments of this application provide a higher success rate for satellite communication in more scenarios (no network scenarios) and for longer periods (the time range of predicted ephemeris data is longer than that of real-time ephemeris data).

[0011] In one possible implementation, updating the predicted ephemeris data can include at least one of the following: 1) Removing (filtering) ephemeris data that fails verification (i.e., unhealthy ephemeris data) from the predicted ephemeris data, and subsequently sending the remaining ephemeris data (i.e., the updated predicted ephemeris data) to the satellite protocol stack during satellite services. 2) Discarding all the predicted ephemeris data downloaded this time (e.g., 28 days of predicted ephemeris data) and re-downloading the predicted ephemeris. Compared to the above methods of updating predicted ephemeris data, replacing the corresponding predicted ephemeris data with the corresponding real-time ephemeris data (e.g., replacing the second data with the first data) can improve the accuracy of the predicted ephemeris data while ensuring its integrity.

[0012] In one possible implementation, before replacing the second data with the first data, the method further includes: modifying a first flag of the second data, whereby the modified first flag indicates that the second data is inaccurate. That is, predicted ephemeris data that fails verification (e.g., the ephemeris data of the first satellite (i.e., the first data)) can be marked as inaccurate (unhealthy), and unhealthy predicted ephemeris data will not be sent to the satellite protocol stack during subsequent satellite services.

[0013] In one possible implementation, obtaining real-time ephemeris data includes at least one of the following: Downloading real-time ephemeris data while the electronic device is downloading predicted ephemeris data; it should be noted that the download of predicted ephemeris data is performed while the device is connected to the internet, and in this case, synchronously downloading real-time ephemeris data ensures successful download. Downloading real-time ephemeris data every preset time interval (e.g., 4 hours) while the electronic device is connected to a Wi-Fi network; it should be noted that when the electronic device is connected to Wi-Fi, real-time ephemeris data can be updated (i.e., re-downloaded) in a timely manner, ensuring that the electronic device obtains the latest real-time ephemeris data promptly without wasting user data. Downloading real-time ephemeris data when satellite service fails and there is no real-time ephemeris data within a valid timeframe; or, when real-time ephemeris data within a valid timeframe cannot be found after starting the satellite protocol stack and satellite RF components, downloading real-time ephemeris data. This allows for verification of predicted ephemeris data based on real-time ephemeris data, preventing subsequent abnormalities in satellite communication functions due to errors in the predicted ephemeris data.

[0014] In one possible implementation, when an electronic device downloads predicted ephemeris data, downloading real-time ephemeris data includes: after downloading the predicted ephemeris data, determining whether the generation time of the predicted ephemeris data exceeds a first threshold; if the generation time of the predicted ephemeris data exceeds the first threshold, downloading the real-time ephemeris data. It is understood that if the generation time of the predicted ephemeris data exceeds the first threshold from the current time, it indicates that the accuracy of the predicted ephemeris data may have decreased. In this case, real-time ephemeris data can be downloaded so that the predicted ephemeris data can be subsequently verified based on the real-time ephemeris data to ensure the accuracy of the predicted ephemeris data.

[0015] In one possible implementation, the electronic device includes a satellite protocol stack and a satellite radio frequency (RF) component. Calculating the first position of the first satellite based on first data and the second position based on second data includes: calculating the first position of the first satellite based on the first data and the second position based on the second data after acquiring predicted ephemeris data and real-time ephemeris data respectively, and before activating the satellite protocol stack and the satellite RF component; wherein the satellite protocol stack and the satellite RF component are used for satellite communication. That is, the timing for verifying the predicted ephemeris data can be before activating the satellite protocol stack and the satellite RF component (i.e., before the satellite communication chip is powered on), or immediately after downloading the predicted ephemeris data, verifying the predicted ephemeris data (e.g., calculating the first and second positions and comparing the difference between the first and second positions with a preset threshold). Since the predicted ephemeris data is downloaded while the network is connected, synchronously downloading real-time ephemeris data and immediately verifying the newly downloaded predicted ephemeris data based on the newly downloaded real-time ephemeris data is easily implemented, ensuring the success rate of predicted ephemeris data verification and thus improving the success rate of satellite communication.

[0016] In one possible implementation, after activating the satellite protocol stack and satellite RF components, the method further includes: calculating the third position of the second satellite based on third data, and calculating the fourth position of the second satellite based on fourth data; the third data includes the ephemeris data of the second satellite in real-time ephemeris data, and the fourth data includes the ephemeris data of the second satellite in a portion of the predicted ephemeris data; if the difference between the third position and the fourth position is greater than or equal to a preset threshold, the fourth data is replaced with the third data. That is, after downloading the predicted ephemeris data, the electronic device can immediately verify the predicted ephemeris data (e.g., calculate the first and second positions and compare the difference between the first and second positions with a preset threshold), and update the predicted ephemeris data based on the verification result (e.g., replace the second data with the first data), ensuring the success rate of the predicted ephemeris data verification. Furthermore, after the electronic device starts the satellite protocol stack and satellite RF components, it can also verify the predicted ephemeris data (e.g., calculate the third and fourth positions and compare the difference between the third and fourth positions with the preset threshold). Based on the verification results, the predicted ephemeris data can be updated (e.g., replace the fourth data with the third data), which further ensures the success rate of the predicted ephemeris data verification, improves the success rate of satellite communication, and thus improves the user experience.

[0017] In one possible implementation, the electronic device includes a satellite protocol stack and a satellite radio frequency (RF) component. Calculating the first position of the first satellite based on first data and the second position based on second data includes: after activating the satellite protocol stack and the RF component, calculating the first position of the first satellite based on the first data and the second position based on the second data; wherein the satellite protocol stack and the RF component are used for satellite communication. That is, after the electronic device activates the satellite protocol stack and the RF component, it can verify the predicted ephemeris data (e.g., calculate the first and second positions and compare the difference between the first and second positions with a preset threshold), and update the predicted ephemeris data based on the verification result (e.g., replace the second data with the first data). This can effectively identify unhealthy predicted ephemeris data and prevent errors in the predicted ephemeris data from causing abnormal satellite communication functions.

[0018] In one possible implementation, the electronic device also includes a satellite frame. After activating the satellite protocol stack and satellite RF components, the method further includes: the satellite frame acquiring strong satellite information, which indicates RNSS satellites with signal strength greater than or equal to a preset strength; the satellite frame sending first target ephemeris data (strong satellite ephemeris data) to the satellite protocol stack, the first target ephemeris data including the ephemeris data of the RNSS satellite indicated by the strong satellite information in the updated predicted ephemeris data; and the satellite protocol stack capturing RNSS satellite signals based on the first target ephemeris data. This improves the success rate of the electronic device (and its satellite protocol stack) capturing RNSS satellite signals.

[0019] In one possible implementation, the first target ephemeris data includes ephemeris data of RNSS satellites indicated by strong star information in the updated predicted ephemeris data, comprising: the first target ephemeris data includes the ephemeris data of the top N RNSS satellites in the ephemeris data of RNSS satellites indicated by strong star information, where N is an integer greater than 1; among any two adjacent RNSS satellites in the top N RNSS satellites, the score of the first RNSS satellite is higher than the score of the second RNSS satellite; the first RNSS satellite is ranked before the second RNSS satellite; the score of the first RNSS satellite is determined based on the signal strength and position deviation of the first RNSS satellite, and the score of the second RNSS satellite is determined based on the signal strength and position deviation of the second RNSS satellite; the position deviation corresponding to the first RNSS satellite is the... The deviation between positions five and six is ​​as follows: Position five is the position of the first RNSS satellite calculated based on data from the fifth data set, which includes the ephemeris data of the first RNSS satellite in the real-time ephemeris data; Position six is ​​the position of the first RNSS satellite calculated based on data from the sixth data set, which also includes the ephemeris data of the first RNSS satellite in the predicted ephemeris data. The deviation between positions seven and eight for the second RNSS satellite is as follows: Position seven is the position of the second RNSS satellite calculated based on data from the seventh data set, which also includes the ephemeris data of the second RNSS satellite in the real-time ephemeris data; Position eight is the position of the second RNSS satellite calculated based on data from the eighth data set, which also includes the ephemeris data of the second RNSS satellite in the predicted ephemeris data. This improves the success rate of the electronic device (satellite protocol stack) in acquiring RNSS satellite signals.

[0020] In one possible implementation, the method further includes: the satellite frame sending second target ephemeris data to the satellite protocol stack, the second target ephemeris data including the ephemeris data of the top M ranked Radio Determination System (RDSS) satellites in the updated predicted ephemeris data; M is an integer greater than 1; the positional deviation of the first RDSS satellite among any two adjacent RDSS satellites in the top M ranked RDSS satellites is less than the positional deviation of the second RDSS satellite; the first RDSS satellite is ranked before the second RDSS satellite; the positional deviation of the first RDSS satellite is the deviation between the ninth position and the tenth position, the ninth position being the position of the first RDSS satellite calculated based on the ninth data, the ninth data including the position of the first RDSS satellite in the real-time ephemeris data. The system uses ephemeris data for a first RDSS satellite; the tenth position is the calculated position of the first RDSS satellite based on the tenth data; the tenth data includes the ephemeris data of the first RDSS satellite from the predicted ephemeris data; the position deviation corresponding to the second RDSS satellite is the deviation between the eleventh and twelfth positions; the eleventh position is the calculated position of the second RDSS satellite based on the eleventh data, which includes the ephemeris data of the second RDSS satellite from the real-time ephemeris data; the twelfth position is the calculated position of the second RDSS satellite based on the twelfth data; the twelfth data includes the ephemeris data of the second RDSS satellite from the predicted ephemeris data; and the satellite protocol stack captures the RDSS satellite signal based on the second target ephemeris data. This improves the success rate of the electronic device (satellite protocol stack) in capturing RDSS satellite signals.

[0021] In one possible implementation, obtaining predicted ephemeris data and real-time ephemeris data separately includes: obtaining predicted ephemeris data from the operator's ephemeris server; and obtaining real-time ephemeris data from the Auxiliary Global Navigation Satellite System (AGNSS) server and / or the International GNSS Service website. In other words, predicted ephemeris data and real-time ephemeris data can be obtained from different sources.

[0022] In one possible implementation, the electronic device further includes a Location Service (LBS) module that obtains real-time ephemeris data from an Assisted Global Navigation Satellite System (AGNSS) server. This includes: the satellite frame sending a real-time ephemeris data download request to the LBS module; the LBS module initiating a real-time ephemeris data download thread, which generates a Secure User Plane Positioning (SUPL) request to request real-time ephemeris data; the LBS module sending the SUPL request to the AGNSS server; the LBS module receiving a SUPL response from the AGNSS server, the SUPL response carrying the real-time ephemeris data; the LBS module parsing the SUPL response into an Ultra-Low Power Protocol Data Unit (ULP_PDU) structure and extracting the real-time ephemeris data from the message body of the SUPL response; the LBS module assembling the real-time ephemeris data into a JSON object, generating a JSON file, and storing it in a specified directory, which is negotiated between the LBS module and the satellite frame for storing the real-time ephemeris data; the LBS module notifying the satellite frame that the real-time ephemeris data download was successful; and the satellite frame reading the real-time ephemeris data from the specified directory.

[0023] In one possible implementation, obtaining predicted ephemeris data includes: downloading predicted ephemeris data from a server when preset conditions are met; wherein the preset conditions include at least one of the following: the electronic device is connected to the network; the satellite communication switch is on, which enables the satellite communication function of the electronic device; the download time of the last predicted ephemeris data exceeds a second threshold; and the key is valid, which is used for authentication of satellite communication. It is understood that after the electronic device downloads predicted ephemeris data from the server for the first time, it can update the predicted ephemeris data based on the preset conditions (updating predicted ephemeris data here means downloading the latest predicted ephemeris data and replacing the previously downloaded predicted ephemeris data with the latest predicted ephemeris data), which can ensure the timeliness and accuracy of the predicted ephemeris data of the electronic device.

[0024] In one possible implementation, if the difference between the first position and the second position is less than a preset threshold, the predicted ephemeris data is saved (i.e., the predicted ephemeris data may not be updated); when the satellite protocol stack and satellite radio frequency (RF) components are started, the saved predicted ephemeris data is sent to the satellite protocol stack so that the satellite protocol stack can capture RNSS and RDSS satellite signals based on the predicted ephemeris data, thereby realizing satellite communication.

[0025] In one possible implementation, the electronic device includes a satellite communication chip, which is a chip used for communicating with a satellite. Starting the satellite protocol stack and satellite radio frequency (RF) components includes powering on the satellite communication chip.

[0026] In a second aspect, an electronic device is provided, comprising: a processor and a memory; the memory storing computer-executable instructions; the processor executing the computer-executable instructions stored in the memory, causing the electronic device to perform the methods described in any possible implementation of the first aspect. Further, the processor (e.g., a modem, an access point, or a SoC) may include a satellite protocol stack. Further, the electronic device may include a satellite communication processor. The satellite communication processor includes a satellite protocol stack. The electronic device may also include satellite radio frequency (RF) components.

[0027] Thirdly, a chip system is provided, including at least one processor and at least one interface, the interface and the processor being interconnected via a circuit, wherein the at least one processor is used to run computer programs or instructions to perform the methods described in any possible implementation of the first aspect. Further, the processor may include a satellite protocol stack.

[0028] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements the method described in any possible implementation of the first aspect.

[0029] Fifthly, embodiments of this application provide a computer program product, which includes a computer program that, when run, causes a computer to perform the method described in any possible implementation of the first aspect.

[0030] It is understood that the electronic device provided in the second aspect, the chip system provided in the third aspect, the computer-readable storage medium provided in the fourth aspect, and the computer program product provided in the fifth aspect are all used to execute the method described in any implementation of the first aspect. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects of any possible implementation of the first aspect, which will not be repeated here. Attached Figure Description

[0031] Figure 1A This application provides a schematic diagram of the architecture of a communication system.

[0032] Figure 1B A schematic diagram illustrating the acquisition of RDSS satellite signals assisted by RNSS satellite signals, provided as an embodiment of this application;

[0033] Figure 2 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0034] Figure 3 This is a schematic diagram of the structure of another electronic device provided in an embodiment of this application;

[0035] Figure 4 A schematic diagram of the software architecture of an electronic device provided in an embodiment of this application;

[0036] Figure 5A This is a schematic diagram of a method process provided in an embodiment of this application;

[0037] Figure 5B This is a schematic diagram of another method process provided in an embodiment of this application;

[0038] Figure 6 A schematic diagram provided for an embodiment of this application;

[0039] Figure 7 This is yet another display schematic diagram provided for an embodiment of this application;

[0040] Figure 8 This is a schematic diagram of a predicted ephemeris data provided in an embodiment of this application;

[0041] Figure 9 This application provides an interactive schematic diagram of obtaining real-time ephemeris data in an embodiment of the present application.

[0042] Figure 10 This application provides a schematic diagram illustrating the verification and prediction of ephemeris data based on real-time ephemeris data in an embodiment of the present application.

[0043] Figure 11 This is a schematic diagram of another method process provided in an embodiment of this application;

[0044] Figure 12A This is yet another display schematic diagram provided for an embodiment of this application;

[0045] Figure 12B This is yet another display schematic diagram provided for an embodiment of this application;

[0046] Figure 12C This is yet another display schematic diagram provided for an embodiment of this application;

[0047] Figure 12D This is yet another display schematic diagram provided for an embodiment of this application;

[0048] Figure 12E This is yet another display schematic diagram provided for an embodiment of this application;

[0049] Figure 13A A schematic diagram illustrating the interface display and satellite protocol stack processing flow provided in an embodiment of this application;

[0050] Figure 13B A schematic diagram illustrating another interface display and satellite protocol stack processing flow provided in an embodiment of this application;

[0051] Figure 14This is a schematic diagram of a chip system provided in an embodiment of this application. Detailed Implementation

[0052] Currently, the ephemeris data used in satellite communication (e.g., BeiDou communication) mainly comes from the operator's servers, which can store predicted ephemeris data for terminals to download. However, the predicted ephemeris data provided by the operator's servers may be inaccurate (e.g., the server's data source may be incorrect), or the predicted ephemeris data downloaded by the terminal may be inaccurate (or erroneous) due to reasons such as temporary satellite orbit changes, abnormal data access, bandwidth limitations, and untimely downloads. This can affect the normal use of satellite services, leading to a decrease in service success rate and a reduced user experience.

[0053] This application provides a method and apparatus for using ephemeris data, which can avoid satellite communication malfunctions caused by errors in ephemeris data prediction and improve user experience.

[0054] like Figure 1A The diagram shown is a schematic representation of a communication system architecture provided in an embodiment of this application. The communication system may include a satellite communication network and a cellular communication network. The satellite communication network may include electronic device 100, satellite 500, satellite 200, ground receiving platform 300 (including a ground control system and a short message communication service platform), and a satellite-ground integrated communication gateway 400. Satellite 500 may include multiple (e.g., three) medium-Earth orbit satellites (e.g., GPS satellites). Satellite 500 can be used for satellite positioning. Satellite 200 may be a high-Earth orbit satellite (e.g., a high-Earth orbit satellite of BeiDou-61). Satellite 200 can be used for satellite communication (e.g., sending and receiving satellite SMS messages). The cellular communication network may include operator platform 700 (e.g., a mobile operator platform), operator platform 800 (e.g., a China Unicom operator platform), network equipment 900 (e.g., a base station), network equipment 1000 (e.g., a base station), electronic device 1100, electronic device 1200, emergency rescue platform 600, national emergency rescue center 1300, emergency medical center 1400, etc. Electronic device 1100 and electronic device 1200 can each correspond to different operators. Electronic device 100 can communicate with electronic device 1100 / electronic device 1200 via satellite communication networks and cellular communication networks. Electronic device 1100 and electronic device 1200 can communicate with each other via cellular communication networks.

[0055] The following example illustrates the process of electronic device 100 communicating with electronic device 1100 via satellite communication network and cellular communication network.

[0056] 1) Electronic device 100 can perform positioning based on signals transmitted by satellite 500, and further select a satellite beam according to its own location information. Then, electronic device 100 can send BeiDou SMS messages to satellite 200 (e.g., a high-orbit satellite of BeiDou-61).

[0057] For example, BeiDou SMS can send messages of up to 20 characters, providing both user location information and location display. BeiDou SMS can be applied in outdoor scenarios such as individual soldier use, emergency response, and tourism.

[0058] 2) After receiving the BeiDou SMS message, satellite 200 can send it to the ground receiving platform 300.

[0059] 3) After receiving the BeiDou SMS message, the receiving platform 300 can send it to the space-ground integrated communication gateway 400.

[0060] 4) After receiving the BeiDou SMS, the space-ground converged communication gateway 400 converts the BeiDou SMS into a regular SMS (e.g., an SMS sent via a cellular network), determines the operator platform to which the user who sent the regular SMS belongs, and forwards the regular SMS to the corresponding operator platform (e.g., operator platform 700).

[0061] 6) The operator platform 700 determines the network device (e.g., network device 900) currently corresponding to the recipient of the SMS message (e.g., electronic device 1100) and forwards the SMS message to the network device 900.

[0062] The operator platform 700 can query the home subscriber server (HSS) / home location register (HLR) of the electronic device 1100's number to determine the recipient's current network device (e.g., network device 900) and forward the SMS message to network device 900. The HSS stores the user's registration information.

[0063] 7) After receiving the SMS message, network device 900 can send it to electronic device 1100.

[0064] 8) Electronic device 1100 receives a text message forwarded by network device 900. The content of the text message is the same as the content of the Beidou text message sent by electronic device 100.

[0065] Optionally, after receiving an SMS message forwarded by network device 900, electronic device 1100 can notify the user that the SMS message originated from electronic device 100 (the corresponding user). Furthermore, electronic device 1100 can notify the user that the SMS message is a BeiDou SMS message from electronic device 100 (the corresponding user).

[0066] Additionally, if electronic device 100 makes an emergency call, the space-ground converged communication gateway 400, upon receiving the call, can forward it to the emergency rescue platform 600. The emergency rescue platform 600 can then forward the call to the national rescue center 1300. The national rescue center 1300 can then send the emergency call information to the nearest rescue center 1400 based on the location information of the electronic device making the emergency call. For example, if the electronic device making the emergency call is located in Yunnan, the emergency call information can be sent to the rescue center in Yunnan.

[0067] To ensure clarity and conciseness in the description of the following embodiments, a brief introduction to the relevant concepts or technologies is given below:

[0068] Radio navigation satellite system (RNSS): This system involves the user receiving radio navigation signals from a Global Navigation Satellite System (GNSS) and autonomously measuring distances to at least four satellites to calculate the user's position, speed, and navigation parameters. Typical RNSS systems include the Global Positioning System (GPS).

[0069] Radio Determination Satellite System (RDSS): In RDSS, the distance measurement and position calculation from the user to the satellite cannot be completed independently by the user equipment itself; it must be accomplished by an external system through the user equipment's response. Its key feature is that, through the user equipment's response, it simultaneously completes the positioning and reports the user's position to the external system, and also integrates positioning with communication (short message service).

[0070] RN acquisition: This refers to acquiring (receiving) signals from RNSS satellites. RNSS satellites can include medium Earth orbit (MEO) satellites, geosynchronous earth orbit (GEO) satellites, and inclined geosynchronous orbit (IGSO) satellites. IGSO satellites are also known as geosynchronous inclined orbit (GIO) satellites. MEO satellites can include GPS satellites and some BeiDou satellites. GEO satellites can include some BeiDou satellites. IGSO satellites can include some BeiDou satellites.

[0071] RD acquisition: This refers to acquiring (receiving) RDSS satellite signals. RDSS satellites can include GEO satellites. RN acquisition can assist RD acquisition, meaning that RNSS satellite signals can be used to help acquire RDSS satellite signals.

[0072] The process of capturing RDSS satellite signals with the assistance of RNSS satellite signals can be described as follows: Figure 1B As shown. RNSS satellite signals can be captured based on the RNSS strong satellite list, and then the RNSS satellites (e.g., RNSS satellites) can be calculated based on the RNSS satellite signals and RNSS satellite ephemeris data. Figure 1A The location of the RNSS satellite (500) is then used. Furthermore, the frequency offset of the local clock (including clock bias and clock drift) can be calculated based on the user's location and the RNSS satellite location. The user's location can be obtained through positioning using the RNSS satellite.

[0073] Furthermore, to accelerate the acquisition speed of RDSS satellite signals and reduce power consumption, the frequency offset of the local clock and the RDSS satellite (e.g., Figure 1A The approximate code phase and Doppler frequency of the RDSS satellite signal when it arrives at the electronic device are calculated from the ephemeris data of satellite 200. Then, based on these approximate code phase and Doppler frequency, precise acquisition of the RDSS satellite signal is achieved. RD acquisition can target a specific beam of the satellite. Typically, a BeiDou communication satellite has six available downlink beams; for example, BeiDou-61 satellite corresponds to beam numbers 15-20. Furthermore, satellite communication (sending and receiving satellite SMS messages or making satellite phone calls) can be performed based on the RDSS satellite signal.

[0074] It is evident that the success rate of RD acquisition depends on the accuracy of the approximate code phase and Doppler frequency when the RDSS satellite signal reaches the electronic equipment. The accuracy of the approximate code phase and Doppler frequency, in turn, depends on the local clock frequency offset and the accuracy of the RDSS satellite's ephemeris data. The local clock frequency offset, in turn, depends on the accuracy of the RNSS satellite's ephemeris data. Therefore, the accuracy of both the RNSS and RDSS satellite ephemeris data is extremely important.

[0075] This application provides a method and apparatus for using ephemeris data, which can avoid satellite communication malfunctions caused by errors in ephemeris data prediction and improve user experience.

[0076] The method provided in this application can be applied to electronic devices. The following is in conjunction with… Figures 2-4 The hardware structure and software architecture of the electronic device are described. The electronic device may also be referred to as a mobile device, mobile terminal, terminal, or terminal device; this application does not impose a specific limitation.

[0077] For example, an electronic device may support both satellite and cellular communications. See also Figure 2 In this example, the electronic device includes a system-on-chip (SoC), a user identification card 1, an RF component 1, a satellite communication chip (a chip with satellite communication capabilities, or a satellite communication processor; this chip may also have other communication functions, such as cellular communication capabilities), and an RF component 2. The electronic device also includes a modem (baseband processor, also known as a modem processor), which can be configured as follows: Figure 2 The diagram shows that it can be integrated into the SoC, or it can exist as a standalone chip outside the SoC. The modem includes a protocol stack for cellular communication (such as...). Figure 2 The cellular protocol stack shown in the figure), and the physical layer for cellular communication (such as...) Figure 2 The cellular physical layer is shown in the diagram. The electronic device achieves cellular communication through the AP and Modem in the SoC, as well as the Subscriber Identity SIM 1 and RF component 1. Figure 2 The user identification card 1) and RF component 2 shown enable satellite communication. Figure 2 In the implementation shown, the satellite protocol stack and the AP can communicate via the AT interface to implement satellite communication-related display functions, such as displaying the signal strength and on / off status of the satellite network. It should be understood that the SoC and the satellite communication chip are typically connected via a serial port. Therefore, in some examples, the AT interface needs to communicate with the AP via a serial port to achieve communication between the satellite protocol stack in the satellite communication chip and the AP in the SoC.

[0078] Satellite communication chips typically include a physical layer module (hereinafter referred to as the satellite physical layer) for implementing satellite communication and a protocol stack module (hereinafter referred to as the satellite protocol stack) for implementing satellite communication.

[0079] In some implementations, part or all of the satellite protocol stack can be integrated into the AP or Modem, and thus the satellite communication chip may or may not include the satellite protocol stack.

[0080] Furthermore, in some other implementations, the satellite physical layer can be integrated into the modem, so the electronic device does not need a separate satellite communication chip, but can achieve cellular and satellite communication through a modem or SoC (SoC includes AP and modem) that integrates cellular communication and satellite communication functions.

[0081] It should be noted that the aforementioned satellite protocol stack, satellite physical layer, cellular protocol stack, and cellular physical layer can be pure software modules or modules combining software and hardware. This application does not specifically limit these aspects.

[0082] Based on the different communication methods, RF components can be divided into RF components used for cellular communication (such as...). Figure 2 RF component 1) and RF components for satellite communication (such as Figure 2 (RF component 2 in the example). In other implementations, RF component 1 and RF component 2 can be the same RF component. That is, instead of setting up a separate dedicated RF component for satellite communication, the RF component used for cellular communication can be reused, so that a set of RF components can be used for both cellular and satellite communication. Similarly, the antenna used for satellite communication can be independent of the antenna used for cellular communication, or it can be a reused antenna used for cellular communication.

[0083] RF components may include radio frequency integrated circuits (RFICs) and radio frequency front-ends (RFFEs).

[0084] The RFIC receives digital signals from the baseband (such as a cellular physical layer or a satellite physical layer) and performs digital-to-analog conversion, transmitting the converted radio electromagnetic wave signal (analog signal) to the RFFE for processing. For example, the RFIC can receive digital signals from the baseband via a Radio Frequency Interface Unit (RFIU) and perform digital-to-analog conversion using a Digital-to-Analog Converter (DAC) to obtain the radio electromagnetic wave signal. Furthermore, the RFIC performs analog-to-digital conversion on the radio electromagnetic wave signal obtained from the RFFE and sends the converted digital signal to the baseband. For example, the RFIC can use an Analog-to-Digital Converter (ADC) to perform analog-to-digital conversion and send the converted digital signal to the baseband.

[0085] It should be noted that the main difference between RF component 1 and RF component 2 is the electromagnetic frequency that the RFIC can receive. Cellular communication uses electromagnetic frequencies ranging from 700MHz to 3.5GHz; therefore, the RFIC in RF component 1 must also be able to receive electromagnetic frequencies from 700MHz to 3.5GHz. Furthermore, satellite communication uses C-band electromagnetic frequencies around 2GHz; therefore, if C-band is used, the RFIC in RF component 2 must be able to receive electromagnetic frequencies around 2GHz.

[0086] An RFFE (Radio Frequency Identifier) ​​is used to transmit and receive radio electromagnetic wave signals. An RFFE mainly consists of a power amplifier (PA) and a low-noise amplifier (LNA). The PA amplifies the radio electromagnetic wave signal obtained from digital-to-analog conversion to obtain a high-frequency radio electromagnetic wave signal, which is then radiated through the antenna. The LNA is a low-noise amplifier used to amplify small signals in the radio electromagnetic wave signal received by the antenna. An RFFE may also include filters, switches, duplexers, etc.

[0087] In this embodiment, a user identification card refers to a card module such as a Subscriber Identity Module (SIM), User Identity Module (UIM), or Universal Subscriber Identity Module (USIM) that can be used for identification during communication. The user identification card used for cellular communication and the user identification card used for satellite communication can be the same user identification card or different user identification cards. Figure 2 The diagram shows a case where the user identification card used for cellular communication and the user identification card used for satellite communication are the same user identification card.

[0088] See Figure 3 This is a hardware structure diagram of another electronic device provided in an embodiment of this application. Figure 3 As shown, taking a smartphone as an example, the electronic device may include: a processor 210, a satellite communication processor 211 (a processor with satellite communication function, or a satellite communication chip, which may also have other communication functions, such as cellular communication function), internal memory 221, a charging management module 230, a power management module 231, a battery 232, antenna 1, antenna 2, antenna 3, and a mobile communication module 251 (such as...). Figure 2 RF component 1 shown, satellite communication module 252 (as shown) Figure 2 The components shown include RF component 2), wireless communication module 253, audio module 270, speaker 270A, receiver 270B, microphone 270C, headphone jack 270D, sensor module 280, display screen 294, and user identification card (such as SIM card) interface 295.

[0089] It is understood that the structure illustrated in this embodiment does not constitute a specific limitation on the smartphone. In other embodiments, the smartphone may include more or fewer components than illustrated, or combine some components, or split some components, or reuse some components. The illustrated components may be implemented in hardware, or software, or a combination of software and hardware.

[0090] Processor 210 may include one or more processing units, such as: an application processor (AP, which may include a satellite protocol stack), a graphics processing unit (GPU), an image signal processor (ISP), a controller, memory, a video codec, a digital signal processor (DSP), a modem (which may include a cellular protocol stack and a cellular physical layer), and / or a neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors. Processor 210 may be a System-on-a-Chip (SoC).

[0091] In some embodiments, the processor 210 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identification card (e.g., a SIM card) interface, and / or a universal serial bus (USB) interface, etc.

[0092] Satellite communication processor 211 is communicatively connected to the AP in processor 210. When part or all of the satellite protocol stack is integrated into the AP, communication can occur between the satellite protocol stack in the AP and the satellite physical layer in satellite communication processor 211 via this connection.

[0093] The wireless communication function of a smartphone can be implemented through antenna 1, antenna 2, antenna 3, mobile communication module 251, satellite communication module 252, wireless communication module 253, AP, modem, and satellite communication chip. Antenna 1, antenna 2, and antenna 3 are used to transmit and receive electromagnetic wave signals.

[0094] The mobile communication module 251 (as described above as RF component 1) can provide a solution for cellular communication (such as 2G / 3G / 4G / 5G) applications in smartphones. The mobile communication module 251 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 251 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to the modem for demodulation. The mobile communication module 251 can also amplify the signal modulated by the modem and convert it into electromagnetic waves for radiation via antenna 1.

[0095] Satellite communication module 252 (as described above in RF component 2) can provide a satellite communication solution for smartphone applications. Satellite communication module 252 may include at least one filter, switch, power amplifier, low-noise amplifier, etc. Satellite communication module 252 can receive electromagnetic waves via antenna 2, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to the satellite communication chip (i.e., satellite communication processor 211) and AP for processing. Satellite communication module 252 can also amplify the signal processed by the AP and satellite communication chip, and then convert it into electromagnetic waves for radiation via antenna 2.

[0096] The satellite communication module 252 can be independent of the satellite communication processor 211. Alternatively, the satellite communication module 252 can be partially encapsulated within the satellite communication processor 211. For example, the RFIC in the satellite communication module 252 can be encapsulated within the satellite communication processor 211.

[0097] The wireless communication module 253 can provide solutions for wireless communication applications in smartphones, including WLAN (such as Wi-Fi), Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), and Infrared (IR). The wireless communication module 253 can be one or more devices integrating at least one communication processing module. The wireless communication module 253 receives electromagnetic waves via antenna 3, performs frequency modulation and filtering of the electromagnetic wave signal, and sends the processed signal to processor 210. The wireless communication module 253 can also receive signals to be transmitted from processor 210, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 3.

[0098] In some embodiments, antenna 1 of the electronic device is coupled to mobile communication module 251, and antenna 3 is coupled to wireless communication module 253, enabling the electronic device to communicate with networks and other devices via wireless communication technology. Wireless communication technologies may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BitTorrent, Global Navigation Satellite System (GNSS), WLAN, NFC, FM, and / or IR technologies, etc. GNSS can include GPS, GLONASS, BDS, QZSS, and / or SBAS.

[0099] The AP can output sound signals through audio devices (not limited to speaker 270A, receiver 270B, etc.), or display images or videos through display screen 294.

[0100] Smartphones utilize GPUs, displays (294), and application processors (APs) to achieve display functions, such as displaying the on / off switches for satellite and cellular communications, as well as displaying application interfaces for various applications like calls and text messages.

[0101] Internal memory 221 can be used to store computer executable program code, which includes instructions. Processor 210 executes various functional applications and data processing of the smartphone by running the instructions stored in internal memory 221. Internal memory 221 may include a program storage area and a data storage area.

[0102] Smartphones can implement audio functions through an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, a headphone jack 270D, and an application processor. Examples include music playback and recording. In some embodiments, during calls using a cellular network or satellite network, the smartphone can capture the user's voice through the microphone 270C and play voice messages from the other end through headphones connected via the speaker 270A, receiver 270B, or headphone jack 270D.

[0103] The SIM card interface 295 is used to connect a SIM card.

[0104] Figure 3 The following explanation uses a smartphone (or mobile phone) as an example of an electronic device. Electronic devices can also be wearable devices (such as smart bracelets, smartwatches, etc.), tablets, laptops, augmented reality (AR) / virtual reality (VR) devices, portable multimedia players (PMPs), media players, and other similar devices. This application does not impose any restrictions on the specific type of electronic device.

[0105] The software system of the AP in the aforementioned electronic device can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses an Android system with an AP as its layered architecture. TM Taking the system as an example, the software structure of the electronic device is illustrated.

[0106] like Figure 4 As shown, a layered architecture divides the AP's software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, Android... TM The system is divided into four layers, from top to bottom: Application layer, Application framework layer, Hardware abstraction layer (HAL), and Kernel layer.

[0107] It should be understood that Figure 4 The layering of the AP shown is merely exemplary; in actual implementation, the AP's software may include more or fewer layers. For example, a system library may be included between the application framework layer and the hardware abstraction layer.

[0108] The application layer can include a series of application packages, such as call, text message, browser, chat application, video player and other applications that require network support (including cellular network, satellite network and so on).

[0109] It's important to note that applications such as calls and text messages can provide communication services (i.e., making calls and sending text messages) with the support of both cellular and satellite networks. In other words, calls can be categorized as satellite calls and cellular calls, and text messages can be categorized as satellite text messages and cellular text messages. Therefore, in a specific implementation, an electronic device can further include two calling applications (satellite calling and cellular calling) and two text messaging applications (satellite text messaging and cellular text messaging). This facilitates distinguishing the network type to be used from the foreground application. For example, if the foreground application is satellite text messaging, then in response to the user's confirmation to send a text message, the electronic device can determine to use the satellite network to send the message.

[0110] Of course, in practice, this implementation method is not the only option. In another specific implementation, calls and SMS can be separated into their own applications, without further subdivision. In this approach, the electronic device can determine the network type to use based on its currently enabled network or the network configured by the user for the application. For example, in response to a user's confirmation to send an SMS, the electronic device can use the currently enabled cellular network. Alternatively, in the SMS settings, the network used for sending SMS can be set to satellite; in this case, the electronic device can determine to use the satellite network in response to the user's confirmation. Yet another example is the integration of a separate satellite SMS module into the existing cellular SMS functionality within the SMS application. Users can access the SMS application first and then use the satellite SMS module provided within the application to utilize the satellite SMS function.

[0111] In some embodiments, the application layer also includes satellite applications and cellular applications.

[0112] Cellular applications are used to provide display information related to cellular networks.

[0113] For example, a cellular app can provide information about the cellular network signal strength in the status bar. For instance, a cellular app can provide... Figure 7 The interface shown in 701 displays the signal strength shown in 7011.

[0114] As another example, a cellular application can provide information on whether the cellular network is on or off. For instance, in response to a user's action from... Figure 7 The swipe-down gesture from the top of the interface shown in image 701 allows the phone to display... Figure 7The interface 702 is shown. Interface 702 includes a cellular network switch 7021. The cellular application can provide the on / off status information corresponding to switch 7021. Specifically, if the cellular application provides an on status, switch 7021 can display that cellular network is on; if the cellular application provides a off status, switch 7021 can display that cellular network is off.

[0115] As another example, a cellular app can provide information related to cellular network settings in the settings app. For example, in response to a user's... Figure 7 In the interface shown 701, clicking the application icon 7013 of the set application will allow the phone to display... Figure 7 The interface 703 shown includes cellular network settings 7031. Cellular applications can provide various information displayed after accessing settings 7031.

[0116] Satellite applications are used to provide display information related to satellite networks.

[0117] For example, satellite applications can provide information about the signal strength of satellite networks.

[0118] As another example, satellite applications can provide information about whether the satellite network is on or off. For instance, in response to a user's request... Figure 7 The swipe-down gesture from the top of the interface shown in image 701 allows the phone to display... Figure 7 The interface 702 is shown. Interface 702 includes a satellite network switch 7022. The satellite application can provide status information for switch 7022, indicating whether it is on or off. If the satellite application indicates an on state, switch 7022 can display that the satellite network is on; if the satellite application indicates a off state, switch 7022 can display that the satellite network is off.

[0119] As another example, a satellite application can provide information related to satellite network settings within the application. For instance, in response to a user's... Figure 7 In the interface shown 701, clicking the application icon 7013 of the set application will allow the phone to display... Figure 7 The interface 703 shown includes satellite network settings 7032. Satellite applications can provide various information displayed after accessing settings 7032.

[0120] Furthermore, the cellular application can also receive user actions to turn cellular networks on and off, such as receiving user clicks on the cellular switch (e.g., cellular switch 7021 in interface 702). In response to these actions, the cellular application can request the underlying system to enable cellular network access. Similarly, the satellite application can receive user actions to turn satellite networks on or off, such as receiving user clicks on the cellular switch (e.g., cellular switch 7022 in interface 702). In response to these actions, the cellular application can request the underlying system to enable satellite network access.

[0121] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0122] The application framework layer may include a notification manager, window manager, resource manager, content provider, and view system.

[0123] In some embodiments, the application framework layer may further include a satellite framework, location-based services (LBS), and a cellular framework. The satellite framework handles processes during satellite communication that are not required by the upper-layer application, as well as the interface conversion between upper-layer applications (such as satellite applications, SMS, or calls) and the satellite protocol stack. The satellite framework may include a satellite service management module, and the cellular framework may include a telephony manager. The satellite service management module manages satellite communication-related services (such as satellite SMS and satellite calls). The LBS module downloads real-time ephemeris data. The telephony manager provides functions such as answering cellular calls, sending and receiving cellular SMS, and monitoring network events using terrestrial networks (e.g., cellular networks).

[0124] For example, the satellite frame can calculate the angle between the satellite's beam and the beam of the electronic device's antenna (such as antenna 1 mentioned above) based on GPS signals and signals collected by related sensors, and determine the satellite alignment strategy based on the calculated angle, such as the direction and angle of rotation. Finally, the satellite frame feeds back the satellite alignment strategy to the satellite application, which can then prompt the user to rotate the electronic device. In this example, the satellite application does not need to be aware of the process of calculating and determining the satellite alignment strategy; this process can be entirely handled by the satellite frame.

[0125] The hardware abstraction layer (HAL) provides a unified interface for upper-layer applications to make calls, shielding them from the specific implementation details of hardware drivers in the kernel layer. Upper-layer applications can implement corresponding functions by calling the interfaces provided by the hardware abstraction layer without needing to know the specific implementation of the hardware drivers in the kernel layer.

[0126] The Hardware Abstraction Layer (HAL) includes both cellular HAL and satellite HAL. The cellular HAL is used for inter-core communication between the cellular protocol stacks in the access point (AP) and modem to enable information communication during cellular communication. Figure 4 In the implementation shown, the satellite HAL is used for inter-core communication between the AP and the satellite protocol stack in the satellite communication processor to achieve information communication during satellite communication. In some implementations, where part or all of the satellite protocol stack is integrated into the modem, the satellite HAL is used for inter-core communication between the AP and the satellite protocol stack in the modem to achieve information communication during satellite communication.

[0127] The kernel layer is the layer between hardware and software. It can include display drivers, camera drivers, audio drivers, etc. It should be noted that in satellite and cellular communications, the kernel layer is primarily used for data transmission, similar to a data pass-through function. Therefore, in this application, there is no need to modify the software structure of the kernel layer.

[0128] See also Figure 4 The software architecture of electronic devices also includes the software components of the modem, which runs an RTOS. This is similar to the Android running in the application processing unit (AP). TM The difference between the systems is that RTOS is a single-task operating system, capable of handling only one process at a time. Android, on the other hand... TM The system can handle multiple processes at the same time.

[0129] A modem typically includes a cellular protocol stack and a cellular physical layer.

[0130] See Figure 4 The software architecture of electronic devices also includes the software components of a satellite communication processor, which may include a satellite protocol stack and a satellite physical layer.

[0131] The technical solutions of the embodiments of this application will now be described with reference to the accompanying drawings. In the description of this application, unless otherwise stated, "at least one" refers to one or more, and "more than one" refers to two or more. Furthermore, to facilitate a clear description of the technical solutions of the embodiments of this application, the terms "first," "second," etc., are used in the embodiments of this application to distinguish identical or similar items with substantially the same function and effect. Those skilled in the art will understand that the terms "first," "second," etc., do not limit the quantity or execution order, and that "first," "second," etc., do not necessarily imply differences.

[0132] like Figure 5A As shown in the embodiment of this application, a method for using ephemeris data is provided and applied to an electronic device. The method includes:

[0133] 5001. Obtain the predicted ephemeris data and the real-time ephemeris data respectively.

[0134] The predicted ephemeris data includes ephemeris data within a first time range, while the real-time ephemeris data includes ephemeris data within a second time range. The second time range is shorter than the first time range (e.g., the first time range may be 28 days, and the second time range may be 4 hours), and the second time range belongs to the first time range (e.g., the 4 hours corresponding to the second time range belong to a certain day within the 28 days corresponding to the first time range).

[0135] 5002. Verify the predicted ephemeris data based on real-time ephemeris data.

[0136] In some implementations, a first position of the first satellite can be calculated based on first data, and a second position of the first satellite can be calculated based on second data; further, the difference between the first position and the second position can be determined relative to a preset threshold.

[0137] The first data includes the ephemeris data of the first satellite in the real-time ephemeris data, and the second data includes the ephemeris data of the first satellite in a portion of the predicted ephemeris data. The portion of the data includes ephemeris data with the same or similar time range as the real-time ephemeris data.

[0138] 5003. If the predicted ephemeris data fails verification, update the predicted ephemeris data.

[0139] In some implementations, if the difference between the first position and the second position is greater than or equal to a preset threshold, the second data can be replaced with the first data to obtain updated predicted ephemeris data, which is then used for satellite communication.

[0140] It should be understood that real-time ephemeris data may include ephemeris data from multiple satellites (the first satellite may be one of these satellites), while predicted ephemeris data includes ephemeris data from multiple satellites within the same or similar time range as the real-time ephemeris data. During the verification of predicted ephemeris data based on real-time ephemeris data, the positional deviation of one or more satellites may be greater than or equal to the prediction threshold. In this case, the ephemeris data of those one or more satellites in the real-time ephemeris data can be used to replace the ephemeris data of those one or more satellites in the predicted ephemeris data.

[0141] Based on the method provided in this application, predicted ephemeris data can be verified using real-time ephemeris data. For example, the position of the same satellite (the first satellite) can be calculated using both real-time ephemeris data and predicted ephemeris data. If the difference between the two calculated positions of the first satellite (the first position and the second position) is greater than or equal to a preset threshold, it indicates that the predicted ephemeris data is not accurate enough. In this case, the inaccurate data in the predicted ephemeris data can be replaced with the corresponding data in the real-time ephemeris data (e.g., replacing the second data with the first data) to update the predicted ephemeris data. This improves the accuracy of the predicted ephemeris data, thereby increasing the success rate of satellite communication.

[0142] It should be noted that the predicted ephemeris data is quite large, and may include ephemeris data within a first time range (e.g., 28 days). Frequent downloads of predicted ephemeris data to ensure accuracy can lead to excessive data consumption on electronic devices. This application uses real-time ephemeris data to verify the predicted ephemeris data. Real-time ephemeris data is smaller, and may include ephemeris data within a second time range (e.g., 4 hours). Verifying the predicted ephemeris data using real-time ephemeris data can improve accuracy while avoiding excessive data consumption.

[0143] Furthermore, compared to frequently updating real-time ephemeris data, the solution adopted in this application, which relies on real-time ephemeris data for satellite communication, ensures that satellite communication can still be conducted using predicted ephemeris data even when there is no network and real-time ephemeris data cannot be downloaded. Moreover, since the predicted ephemeris data is verified against real-time ephemeris data (verified against downloaded real-time ephemeris data when network access is available), its accuracy is guaranteed. Therefore, compared to solutions based on real-time ephemeris data, the solution provided in this application can guarantee satellite communication success rates in more scenarios (no network scenarios) and for longer periods (the time range of predicted ephemeris data is longer than that of real-time ephemeris data).

[0144] In addition, compared to the solution of frequently downloading predicted ephemeris data to ensure the accuracy of predicted ephemeris data, this application uses real-time ephemeris data to verify the predicted ephemeris data. The amount of real-time ephemeris data is small, which can improve the accuracy of predicted ephemeris data while avoiding the consumption of more bandwidth.

[0145] The process of verifying predicted ephemeris data will be explained below in specific scenarios (such as the predicted ephemeris download scenario and the predicted ephemeris usage scenario mentioned below).

[0146] like Figure 5B As shown in the illustration, this application provides a method for using ephemeris data, specifically addressing the process of verifying predicted ephemeris data in a predicted ephemeris download scenario. The method includes:

[0147] 501. Enable satellite communication function.

[0148] This refers to the satellite communication function of electronic devices. Satellite communication functions can include satellite calling and satellite messaging. Satellite calling can also be called satellite telephone, and satellite messaging can also be called satellite short message or satellite short message; no specific terminology is used here.

[0149] For example, taking the satellite communication function as the BeiDou SMS service as an example, before a user can use the satellite communication function (e.g., the BeiDou SMS function) to send and receive satellite SMS (e.g., BeiDou SMS), they need to enable the permission to send and receive BeiDou SMS on their mobile phone (i.e., enable the function to send and receive BeiDou SMS).

[0150] In one possible design, users can enable satellite communication functions (e.g., BeiDou SMS function) through a satellite application. For example, such as... Figure 6 As shown in (a), in response to the user's action of clicking the icon 602 of the "Satellite Communication" application (i.e., the satellite application) on the main interface 601, as... Figure 6 As shown in (b), the mobile phone can display interface 603. Interface 603 may include a prompt message 604, which prompts the user with the relevant authorization information for activating the BeiDou SMS function. For example, prompt message 604 may be "Activating BeiDou SMS will disable mobile network, WLAN, and related services. BeiDou SMS will obtain precise location and mobile phone number during use...". The user can choose whether to activate the BeiDou SMS function according to their own needs. Interface 603 may also include an agreement control 605. If the user agrees to activate the BeiDou SMS function, in response to the user clicking the agreement control 605, such as... Figure 6As shown in (c), the mobile phone can display interface 606, which may include an activation control 607a. In response to the user clicking the activation control 607a, a pop-up window 607b can be displayed, prompting the user to contact their mobile operator (e.g., China Mobile) to activate the BeiDou SMS service. Currently, mobile communication terminal users can activate the BeiDou SMS service without changing their SIM card or phone number. After activating the BeiDou SMS service, users can use their existing phone number to send / receive BeiDou SMS messages to / from mobile users via the BeiDou satellite network in scenarios without terrestrial mobile communication network coverage. After activating the BeiDou SMS service, as shown in (c), the user can send / receive BeiDou SMS messages to / from mobile users via the BeiDou satellite network using their existing number. Figure 6 As shown in (d), the mobile phone can display interface 608, which may include a BeiDou SMS sending and receiving control 609. In response to the user clicking the BeiDou SMS sending and receiving control 609, the mobile phone can display as shown in (d). Figure 12A The interface shown in (b) allows users to send and receive BeiDou SMS messages. Interface 608 may also include a BeiDou SMS disabling control 610, which allows users to disable the BeiDou SMS function.

[0151] It should be understood that after a user activates the BeiDou SMS function through a satellite application, when they interact with the satellite application icon on the desktop again (e.g., by clicking), the phone can directly display something like this. Figure 6 The interface shown in (d) is shown in the image.

[0152] In another possible design, the BeiDou SMS function can be enabled through the settings app. For example, such as... Figure 7 As shown in (a), in response to the user's action of clicking the settings application icon 7013 on interface 701, as... Figure 7 As shown in (c), the mobile phone can display interface 703, which includes satellite network settings 7032. In response to the user clicking on the satellite network settings 7032, the mobile phone can display as shown in (c). Figure 6 The interface is shown in (b) above. Subsequent operations are described in the relevant sections above and will not be repeated here.

[0153] like Figure 7 As shown in (b), in response to a user swiping down from the top of interface 701, the phone can display interface 702. Interface 702 includes a satellite network switch 7022. Switch 7022 can indicate that the satellite network is on (after the satellite network is on, BeiDou SMS messages can be sent and received). The user can also turn off the satellite network via switch 7022 (after the satellite network is off, BeiDou SMS messages cannot be sent and received).

[0154] After enabling satellite communication functions (such as BeiDou SMS function), users can send and receive BeiDou SMS messages.

[0155] 502. Determine whether the electronic device is currently connected to the internet.

[0156] For example, connecting an electronic device to the internet can mean that the electronic device has enabled cellular and / or WiFi networks.

[0157] If the electronic device is connected to the internet, step 503 can be executed. If the electronic device is not connected to the internet, subsequent steps can be skipped and the process can be terminated.

[0158] 503. Determine whether the saved predicted ephemeris data (first predicted ephemeris data) meets the preset conditions (e.g., whether the download time of the downloaded predicted ephemeris data has reached or exceeded the corresponding threshold value (e.g., 24 hours)).

[0159] After an electronic device downloads predicted ephemeris data from a server for the first time, it can update the predicted ephemeris data based on preset conditions (updating predicted ephemeris data here means downloading the latest predicted ephemeris data and replacing the previously downloaded predicted ephemeris data with the latest predicted ephemeris data). These preset conditions may include at least one of the following: satellite communication function is enabled (e.g., BeiDou SMS service is activated), the device is connected to the internet, or the download time of the predicted ephemeris data reaches a second threshold (i.e., the time elapsed since the last download of predicted ephemeris data is at least a second threshold).

[0160] If the preset conditions are met, the predicted ephemeris data can be downloaded again (i.e., the latest predicted ephemeris data can be downloaded). For example, assuming satellite communication is enabled and the network is connected, if the download time of the locally stored predicted ephemeris data (the first predicted ephemeris data, such as the previously downloaded predicted ephemeris data) reaches or exceeds the second threshold from the current time, it indicates that the locally stored predicted ephemeris data may deviate significantly from the current actual situation. Therefore, the latest predicted ephemeris data can be downloaded from the server, i.e., steps 504-505 can be executed. If the download time of the locally stored predicted ephemeris data does not reach the second threshold from the current time, step 506 can be executed.

[0161] For example, the second threshold value could be one day (24 hours), three days, or one week, and this application does not specifically limit it.

[0162] In some embodiments, the update conditions for predicted ephemeris data may also include the validity of a key (used for authentication in satellite communications). The key may be updated every preset time interval (e.g., every 7 days). A key update may also trigger an update of the predicted ephemeris data.

[0163] 504. Download the latest predicted ephemeris data (second predicted ephemeris data) compressed file from the server.

[0164] In some embodiments, the electronic device can send a download request for predicted ephemeris data to the server (the operator's ephemeris server) based on the version number of the currently stored predicted ephemeris data (first predicted ephemeris data). The operator's ephemeris server can directly send a compressed package of the latest predicted ephemeris data (second predicted ephemeris data) to the electronic device. Alternatively, the operator's ephemeris server can determine whether the version number of the first predicted ephemeris data sent by the electronic device is the same as the version number of the second predicted ephemeris data. If not, it can send a compressed package of the second predicted ephemeris data to the electronic device; if so, it can choose not to send the compressed package of the second predicted ephemeris data. Optionally, the operator's ephemeris server can indicate to the electronic device that its stored predicted ephemeris data is up-to-date and does not need to be downloaded again.

[0165] In other embodiments, the electronic device can send a download request for predicted ephemeris data based on the current timestamp. The operator's ephemeris server can send a compressed package of the latest predicted ephemeris data (second predicted ephemeris data) to the electronic device.

[0166] For example, an operator's ephemeris server typically provides 28 days' worth of predicted ephemeris data at a time (28 days from the download date, or 28 days from the date the operator last updated the predicted ephemeris data). This includes ephemeris data for medium Earth orbit (MEO) satellites, geosynchronous earth orbit (GEO) satellites, and inclined geosynchronous orbit (IGSO) satellites. IGSO satellites are also known as geosynchronous inclined orbit (GIO) satellites. MEO satellites may include GPS satellites and BeiDou satellites. GEO satellites may include BeiDou satellites. The ephemeris data from MEO and IGSO satellites is used for RN capture (MEO and IGSO satellite ephemeris data can be referred to as RNSS ephemeris data), and the ephemeris data from GEO satellites is used for RD capture (GEO satellite ephemeris data can be referred to as RDSS ephemeris data).

[0167] like Figure 8 As shown in (a), the 28-day ephemeris forecast data can include ephemeris forecast data for the next 28 days, starting from the current day (i.e., the date corresponding to the current time). Figure 8As shown in (b), the predicted ephemeris data for each day of the 28-day period includes predicted ephemeris data from RNSS and RDSS satellites. RNSS satellites may include one or more satellites, for example, satellites 1-4; RDSS satellites may include one or more satellites, for example, satellites 5 and 6. Each satellite can have 6 ephemeris data sets per day, and each ephemeris data set is valid for 4 hours.

[0168] Furthermore, after downloading the second predicted ephemeris data from the operator's ephemeris server, the second predicted ephemeris data can be decompressed, and the version number and download time of the second predicted ephemeris data can be recorded for subsequent updates.

[0169] 505. Unzip the compressed package of the second predicted ephemeris data and read the generation time of the second predicted ephemeris data.

[0170] The predicted ephemeris data provided by the operator's ephemeris server (e.g., second predicted ephemeris data) can correspond to a generation time. This generation time refers to the time when the operator's ephemeris server generated the predicted ephemeris data. The closer this generation time is to the current time (which can refer to the system time of the electronic device), the more accurate the predicted ephemeris data is.

[0171] 506. Determine whether the generation time of the second predicted ephemeris data exceeds the preset threshold.

[0172] If the generation time of the second predicted ephemeris data exceeds the preset threshold (first threshold) from the current time, it indicates that the accuracy of the second predicted ephemeris data may have been reduced. In this case, step 507 can be executed, that is, real-time ephemeris data can be downloaded so that the second predicted ephemeris data can be verified based on the real-time ephemeris data to ensure the accuracy of the second predicted ephemeris data.

[0173] For example, the first threshold value can be 12 hours, 24 hours, etc., and this application does not make a specific limitation.

[0174] If the generation time of the second predicted ephemeris data does not exceed the first threshold, it indicates that the accuracy of the second predicted ephemeris data is relatively high, and step 512 can be executed, that is, the previously downloaded predicted ephemeris data (such as the first predicted ephemeris data) can be directly replaced with the second predicted ephemeris data downloaded this time.

[0175] 507. Download real-time ephemeris data.

[0176] In some embodiments, the electronic device can request real-time ephemeris data from a server (e.g., an Assisted GNSS (AGNSS) server from the China Academy of Information and Communications Technology (CAICT). The AGNSS server can provide the electronic device with real-time ephemeris data for one or more MEO, GEO, and IGSO satellites. The real-time ephemeris data for MEO satellites may include ephemeris data for GPS satellites within the user's current field of view, as well as ephemeris data for satellites up to BDS 37. The electronic device can communicate with the AGNSS server based on the Radio Resource Location Protocol (RRLP). Alternatively, the electronic device can obtain real-time ephemeris data from an international GNSS service website (e.g., https: / / igs.bkg.bund.de / root_ftp / IGS / BRDC / ). The international GNSS service website can also provide the electronic device with real-time ephemeris data for one or more MEO, GEO, and IGSO satellites.

[0177] In some other embodiments, the electronic device can obtain real-time ephemeris data of different types of satellites from the AGNSS server and the international GNSS service website, respectively.

[0178] For example, such as Figure 9 The process of downloading and saving real-time ephemeris data from a China Academy of Information and Communications Technology (CAICT) server (such as an AGNSS server) is illustrated below. The electronic device includes a satellite frame and an LBS module. The specific steps are as follows:

[0179] S1. The satellite frame sends a real-time ephemeris data download request to the LBS module.

[0180] The S2 and LBS modules start a real-time ephemeris data download thread.

[0181] S3, the ephemeris data download thread generates a secure user plane location (SUPL) request, which is used to request real-time ephemeris data.

[0182] The S4 and LBS modules send a SUPL request to the CAICT server.

[0183] After receiving a SUPL request from an electronic device, the CAICT server (such as the AGNSS server) can send a SUPL response to the electronic device, which can carry real-time ephemeris data.

[0184] The S5 and LBS modules receive the SUPL response from the CAICT server.

[0185] The S6 and LBS modules parse the SUPL response into a ULP_PDU structure.

[0186] ULP stands for Ultra Low Power, and PDU stands for Protocol Data Unit.

[0187] The S7 and LBS modules parse real-time ephemeris data from the message body of the SUPL response.

[0188] For example, real-time ephemeris data can include real-time ephemeris data from MEO. MEO's real-time ephemeris data can include ephemeris data from GPS satellites within the user's current field of view, as well as ephemeris data from satellites up to BDS 37.

[0189] The S8 and LBS modules assemble real-time ephemeris data into a JSON object.

[0190] The S9 and LBS modules generate JSON files and store them in the specified directory.

[0191] The designated directory is the directory negotiated between the LBS module and the satellite frame to store real-time ephemeris data.

[0192] The S10 and LBS modules send real-time ephemeris data download results to the satellite frame.

[0193] For example, the LBS module can notify the satellite frame that real-time ephemeris data has been successfully downloaded.

[0194] S11. The satellite frame reads real-time ephemeris data from the specified directory.

[0195] The real-time ephemeris data stored in the specified directory can be an ephemeris file, which can include ephemeris data for 4 hours (including ephemeris data from RNSS and RDSS satellites).

[0196] 508. Has the real-time ephemeris data been downloaded successfully?

[0197] If the real-time ephemeris data download is successful, proceed to step 509a. If the real-time ephemeris data download fails, proceed to step 512.

[0198] 509a. Verify the second predicted ephemeris data based on the real-time ephemeris data.

[0199] In some embodiments, the predicted ephemeris data (second predicted ephemeris data) matched for the current time can be verified based on real-time ephemeris data within the valid time period. For example, the position of the same satellite (e.g., the first satellite) in the same time period can be calculated based on the corresponding real-time ephemeris data (e.g., the first data) and the corresponding predicted ephemeris data (e.g., the second data), and the position deviation between the two (e.g., the first position and the second position) can be calculated. If the position deviation is less than or equal to a preset threshold (the preset threshold is adjustable, for example, it can be 500m), the predicted ephemeris data is considered to be true, valid, and accurate (healthy); if the position deviation is greater than the preset threshold, the predicted ephemeris data is considered to be inaccurate (unhealthy). Here, the position deviation can refer to the total deviation of the two positions (the position of the satellite at time X calculated based on the real-time ephemeris data and the position of the satellite at time X calculated based on the predicted ephemeris data matched for the current time) in the three dimensions (X-axis direction, Y-axis direction, and Z-axis direction) of the spatial coordinate system.

[0200] The real-time ephemeris data within the valid time period refers to ephemeris data where the absolute value of the deviation between the reference time (e.g., T1) and the current time (e.g., T2) (i.e., |T1-T2|) is within a preset duration (e.g., 7200s, or 2 hours). The preset duration can also be other values, such as 9000s; this application does not impose a specific limitation. For convenience, the real-time ephemeris data within the valid time period can be considered as ephemeris data where the reference time (one ephemeris data corresponds to one reference time) is no more than 2 hours before or after the current time. For example, such as... Figure 10 As shown, the reference time (e.g., T1) of a real-time ephemeris data is 10:00 AM on October 1st. If the current time is 11:00 AM on October 1st, then the real-time ephemeris data is within the valid time period.

[0201] The second predicted ephemeris data matched for the current time refers to ephemeris data in which the absolute value of the deviation between the reference time (e.g., T3) and the current time (e.g., T2) (i.e., |T3-T2|) is within a preset duration (e.g., 7200s, i.e., 2 hours). For convenience, the second predicted ephemeris data matched for the current time can be considered as predicted ephemeris data where the reference time (the reference time corresponding to the second predicted ephemeris data) is no more than 2 hours before or after the current time. For example, as... Figure 10 As shown, assuming the current time is 11:00 AM on October 1st, the second predicted ephemeris data matching the current time can refer to the ephemeris data from 8:00 AM to 12:00 PM on October 1st in the second predicted ephemeris data (which can include 28 days of ephemeris data).

[0202] For example, such as Figure 10As shown, the predicted ephemeris data for the corresponding satellites (Satellite 1, Satellite 3, and Satellite 5) during the period from 8:00 AM to 12:00 PM on October 1st can be generated based on real-time ephemeris data within the valid time frame (e.g., real-time ephemeris data for the current day (e.g., October 1st), including real-time ephemeris data for Satellite 1, Satellite 3, and Satellite 5). Figure 10 The ephemeris data in the shaded area is verified.

[0203] For example, the specific steps for verifying the predicted ephemeris data (second predicted ephemeris data) include:

[0204] 1) Read the current UNIX time and convert it to GPS time (GPT) or BDS time (BDT).

[0205] It should be understood that, for ease of transmission and use, the parameters in both predicted and real-time ephemeris data are scaled to varying degrees. They can be restored to their original parameters for subsequent calculations.

[0206] Since UNIX time differs from GPS and BDS time in terms of start time, it is necessary to first convert UNIX time to GPS time (GPT) or BDS time (BDT). When calculating satellite positions using ephemeris data, only the week-end seconds of GPT or BDT are needed, and GPT is fixed at 14 seconds ahead of BDT (deviations within a second are negligible). Therefore, during the conversion, we can initially focus only on the week-end seconds of GPT. When calculating the BeiDou satellite positions, simply subtract 14 seconds from the week-end seconds of GPT.

[0207] UNIX time begins on January 1, 1970, while GPT begins on January 6, 1980, a difference of 3657 days. Therefore, UNIX time (t...) unix (Unit: milliseconds) The number of seconds converted to GPT is (t gps (Unit: seconds):

[0208] t gps =t unix ·0.001-3657·86400;

[0209] Then the GPT week-end seconds (sow) gps )for:

[0210] sow gps =t gps 604800;

[0211] Here, % represents the modulo operation. Simultaneously, the number of seconds within the BDT cycle (sow) can be obtained. bds ):

[0212] sowbds =(sow gps -14+604800)%604800;

[0213] 2) Calculate the GPT weekday seconds (sow) based on real-time ephemeris data and predicted ephemeris data respectively. gps ) or BDT week-end seconds (sow) bds The satellite position.

[0214] The main parameters in real-time ephemeris data and predicted ephemeris data are shown in Table 1:

[0215] Table 1

[0216]

[0217]

[0218] The formulas involved in satellite position calculation are shown in Table 2:

[0219] Table 2

[0220]

[0221]

[0222] 3) Calculate the deviation between the satellite positions obtained using real-time ephemeris and predicted ephemeris, respectively.

[0223] Assume the satellite position obtained using real-time ephemeris is X. rs =(x rs ,y rs ,z rs The satellite position obtained using the predicted ephemeris is X. ps =(x ps ,y ps ,z ps If the two are different, then the deviation is:

[0224]

[0225] 4) Determine the magnitude of the positional deviation between the satellite positions obtained from real-time ephemeris data and predicted ephemeris data and the preset threshold.

[0226] If the position deviation is less than or equal to a preset threshold, the ephemeris data of the corresponding satellite (e.g., the first satellite) in the predicted ephemeris data (second predicted ephemeris data) is considered healthy (i.e., true and valid), meaning the ephemeris data of the corresponding satellite (e.g., the first satellite) in the predicted ephemeris data passes the verification; if the position deviation is greater than the preset threshold, the ephemeris data of the corresponding satellite (e.g., the first satellite) in the predicted ephemeris data is considered unhealthy (i.e., inaccurate, with a large deviation), meaning the ephemeris data of the corresponding satellite (e.g., the first satellite) in the predicted ephemeris data fails the verification.

[0227] 509b. Determine whether the second predicted ephemeris data has passed verification.

[0228] That is, to determine whether the ephemeris data of the corresponding satellite (e.g., the first satellite) in the second predicted ephemeris data has passed the verification.

[0229] If the ephemeris data verification for the corresponding satellite (e.g., the first satellite) in the second predicted ephemeris data fails, steps 510 and 511 can be executed first. If the ephemeris data verification for the corresponding satellite (e.g., the first satellite) in the second predicted ephemeris data passes, step 512 can be executed.

[0230] 510. Update the second predicted ephemeris data.

[0231] If the predicted ephemeris data fails verification, it can be updated. Updating the predicted ephemeris data includes the following processing methods:

[0232] 1) Mark ephemeris data that fails verification in the second predicted ephemeris data (e.g., ephemeris data of satellite number 1 (such as the first satellite)) as unhealthy, and do not send unhealthy ephemeris data to the satellite protocol stack during subsequent satellite services. Alternatively, the marked unhealthy ephemeris data can be removed (filtered) from the second predicted ephemeris data, and the remaining predicted ephemeris data after removing the unhealthy ephemeris data can be sent to the satellite protocol stack during subsequent satellite services. It should be noted that even if some predicted ephemeris data is removed, it will not affect the subsequent RD and RN capture by the satellite protocol stack. This is because each type of satellite (e.g., MEO satellites, GEO satellites, and IGSO satellites) usually includes multiple satellites, and the satellite protocol stack usually only uses the ephemeris data of one satellite of each type when performing RD and RN capture. Therefore, even if some predicted ephemeris data is removed, it will not affect the subsequent RD and RN capture by the satellite protocol stack.

[0233] 2) Discard the second predicted ephemeris data (e.g., 28-day predicted ephemeris data) and re-download the predicted ephemeris data (e.g., the third predicted ephemeris data). In some embodiments, when the electronic device is connected to the network, it can immediately re-download the predicted ephemeris data (e.g., the third predicted ephemeris data). Alternatively, the electronic device can re-download the predicted ephemeris data at preset intervals. This method of re-downloading the predicted ephemeris data at preset intervals allows the server sufficient time to update the predicted ephemeris data, thereby ensuring the accuracy of the re-downloaded predicted ephemeris data. Furthermore, after re-downloading the predicted ephemeris data, the electronic device can re-acquire real-time ephemeris data and verify the re-downloaded predicted ephemeris data (e.g., the third predicted ephemeris data) based on the real-time ephemeris data. The specific verification process can be referred to step 509 above, and the post-verification processing method can be referred to steps 510 and 511, which will not be elaborated here. When performing satellite services subsequently, the re-downloaded and verified predicted ephemeris data can be sent to the satellite protocol stack.

[0234] 3) Replace the predicted ephemeris data for the corresponding time period with real-time ephemeris data (for example, replace the predicted ephemeris data for October 1st from 8:00 AM to 12:00 PM with real-time ephemeris data for the current day (e.g., October 1st). Alternatively, replace unhealthy predicted ephemeris data (e.g., ephemeris data for the first satellite) with the corresponding real-time ephemeris data (ephemeris data for the first satellite). When performing satellite services subsequently, the second predicted ephemeris data (i.e., the updated second predicted ephemeris data) after replacing the unhealthy ephemeris data can be sent to the satellite protocol stack.

[0235] 511. Replace the first predicted ephemeris data with the updated second predicted ephemeris data.

[0236] If the second predicted ephemeris data fails verification, it can be updated (i.e., step 510 can be executed), and the previous predicted ephemeris data (the first predicted ephemeris data) can be replaced with the updated second predicted ephemeris data. Subsequently, during satellite service operations, the satellite framework can send the updated second predicted ephemeris data to the satellite protocol stack. This means that RN and RD captures can be performed based on the updated second predicted ephemeris data, improving the success rate of RN and RD captures, thereby increasing the success rate of satellite services and ultimately improving the user experience.

[0237] Optionally, in one possible implementation, if the verification of the second predicted ephemeris data fails, the second predicted ephemeris data (e.g., 28-day predicted ephemeris data) can be discarded, while the previous predicted ephemeris data (the first predicted ephemeris data, such as the previously downloaded predicted ephemeris data) can be retained. This is equivalent to updating all the predicted ephemeris data downloaded this time to the previously downloaded predicted ephemeris data. The first predicted ephemeris data is then sent to the satellite protocol stack during subsequent satellite services, meaning that RN and RD captures can be performed based on the first predicted ephemeris data.

[0238] 512. Replace the previous predicted ephemeris data (first predicted ephemeris data) with the latest predicted ephemeris data downloaded this time (second predicted ephemeris data).

[0239] This means that the previously downloaded predicted ephemeris data (the first predicted ephemeris data, such as the one downloaded last time) can be directly replaced with the latest predicted ephemeris data downloaded this time (the second predicted ephemeris data, which has passed verification). The satellite framework can store the verified second predicted ephemeris data in the memory of the electronic device. When conducting satellite services later, the satellite framework can send the second predicted ephemeris data to the satellite protocol stack, meaning that RN capture and RD capture can be performed based on the second predicted ephemeris data.

[0240] Steps 501-512 can be performed by the satellite frame of the electronic device.

[0241] This application provides a method for verifying predicted ephemeris data in satellite communication using an electronic device. This method effectively identifies unhealthy predicted ephemeris data, preventing errors in the predicted ephemeris data from causing abnormal satellite communication functions. It should be noted that the method provided in this application allows the electronic device to immediately verify the predicted ephemeris data after downloading it (e.g., calculating a first position based on first data, calculating a second position based on second data, and comparing the difference between the first and second positions with a preset threshold). Since the predicted ephemeris data is downloaded while connected to the internet, it is easy to simultaneously download real-time ephemeris data and immediately verify the newly downloaded predicted ephemeris data based on the newly downloaded real-time ephemeris data. This ensures a high success rate for predicted ephemeris data verification, thereby improving the success rate of satellite communication.

[0242] like Figure 11 As shown in the illustration, this application provides a method for using ephemeris data, and describes the process of verifying predicted ephemeris data in a predicted ephemeris usage scenario. The method includes:

[0243] 1101. Start the satellite protocol stack and satellite RF components.

[0244] When an electronic device includes a separate satellite communication chip, powering on the satellite communication chip involves activating (enabling / starting) the satellite protocol stack and satellite RF components. When the electronic device does not include a separate satellite communication chip, the satellite protocol stack and satellite RF components in a modem or SoC that integrates satellite communication functionality can be activated (enabled / started). The following explanation uses the case where the electronic device includes a separate satellite communication chip as an example.

[0245] In some embodiments, the satellite communication chip is powered on in response to a user clicking to send a satellite SMS (e.g., BeiDou SMS) or receive a satellite SMS.

[0246] To facilitate understanding, the following example uses satellite communication to send satellite SMS messages (e.g., BeiDou SMS) to illustrate the user interface (UI) and user operations involved in the process of an electronic device (e.g., a mobile phone) sending BeiDou SMS messages. For example,... Figure 12A As shown in (a), in response to the user's action of clicking the SMS application icon 802 on interface 801, as... Figure 12A As shown in (b), the mobile phone can display interface 803, which includes BeiDou SMS settings 804. In response to a user's action on the BeiDou SMS settings 804 (e.g., a click), as... Figure 12B As shown in (a), the mobile phone can display interface 901, which may include a new message control 902. In response to a user's action on the new message control 902 (e.g., a click), as... Figure 12B As shown in (b), the mobile phone can display interface 903, which may include a recipient addition control 904 and an input box 905. The user can edit the content of the BeiDou SMS message in the input box 905. Alternatively, the user can input the BeiDou SMS message to be sent via a shortcut. After receiving the user's input of the BeiDou SMS message content and selection of the recipient, as shown in (b), the mobile phone can display interface 903, which may include a recipient addition control 904 and an input box 905. Figure 12B As shown in (c), the mobile phone can display interface 906, which includes a sending control 907. In response to user interaction with the sending control 907, the satellite communication chip is powered on.

[0247] After the mobile phone receives the user's click on the send control, it can display the satellite SMS sending interactive interface in the foreground. The satellite SMS sending interactive interface may include a series of related interfaces (e.g., a semi-modal interface), such as at least one of the following: accuracy calibration interface, satellite search interface, satellite alignment interface, satellite SMS sending in progress interface, and satellite SMS sending result interface.

[0248] Optionally, a precision calibration interface can be displayed before showing the satellite search interface to allow the user to perform precision calibration. For example, ... Figure 12CAs shown in (a), the mobile phone can display interface 1001 (precision calibration interface), interface 1001 includes dialog box 1002, dialog box 1002 can include prompt information 1003, prompt information 1003 is used to prompt the user to perform precision calibration.

[0249] For example, the star-finding interface can be as follows: Figure 12C Interface 1004 is shown in (b) above. Interface 1004 includes a dialog box 1005, which may include a prompt message 1006 to prompt the user to search for satellites in an open outdoor area to avoid obstructing satellite signals.

[0250] After successfully searching for satellites, the satellite alignment interface can be displayed. For example, the satellite alignment interface can be as follows: Figure 12D The interface 1011 shown in (a) may include a dialog box 1012, which may include a prompt message 1013 to prompt the user to align the device with a satellite (e.g., rotate the phone to the right to move the satellite to the fan-shaped area). Alternatively, the satellite alignment interface may be as follows: Figure 12D Interface 1014 is shown in (b) above. Interface 1014 may include dialog box 1015, which may include prompt message 1016, which prompts the user to align the phone with the satellite (e.g., tilt the phone upwards until the Earth pattern is fully visible).

[0251] After aligning with the satellite, the mobile phone can send BeiDou text messages to the satellite via its satellite communication chip. When sending a BeiDou text message, the mobile phone can display a satellite text message sending interface.

[0252] For example, the satellite SMS sending interface can be as follows: Figure 12D The interface 1017 is shown in (c) above. Interface 1017 may include a dialog box 1018, which may include a prompt message 1019 to notify the user that a BeiDou SMS message is being sent. The prompt message 1016 may also include a countdown timer (e.g., 30 seconds) to provide timely updates on the duration of the BeiDou SMS message transmission, ensuring a positive user experience.

[0253] After sending a BeiDou SMS message, a satellite SMS sending result interface will be displayed. This interface includes information indicating whether the BeiDou SMS message was sent successfully or not. For example, if the BeiDou SMS message was sent successfully, the satellite SMS sending result interface will look like this: Figure 12E The interface 1201 shown in (a) is described above. Interface 1201 includes a dialog box 1202, which may include a prompt message 1203 indicating that the BeiDou SMS message was successfully sent and that a satellite acknowledgment has been received. Alternatively, the satellite SMS message sending result interface may be as follows: Figure 12EThe interface 1204 shown in (b) includes a dialog box 1205, which may include a prompt message 1206. The prompt message 1206 indicates that the BeiDou SMS message was successfully sent but no satellite acknowledgment was received, and suggests resending the message after aligning it with the satellite in an open outdoor area. If the BeiDou SMS message fails to send, the user can be prompted that the BeiDou SMS message failed to send and to resend it.

[0254] 1102. Parse and load the predicted ephemeris data matched for the current time.

[0255] Predicted ephemeris data matching the current time stored in the memory of electronic devices can be loaded into the satellite frame.

[0256] For example, assuming the current time (system time) is 10:00 AM on October 1st, the predicted ephemeris data matched for the current time is the predicted ephemeris data for 8:00 AM to 12:00 PM on October 1st.

[0257] 1103. Determine if there is real-time ephemeris data within the valid time period.

[0258] In this context, real-time ephemeris data within the valid time period refers to ephemeris data where the absolute value of the deviation between the reference time (e.g., T1) and the current time (e.g., T2) (i.e., |T1-T2|) is within a preset duration (e.g., 7200s, or 2 hours). The preset duration can also be other values, such as 9000s; this application does not impose a specific limitation. For convenience, real-time ephemeris data within the valid time period can be considered as ephemeris data where the reference time (one ephemeris data corresponds to one reference time) is no more than 2 hours before or after the current time.

[0259] In this embodiment of the application, the scenarios that trigger the download of real-time ephemeris data may include:

[0260] 1) When downloading (or updating) predicted ephemeris data, simultaneously download (or update) real-time ephemeris data. It should be noted that the download of predicted ephemeris data requires an internet connection; in this case, simultaneously downloading real-time ephemeris data ensures successful download.

[0261] 2) When the electronic device is connected to WiFi, the real-time ephemeris data is updated every preset time period (e.g., 4 hours). It should be noted that when the electronic device is connected to WiFi, the real-time ephemeris data can be updated (i.e., re-downloaded) in a timely manner, ensuring that the electronic device obtains the latest real-time ephemeris data promptly without wasting the user's data allowance.

[0262] 3) When satellite service fails and there is no valid real-time ephemeris data (i.e., real-time ephemeris data within a valid timeframe), a real-time ephemeris data download (or update) is triggered. This allows for the verification of predicted ephemeris data based on real-time ephemeris data, preventing subsequent satellite communication malfunctions due to errors in the predicted ephemeris data.

[0263] If there is no real-time ephemeris data within the valid time period, proceed to step 1104a; if there is real-time ephemeris data within the valid time period, proceed to step 1105a.

[0264] 1104a. Download real-time ephemeris data.

[0265] For instructions on downloading real-time ephemeris data, please refer to step 507 above. Further details will not be provided here.

[0266] In other words, after starting the satellite protocol stack and satellite RF components, if valid real-time ephemeris data cannot be found (for example, if previously downloaded real-time ephemeris data (the real-time ephemeris data downloaded in the scenario described in step 1103) has exceeded its validity period), a real-time ephemeris data download (or update) can be triggered. Subsequently, the predicted ephemeris data can be verified based on the real-time ephemeris data to avoid abnormal satellite communication functions due to errors in the predicted ephemeris data.

[0267] 1104b. Has the real-time ephemeris data been downloaded successfully?

[0268] If the real-time ephemeris data download is successful, proceed to steps 1105a-1105c, and then proceed to step 1106; if the real-time ephemeris data download fails, proceed directly to step 1106.

[0269] 1105a. Verify the predicted ephemeris data corresponding to the current time based on the real-time ephemeris data within the valid time period.

[0270] For the specific process, please refer to the relevant description of step 509a above, which will not be repeated here.

[0271] 1105b. Determine whether the predicted ephemeris data has passed the verification.

[0272] That is, to determine whether the predicted ephemeris data (second predicted ephemeris data) corresponding to the current time passes the verification.

[0273] If the predicted ephemeris data verification fails, step 1105c can be executed. If the predicted ephemeris data verification passes, step 1106 can be executed directly.

[0274] 1105c, Update predicted ephemeris data.

[0275] For the specific process, please refer to the relevant description of step 510 above, which will not be repeated here.

[0276] 1106. Perform satellite positioning and strong satellite search to obtain the location information and strong satellite list of electronic devices.

[0277] In some embodiments, the satellite frame of the electronic device can perform satellite positioning based on MEO satellites (e.g., GPS or BeiDou positioning) to obtain the location information of the electronic device. Furthermore, the electronic device can search for signals from RNSS satellites (which may include MEO satellites (e.g., GPS satellites) and IGSO satellites) around it, and generate strong satellite information (e.g., a strong satellite list) based on information (e.g., satellite IDs) of RNSS satellites with strong signals (e.g., exceeding a certain threshold). For example, the strong satellite list may include the satellite IDs of RNSS satellites with strong signals. For example, the strong satellite list may include the satellite IDs and signal strengths of six GPS satellites with strong signals.

[0278] In some embodiments, the predicted ephemeris data of multiple satellites of the same type that have passed verification can be sorted according to the magnitude of the positional deviation and / or the satellite signal strength. The satellite types may include RNSS satellites and RDSS satellites. When conducting satellite communication services, the top-ranked predicted ephemeris data (either RNSS or RDSS satellite ephemeris data) can be sent to the satellite protocol stack.

[0279] For example, assuming that the predicted ephemeris data of the verified RNSS satellites can include the predicted ephemeris data of satellite 1 (the first RNSS satellite) and the predicted ephemeris data of satellite 2 (the second RNSS satellite), the predicted ephemeris data of satellite 1 can be scored according to formula (1), and the predicted ephemeris data of satellite 2 can be scored according to formula (2). Then, the predicted ephemeris data of satellite 1 and the predicted ephemeris data of satellite 2 are sorted.

[0280] Score 1=bB1-aA1 (deviation); (1)

[0281] Score 2=bB2-aA2 (deviation); (1)

[0282] Wherein, Score1 represents the score of the predicted ephemeris data of satellite 1, B1 represents the signal strength of satellite 1, b represents the weight corresponding to the satellite signal strength, which is a positive number, A1 represents the position deviation between the predicted ephemeris data and the real-time ephemeris data of satellite 1 (i.e., the deviation between position 1 calculated based on the predicted ephemeris data of satellite 1 and position 2 calculated based on the real-time ephemeris data of satellite 1), and a represents the weight corresponding to the position deviation, which is a positive number; Score2 represents the score of the predicted ephemeris data of satellite 2, B2 represents the signal strength of satellite 2, A2 represents the position deviation between the predicted ephemeris data and the real-time ephemeris data of satellite 2 (i.e., the deviation between position 3 calculated based on the predicted ephemeris data of satellite 2 and position 4 calculated based on the real-time ephemeris data of satellite 2).

[0283] 1107a. Determine whether a satellite protocol stack has received an ephemeris data query request.

[0284] The satellite frame determines whether it has received an ephemeris data query request from the satellite protocol stack. After the satellite communication chip is powered on, the satellite protocol stack can send an ephemeris data query request to the satellite frame.

[0285] If the satellite framework receives an ephemeris data query request from the satellite protocol stack, it can proceed to step 1107b. If the satellite framework does not receive an ephemeris data query request from the satellite protocol stack, it can wait until it receives such a request. If the waiting time exceeds a certain period, the process can be terminated.

[0286] 1107b, Fill the first field with healthy strong star ephemeris data.

[0287] The healthy predicted ephemeris data (first target ephemeris data) corresponding to the RNSS satellites with strong signals (e.g., the 6 GPS satellites with strong signals) in the strong satellite list can be filled into the first field (the first field includes one or more fields) in the format specified by the satellite protocol stack.

[0288] In some embodiments, the first target ephemeris data includes the ephemeris data of the top N RNSS satellites in the ephemeris data of RNSS satellites indicated by strong star information, where N is an integer greater than 1; among any two adjacent RNSS satellites in the top N RNSS satellites, the score of the first RNSS satellite is higher than the score of the second RNSS satellite; the first RNSS satellite is ranked before the second RNSS satellite; the score of the first RNSS satellite is determined based on its signal strength and position deviation, and the score of the second RNSS satellite is determined based on its signal strength and position deviation; the position deviation corresponding to the first RNSS satellite is the deviation between the fifth and sixth positions, where the fifth position is determined based on the fifth... The first RNSS satellite's position is calculated from the data; the fifth data includes the ephemeris data of the first RNSS satellite from the real-time ephemeris data; the sixth position is the first RNSS satellite's position calculated based on the sixth data; the sixth data includes the ephemeris data of the first RNSS satellite from a portion of the predicted ephemeris data; the position deviation of the second RNSS satellite is the deviation between the seventh and eighth positions; the seventh position is the second RNSS satellite's position calculated based on the seventh data, which includes the ephemeris data of the second RNSS satellite from the real-time ephemeris data; the eighth position is the second RNSS satellite's position calculated based on the eighth data; the eighth data includes the ephemeris data of the second RNSS satellite from a portion of the predicted ephemeris data.

[0289] 1107c. Fill the second field with the ephemeris data of the healthy RDSS satellites.

[0290] The predicted ephemeris data of the health of the RDSS satellite (second target ephemeris data) can be filled into the second field (the second field includes one or more fields) in the format specified by the satellite protocol stack.

[0291] In some embodiments, the second target ephemeris data includes the ephemeris data of the top M RDSS satellites in the updated predicted ephemeris data; M is an integer greater than 1; the positional deviation of the first RDSS satellite among any two adjacent RDSS satellites in the top M RDSS satellites is less than the positional deviation of the second RDSS satellite; the first RDSS satellite is ranked before the second RDSS satellite; the positional deviation of the first RDSS satellite is the deviation between the ninth position and the tenth position, where the ninth position is the position of the first RDSS satellite calculated based on the ninth data, and the ninth data includes the first RDSS satellite in the real-time ephemeris data. The RDSS satellite's ephemeris data; the tenth position is the position of the first RDSS satellite calculated based on the tenth data; the tenth data includes the ephemeris data of the first RDSS satellite from the portion of the predicted ephemeris data; the position deviation corresponding to the second RDSS satellite is the deviation between the eleventh and twelfth positions, the eleventh position is the position of the second RDSS satellite calculated based on the eleventh data, the eleventh data includes the ephemeris data of the second RDSS satellite from the real-time ephemeris data; the twelfth position is the position of the second RDSS satellite calculated based on the twelfth data; the twelfth data includes the ephemeris data of the second RDSS satellite from the portion of the predicted ephemeris data.

[0292] 1107d. Send the first and second fields to the satellite protocol stack.

[0293] The satellite frame can send a first field filled with healthy strong ephemeris data and a second field filled with healthy RDSS satellite ephemeris data to the satellite communication chip side (e.g., satellite protocol stack).

[0294] In some embodiments, steps 1106-1107d can be executed cyclically for a period of time (LOOP), meaning the electronic device can continuously perform satellite positioning and strong satellite search for a period of time, and fill in the corresponding ephemeris data based on the satellite positioning results and strong satellite search results and send it to the satellite communication chip. If the satellite positioning results and strong satellite search results change, the ephemeris data of the strong satellites (healthy predicted ephemeris data corresponding to RNSS satellites) and the ephemeris data of the RDSS satellites can be updated in a timely manner, so that the satellite communication chip can obtain the latest ephemeris data of the strong satellites and the ephemeris data of the RDSS satellites.

[0295] 1108. Calculate the frequency offset of the local clock based on the ephemeris data of healthy strong stars.

[0296] After the satellite protocol stack receives healthy strong star ephemeris data, such as Figure 1BAs shown, the position of the RNSS satellite can be calculated based on the ephemeris data of the RNSS satellite (healthy strong ephemeris data), and the frequency offset of the local clock (including clock bias and clock drift) can be calculated based on the position of the RNSS satellite and the user's position.

[0297] 1109. Capture RDSS satellite signals based on the frequency offset of the local clock and the ephemeris data of the RDSS satellite.

[0298] like Figure 1B As shown, the approximate code phase (i.e., RD ​​code phase) and Doppler frequency of the RDSS satellite signal when it arrives at the electronic device can be calculated from the local clock frequency offset, user location, and RDSS satellite ephemeris data. Then, the RDSS satellite signal can be accurately captured based on the approximate code phase and Doppler frequency of the RDSS satellite signal when it arrives at the electronic device.

[0299] In some embodiments, before performing RD capture, the other system can be turned off, such as turning off cellular networks (mobile networks) and wireless local area networks (WLANs). After turning off the other system, the phone's cellular network, WLAN network, etc., can no longer be used. For example, Figure 12D As shown in (a), the phone can display a signal strength of 1010 (i.e., no cellular service).

[0300] 1110. Satellite communication based on RDSS satellite signals.

[0301] For example, satellite text messages (e.g., BeiDou text messages) or satellite phone calls can be received or made based on RDSS satellite signals.

[0302] 1111. After satellite communication ends, shut down the satellite protocol stack and satellite RF components.

[0303] When electronic devices have independent satellite communication chips, the satellite communication chips are powered off to avoid wasting power.

[0304] Steps 1101-1107c can be performed by the satellite frame, and steps 1108-1111 can be performed by the satellite communication chip.

[0305] Based on the method provided in the embodiments of this application, after starting the satellite protocol stack and satellite RF components, the predicted ephemeris data can be verified, which can effectively identify unhealthy predicted ephemeris data and avoid abnormal satellite communication functions caused by errors in the predicted ephemeris data.

[0306] In some embodiments, Figure 5B The illustrated embodiments and Figure 11The illustrated embodiments can be combined, meaning that after downloading the predicted ephemeris data, the electronic device can immediately verify the predicted ephemeris data (e.g., calculate the first and second positions, and compare the difference between the first and second positions with a preset threshold), and update the predicted ephemeris data based on the verification result (e.g., replace the second data with the first data), ensuring the success rate of the predicted ephemeris data verification. Furthermore, after the electronic device starts the satellite protocol stack and satellite RF components, it can also verify the predicted ephemeris data (e.g., calculate the third position of the second satellite based on third data, and calculate the fourth position of the second satellite based on fourth data; the third data includes the ephemeris data of the second satellite in the real-time ephemeris data, and the fourth data includes the ephemeris data of the second satellite in a portion of the predicted ephemeris data), and update the predicted ephemeris data based on the verification result (e.g., if the difference between the third and fourth positions is greater than or equal to a preset threshold, replace the fourth data with the third data). This further ensures the success rate of the predicted ephemeris data verification, improves the success rate of satellite communication, and thus improves the user experience.

[0307] To facilitate understanding, the following will be combined with... Figure 13A This document explains the interface display and satellite protocol stack processing procedures for sending satellite SMS messages, combined with... Figure 13B The interface display for receiving satellite SMS messages and the satellite protocol stack processing procedure are explained.

[0308] For example, such as Figure 13A As shown, when a user wishes to send a satellite SMS message, they can do so in the satellite SMS editing interface (e.g., ...). Figure 12B The user can edit a text message in interface 906 (as shown in (c)). After editing, the user can click the send button (e.g., send control 907 in interface 906). Upon receiving the user's click, the phone can exit the satellite text message editing interface and display the satellite acquisition interface. Simultaneously, the satellite protocol stack can begin the satellite acquisition preparation process, which includes acquiring the phone's location information, powering on the satellite communication chip (i.e., starting the satellite protocol stack and satellite RF components), and performing RN acquisition. After the satellite acquisition preparation process is complete, the phone enters (displays) the satellite pairing interface. When the phone displays the satellite pairing interface, the satellite protocol stack can begin the satellite pairing preparation process, which may include disabling inter-system communication and RD acquisition. After successful pairing (RD acquisition completed), the satellite protocol stack can send a satellite text message, and the phone can display the satellite text message sending in progress interface. After sending the satellite text message, the satellite protocol stack can receive the acknowledgment message returned by the satellite (i.e., receiving the acknowledgment), and the phone can display the satellite text message sending result interface. When the phone exits the satellite text message sending result interface, the satellite communication chip can be powered down (i.e., the satellite protocol stack is turned off).

[0309] For example, such as Figure 13BAs shown, when a user wishes to receive satellite SMS messages, they can do so on the satellite SMS receiving interface (e.g., as shown in the image). Figure 12B In interface 901 (as shown in (a)), clicking the receive button (e.g., the SMS receiving control in interface 901) allows the phone to exit the satellite SMS receiving interface and display the satellite acquisition interface after receiving the user's click. Simultaneously, the satellite protocol stack can begin the satellite acquisition preparation process, which includes acquiring the phone's location information, powering on the satellite communication chip (i.e., starting the satellite protocol stack and satellite RF components), and performing RN acquisition. After the satellite acquisition preparation process is complete, the phone enters (displays) the satellite pairing interface. When the phone displays the satellite pairing interface, the satellite protocol stack can begin the satellite pairing preparation process, which may include disabling inter-system communication and RD acquisition. After successful pairing (after RD acquisition is completed), the satellite protocol stack can query the satellite mailbox (e.g., the BeiDou mailbox) and receive satellite SMS messages. Simultaneously, the phone can display the satellite SMS receiving interface. After receiving the satellite SMS message, the satellite protocol stack can report the reception result to the satellite (e.g., reception successful), and the phone can display the satellite SMS reception result interface. When the phone exits the satellite SMS reception result interface, the satellite communication chip can be powered down (i.e., the satellite protocol stack is turned off).

[0310] Based on the method provided in the embodiments of this application, the predicted ephemeris data can be verified according to real-time ephemeris data, which can ensure the accuracy of the predicted ephemeris data, thereby improving the success rate of RN acquisition and RD acquisition, and thus improving the success rate of satellite communication.

[0311] This application also provides a chip system, such as... Figure 14 As shown, the chip system includes at least one processor 1401 and at least one interface 1402. The processor 1401 (e.g., a modem, access point, or SoC) and the interface 1402 are interconnected via lines. For example, the interface 1402 can be used to receive signals from other devices (e.g., the memory of an electronic device). As another example, the interface 1402 can be used to send signals to other devices (e.g., the processor 1401). Alternatively, the chip system may include a satellite communication processor, which includes a satellite protocol stack.

[0312] For example, interface 1402 can read instructions stored in the memory of an electronic device and send those instructions to processor 1401. When the instructions are executed by processor 1401, they can cause the electronic device (such as...) to... Figure 2 or Figure 3 The electronic device shown performs the steps in the above embodiments.

[0313] Of course, the chip system may also include other discrete components, and this application embodiment does not specifically limit this.

[0314] This application also provides a computer-readable storage medium, which includes computer instructions that, when the computer instructions are used in an electronic device (such as...), Figure 2 or Figure 3 When the method is run on the electronic device shown, it causes the electronic device to perform the various functions or steps performed by the electronic device (e.g., mobile phone) in the above method embodiments.

[0315] This application also provides a computer program product that, when run on a computer, causes the computer to perform various functions or steps performed by the electronic device in the above method embodiments.

[0316] This application also provides a processing device, which can be divided into different logical units or modules according to function. Each unit or module performs different functions, so that the processing device performs the various functions or steps performed by the electronic device in the above method embodiments.

[0317] Through the above description of the embodiments, those skilled in the art can clearly understand that the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0318] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0319] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0320] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0321] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially or in other words, the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0322] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for using ephemeris data, characterized in that, Applied to electronic devices, the method includes: Predicted ephemeris data and real-time ephemeris data are acquired separately. The predicted ephemeris data includes ephemeris data within a first time range, and the real-time ephemeris data includes ephemeris data within a second time range. The second time range is smaller than the first time range, and the second time range is within the first time range. The first position of the first satellite is calculated based on the first data, and the second position of the first satellite is calculated based on the second data; the first data includes the ephemeris data of the first satellite in the real-time ephemeris data, and the second data includes the ephemeris data of the first satellite in a portion of the predicted ephemeris data, wherein the portion of the data includes ephemeris data with the same or similar time range as the real-time ephemeris data; If the difference between the first position and the second position is greater than or equal to a preset threshold, the second data is replaced with the first data to obtain updated predicted ephemeris data, which is used for satellite communication.

2. The method according to claim 1, characterized in that, The acquisition of real-time ephemeris data includes at least one of the following: If the electronic device downloads the predicted ephemeris data, it also downloads real-time ephemeris data. When the electronic device is connected to a WiFi network, it downloads real-time ephemeris data every preset time interval; Download real-time ephemeris data if satellite service fails and there is no real-time ephemeris data available within a valid timeframe. or, If real-time ephemeris data within the valid time period cannot be found after starting the satellite protocol stack and satellite radio frequency (RF) components, download the real-time ephemeris data.

3. The method according to claim 2, characterized in that, When the predicted ephemeris data is downloaded to the electronic device, downloading the real-time ephemeris data includes: After the electronic device downloads the predicted ephemeris data, it determines whether the generation time of the predicted ephemeris data exceeds a first threshold value. If the generation time of the predicted ephemeris data exceeds a first threshold, the real-time ephemeris data is downloaded.

4. The method according to any one of claims 1-3, characterized in that, The electronic device includes a satellite protocol stack and a satellite radio frequency (RF) component. The step of replacing the second data with the first data to obtain updated predicted ephemeris data includes: After acquiring the predicted ephemeris data and the real-time ephemeris data respectively, and before starting the satellite protocol stack and the satellite RF component, the second data is replaced with the first data to obtain the updated predicted ephemeris data; wherein, the satellite protocol stack and the satellite RF component are used for satellite communication.

5. The method according to any one of claims 1-4, characterized in that, The acquisition of predicted ephemeris data and real-time ephemeris data respectively includes: The predicted ephemeris data is obtained from the operator's ephemeris server; The real-time ephemeris data is obtained from the Auxiliary Global Navigation Satellite System (AGNSS) server and / or the International Global Navigation Satellite System (GNSS) service website.

6. The method according to claim 4 or 5, characterized in that, The electronic device also includes a satellite frame, and after activating the satellite protocol stack and the satellite RF components, the method further includes: The satellite frame acquires strong satellite information, which is used to indicate RNSS satellites with signal strength greater than or equal to a preset strength. The satellite framework sends first target ephemeris data to the satellite protocol stack. The first target ephemeris data includes the ephemeris data of the RNSS satellite indicated by the strong star information in the updated predicted ephemeris data. The satellite protocol stack captures RNSS satellite signals based on the first target ephemeris data.

7. The method according to claim 6, characterized in that, The first target ephemeris data includes ephemeris data of RNSS satellites indicated by the strong star information in the updated predicted ephemeris data, including: The first target ephemeris data includes the ephemeris data of the top N RNSS satellites in the ephemeris data of the RNSS satellites indicated by the strong star information, where N is an integer greater than 1; among any two adjacent RNSS satellites in the top N RNSS satellites, the score of the first RNSS satellite is higher than the score of the second RNSS satellite; the first RNSS satellite is ranked before the second RNSS satellite; the score of the first RNSS satellite is determined based on the signal strength and position deviation of the first RNSS satellite, and the score of the second RNSS satellite is determined based on the signal strength and position deviation of the second RNSS satellite; The position deviation corresponding to the first RNSS satellite is the deviation between the fifth position and the sixth position. The fifth position is the position of the first RNSS satellite calculated based on the fifth data, which includes the ephemeris data of the first RNSS satellite in the real-time ephemeris data. The sixth position is the position of the first RNSS satellite calculated based on the sixth data, which includes the ephemeris data of the first RNSS satellite in the portion of the predicted ephemeris data. The position deviation corresponding to the second RNSS satellite is the deviation between the seventh position and the eighth position. The seventh position is the position of the second RNSS satellite calculated based on the seventh data, which includes the ephemeris data of the second RNSS satellite in the real-time ephemeris data. The eighth position is the position of the second RNSS satellite calculated based on the eighth data, which includes the ephemeris data of the second RNSS satellite in the portion of the predicted ephemeris data.

8. The method according to claim 6 or 7, characterized in that, The method further includes: The satellite framework sends second target ephemeris data to the satellite protocol stack. The second target ephemeris data includes the ephemeris data of the top M RDSS satellites in the updated predicted ephemeris data; M is an integer greater than 1; the positional deviation of the first RDSS satellite among any two adjacent RDSS satellites in the top M RDSS satellites is less than the positional deviation of the second RDSS satellite; the first RDSS satellite is ordered before the second RDSS satellite. The position deviation corresponding to the first RDSS satellite is the deviation between the ninth position and the tenth position. The ninth position is the position of the first RDSS satellite calculated based on the ninth data, which includes the ephemeris data of the first RDSS satellite in the real-time ephemeris data. The tenth position is the position of the first RDSS satellite calculated based on the tenth data, which includes the ephemeris data of the first RDSS satellite in the portion of the predicted ephemeris data. The position deviation corresponding to the second RDSS satellite is the deviation between the eleventh position and the twelfth position. The eleventh position is the position of the second RDSS satellite calculated based on the eleventh data, which includes the ephemeris data of the second RDSS satellite in the real-time ephemeris data. The twelfth position is the position of the second RDSS satellite calculated based on the twelfth data, which includes the ephemeris data of the second RDSS satellite in the portion of the predicted ephemeris data. The satellite protocol stack captures RDSS satellite signals based on the second target ephemeris data.

9. The method according to any one of claims 1-8, characterized in that, Before replacing the second data with the first data, the method further includes: The first marker of the second data is modified, and the modified first marker is used to indicate that the second data is inaccurate.

10. The method according to any one of claims 5-9, characterized in that, The electronic device includes a satellite frame and a positioning service (LBS) module. The step of obtaining the real-time ephemeris data from the Assisted Global Navigation Satellite System (AGNSS) server includes: The satellite frame sends a real-time ephemeris data download request to the LBS module; The LBS module starts a real-time ephemeris data download thread, which generates a Secure User Plane Positioning (SUPL) request. The SUPL request is used to request real-time ephemeris data. The LBS module sends the SUPL request to the AGNSS server; The LBS module receives a SUPL response from the AGNSS server, and the SUPL response carries the real-time ephemeris data. The LBS module parses the SUPL response into an Ultra Low Power Protocol Data Unit (ULP_PDU) structure and extracts the real-time ephemeris data from the message body of the SUPL response. The LBS module assembles the real-time ephemeris data into a JSON object, generates a JSON file, and stores it in a specified directory. The specified directory is the directory negotiated by the LBS module and the satellite frame for storing the real-time ephemeris data. The LBS module notifies the satellite frame that the real-time ephemeris data download was successful. The satellite frame reads the real-time ephemeris data from the designated directory.

11. The method according to any one of claims 4-10, characterized in that, After activating the satellite protocol stack and the satellite RF components, the method further includes: The third position of the second satellite is calculated based on the third data, and the fourth position of the second satellite is calculated based on the fourth data; the third data includes the ephemeris data of the second satellite in the real-time ephemeris data, and the fourth data includes the ephemeris data of the second satellite in the portion of the predicted ephemeris data; If the difference between the third position and the fourth position is greater than or equal to a preset threshold, the fourth data is replaced with the third data.

12. The method according to any one of claims 1-11, characterized in that, The electronic device includes a satellite protocol stack and a satellite radio frequency (RF) component. The step of calculating the first position of the first satellite based on first data and calculating the second position of the first satellite based on second data includes: After the satellite protocol stack and the satellite RF component are started, the first position of the first satellite is calculated based on the first data, and the second position of the first satellite is calculated based on the second data; wherein, the satellite protocol stack and the satellite RF component are used for satellite communication.

13. The method according to any one of claims 1-12, characterized in that, The acquisition of predicted ephemeris data includes: When preset conditions are met, the predicted ephemeris data is downloaded from the server; The preset conditions include at least one of the following: the electronic device is connected to the network; the satellite communication switch is turned on, which enables the satellite communication function of the electronic device; the download time of the last predicted ephemeris data exceeds a second threshold; or, the key is valid, which is used for authentication of satellite communication.

14. An electronic device, characterized in that, The electronic device includes: a display, a memory, and one or more processors; the memory is coupled to the processor. The memory is used to store computer program code, which includes computer instructions; when the computer instructions are executed by the processor, the electronic device performs the method as described in any one of claims 1-13.

15. A computer-readable storage medium, characterized in that, Includes computer instructions; When the computer instructions are executed on an electronic device, the electronic device causes the electronic device to perform the method as described in any one of claims 1-13.

16. A chip system, characterized in that, The chip system includes one or more interfaces and one or more processors; The chip system is applied to an electronic device; when the processor executes computer instructions, the electronic device performs the method as described in any one of claims 1-13.