[go: up one dir, main page]

CN113037372B - Time-triggered passive optical bus and implementation method thereof - Google Patents

Time-triggered passive optical bus and implementation method thereof Download PDF

Info

Publication number
CN113037372B
CN113037372B CN202110275633.3A CN202110275633A CN113037372B CN 113037372 B CN113037372 B CN 113037372B CN 202110275633 A CN202110275633 A CN 202110275633A CN 113037372 B CN113037372 B CN 113037372B
Authority
CN
China
Prior art keywords
optical bus
frame
optical
time
bus connector
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
CN202110275633.3A
Other languages
Chinese (zh)
Other versions
CN113037372A (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.)
University of Electronic Science and Technology of China
Xian Flight Automatic Control Research Institute of AVIC
Original Assignee
University of Electronic Science and Technology of China
Xian Flight Automatic Control Research Institute of AVIC
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 University of Electronic Science and Technology of China, Xian Flight Automatic Control Research Institute of AVIC filed Critical University of Electronic Science and Technology of China
Priority to CN202110275633.3A priority Critical patent/CN113037372B/en
Publication of CN113037372A publication Critical patent/CN113037372A/en
Application granted granted Critical
Publication of CN113037372B publication Critical patent/CN113037372B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/079Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
    • H04B10/0795Performance monitoring; Measurement of transmission parameters

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Optical Communication System (AREA)

Abstract

本发明公开了一种时间触发无源光总线及其实现方法,涉及基于光的时间触发总线领域,目的是提供重量较轻且规避了冷启动阶段发生碰撞的总线,包括第一光总线连接器、第二光总线连接器、多个光总线终端控制器、第一光分路器和第二光分路器;每个光总线终端控制器有两个端口,两个端口分别连接到两个光分路器;每个光总线连接器有2个光纤端口,第一光总线连接器的一个端口连接第一光分路器,第二光总线连接器的一个端口连接第二光分路器,第一光总线连接器的另一个端口与第二光总线连接器的另一个端口相连,同时提供相应的实现方法,实现了一种降低机身重量和布线难度、抗干扰能力较强且避免冷启动阶段发送碰撞的总线。

Figure 202110275633

The invention discloses a time-triggered passive optical bus and an implementation method thereof, and relates to the field of light-based time-triggered buses. , a second optical bus connector, a plurality of optical bus terminal controllers, a first optical splitter and a second optical splitter; each optical bus terminal controller has two ports, and the two ports are connected to two Optical splitter; each optical bus connector has 2 optical fiber ports, one port of the first optical bus connector is connected to the first optical splitter, and one port of the second optical bus connector is connected to the second optical splitter , the other port of the first optical bus connector is connected to the other port of the second optical bus connector, and a corresponding implementation method is provided at the same time, which realizes a reduction in the weight of the body and the difficulty of wiring, strong anti-interference ability and avoidance of The cold start phase sends the collided bus.

Figure 202110275633

Description

一种时间触发无源光总线及其实现方法A time-triggered passive optical bus and its realization method

技术领域technical field

本发明涉及基于光的时间触发总线领域,尤其涉及一种时间触发无源光总线及其实现方法。The invention relates to the field of light-based time-triggered buses, in particular to a time-triggered passive optical bus and an implementation method thereof.

背景技术Background technique

光纤即为光导纤维的简称。光纤通信是以光波作为信息载体,以光纤作为传输媒介的一种通信方式。从原理上看,构成光纤通信的基本物质要素是光纤、光源和光检测器。光纤通信是利用光波作载波,以光纤作为传输媒质将信息从一处传至另一处的通信方式,被称之为“有线”光通信。当今,光纤以其传输频带宽、抗干扰性高和信号衰减小,而远优于电缆、微波通信的传输,已成为世界通信中主要传输方式。Optical fiber is short for optical fiber. Optical fiber communication is a communication method in which light waves are used as information carriers and optical fibers are used as transmission media. In principle, the basic material elements that constitute optical fiber communication are optical fibers, light sources and photodetectors. Optical fiber communication is a communication method in which light waves are used as carriers and optical fibers are used as transmission media to transmit information from one place to another. It is called "wired" optical communication. Today, optical fiber is far superior to the transmission of cable and microwave communication because of its transmission frequency bandwidth, high anti-interference and low signal attenuation, and has become the main transmission method in world communication.

TTA(Time-Triggered Architecture,时间触发构架)的通信组织方式是通过TDMA(Time Division Multiple Address时分多路复用)实现的,每个通信设备在时间轴上指定的时间槽(slot)发送信息。TTA架构基于全局同步时钟,采用预先设计的静态全局调度列表驱动TDMA模式的数据传输,与外部事件无关。这种传输模式使得TTA能以最小的抖动和可预测的延时在设备间提供数据传输服务,并避免总线冲突。现有技术中实现时间触发架构的技术众多,其中专利号CN103850802A、专利名称为:基于时间触发协议TTP/C总线的电子控制器及FADEC系统的专利公开了一种基于TTP/C的总线的电子控制器,以及该控制器与多种功能模块的连接关系,通过TTP/C总线的电子控制器,实现TTP/C总线冗余,完成时间同步功能,以及功能子板间数据交换。The communication organization mode of TTA (Time-Triggered Architecture, time-triggered architecture) is realized by TDMA (Time Division Multiple Address), and each communication device sends information in a designated time slot (slot) on the time axis. The TTA architecture is based on a global synchronous clock and uses a pre-designed static global scheduling list to drive data transmission in TDMA mode, independent of external events. This transmission mode enables TTA to provide data transmission services between devices with minimal jitter and predictable delay, and avoid bus collisions. There are many technologies for realizing the time-triggered architecture in the prior art, among which the patent number CN103850802A and the patent name are: The patent of the electronic controller based on the time-triggered protocol TTP/C bus and the FADEC system discloses an electronic controller based on the TTP/C bus. The controller, and the connection relationship between the controller and various functional modules, through the electronic controller of the TTP/C bus, realizes the redundancy of the TTP/C bus, completes the time synchronization function, and exchanges data between the functional sub-boards.

目前针对时间触发架构总线协议,大都采用TTP/C协议,以电缆为媒介完成的。而一般的电缆链路如RS485,CAN的速率有限,难以满足高速的数据传输需求。同时电缆较光纤重量较重,过长的电缆会增加机身整体重量。并且由于总线的特性,使得冲突避免也成为了需要兼顾考虑的问题。对于Configuration Data的配置比较繁琐,需要逐一设备进行配置。At present, for the time-triggered architecture bus protocol, most of them use the TTP/C protocol, which is completed with the cable as the medium. And general cable links such as RS485, CAN speed is limited, it is difficult to meet the high-speed data transmission requirements. At the same time, the cable is heavier than the optical fiber, and the cable that is too long will increase the overall weight of the fuselage. And due to the characteristics of the bus, conflict avoidance has also become a problem that needs to be considered. The configuration of Configuration Data is cumbersome and needs to be configured one by one.

发明内容SUMMARY OF THE INVENTION

本发明公开了一种时间触发无源光总线,目的是提供重量较轻、提高带宽、且规避了冷启动阶段发生碰撞的总线。The invention discloses a time-triggered passive optical bus, which aims to provide a bus that is lighter in weight, improves bandwidth, and avoids collision in the cold start stage.

为了解决上述问题,本发明采取了以下技术方案:In order to solve the above problems, the present invention has adopted the following technical solutions:

一种时间触发无源光总线,包括第一光总线连接器、第二光总线连接器、多个光总线终端控制器、第一光分路器和第二光分路器;每个光总线终端控制器有两个端口,两个端口分别连接到第一光分路器和第二光分路器;每个光总线连接器有2个光纤端口,第一光总线连接器的一个端口连接第一光分路器,第二光总线连接器的一个端口连接第二光分路器,第一光总线连接器的另一个端口与第二光总线连接器的另一个端口相连。A time-triggered passive optical bus includes a first optical bus connector, a second optical bus connector, a plurality of optical bus terminal controllers, a first optical splitter and a second optical splitter; each optical bus The terminal controller has two ports, and the two ports are respectively connected to the first optical splitter and the second optical splitter; each optical bus connector has 2 optical fiber ports, and one port of the first optical bus connector is connected In the first optical splitter, one port of the second optical bus connector is connected to the second optical splitter, and the other port of the first optical bus connector is connected to the other port of the second optical bus connector.

所述光总线连接器均设置有光总线连接器状态控制单元,所述光总线终端控制器均设置有光总线终端控制器状态控制单元。Each of the optical bus connectors is provided with an optical bus connector state control unit, and each of the optical bus terminal controllers is provided with an optical bus terminal controller state control unit.

本发明还公开了一种时间触发无源光总线的实现方法,应用于以上所述的一种时间触发无源光总线,所述总线包括两个光总线连接器、多个光总线终端控制器、两个光分路器,所述光总线连接器均设置有光总线连接器状态控制单元,所述光总线终端控制器均设置有光总线终端控制器状态控制单元,两个光总线连接器记为第一光总线连接器、第二光总线连接器,两个光分路器记为第一光分路器和第二光分路器,包括以下步骤:The invention also discloses a method for realizing a time-triggered passive optical bus, which is applied to the above-mentioned time-triggered passive optical bus. The bus includes two optical bus connectors and a plurality of optical bus terminal controllers. , two optical splitters, the optical bus connectors are all provided with an optical bus connector state control unit, the optical bus terminal controllers are all provided with an optical bus terminal controller state control unit, two optical bus connectors Denoted as the first optical bus connector and the second optical bus connector, and the two optical splitters are denoted as the first optical splitter and the second optical splitter, including the following steps:

S1:初始化设备,加载光总线连接器状态控制单元和光总线终端控制器状态控制单元;S1: Initialize the device, load the optical bus connector state control unit and the optical bus terminal controller state control unit;

S2:打开光总线连接器状态控制单元或光总线终端控制器状态控制单元的状态控制逻辑;S2: Open the state control logic of the optical bus connector state control unit or the optical bus terminal controller state control unit;

S3:等待生成链路拓扑,等待链路时间参数测量完成;S3: Wait for the link topology to be generated, and wait for the link time parameter measurement to be completed;

S4:完成光总线终端控制器配置,完成冷启动过程;S4: Complete the configuration of the optical bus terminal controller, and complete the cold start process;

S5:维护链路拓扑,进行OTTB_FRAME的传输。S5: Maintain the link topology and perform OTTB_FRAME transmission.

优选地,所述光总线连接器状态控制单元的状态控制逻辑包括以下步骤,Preferably, the state control logic of the optical bus connector state control unit includes the following steps:

步骤010:默认使用第一光总线连接器发送配置数据,通过第一光分路器下发到各个节点,第二光总线连接器将来自第一光总线连接器的配置数据转发到第二光分路器,并完成对第二光分路器的链路延时信息的测量,设置本地成员向量为0,初始化设备本地时钟为0,全局使用一个本地时钟,本地时钟以Micro Clock为最小时钟周期;Step 010: By default, the first optical bus connector is used to send configuration data, which is sent to each node through the first optical splitter, and the second optical bus connector forwards the configuration data from the first optical bus connector to the second optical bus connector. Splitter, and complete the measurement of the link delay information of the second optical splitter, set the local member vector to 0, initialize the local clock of the device to 0, use a local clock globally, and use the Micro Clock as the minimum clock for the local clock cycle;

步骤020:第一光总线连接器循环向所连的第一光分路器和第二光总线连接器发送T_SYNC_FRAME帧,两个光总线连接器分别记录各自发送T_SYNC_FRAME帧的发送时刻t1,同时开始计时,等待对应设备响应或响应超时;光总线连接器收到对应设备的N_RESP_FRAME帧,停止计时,记录当前接收到N_RESP_FRAME帧的时刻t2,两个光总线连接器分别计算出各自的链路延时参数T_wiredelay=(t2-t1-t_cost)/2,其中t_cost为光总线终端控制器处理T_SYNC_FRAME所花费的时间;Step 020: The first optical bus connector cyclically sends the T_SYNC_FRAME frame to the connected first optical splitter and the second optical bus connector, and the two optical bus connectors respectively record the sending time t1 at which they send the T_SYNC_FRAME frame, and start at the same time Timing, waiting for the corresponding device to respond or the response times out; the optical bus connector receives the N_RESP_FRAME frame from the corresponding device, stops the timing, and records the time t2 when the N_RESP_FRAME frame is currently received. The two optical bus connectors calculate their respective link delays Parameter T_wiredelay=(t2-t1-t_cost)/2, where t_cost is the time spent by the optical bus terminal controller to process T_SYNC_FRAME;

步骤030:等待当前网络中所有网络设备遍历检测完成,向光总线终端控制器发送配置信息以及两个光分路器分别测量得到的链路延时参数;Step 030: Wait for the completion of the traversal detection of all network devices in the current network, and send the configuration information and the link delay parameters respectively measured by the two optical splitters to the optical bus terminal controller;

步骤040:使用本地成员向量填充ALLOW_COLDSTART_FRAME帧中的成员向量字段;Step 040: Fill the member vector field in the ALLOW_COLDSTART_FRAME frame with the local member vector;

步骤050:检测并维护拓扑;Step 050: Detect and maintain topology;

所述光总线终端控制器状态控制单元的状态控制逻辑包括以下步骤:The state control logic of the optical bus terminal controller state control unit includes the following steps:

步骤110:设置所有设备的成员向量,将自身Membership Flag对应位置为1,其他位置设为0,初始化设备本地时钟为0;Step 110: Set the member vectors of all devices, set the corresponding position of its Membership Flag to 1, other positions to 0, and initialize the local clock of the device to 0;

步骤120:分别监听两条链路上是否存在来自光总线连接器的T_SYNC_FRAME帧,并且帧中的成员向量与设备自身成员向量值相同,使用第一光总线连接器发送的T_SYNC_FRAME帧的时间信息同步本地时钟,分别处理两个链路的T_SYNC_FRAME帧,当任意链路接收到T_SYNC_FRAME帧后,立刻通过该链路发送响应报文N_RESP_FRAME;Step 120: Monitor whether there is a T_SYNC_FRAME frame from the optical bus connector on the two links respectively, and the member vector in the frame is the same as the member vector value of the device itself, and use the time information of the T_SYNC_FRAME frame sent by the first optical bus connector to synchronize. The local clock processes the T_SYNC_FRAME frames of the two links respectively. When any link receives the T_SYNC_FRAME frame, it immediately sends the response message N_RESP_FRAME through the link;

步骤130:完成响应的光总线终端控制器监听链路上属于自己的配置信息,校验自己的配置信息后,若校验通过回复CON_ACK,校验不通过则回复CON_FAIL;Step 130: The optical bus terminal controller that has completed the response monitors its own configuration information on the link, and after verifying its own configuration information, if the verification passes, it returns CON_ACK, and if the verification fails, it returns CON_FAIL;

