CN115065435A - PCIe interface password card with high-precision time service function - Google Patents

PCIe interface password card with high-precision time service function Download PDF

Info

Publication number
CN115065435A
CN115065435A CN202210318116.4A CN202210318116A CN115065435A CN 115065435 A CN115065435 A CN 115065435A CN 202210318116 A CN202210318116 A CN 202210318116A CN 115065435 A CN115065435 A CN 115065435A
Authority
CN
China
Prior art keywords
time
signal
satellite
interface
ntp
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.)
Granted
Application number
CN202210318116.4A
Other languages
Chinese (zh)
Other versions
CN115065435B (en
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.)
Zhongan Yunke Technology Development Shandong Co ltd
Original Assignee
Zhongan Yunke Technology Development Shandong 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 Zhongan Yunke Technology Development Shandong Co ltd filed Critical Zhongan Yunke Technology Development Shandong Co ltd
Priority to CN202210318116.4A priority Critical patent/CN115065435B/en
Publication of CN115065435A publication Critical patent/CN115065435A/en
Application granted granted Critical
Publication of CN115065435B publication Critical patent/CN115065435B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • H04J3/0667Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0644External master-clock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0643Hash functions, e.g. MD5, SHA, HMAC or f9 MAC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0869Generation of secret information including derivation or calculation of cryptographic keys or passwords involving random numbers or seeds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/12Details relating to cryptographic hardware or logic circuitry

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Power Engineering (AREA)
  • Electric Clocks (AREA)

Abstract

The invention relates to the technical field of cipher card time service, in particular to a PCIe interface cipher card with a high-precision time service function, wherein a time service system model comprises a signal layer, a control layer and an interface layer; wherein: the signal layer comprises a secret key generator, a 4G antenna, an NTP server, an RTC time-keeping controller and a satellite antenna; the control layer comprises a data encryption processing module, a 4G signal acquisition device, a time signal resolver, a time master controller, a satellite time signal resolver, an interrupt processor and a satellite signal acquisition device; the interface layer includes a PCI-ex1 interface, interface drivers, and a PC/server. The design of the invention integrates time service and encryption functions, and the invention is connected with a PC/server through a PCI-e slot, thereby having high transmission efficiency and good compatibility; the system can support various time sources such as satellite signals, 4G-LTE signals, NTP signals and the like, can automatically switch according to the signal intensity, ensures the time accuracy and meets diversified use scenes; the PCIex1 interface is used for transmitting data in a point-to-point mode, and the transmission rate is effectively improved.

Description

一种具有高精度授时功能的PCIe接口密码卡A PCIe interface password card with high-precision timing function

技术领域technical field

本发明涉及密码卡授时技术领域,具体地说,涉及一种具有高精度授时功能的PCIe 接口密码卡。The invention relates to the technical field of cipher card timing, in particular to a PCIe interface cipher card with a high-precision timing function.

背景技术Background technique

商用密码是我国密码体系的重要组成部分,用于保护商业化数据信息。商用密码的应用直接关系到网络安全、经济安全、国家安全,直接关系到每位公民和社会组织的切身利益。当下,智能化、数字化、网络化深入发展,各种应用系统对商用密码安全的需求越来越高。特别是随着智能家居、云计算、移动互联、大数据等新兴技术的发展,对密码软件、芯片、密码模块、密码板卡、密码系统等技术的需求也越来越迫切。Commercial encryption is an important part of my country's encryption system and is used to protect commercial data information. The application of commercial cryptography is directly related to network security, economic security, national security, and the vital interests of every citizen and social organization. At present, with the in-depth development of intelligence, digitization, and networking, various application systems have higher and higher requirements for commercial cryptographic security. Especially with the development of smart home, cloud computing, mobile internet, big data and other emerging technologies, the demand for cryptographic software, chips, cryptographic modules, cryptographic boards, cryptographic systems and other technologies is becoming more and more urgent.

通讯速率方面,过去的十几年中PCI总线在嵌入式领域得到了广泛的应用,但由于P CI总线的并行特性,基于PCI总线的通讯方案受数据吞吐量和带宽的限制,已经逐渐达到瓶颈。PCIe总线标准凭借高效的串行传输特性和更高的传输速率、独享带宽等优点,一经推出便得到迅速发展,并逐步取代PCI总线。计算机主板接口方面,PCIe插槽是主板的主要扩展插槽,通过插接不同的扩展卡可以获得计算机能实现的几乎所有功能,如声卡、网卡、显卡、USB扩展卡、视频采集卡等种类繁多的扩展卡。正因“万能”的兼容特性,导致计算机主板上PCIe插槽往往一槽难求。In terms of communication speed, the PCI bus has been widely used in the embedded field in the past ten years. However, due to the parallel characteristics of the PCI bus, the communication scheme based on the PCI bus is limited by data throughput and bandwidth, and has gradually reached a bottleneck. . With the advantages of efficient serial transmission characteristics, higher transmission rate, and exclusive bandwidth, the PCIe bus standard has developed rapidly once it was launched, and gradually replaced the PCI bus. In terms of the computer motherboard interface, the PCIe slot is the main expansion slot of the motherboard. By plugging in different expansion cards, almost all functions that the computer can achieve, such as sound cards, network cards, graphics cards, USB expansion cards, video capture cards, etc. expansion card. Because of the "universal" compatibility feature, PCIe slots on computer motherboards are often hard to find.

在此背景下,基于新一代Soc网络终端安全芯片的密码板卡应运而生,该板卡支持S M4、AES、DES等对称加密算法,支持SM2、RSA等椭圆曲线公钥密码算法,同时支持SM3、SHA1、SHA224、SHA256等HASH算法,各算法之间互相独立,并通过PCIe+USB的方案来满足网络系统密码计算量大、实时性高的要求。授时密码卡集授时、密码计算于一体,仅需一个PCIe接口,既能兼容密码算法性能,又可满足授时需求。在实际应用中,高精度的系统时间和密码技术相得益彰,当前计算机系统时间基本由网络时间或者主板时钟芯片提供,极易导致时间误差大、精度低,在数据测量、工业控制等领域无法完成特定任务。至此,研发一款既能满足高效商用密码计算,又能提供高精度时间的组合型授时密码卡势在必行。鉴于此,我们提出了一种具有高精度授时功能的PCIe接口密码卡。In this context, a new generation of Soc network terminal security chip based cryptographic board came into being. The board supports symmetric encryption algorithms such as SM4, AES, DES, and elliptic curve public key cryptography algorithms such as SM2 and RSA. SM3, SHA1, SHA224, SHA256 and other HASH algorithms are independent of each other, and the PCIe+USB scheme is used to meet the requirements of large amount of cryptographic computation and high real-time performance in network systems. The time service password card integrates time service and password calculation, and only needs one PCIe interface, which is not only compatible with the performance of the encryption algorithm, but also meets the timing requirements. In practical applications, high-precision system time and encryption technology complement each other. The current computer system time is basically provided by the network time or the motherboard clock chip, which can easily lead to large time errors and low precision. Task. So far, it is imperative to develop a combined timing cipher card that can not only meet efficient commercial cipher calculations, but also provide high-precision time. In view of this, we propose a PCIe interface password card with high-precision timing function.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于提供了一种具有高精度授时功能的PCIe接口密码卡,以解决上述背景技术中提出的问题。The purpose of the present invention is to provide a PCIe interface password card with a high-precision timing function, so as to solve the above-mentioned problems in the background art.

