Method for converting Beidou time into Gridgli calendar time based on BD module
By obtaining and processing the BD time data output by the BD data receiver, the Garri Gaoli calendar information is converted, and the problem that the carrier cannot provide accurate Garri calendar time has been solved. Essence
Patent Information
- Application Number
- CN202411668069.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-01-24
AI Technical Summary
Due to hardware or software limitations, some carriers cannot obtain more accurate Gregorian calendar times through the BD satellite module, resulting in insufficient time accuracy when performing accurate time-based tasks.
By obtaining the BD time data output by the BD data receiver, the timing validity is judged. If it is valid, the simplified Julian day data is obtained based on the conversion of the BD time data, thereby calculating the Gregorian calendar time information and transmitting it to the computer. module.
It realizes the conversion from BD time data to Gregorian calendar time information, improves the accuracy and reliability of time conversion, and meets the time accuracy requirements of airborne weapon systems when performing precise time synchronization tasks.
Smart Images

Figure CN119356066A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to the technical field of converting Beidou time to Gregorian calendar time, and in particular to a method for converting Beidou time to Gregorian calendar time based on a BD module. Background Art
[0002] The Gregorian calendar is the solar calendar widely used internationally. It provides a unified standard for global time measurement and communication. The BD satellite module obtains the time system provided by the BeiDou Navigation Satellite System (BDS).
[0003] At present, it is found in engineering practice that due to various reasons (for example, hardware or software limitations, system configuration or design, etc.), the timing time obtained by some carrier aircraft through the BD satellite module only has information such as the current week number and the number of seconds in the current week. Even if it is more accurate, it can only generate the year, month, day and hour of the time, but cannot provide a more accurate Gregorian calendar time, which cannot meet the requirements of accurate timing of airborne weapons. Therefore, a method of converting Beidou time to Gregorian calendar time based on the BD module is proposed to solve the above problem. Summary of the invention
[0004] In view of the above defects or deficiencies in the prior art, it is desirable to provide a method for converting Beidou time to Gregorian calendar time based on a BD module.
[0005] The present application provides a method for converting Beidou time to Gregorian calendar time based on a BD module, comprising: responding to a system power-on signal; Acquire BD time data output by a BD data receiver; Based on the BD time data, converting to obtain corresponding simplified Julian day data, thereby calculating to obtain Gregorian calendar time information; The calculated Gregorian calendar time information is transmitted to the computer module.
[0006] According to the technical solution provided by the present application, the BD time data at least includes: BD timing validity and Beidou time information; After acquiring the BD time data output by the BD data receiver and before converting to obtain the corresponding simplified Julian day data, the method further includes: Determine whether the BD timing validity is displayed as valid; If yes, then based on the BD time data, the corresponding simplified Julian day data is converted.
[0007] According to the technical solution provided by the present application, based on the BD time data, the corresponding simplified Julian day data is converted, specifically including: Get the whole week count and the second count in the week in Beidou time information; The simplified Julian day data is calculated according to the whole week count and the second count within the week; the Julian day data is used to represent the time information of the current moment in the historical day number sequence.
[0008] According to the technical solution provided by this application, the Gregorian calendar time information is calculated, specifically including: Based on the simplified Julian day data and the preset conversion parameters, respectively calculating the Gregorian calendar year, month, day, hour, minute and millisecond corresponding to the Gregorian calendar time information; The final Gregorian calendar time information is obtained by respectively calculating the Gregorian calendar year, month, day, hour, minute and millisecond.
[0009] According to the technical solution provided by the present application, the conversion parameters at least include: a first time conversion parameter, a second time conversion parameter, a first adjustment parameter and a second adjustment parameter; Calculating the Gregorian calendar year corresponding to the Gregorian calendar time information based on the simplified Julian day data and the preset conversion parameters, specifically comprising: Acquire first integer data in the simplified Julian day data, and calculate first time conversion median data according to the first time conversion parameter and the first integer data; Calculate the second time conversion median data according to the first time conversion median data and the second time conversion parameter to obtain the initial year; Calculate a first adjustment parameter and a second adjustment parameter according to the first time conversion median data, the second time conversion median data and the second time conversion parameter to obtain a compensation year; Based on the initial year and the compensation year, a Gregorian calendar year is obtained.
[0010] According to the technical solution provided by the present application, based on the simplified Julian day data and the preset conversion parameters, the Gregorian calendar month and day corresponding to the Gregorian calendar time information are calculated, specifically including: Calculating the annual cumulative day according to the first adjustment parameter and the second adjustment parameter, and determining the third time conversion parameter according to the annual cumulative day; Determining a value of a third adjustment parameter based on the type of the Gregorian calendar year, the accumulated day of the year, and the third time conversion parameter; The Gregorian calendar month and the Gregorian calendar day are calculated according to the value of the third adjustment parameter, the third time conversion parameter and the annual accumulation day.
[0011] According to the technical solution provided by the present application, based on the Gregorian calendar year, the annual cumulative day and the third time conversion parameter, determining the value of the third adjustment parameter specifically includes: Confirming the type of the Gregorian calendar year, and calling the corresponding monthly cumulative days table according to the third time conversion parameter to obtain the corresponding target cumulative days; The monthly cumulative days table includes a leap year monthly cumulative days table and a normal year monthly cumulative days table, and the monthly cumulative days tables both include the cumulative days corresponding to each month; Based on the target accumulated days and the annual accumulated days, a value of the third adjustment parameter is obtained.
[0012] According to the technical solution provided by the present application, the conversion parameters also include: multiple unit conversion parameters related to each other among Gregorian calendar hours, minutes and milliseconds; Calculating the Gregorian hours, minutes and milliseconds corresponding to the Gregorian time information based on the simplified Julian day data and the preset conversion parameters, specifically comprising: The Gregorian calendar hour, the Gregorian calendar minute and the Gregorian calendar millisecond are calculated respectively according to the simplified Julian day data, the first integer data and the plurality of the unit conversion parameters.
[0013] According to the technical solution provided by the present application, the BD data receiver is in communication with the BD data acquisition module, and the BD data receiver is connected to a BD antenna for receiving signals sent by Beidou satellites; The BD data acquisition module is also in communication with the computer module via a dual-port RAM.
[0014] In summary, the present technical solution specifically discloses a method for converting Beidou time to Gregorian calendar time based on a BD module, including: responding to a system power-on signal; obtaining BD time data output by a BD data receiver; determining whether the BD timing validity is displayed as valid, and if so, converting the corresponding simplified Julian day data based on the Beidou time information in the BD time data, thereby calculating the Gregorian calendar time information; and transmitting the calculated Gregorian calendar time information to a computer module.
[0015] In the prior art, it has been found in engineering practice that due to various reasons, the timing time obtained by some carrier aircraft through the BD satellite module cannot be accurate to the millisecond, which affects the airborne weapon system in performing precise timing tasks; in the present application, the BD time data output by the BD data receiver is collected, and after ensuring that the BD time data timing is valid, the BD time data is converted into Gregorian calendar time information, thereby solving the problem that the BD data receiver cannot provide a more accurate timing reference time for the airborne weapon system. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings: Figure 1 The figure is a flowchart of a method for converting Beidou time to Gregorian calendar time based on the BD module.
[0017] Figure 2 A schematic diagram of the system interconnection design flow of the method for converting Beidou time to Gregorian calendar time based on the BD module.
[0018] Figure 3 It is a flowchart diagram of step 206 in the method of converting Beidou time to Gregorian calendar time based on the BD module.
[0019] Figure 4 It is a flowchart diagram of step 207 in the method of converting Beidou time to Gregorian calendar time based on the BD module.
[0020] Figure 5 It is a flowchart diagram of step 208 in the method of converting Beidou time to Gregorian calendar time based on the BD module.
[0021] Figure 6 This is a judgment flow chart of step 207 in the method for converting Beidou time to Gregorian calendar time based on the BD module.
[0022] Figure 7 This is a schematic diagram of the structure of the system for converting Beidou time to Gregorian calendar time based on the BD module.
[0023] Numbers in the figure: 1, BD data receiver; 2, BD data acquisition module; 3, computer module 3. DETAILED DESCRIPTION
[0024] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the invention are shown in the accompanying drawings.
[0025] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0026] Example 1 In order to make the technical solution of the embodiment of the present application clearer and easier to understand, the application background of the embodiment of the present application is introduced below.
[0027] BeiDou Time: BeiDou Time is the time system used by China's BeiDou satellite navigation system. It is an atomic time scale that uses the atomic clock in the BeiDou system as the time reference. BeiDou Time is used to ensure the high-precision time services provided by the BeiDou system, including positioning, navigation and timing functions.
[0028] Gregorian Calendar Time: Gregorian Calendar Time is a time system based on the Gregorian Calendar and is currently the most widely used time standard internationally. It is based on the period of the Earth's revolution around the sun and defines the length of a year, as well as the calculation methods of years, months, days, hours, minutes and milliseconds.
[0029] Since airborne weapon systems rely heavily on the accuracy of time when performing precise timing tasks, it is necessary to use the Gregorian calendar time, which is more accurate and more versatile, as a reference to ensure the consistency and versatility of recording weapon system time, which is crucial to improving the accuracy and reliability of airborne weapon systems. However, in engineering practice, it is found that some aircraft using BD satellite modules as time systems cannot provide more accurate Gregorian calendar time due to various reasons (for example, hardware or software limitations, system configuration or design, etc.), and can only rely on BD time data as a reference time to perform timing tasks, which will limit the airborne weapon system in performing precise timing tasks.
[0030] In view of this, the embodiment of the present application collects and processes the time information output by the BD module. In order to improve the efficiency and convenience of time conversion, the BD time can be first converted to the simplified Julian day, and then the simplified Julian day can be converted to the Gregorian calendar time. The method provided in the embodiment of the present application is applicable to BD modules with an update frequency of 5 Hz or above from different manufacturers, and the time accuracy reaches the microsecond level, thereby solving the problem that the BD module cannot provide accurate Gregorian calendar time.
[0031] Specifically, please refer to Figure 1The flowchart of a method for converting Beidou time to Gregorian calendar time based on a BD module provided in the present embodiment shown includes: responding to a system power-on signal; obtaining BD time data output by a BD data receiver; determining whether the BD timing validity is displayed as valid, and if so, converting the corresponding simplified Julian day data based on the Beidou time information in the BD time data, thereby calculating the Gregorian calendar time information; and transmitting the calculated Gregorian calendar time information to the computer module.
[0032] In summary, it can be seen that after receiving the system power-on signal, the embodiment of the present application can directly obtain the BD time data output by the BD data receiver, and complete the Gregorian calendar time information based on the currently acquired BD time data, and finally transmit the Gregorian calendar time information to the computer module for time synchronization, so as to provide the airborne weapon system with precise timing tasks, thereby greatly improving the timing accuracy and reliability.
[0033] The BD time data here can be understood as the time data synchronized based on the Beidou system. In simple terms, the BD time data is the standard time directly generated by the Beidou satellite and transmitted to the ground receiving device (BD data receiver) through the BD antenna. It is consistent with the international atomic clock, which can ensure that users obtain accurate time information.
[0034] The following is a detailed description of the embodiments of the present application with reference to the accompanying drawings and examples: like Figure 2 and Figure 7 As shown, S201, designing a data transmission path based on the BD data receiver 1, the BD data acquisition module 2 and the computer module 3; First, the BD data receiver 1 communicates with the BD data acquisition module 2, and the BD data receiver 1 is connected to a BD antenna for receiving signals sent by Beidou satellites; wherein the BD data acquisition module 2 also communicates with the computer module 3 through a dual-port RAM.
[0035] Specifically, the BD data acquisition module 2 is integrated with an FPGA chip, specifically, the FPGA chip can be selected from the Xilinx 2V1000 series chip, and its host module uses the VxWorks6.9 embedded real-time system workbench3.3 development environment, thereby realizing RS-232 serial port, I / O input and communication interface circuit; the BD data receiver 1 is installed on the BD data acquisition module 2, and the positioning data is collected through RS-232. The FPGA chip provides 1K data cache for RS-232 transmission and reception, and the ping-pong structure is used to realize seamless data connection; one port of the BD data receiver 1 is used to access the BD antenna, so as to receive the data signal generated by the Beidou satellite, and the BD time data of the BD data receiver 1 is connected to the I / O pin of the FPGA, so as to realize the collection of the BD time data output by the BD data receiver 1, and at the same time, the calculated Gregorian calendar time is sent to the computer module 3 through the dual-port RAM. Under the above communication architecture, the method provided in the embodiment of the present application can be applied to BD modules with an update frequency of 5Hz or above from different manufacturers, and the time accuracy reaches the microsecond level.
[0036] S202, power on the system; After the data transmission paths of the BD data receiver 1 , the BD data acquisition module 2 and the computer module 3 are designed, when the system is powered on, the BD data acquisition module 2 can perform the conversion between the Beidou time and the Gregorian calendar time.
[0037] like Figure 1 As shown, S203, the BD data acquisition module 2 obtains the BD time data output by the BD data receiver 1; Based on the above description of the data transmission path design, the BD data acquisition module 2 can receive BD time data through the I / O pin. The BD time data at least includes: BD timing validity and Beidou time information, such as whole week count and week second count.
[0038] The judgment on the validity of BD timing usually involves a series of detection and verification steps. Generally, the BD data receiver 1 will perform detection and receive signals from Beidou satellites, including checking the signal's carrier-to-noise ratio (C / N0), signal strength, multipath effect, etc. to determine the signal quality, and then analyze whether the BD timing is valid.
[0039] S204, the BD data acquisition module 2 determines whether the BD timing validity is displayed as valid; if so, based on the Beidou time information in the BD time data, the corresponding simplified Julian day data is converted.
[0040] In the Beidou satellite navigation system, timing validity refers to whether the received BD time signal is accurate and reliable. This is because various factors (for example, signal transmission delay, receiver error, satellite system error, etc.) may cause errors in the received BD time. Therefore, before performing time conversion, it is also necessary to ensure that the obtained BD time data is valid, thereby ensuring the accuracy of subsequent system time conversion.
[0041] Since the BD time data includes the BD timing validity, the BD data acquisition module reads the BD timing validity and determines whether it is displayed as valid. After confirming that the BD timing is valid, the step of converting it into the corresponding simplified Julian day data is executed.
[0042] The following is a detailed description of the process of the BD data acquisition module converting the BD time data to obtain the Gregorian calendar time information: S205, obtaining the whole week count and the second count in the week in the Beidou time information, and calculating the whole week count and the second count in the week to obtain the simplified Julian day data; First of all, Julian Day is a time counting method based on the Julian calendar, which unifies all Julian calendar dates in history into a continuous sequence of day numbers. Julian Day starts from January 1, 4713 BC (the starting point of the Julian calendar), and each day has a unique Julian Day number, which is continuous and not affected by the year. So according to the whole week count in BD time data ( WN ) and the seconds of the week ( TOW ) can calculate the simplified Julian day ( MJD ), the specific formula can refer to the following formula (1): MJD = WN × 7 + TOW / 86400 (1) in, WN is the whole week count, TOW is the number of seconds in a week, and 86400 is the number of seconds in a day.
[0043] S206, calculating the Gregorian calendar year corresponding to the Gregorian calendar time information based on the simplified Julian day data and the preset conversion parameters; In this step, the conversion parameters used include at least: a first time conversion parameter and a second time conversion parameter; Specifically, the first time conversion parameter is the simplified Julian day corresponding to January 1, 1901, which is 15385; the second conversion parameter is the total number of days corresponding to four consecutive years, which is the total number of days in three ordinary years and one leap year, 1461; Furthermore, if Figure 3 As shown, S2061, obtain the first integer data in the simplified Julian day data a, and according to the first time conversion parameter and the first integer data a , calculate the first time conversion median data b ; Since the simplified Julian day is calculated in days, the simplified Julian day finally converted will be converted to a decimal value according to the specific time of the day, for example, WN=976,TOW=468918.379, Calculated MJD= 60573.427296 . Accordingly, the first integer data is 60573. When the first integer data is obtained a After that, the time information corresponding to the current time in the historical day sequence can be preliminarily obtained; With the first integer data a Based on the first time conversion parameter, the first time conversion median data can be obtained by subtracting it from the first time conversion parameter. b , first convert the median data b It can represent the simplified Julian day number information corresponding to the current time, starting from January 1, 1901; specifically, the median data of the first time conversion b Specifically, it is calculated by the following formula (2): b = a- 15385 (2) S2062, converting median data according to the first time b and the second time conversion parameter, and calculate the second time conversion median data c , to get the initial year d ; According to the first time conversion median data obtained b Divided by the second time conversion parameter, the second time conversion median data can be obtained c, Second time conversion median data c Used to characterize the first time conversion median data b There are several complete four-year periods in it, which can be accumulated upwards based on 1901 to obtain the initial year; specifically, the median data of the second time conversion c Specifically, it is calculated by the following formula (3): c = b / 1461 (3) Finally, the initial year d It can be calculated by the following formula (4) : d=1901+4×c (4) Since the above formula (4) can only give the number of complete four years, it is necessary to further calculate the remainder to obtain the compensatory year; S2063, converting the median data according to the first time b , the second time conversion median data c and the second time conversion parameter, the first adjustment parameter is calculated e And the second adjustment parameter f , to get the compensation year; First adjustment parameter e Used to characterize the first time conversion median data b The remaining days excluding the four years included in the completion can be calculated using the following formula (5): e=b- 1461 ×c (5) Since the above conversion parameters are all integers, in order to ensure the accuracy of the data, it is necessary to adjust the parameters through the second f, It can be obtained by the following formula (6): f=e / 365 -e / 1460(6) in, e / 365 is used to indicate how many four common years the remaining days have gone through. e Four ordinary years, e< At 1460, due to e / 1460 The ratio is 0, so it is equivalent to f=e / 365; Finally, the second adjustment parameter after rounding f , which is the compensation year.
[0044] S2064. Get the Gregorian calendar year based on the initial year and the compensation year Y; Gregorian calendar Y For details, please refer to the following formula (7) for calculation: Y=d+f (7) S207, calculating the Gregorian calendar month and day corresponding to the Gregorian calendar time information based on the simplified Julian day data and the preset conversion parameters; Specifically, Figure 4 As shown, the step includes: S2071. Calculate the annual cumulative daily value according to the first adjustment parameter and the second adjustment parameter. DOY , and confirm the third time conversion parameters based on the annual accumulation date g ; Among them, the annual cumulative days DOY Used to represent the number of days in the Gregorian calendar year at the current time; specifically, the annual cumulative day DOY According to the following formula (8), it is calculated: DOY=e -365 ×f+1 (8) Convert parameters at the third time g It is calculated according to the following formula (9): g = INT [ DOY×0.032 ] (9) in, INT Represents the sign of the integer part.
[0045] S2072. Confirm the type of Gregorian calendar year and convert parameters according to the third time g , call the corresponding monthly cumulative days table to obtain the corresponding target cumulative days; the monthly cumulative days table includes the monthly cumulative days table of leap year (Leap Mon) and the monthly cumulative days table of common year (Common Mon), and the monthly cumulative days tables of both months include the cumulative days corresponding to each month; After obtaining the specific year, the corresponding Gregorian calendar year type can be obtained, that is, whether it is a common year or a leap year, so as to choose to call the corresponding leap year month cumulative day table or the common year month cumulative day table; the structures of the two tables are shown below.
[0046] Leap Mon=[0,31,60,91,121,152,182,213,244,274,305,335,366]; Common Mon=[0,31,59,90,120,151,181,212,243,273,304,334,365].
[0047] Specifically, the parameters need to be converted at the third time g Add 1 to the value of the corresponding month to get the accumulated days. For example, the third time conversion parameter g If it is expressed as 2, then we need to get the cumulative number of days in March to make up for some minor errors in the above calculation, for example, g It is based on 0.032 and is rounded to get the total number of days in the actual month, so it will actually fall into the next month corresponding to g.
[0048] like Figure 6 As shown, S2073, based on the target accumulated days and the annual accumulated days, obtain the third adjustment parameter more The value of The accumulated days DOY The difference between the target accumulated days and the target accumulated days is compared with 0. When the difference is greater than 0, the third adjustment parameter more The value is 1, otherwise, the third adjustment parameter more The value of is 0; S2074, calculate the Gregorian calendar month according to the value of the third adjustment parameter, the third time conversion parameter and the annual accumulation day Mon and the Gregorian calendar Day ;Specifically, the Gregorian calendar month Mon and the Gregorian calendar Day They are calculated by the following formulas (10) and (11): Mon=g+more+1 (10) Day=DOY-Leap Mon[g+more] or Day=DOY-Common Mon[g+more] (11) Among them, the formula in formula (11) needs to be selected according to the confirmed Gregorian calendar type.
[0049] S208, calculating the Gregorian hours, minutes and milliseconds corresponding to the Gregorian calendar time information based on the simplified Julian day data and the preset conversion parameters; Specifically, in this step, the conversion parameters also include: multiple unit conversion parameters related to Gregorian hours, minutes and milliseconds, such as 24, 1440.0, 3600 and 86400.0, etc., which are parameters based on, for example, 1 day = 24 H ,twenty four H =1440.0 min,1min=60s,1s=1000ms,24H= 86400 s The unit conversion relationship is set, so each parameter is not defined separately here.
[0050] Furthermore, if Figure 5 As shown, S2081, based on simplified Julian day data MJD, First integer data a And the associated multiple unit conversion parameters can be used to calculate the Gregorian calendar hour H、 Gregorian minute MIN and Gregorian milliseconds Ms. Specifically, it can be calculated by the following formulas (12) to (14): H = INT[(MJD - a) × 24] (12) MIN= INT[(MJD - a)×1440.0] - H×60 (13) Ms= INT[((MJD - a)× 86400.0 - H× 3600 - MIN× 60)×1000+0.5] (14) in, MJD-a Used to represent the time information remaining after removing the complete day in the simplified Julian day.
[0051] Finally, after getting the Gregorian calendar Y、 Gregorian calendar month Mon, Gregorian calendar Day, Gregorian calendar hoursH、 Gregorian minute MIN and Gregorian milliseconds After Ms. You can get the Gregorian calendar time information corresponding to the BD time data; S209, obtaining final Gregorian calendar time information by respectively calculating the Gregorian calendar year, month, day, hour, minute, and millisecond.
[0052] For example, the whole week count is 976, and the second count within the week is 468918.379. Based on the above formulas (1) to (14), the Gregorian calendar time is 10:15:18379 on September 20, 2024.
[0053] S210 , the BD data acquisition module transmits the calculated Gregorian calendar time information to the computer module 3 .
[0054] Since the BD data acquisition module has parsed the BD time data into Gregorian calendar time through the above process, it sends the corresponding Gregorian calendar time to computer module 3 through the dual-port RAM connected to computer module 3, and computer module 3 completes the time synchronization as a reference standard for the airborne weapon system when performing precise timing tasks.
[0055] Based on the above description, it can be known that the present application proposes a method for converting Beidou time to Gregorian calendar time based on the BD module, which specifically includes: first establishing a data transmission path between the BD data receiver 1, the BD data acquisition module 2 and the computer module 3 in the early stage, and then, the BD data acquisition module 2 responds to the system power-on signal to obtain the BD time data output by the BD data receiver 1; when the BD data acquisition module determines that the BD timing is valid, it converts the corresponding simplified Julian day data based on the BD time data, thereby calculating the Gregorian calendar time information, and finally, transmits the calculated Gregorian calendar time information to the computer module 3 to complete the synchronization of the Gregorian calendar time information.
[0056] On the one hand, the method establishes a data transmission channel with strong versatility and fast data transmission and processing speed, ensuring that after receiving the BD time data, it can be converted into the Gregorian calendar time more quickly and accurately; on the other hand, before performing a specific time conversion, it is also necessary to determine whether the BD time service is valid, thereby ensuring the accuracy of the time conversion; finally, a conversion method is proposed to first convert the BD time to the simplified Julian day, and then convert the simplified Julian day to the Gregorian calendar time, thereby solving the problem that the BD module cannot provide accurate Gregorian calendar time.
[0057] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the present application.
Claims
1. A method for converting Beidou time to Gregorian calendar time based on BD module, characterized in that: include: responding to a system power-on signal; Acquire BD time data output by a BD data receiver; The BD time data at least includes: BD timing validity and Beidou time information; Determine whether the BD timing validity is displayed as valid, and if so, convert the corresponding simplified Julian day data based on the Beidou time information in the BD time data, thereby calculating the Gregorian calendar time information; The calculated Gregorian calendar time information is transmitted to the computer module.
2. The method for converting Beidou time to Gregorian calendar time based on the BD module according to claim 1, characterized in that: Based on the Beidou time information in the BD time data, the corresponding simplified Julian day data is converted, specifically including: Get the whole week count and the second count in the week in Beidou time information; The simplified Julian day data is calculated according to the whole week count and the second count within the week; the Julian day data is used to represent the time information of the current moment in the historical day number sequence.
3. The method for converting Beidou time to Gregorian calendar time based on the BD module according to claim 1, characterized in that: Calculate the Gregorian calendar time information, including: Based on the simplified Julian day data and the preset conversion parameters, respectively calculating the Gregorian calendar year, month, day, hour, minute and millisecond corresponding to the Gregorian calendar time information; The final Gregorian calendar time information is obtained by respectively calculating the Gregorian calendar year, month, day, hour, minute and millisecond.
4. The method for converting Beidou time to Gregorian calendar time based on the BD module according to claim 3, characterized in that: The conversion parameters at least include: a first time conversion parameter and a second time conversion parameter; Based on the simplified Julian day data and the preset conversion parameters, the Gregorian calendar year, month, day, hour, minute and millisecond corresponding to the Gregorian calendar time information are calculated respectively, specifically including: Acquire first integer data in the simplified Julian day data, and calculate first time conversion median data according to the first time conversion parameter and the first integer data; Calculate the second time conversion median data according to the first time conversion median data and the second time conversion parameter to obtain the initial year; Calculate a first adjustment parameter and a second adjustment parameter according to the first time conversion median data, the second time conversion median data and the second time conversion parameter to obtain a compensation year; Based on the initial year and the compensation year, a Gregorian calendar year is obtained.
5. The method for converting Beidou time to Gregorian calendar time based on the BD module according to claim 4, characterized in that: Based on the simplified Julian day data and the preset conversion parameters, the Gregorian calendar year, month, day, hour, minute and millisecond corresponding to the Gregorian calendar time information are calculated respectively, specifically including: Calculating the annual cumulative day according to the first adjustment parameter and the second adjustment parameter, and determining the third time conversion parameter according to the annual cumulative day; Determining a value of a third adjustment parameter based on the type of the Gregorian calendar year, the accumulated day of the year, and the third time conversion parameter; The Gregorian calendar month and the Gregorian calendar day are calculated according to the value of the third adjustment parameter, the third time conversion parameter and the annual accumulation day.
6. The method for converting Beidou time to Gregorian calendar time based on the BD module according to claim 5, characterized in that: Determining a value of a third adjustment parameter based on the Gregorian calendar year, the annual cumulative day, and the third time conversion parameter specifically includes: Confirming the type of the Gregorian calendar year, and calling the corresponding monthly cumulative days table according to the third time conversion parameter to obtain the corresponding target cumulative days; The monthly cumulative days table includes a leap year monthly cumulative days table and a normal year monthly cumulative days table, and the monthly cumulative days tables for both months include the cumulative days corresponding to each month; Based on the target accumulated days and the annual accumulated days, a value of the third adjustment parameter is obtained.
7. The method for converting Beidou time to Gregorian calendar time based on the BD module according to claim 4, characterized in that: The conversion parameters also include: a plurality of unit conversion parameters related to each other among Gregorian calendar hours, minutes and milliseconds; Based on the simplified Julian day data and the preset conversion parameters, the Gregorian calendar year, month, day, hour, minute and millisecond corresponding to the Gregorian calendar time information are calculated respectively, specifically including: The Gregorian calendar hour, the Gregorian calendar minute and the Gregorian calendar millisecond are calculated respectively according to the simplified Julian day data, the first integer data and the plurality of the unit conversion parameters.
8. The method for converting Beidou time to Gregorian calendar time based on BD module according to claim 1, characterized in that: The BD data receiver is in communication with the BD data acquisition module, and the BD data receiver is connected to a BD antenna for receiving signals sent by Beidou satellites; The BD data acquisition module is also in communication with the computer module via a dual-port RAM.