步骤140:监听到ALLOW_COLDSTART_FRAME帧后,所有光总线终端控制器接收到含有当前网络全局视图的成员向量,至此完成冷启动过程,所有接收到ALLOW_COLDSTART_FRAME帧的光总线终端控制器将本地时钟设置为相对于光总线连接器的链路延时,同时设置当前集成周期为0,到达全局时刻GLOBAL_RESTART_POINT_TIME后,重置本地时钟为0,接着按照配置信息实现正常的通信;Step 140: After listening to the ALLOW_COLDSTART_FRAME frame, all the optical bus terminal controllers receive the member vector containing the global view of the current network, so far the cold start process is completed, and all the optical bus terminal controllers that receive the ALLOW_COLDSTART_FRAME frame The link delay of the optical bus connector is set at the same time, and the current integration cycle is set to 0. After reaching the global time GLOBAL_RESTART_POINT_TIME, the local clock is reset to 0, and then normal communication is realized according to the configuration information;

步骤150:形成集团的各个光总线终端控制器按照本地的计划时间标发送TIME_TRIGGER_FRAME时间触发流量,利用GMP算法和分布式时钟算法完成拓扑的维持。Step 150: Each optical bus terminal controller forming the group sends the TIME_TRIGGER_FRAME time-triggered traffic according to the local planned time scale, and uses the GMP algorithm and the distributed clock algorithm to complete the maintenance of the topology.

优选地,所述步骤010包括以下步骤:Preferably, the step 010 includes the following steps:

步骤011:初始化本地时钟,如果系统中含有GPS设备,则将本地GPS_CLOCK计数器同步到GPS设备,并将本地计数器清0;若系统中不含有外部时钟源,则仅将本地时钟计数器清0;Step 011: Initialize the local clock, if the system contains a GPS device, synchronize the local GPS_CLOCK counter to the GPS device, and clear the local counter to 0; if the system does not contain an external clock source, only clear the local clock counter to 0;

步骤012:设置发送成员向量为64’h0000_0001,即此次目标设备为成员向量为64’h0000_0001的设备;设置本地成员向量为64’h0000_0000。Step 012: Set the sending member vector to 64'h0000_0001, that is, the target device this time is the device whose member vector is 64'h0000_0001; set the local member vector to 64'h0000_0000.

优选地,所述步骤020包括以下步骤:Preferably, the step 020 includes the following steps:

步骤021:第一光总线连接器分别向第一光分路器和第二光总线连接器发送包含所述发送成员向量的T_SYNC_FRAME帧,记录发送时刻t1并开启Link_latency_measure_count计数器;Step 021: the first optical bus connector sends a T_SYNC_FRAME frame containing the sending member vector to the first optical splitter and the second optical bus connector respectively, records the sending time t1 and starts the Link_latency_measure_count counter;

步骤022:将发送成员向量中的1左移一位,等待下一次发送;Step 022: Shift 1 in the sending member vector to the left by one, and wait for the next sending;

步骤023:等待对应设备响应的N_RESP_FRAME报文,若第一光总线连接器收到正确的N_RESP_FRAME报文,则将本地成员向量对应位置置位;Step 023: wait for the N_RESP_FRAME message responded by the corresponding device, if the first optical bus connector receives the correct N_RESP_FRAME message, then set the corresponding position of the local member vector;

步骤024:根据接收到N_RESP_FRAME报文的时间点t2,以及已知的光总线终端控制器处理计算T_SYNC_FRAME帧的时间t_cost,计算出链路延时参数T_wiredelay=(t2-t1-t_cost)/2;Step 024: Calculate the link delay parameter T_wiredelay=(t2-t1-t_cost)/2 according to the time point t2 when the N_RESP_FRAME message is received, and the known optical bus terminal controller processing and calculating the time t_cost of the T_SYNC_FRAME frame;

步骤025:如果已经遍历检测完系统中所有设备,则跳转到所述步骤030,否则回到步骤021。Step 025: If all devices in the system have been traversed and detected, jump to the step 030, otherwise go back to the step 021.

优选地,所述步骤030包括以下步骤:Preferably, the step 030 includes the following steps:

步骤031:检查本地成员向量中成员变量为1的设备,向这些光总线终端控制器发送各自的Configuration Data信息以及链路时间参数,链路时间参数包含两部分内容,一部分是各个光总线终端控制器与光总线连接器之间的链路时延,另一部分是光总线连接器内部处理时延;Step 031: Check the devices whose member variable is 1 in the local member vector, and send their respective Configuration Data information and link time parameters to these optical bus terminal controllers. The link time parameters include two parts, one part is the control of each optical bus terminal. The link delay between the connector and the optical bus connector, and the other part is the internal processing delay of the optical bus connector;

步骤032:光总线终端控制器回复CON_ACK信息或超过最大重新配置次数后,对下一个光总线终端控制器进行配置。Step 032: After the optical bus terminal controller replies with the CON_ACK information or exceeds the maximum number of reconfiguration times, the optical bus terminal controller configures the next optical bus terminal controller.

优选地,所述步骤040包括以下步骤:Preferably, the step 040 includes the following steps:

步骤041:使用本地成员向量作为ALLOW_COLDSTART_FRAME帧中的成员向量字段,使用GPS_CLOCK变量作为ALLOW_COLDSTART_FRAME帧中GPS信息字段,发送ALLOW_COLDSTART_FRAME帧;Step 041: use the local member vector as the member vector field in the ALLOW_COLDSTART_FRAME frame, use the GPS_CLOCK variable as the GPS information field in the ALLOW_COLDSTART_FRAME frame, and send the ALLOW_COLDSTART_FRAME frame;

步骤042:发送ALLOW_COLDSTART_FRAME帧后清零本地时钟,然后本地时钟正常计时到GLOBAL_RESTART_POINT_TIME后,重置本地时钟为0,接着按照配置信息实现正常的通信。Step 042: After sending the ALLOW_COLDSTART_FRAME frame, clear the local clock, and then reset the local clock to 0 after the local clock normally timed to GLOBAL_RESTART_POINT_TIME, and then implement normal communication according to the configuration information.

优选地,所述步骤050包括以下步骤:Preferably, the step 050 includes the following steps:

步骤051:对于原本集团中不存在的多个光总线终端控制器,在多个光总线终端控制器上电后各自的第一个Node Slot中完成对链路时间参数的测量以及配置数据信息的配置,并在各自的Node Slot将链路时间参数广播给其他所有设备;Step 051: For the multiple optical bus terminal controllers that do not exist in the original group, the measurement of the link time parameters and the configuration data information are completed in the respective first Node Slots after the multiple optical bus terminal controllers are powered on. Configure and broadcast the link time parameters to all other devices in their respective Node Slots;

步骤052:由光总线终端控制器发送来的不合格的OTTB_FRAME,光总线连接器不予转发并且下发WARNING原语警告。Step 052: The unqualified OTTB_FRAME sent by the optical bus terminal controller is not forwarded by the optical bus connector and a WARNING primitive warning is issued.

优选地,所述步骤150包括以下步骤:Preferably, the step 150 includes the following steps:

步骤151:若收到ALLOW_COLDSTART_FRAME帧,将该ALLOW_COLDSTART_FRAME帧中的成员向量加入到自己本地的成员向量中去,若收到非ALLOW_COLDSTART_FRAME帧,完成自身的集成操作;Step 151: If the ALLOW_COLDSTART_FRAME frame is received, the member vector in the ALLOW_COLDSTART_FRAME frame is added to its own local member vector, and if a non-ALLOW_COLDSTART_FRAME frame is received, its own integration operation is completed;

步骤152:每个光总线终端控制器在自己的Node Slot中发送数据帧,并根据GMP算法更新本地成员向量。Step 152: Each optical bus terminal controller sends a data frame in its own Node Slot, and updates the local member vector according to the GMP algorithm.