为实现上述技术问题的解决,本发明的目的之一在于,提供了一种具有高精度授时功能的PCIe接口密码卡,其授时系统模型包括信号层、控制层和接口层三部分;所述信号层、所述控制层和所述接口层依次通信连接;其中:In order to solve the above-mentioned technical problems, one of the purposes of the present invention is to provide a PCIe interface cipher card with a high-precision timing function, and its timing system model includes three parts: a signal layer, a control layer and an interface layer; the signal layer, the control layer and the interface layer are sequentially connected in communication; wherein:

所述信号层包括秘钥生成器、4G天线、NTP服务器、RTC守时控制器和卫星天线;The signal layer includes a key generator, a 4G antenna, an NTP server, an RTC timing controller and a satellite antenna;

所述控制层包括数据加密处理模块、4G信号采集装置、时间信号解析器、时间主控器、卫星时间信号解析器、中断处理器和卫星信号采集装置;The control layer includes a data encryption processing module, a 4G signal acquisition device, a time signal analyzer, a time master controller, a satellite time signal analyzer, an interrupt processor and a satellite signal acquisition device;

所述接口层包括PCI-e x1接口、接口驱动和PC机/服务器。The interface layer includes a PCI-e x1 interface, an interface driver and a PC/server.

作为本技术方案的进一步改进,所述秘钥生成器、所述4G天线、所述NTP服务器、所述RTC守时控制器与所述卫星天线并列运行;其中:As a further improvement of this technical solution, the key generator, the 4G antenna, the NTP server, the RTC timing controller and the satellite antenna run in parallel; wherein:

所述秘钥生成器连接所述数据加密处理模块,用于生成和存储数据加密过程中用到的加解密秘钥;The key generator is connected to the data encryption processing module for generating and storing the encryption and decryption keys used in the data encryption process;

所述4G天线连接所述4G信号采集装置,用于获取运营商基站时间,并向下兼容,若4G信号弱自动则切换为3G、2G基站;The 4G antenna is connected to the 4G signal acquisition device, used to obtain the time of the operator's base station, and is backward compatible. If the 4G signal is weak, it will automatically switch to 3G and 2G base stations;

所述RTC守时控制器连接所述时间主控器,用于将时间信息或1pps脉冲信号传输至所述时间主控器;The RTC timing controller is connected to the time master for transmitting time information or a 1pps pulse signal to the time master;

所述卫星天线连接所述卫星信号采集装置,用于接收卫星信号。The satellite antenna is connected to the satellite signal acquisition device for receiving satellite signals.

作为本技术方案的进一步改进,所述RTC守时控制器使用温补晶振,具有高精度,其在外部时钟源无效时仍可提供高精度授时服务。As a further improvement of the technical solution, the RTC timing controller uses a temperature-compensated crystal oscillator, which has high precision, and can still provide high-precision timing services when the external clock source is invalid.

作为本技术方案的进一步改进,所述数据加密处理模块独立运行,所述4G信号采集装置、所述时间信号解析器与所述时间主控器依次通信连接,所述卫星信号采集装置分别通过并列运行的所述卫星时间信号解析器、所述中断处理器与所述时间主控器通信连接;其中:As a further improvement of this technical solution, the data encryption processing module operates independently, the 4G signal acquisition device, the time signal analyzer and the time master are connected in sequence for communication, and the satellite signal acquisition device is connected through parallel The running satellite time signal parser and the interrupt handler are connected in communication with the time master; wherein:

所述数据加密处理模块连接到所述PCI-e接口,用于和所述PC机/服务器之间的数据流透传;The data encryption processing module is connected to the PCI-e interface for transparent transmission of data streams with the PC/server;

所述时间信号解析器通过GPRS连接NTP服务器,用于获取网络时间;The time signal parser is connected to the NTP server through GPRS for obtaining network time;

所述时间主控器连接到所述PCI-e接口,用于和所述PC机/服务器之间的时间报文/ 控制命令的传输;The time master is connected to the PCI-e interface for transmission of time messages/control commands with the PC/server;

所述卫星时间信号解析器连接所述卫星信号采集装置,所述卫星信号采集装置将卫星信号转换为NMEA协议数据包,并通过所述卫星时间信号解析器用串口方式输出时间报文;The satellite time signal analyzer is connected to the satellite signal acquisition device, and the satellite signal acquisition device converts the satellite signal into an NMEA protocol data packet, and outputs a time message in a serial port mode through the satellite time signal analyzer;

所述中断处理器与所述卫星信号采集装置连接,所述中断处理器接收所述卫星信号采集装置输出的1pps脉冲信号。The interrupt processor is connected to the satellite signal acquisition device, and the interrupt processor receives the 1pps pulse signal output by the satellite signal acquisition device.

作为本技术方案的进一步改进,所述数据加密处理模块的核心是一组数据加解密算法子模块;其中,算法子模块包含SM2、RSA等椭圆曲线公钥密码算法,SM4、AES、DES等对称加密算法,SM3、SHA1、SHA224、SHA256等HASH算法,且各算法之间互相独立。As a further improvement of this technical solution, the core of the data encryption processing module is a set of data encryption and decryption algorithm sub-modules; wherein, the algorithm sub-modules include elliptic curve public key cryptographic algorithms such as SM2 and RSA, and symmetric symmetric algorithms such as SM4, AES, and DES. Encryption algorithm, SM3, SHA1, SHA224, SHA256 and other HASH algorithms, and each algorithm is independent of each other.

作为本技术方案的进一步改进,所述时间主控器为授时系统模型的核心,其通过4G-LTE、卫星、NTP三种时间信号源,获取不同场景下的时间信息,用于同步密码卡内的时间,并可根据时间源信号强度进行自动切换。As a further improvement of this technical solution, the time master is the core of the timing system model, which obtains time information in different scenarios through three time signal sources, 4G-LTE, satellite, and NTP, and is used to synchronize the time information in the password card. time, and can automatically switch according to the signal strength of the time source.

作为本技术方案的进一步改进,所述时间主控器通过独立工作的时间源满足多元化使用场景,各不同场景的时间源部署方案为:As a further improvement of this technical solution, the time master can satisfy diversified usage scenarios through independently working time sources, and the time source deployment solutions for different scenarios are as follows:

在不方便部署卫星天线到室外的网络通讯机房内,可以将4G天线布置于室内,使用 4G-LTE/NTP时间源,完全消除雷电天气对设备的破坏;In the network communication room where it is inconvenient to deploy satellite antennas outdoors, 4G antennas can be placed indoors, and 4G-LTE/NTP time sources can be used to completely eliminate the damage to equipment caused by lightning weather;

