CN114815574A - System for realizing real-time synchronization of B code - Google Patents

System for realizing real-time synchronization of B code Download PDF

Info

Publication number
CN114815574A
CN114815574A CN202210384521.6A CN202210384521A CN114815574A CN 114815574 A CN114815574 A CN 114815574A CN 202210384521 A CN202210384521 A CN 202210384521A CN 114815574 A CN114815574 A CN 114815574A
Authority
CN
China
Prior art keywords
data
code
real
time synchronization
module
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.)
Pending
Application number
CN202210384521.6A
Other languages
Chinese (zh)
Inventor
李德国
高霄霄
王朝晖
马晓光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Chaoyue Shentai Information Technology Co Ltd
Original Assignee
Xian Chaoyue Shentai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Chaoyue Shentai Information Technology Co Ltd filed Critical Xian Chaoyue Shentai Information Technology Co Ltd
Priority to CN202210384521.6A priority Critical patent/CN114815574A/en
Publication of CN114815574A publication Critical patent/CN114815574A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G7/00Synchronisation

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention provides a system for realizing real-time synchronization of B codes, which belongs to the field of computers and is assisted by a B code generation module, a B code decoding module, a data communication module, a B code decoding module, a synchronous detection module, a real-time synchronization realizing module and the like. The invention has good portability and wide adaptability, provides high-precision and high-stability experience for terminal users, and has good practical effect.

Description