本发明链路速率高,并且降低了机身重量,降低了布线难度,光纤的抗干扰能力较强,提高了系统的整体抗干扰能力;同时上行和下行波长不同,提供了可以避免冲突的冷启动方式;相较于TTP/C协议需要提前离线测量好链路相关时间参数信息,光总线连接器会实时测量链路时间参数,实现了时间参数的在线测量,同时简化了链路参数的计算;此外,光总线连接器一次性完成对所有在线设备Configuration Data的加载,并增加了对光总线终端控制器状态的监控,同时简化了链路时间参数的测量。The invention has high link rate, reduces the weight of the fuselage, reduces the difficulty of wiring, the anti-interference ability of the optical fiber is strong, and the overall anti-interference ability of the system is improved; at the same time, the uplink and downlink wavelengths are different, which provides a cooling system that can avoid conflicts. Startup method: Compared with the TTP/C protocol, which requires offline measurement of the link-related time parameter information in advance, the optical bus connector will measure the link time parameter in real time, which realizes the online measurement of the time parameter and simplifies the calculation of the link parameter. ; In addition, the optical bus connector completes the loading of the Configuration Data of all online devices at one time, and increases the monitoring of the status of the optical bus terminal controller, while simplifying the measurement of link time parameters.

附图说明Description of drawings

图1为实施例1的时间触发无源光总线结构示意图;1 is a schematic structural diagram of a time-triggered passive optical bus according to Embodiment 1;

图2为实施例2中本发明的实现方法的流程图;Fig. 2 is the flow chart of the realization method of the present invention in embodiment 2;

图3为实施例3和实施例4中T_SYNC_FRAME,N_RESP_FRAME,ALLOW_COLDSTART_FRAME,OTTB_FRAME等帧格式图;Fig. 3 is the frame format diagrams such as T_SYNC_FRAME, N_RESP_FRAME, ALLOW_COLDSTART_FRAME, OTTB_FRAME in Embodiment 3 and Embodiment 4;

图4为实施例3和实施例4中CON_ACK,CON_FAIL和WARNING原语格式图;Fig. 4 is the CON_ACK, CON_FAIL and WARNING primitive format diagram in embodiment 3 and embodiment 4;

图5为实施例3的光总线连接器状态控制单元的状态控制逻辑流程图;Fig. 5 is the state control logic flow chart of the optical bus connector state control unit of embodiment 3;

图6为实施例4的光总线终端控制器状态控制单元的状态控制逻辑流程图;Fig. 6 is the state control logic flow chart of the optical bus terminal controller state control unit of embodiment 4;

图7为现有时间触发总线技术的结构示意图。FIG. 7 is a schematic structural diagram of a conventional time-triggered bus technology.

具体实施方式Detailed ways

实施例1Example 1

本实施例的一种时间触发无源光总线结构如图1所示,包括第一光总线连接器、第二光总线连接器、多个光总线终端控制器、第一光分路器和第二光分路器;每个光总线终端控制器有两个端口,两个端口分别连接到第一光分路器和第二光分路器;每个光总线连接器有2个光纤端口,第一光总线连接器的一个端口连接第一光分路器,第二光总线连接器的一个端口连接第二光分路器,第一光总线连接器的另一个端口与第二光总线连接器的另一个端口相连。A time-triggered passive optical bus structure in this embodiment is shown in FIG. 1 , including a first optical bus connector, a second optical bus connector, a plurality of optical bus terminal controllers, a first optical splitter, and a first optical bus connector. Two optical splitters; each optical bus terminal controller has two ports, and the two ports are respectively connected to the first optical splitter and the second optical splitter; each optical bus connector has 2 fiber ports, One port of the first optical bus connector is connected to the first optical splitter, one port of the second optical bus connector is connected to the second optical splitter, and the other port of the first optical bus connector is connected to the second optical bus connected to the other port of the device.

光总线连接器均设置有光总线连接器状态控制单元,光总线终端控制器均设置有光总线终端控制器状态控制单元。The optical bus connectors are all provided with an optical bus connector state control unit, and the optical bus terminal controllers are all provided with an optical bus terminal controller state control unit.

在本实施例中,光总线终端控制器4为有冷启动能力的设备,且光总线终端控制器4上电时,光总线连接器状态控制单元正常工作,为方便对光总线终端控制器4和光总线连接器中各自的成员向量进行区分,具体地,将光总线终端控制器4的本地成员向量描述成NL_MV4,将光总线连接器的发送成员向量描述成TS_MV1,将光总线连接器的本地成员向量描述成TL_MV1,将光总线连接器的发送成员向量的初始值设置为64’h0001且本地成员向量的初始值为64’h0000_0000。光总线终端控制器1的TL_MV1初始值为64’h0000_0001,光总线终端控制器2的TL_MV2初始值为64’h0000_0002,光总线终端控制器3的TL_MV3初始值为64’h0000_0004,光总线终端控制器4的TL_MV4初始值为64’h0000_0008,光总线终端控制器5的TL_MV5初始值为64’h0000_0010,光总线终端控制器5在TTPON系统形成一段时间之后上电。规则设定本领域技术人员根据需要进行自由设置,设定规则不一样,对应接收配置文件的顺序不用,但是不影响整个网络的形成,维护以及正常时间触发流量。In this embodiment, the optical bus terminal controller 4 is a device with cold start capability, and when the optical bus terminal controller 4 is powered on, the optical bus connector state control unit works normally. Distinguish from the respective member vectors in the optical bus connector, specifically, the local member vector of the optical bus terminal controller 4 is described as NL_MV4, the transmission member vector of the optical bus connector is described as TS_MV1, and the local member vector of the optical bus connector is described as TS_MV1. The member vector is described as TL_MV1, and the initial value of the transmit member vector of the optical bus connector is set to 64'h0001 and the initial value of the local member vector is 64'h0000_0000. The initial value of TL_MV1 of optical bus terminal controller 1 is 64'h0000_0001, the initial value of TL_MV2 of optical bus terminal controller 2 is 64'h0000_0002, the initial value of TL_MV3 of optical bus terminal controller 3 is 64'h0000_0004, the optical bus terminal controller The initial value of TL_MV4 of 4 is 64'h0000_0008, and the initial value of TL_MV5 of the optical bus terminal controller 5 is 64'h0000_0010. The optical bus terminal controller 5 is powered on after the TTPON system is formed for a period of time. Rule setting A person skilled in the art can freely set according to needs. The setting rules are different, and the order of receiving configuration files is not used, but it does not affect the formation, maintenance and normal time trigger traffic of the entire network.

实施例2Example 2

一种时间触发无源光总线的实现方法,可以应用于实施例1的一种时间触发无源光总线,总线包括两个光总线连接器、多个光总线终端控制器、两个光分路器,光总线连接器均设置有光总线连接器状态控制单元,光总线终端控制器均设置有光总线终端控制器状态控制单元,两个光总线连接器记为第一光总线连接器、第二光总线连接器,两个光分路器记为第一光分路器和第二光分路器,其工作流程图如图2所示包括以下步骤:A method for implementing a time-triggered passive optical bus, which can be applied to a time-triggered passive optical bus in Embodiment 1. The bus includes two optical bus connectors, multiple optical bus terminal controllers, and two optical branches. The optical bus connector is equipped with an optical bus connector state control unit, and the optical bus terminal controller is equipped with an optical bus terminal controller state control unit. The two optical bus connectors are marked as the first optical bus connector and the second optical bus connector. Two optical bus connectors, the two optical splitters are denoted as the first optical splitter and the second optical splitter, and the work flow chart shown in Figure 2 includes the following steps:

S1:初始化设备,加载光总线连接器状态控制单元和光总线终端控制器状态控制单元;S1: Initialize the device, load the optical bus connector state control unit and the optical bus terminal controller state control unit;

S2:打开光总线连接器状态控制单元或光总线终端控制器状态控制单元的状态控制逻辑;S2: Open the state control logic of the optical bus connector state control unit or the optical bus terminal controller state control unit;

S3:等待生成链路拓扑,等待链路时间参数测量完成;S3: Wait for the link topology to be generated, and wait for the link time parameter measurement to be completed;

S4:完成光总线终端控制器配置,完成冷启动过程;S4: Complete the configuration of the optical bus terminal controller, and complete the cold start process;

S5:维护链路拓扑,进行OTTB_FRAME的传输。S5: Maintain the link topology and perform OTTB_FRAME transmission.

实施例3Example 3

参阅图5,本实施例基于实施例2的方法流程,其中,光总线连接器状态控制单元的状态控制逻辑包括以下步骤,Referring to FIG. 5 , this embodiment is based on the method flow of Embodiment 2, wherein the state control logic of the optical bus connector state control unit includes the following steps:

步骤010:默认使用第一光总线连接器发送配置数据,通过第一光分路器下发到各个节点,第二光总线连接器将来自第一光总线连接器的配置数据转发到第二光分路器,并完成对第二光分路器的链路延时信息的测量,设置本地成员向量为0,初始化设备本地时钟为0,全局使用一个本地时钟,本地时钟以Micro Clock为最小时钟周期;Step 010: By default, the first optical bus connector is used to send configuration data, which is sent to each node through the first optical splitter, and the second optical bus connector forwards the configuration data from the first optical bus connector to the second optical bus connector. Splitter, and complete the measurement of the link delay information of the second optical splitter, set the local member vector to 0, initialize the local clock of the device to 0, use a local clock globally, and use the Micro Clock as the minimum clock for the local clock cycle;

步骤020:第一光总线连接器循环向所连的第一光分路器和第二光总线连接器发送T_SYNC_FRAME帧,两个光总线连接器分别记录各自发送T_SYNC_FRAME帧的发送时刻t1,同时开始计时,等待对应设备响应或响应超时;光总线连接器收到对应设备的N_RESP_FRAME帧,停止计时,记录当前接收到N_RESP_FRAME帧的时刻t2,两个光总线连接器分别计算出各自的链路延时参数T_wiredelay=(t2-t1-t_cost)/2,其中t_cost为光总线终端控制器处理T_SYNC_FRAME所花费的时间;Step 020: The first optical bus connector cyclically sends the T_SYNC_FRAME frame to the connected first optical splitter and the second optical bus connector, and the two optical bus connectors respectively record the sending time t1 at which they send the T_SYNC_FRAME frame, and start at the same time Timing, waiting for the corresponding device to respond or the response times out; the optical bus connector receives the N_RESP_FRAME frame from the corresponding device, stops the timing, and records the time t2 when the N_RESP_FRAME frame is currently received. The two optical bus connectors calculate their respective link delays Parameter T_wiredelay=(t2-t1-t_cost)/2, where t_cost is the time spent by the optical bus terminal controller to process T_SYNC_FRAME;

步骤030:等待当前网络中所有网络设备遍历检测完成,向光总线终端控制器发送配置信息以及两个光分路器分别测量得到的链路延时参数;Step 030: Wait for the completion of the traversal detection of all network devices in the current network, and send the configuration information and the link delay parameters respectively measured by the two optical splitters to the optical bus terminal controller;

步骤040:使用本地成员向量填充ALLOW_COLDSTART_FRAME帧中的成员向量字段;Step 040: Fill the member vector field in the ALLOW_COLDSTART_FRAME frame with the local member vector;

步骤050:检测并维护拓扑。Step 050: Detect and maintain topology.

优选地,步骤010包括以下步骤:Preferably, step 010 includes the following steps:

步骤011:初始化本地时钟,如果系统中含有GPS设备,则将本地GPS_CLOCK计数器同步到GPS设备,并将本地计数器清0;若系统中不含有外部时钟源,则仅将本地时钟计数器清0;Step 011: Initialize the local clock, if the system contains a GPS device, synchronize the local GPS_CLOCK counter to the GPS device, and clear the local counter to 0; if the system does not contain an external clock source, only clear the local clock counter to 0;

步骤012:设置发送成员向量为64’h0000_0001,即此次目标设备为成员向量为64’h0000_0001的设备;设置本地成员向量为64’h0000_0000。Step 012: Set the sending member vector to 64'h0000_0001, that is, the target device this time is the device whose member vector is 64'h0000_0001; set the local member vector to 64'h0000_0000.

优选地,步骤020包括以下步骤:Preferably, step 020 includes the following steps:

步骤021:第一光总线连接器分别向第一光分路器和第二光总线连接器发送包含发送成员向量的T_SYNC_FRAME帧,记录发送时刻t1并开启Link_latency_measure_count计数器;Step 021: the first optical bus connector sends a T_SYNC_FRAME frame containing the sending member vector to the first optical splitter and the second optical bus connector respectively, records the sending time t1 and starts the Link_latency_measure_count counter;

步骤022:将发送成员向量中的1左移一位,等待下一次发送;Step 022: Shift 1 in the sending member vector to the left by one, and wait for the next sending;

步骤023:等待对应设备响应的N_RESP_FRAME报文,若第一光总线连接器收到正确的N_RESP_FRAME报文,则将本地成员向量对应位置置位;Step 023: wait for the N_RESP_FRAME message responded by the corresponding device, if the first optical bus connector receives the correct N_RESP_FRAME message, then set the corresponding position of the local member vector;

步骤024:根据接收到N_RESP_FRAME报文的时间点t2,以及已知的光总线终端控制器处理计算T_SYNC_FRAME帧的时间t_cost,计算出链路延时参数T_wiredelay=(t2-t1-t_cost)/2;Step 024: Calculate the link delay parameter T_wiredelay=(t2-t1-t_cost)/2 according to the time point t2 when the N_RESP_FRAME message is received, and the known optical bus terminal controller processing and calculating the time t_cost of the T_SYNC_FRAME frame;

步骤025:如果已经遍历检测完系统中所有设备,则跳转到步骤030,否则回到步骤021。Step 025: If all devices in the system have been traversed and detected, go to Step 030, otherwise go back to Step 021.

优选地,步骤030包括以下步骤:Preferably, step 030 includes the following steps:

步骤031:检查本地成员向量中成员变量为1的设备,向这些光总线终端控制器发送各自的Configuration Data信息以及链路时间参数,链路时间参数包含两部分内容,一部分是各个光总线终端控制器与光总线连接器之间的链路时延,另一部分是光总线连接器内部处理时延;Step 031: Check the devices whose member variable is 1 in the local member vector, and send their respective Configuration Data information and link time parameters to these optical bus terminal controllers. The link time parameters include two parts, one part is the control of each optical bus terminal. The link delay between the connector and the optical bus connector, and the other part is the internal processing delay of the optical bus connector;

步骤032:光总线终端控制器回复CON_ACK信息或超过最大重新配置次数后,对下一个光总线终端控制器进行配置。Step 032: After the optical bus terminal controller replies with the CON_ACK information or exceeds the maximum number of reconfiguration times, the optical bus terminal controller configures the next optical bus terminal controller.

优选地,步骤040包括以下步骤:Preferably, step 040 includes the following steps:

步骤041:使用本地成员向量作为ALLOW_COLDSTART_FRAME帧中的成员向量字段,使用GPS_CLOCK变量作为ALLOW_COLDSTART_FRAME帧中GPS信息字段,发送ALLOW_COLDSTART_FRAME帧;Step 041: use the local member vector as the member vector field in the ALLOW_COLDSTART_FRAME frame, use the GPS_CLOCK variable as the GPS information field in the ALLOW_COLDSTART_FRAME frame, and send the ALLOW_COLDSTART_FRAME frame;

步骤042:发送ALLOW_COLDSTART_FRAME帧后清零本地时钟,然后本地时钟正常计时到GLOBAL_RESTART_POINT_TIME后,重置本地时钟为0,接着按照配置信息实现正常的通信。Step 042: After sending the ALLOW_COLDSTART_FRAME frame, clear the local clock, and then reset the local clock to 0 after the local clock normally timed to GLOBAL_RESTART_POINT_TIME, and then implement normal communication according to the configuration information.

优选地,步骤050包括以下步骤:Preferably, step 050 includes the following steps:

步骤051:对于原本集团中不存在的多个光总线终端控制器,在多个光总线终端控制器上电后各自的第一个Node Slot中完成对链路时间参数的测量以及配置数据信息的配置,并在各自的Node Slot将链路时间参数广播给其他所有设备;Step 051: For the multiple optical bus terminal controllers that do not exist in the original group, the measurement of the link time parameters and the configuration data information are completed in the respective first Node Slots after the multiple optical bus terminal controllers are powered on. Configure and broadcast the link time parameters to all other devices in their respective Node Slots;

步骤052:由光总线终端控制器发送来的不合格的OTTB_FRAME,光总线连接器不予转发并且下发WARNING原语警告。Step 052: The unqualified OTTB_FRAME sent by the optical bus terminal controller is not forwarded by the optical bus connector and a WARNING primitive warning is issued.

实施例4Example 4

参阅图6,本实施例基于实施例2的方法,其中光总线终端控制器状态控制单元的状态控制逻辑包括以下步骤:Referring to FIG. 6, this embodiment is based on the method of Embodiment 2, wherein the state control logic of the state control unit of the optical bus terminal controller includes the following steps:

步骤110:设置所有设备的成员向量,将自身Membership Flag对应位置为1,其他位置设为0,初始化设备本地时钟为0;Step 110: Set the member vectors of all devices, set the corresponding position of its Membership Flag to 1, other positions to 0, and initialize the local clock of the device to 0;

步骤120:分别监听两条链路上是否存在来自光总线连接器的T_SYNC_FRAME帧,并且帧中的成员向量与设备自身成员向量值相同,使用第一光总线连接器发送的T_SYNC_FRAME帧的时间信息同步本地时钟,分别处理两个链路的T_SYNC_FRAME帧,当任意链路接收到T_SYNC_FRAME帧后,立刻通过该链路发送响应报文N_RESP_FRAME;Step 120: Monitor whether there is a T_SYNC_FRAME frame from the optical bus connector on the two links respectively, and the member vector in the frame is the same as the member vector value of the device itself, and use the time information of the T_SYNC_FRAME frame sent by the first optical bus connector to synchronize. The local clock processes the T_SYNC_FRAME frames of the two links respectively. When any link receives the T_SYNC_FRAME frame, it immediately sends the response message N_RESP_FRAME through the link;

步骤130:完成响应的光总线终端控制器监听链路上属于自己的配置信息,校验自己的配置信息后,若校验通过回复CON_ACK,校验不通过则回复CON_FAIL;Step 130: The optical bus terminal controller that has completed the response monitors its own configuration information on the link, and after verifying its own configuration information, if the verification passes, it returns CON_ACK, and if the verification fails, it returns CON_FAIL;

步骤140:监听到ALLOW_COLDSTART_FRAME帧后,所有光总线终端控制器接收到含有当前网络全局视图的成员向量,至此完成冷启动过程,所有接收到ALLOW_COLDSTART_FRAME帧的光总线终端控制器将本地时钟设置为相对于光总线连接器的链路延时,同时设置当前集成周期为0,到达全局时刻GLOBAL_RESTART_POINT_TIME后,重置本地时钟为0,接着按照配置信息实现正常的通信;Step 140: After listening to the ALLOW_COLDSTART_FRAME frame, all the optical bus terminal controllers receive the member vector containing the global view of the current network, so far the cold start process is completed, and all the optical bus terminal controllers that receive the ALLOW_COLDSTART_FRAME frame The link delay of the optical bus connector is set at the same time, and the current integration cycle is set to 0. After reaching the global time GLOBAL_RESTART_POINT_TIME, the local clock is reset to 0, and then normal communication is realized according to the configuration information;

步骤150:形成集团的各个光总线终端控制器按照本地的计划时间标发送TIME_TRIGGER_FRAME时间触发流量,利用GMP算法和分布式时钟算法完成拓扑的维持。Step 150: Each optical bus terminal controller forming the group sends the TIME_TRIGGER_FRAME time-triggered traffic according to the local planned time scale, and uses the GMP algorithm and the distributed clock algorithm to complete the maintenance of the topology.

进一步地,步骤150包括以下步骤:Further, step 150 includes the following steps:

步骤151:若收到ALLOW_COLDSTART_FRAME帧,将该ALLOW_COLDSTART_FRAME帧中的成员向量加入到自己本地的成员向量中去,若收到非ALLOW_COLDSTART_FRAME帧,完成自身的集成操作;Step 151: If the ALLOW_COLDSTART_FRAME frame is received, the member vector in the ALLOW_COLDSTART_FRAME frame is added to its own local member vector, and if a non-ALLOW_COLDSTART_FRAME frame is received, its own integration operation is completed;

步骤152:每个光总线终端控制器在自己的Node Slot中发送数据帧,并根据GMP算法更新本地成员向量。Step 152: Each optical bus terminal controller sends a data frame in its own Node Slot, and updates the local member vector according to the GMP algorithm.

需要特别说明的是,在本实施例与实施例3中的帧T_SYNC_FRAME,N_RESP_FRAME,ALLOW_COLDSTART_FRAME和OTTB_FRAME的帧格式图如图3所示,CON_ACK,CON_FAIL和WARNING原语格式图如图4所示。It should be noted that the frame format diagram of frames T_SYNC_FRAME, N_RESP_FRAME, ALLOW_COLDSTART_FRAME and OTTB_FRAME in this embodiment and Embodiment 3 is shown in FIG. 3 , and the format diagram of CON_ACK, CON_FAIL and WARNING primitives is shown in FIG. 4 .

另外,成员向量是一组由bit组成的向量,其中的每一位对应一台控制器,当某一位为1时,代表该位对应的控制器正常工作,所以本实施例以“成员向量最低位为1”对应的控制器作为时钟衡量标准。In addition, a member vector is a set of vectors composed of bits, each of which corresponds to a controller. When a bit is 1, it means that the controller corresponding to the bit is working normally, so this embodiment uses "member vector" The controller whose least significant bit is 1" is used as the clock measure.

比起现有时间触发总线技术,现有的时间触发总线技术的示意图如图7所示,如果设备1和设备2距离设备4和设备5较远,且设备1和设备5几乎同时发送冷启动帧,则可能会出现如下一种情形,即:设备2收到了来自设备1的冷启动帧,设备4收到了来自设备5的冷启动帧,但是两个冷启动帧在设备3处发生了碰撞,设备3检测到了碰撞。如果发生上述情形,则会导致一种极端情况的出现,即设备2使用来自设备1的冷启动帧完成了集成,设备4使用来自设备5的冷启动帧完成了集成,二设备3由于碰撞无法完成集成。这种方法形成了两个小集团。同时如图7所示的总线,需要每一个设备分别配置Configuration Data,这同时也使得配置变得繁琐。Compared with the existing time-triggered bus technology, the schematic diagram of the existing time-triggered bus technology is shown in Figure 7. If device 1 and device 2 are far away from device 4 and device 5, and device 1 and device 5 send cold start almost simultaneously frame, the following situation may occur, that is, device 2 receives a cold start frame from device 1, device 4 receives a cold start frame from device 5, but the two cold start frames collide at device 3 , Device 3 detected a collision. If the above situation occurs, it will lead to an extreme situation, that is, device 2 completes the integration using the cold start frame from device 1, device 4 completes the integration using the cold start frame from device 5, and the second device 3 cannot be due to the collision. Complete the integration. This approach formed two small groups. At the same time, for the bus shown in Figure 7, each device needs to be configured with Configuration Data, which also makes the configuration cumbersome.

而本方法通过光总线连接器事先完成对其余光总线终端控制器的粗同步,并通过光总线连接器发送ALLOW_COLDSTART_FRAME使各个节点时钟达成一致,避免小集团的冷启动方案。同时光总线连接器又通过统一配置的方式,实现了一台机器对多台机器进行配置。利用光纤链路全双工通信的特性实现了光总线连接器故障警告的机制。In this method, the rough synchronization of the remaining optical bus terminal controllers is completed in advance through the optical bus connector, and ALLOW_COLDSTART_FRAME is sent through the optical bus connector to make the clocks of each node reach an agreement, so as to avoid the cold start scheme of small groups. At the same time, the optical bus connector realizes the configuration of one machine to multiple machines by means of unified configuration. The optical bus connector fault warning mechanism is realized by utilizing the characteristics of full-duplex communication of the optical fiber link.

Claims (7)

1. A method for realizing time-triggered passive optical bus is characterized in that,
the time-triggered passive optical bus comprises a first optical bus connector, a second optical bus connector, a plurality of optical bus terminal controllers, a first optical splitter and a second optical splitter; each optical bus terminal controller is provided with two ports which are respectively connected to the first optical splitter and the second optical splitter; each optical bus connector is provided with 2 optical fiber ports, one port of the first optical bus connector is connected with the first optical splitter, one port of the second optical bus connector is connected with the second optical splitter, and the other port of the first optical bus connector is connected with the other port of the second optical bus connector;
the optical bus connectors are provided with optical bus connector state control units, and the optical bus terminal controllers are provided with optical bus terminal controller state control units;
the implementation method of the time-triggered passive optical bus comprises the following steps:
s1: the device comprises an initialization device, a state control unit of an optical bus connector and a state control unit of an optical bus terminal controller are loaded;
s2: opening the state control logic of the state control unit of the optical bus connector or the state control unit of the optical bus terminal controller;
s3: waiting for generating a link topology and waiting for the completion of link time parameter measurement;
s4: completing the configuration of the optical bus terminal controller and completing the cold start process;
s5: maintaining a link topology, and transmitting OTTB _ FRAME;
the state control logic of the optical bus connector state control unit comprises the steps of,
step 010: the method comprises the steps that a first optical bus connector is used for sending configuration data in a default mode, the configuration data are issued to each node through a first optical splitter, a second optical bus connector forwards the configuration data from the first optical bus connector to a second optical splitter, measurement of link delay information of the second optical splitter is completed, a local member vector is set to be 0, a local Clock of initialization equipment is set to be 0, a local Clock is used globally, and the local Clock takes Micro Clock as a minimum Clock period;
step 020: the first optical bus connector circularly sends T _ SYNC _ FRAME FRAMEs to the connected first optical splitter and the second optical bus connector, the two optical bus connectors respectively record the sending time T1 of the T _ SYNC _ FRAME FRAMEs, and meanwhile, timing is started to wait for the response of corresponding equipment or response timeout; the method comprises the steps that an optical bus connector receives an N _ RESP _ FRAME FRAME of corresponding equipment, timing is stopped, the time T2 of the current N _ RESP _ FRAME FRAME is recorded, two optical bus connectors respectively calculate a link delay parameter T _ wiredelay which is (T2-T1-T _ cost)/2, wherein T _ cost is the time spent by an optical bus terminal controller in processing T _ SYNC _ FRAME;
step 030: waiting for the completion of traversal detection of all network equipment in the current network, and sending configuration information and link delay parameters obtained by respectively measuring two optical splitters to an optical bus terminal controller;
step 040: populating a member vector field in an ALLOW _ COLDSTART _ FRAME FRAME with a local member vector;
step 050: detecting and maintaining topology;
the state control logic of the state control unit of the optical bus terminal controller comprises the following steps:
step 110: setting member vectors of all devices, setting the corresponding position of the self Membership Flag to be 1, setting other positions to be 0, and initializing a local clock of the device to be 0;
step 120: monitoring whether T _ SYNC _ FRAME FRAMEs from the optical bus connectors exist on the two links respectively, wherein member vectors in the FRAMEs are the same as member vector values of equipment, synchronizing local clocks by using time information of the T _ SYNC _ FRAME FRAMEs sent by the first optical bus connector, processing the T _ SYNC _ FRAME FRAMEs of the two links respectively, and sending a response message N _ RESP _ FRAME through any link immediately after receiving the T _ SYNC _ FRAME FRAMEs;
step 130: the optical bus terminal controller which completes the response monitors the configuration information of the optical bus terminal controller on the link, and after the configuration information of the optical bus terminal controller is verified, if the verification passes the recovery CON _ ACK, the recovery CON _ FAIL is carried out;
step 140: after monitoring an all _ COLDSTART _ FRAME FRAME, all optical bus terminal controllers receive a member vector containing a current network GLOBAL view, so far, the cold start process is completed, all the optical bus terminal controllers receiving the all _ COLDSTART _ FRAME FRAME set a local clock to be a link delay relative to an optical bus connector, simultaneously set the current integration period to be 0, reset the local clock to be 0 after reaching a GLOBAL TIME GLOBAL _ RESTART _ POINT _ TIME, and then realize normal communication according to configuration information;
step 150: and each optical bus terminal controller forming the group sends TIME _ TRIGGER _ FRAME TIME TRIGGER flow according to a local planned TIME scale, and the maintenance of the topology is completed by utilizing a GMP algorithm and a distributed clock algorithm.
2. The method of claim 1, wherein the step 010 comprises the following steps:
step 011: initializing a local CLOCK, synchronizing a local GPS _ CLOCK counter to the GPS equipment if the system contains the GPS equipment, and clearing 0 of the local counter; if the system does not contain an external clock source, only clearing 0 from the local clock counter;
step 012: setting the sending member vector to be 64 'h 0000_0001, namely the target device at this time is the device of which the member vector is 64' h0000_ 0001; the local member vector is set to 64' h0000 — 0000.
3. The method as claimed in claim 2, wherein the step 020 comprises the following steps:
step 021: the first optical bus connector sends T _ SYNC _ FRAME FRAMEs containing the sending member vectors to the first optical splitter and the second optical bus connector respectively, records the sending time T1 and starts a Link _ latency _ measure _ count counter;
step 022: shifting 1 in the sending member vector to the left by one bit, and waiting for the next sending;
step 023: waiting for an N _ RESP _ FRAME message corresponding to the equipment response, and setting the corresponding position of the local member vector if the first optical bus connector receives the correct N _ RESP _ FRAME message;
and 024: according to a time point T2 of receiving the N _ RESP _ FRAME message and a known time T _ cost of processing and calculating a T _ SYNC _ FRAME by the optical bus terminal controller, calculating a link delay parameter T _ wireless delay (T2-T1-T _ cost)/2;
step 025: if all the devices in the system have been detected through traversal, go to the step 030, otherwise go back to the step 021.
4. A method for implementing a time triggered passive optical bus as recited in claim 2, wherein said step 030 includes the steps of:
step 031: checking the equipment with the member variable of 1 in the local member vector, and sending respective Configuration Data information and link time parameters to the optical bus terminal controllers, wherein the link time parameters comprise two parts of contents, one part is link time delay between each optical bus terminal controller and an optical bus connector, and the other part is internal processing time delay of the optical bus connector;
step 032: and after the optical bus terminal controller replies CON _ ACK information or exceeds the maximum reconfiguration times, configuring the next optical bus terminal controller.
5. A method as claimed in claim 2, wherein said step 040 includes the following steps:
step 041: using a local member vector as a member vector field in an ALLOW _ COLDSTART _ FRAME FRAME, using a GPS _ CLOCK variable as a GPS information field in the ALLOW _ COLDSTART _ FRAME FRAME, and sending the ALLOW _ COLDSTART _ FRAME FRAME;
step 042: and clearing the local clock after sending an ALLOW _ COLDSTART _ FRAME FRAME, resetting the local clock to be 0 after the local clock normally TIMEs to GLOBAL _ RESTART _ POINT _ TIME, and then realizing normal communication according to the configuration information.
6. A method for implementing a time triggered passive optical bus as claimed in claim 2, wherein said step 050 comprises the steps of:
step 051: for a plurality of optical bus terminal controllers which do not exist in an original group, completing measurement of link time parameters and configuration of configuration data information in respective first Node slots after the plurality of optical bus terminal controllers are powered on, and broadcasting the link time parameters to all other equipment in the respective Node slots;
step 052: the optical bus connector is not forwarded and a WARNING primitive is issued by the optical bus termination controller sending an out-of-spec OTTB _ FRAME.
7. A method for implementing a time triggered passive optical bus as claimed in claim 1, wherein said step 150 comprises the steps of:
step 151: if an ALLOW _ COLDSTART _ FRAME FRAME is received, adding the member vector in the ALLOW _ COLDSTART _ FRAME FRAME into a local member vector of the user, and if a non-ALLOW _ COLDSTART _ FRAME FRAME is received, completing the integration operation of the user;
step 152: each optical bus terminal controller sends data frames in its Node Slot and updates the local member vector according to the GMP algorithm.
CN202110275633.3A 2021-03-15 2021-03-15 Time-triggered passive optical bus and implementation method thereof Active CN113037372B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110275633.3A CN113037372B (en) 2021-03-15 2021-03-15 Time-triggered passive optical bus and implementation method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110275633.3A CN113037372B (en) 2021-03-15 2021-03-15 Time-triggered passive optical bus and implementation method thereof

Publications (2)

Publication Number Publication Date
CN113037372A CN113037372A (en) 2021-06-25
CN113037372B true CN113037372B (en) 2022-04-08

Family

ID=76468995

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110275633.3A Active CN113037372B (en) 2021-03-15 2021-03-15 Time-triggered passive optical bus and implementation method thereof

Country Status (1)

Country Link
CN (1) CN113037372B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582723A (en) * 2009-06-29 2009-11-18 蒋涵民 CAN bus physical layer structure based on 1XN passive optical splitter (POS)
CN102075247A (en) * 2009-11-25 2011-05-25 中国科学院光电研究院 High-speed optical fiber bus and realization method for redundance topological structure thereof
CN103368721A (en) * 2013-07-23 2013-10-23 电子科技大学 Computing method for transparent clock in time-triggered Ethernet
CN106130680A (en) * 2016-06-23 2016-11-16 北京东土科技股份有限公司 A kind of industry internet field layer wideband bus clock synchronization realizing method
CN109600187A (en) * 2018-11-28 2019-04-09 山东航天电子技术研究所 A kind of time trigger Unified Network transmission end system scheduling method and device
CN110149260A (en) * 2019-05-09 2019-08-20 中国航空工业集团公司西安航空计算技术研究所 A kind of starting of time trigger bus cluster and method for restarting and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1355460B1 (en) * 2002-04-16 2005-10-05 ROBERT BOSCH GmbH Method for monitoring a communication media access schedule of a communication controller of a communication system
CN106850466B (en) * 2017-02-22 2019-12-20 电子科技大学 Method and device for forwarding data packet in time-triggered network
CN107342833B (en) * 2017-06-15 2019-03-15 西安微电子技术研究所 A kind of time trigger Ethernet exchanging control method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582723A (en) * 2009-06-29 2009-11-18 蒋涵民 CAN bus physical layer structure based on 1XN passive optical splitter (POS)
CN102075247A (en) * 2009-11-25 2011-05-25 中国科学院光电研究院 High-speed optical fiber bus and realization method for redundance topological structure thereof
CN103368721A (en) * 2013-07-23 2013-10-23 电子科技大学 Computing method for transparent clock in time-triggered Ethernet
CN106130680A (en) * 2016-06-23 2016-11-16 北京东土科技股份有限公司 A kind of industry internet field layer wideband bus clock synchronization realizing method
CN109600187A (en) * 2018-11-28 2019-04-09 山东航天电子技术研究所 A kind of time trigger Unified Network transmission end system scheduling method and device
CN110149260A (en) * 2019-05-09 2019-08-20 中国航空工业集团公司西安航空计算技术研究所 A kind of starting of time trigger bus cluster and method for restarting and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
时间触发通信总线安全性技术研究;刘智武等;《航空计算技术》;20200525(第03期);第72-76页 *
面向安全关键系统的时间触发软件;苏罗辉等;《计算机应用》;20140630;第277-279,283页 *

Also Published As

Publication number Publication date
CN113037372A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
CN102237718B (en) Method and device of operating wind power electric field power network with improved data transmission protocol
EP3570505A1 (en) Symmetric path/link over lag interface using lldp for time synchronization between two nodes using ptp
US9577817B2 (en) Method and apparatus for providing in-vehicle network time synchronization using redundant grandmaster
US11316604B2 (en) Topology discovery in an automotive ethernet network
US6157972A (en) Apparatus and method for processing packetized information over a serial bus
EP2991250B1 (en) Method and apparatus for ptp synchronous network
US11546074B2 (en) Clock topology in an ethernet network
CN108173691B (en) Cross-device aggregation method and device
US20100061404A1 (en) Method for starting a communication system, a communication system having a communication medium and a plurality of subscribers connected thereto, and subscribers of such a communication system
CN114788197A (en) Method for optimizing time synchronization between network devices connected via a communication network
CN113037372B (en) Time-triggered passive optical bus and implementation method thereof
CN114650113B (en) Method and device for selecting clock source
US9705823B2 (en) Port status synchronization method, related device, and system
CN104767633A (en) An Industrial Ethernet System
US20110026654A1 (en) Network device of high-precision synchronization type, network system, and frame transfer method
JP2014519282A (en) Method, apparatus and system for detecting signal degradation in packet path
KR20120051632A (en) Method for clock synchronization in distributed system having ring topology and apparatus for the same
JP6274918B2 (en) Communications system
CN114039909A (en) Method for realizing rapid real-time spanning tree protocol
Boncagni et al. Switched ethernet in synchronized distributed control systems using RTnet
Feng et al. Research of Real-Time Deterministic Ethernet in Launch Vehicle
CN115037571A (en) Concentrator applied to star TTP network and implementation method thereof
Ma et al. Time Error Bound of Deterministic Transmission in Cross-Domain Time-Sensitive Networking
Mahmood et al. Clock Synchronization for Wired-Wireless Hybrid Networks using PTP
WO2009118653A1 (en) Network device performing connection check, network system, and frame transfer method

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