在使用GPS/北斗卫星信号时,可达到微秒级授时精度;When using GPS/Beidou satellite signals, it can reach microsecond-level timing accuracy;

通过内置高精度守时时钟源即RTC守时控制器,使用温补晶振,在外部时钟源无效时仍可提供高精度授时服务。Through the built-in high-precision punctual clock source, namely the RTC punctual controller, using a temperature-compensated crystal oscillator, it can still provide high-precision timing services when the external clock source is invalid.

作为本技术方案的进一步改进,所述时间主控器根据时间源信号强度进行自动切换的具体方法包括如下:As a further improvement of this technical solution, the specific method for the time master to automatically switch according to the signal strength of the time source includes the following:

预先设定间隔特定时间(例如10min)轮巡卫星信号、LTE信号、NTP信号的强度,优先级按照卫星信号>NTP信号>LTE信号的顺序;具体为:Pre-set the intensity of patrol satellite signals, LTE signals, and NTP signals at specific intervals (for example, 10 minutes), and the priority is in the order of satellite signals > NTP signals > LTE signals; specifically:

A、卫星信号对卫星天线的放置方向、空旷与否有较强联系,当天线放置于室内、楼宇间等较强遮挡的环境时,卫星模块往往不能识别到有效信号,当强度太弱或者时间数据有误时,当前时间源会切换为次优先级并处于有效状态的信号源;A. The satellite signal has a strong relationship with the placement direction of the satellite antenna and whether it is open or not. When the antenna is placed in a strongly occluded environment such as indoors or between buildings, the satellite module often cannot identify effective signals. When the intensity is too weak or the time When the data is incorrect, the current time source will be switched to the signal source with the next priority and is in a valid state;

B、NTP信号下,每次轮巡阿里云、国家授时中心、中国香港天文台、美国标准技术研究所、中国科技大学等的授时服务器,每次轮巡后按照不同服务器信号稳定性记录权值,当权值超出设定值后,不再从该服务器获取时间;以此筛选出不同地域、不同网络环境下最优NTP 时间服务器;若NTP下无法提供有效时间或者无法连接有效服务器,当前时间源会切换为处于有效状态的信号源;在此条件下,若轮巡结果中卫星信号有效后,可打断NTP信号源,切换为卫星信号源;B. Under the NTP signal, the timing servers of Alibaba Cloud, the National Time Service Center, the Hong Kong Observatory of China, the American Institute of Standards and Technology, the University of Science and Technology of China, etc. are patrolled each time, and the weights are recorded according to the signal stability of different servers after each patrol. When the weight exceeds the set value, the time will no longer be obtained from the server; in this way, the optimal NTP time server in different regions and different network environments will be screened; It will be switched to the active signal source; under this condition, if the satellite signal is valid in the patrol result, the NTP signal source can be interrupted and switched to the satellite signal source;

C、LTE信号下的时间一般来源于设备周围运营商基站时间;若设备无法连接基站或者基站提供的时间无效时,当前时间源会切换为处于有效状态的信号源;在此条件下,若轮巡结果中卫星信号或NTP信号有效后,可打断LTE信号源,切换为高优先级信号源;C. The time under the LTE signal generally comes from the time of the operator's base station around the device; if the device cannot connect to the base station or the time provided by the base station is invalid, the current time source will be switched to the signal source in the valid state; under this condition, if the round After the satellite signal or NTP signal is valid in the patrol result, the LTE signal source can be interrupted and switched to the high-priority signal source;

D、若以上3种信号都无效,板卡使用内置的RTC守时控制器运行时间,该控制器内置温补晶振,仍可稳定提供可靠时间,年误差小于±0.4秒。D. If the above three signals are invalid, the board uses the built-in RTC timing controller to run the time. The controller has a built-in temperature compensated crystal oscillator, which can still provide reliable time stably, and the annual error is less than ±0.4 seconds.

作为本技术方案的进一步改进,所述PCI-e x1接口、所述接口驱动与所述PC机/服务器依次通过通信连接;其中:As a further improvement of this technical solution, the PCI-e x1 interface, the interface driver and the PC/server are sequentially connected through communication; wherein:

所述PCI-e x1接口连接所述控制层的各模块,从不同时间源获取相应的时间信号,并通过所述接口驱动,实现通过不同接口方式与不同的所述PC机/服务器连接,从而实现时间数据流、时间报文/控制命令的传输。The PCI-e x1 interface is connected to each module of the control layer, obtains corresponding time signals from different time sources, and is driven by the interface to realize connection with different PCs/servers through different interface methods, thereby Realize the transmission of time data stream, time message/control command.

所述PCI-e x1接口兼容x2、x4、x8、x16以及更高速的x32;所述PCI-e x1接口通过USB的方式分别与密码卡的密码功能和授时功能连接,使用PCIe+USB的通讯方案,采用串行互联方式,以点对点的形式进行数据传输,每个设备可以单独享用带宽。The PCI-e x1 interface is compatible with x2, x4, x8, x16 and higher-speed x32; the PCI-e x1 interface is connected to the password function and timing function of the password card through USB, and uses PCIe+USB communication The scheme adopts the serial interconnection method to carry out data transmission in the form of point-to-point, and each device can enjoy the bandwidth independently.

本发明的目的之二在于,提供了一种PCIe接口密码卡授时系统运行平台装置,包括处理器、存储器以及存储在存储器中并在处理器上运行的计算机程序,处理器用于执行计算机程序时实现上述任一的具有高精度授时功能的PCIe接口密码卡。Another object of the present invention is to provide a PCIe interface password card timing system operating platform device, including a processor, a memory, and a computer program stored in the memory and running on the processor, and the processor is used to execute the computer program. Any of the above-mentioned PCIe interface password cards with high-precision timing function.

本发明的目的之三在于,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述任一的具有高精度授时功能的PCIe接口密码卡。The third object of the present invention is to provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any one of the above-mentioned high-precision timing functions can be realized. PCIe interface password card.

与现有技术相比,本发明的有益效果:Compared with the prior art, the beneficial effects of the present invention:

1.该具有高精度授时功能的PCIe接口密码卡可以融合授时与加密功能于一体,与PC/ 服务器通过PCI-e插槽连接,传输效率高、兼容性更好;1. The PCIe interface password card with high-precision timing function can integrate timing and encryption functions, and is connected with PC/server through PCI-e slot, with high transmission efficiency and better compatibility;

2.该具有高精度授时功能的PCIe接口密码卡可以支持北斗/GPS双模卫星信号、4G-LTE 信号、NTP信号等多种时间源,内部自主时间源管理,通过间隔特定时间轮巡卫星信号、 LTE信号、NTP信号强度,优先级按照卫星信号>NTP信号>LTE信号的顺序的方法,可根据时间源信号强度自动切换,保证时间准确性,且各时间源可独立工作,满足多元化使用场景;2. The PCIe interface password card with high-precision timing function can support BeiDou/GPS dual-mode satellite signals, 4G-LTE signals, NTP signals and other time sources, with internal autonomous time source management, and patrol satellite signals at specific time intervals. , LTE signal, NTP signal strength, priority according to the order of satellite signal > NTP signal > LTE signal, it can be automatically switched according to the signal strength of the time source to ensure the accuracy of time, and each time source can work independently to meet diversified use Scenes;

3.该具有高精度授时功能的PCIe接口密码卡使用PCIe x1接口,兼容x2、x4、x8、x16以及更高速的x32,使用PCIe+USB的通讯方案,采用串行互联方式,以点对点的形式进行数据传输,每个设备都可以单独的享用带宽,有效提高传输速率。3. The PCIe interface password card with high-precision timing function uses PCIe x1 interface, compatible with x2, x4, x8, x16 and higher-speed x32, uses PCIe+USB communication scheme, adopts serial interconnection, in the form of point-to-point For data transmission, each device can enjoy the bandwidth independently, effectively improving the transmission rate.

附图说明Description of drawings

图1为本发明中密码卡的授时系统模型的整体架构框图;Fig. 1 is the overall framework block diagram of the timing system model of cipher card in the present invention;

图2为本发明中密码卡的局部结构模块框图;Fig. 2 is the partial structure module block diagram of cipher card among the present invention;

图3为本发明中示例性的电子计算机平台装置结构示意图。FIG. 3 is a schematic structural diagram of an exemplary electronic computer platform device in the present invention.

图中各个标号意义为:The meanings of the symbols in the figure are:

1、信号层;11、秘钥生成器;12、4G天线;13、NTP服务器;14、RTC守时控制器; 15、卫星天线;1. Signal layer; 11. Key generator; 12. 4G antenna; 13. NTP server; 14. RTC timing controller; 15. Satellite antenna;

2、控制层;21、数据加密处理模块;22、4G信号采集装置;23、时间信号解析器; 24、时间主控器;25、卫星时间信号解析器;26、中断处理器;27、卫星信号采集装置;2. Control layer; 21. Data encryption processing module; 22. 4G signal acquisition device; 23. Time signal analyzer; 24. Time master; 25. Satellite time signal analyzer; 26. Interrupt processor; 27. Satellite signal acquisition device;

3、接口层;31、PCI-e x1接口;32、接口驱动;33、PC机/服务器。3. Interface layer; 31. PCI-e x1 interface; 32. Interface driver; 33. PC/server.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

实施例1Example 1

如图1-3所示,本实施例提供了一种具有高精度授时功能的PCIe接口密码卡,其授时系统模型包括信号层1、控制层2和接口层3三部分;信号层1、控制层2和接口层3 依次通信连接;其中:As shown in Figure 1-3, this embodiment provides a PCIe interface password card with high-precision timing function. The timing system model includes three parts: signal layer 1, control layer 2, and interface layer 3; signal layer 1, control layer Layer 2 and interface layer 3 are sequentially connected to communicate; among them:

信号层1包括秘钥生成器11、4G天线12、NTP服务器13、RTC守时控制器14和卫星天线15;The signal layer 1 includes a key generator 11, a 4G antenna 12, an NTP server 13, an RTC timing controller 14 and a satellite antenna 15;

控制层2包括数据加密处理模块21、4G信号采集装置22、时间信号解析器23、时间主控器24、卫星时间信号解析器25、中断处理器26和卫星信号采集装置27;The control layer 2 includes a data encryption processing module 21, a 4G signal acquisition device 22, a time signal analyzer 23, a time master controller 24, a satellite time signal analyzer 25, an interrupt processor 26 and a satellite signal acquisition device 27;

接口层3包括PCI-e x1接口31、接口驱动32和PC机/服务器33。The interface layer 3 includes a PCI-e x1 interface 31 , an interface driver 32 and a PC/server 33 .

本实施例中,秘钥生成器11、4G天线12、NTP服务器13、RTC守时控制器14与卫星天线15并列运行;其中:In this embodiment, the key generator 11, the 4G antenna 12, the NTP server 13, the RTC timing controller 14 and the satellite antenna 15 operate in parallel; wherein:

秘钥生成器11连接数据加密处理模块21,用于生成和存储数据加密过程中用到的加解密秘钥;The key generator 11 is connected to the data encryption processing module 21 for generating and storing the encryption and decryption keys used in the data encryption process;

4G天线12连接4G信号采集装置22,用于获取运营商基站时间,并向下兼容,若4G信号弱自动则切换为3G、2G基站;The 4G antenna 12 is connected to the 4G signal acquisition device 22, which is used to obtain the time of the operator's base station and is backward compatible. If the 4G signal is weak, it will automatically switch to the 3G and 2G base stations;

RTC守时控制器14连接时间主控器24,用于将时间信息或1pps脉冲信号传输至时间主控器24;The RTC timing controller 14 is connected to the time master 24 for transmitting time information or a 1pps pulse signal to the time master 24;

卫星天线15连接卫星信号采集装置27,用于接收卫星信号。The satellite antenna 15 is connected to the satellite signal acquisition device 27 for receiving satellite signals.

本实施例中,RTC守时控制器14使用温补晶振,具有高精度,其在外部时钟源无效时仍可提供高精度授时服务。In this embodiment, the RTC timing controller 14 uses a temperature-compensated crystal oscillator, which has high precision, and can still provide high-precision timing services when the external clock source is invalid.

本实施例中,数据加密处理模块21独立运行,4G信号采集装置22、时间信号解析器23与时间主控器24依次通信连接,卫星信号采集装置27分别通过并列运行的卫星时间信号解析器25、中断处理器26与时间主控器24通信连接;其中:In this embodiment, the data encryption processing module 21 operates independently, the 4G signal acquisition device 22, the time signal analyzer 23 and the time master 24 are sequentially connected in communication, and the satellite signal acquisition device 27 passes through the satellite time signal analyzer 25 running in parallel. , the interrupt handler 26 is connected in communication with the time master 24; wherein:

数据加密处理模块21连接到PCI-e接口31,用于和PC机/服务器33之间的数据流透传;The data encryption processing module 21 is connected to the PCI-e interface 31 for transparent transmission of the data stream with the PC/server 33;

时间信号解析器23通过GPRS连接NTP服务器13,用于获取网络时间;The time signal parser 23 is connected to the NTP server 13 through GPRS for acquiring network time;

时间主控器24连接到PCI-e接口31,用于和PC机/服务器33之间的时间报文/控制命令的传输;The time master 24 is connected to the PCI-e interface 31 for transmission of time messages/control commands with the PC/server 33;

卫星时间信号解析器25连接卫星信号采集装置27,卫星信号采集装置27将卫星信号转换为NMEA协议数据包,并通过卫星时间信号解析器25用串口方式输出时间报文;The satellite time signal analyzer 25 is connected to the satellite signal acquisition device 27, and the satellite signal acquisition device 27 converts the satellite signal into an NMEA protocol data packet, and outputs the time message by the serial port mode through the satellite time signal analyzer 25;

中断处理器26与卫星信号采集装置27连接,中断处理器26接收卫星信号采集装置27输出的1pps脉冲信号。The interrupt processor 26 is connected to the satellite signal acquisition device 27 , and the interrupt processor 26 receives the 1pps pulse signal output by the satellite signal acquisition device 27 .

本实施例中,数据加密处理模块21的核心是一组数据加解密算法子模块;其中,算法子模块包含SM2、RSA等椭圆曲线公钥密码算法,SM4、AES、DES等对称加密算法,SM3、SHA1、SHA224、SHA256等HASH算法,且各算法之间互相独立。In this embodiment, the core of the data encryption processing module 21 is a set of data encryption and decryption algorithm submodules; wherein, the algorithm submodules include elliptic curve public key cryptographic algorithms such as SM2 and RSA, symmetric encryption algorithms such as SM4, AES, and DES, and SM3 , SHA1, SHA224, SHA256 and other HASH algorithms, and each algorithm is independent of each other.

本实施例中,时间主控器24为授时系统模型的核心,其通过4G-LTE、卫星、NTP三种时间信号源,获取不同场景下的时间信息,用于同步密码卡内的时间,并可根据时间源信号强度进行自动切换。In this embodiment, the time master 24 is the core of the timing system model, which obtains time information in different scenarios through three time signal sources, 4G-LTE, satellite, and NTP, and is used to synchronize the time in the password card, and Automatic switching can be performed according to the signal strength of the time source.

本实施例中,时间主控器24通过独立工作的时间源满足多元化使用场景,各不同场景的时间源部署方案为:In the present embodiment, the time master 24 satisfies diversified usage scenarios through independently working time sources, and the time source deployment schemes for different scenarios are:

在不方便部署卫星天线15到室外的网络通讯机房内,可以将4G天线12布置于室内,使用4G-LTE/NTP时间源,完全消除雷电天气对设备的破坏;In the network communication room where it is inconvenient to deploy the satellite antenna 15 to the outdoors, the 4G antenna 12 can be arranged indoors, and the 4G-LTE/NTP time source can be used to completely eliminate the damage to the equipment caused by lightning weather;

在使用GPS/北斗卫星信号时,可达到微秒级授时精度;When using GPS/Beidou satellite signals, it can reach microsecond-level timing accuracy;

通过内置高精度守时时钟源即RTC守时控制器14,使用温补晶振,在外部时钟源无效时仍可提供高精度授时服务。Through the built-in high-precision timing clock source, namely the RTC timing controller 14, using a temperature-compensated crystal oscillator, it can still provide high-precision timing services when the external clock source is invalid.

本实施例中,时间主控器24根据时间源信号强度进行自动切换的具体方法包括如下:In this embodiment, the specific method for the time master 24 to automatically switch according to the signal strength of the time source includes the following:

预先设定间隔特定时间(例如10min)轮巡卫星信号、LTE信号、NTP信号的强度,优先级按照卫星信号>NTP信号>LTE信号的顺序;具体为:Pre-set the intensity of patrol satellite signals, LTE signals, and NTP signals at specific intervals (for example, 10 minutes), and the priority is in the order of satellite signals > NTP signals > LTE signals; specifically:

A、卫星信号对卫星天线15的放置方向、空旷与否有较强联系,当天线放置于室内、楼宇间等较强遮挡的环境时,卫星模块往往不能识别到有效信号,当强度太弱或者时间数据有误时,当前时间源会切换为次优先级并处于有效状态的信号源;A. The satellite signal has a strong relationship with the placement direction of the satellite antenna 15 and whether it is open or not. When the antenna is placed in a strongly occluded environment such as indoors or between buildings, the satellite module often cannot identify effective signals. When the intensity is too weak or When the time data is incorrect, the current time source will be switched to the signal source with the next priority and is in a valid state;

B、NTP信号下,每次轮巡阿里云、国家授时中心、中国香港天文台、美国标准技术研究所、中国科技大学等的授时服务器,每次轮巡后按照不同服务器信号稳定性记录权值,当权值超出设定值后,不再从该服务器获取时间;以此筛选出不同地域、不同网络环境下最优NTP 时间服务器;若NTP下无法提供有效时间或者无法连接有效服务器,当前时间源会切换为处于有效状态的信号源;在此条件下,若轮巡结果中卫星信号有效后,可打断NTP信号源,切换为卫星信号源;B. Under the NTP signal, the timing servers of Alibaba Cloud, the National Time Service Center, the Hong Kong Observatory of China, the American Institute of Standards and Technology, the University of Science and Technology of China, etc. are patrolled each time, and the weights are recorded according to the signal stability of different servers after each patrol. When the weight exceeds the set value, the time will no longer be obtained from the server; in this way, the optimal NTP time server in different regions and different network environments will be screened; It will be switched to the active signal source; under this condition, if the satellite signal is valid in the patrol result, the NTP signal source can be interrupted and switched to the satellite signal source;

C、LTE信号下的时间一般来源于设备周围运营商基站时间;若设备无法连接基站或者基站提供的时间无效时,当前时间源会切换为处于有效状态的信号源;在此条件下,若轮巡结果中卫星信号或NTP信号有效后,可打断LTE信号源,切换为高优先级信号源;C. The time under the LTE signal generally comes from the time of the operator's base station around the device; if the device cannot connect to the base station or the time provided by the base station is invalid, the current time source will be switched to the signal source in the valid state; under this condition, if the round After the satellite signal or NTP signal is valid in the patrol result, the LTE signal source can be interrupted and switched to the high-priority signal source;

D、若以上3种信号都无效,板卡使用内置的RTC守时控制器14运行时间,该控制器内置温补晶振,仍可稳定提供可靠时间,年误差小于±0.4秒。D. If the above three signals are invalid, the board uses the built-in RTC timing controller 14. The controller has a built-in temperature compensated crystal oscillator, which can still provide reliable time stably, with an annual error of less than ±0.4 seconds.

本实施例中,PCI-e x1接口31、接口驱动32与PC机/服务器33依次通过通信连接;其中:In this embodiment, the PCI-e x1 interface 31, the interface driver 32 and the PC/server 33 are sequentially connected through communication; wherein:

PCI-e x1接口31连接控制层2的各模块,从不同时间源获取相应的时间信号,并通过接口驱动32,实现通过不同接口方式与不同的PC机/服务器33连接,从而实现时间数据流、时间报文/控制命令的传输。The PCI-e x1 interface 31 is connected to each module of the control layer 2, obtains corresponding time signals from different time sources, and drives 32 through the interface to connect with different PCs/servers 33 through different interface methods, thereby realizing time data flow , Time message/control command transmission.

所述PCI-e x1接口31兼容x2、x4、x8、x16以及更高速的x32;所述PCI-e x1接口 31通过USB的方式分别与密码卡的密码功能和授时功能连接,使用PCIe+USB的通讯方案,采用串行互联方式,以点对点的形式进行数据传输,每个设备可以单独享用带宽。The PCI-e x1 interface 31 is compatible with x2, x4, x8, x16 and higher-speed x32; the PCI-e x1 interface 31 is respectively connected with the password function and timing function of the password card through USB, using PCIe+USB The communication scheme adopts serial interconnection mode to carry out data transmission in the form of point-to-point, and each device can enjoy the bandwidth independently.

如图3所示,本实施例还提供了一种PCIe接口密码卡授时系统运行平台装置,该装置包括处理器、存储器以及存储在存储器中并在处理器上运行的计算机程序。As shown in FIG. 3 , this embodiment also provides an operating platform device for a PCIe interface password card timing system, the device includes a processor, a memory, and a computer program stored in the memory and running on the processor.

处理器包括一个或一个以上处理核心,处理器通过总线与存储器相连,存储器用于存储程序指令,处理器执行存储器中的程序指令时实现上述的具有高精度授时功能的PCIe 接口密码卡。The processor includes one or more processing cores, the processor is connected to the memory through a bus, and the memory is used for storing program instructions. When the processor executes the program instructions in the memory, the above-mentioned PCIe interface password card with high-precision timing function is implemented.

可选的,存储器可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随时存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Alternatively, the memory can be implemented by any type of volatile or non-volatile storage device or combination thereof, such as static anytime access memory (SRAM), electrically erasable programmable read only memory (EEPROM), Erasing Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic Disk or Optical Disk.

此外,本发明还提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时实现上述的具有高精度授时功能的PCIe接口密码卡。In addition, the present invention also provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned PCIe interface password card with high-precision timing function is implemented.

可选的,本发明还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各方面具有高精度授时功能的PCIe接口密码卡。Optionally, the present invention also provides a computer program product containing instructions, which, when running on a computer, enables the computer to execute the PCIe interface password card with high-precision timing function in the above aspects.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,程序可以存储于计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above-mentioned embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium. The above-mentioned storage medium It can be a read-only memory, a magnetic disk or an optical disk, etc.

以上显示和描述了本发明的基本原理、主要特征和本发明的优点。本行业的技术人员应该了解,本发明不受上述实施例的限制,上述实施例和说明书中描述的仅为本发明的优选例,并不用来限制本发明,在不脱离本发明精神和范围的前提下,本发明还会有各种变化和改进,这些变化和改进都落入要求保护的本发明范围内。本发明要求保护范围由所附的权利要求书及其等效物界定。The foregoing has shown and described the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited by the above-mentioned embodiments, and the above-mentioned embodiments and descriptions are only preferred examples of the present invention, and are not intended to limit the present invention, without departing from the spirit and scope of the present invention. Under the premise, the present invention will also have various changes and improvements, and these changes and improvements all fall within the scope of the claimed invention. The claimed scope of the present invention is defined by the appended claims and their equivalents.

Claims (10)

1.一种具有高精度授时功能的PCIe接口密码卡,其特征在于:其授时系统模型包括信号层(1)、控制层(2)和接口层(3)三部分;所述信号层(1)、所述控制层(2)和所述接口层(3)依次通信连接;其中:1. a PCIe interface cipher card with high-precision timing function is characterized in that: its timing system model comprises three parts of signal layer (1), control layer (2) and interface layer (3); the signal layer (1) ), the control layer (2) and the interface layer (3) are sequentially connected in communication; wherein: 所述信号层(1)包括秘钥生成器(11)、4G天线(12)、NTP服务器(13)、RTC守时控制器(14)和卫星天线(15);The signal layer (1) includes a key generator (11), a 4G antenna (12), an NTP server (13), an RTC timing controller (14) and a satellite antenna (15); 所述控制层(2)包括数据加密处理模块(21)、4G信号采集装置(22)、时间信号解析器(23)、时间主控器(24)、卫星时间信号解析器(25)、中断处理器(26)和卫星信号采集装置(27);The control layer (2) includes a data encryption processing module (21), a 4G signal acquisition device (22), a time signal parser (23), a time master controller (24), a satellite time signal parser (25), an interrupt a processor (26) and a satellite signal acquisition device (27); 所述接口层(3)包括PCI-e x1接口(31)、接口驱动(32)和PC机/服务器(33)。The interface layer (3) includes a PCI-e x1 interface (31), an interface driver (32) and a PC/server (33). 2.根据权利要求1所述的具有高精度授时功能的PCIe接口密码卡,其特征在于:所述秘钥生成器(11)、所述4G天线(12)、所述NTP服务器(13)、所述RTC守时控制器(14)与所述卫星天线(15)并列运行;其中:2. The PCIe interface password card with high-precision timing function according to claim 1, characterized in that: the secret key generator (11), the 4G antenna (12), the NTP server (13), The RTC timing controller (14) operates in parallel with the satellite antenna (15); wherein: 所述秘钥生成器(11)连接所述数据加密处理模块(21),用于生成和存储数据加密过程中用到的加解密秘钥;The key generator (11) is connected to the data encryption processing module (21) for generating and storing the encryption and decryption keys used in the data encryption process; 所述4G天线(12)连接所述4G信号采集装置(22),用于获取运营商基站时间,并向下兼容,若4G信号弱自动则切换为3G、2G基站;The 4G antenna (12) is connected to the 4G signal acquisition device (22), and is used to obtain the time of the operator's base station, which is backward compatible, and automatically switches to 3G and 2G base stations if the 4G signal is weak; 所述RTC守时控制器(14)连接所述时间主控器(24),用于将时间信息或1pps脉冲信号传输至所述时间主控器(24);The RTC timing controller (14) is connected to the time master (24) for transmitting time information or a 1pps pulse signal to the time master (24); 所述卫星天线(15)连接所述卫星信号采集装置(27),用于接收卫星信号。The satellite antenna (15) is connected to the satellite signal acquisition device (27) for receiving satellite signals. 3.根据权利要求1所述的具有高精度授时功能的PCIe接口密码卡,其特征在于:所述RTC守时控制器(14)使用温补晶振,具有高精度,其在外部时钟源无效时仍可提供高精度授时服务。3. the PCIe interface cipher card with high-precision timing function according to claim 1, it is characterized in that: described RTC time-keeping controller (14) uses temperature compensated crystal oscillator, has high precision, it is when external clock source is invalid High-precision timing services can still be provided. 4.根据权利要求1所述的具有高精度授时功能的PCIe接口密码卡,其特征在于:所述数据加密处理模块(21)独立运行,所述4G信号采集装置(22)、所述时间信号解析器(23)与所述时间主控器(24)依次通信连接,所述卫星信号采集装置(27)分别通过并列运行的所述卫星时间信号解析器(25)、所述中断处理器(26)与所述时间主控器(24)通信连接;其中:4. The PCIe interface cipher card with high-precision timing function according to claim 1, characterized in that: the data encryption processing module (21) operates independently, the 4G signal acquisition device (22), the time signal The parser (23) is communicated with the time master (24) in sequence, and the satellite signal acquisition device (27) is connected through the satellite time signal parser (25) and the interrupt handler (25) running in parallel respectively. 26) communicate with the time master (24); wherein: 所述数据加密处理模块(21)连接到所述PCI-e接口(31),用于和所述PC机/服务器(33)之间的数据流透传;The data encryption processing module (21) is connected to the PCI-e interface (31) for transparent transmission of the data stream with the PC/server (33); 所述时间信号解析器(23)通过GPRS连接NTP服务器(13),用于获取网络时间;The time signal parser (23) is connected to the NTP server (13) through GPRS for acquiring network time; 所述时间主控器(24)连接到所述PCI-e接口(31),用于和所述PC机/服务器(33)之间的时间报文/控制命令的传输;The time master (24) is connected to the PCI-e interface (31) for transmission of time messages/control commands with the PC/server (33); 所述卫星时间信号解析器(25)连接所述卫星信号采集装置(27),所述卫星信号采集装置(27)将卫星信号转换为NMEA协议数据包,并通过所述卫星时间信号解析器(25)用串口方式输出时间报文;The satellite time signal analyzer (25) is connected to the satellite signal acquisition device (27), and the satellite signal acquisition device (27) converts the satellite signal into an NMEA protocol data packet, and passes the satellite time signal analyzer (27) through the satellite time signal analyzer ( 25) Output time message by serial port; 所述中断处理器(26)与所述卫星信号采集装置(27)连接,所述中断处理器(26)接收所述卫星信号采集装置(27)输出的1pps脉冲信号。The interrupt processor (26) is connected with the satellite signal acquisition device (27), and the interrupt processor (26) receives the 1pps pulse signal output by the satellite signal acquisition device (27). 5.根据权利要求1所述的具有高精度授时功能的PCIe接口密码卡,其特征在于:所述数据加密处理模块(21)的核心是一组数据加解密算法子模块;其中,算法子模块包含SM2、RSA等椭圆曲线公钥密码算法,SM4、AES、DES等对称加密算法,SM3、SHA1、SHA224、SHA256等HASH算法,且各算法之间互相独立。5. The PCIe interface cipher card with high-precision timing function according to claim 1, wherein the core of the data encryption processing module (21) is a group of data encryption and decryption algorithm submodules; wherein, the algorithm submodule It includes elliptic curve public key cryptography algorithms such as SM2 and RSA, symmetric encryption algorithms such as SM4, AES, and DES, and HASH algorithms such as SM3, SHA1, SHA224, and SHA256, and each algorithm is independent of each other. 6.根据权利要求1所述的具有高精度授时功能的PCIe接口密码卡,其特征在于:所述时间主控器(24)为授时系统模型的核心,其通过4G-LTE、卫星、NTP三种时间信号源,获取不同场景下的时间信息,用于同步密码卡内的时间,并可根据时间源信号强度进行自动切换。6. The PCIe interface cipher card with high-precision timing function according to claim 1, it is characterized in that: described time master (24) is the core of timing system model, and it passes through 4G-LTE, satellite, NTP three It can obtain time information in different scenarios, which is used to synchronize the time in the password card, and can automatically switch according to the signal strength of the time source. 7.根据权利要求1所述的具有高精度授时功能的PCIe接口密码卡,其特征在于:所述时间主控器(24)通过独立工作的时间源满足多元化使用场景,各不同场景的时间源部署方案为:7. The PCIe interface cipher card with high-precision timing function according to claim 1, characterized in that: the time master (24) satisfies diversified usage scenarios by the time source of independent work, and the time of each different scenario The source deployment scheme is: 在不方便部署卫星天线(15)到室外的网络通讯机房内,可以将4G天线(12)布置于室内,使用4G-LTE/NTP时间源,完全消除雷电天气对设备的破坏;In the network communication room where it is inconvenient to deploy the satellite antenna (15) to the outdoor, the 4G antenna (12) can be arranged indoors, and the 4G-LTE/NTP time source can be used to completely eliminate the damage to the equipment caused by lightning weather; 在使用GPS/北斗卫星信号时,可达到微秒级授时精度;When using GPS/Beidou satellite signals, it can reach microsecond-level timing accuracy; 通过内置高精度守时时钟源即RTC守时控制器(14),使用温补晶振,在外部时钟源无效时仍可提供高精度授时服务。Through the built-in high-precision time-keeping clock source, namely, the RTC time-keeping controller (14), using a temperature-compensated crystal oscillator, it can still provide high-precision time service when the external clock source is invalid. 8.根据权利要求1所述的具有高精度授时功能的PCIe接口密码卡,其特征在于:所述时间主控器(24)根据时间源信号强度进行自动切换的具体方法包括如下:8. the PCIe interface password card with high-precision timing function according to claim 1, is characterized in that: the concrete method that described time master (24) automatically switches according to time source signal strength comprises as follows: 预先设定间隔特定时间轮巡卫星信号、LTE信号、NTP信号的强度,优先级按照卫星信号>NTP信号>LTE信号的顺序;具体为:Pre-set the intensity of the satellite signal, LTE signal, and NTP signal to patrol at a specific time interval, and the priority is in the order of satellite signal>NTP signal>LTE signal; specifically: A、卫星信号对卫星天线(15)的放置方向、空旷与否有较强联系,当天线放置于室内、楼宇间等较强遮挡的环境时,卫星模块往往不能识别到有效信号,当强度太弱或者时间数据有误时,当前时间源会切换为次优先级并处于有效状态的信号源;A. The satellite signal has a strong relationship with the placement direction of the satellite antenna (15) and whether it is open or not. When the antenna is placed in a strongly occluded environment such as indoors or between buildings, the satellite module often cannot identify effective signals. When the intensity is too high When the time data is weak or the time data is wrong, the current time source will be switched to the signal source with the next priority and is in a valid state; B、NTP信号下,每次轮巡阿里云、国家授时中心、香港天文台、美国标准技术研究所、中国科技大学等的授时服务器,每次轮巡后按照不同服务器信号稳定性记录权值,当权值超出设定值后,不再从该服务器获取时间;以此筛选出不同地域、不同网络环境下最优NTP时间服务器;若NTP下无法提供有效时间或者无法连接有效服务器,当前时间源会切换为处于有效状态的信号源;在此条件下,若轮巡结果中卫星信号有效后,可打断NTP信号源,切换为卫星信号源;B. Under the NTP signal, the timing servers of Alibaba Cloud, the National Time Service Center, the Hong Kong Observatory, the American Institute of Standards and Technology, the University of Science and Technology of China, etc. are patrolled each time, and the weights are recorded according to the signal stability of different servers after each patrol. After the weight value exceeds the set value, the time will no longer be obtained from the server; the optimal NTP time server in different regions and different network environments will be filtered out; if valid time cannot be provided under NTP or cannot be connected to a valid server, the current time source will Switch to the active signal source; under this condition, if the satellite signal is valid in the patrol result, the NTP signal source can be interrupted and switched to the satellite signal source; C、LTE信号下的时间一般来源于设备周围运营商基站时间;若设备无法连接基站或者基站提供的时间无效时,当前时间源会切换为处于有效状态的信号源;在此条件下,若轮巡结果中卫星信号或NTP信号有效后,可打断LTE信号源,切换为高优先级信号源;C. The time under the LTE signal generally comes from the time of the operator's base station around the device; if the device cannot connect to the base station or the time provided by the base station is invalid, the current time source will be switched to the signal source in the valid state; under this condition, if the round After the satellite signal or NTP signal is valid in the patrol result, the LTE signal source can be interrupted and switched to the high-priority signal source; D、若以上3种信号都无效,板卡使用内置的RTC守时控制器(14)运行时间,该控制器内置温补晶振,仍可稳定提供可靠时间,年误差小于±0.4秒。D. If the above three signals are invalid, the board uses the built-in RTC timing controller (14) for running time. The controller has a built-in temperature compensated crystal oscillator, which can still provide reliable time stably, with an annual error of less than ±0.4 seconds. 9.根据权利要求1所述的具有高精度授时功能的PCIe接口密码卡,其特征在于:所述PCI-e x1接口(31)、所述接口驱动(32)与所述PC机/服务器(33)依次通过通信连接;其中:9. The PCIe interface password card with high-precision timing function according to claim 1, characterized in that: the PCI-e x1 interface (31), the interface driver (32) and the PC/server ( 33) Connected by communication in turn; wherein: 所述PCI-e x1接口(31)连接所述控制层(2)的各模块,从不同时间源获取相应的时间信号,并通过所述接口驱动(32),实现通过不同接口方式与不同的所述PC机/服务器(33)连接,从而实现时间数据流、时间报文/控制命令的传输。The PCI-e x1 interface (31) is connected to each module of the control layer (2), obtains corresponding time signals from different time sources, and drives (32) through the interface to realize different interface modes and different time signals. The PC/server (33) is connected, so as to realize the transmission of time data stream and time message/control command. 10.根据权利要求1所述的具有高精度授时功能的PCIe接口密码卡,其特征在于:所述PCI-e x1接口(31)兼容x2、x4、x8、x16以及更高速的x32;所述PCI-e x1接口(31)通过USB的方式分别与密码卡的密码功能和授时功能连接。10. The PCIe interface password card with high-precision timing function according to claim 1, characterized in that: the PCI-e x1 interface (31) is compatible with x2, x4, x8, x16 and higher-speed x32; the The PCI-e x1 interface (31) is respectively connected with the password function and the timing function of the password card by means of USB.
CN202210318116.4A 2022-03-29 2022-03-29 A PCIe interface password card with high-precision timing function Active CN115065435B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210318116.4A CN115065435B (en) 2022-03-29 2022-03-29 A PCIe interface password card with high-precision timing function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210318116.4A CN115065435B (en) 2022-03-29 2022-03-29 A PCIe interface password card with high-precision timing function

Publications (2)

Publication Number Publication Date
CN115065435A true CN115065435A (en) 2022-09-16
CN115065435B CN115065435B (en) 2025-02-28

Family

ID=83197172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210318116.4A Active CN115065435B (en) 2022-03-29 2022-03-29 A PCIe interface password card with high-precision timing function

Country Status (1)

Country Link
CN (1) CN115065435B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118410527A (en) * 2024-05-23 2024-07-30 南京乾恩软件有限公司 A time tracing encrypted timing card
CN118690395A (en) * 2024-08-26 2024-09-24 南京鲸鲨数据科技有限公司 Key design method for S3 data encryption and decryption service based on password card

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019345A (en) * 2020-08-10 2020-12-01 杭州锘崴信息科技有限公司 System and method for high-precision time block chain
CN215298232U (en) * 2021-07-13 2021-12-24 罗克佳华(重庆)科技有限公司 A PCIE password card
CN215526123U (en) * 2021-05-21 2022-01-14 南京工程学院 Time-space credible timestamp board card based on Beidou satellite navigation system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019345A (en) * 2020-08-10 2020-12-01 杭州锘崴信息科技有限公司 System and method for high-precision time block chain
CN215526123U (en) * 2021-05-21 2022-01-14 南京工程学院 Time-space credible timestamp board card based on Beidou satellite navigation system
CN215298232U (en) * 2021-07-13 2021-12-24 罗克佳华(重庆)科技有限公司 A PCIE password card

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
TAO, Y (TAO, YI) [1] ; FU, QQ (FU, QINGQIN): "Design and implementation of high speed encryption and decryption system based on PCIE bus", 《 PROCEEDINGS OF 2020 IEEE 2ND INTERNATIONAL CONFERENCE ON CIVIL AVIATION SAFETY AND INFORMATION TECHNOLOGY (ICCASIT)》, 20 July 2021 (2021-07-20) *
王军;韩力;杜博军;王磊;何昕;: "基于PCI-E总线的北斗导航授时卡Linux驱动设计", 计算机测量与控制, no. 04, 25 April 2016 (2016-04-25) *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118410527A (en) * 2024-05-23 2024-07-30 南京乾恩软件有限公司 A time tracing encrypted timing card
CN118410527B (en) * 2024-05-23 2026-04-21 南京乾恩软件有限公司 A time-tracking encrypted timing card
CN118690395A (en) * 2024-08-26 2024-09-24 南京鲸鲨数据科技有限公司 Key design method for S3 data encryption and decryption service based on password card

Also Published As

Publication number Publication date
CN115065435B (en) 2025-02-28

Similar Documents

Publication Publication Date Title
KR100626663B1 (en) System-on-chip development and verification device for internet telephony
US20190044794A1 (en) Edge or fog gateway assisted ide redirection for failover remote management applications
CN112540951A (en) Special main control chip suitable for electric power system control protection device
CN107947887B (en) Clock system and method between a kind of server based on PTP protocol
CN115065435A (en) PCIe interface password card with high-precision time service function
US12185265B2 (en) Method, apparatus, and system for determining synchronization cycle
TW201841530A (en) System and method of sending data via additional secondary data lines on a bus
CN106598889A (en) SATA (Serial Advanced Technology Attachment) master controller based on FPGA (Field Programmable Gate Array) sandwich plate
CN114157410B (en) Lightweight 5G hard encryption communication module for power terminal
WO2021098272A1 (en) Data reading method and apparatus, metering device, and server
CN118869200B (en) A method for encrypted communication of power system and a secure encrypted communication system
US10122484B1 (en) Technologies for internal time syncrhonization
CN102202132A (en) Method, system and equipment for initializing networking equipment
CN101963924B (en) A process communication method, device and operating system
CN100470451C (en) Computer system and power saving method thereof
CN113850098B (en) Data encoding device
CN120336232A (en) Design method of GLINK interface bridge for space vehicle intelligent bus based on domestic FPGA
CN111313933A (en) A meter reading method, device and system
CN105515709A (en) Time synchronization device based on domestic FPGA and uclinux operating system
CN115563658B (en) Edge computing system and method based on micro-ring
CN113613235B (en) Frequency offset adjusting method and device, terminal and network equipment
CN114238206A (en) Internet of things system on chip and working method thereof
WO2016134632A1 (en) Data processing system
US10429881B2 (en) Semiconductor device for stopping an oscillating clock signal from being provided to an IP block, a semiconductor system having the semiconductor device, and a method of operating the semiconductor device
CN113364551B (en) Clock synchronization method and device for domain type protection device of power distribution network

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