System for realizing real-time synchronization of B code
Technical Field
The invention relates to the field of computers, in particular to a system for realizing real-time synchronization of B codes.
Background
With the rapid development and popularization of computer technology, the application fields are more and more finely divided, meanwhile, the precision requirement is higher and higher, and the details are more and more concerned.
Disclosure of Invention
In order to solve the technical problems, the invention provides a system for realizing the real-time synchronization of the B code, which can be applied to the design of platforms such as X86 and the like, can also be widely applied to domestic platforms such as Loongson, Shenwei, Feiteng and the like, has good transportability and wide adaptability, provides high-precision and high-stability experience for terminal users, and has good practical effect.
The technical scheme of the invention is as follows:
a system for implementing real-time synchronization of B code comprises: a B code generating module, a B code decoding module, a data communication module, a B code decoding module, a synchronous detecting module and a real-time setting realizing module,
1) a B code generation module: a set of B-code symbols generated in accordance with the B-code standard format specification that conforms to the IRIG-B specification,
2) b code decoding module: analyzing and extracting data in the B code generation module to obtain required data code elements, then processing and analyzing, and finally packaging the data according to rules to serve as data transmitted in the data communication module;
3) a data communication module: the function of data transmission is realized, the function of a data transmission channel is mainly completed, and the transmission of the data packaged in the decoding module is realized;
4) b code decoding module: decoding the received data of the data communication module according to a protocol adopted during data encapsulation, wherein the decoding is a reverse process of the decoding module, and the decoded data is used as time synchronization data of the real-time synchronization module;
5) the synchronous detection module: through a detection mechanism, a judgment result is obtained and is used as a basis for whether the real-time synchronization of the B code is carried out or not, and a basis for whether the real-time synchronization is carried out or not is provided for a real-time synchronization implementation module;
6) the real-time synchronization implementation module: and under the requirement that the synchronous detection module determines that synchronous real-time synchronization is needed, the data of the data communication module is synchronously processed in real time to complete the whole process of real-time synchronization of the B code.
Further, in the above-mentioned case,
the B code generation module comprises time data, leap second information, time offset and code element verification, and the leap second information, the time offset and the code element verification are used as a time synchronization standard and a basis in the whole B code real-time synchronization system.
The B code decoding module is used for determining the standards adopted by data to be packaged by two ends of a communication data module, selecting UART or USB or enabling other port protocols to carry out data transmission, and then packaging the data according to determined protocol rules to serve as data source data of the data communication module.
The real-time synchronization provides a basis for the real-time synchronization of the subsequent B code, if the real-time synchronization is not needed, the whole machine default mechanism is used for maintaining the time operation, and if the real-time synchronization is needed, the processing is carried out according to the corresponding process.
The data symbol format follows the IRIG-B specification protocol, and this data information is generated 1 time per 1S.
Further, in the above-mentioned case,
and decoding and packaging the data, decoding the original data of the B code data, extracting the data, and then packaging the effective data according to the protocol of the transmission channel selected by the hardware design, wherein the packaged data is the data to be transmitted and transmitted through the transmission channel.
And the default mechanism maintains time, and when the whole system does not need to carry out real-time synchronization or the whole machine is in a shutdown state, the system time is maintained.
And performing synchronous processing on the decoded data through a time synchronization mechanism under the system or a mode of directly operating an IO port during real-time synchronization, and simultaneously completing the processing of leap seconds and finally completing the real-time synchronization of the B code.
The invention has the advantages that
The invention provides a system for realizing the real-time synchronization of B codes based on the application scene and the application characteristics of the power industry, and the system completely does not need to carry out the design target of additional operation so as to meet the requirement of more and more detailed control precision of the power industry.
The method can be only applied to the design of platforms such as X86 and the like, can also be widely applied to domestic platforms such as Loongson, Shenwei and Feiteng, has good transportability and wide adaptability, provides high-precision and high-stability experience for terminal users, and has good practical effect.
Drawings
FIG. 1 is a schematic workflow diagram of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
The invention mainly aims to provide a system for realizing the real-time synchronization of B codes, which does not need any intervention operation of human action.
A B code generation module: the main function of the module is to define a group of B code elements which are generated according to a B code standard format and conform to IRIG-B specification, wherein the main content of the B code elements comprises data information such as time data, leap second information, time offset, code element check and the like, and the B code elements are used as the time synchronization standard and basis in the whole B code real-time synchronization system and are the most fundamental and standard data sources of the whole real-time synchronization system;
b code decoding module: the module has the main functions of analyzing and extracting data in the B code generation module, acquiring required data code elements, processing and analyzing the data code elements, and finally packaging the data according to rules to serve as data transmitted in the data communication module. The standard adopted by the data to be packaged can be determined by both ends of a communication data module, the determined main basis is that a protocol used is selected to be followed in the communication module, a UART or a USB can be selected usually, and other port protocols can also be used for data transmission, and then the data is packaged according to the determined protocol rule to be used as data source data of the data communication module;
a data communication module: the function module is a data transmission function and mainly plays a role of a data transmission channel to realize the transmission of the data packaged in the decoding module;
b code decoding module: the module mainly decodes the received data of the data communication module according to a protocol adopted during data packaging, and is a reverse process of the decoding module, and the decoded data is used as time synchronization data of the real-time synchronization module;
the synchronous detection module: the module mainly functions to obtain a judgment result through a detection mechanism, and the judgment result is used as a basis for whether the real-time synchronization of the B code is carried out or not and provides a basis for whether the real-time synchronization is carried out or not for the real-time synchronization realization module;
the real-time synchronization implementation module: the module is the key of a mechanism for realizing real-time synchronization of the whole B code, and has the main function that under the condition that the synchronous detection module determines that the synchronous real-time synchronization is required, the data of the data communication module is synchronously processed in real time to complete the real-time synchronization process of the whole B code.
The specific implementation method comprises the following steps:
101: starting;
102: hardware design: the method mainly aims at providing necessary hardware support for the real-time setting of the B code, and mainly comprises hardware design in two aspects, wherein one aspect is to provide a synchronous identifier or mechanism for the pulse per second of the B code, and can select a hardware interrupt or rotation training mode to realize the purpose; secondly, hardware design needs to provide a transmission channel for data transmission, UART or USB can be selected and other port protocols can also provide a channel for data transmission, so that effective, accurate and timely data transmission is guaranteed to play a vital role in realizing functions and precision;
103: electrifying the whole machine: the method has the advantages that the electrification of hardware such as a B code generation module, a whole time synchronization device and the like is completed, the normal function of the hardware of the B code real-time synchronization system is ensured, and the method is a powerful basic guarantee for the real-time synchronization system;
104: whether real-time synchronization is needed: providing a basis for the real-time synchronization of the subsequent B code, if the real-time synchronization is not needed, maintaining the time operation by using a complete machine default mechanism, and if the real-time synchronization is needed, processing according to a corresponding process;
105: b, code data receiving: providing original data of code B real-time synchronization, wherein the data code element format of the original data needs to follow an IRIG-B standard protocol, the data information is generated for 1 time in every 1S, and the data information mainly comprises time data, leap second information, time offset, code element check and other information;
106: data decoding and packaging: decoding the original data of the B code data, extracting effective and accurate data, and then packaging the effective data according to a protocol of a transmission channel selected by hardware design, wherein the packaged data is the data to be transmitted and transmitted through the transmission channel;
107: default mechanism hold time: when the whole system does not need to carry out real-time setting or the whole machine is in a shutdown state, a maintenance mechanism for the system time is adopted;
108: data transmission: providing a data transmission channel, and effectively transmitting required data mainly according to a channel protocol selected by hardware;
109: and (3) data decoding: decoding and restoring the transmitted and packaged data, confirming the validity and accuracy of the transmitted data, and providing accurate and effective time synchronization data for real-time synchronization and processing;
110: and (3) real-time setting: the part has the key and core functions, and mainly carries out synchronous processing on decoded data through a time synchronization mechanism under a system or a mode of directly operating an IO port, simultaneously completes the processing on leap seconds and the like, and finally completes the accurate and effective real-time synchronization of the B code;
111: and (6) ending.
The above description is only a preferred embodiment of the present invention, and is only used to illustrate the technical solutions of the present invention, and not to limit the protection scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (8)

