[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN114745362B - A remote upgrade method and system based on optical fiber timing - Google Patents

A remote upgrade method and system based on optical fiber timing Download PDF

Info

Publication number
CN114745362B
CN114745362B CN202210301532.3A CN202210301532A CN114745362B CN 114745362 B CN114745362 B CN 114745362B CN 202210301532 A CN202210301532 A CN 202210301532A CN 114745362 B CN114745362 B CN 114745362B
Authority
CN
China
Prior art keywords
upgrade
upgrading
controller
time service
remote
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
Application number
CN202210301532.3A
Other languages
Chinese (zh)
Other versions
CN114745362A (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.)
National Time Service Center of CAS
Original Assignee
National Time Service Center of CAS
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 National Time Service Center of CAS filed Critical National Time Service Center of CAS
Priority to CN202210301532.3A priority Critical patent/CN114745362B/en
Publication of CN114745362A publication Critical patent/CN114745362A/en
Application granted granted Critical
Publication of CN114745362B publication Critical patent/CN114745362B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4416Network booting; Remote initial program loading [RIPL]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/25Arrangements specific to fibre transmission
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • Power Engineering (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Electromagnetism (AREA)
  • Optical Communication System (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a remote upgrading system based on optical fiber time service, which comprises local end equipment and a plurality of remote end equipment, wherein the local end equipment and the remote end equipment are communicated through an optical fiber link, the optical fiber link comprises a time service channel and a data transmission channel, the time service channel is used for transmitting time service information, and the data transmission channel is used for transmitting an upgrading data packet; the local side device comprises: a first controller, the remote end device comprising: the system comprises a main controller, a standby controller and a timekeeping module. The remote upgrading system based on the optical fiber time service realizes the remote upgrading of the time service equipment through the optical fiber link, avoids technicians from entering a machine room to replace board card equipment, improves version updating safety and updating efficiency, and avoids unnecessary risks caused by time service interruption; in addition, the remote terminal equipment performs version upgrading operation through the cooperation of the main controller and the standby controller, so that the efficiency and the safety of version upgrading are further improved.

Description

一种基于光纤授时的远程升级方法及系统A remote upgrade method and system based on optical fiber timing

技术领域technical field

本发明属于光纤授时领域,具体涉及一种基于光纤授时的远程升级方 法及系统。The invention belongs to the field of optical fiber timing, in particular to a remote upgrade method and system based on optical fiber timing.

背景技术Background technique

高精度时间频率在基础物理、地球科学、空间科学、导航定位、航空航天及军 事安全等领域具有重要的应用价值,当前主流的远距离精密时间频率传递技术有卫 星时频传递、光纤时频传递及激光时间传递,光纤授时以其授时精度高、传输稳定、 带宽大、抗干扰能力强、低损耗传输等优势越来越广泛地被应用到高精度时间传递 方面,且光纤授时技术可以较好地兼容于光纤通信系统。High-precision time-frequency has important application value in the fields of basic physics, earth science, space science, navigation and positioning, aerospace and military security. The current mainstream long-distance precision time-frequency transmission technologies include satellite time-frequency transmission and optical fiber time-frequency transmission. And laser time transmission, optical fiber timing is more and more widely used in high-precision time transmission due to its advantages of high timing accuracy, stable transmission, large bandwidth, strong anti-interference ability, and low-loss transmission, and optical fiber timing technology can be better Compatible with fiber optic communication systems.

然而,光纤传输系统中需要通过本地端和远程端的通信实现时间传递, 在系统运作过程中,授时系统版本也需要不断的更新,以满足安全要求和 系统运行要求。然而,目前的授时系统设备一般安装在机房,机房站点多, 如果频繁更新,多次进入机房会带来不便。另外,一些用户在使用时,需 要更新程序,需要技术人员将板卡取出,通过专有设备将版本程序更新下 载到板卡上。由于需要进行插拔卡操作,更新时也会带来较大的安全风险, 也存在更新失败导致系统瘫痪的风险。However, in the optical fiber transmission system, the time transfer needs to be realized through the communication between the local end and the remote end. During the operation of the system, the version of the timing system also needs to be continuously updated to meet the safety requirements and system operation requirements. However, the current timing system equipment is generally installed in the computer room, and there are many stations in the computer room. If it is updated frequently, it will be inconvenient to enter the computer room multiple times. In addition, some users need to update the program during use, requiring technicians to take out the board and download the version program update to the board through a dedicated device. Due to the need to insert and remove the card, the update will also bring a greater security risk, and there is also a risk of system paralysis due to update failure.

发明内容Contents of the invention

为了解决现有技术中存在的上述问题,本发明提供了一种基于光纤授 时的远程升级方法及系统。本发明要解决的技术问题通过以下技术方案实 现:In order to solve the above-mentioned problems in the prior art, the present invention provides a remote upgrade method and system based on optical fiber timing. The technical problem to be solved in the present invention is realized through the following technical solutions:

一种基于光纤授时的远程升级系统,包括本地端设备和若干远程端设 备,所述本地端设备和远程端设备通过光纤链路进行通信,所述光纤链路 包括授时通道、数据传输通道,所述授时通道用于传递授时信息,所述数 据传输通道用于传递升级数据包;A remote upgrade system based on optical fiber timing, including a local end device and a number of remote end devices, the local end device and remote end devices communicate through an optical fiber link, the optical fiber link includes a timing channel and a data transmission channel, the The timing channel is used to transmit timing information, and the data transmission channel is used to transmit upgrade data packets;

所述本地端设备包括:The local equipment includes:

第一控制器,用于发送升级请求消息至每个所述远程端设备,其 中,所述升级请求消息包括当前版本号、预升级版本号、升级时长;The first controller is configured to send an upgrade request message to each of the remote end devices, wherein the upgrade request message includes a current version number, a pre-upgrade version number, and an upgrade duration;

响应于接收到升级确认消息时,判断MAC地址是否有升级权限, 若是,则发送升级数据包至对应的通信端口;In response to receiving the upgrade confirmation message, it is judged whether the MAC address has the upgrade authority, and if so, the upgrade data packet is sent to the corresponding communication port;

所述远程端设备包括:The remote end equipment includes:

主控制器,用于接收升级请求消息;The main controller is used to receive the upgrade request message;

判断当前版本号、预升级版本号、升级时长均满足升级要求时, 向备用控制器发送开启命令以获取备用控制器的MAC地址和通信端口号; 响应于接收到所述MAC地址和所述通信端口号,向所述第一控制 器反馈升级确认消息,其中所述升级确认消息包括备用控制器的MAC地址 和通信端口号;When judging that the current version number, pre-upgrade version number, and upgrade duration all meet the upgrade requirements, send an open command to the standby controller to obtain the MAC address and communication port number of the standby controller; in response to receiving the MAC address and the communication port number; Port number, feeding back an upgrade confirmation message to the first controller, wherein the upgrade confirmation message includes the MAC address and communication port number of the standby controller;

备用控制器,用于在升级完成时,向所述第一控制器和守时模块 发送切换信息,以使所述第一控制器在切换期间,停止向主控制器发送授 时数据,并且在切换完成后向备用控制器发送授时数据;The standby controller is configured to send switching information to the first controller and the timing module when the upgrade is completed, so that the first controller stops sending timing data to the main controller during the switching period, and After completion, send timing data to the standby controller;

所述守时模块用于在切换期间采用高稳压控晶振和锁相环进行本 地守时,并且在切换完成后停止本地守时,并对本地端的第一控制器进行 时间同步跟踪。The time-keeping module is used to use a high-voltage-controlled crystal oscillator and a phase-locked loop for local time-keeping during the switching period, and stops the local time-keeping after the switching is completed, and performs time-synchronous tracking on the first controller at the local end.

在一个具体实施方式中,所述升级请求消息还包括升级内容标识;相 应的,In a specific implementation manner, the upgrade request message also includes an upgrade content identifier; correspondingly,

主控制器用于判断所述升级内容标识为秘钥权限升级时,检测解密模 块数量以确定硬件条件满足要求后进行升级。When the main controller is used to judge that the upgrade content is identified as an upgrade of the secret key authority, it detects the number of decryption modules to determine that the hardware conditions meet the requirements before upgrading.

在一个具体实施方式中,所述主控制器还用于在切换完成后,向备用 控制器获取升级数据包进行升级,并在升级完成后关闭与第一控制器的授 时通道。In a specific embodiment, the master controller is further configured to obtain an upgrade data packet from the standby controller for upgrade after the switch is completed, and close the timing channel with the first controller after the upgrade is completed.

在一个具体实施方式中,所述第一控制器通过授时信号帧发送升级请 求消息,其中,所述授时信号帧包括授时字段和升级请求字段,所述升级 请求字段包括升级请求消息;In a specific embodiment, the first controller sends an upgrade request message through a timing signal frame, wherein the timing signal frame includes a timing field and an upgrade request field, and the upgrade request field includes an upgrade request message;

相应的,所述主控制器接收到所述授时信号帧时,判断所述升级请求 字段为空时,进行授时操作,判断所述升级请求字段包括升级请求消息时, 进行升级操作。Correspondingly, when the main controller receives the timing signal frame, it judges that the upgrade request field is empty, and performs a timing operation, and when it judges that the upgrade request field includes an upgrade request message, performs an upgrade operation.

本发明同时提供一种基于光纤授时的远程升级方法,应用于本地端, 包括:The present invention also provides a remote upgrade method based on optical fiber timing, which is applied to the local end, including:

发送升级请求消息至每个所述远程端设备,其中,所述升级请求消息 包括当前版本号、预升级版本号、升级时长,所述远程端设备包括主控制 器和备用控制器;Send an upgrade request message to each of the remote end devices, wherein the upgrade request message includes a current version number, a pre-upgrade version number, and an upgrade duration, and the remote end device includes a master controller and a standby controller;

响应于接收到远程端设备发送的升级确认消息时,判断远程端设备的 MAC地址是否有升级权限,若是,则发送升级数据包至对应的通信端口。In response to receiving the upgrade confirmation message sent by the remote end device, it is judged whether the MAC address of the remote end device has the upgrade authority, and if so, the upgrade data packet is sent to the corresponding communication port.

以及,响应于接收到切换信息时,停止向主控制器发送授时数据,并 且在超过升级时长后,向备用控制器发送授时数据。And, in response to receiving the switching information, stop sending the timing data to the main controller, and after exceeding the upgrade duration, send the timing data to the standby controller.

本发明同时提供一种基于光纤授时的远程升级方法,应用于远程端, 所述远程端包括主控制器、备用控制器和守时模块;该方法包括:The present invention also provides a remote upgrade method based on optical fiber timing, which is applied to the remote end, and the remote end includes a main controller, a backup controller and a timekeeping module; the method includes:

主控制器接收升级请求消息;The main controller receives the upgrade request message;

判断当前版本号、预升级版本号、升级时长均满足升级要求时,向备 用控制器发送开启命令以获取备用控制器的MAC地址和通信端口号;When judging that the current version number, pre-upgrade version number, and upgrade duration all meet the upgrade requirements, send an open command to the standby controller to obtain the MAC address and communication port number of the standby controller;

响应于接收到所述MAC地址和所述通信端口号,向本地端设备升级确 认消息,其中所述升级确认消息包括备用控制器的MAC地址和通信端口号;In response to receiving the MAC address and the communication port number, upgrade a confirmation message to the local device, wherein the upgrade confirmation message includes the MAC address and the communication port number of the backup controller;

备用控制器在升级完成时,向本地端设备和守时模块发送切换信息, 以使本地端设备在切换期间,停止向主控制器发送授时数据,并且在切换 完成后向备用控制器发送授时数据;When the upgrade is completed, the standby controller sends switching information to the local device and the timing module, so that the local device stops sending timing data to the master controller during the switching period, and sends timing data to the standby controller after the switching is completed ;

在切换期间,采用高稳压控晶振和锁相环构成的守时模块进行本地守 时,并且在切换完成后停止本地守时,并对本地端的第一控制器进行时间 同步跟踪。During the switching period, the timekeeping module composed of a high-voltage-controlled crystal oscillator and a phase-locked loop is used for local timekeeping, and after the switching is completed, the local timekeeping is stopped, and the first controller at the local end is tracked synchronously.

在一个具体实施方式中,所述升级请求消息还包括升级内容标识;相 应的,In a specific implementation manner, the upgrade request message also includes an upgrade content identifier; correspondingly,

主控制器判断所述升级内容标识为秘钥权限升级时,检测解密模块数 量以确定硬件条件满足要求后进行升级。When the main controller judges that the upgrade content is identified as an upgrade of the secret key authority, it detects the number of decryption modules to determine that the hardware conditions meet the requirements before upgrading.

在一个具体实施方式中,在切换完成后,主控制器向备用控制器获取 升级数据包进行升级,并在升级完成后关闭与本地端的授时通道。In a specific embodiment, after the switching is completed, the master controller obtains the upgrade data packet from the standby controller to upgrade, and closes the timing channel with the local end after the upgrade is completed.

本发明的有益效果:Beneficial effects of the present invention:

本发明的基于光纤授时的远程升级系统通过光纤链路实现授时设备的 远程升级,避免了技术人员进入机房更换板卡设备,提高了版本更新安全 性和更新效率,同时避免了授时中断产生不必要的风险;此外,本发明远 程端设备通过主控制器和备用控制器协同进行版本升级操作,进一步的提 高了版本更新的效率和安全性。The remote upgrade system based on optical fiber timing of the present invention realizes remote upgrading of timing equipment through optical fiber links, avoids technicians entering the computer room to replace board equipment, improves version update security and update efficiency, and avoids unnecessary interruption of timing at the same time In addition, the remote terminal device of the present invention performs a version upgrade operation through the cooperation of the main controller and the standby controller, which further improves the efficiency and safety of the version update.

以下将结合附图及实施例对本发明做进一步详细说明。The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.

附图说明Description of drawings

图1是本发明实施例提供的一种基于光纤授时的远程升级系统模块示 意图;Fig. 1 is a kind of remote upgrading system module schematic diagram based on optical fiber timing provided by the embodiment of the present invention;

图2是发明实施例提供的一种基于光纤授时的远程升级系统升级时本 地端传输数据的帧结构;Fig. 2 is the frame structure of the local terminal transmission data when a kind of remote upgrade system based on optical fiber timing service is upgraded provided by the embodiment of the invention;

图3是本发明实施例提供的一种基于光纤授时的远程升级方法本地端 流程示意图;Fig. 3 is a kind of remote upgrade method local end schematic diagram based on optical fiber timing provided by the embodiment of the present invention;

图4是本发明实施例提供的一种基于光纤授时的远程升级方法远程端 端流程示意图。Fig. 4 is a schematic diagram of a remote end-to-end process flow of a remote upgrade method based on optical fiber timing provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面结合具体实施例对本发明做进一步详细的描述,但本发明的实施 方式不限于此。The present invention will be described in further detail below in conjunction with specific examples, but the embodiments of the present invention are not limited thereto.

实施例一Embodiment one

请参见图1,图1是本发明实施例提供的一种基于光纤授时的远程升级 系统模块示意图,包括本地端设备和若干远程端设备,所述本地端设备和 远程端设备通过光纤链路进行通信,所述光纤链路包括授时通道、数据传 输通道,所述授时通道用于传递授时信息,所述数据传输通道用于传递升 级数据包;Please refer to Figure 1. Figure 1 is a schematic diagram of a remote upgrade system module based on optical fiber timing provided by an embodiment of the present invention, including a local end device and a number of remote end devices, and the local end device and remote end devices are implemented through optical fiber links. For communication, the optical fiber link includes a timing channel and a data transmission channel, the timing channel is used to transmit timing information, and the data transmission channel is used to transmit upgrade data packets;

本实施例的本地端设备为提供授时数据的服务端,本地端通过授时通 道将10MHz信号、1PPS信号、UTC时码以及双向比对结果数据等信息传 输至远程端设备,远程端据此进行时间更新后即可正常使用,一般的,通 过光纤链路进行数据传输,由于现有授时技术一般只通过光纤进行授时信 息的传输,因此没有数据传输通道,本实施例为了安全高效的传输版本数 据,通过光纤链路同时传递用于版本更新的升级数据包;由于使用原有的 光纤链路执行了额外数据传输,因此可以通过时分复用的方式进行传输。 需要说明的是,在正常授时时,其帧结构包括,远程端的设备地址,1PPS 信号,比对数据,UTC时码信息,10MHz载波信号,每帧信号的长度为10ms, 其中前100μs包含设备地址、1PPS信号、比对数据及时码信息,剩余9.9ms 是10MHz载波信号。每个站点的远程端设备都可以连续接收到本地端设备发送的帧信号,通过内部解码器进行解析。其中10MHz载波信号用于内部 守时模块,使远程端设备具有良好的守时能力。本实施例在进行升级数据 包传输时,请参见图2,其帧结构包括,远程端的设备地址,1PPS信号, 比对数据,UTC时码信息,10MHz载波信号和升级数据包信号,为了给安 装数据包留下更多空间,每帧信号的长度变为1s,其中前1ms包含设备地址、1PPS信号、比对数据、时码信息和10MHz载波信号,并且,通过时 分复用的形式将升级数据包进行拆包传输。The local device in this embodiment is a server that provides timing data. The local device transmits information such as 10MHz signals, 1PPS signals, UTC time codes, and two-way comparison result data to the remote device through the timing channel, and the remote device performs timing based on this. It can be used normally after updating. Generally, data transmission is performed through optical fiber links. Since the existing timing technology generally only transmits timing information through optical fibers, there is no data transmission channel. In order to transmit version data safely and efficiently in this embodiment, The upgrade data package for the version update is transmitted simultaneously through the optical fiber link; since the additional data transmission is performed using the original optical fiber link, it can be transmitted in a time-division multiplexed manner. It should be noted that during normal timing, the frame structure includes the device address of the remote end, 1PPS signal, comparison data, UTC time code information, 10MHz carrier signal, and the length of each frame signal is 10ms, of which the first 100μs contains the device address , 1PPS signal, comparison data and timely code information, the remaining 9.9ms is 10MHz carrier signal. The remote end equipment at each site can continuously receive the frame signal sent by the local end equipment and analyze it through the internal decoder. Among them, the 10MHz carrier signal is used for the internal timing module, so that the remote end equipment has good timing capability. In this embodiment, please refer to Fig. 2 when performing the upgrade data packet transmission, its frame structure includes, the device address of the remote end, 1PPS signal, comparison data, UTC time code information, 10MHz carrier signal and upgrade data packet signal, in order to install The data packet leaves more space, and the length of each frame signal becomes 1s, of which the first 1ms contains the device address, 1PPS signal, comparison data, time code information and 10MHz carrier signal, and the data will be upgraded in the form of time division multiplexing Packets are unpacked for transmission.

所述本地端设备包括:The local equipment includes:

第一控制器,用于发送升级请求消息至每个所述远程端设备,其 中,所述升级请求消息包括当前版本号、预升级版本号、升级时长;The first controller is configured to send an upgrade request message to each of the remote end devices, wherein the upgrade request message includes a current version number, a pre-upgrade version number, and an upgrade duration;

由于本地端一般需要向不同的远程端进行授时,不同远程端的要求不 同,其对应的版本也会有区别,因此当本地端存在新版本时,需要发送给 各个远程端,由远程端判断是否进行版本更新,对应的,升级请求消息中 需要携带当前版本号、预升级版本号,以便远程端进行判断,此外,不同 的版本再进行升级切换时,花费的时间有所区别,从数十分钟到数小时之 间。而进行版本更新时,远程端设备在升级切换过程中无法进行准确的授 时,只能通过守时模块提供精度稍低的时钟信号,如果远程端设备此时正 处在高精度场景下工作或者即将处于高精度场景,导致升级切换时无法满 足授时需求,因此需要通过发送升级时长数据,方便远程端进行判别当前 是否适合进行升级。例如升级时长为1小时,而远程端在5分钟后进行引力 波测试等实验,需要高精度的时间,则此时不合适进行升级。Since the local end generally needs to provide time service to different remote ends, the requirements of different remote ends are different, and the corresponding versions will also be different. Therefore, when there is a new version on the local end, it needs to be sent to each remote end, and the remote end determines whether to carry out Version update. Correspondingly, the upgrade request message needs to carry the current version number and the pre-upgrade version number, so that the remote end can judge. In addition, when different versions are upgraded and switched, the time spent is different, ranging from tens of minutes to between hours. When the version is updated, the remote device cannot provide accurate timing during the upgrade and switching process, and can only provide a clock signal with a lower precision through the timing module. If the remote device is working in a high-precision scene or is about to In a high-precision scenario, the timing requirements cannot be met during upgrade switching. Therefore, it is necessary to send upgrade duration data to facilitate the remote end to judge whether the current upgrade is suitable. For example, the upgrade time is 1 hour, but the remote end will carry out experiments such as gravitational wave test after 5 minutes, which requires high-precision time, so it is not suitable to upgrade at this time.

响应于接收到升级确认消息时,判断MAC地址是否有升级权限, 若是,则发送升级数据包至对应的通信端口;In response to receiving the upgrade confirmation message, it is judged whether the MAC address has the upgrade authority, and if so, the upgrade data packet is sent to the corresponding communication port;

当第一控制器收到升级确认消息时,表明远程端具备升级条件,并且 链路处于开启状态,此时需要进一步判断远程端提供的MAC地址是否有升 级权限。由于远程端为主备两个设备进行切换工作,而提供的MAC地址为 备用设备地址,与第一控制器未有直接交互,因此需要进行识别后才能进 行数据发送,需要说明的是,远程端的主备设备在启用时,其MAC地址就 记录在第一控制器的列表中,该列表记录了每个MAC对应的升级权限,方 便进行判断。When the first controller received the upgrade confirmation message, it indicated that the remote end possessed the upgrade condition, and the link was in an open state. At this moment, it is necessary to further judge whether the MAC address provided by the remote end has the upgrade authority. Since the remote end switches between the main and standby devices, and the MAC address provided is the address of the backup device, and has no direct interaction with the first controller, it needs to be identified before data can be sent. It should be noted that the remote end’s When the active and standby devices are enabled, their MAC addresses are recorded in the list of the first controller, and the list records the upgrade authority corresponding to each MAC, which is convenient for judgment.

所述远程端设备包括:The remote end equipment includes:

主控制器,用于接收升级请求消息;The main controller is used to receive the upgrade request message;

判断当前版本号、预升级版本号、升级时长均满足升级要求时, 向备用控制器发送开启命令以获取备用控制器的MAC地址和通信端口号;When judging that the current version number, pre-upgrade version number, and upgrade duration all meet the upgrade requirements, send an open command to the standby controller to obtain the MAC address and communication port number of the standby controller;

在主控制器进行授时时,备用控制器暂时不需要进行操作,此时备用 控制器处于关闭或休眠的状态直到被唤醒。由于满足升级条件,主控制器 向备用控制器发送开启命令以进行唤醒,通过获取备用控制器的MAC地址 和通信端口号便于后续接收升级数据包。When the main controller is timing, the standby controller does not need to operate temporarily, and the standby controller is in the shutdown or sleep state until it is woken up. Since the upgrade condition is met, the main controller sends an opening command to the standby controller to wake up, and obtains the MAC address and communication port number of the standby controller to facilitate subsequent reception of upgrade packets.

如果当前版本号、预升级版本号满足要求,但升级时长不满足升级要 求时,向第一控制器发送延迟升级消息,第一控制器接收到延迟升级消息 时,记录该主控制器的地址,每隔2小时间隔继续向该设备发送升级请求消 息,直到升级完成,或者主控制器在具备升级条件时,向第一控制器发送 预升级升级请求,以使第一控制器发送升级请求消息至该主控制器。If the current version number and pre-upgrade version number meet the requirements, but the upgrade time does not meet the upgrade requirements, send a delayed upgrade message to the first controller, and when the first controller receives the delayed upgrade message, record the address of the main controller, Continue to send an upgrade request message to the device every 2 hours until the upgrade is complete, or when the main controller meets the upgrade conditions, it sends a pre-upgrade upgrade request to the first controller, so that the first controller sends an upgrade request message to the master controller.

响应于接收到所述MAC地址和所述通信端口号,向所述第一控制 器反馈升级确认消息,其中所述升级确认消息包括备用控制器的MAC地址 和通信端口号;In response to receiving the MAC address and the communication port number, feeding back an upgrade confirmation message to the first controller, wherein the upgrade confirmation message includes the MAC address and the communication port number of the backup controller;

主控制器接收到MAC地址和通信端口号后向第一控制器反馈升级确认 消息,表明准备工作已经就绪,可以进行升级。After the main controller receives the MAC address and the communication port number, it feeds back an upgrade confirmation message to the first controller, indicating that the preparations are ready and the upgrade can be performed.

备用控制器,用于在升级完成时,向所述第一控制器和守时模块 发送切换信息,以使所述第一控制器在切换期间,停止向主控制器发送授 时数据,并且在切换完成后向备用控制器发送授时数据;The standby controller is configured to send switching information to the first controller and the timing module when the upgrade is completed, so that the first controller stops sending timing data to the main controller during the switching period, and After completion, send timing data to the standby controller;

备用控制器在接收到升级数据包后,即可自行进行升级操作,此时, 主控制器依旧和本地端进行授时数据交互,保证授时不中断,待备用控制 器升级完成后,表明备用控制器具备与本地端交互的条件,此时升级后的 备用控制器采用更新的版本与本地端进行交互,初始交互完成后,备用控 制器即可替代主控制器作为新的主控制器进行工作,此后授时继续正常进 行。在进行主备切换期间,由于无法进行标准时间的授时操作,因此通过守时模块进行授时,在切换期间采用高稳压晶振和锁相环进行本地守时, 并且在切换完成后停止本地守时,进行本地端过来的标准时间的同步跟踪, 本实施例中,可以认为,如果高稳压晶振和锁相环构成的守时模块的稳定 度指标优于3E-10@1day指标时,即可认为是该晶振为高稳压晶振。具体的, 利用晶振和锁相环构成的守时模块,将最后接收到的授时信号作为基准进 行本地守时。需要说明的是,由于本地守时过程中,随着时间持续越久, 守时的精度越低,因此在高精度的场景下,如果判断升级时长过长,则可 以发送延迟升级消息。备用控制器向第一控制器发送切换信息后,第一控 制器停止向主控制器发送授时数据,备用控制器向守时模块发送切换信息 后,守时模块临时进行保持,进行授时任务。After the backup controller receives the upgrade data package, it can perform the upgrade operation by itself. At this time, the master controller still interacts with the local terminal to ensure that the time service is not interrupted. After the upgrade of the backup controller is completed, it indicates that the backup controller It has the conditions to interact with the local side. At this time, the upgraded standby controller uses the updated version to interact with the local side. After the initial interaction is completed, the standby controller can replace the main controller and work as the new main controller. After that Timing continues as normal. During the master-standby switchover, since the timing operation of the standard time cannot be performed, the timekeeping module is used for timekeeping. During the switchover, the high-voltage crystal oscillator and the phase-locked loop are used for local timekeeping, and the local timekeeping is stopped after the switchover is completed. , to perform synchronous tracking of the standard time from the local end. In this embodiment, it can be considered that if the stability index of the time-keeping module composed of the high-voltage crystal oscillator and the phase-locked loop is better than the 3E-10@1day index, then It is considered that the crystal oscillator is a high-voltage regulated crystal oscillator. Specifically, the timing module composed of a crystal oscillator and a phase-locked loop is used, and the last received timing signal is used as a reference for local timing. It should be noted that in the local time keeping process, the longer the time lasts, the lower the time keeping accuracy. Therefore, in a high-precision scenario, if the upgrade time is judged to be too long, a delayed upgrade message can be sent. After the backup controller sends the switching information to the first controller, the first controller stops sending timing data to the main controller, and after the backup controller sends the switching information to the timing module, the timing module temporarily maintains and performs timing tasks.

在一个具体实施方式中,所述升级请求消息还包括升级内容标识;相 应的,In a specific implementation manner, the upgrade request message also includes an upgrade content identifier; correspondingly,

主控制器用于判断所述升级内容标识为秘钥权限升级时,检测解密模 块数量以确定硬件条件满足要求后进行升级。When the main controller is used to judge that the upgrade content is identified as an upgrade of the secret key authority, it detects the number of decryption modules to determine that the hardware conditions meet the requirements before upgrading.

为了进一步优化升级过程,本实施例增加了升级内容标识,升级内容 表示用于表征升级版本的内容,需要说明的是,由于部分授时数据有加密 的要求,对于升级加密版本的情况,需要优先判断解密模块是否安装到位, 如果未安装解密模块,或者解密模块不符合升级版本要求,强行升级后可 能导致数据无法解析或者升级后无法达到相应效果的情况。In order to further optimize the upgrade process, this embodiment adds an upgrade content identifier. The upgrade content indicates the content used to represent the upgrade version. It should be noted that, since some timing data has encryption requirements, it is necessary to prioritize judgment when upgrading the encrypted version. Whether the decryption module is installed in place, if the decryption module is not installed, or the decryption module does not meet the requirements of the upgraded version, the forced upgrade may cause the data to be unable to be parsed or the corresponding effect cannot be achieved after the upgrade.

由于比对数据的精度决定了远程端能够获得的时间的精度,因此根据 授时精度要求对比对数据进行加密,使远程端只能解密到相应的字段,从 而确保数据的安全性。一般的,民用设备精度要求为us级别,更高级的要求 可以到ns,ps级别,通过对比对数据进行加密,使得远程端只能解密到对应 精度的数据位。而对于ns,ps级别的解密,一需要增加相应的解密模块才能 实现,例如升级前只支持us级别,如果升级的版本需要的权限为ns级别,这 时,应该具备ns级别相应数量的解密模块才可解密,如果不满足,则不进行 升级,直到检测到满足条件。优选的,升级内容标识为秘钥权限升级时, 升级内容标识还包括解密模块的型号,以使所述主控制器判断解密模块的 型号是否与升级内容标识中的型号一致。Since the accuracy of the comparison data determines the accuracy of the time that the remote end can obtain, the comparison data is encrypted according to the timing accuracy requirements, so that the remote end can only decrypt the corresponding fields, thereby ensuring data security. Generally, the accuracy requirement of civil equipment is us level, and the higher level requirement can reach ns, ps level, and the data is encrypted by comparison, so that the remote end can only decrypt the data bits corresponding to the accuracy. For the decryption of ns and ps levels, one needs to add the corresponding decryption module to realize it. For example, only the us level is supported before the upgrade. If the upgraded version requires the permission of the ns level, at this time, there should be a corresponding number of decryption modules of the ns level. It can only be decrypted. If it is not satisfied, it will not be upgraded until it is detected that the condition is met. Preferably, when the upgrade content identification is the key authority upgrade, the upgrade content identification also includes the model of the decryption module, so that the main controller can judge whether the model of the decryption module is consistent with the model in the upgrade content identification.

在一个具体实施方式中,所述主控制器还用于在切换完成后,向备用 控制器获取升级数据包进行升级,并在升级完成后关闭与第一控制器的授 时通道。在备用控制器升级完成后,主控制器版本还是旧版本,因此需要 向备用控制器获取升级数据包进行升级,使得两者版本相同,以便下次升 级时,该主控制器版本满足升级要求。同时,两个主备控制器互为主备, 在一个芯片出现故障时,可以进行切换,不会导致授时设备无法正常工作。In a specific embodiment, the master controller is further configured to obtain an upgrade data packet from the standby controller for upgrade after the switch is completed, and close the timing channel with the first controller after the upgrade is completed. After the upgrade of the standby controller is completed, the version of the main controller is still the old version, so it is necessary to obtain the upgrade data package from the standby controller to upgrade, so that the two versions are the same, so that the version of the main controller meets the upgrade requirements in the next upgrade. At the same time, the two active and standby controllers are active and standby for each other. When a chip fails, it can be switched without causing the timing device to fail to work normally.

在一个具体实施方式中,所述第一控制器通过授时信号帧发送升级请 求消息,其中,所述授时信号帧包括授时字段和升级请求字段,所述升级 请求字段包括升级请求消息;In a specific embodiment, the first controller sends an upgrade request message through a timing signal frame, wherein the timing signal frame includes a timing field and an upgrade request field, and the upgrade request field includes an upgrade request message;

相应的,所述主控制器接收到所述授时信号帧时,判断所述升级请求 字段为空时,进行授时操作,判断所述升级请求字段包括升级请求消息时, 进行升级操作。Correspondingly, when the main controller receives the timing signal frame, it judges that the upgrade request field is empty, and performs a timing operation, and when it judges that the upgrade request field includes an upgrade request message, performs an upgrade operation.

请参见图3,本发明同时提供一种基于光纤授时的远程升级方法,应用 于本地端,包括:Please refer to Fig. 3, the present invention simultaneously provides a kind of remote upgrade method based on optical fiber timing, applied to the local end, including:

S21、发送升级请求消息至每个所述远程端设备,其中,所述升级请求 消息包括当前版本号、预升级版本号、升级时长,所述远程端设备包括主 控制器和备用控制器;S21. Send an upgrade request message to each of the remote end devices, wherein the upgrade request message includes a current version number, a pre-upgrade version number, and an upgrade duration, and the remote end device includes a master controller and a backup controller;

S22、响应于接收到远程端设备发送的升级确认消息时,判断远程端设 备的MAC地址是否有升级权限,若是,则发送升级数据包至对应的通信端 口。S22. In response to receiving the upgrade confirmation message sent by the remote device, determine whether the MAC address of the remote device has the upgrade authority, and if so, send the upgrade packet to the corresponding communication port.

S23、响应于接收到切换信息时,停止向主控制器发送授时数据,并且 在切换完成后,向备用控制器发送授时数据。S23. Stop sending timing data to the master controller in response to receiving the switching information, and send timing data to the standby controller after the switching is completed.

请参见图4,本发明同时提供一种基于光纤授时的远程升级方法,应用 于远程端,所述远程端包括主控制器、备用控制器和守时模块;该方法包 括:Please refer to Fig. 4, the present invention provides a kind of remote upgrading method based on optical fiber time service simultaneously, is applied to remote end, and described remote end comprises main controller, standby controller and time keeping module; The method comprises:

主控制器接收升级请求消息;The main controller receives the upgrade request message;

判断当前版本号、预升级版本号、升级时长均满足升级要求时,向备 用控制器发送开启命令以获取备用控制器的MAC地址和通信端口号;When judging that the current version number, pre-upgrade version number, and upgrade duration all meet the upgrade requirements, send an open command to the standby controller to obtain the MAC address and communication port number of the standby controller;

响应于接收到所述MAC地址和所述通信端口号,向本地端设备升级确 认消息,其中所述升级确认消息包括备用控制器的MAC地址和通信端口号;In response to receiving the MAC address and the communication port number, upgrade a confirmation message to the local device, wherein the upgrade confirmation message includes the MAC address and the communication port number of the standby controller;

备用控制器在升级完成时,向本地端设备和守时模块发送切换信息, 以使本地端设备在切换期间,停止向主控制器发送授时数据,并且在切换 完成后向备用控制器发送授时数据;When the upgrade is completed, the standby controller sends switching information to the local device and the timing module, so that the local device stops sending timing data to the master controller during the switching period, and sends timing data to the standby controller after the switching is completed ;

守时模块在切换期间进行本地守时,并且在切换完成后停止本地守时, 进行本地端标准时间的同步跟踪。The timekeeping module performs local timekeeping during the switching period, and stops the local timekeeping after the switching is completed, and performs synchronous tracking of the local standard time.

在一个具体实施方式中,所述升级请求消息还包括升级内容标识;相 应的,In a specific implementation manner, the upgrade request message also includes an upgrade content identifier; correspondingly,

主控制器判断所述升级内容标识为秘钥权限升级时,检测解密模块数 量以确定硬件条件满足要求后进行升级。When the main controller judges that the upgrade content is identified as an upgrade of the secret key authority, it detects the number of decryption modules to determine that the hardware conditions meet the requirements before upgrading.

在一个具体实施方式中,在切换完成后,主控制器向备用控制器获取 升级数据包进行升级,并在升级完成后关闭与本地端的授时通道。In a specific embodiment, after the switching is completed, the master controller obtains the upgrade data packet from the standby controller to upgrade, and closes the timing channel with the local end after the upgrade is completed.

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、 “示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或 示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施 例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相 同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。此外,本领域的技 术人员可以将本说明书中描述的不同实施例或示例进行接合和组合。In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. In addition, those skilled in the art can combine and combine different embodiments or examples described in this specification.

尽管在此结合各实施例对本申请进行了描述,然而,在实施所要求保 护的本申请过程中,本领域技术人员通过查看所述附图、公开内容、以及 所附权利要求书,可理解并实现所述公开实施例的其他变化。在权利要求 中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一 个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举 的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表 示这些措施不能组合起来产生良好的效果。Although the present application has been described in conjunction with various embodiments here, however, in the process of implementing the claimed application, those skilled in the art can understand and Other variations of the disclosed embodiments are implemented. In the claims, the word "comprising" does not exclude other elements or steps, and "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that these measures cannot be combined to advantage.

本领域技术人员应明白,本申请的实施例可提供为方法、装置(设备)、 或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施 例、或结合软件和硬件方面的实施例的形式,这里将它们都统称为“模块” 或“系统”。而且,本申请可采用在一个或多个其中包含有计算机可用程序代 码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储 器等)上实施的计算机程序产品的形式。计算机程序存储/分布在合适的介质 中,与其它硬件一起提供或作为硬件的一部分,也可以采用其他分布形式, 如通过Internet或其它有线或无线电信系统。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, devices (devices), or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects, all of which are collectively referred to herein as "modules" or "systems." Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein. The computer program is stored/distributed on suitable media, supplied with or as part of other hardware, and may also take other forms of distribution, such as via the Internet or other wired or wireless telecommunication systems.

本申请是参照本申请实施例的方法、装置(设备)和计算机程序产品的流 程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方 框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的 结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处 理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算 机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图 一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to the flowcharts and/or block diagrams of the methods, apparatuses (devices) and computer program products of the embodiments of the present application. It should be understood that each process and/or block in the flowchart and/or block diagrams, and a combination of processes and/or blocks in the flowchart and/or block diagrams can be implemented by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理 设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存 储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个 流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上, 使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现 的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流 程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的 步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, whereby the The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

以上内容是结合具体的优选实施方式对本发明所作的进一步详细说明, 不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域 的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简 单推演或替换,都应当视为属于本发明的保护范围。The above content is a further detailed description of the present invention in conjunction with specific preferred embodiments, and it cannot be assumed that the specific implementation of the present invention is limited to these descriptions. For those of ordinary skill in the technical field of the present invention, without departing from the concept of the present invention, some simple deduction or replacement can also be made, which should be regarded as belonging to the protection scope of the present invention.

Claims (8)

1. The remote upgrading system based on the optical fiber time service is characterized by comprising local end equipment and a plurality of remote end equipment, wherein the local end equipment and the remote end equipment are communicated through an optical fiber link, the optical fiber link comprises a time service channel and a data transmission channel, the time service channel is used for transmitting time service information, and the data transmission channel is used for transmitting an upgrading data packet;
the local side device comprises:
the first controller is used for sending an upgrade request message to each remote terminal device, wherein the upgrade request message comprises a current version number, a pre-upgrade version number and an upgrade duration;
judging whether the MAC address has upgrading authority or not in response to receiving the upgrading confirmation message, and if so, sending an upgrading data packet to a corresponding communication port;
the remote end device includes:
the main controller is used for receiving the upgrade request message;
when judging that the current version number, the pre-upgrading version number and the upgrading time length all meet the upgrading requirements, sending an opening command to the standby controller to acquire the MAC address and the communication port number of the standby controller;
in response to receiving the MAC address and the communication port number, feeding back an upgrade confirmation message to the first controller, wherein the upgrade confirmation message includes a MAC address and a communication port number of a standby controller;
the standby controller is used for sending switching information to the first controller and the timekeeping module when the upgrading is finished, so that the first controller stops sending time service data to the main controller during switching, and sends the time service data to the standby controller after the switching is finished;
the time keeping module is used for carrying out local time keeping by adopting the high-voltage-stabilizing crystal oscillator and the phase-locked loop during switching, stopping local time keeping after switching is finished, and carrying out time synchronization tracking on a first controller of a local terminal.
2. The fiber time based remote upgrade system according to claim 1, wherein the upgrade request message further comprises an upgrade content identification; in a corresponding manner,
and the main controller is used for detecting the number of decryption modules to determine that the hardware condition meets the requirement and then upgrading the hardware condition when judging that the upgrading content identifier is the key authority upgrading.
3. The remote upgrade system according to claim 1, wherein the main controller is further configured to obtain an upgrade data packet from the standby controller for upgrade after the handover is completed, and close the time service channel with the first controller after the upgrade is completed.
4. The remote upgrade system based on fiber optic time service according to claim 1, wherein,
the first controller sends an upgrade request message through a time service signal frame, wherein the time service signal frame comprises a time service field and an upgrade request field, and the upgrade request field comprises an upgrade request message;
correspondingly, when the master controller receives the time service signal frame, judging that the upgrading request field is empty, performing time service operation, and when judging that the upgrading request field comprises the upgrading request message, performing upgrading operation.
5. The remote upgrading method based on the optical fiber time service is characterized by being applied to the remote upgrading system based on the optical fiber time service as claimed in claim 1, wherein the local side method comprises the following steps:
transmitting an upgrade request message to each remote terminal device, wherein the upgrade request message comprises a current version number, a pre-upgrade version number and an upgrade duration, and the remote terminal device comprises a main controller and a standby controller;
judging whether the MAC address of the remote terminal equipment has upgrading authority or not when receiving the upgrading confirmation message sent by the remote terminal equipment, and if so, sending an upgrading data packet to a corresponding communication port;
and stopping sending the time service data to the main controller in response to receiving the switching information, and sending the time service data to the standby controller after the switching is completed.
6. The remote upgrading method based on the optical fiber time service is characterized by being applied to the remote upgrading system based on the optical fiber time service as claimed in claim 1, wherein the remote terminal comprises a main controller, a standby controller and a timekeeping module; the remote end method comprises the following steps:
the main controller receives the upgrade request message;
when judging that the current version number, the pre-upgrading version number and the upgrading time length all meet the upgrading requirements, sending an opening command to the standby controller to acquire the MAC address and the communication port number of the standby controller;
in response to receiving the MAC address and the communication port number, upgrading an acknowledgment message to the local end device, wherein the upgrade acknowledgment message includes the MAC address and the communication port number of the standby controller;
when the upgrading is finished, the standby controller sends switching information to the local terminal equipment and the timekeeping module, so that the local terminal equipment stops sending time service data to the main controller during switching, and sends the time service data to the standby controller after the switching is finished;
and during the switching period, a time keeping module formed by the high-voltage-stabilizing crystal oscillator and the phase-locked loop is adopted for local time keeping, the local time keeping is stopped after the switching is finished, and the first controller of the local terminal is subjected to time synchronization tracking.
7. The method for remote upgrade based on fiber optic time service according to claim 6, wherein the upgrade request message further comprises an upgrade content identification; in a corresponding manner,
and when the main controller judges that the upgrading content mark is the key authority upgrading, detecting the number of decryption modules to determine that the hardware condition meets the requirement, and upgrading.
8. The remote upgrading method based on fiber time service according to claim 6, wherein after the switching is completed, the main controller obtains an upgrading data packet from the standby controller to upgrade, and closes a time service channel with the local terminal after the upgrading is completed.
CN202210301532.3A 2022-03-25 2022-03-25 A remote upgrade method and system based on optical fiber timing Active CN114745362B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210301532.3A CN114745362B (en) 2022-03-25 2022-03-25 A remote upgrade method and system based on optical fiber timing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210301532.3A CN114745362B (en) 2022-03-25 2022-03-25 A remote upgrade method and system based on optical fiber timing

Publications (2)

Publication Number Publication Date
CN114745362A CN114745362A (en) 2022-07-12
CN114745362B true CN114745362B (en) 2023-08-29

Family

ID=82276641

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210301532.3A Active CN114745362B (en) 2022-03-25 2022-03-25 A remote upgrade method and system based on optical fiber timing

Country Status (1)

Country Link
CN (1) CN114745362B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115642979B (en) * 2022-10-19 2024-12-06 中国科学院国家授时中心 A dual-mode timing method and system based on optical fiber

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729948A (en) * 2009-12-02 2010-06-09 中兴通讯股份有限公司 Remote upgrading method and system
CN102394699A (en) * 2011-12-07 2012-03-28 深圳市零一通信技术有限公司 Digital fiber repeater system remote upgrading method
CN104320475A (en) * 2014-10-31 2015-01-28 杭州华三通信技术有限公司 Equipment upgrading method and device
CN104993896A (en) * 2015-05-14 2015-10-21 四川泰富地面北斗科技股份有限公司 Time-giving system composed of dedicated optical route and method for implementing same
WO2017133472A1 (en) * 2016-02-02 2017-08-10 上海交通大学 High-precision optical fiber time transmission bi-directional optical amplification method and device
CN107919984A (en) * 2017-11-06 2018-04-17 深圳狗尾草智能科技有限公司 Possess the O&M server and its management method of automatic upgrade function
CN110177022A (en) * 2019-06-28 2019-08-27 武汉虹信通信技术有限责任公司 Tree-like optical fiber distribution system the whole network upgrade control method and device
CN112866098A (en) * 2020-12-31 2021-05-28 泰康保险集团股份有限公司 Gateway time service method, device, electronic equipment and computer readable medium
CN113347699A (en) * 2021-06-11 2021-09-03 四川泰富地面北斗科技股份有限公司 Base station optical fiber time service system based on BD/GPS double antennas
CN113534657A (en) * 2021-08-05 2021-10-22 浙江中控技术股份有限公司 Self-adaptive adjustment method for local clock of industrial control system
CN113810121A (en) * 2021-09-02 2021-12-17 中国科学院国家授时中心 Optical fiber time synchronization method and system based on encrypted communication

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729948A (en) * 2009-12-02 2010-06-09 中兴通讯股份有限公司 Remote upgrading method and system
CN102394699A (en) * 2011-12-07 2012-03-28 深圳市零一通信技术有限公司 Digital fiber repeater system remote upgrading method
CN104320475A (en) * 2014-10-31 2015-01-28 杭州华三通信技术有限公司 Equipment upgrading method and device
CN104993896A (en) * 2015-05-14 2015-10-21 四川泰富地面北斗科技股份有限公司 Time-giving system composed of dedicated optical route and method for implementing same
WO2017133472A1 (en) * 2016-02-02 2017-08-10 上海交通大学 High-precision optical fiber time transmission bi-directional optical amplification method and device
CN107919984A (en) * 2017-11-06 2018-04-17 深圳狗尾草智能科技有限公司 Possess the O&M server and its management method of automatic upgrade function
CN110177022A (en) * 2019-06-28 2019-08-27 武汉虹信通信技术有限责任公司 Tree-like optical fiber distribution system the whole network upgrade control method and device
CN112866098A (en) * 2020-12-31 2021-05-28 泰康保险集团股份有限公司 Gateway time service method, device, electronic equipment and computer readable medium
CN113347699A (en) * 2021-06-11 2021-09-03 四川泰富地面北斗科技股份有限公司 Base station optical fiber time service system based on BD/GPS double antennas
CN113534657A (en) * 2021-08-05 2021-10-22 浙江中控技术股份有限公司 Self-adaptive adjustment method for local clock of industrial control system
CN113810121A (en) * 2021-09-02 2021-12-17 中国科学院国家授时中心 Optical fiber time synchronization method and system based on encrypted communication

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于光纤技术的电能信息采集系统设计;郑国权;《激光杂志》;全文 *

Also Published As

Publication number Publication date
CN114745362A (en) 2022-07-12

Similar Documents

Publication Publication Date Title
US9037844B2 (en) System and method for securely communicating with electronic meters
CN102870393B (en) Communications method for optical communications system, optical communications system, secondary station device, control device and program
US8719170B2 (en) Method and system for transferring software and hardware feature licenses between devices
CN101404618B (en) System, apparatus and method for implementing transparent transmission clock in accurate clock synchronization protocol
CN103108262B (en) The method of optical network unit configuration file upgrading in GPON system
CN107579863A (en) Terminal OTA upgrade methods, apparatus and system
CN101511042B (en) Data synchronization method and device
CN1979514B (en) Method and apparatus for implementing secure clock of device without internal power source
CN101595667A (en) Facilitates synchronization of servers in a coordinated timing network
CN114745362B (en) A remote upgrade method and system based on optical fiber timing
CN107666384A (en) Update the method and apparatus of encryption key
CN103188064A (en) Clock synchronization method and clock synchronization device
CN103024065A (en) System configuration management method for cloud storage system
JPH11154920A (en) Clock synchronizing method for synchronizing-type base station control system and its synchronizing device
CN103517164A (en) Data configuring and controlling method for optical network unit
CN113810121A (en) Optical fiber time synchronization method and system based on encrypted communication
CN107248983B (en) Real-time timing system for projector
CN103686300B (en) The synchronous method and system of business guide
CN113918202B (en) Method and equipment for supporting IAP function for remotely upgrading firmware by singlechip
US11815975B2 (en) Devices with removable smart cards
US11016746B2 (en) Method and apparatus for remotely updating satellite devices
CN115086955B (en) Time synchronization system and method for wireless half-duplex communication of industrial control system
JP2014064122A (en) Data transmitter, program, and communication system
CN103475465A (en) MACsec key update method and device in ISSU process
CN101009600A (en) Log backup method and system unit and device for implementing the same

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