CN117675951B - Standard serial time code generation method and system capable of being configured externally - Google Patents
Standard serial time code generation method and system capable of being configured externally Download PDFInfo
- Publication number
- CN117675951B CN117675951B CN202410139096.3A CN202410139096A CN117675951B CN 117675951 B CN117675951 B CN 117675951B CN 202410139096 A CN202410139096 A CN 202410139096A CN 117675951 B CN117675951 B CN 117675951B
- Authority
- CN
- China
- Prior art keywords
- time
- information
- standard
- code
- time code
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 25
- 230000001360 synchronised effect Effects 0.000 claims abstract description 15
- 230000010354 integration Effects 0.000 claims description 13
- 230000015572 biosynthetic process Effects 0.000 claims description 10
- 238000003786 synthesis reaction Methods 0.000 claims description 10
- 230000005540 biological transmission Effects 0.000 claims description 9
- 230000002194 synthesizing effect Effects 0.000 claims description 8
- 238000010586 diagram Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Electric Clocks (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
- Electromechanical Clocks (AREA)
Abstract
The invention relates to the technical field of time service, and provides a method and a system for generating a standard serial time code capable of being configured externally. The method comprises the following steps: acquiring local time keeping time; receiving and demodulating an externally configured standard time code information template to obtain demodulation information and demodulation parameters; according to the demodulation information, synchronizing the local time keeping time with the initial time in the standard time code information template to obtain synchronous time keeping time; generating a standard time code according to the synchronous time keeping time based on the demodulation parameter; and carrying out serial parameter configuration on the standard time code to obtain a standard serial time code, and outputting the standard serial time code according to the demodulation information. The invention realizes the on-line flexible configuration of the standard serial time code, so that the time service of the time system equipment can be flexibly and variously carried out at low cost when the user side is used.
Description
Technical Field
The invention relates to the technical field of time service, in particular to a method and a system for generating a standard serial time code capable of being configured externally.
Background
At present, the standard time information output by most time system devices comprises two independent signals, namely a reference time second pulse (1 PPS) and a standard serial time code (TOD), wherein the standard serial time code TOD also has some standard formats, but in practical application, because of numerous users and diversified demands, a great deal of customization demands still exist, each time the demands change, the standard serial time code cannot be flexibly configured on line, and the time system device software program needs to be updated, thereby causing larger workload and increasing cost.
Disclosure of Invention
The present invention is directed to solving at least one of the technical problems existing in the related art. Therefore, the invention provides a method and a system for generating an externally configurable standard serial time code.
The invention provides a method for generating an externally configurable standard serial time code, which comprises the following steps:
s1: acquiring local time keeping time;
S2: receiving and demodulating an externally configured standard time code information template to obtain demodulation information and demodulation parameters;
s3: according to the demodulation information, synchronizing the local time keeping time with the initial time in the standard time code information template to obtain synchronous time keeping time;
S4: generating a standard time code according to the synchronous time keeping time based on the demodulation parameter;
S5: and carrying out serial parameter configuration on the standard time code to obtain a standard serial time code, and outputting the standard serial time code according to the demodulation information.
According to the method for generating externally configurable standard serial time code provided by the invention, the local time keeping time in step S1 comprises the following steps: second pulse information, local time information, belonging time zone standard time information, second pulse information and local time zone information.
According to the method for generating externally configurable standard serial time code provided by the present invention, the demodulation information in step S2 includes: external initial time information, external time zone information, time zone format information, and transmission time information.
According to the externally configurable standard serial time code generation method provided by the invention, the sending time information is used for controlling the output time of the standard serial time code in the step S5.
According to the externally configurable standard serial time code generating method provided by the invention, the demodulation parameters in step S2 include: standard time code format information, standard time code frame head and tail information, fixed code information, checksum information and serial port configuration information.
According to the externally configurable standard serial time code generation method provided by the invention, the standard time code format information is in an ASCII code format or a BCD code format.
According to the externally configurable standard serial time code generating method provided by the invention, the serial parameters in step S5 include: baud rate information, test information, and stop bit information.
The present invention also provides an externally configurable standard serial time code generating system, configured to perform the externally configurable standard serial time code generating method as set forth in any one of the above, including:
time conservation unit: the method is used for acquiring local time keeping time;
time integration unit: the standard time code information template is used for receiving and demodulating the external configuration to obtain demodulation information and demodulation parameters;
Time synchronization unit: the time integration unit is used for generating demodulation information according to the standard time code information template, and synchronizing the local time keeping time acquired by the time keeping unit with the initial time in the standard time code information template to acquire synchronous time keeping time;
A time code synthesizing unit: the demodulation unit is used for generating a standard time code according to the synchronous time keeping time generated by the time synchronization unit based on the demodulation parameters generated by the time integration unit;
a time output unit: and the serial parameter configuration unit is used for carrying out serial parameter configuration on the standard time code generated by the time code synthesis unit, obtaining the standard serial time code, and outputting the standard serial time code according to the sending time information in the demodulation information.
The method and the system for generating the externally configurable standard serial time code provided by the invention have the advantages of simple realization, good universality and relatively low cost, realize the online flexible configuration of the standard serial time code, meet the customization requirement of the current user on the TOD format of the standard serial time code of most time system equipment, and enable the time system equipment to be time-service with low cost and flexible diversity at the user side in use.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for generating an externally configurable standard serial time code according to the present invention.
Fig. 2 is a schematic diagram of an externally configurable standard serial time code generating system according to the present invention.
Reference numerals:
100. A time keeping unit; 200. a time integration unit; 300. a time synchronization unit; 400. a time code synthesizing unit; 500. and a time output unit.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention. The following examples are illustrative of the invention but are not intended to limit the scope of the invention.
In describing embodiments of the present invention, it should be noted that, unless explicitly stated and limited otherwise, the terms "coupled," "coupled," and "connected" should be construed broadly, and may be either a fixed connection, a removable connection, or an integral connection, for example; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium. The specific meaning of the above terms in embodiments of the present invention will be understood in detail by those of ordinary skill in the art.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the embodiments of the present invention. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Embodiments of the present invention are described below with reference to fig. 1 to 2.
The invention provides a method for generating an externally configurable standard serial time code, which comprises the following steps:
s1: acquiring local time keeping time;
Wherein the local time keeping time in step S1 includes: second pulse information, local time information, belonging time zone standard time information, second pulse information and local time zone information.
Further, first, the local second pulse 1PPS, the beijing time, and the local time are generated by the time keeping unit using the local frequency reference, and this information is output to the time synchronizing unit.
S2: receiving and demodulating an externally configured standard time code information template to obtain demodulation information and demodulation parameters;
Further, the user inputs configuration information through display control software of the time integration unit, the time integration unit obtains external configuration information, then the time integration unit demodulates the external configuration information template according to convention, demodulates the configuration information and outputs the configuration information to the time synchronization unit, the time code synthesis unit and the time output unit, and stores and solidifies the demodulation information in the local storage unit.
Wherein the demodulation information in step S2 includes: external initial time information, external time zone information, time zone format information, and transmission time information.
Further, the time zone format information includes a relative zero time zone, a relative east-eighth time zone, a time zone fixed mode and a time zone gradual change mode.
The sending time information is used for controlling the output time of the standard serial time code in the step S5.
Further, the transmission timing refers to a time interval between the transmission start timing of the reference time code and the rising edge of the second pulse.
Wherein the demodulation parameters in step S2 include: standard time code format information, standard time code frame head and tail information, fixed code information, checksum information and serial port configuration information.
Wherein, the standard time code format information is ASCII code format or BCD code format.
S3: according to the demodulation information, synchronizing the local time keeping time with the initial time in the standard time code information template to obtain synchronous time keeping time;
Further, the local time keeping time and the demodulated external configuration initial time are synchronized with the Beijing time, the local time, the demodulation initial time information and the time zone information through the time synchronizing unit, if the initial time information and the time zone information are not configured, the current local time keeping time is kept unchanged, and the synchronized time information is output to the time code synthesizing unit.
S4: generating a standard time code according to the synchronous time keeping time based on the demodulation parameter;
Furthermore, the time code synthesizing unit completes frame format determination, frame header content, frame fixed content and position, time content position, time zone mode, checksum content and position, frame tail and content according to the demodulation parameters, and simultaneously adds the time information output by the time synchronizing unit to the time and time zone position to complete synthesis of the standard serial time code.
S5: and carrying out serial parameter configuration on the standard time code to obtain a standard serial time code, and outputting the standard serial time code according to the demodulation information.
Furthermore, the time output unit completes the configuration of the baud rate, the check form and the stop bit parameter of the standard time code according to the demodulation parameters, and according to the demodulated transmission time, the accurate timing of the output second pulse and the transmission time is realized by the FPGA through a counter mode, and finally the output of the standard serial time code is completed.
Wherein the serial parameters in step S5 include: baud rate information, test information, and stop bit information.
The present invention also provides an externally configurable standard serial time code generating system, configured to perform the externally configurable standard serial time code generating method as set forth in any one of the above, including:
Time conservation unit 100: the method is used for acquiring local time keeping time;
time integration unit 200: the standard time code information template is used for receiving and demodulating the external configuration to obtain demodulation information and demodulation parameters;
time synchronization unit 300: the method is used for synchronizing the local time keeping time acquired by the time keeping unit 100 with the initial time in the standard time code information template according to the demodulation information generated by the time integration unit 200 to acquire synchronous time keeping time;
time code synthesizing section 400: for generating a standard time code according to the synchronization time keeping time generated by the time synchronization unit 300 based on the demodulation parameters generated by the time integration unit 200;
Time output unit 500: the serial parameter configuration is used for carrying out serial parameter configuration on the standard time code generated by the time code synthesis unit 400, obtaining the standard serial time code, and outputting the standard serial time code according to the sending time information in the demodulation information.
Further, as shown in fig. 2, the externally configurable standard serial time code generating system provided in the embodiment of the present invention includes a time keeping unit 100, a time integrating unit 200, a time synchronizing unit 300, a time code synthesizing unit 400, and a time output unit 500.
The time keeping unit comprises a reference frequency device and an FPGA circuit, the time code synthesis unit, the time synchronization unit and the time output unit are realized by executing corresponding software by the FPGA circuit of the time keeping unit, the FPGA circuit has good instantaneity, and the high precision of synthesizing and controlling serial time codes can be ensured.
In this embodiment, after the user configures the time standard serial time code through the display control software of the time synthesis unit, the time synthesis unit demodulates the user instruction into configuration template information, and then outputs the configuration template information to the FPGA circuit, and the time keeping unit divides the standard frequency output by the reference frequency device to generate a local time keeping time, so as to provide a time reference for the time synchronization unit; the time synchronization unit completes time synchronization according to the demodulated initial time information and time zone information, and outputs the information to the time code synthesis unit, and the time code synthesis unit completes generation of a local standard serial time code according to demodulation parameters and outputs the local standard serial time code to the time output unit; and the time output unit completes serial parameter configuration of the standard time code according to the demodulation parameters, and finally completes output according to the demodulated transmission time control.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (3)
1. An externally configurable standard serial time code generation method, comprising:
s1: acquiring local time keeping time;
wherein the local time keeping time comprises: second pulse information, local time information, belonging time zone standard time information and local time zone information;
S2: receiving and demodulating an externally configured standard time code information template to obtain demodulation information and demodulation parameters;
Wherein the demodulation information includes: external initial time information, external time zone information, time zone format information and transmission time information, wherein the transmission time information is used for controlling the output time of the standard serial time code in the step S5;
The demodulation parameters include: standard time code format information, standard time code frame head and tail information, fixed code information, checksum information and serial port configuration information;
s3: according to the demodulation information, synchronizing the local time keeping time with the initial time in the standard time code information template to obtain synchronous time keeping time;
S4: generating a standard time code according to the synchronous time keeping time based on the demodulation parameter;
S5: serial parameter configuration is carried out on the standard time code, so that a standard serial time code is obtained, and the standard serial time code is output according to the demodulation information;
Wherein the serial parameters include: baud rate information, test information, and stop bit information.
2. The method for generating externally configurable standard serial time code according to claim 1, wherein the standard time code format information is ASCII code format or BCD code format.
3. An externally configurable standard serial time code generation system for performing the externally configurable standard serial time code generation method according to any one of claims 1 to 2, comprising:
time conservation unit: the method is used for acquiring local time keeping time;
time integration unit: the standard time code information template is used for receiving and demodulating the external configuration to obtain demodulation information and demodulation parameters;
Time synchronization unit: the time integration unit is used for generating demodulation information according to the standard time code information template, and synchronizing the local time keeping time acquired by the time keeping unit with the initial time in the standard time code information template to acquire synchronous time keeping time;
A time code synthesizing unit: the demodulation unit is used for generating a standard time code according to the synchronous time keeping time generated by the time synchronization unit based on the demodulation parameters generated by the time integration unit;
a time output unit: and the serial parameter configuration unit is used for carrying out serial parameter configuration on the standard time code generated by the time code synthesis unit, obtaining the standard serial time code, and outputting the standard serial time code according to the sending time information in the demodulation information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410139096.3A CN117675951B (en) | 2024-02-01 | 2024-02-01 | Standard serial time code generation method and system capable of being configured externally |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410139096.3A CN117675951B (en) | 2024-02-01 | 2024-02-01 | Standard serial time code generation method and system capable of being configured externally |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117675951A CN117675951A (en) | 2024-03-08 |
CN117675951B true CN117675951B (en) | 2024-05-10 |
Family
ID=90077293
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410139096.3A Active CN117675951B (en) | 2024-02-01 | 2024-02-01 | Standard serial time code generation method and system capable of being configured externally |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117675951B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1675953A (en) * | 2002-06-14 | 2005-09-28 | 美国电话及电报无线服务公司 | Location determining system for wireless network and associated methods |
CN102253638A (en) * | 2011-08-12 | 2011-11-23 | 北京电子工程总体研究所 | Frequency stability control and compensation method for automatically keeping time in complex environment |
CN104297593A (en) * | 2014-10-13 | 2015-01-21 | 国家电网公司 | Punctuality error detection method for intelligent substation merging unit |
CN104808481A (en) * | 2015-05-14 | 2015-07-29 | 昆山市工业技术研究院有限责任公司 | Beidou and GPS (Global Positioning System) dual-mode timing embedded time synchronization equipment and software design method |
CN107454028A (en) * | 2017-08-11 | 2017-12-08 | 成都理工大学 | LiFi signal demodulating methods and demodulator based on FPGA |
CN109324500A (en) * | 2017-07-28 | 2019-02-12 | 北京电子工程总体研究所 | A kind of high-precision is kept time equipment and the method using equipment progress auto time determination |
CN112235862A (en) * | 2020-10-12 | 2021-01-15 | 江苏亨鑫众联通信技术有限公司 | Wireless network networking system and data transmission method and synchronization method thereof |
CN113824522A (en) * | 2021-09-18 | 2021-12-21 | 上海航天电子通讯设备研究所 | Time correcting system based on VDE satellite-ship synchronous communication system |
CN117311130A (en) * | 2023-09-27 | 2023-12-29 | 小华半导体有限公司 | Synchronous time keeping module based on FPGA and constant temperature crystal oscillator |
-
2024
- 2024-02-01 CN CN202410139096.3A patent/CN117675951B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1675953A (en) * | 2002-06-14 | 2005-09-28 | 美国电话及电报无线服务公司 | Location determining system for wireless network and associated methods |
CN102253638A (en) * | 2011-08-12 | 2011-11-23 | 北京电子工程总体研究所 | Frequency stability control and compensation method for automatically keeping time in complex environment |
CN104297593A (en) * | 2014-10-13 | 2015-01-21 | 国家电网公司 | Punctuality error detection method for intelligent substation merging unit |
CN104808481A (en) * | 2015-05-14 | 2015-07-29 | 昆山市工业技术研究院有限责任公司 | Beidou and GPS (Global Positioning System) dual-mode timing embedded time synchronization equipment and software design method |
CN109324500A (en) * | 2017-07-28 | 2019-02-12 | 北京电子工程总体研究所 | A kind of high-precision is kept time equipment and the method using equipment progress auto time determination |
CN107454028A (en) * | 2017-08-11 | 2017-12-08 | 成都理工大学 | LiFi signal demodulating methods and demodulator based on FPGA |
CN112235862A (en) * | 2020-10-12 | 2021-01-15 | 江苏亨鑫众联通信技术有限公司 | Wireless network networking system and data transmission method and synchronization method thereof |
CN113824522A (en) * | 2021-09-18 | 2021-12-21 | 上海航天电子通讯设备研究所 | Time correcting system based on VDE satellite-ship synchronous communication system |
CN117311130A (en) * | 2023-09-27 | 2023-12-29 | 小华半导体有限公司 | Synchronous time keeping module based on FPGA and constant temperature crystal oscillator |
Non-Patent Citations (4)
Title |
---|
测试场时统设备误差分析及处理技术;胡晓鸣;何占雄;;现代电子技术;20141201(第23期);全文 * |
白崇延 ; 邢卓异 ; 张伍 ; 黄昊 ; 朱舜杰 ; .航天器多子网时间同步***设计与验证.航天器工程.2018,(第02期),全文. * |
罗显翔.《中国硕士期刊全文库》.2023,全文. * |
航天器多子网时间同步***设计与验证;白崇延;邢卓异;张伍;黄昊;朱舜杰;;航天器工程;20180415(第02期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN117675951A (en) | 2024-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107682925B (en) | A kind of determination method and device of access time | |
CN107037722A (en) | A kind of time terminal | |
CN117675951B (en) | Standard serial time code generation method and system capable of being configured externally | |
CN111106870B (en) | Super-long-distance dual-fiber interconnected multistage optical fiber time frequency transmission system | |
CN207884639U (en) | A kind of network node, temporal noise transmission characteristic measuring device and synchronous communication network | |
CN104378548B (en) | A kind of space multi-spectral imaging instrument video circuit system | |
EP1148643B1 (en) | Radio communication apparatus and radio frequency correcting method | |
CN108601080A (en) | A kind of time synchronizing signal transmission method and device based on wireless communication | |
CN100586055C (en) | Clock transmission apparatus for performing network synchronization of systems | |
CN203912045U (en) | Digital forwarding relay modem self-adaptive to a variety of modulation modes | |
CN108667546B (en) | A kind of soft-lock phase method moving fuzzy self-adaption in small base station equipment | |
CN101557231A (en) | Control method for frequency synthesis source of transceiver and control module thereof | |
CN212486525U (en) | Wide-area synchronous tester for intelligent substation | |
CN107222859A (en) | A kind of method and device of equipment networking | |
CN213181675U (en) | Three-phase digital display meter equipment and three-phase digital display meter system | |
JP6819091B2 (en) | Communication devices, electronic clocks, communication methods and programs | |
CN114337708A (en) | Data transmission circuit, method and chip | |
CN101502036A (en) | Semiconductor integrated circuit and transmitter apparatus having the same | |
WO2018064167A1 (en) | Improvements to iec 61968-9:2013 schemas for a utility system's communications | |
JP2009033445A (en) | Receiving device and its method | |
CN207010886U (en) | Wide-area synchronous clock tester | |
CN111338204A (en) | Decentralized integrated atomic time system and establishing method thereof | |
CN104716967A (en) | Short-wave communication assisting frequency selection equipment | |
WO2023218900A1 (en) | Communication device, communication device control method, and program | |
CN220254504U (en) | Generating device of frequency hopping signal source |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |