US 12,438,604 B2
Method and apparatus for synchronizing time by parsing satellite navigation data
Zhou Lu, Beijing (CN); and Huazhang Yu, Beijing (CN)
Assigned to Feitian Technologies Co., Ltd., Beijing (CN)
Appl. No. 18/276,244
Filed by Feitian Technologies Co., Ltd., Beijing (CN)
PCT Filed Mar. 23, 2022, PCT No. PCT/CN2022/082559
§ 371(c)(1), (2) Date Aug. 7, 2023,
PCT Pub. No. WO2022/257547, PCT Pub. Date Dec. 15, 2022.
Claims priority of application No. 202110650533.4 (CN), filed on Jun. 11, 2021.
Prior Publication US 2024/0120991 A1, Apr. 11, 2024
Int. Cl. H04B 7/185 (2006.01)
CPC H04B 7/18519 (2013.01) 20 Claims
OG exemplary drawing
 
1. A method for synchronizing time by parsing satellite navigation data, comprising:
Step 101, obtaining, by a service application, current time of a system and caching the current time of the system as a first time variable, receiving satellite navigation data via a serial port, parsing the satellite navigation data to obtain all character strings contained in the satellite navigation data and storing all the character strings;
Step 102, obtaining, by the service application, a stored character string as a current character string to be processed, obtaining a system protocol identifier from a satellite system identifier of the current character string to be processed, determining a type of the system protocol identifier, if the type of the system protocol identifier is a preset system protocol identifier, executing Step 103; otherwise, executing Step 104;
Step 103, converting, by the service application, a time field of the current character string to be processed into a local time zone time value of the current character string to be processed and storing the local time zone time value of the current character string to be processed, and executing Step 104;
Step 104, determining, by the service application, whether an un-obtained character string to be processed exists, if the un-obtained character string to be processed exists, going back to Step 102; otherwise, executing Step 105;
Step 105, obtaining, by the service application, current time of the system and storing the current time of the system as a second time variable, obtaining a first time compensation value according to a stored first time variable and a stored second time variable;
Step 106, obtaining, by the service application, a maximum local time zone time value from all stored local time zone time values, obtaining satellite navigation time according to the first time compensation value and the maximum local time zone time value; and
Step 107, setting, by the service application, the current time of the system as satellite navigation time.