1. A system for implementing real-time synchronization of B code is characterized in that,
the method comprises the following steps: a B code generating module, a B code decoding module, a data communication module, a B code decoding module, a synchronous detecting module and a real-time setting realizing module,
1) a B code generation module: a set of B-code symbols generated in accordance with the B-code standard format specification that conforms to the IRIG-B specification,
2) b code decoding module: analyzing and extracting data in the B code generation module to obtain required data code elements, then processing and analyzing, and finally packaging the data according to rules to serve as data transmitted in the data communication module;
3) a data communication module: the function of data transmission is realized, the function of a data transmission channel is mainly completed, and the transmission of the data packaged in the decoding module is realized;
4) b code decoding module: decoding the received data of the data communication module according to a protocol adopted during data encapsulation, wherein the decoding is a reverse process of the decoding module, and the decoded data is used as time synchronization data of the real-time synchronization module;
5) the synchronous detection module: through a detection mechanism, a judgment result is obtained and is used as a basis for whether the real-time synchronization of the B code is carried out or not, and a basis for whether the real-time synchronization is carried out or not is provided for a real-time synchronization implementation module;
6) the real-time synchronization implementation module: and under the requirement that the synchronous detection module determines that synchronous real-time synchronization is needed, the data of the data communication module is synchronously processed in real time to complete the whole process of real-time synchronization of the B code.
2. The system of claim 1,
the B code generation module comprises time data, leap second information, time offset and code element verification, and the leap second information, the time offset and the code element verification are used as a time synchronization standard and a basis in the whole B code real-time synchronization system.
3. The system of claim 1,
the B code decoding module is used for determining the standards adopted by data to be packaged by two ends of a communication data module, selecting UART or USB or enabling other port protocols to carry out data transmission, and then packaging the data according to determined protocol rules to serve as data source data of the data communication module.
4. The system of claim 1,
the real-time synchronization provides a basis for the real-time synchronization of the subsequent B code, if the real-time synchronization is not needed, the whole machine default mechanism is used for maintaining the time operation, and if the real-time synchronization is needed, the processing is carried out according to the corresponding process.
5. The system of claim 1,
the data symbol format follows the IRIG-B specification protocol, and this data information is generated 1 time per 1S.
6. The system of claim 1,
and decoding and packaging the data, decoding the original data of the B code data, extracting the data, and then packaging the effective data according to the protocol of the transmission channel selected by the hardware design, wherein the packaged data is the data to be transmitted and transmitted through the transmission channel.
7. The system of claim 1,
and the default mechanism maintains time, and when the whole system does not need to carry out real-time synchronization or the whole machine is in a shutdown state, the system time is maintained.
8. The system of claim 1,
and performing synchronous processing on the decoded data through a time synchronization mechanism under the system or a mode of directly operating an IO port during real-time synchronization, and simultaneously completing the processing of leap seconds and finally completing the real-time synchronization of the B code.
CN202210384521.6A 2022-04-13 2022-04-13 System for realizing real-time synchronization of B code Pending CN114815574A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210384521.6A CN114815574A (en) 2022-04-13 2022-04-13 System for realizing real-time synchronization of B code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210384521.6A CN114815574A (en) 2022-04-13 2022-04-13 System for realizing real-time synchronization of B code

Publications (1)

Publication Number Publication Date
CN114815574A true CN114815574A (en) 2022-07-29

Family

ID=82534267

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210384521.6A Pending CN114815574A (en) 2022-04-13 2022-04-13 System for realizing real-time synchronization of B code

Country Status (1)

Country Link
CN (1) CN114815574A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020093295A (en) * 2001-06-08 2002-12-16 주식회사 케이티 Method for synchronizing time data in transfer system
US20050152459A1 (en) * 2004-01-14 2005-07-14 Austin Lobo Decoding method and decoding apparatus
CN101251755A (en) * 2008-03-18 2008-08-27 四方电气(集团)有限公司 Implementing method of SCM system receiving IRIG-B code compare time signal
CN103427842A (en) * 2013-08-07 2013-12-04 上海交通大学 Coding and decoding method and coding and decoding device for high-precision time transfer
CN112994824A (en) * 2021-03-03 2021-06-18 山东山大电力技术股份有限公司 Time synchronization method, device and system for IRIG-B code non-delay transmission

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020093295A (en) * 2001-06-08 2002-12-16 주식회사 케이티 Method for synchronizing time data in transfer system
US20050152459A1 (en) * 2004-01-14 2005-07-14 Austin Lobo Decoding method and decoding apparatus
CN101251755A (en) * 2008-03-18 2008-08-27 四方电气(集团)有限公司 Implementing method of SCM system receiving IRIG-B code compare time signal
CN103427842A (en) * 2013-08-07 2013-12-04 上海交通大学 Coding and decoding method and coding and decoding device for high-precision time transfer
CN112994824A (en) * 2021-03-03 2021-06-18 山东山大电力技术股份有限公司 Time synchronization method, device and system for IRIG-B code non-delay transmission

Similar Documents

Publication Publication Date Title
WO2021218143A1 (en) Data synchronization method and apparatus, and server and storage medium
CN101820346A (en) Secure digital signature method
CN111970353A (en) Data processing method and device for heterogeneous equipment in Internet of things of cloud computing platform
CN111241853B (en) Session translation method, device, storage medium and terminal equipment
CN112685248A (en) Intelligent network card monitoring log obtaining method and device, electronic equipment and storage medium
US20080222463A1 (en) Apparatus, method and product for testing communications components
CN101763477B (en) Signature method of intelligent secret key device
CN114817114A (en) MIPI interface, control method, device and medium thereof
CN106778441A (en) A kind of graph image intelligent identifying system and its recognition methods
CN112861033B (en) Method and device for executing service
CN114815574A (en) System for realizing real-time synchronization of B code
CN105808549B (en) Client method for automatically framing and analyzing frames based on mapping file
CN114357524B (en) Electronic document processing method and device
CN112905464B (en) Application running environment data processing method and device
CN113162628B (en) Data encoding method, data decoding method, terminal and storage medium
CN104615271A (en) Processing method for KVM (Kernel-based Virtual Machine) and processing device for KVM
CN115277193A (en) Beacon modulation method and device and electronic equipment
CN103391291A (en) Codec based on terminal consistency testing system and coding and decoding method
CN111563387B (en) Sentence similarity determining method and device, sentence translating method and device
CN112416843A (en) Backboard communication equipment, control method thereof and storage medium
CN112380828A (en) PDF document generation method and device, storage medium and electronic equipment
CN114330332B (en) Form data processing method and device, electronic equipment and storage medium
CN113179494B (en) Short message-based service handling method and system
Cheng et al. C++ Language Program Implementation of BINEX-Format to RINEX-Format for Trimble Board
CN208459597U (en) A kind of expanding unit of the port GPS based on FPGA

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