WO2014205936A1 - Sampling and control method based on point-to-point message synchronization - Google Patents

Sampling and control method based on point-to-point message synchronization Download PDF

Info

Publication number
WO2014205936A1
WO2014205936A1 PCT/CN2013/084177 CN2013084177W WO2014205936A1 WO 2014205936 A1 WO2014205936 A1 WO 2014205936A1 CN 2013084177 W CN2013084177 W CN 2013084177W WO 2014205936 A1 WO2014205936 A1 WO 2014205936A1
Authority
WO
WIPO (PCT)
Prior art keywords
point
message
sampling
synchronization
unit
Prior art date
Application number
PCT/CN2013/084177
Other languages
French (fr)
Chinese (zh)
Inventor
郑玉平
周华良
杨志宏
石磊
王小红
胡钰林
姜雷
谢黎
赵马泉
Original Assignee
国电南瑞科技股份有限公司
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 国电南瑞科技股份有限公司 filed Critical 国电南瑞科技股份有限公司
Publication of WO2014205936A1 publication Critical patent/WO2014205936A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/403Bus networks with centralised control, e.g. polling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40143Bus networks involving priority mechanisms
    • H04L12/4015Bus networks involving priority mechanisms by scheduling the transmission of messages at the communication node

Definitions

  • the present invention relates to a typical application of a distributed sampling and control based device or system related to power and industrial control, and more particularly to a sampling and control method based on peer-to-peer message homology, which belongs to the field of power electronics.
  • the present invention proposes a basis for The sampling and control technology of peer-to-peer messages provides a new solution for the distributed sampling control system, which improves the reliability and flexibility of the system.
  • the purpose of the invention is to realize the peer-to-peer technology based on the message mode by using the peer-to-peer transmission method for the specific coded communication message, and trigger the simultaneous sampling and the peer control by triggering the same pulse.
  • the reliability of the distributed sampling control system is further improved, the information interaction between the distributed units is more flexible, and the complexity of the engineering field wiring is improved, the integration degree of the system and the maintainability of the operation are improved.
  • the present invention provides the following technical solutions:
  • a sampling and control method based on peer-to-peer message homology which is characterized in that the following steps are included:
  • the main control unit sends the peer-to-peer message to each distributed sub-unit according to the set time through the FPGA chip, and each distribution
  • the subunit unit locks the arrival edge of the received peer message through the FPGA chip and parses the peer message information, and triggers the peer signal according to the message delay and the peer delay. Focus on three aspects of design: point-to-point communication, message transmission mechanism, FPGA transmission control and receiving peer processing methods.
  • the main control unit and each subunit are point-to-point communication connections, and the transmission channels are shared, not in the form of network networking (such as Ethernet networking).
  • the physical layer medium for point-to-point transmission is in the form of cable, or fiber-optic cable suitable for various wavelengths. Communication medium.
  • a one-to-one bidirectional link communication is between the main control unit and the subunit; for the main control unit, communication is performed by a pair of subunits, and the subunits are independent of each other.
  • Each channel in the control unit is independent of each other.
  • the transmission of the message follows a message transmission mechanism, and the data stream in the form of a message is transmitted on the two-way communication link, which is not a simple logic control signal, and the message exists in a certain coding form;
  • the message transmission mechanism It includes the same frame, the same sampling frame or the same control frame, the data value frame, the protocol or protocol adopted by the communication frame adopts the common standard protocol, or adopts a self-defined protocol form, and the link layer coding mode of the message transmission is Manchester encoding, UART format, 4B5B, or 8B10B form.
  • FPGA sending control and receiving peer processing methods are: real-time transmission of peer-to-peer messages through FPGA; peer-to-peer message reception is to lock the time edge of the message frame header by FPGA high-speed clock sampling, and according to the given sum The calculated delay drives and triggers the sampling or control logic.
  • the FPGA sending control and receiving peer processing method is: the main control unit realizes the on-time transmission of the peer-to-peer messages for different objects through the FPGA; each distributed sub-unit detects the start frame header of the same-type message through the FPGA and receives the decoding. Related messages, triggering of the same edge of sampling or control through delay control, and each distributed sub-unit also realizes the reception fault tolerance of the same message through the FPGA.
  • the message type includes:
  • the same sampling message is used for the same sampling unit, and the transmission delay is reduced by using the reduced protocol; the sampled value message is used by the collecting unit to send back the collected analog group frame;
  • the peer control message is used for the same control unit and transmits related control information
  • Control feedback message used by the control unit to perform the feedback result and send it back to the frame.
  • Communication transmission medium is suitable for two communication media: cable and optical cable;
  • FPGA co-processing mechanism realizes the concurrency calculation of distributed sampling control system with strong processing performance.
  • the invention adopts the FPGA technology to realize the functions of punctual transmission, reception locking, delay calculation and timing triggering of the peer-to-peer message, and the information between the distributed main control unit and the sub-unit is periodically interacted through the point-to-point message transmission.
  • Each sub-unit uses the same-pulse signal parsed by the FPGA to trigger the sampling and control logic, so that the main control unit and each sub-unit in the distributed sampling control system realize the sampling and sampling based on the peer-to-peer mode.
  • Control function which simplifies the implementation of distributed systems or devices, increases reliability, reduces system cost, and optimizes system maintainability.
  • Figure 1 is a timing logic diagram of the scheme
  • Figure 2 is a block diagram of the main controller
  • Figure 3 is a block diagram of the distributed acquisition end
  • Figure 4 is a block diagram of the distributed control terminal
  • Figure 5 is a block diagram of the overall principle.
  • the main controller sends the peer message (the same sampling frame or the same control frame) to each distributed sub-unit through the FPGA chip, and each distributed sub-unit receives the same report through the FPGA.
  • the text arrives at the time of the lock and parses the peer message information, triggers the peer message according to the message delay and the peer delay. If the distributed acquisition unit samples the framing according to the same ⁇ signal, it sends the framing to the main controller, and the main controller parses the sampled message and sends it to the main operation processor for calculation. After the completion, the result is sent to the host at the set time.
  • control message is sent to each control sub-unit, and the control sub-unit triggers the control logic function according to the peer control message, and the control sub-unit returns the feedback result to the main controller in the form of a message after completing the peer execution.
  • the same system sampling and control functions are realized.
  • the message between the main controller and each distributed unit is differentiated by different message types. Its timing logic is shown in Figure 1.
  • the main controller terminal principle as shown in Figure 2, including the main operation processor DSP and FPGA processor, through the FPGA to extend the multi-channel message transmission and reception channels; the main controller in accordance with the set delay in each control cycle
  • the same sampling message is sent, and the corresponding processing is performed after the sampling value is received.
  • the peer control message is sent according to the set delay, and the control feedback value message is waited for;
  • the principle of distributed acquisition terminal as shown in Figure 3, consists of FPGA processor and ADC acquisition circuit; After receiving the same sampling message, the acquisition unit performs the same and delays triggering ADC sampling, and the framing after sampling is completed. And send the sampled value message; At the same time, the processing of the FPGA has certain fault-tolerant processing and anti-interference function for the same sampled message.
  • the principle of the distributed control terminal consists of the FPGA processor and the peripheral drive control module, which mainly implements four parts in the FPGA, including the peer control message receiving and processing unit, the logic control unit, and the control back. Read unit, message sending unit. After receiving the peer message, the control unit performs the same function and delays the triggering of the logic control function. After the control is executed and the feedback is completed, the control group sends the feedback message. At the same time, the processing of the FPGA has certain certain control messages. Fault-tolerant processing and anti-jamming capabilities.
  • the message type includes the same sampling message (for the same sampling unit, using the reduced protocol to reduce the transmission delay), the sampled value message (for the acquisition unit to collect the collected analog group frame), and the same control The message (for the same control unit and transmitting relevant control information), and the control feedback message (for the feedback result that the control unit will perform the framing and returning).
  • FIG. 5 is a block diagram of the overall principle of sampling and control based on peer-to-peer message. This technology contains the contents of three types of distributed units, namely the main controller unit, the acquisition unit and the control unit.
  • the main controller unit is the main processing unit of the distributed system. It is responsible for the functions of all distributed sub-elements, processing and parsing various sub-units, real-time processing and calculation, control packet transmission, and number configuration. It is typically a processor-containing processing unit.
  • the acquisition unit 1 and 2 mainly implement independent data sampling and transmitting functions, which can be dual transmission and other functions, and can also realize parameter calibration optimization, etc., which are generally distributed in the vicinity of each collection amount, and are arranged nearby, and the 4 system design improves the anti-interference ability.
  • the control unit 1 and 2 mainly implement the control logic of each application requirement, and can implement parameter configuration, etc., for real-time control, feedback and related fault-tolerant processing of specific execution objects.
  • the above distributed unit (acquisition unit or control unit) for explaining the principle is not limited to the name, and may be a multi-functional distributed controller, which may be a control unit including a microprocessor such as a CPU or a DSP.

Abstract

Disclosed is a sampling and control method based on point-to-point message synchronization, which realizes the punctual sending, receiving locking, time delay calculation, and timing trigger functions of synchronized messages by using FPGA technology, timing interaction is performed on information between a distributed main control unit and subunits by means of point-to-point message transmission, and a sampling and control logic is triggered by each subunit using a synchronized pulse signal parsed by FPGA. In this way, the sampling and control function of message-level synchronization based on a point-to-point method is realized between the main control unit and each subunit in a distributed sampling control system. This method enables a simplified distributed system or device to be realized, the reliability to be enhanced, the manufacturing cost of the system to be reduced, and the maintainability of the system to be optimized.

Description

一种基于点对点报文同步的采样及控制方法 技术领域  Sampling and control method based on point-to-point message synchronization
本发明涉及电力和工业控制相关的基于分布式采样及控制的设备或系统的 典型应用, 尤其涉及一种基于点对点报文同歩的采样及控制方法, 属电力电子 技术领域。  The present invention relates to a typical application of a distributed sampling and control based device or system related to power and industrial control, and more particularly to a sampling and control method based on peer-to-peer message homology, which belongs to the field of power electronics.
背景技术 Background technique
在电力系统控制保护及电力电子设备的应用过程中, 由于相关设备安装的 地理位置的不同或是单套装置设计资源容量的受限, 不能够在单台设备中实现 全部的采样及控制功能, 需要将设备或系统设计成基于分布式的采样及控制系 统来实现全部整体的功能, 比如常见的风电变流控制系统、 分布式电力故障录 波采集器设备、 分布式电子式互感器采集器等应用。 这些设备需要严格的采样 同歩和控制同歩, 因此设备的正常运行需要基于主控制器的同歩信号来实现整 个系统的协调控制。  In the application process of power system control protection and power electronic equipment, due to the geographical location of the related equipment installation or the limited design resource capacity of a single set of equipment, it is impossible to implement all sampling and control functions in a single device. Equipment or systems need to be designed to implement all of the overall functions based on a distributed sampling and control system, such as common wind power converter control systems, distributed power fault recorders, distributed electronic transformer collectors, etc. application. These devices require strict sampling and control, so the normal operation of the device requires coordinated control of the entire system based on the same controller's signals.
目前阶段, 各个设备制造厂家所设计的分布式采样控制系统多数采用独立 的外同歩控制信号的方式来实现同歩功能,进而实现采样和控制功能的同歩(比 如 PPS同歩、 CNVT/INT信号同歩), 此种方式实现的控制系统极易受外界电磁场 干扰的影响, 容易使同歩信号短暂丢脉冲或信号甚至丢失, 使得系统的可靠性 得不到保证; 此外, 由于仅是采用外同歩信号的驱动控制方式, 信号链路所承 载的信息量较少, 越来越不利于各分布式单元之间的信号交互, 如果需要增加 各单元间的通讯还需要增加专用的通信通道, 增加了系统造价成本、 在工程实 施中也增加了通讯布线, 不利于整个系统的集成度的提高。  At present, most of the distributed sampling control systems designed by various equipment manufacturers use independent external control signals to achieve the same function, so as to achieve the same sampling and control functions (such as PPS, CNVT/INT). The signal is the same as the 歩), the control system realized in this way is very susceptible to the influence of external electromagnetic field interference, and it is easy to cause the same signal to be temporarily pulsed or even lost, so that the reliability of the system cannot be guaranteed; The drive control mode of the external peer signal, the amount of information carried by the signal link is less, which is more and more unfavorable for signal interaction between the distributed units. If it is necessary to increase the communication between the units, a dedicated communication channel needs to be added. Increased system cost and increased communication wiring during project implementation, which is not conducive to the integration of the entire system.
针对这类分布式采样控制系统出现的新情况, 本发明专利提出了一种基于 点对点报文同歩的采样及控制技术, 为分布式采样控制控制系统提供了一种全 新的解决方案, 提高了系统的可靠性和灵活性。 In view of the new situation of such distributed sampling control systems, the present invention proposes a basis for The sampling and control technology of peer-to-peer messages provides a new solution for the distributed sampling control system, which improves the reliability and flexibility of the system.
发明内容 Summary of the invention
发明目的  Purpose of the invention
本发明的目的是通过就特定编码的通讯报文, 采用点对点的传输方式, 利 用 FPGA技术实现基于报文方式的同歩技术, 通过同歩脉冲的触发进而触发同歩 采样和同歩控制, 这样使得分布式采样控制系统的可靠性进一歩提高、 各分布 式单元之间的信息交互得以更加灵活, 同时也利于降低工程现场布线复杂度、 提高系统的集成度和运行的可维护性。  The purpose of the invention is to realize the peer-to-peer technology based on the message mode by using the peer-to-peer transmission method for the specific coded communication message, and trigger the simultaneous sampling and the peer control by triggering the same pulse. The reliability of the distributed sampling control system is further improved, the information interaction between the distributed units is more flexible, and the complexity of the engineering field wiring is improved, the integration degree of the system and the maintainability of the operation are improved.
技术方案  Technical solutions
为了实现上述目的, 本发明提供以下技术方案:  In order to achieve the above object, the present invention provides the following technical solutions:
一种基于点对点报文同歩的采样及控制方法, 其特征在于, 包括以下歩骤: 主控单元通过 FPGA芯片将同歩报文按设定的时刻下发给各分布式子单元, 各分布式子单元通过 FPGA芯片对接收到的同歩报文到达时刻沿进行锁定并解析 同歩报文信息、 根据报文延时和同歩时延触发同歩信号。 重点进行三个方面的 设计: 点对点通讯、 报文传输机制、 FPGA发送控制和接收同歩处理方法。  A sampling and control method based on peer-to-peer message homology, which is characterized in that the following steps are included: The main control unit sends the peer-to-peer message to each distributed sub-unit according to the set time through the FPGA chip, and each distribution The subunit unit locks the arrival edge of the received peer message through the FPGA chip and parses the peer message information, and triggers the peer signal according to the message delay and the peer delay. Focus on three aspects of design: point-to-point communication, message transmission mechanism, FPGA transmission control and receiving peer processing methods.
主控单元与各个子单元之间是点对点通讯连接, 传输通道共享, 并非网络 组网形式 (比如以太网组网形式), 点对点传输的物理层介质为电缆形式, 或适 合各类波长的光纤光缆通信介质。  The main control unit and each subunit are point-to-point communication connections, and the transmission channels are shared, not in the form of network networking (such as Ethernet networking). The physical layer medium for point-to-point transmission is in the form of cable, or fiber-optic cable suitable for various wavelengths. Communication medium.
所述点对点通讯中, 主控单元和子单元之间是一对一的双向链路通信; 对 于主控单元而言, 是一对多个子单元的通讯, 各个子单元之间是相互独立的, 主控单元内各个通道是相互独立的。 所述报文的传输遵循报文传输机制, 双向通信链路上传输的是报文形式的 数据流, 其不是简单的逻辑控制信号, 报文是以一定的编码形式存在的; 报文 传输机制包含同歩帧、 同歩采样帧或同歩控制帧、 数据值帧, 通讯帧采用的协 议或规约采用通用的标准规约, 或采用自行定义的规约形式, 报文传输的链路 层编码方式为曼彻斯特编码、 UART格式、 4B5B、 或 8B10B的形式。 In the point-to-point communication, a one-to-one bidirectional link communication is between the main control unit and the subunit; for the main control unit, communication is performed by a pair of subunits, and the subunits are independent of each other. Each channel in the control unit is independent of each other. The transmission of the message follows a message transmission mechanism, and the data stream in the form of a message is transmitted on the two-way communication link, which is not a simple logic control signal, and the message exists in a certain coding form; the message transmission mechanism It includes the same frame, the same sampling frame or the same control frame, the data value frame, the protocol or protocol adopted by the communication frame adopts the common standard protocol, or adopts a self-defined protocol form, and the link layer coding mode of the message transmission is Manchester encoding, UART format, 4B5B, or 8B10B form.
FPGA发送控制和接收同歩处理方法为:通过 FPGA实现同歩报文的实时发送; 同歩报文的接收是通过 FPGA高速时钟采样来锁定报文帧头到达的时刻沿, 并按 给定和计算所得的延时去驱动和触发采样或控制逻辑。  FPGA sending control and receiving peer processing methods are: real-time transmission of peer-to-peer messages through FPGA; peer-to-peer message reception is to lock the time edge of the message frame header by FPGA high-speed clock sampling, and according to the given sum The calculated delay drives and triggers the sampling or control logic.
FPGA发送控制和接收同歩处理方法为,主控单元通过 FPGA实现针对各个不 同对象的同歩报文的准时发送; 各分布式子单元通过 FPGA来检测同歩报文起始 帧头并接收解码相关报文、 通过延时控制实现采样或控制的同歩沿的触发, 同 时各分布式子单元还通过 FPGA实现同歩报文的接收容错。  The FPGA sending control and receiving peer processing method is: the main control unit realizes the on-time transmission of the peer-to-peer messages for different objects through the FPGA; each distributed sub-unit detects the start frame header of the same-type message through the FPGA and receives the decoding. Related messages, triggering of the same edge of sampling or control through delay control, and each distributed sub-unit also realizes the reception fault tolerance of the same message through the FPGA.
报文类型包括:  The message type includes:
同歩采样报文, 用于同歩各个采样单元, 使用精简协议减少传输延时; 采样值报文, 用于采集单元将采集的模拟量组帧回送;  The same sampling message is used for the same sampling unit, and the transmission delay is reduced by using the reduced protocol; the sampled value message is used by the collecting unit to send back the collected analog group frame;
同歩控制报文, 用于同歩各个控制单元并传输相关控制信息;  The peer control message is used for the same control unit and transmits related control information;
控制反馈报文, 用于控制单元将执行的反馈结果组帧后回送。  Control feedback message, used by the control unit to perform the feedback result and send it back to the frame.
有益效果  Beneficial effect
1) 通过基于点对点报文同歩的方式优化分布式采样控制系统的现场网络 布线, 优化系统造价, 增加集成度;  1) Optimize the field network cabling of the distributed sampling control system by means of peer-to-peer message peer-to-peer, optimize system cost and increase integration;
2) 使用 FPGA技术提高了同歩的性能参数, 可以达到 1 μ s 以下, 同时具 备容错功能和抗干扰性能; 3) 报文通讯支持不同的编码形式, 如曼彻斯特编码、 4B5B编码等;2) Using FPGA technology to improve the performance parameters of the same, can reach below 1 μ s, with fault tolerance and anti-interference performance; 3) Message communication supports different coding forms, such as Manchester coding, 4B5B coding, etc.;
4) 根据不同分布式控制系统的要求可支持不同的传输速率, 如 5Mbps、 10Mbps, 20Mbps或 100Mbps等; 4) Support different transmission rates according to the requirements of different distributed control systems, such as 5Mbps, 10Mbps, 20Mbps or 100Mbps;
5) 通讯传输介质适用于电缆和光缆两种通讯介质;  5) Communication transmission medium is suitable for two communication media: cable and optical cable;
6) FPGA协处理机制实现分布式采样控制系统的并发性计算,处理性能强。 本发明采用了 FPGA技术来实现同歩报文的准时发送、接收锁定、延时计算、 定时触发的功能, 通过点对点的报文传输将分布式主控单元和子单元之间 的信息进行定时交互, 各子单元使用 FPGA解析出的同歩脉冲信号触发采样 和控制逻辑, 这样使得分布式采样控制系统中的主控单元与各子单元之间 实现了基于点对点方式下报文级同歩的采样和控制功能, 此方法使得分布 式系统或设备的实现得以简化、 可靠性得以增强、 系统造价得以降低、 系 统的可维护性得以优化。  6) FPGA co-processing mechanism realizes the concurrency calculation of distributed sampling control system with strong processing performance. The invention adopts the FPGA technology to realize the functions of punctual transmission, reception locking, delay calculation and timing triggering of the peer-to-peer message, and the information between the distributed main control unit and the sub-unit is periodically interacted through the point-to-point message transmission. Each sub-unit uses the same-pulse signal parsed by the FPGA to trigger the sampling and control logic, so that the main control unit and each sub-unit in the distributed sampling control system realize the sampling and sampling based on the peer-to-peer mode. Control function, which simplifies the implementation of distributed systems or devices, increases reliability, reduces system cost, and optimizes system maintainability.
附图说明 DRAWINGS
图 1是本方案的时序逻辑图;  Figure 1 is a timing logic diagram of the scheme;
图 2是主控制器端原理框图;  Figure 2 is a block diagram of the main controller;
图 3是分布式采集端框图;  Figure 3 is a block diagram of the distributed acquisition end;
图 4是分布式控制端框图;  Figure 4 is a block diagram of the distributed control terminal;
图 5是总体原理框图。  Figure 5 is a block diagram of the overall principle.
具体实施方式 detailed description
下面结合附图对本发明进一歩说明。  The invention will now be further described with reference to the accompanying drawings.
主控制器通过 FPGA芯片将同歩报文 (同歩采样帧或同歩控制帧) 按设定的 时刻下发给各分布式子单元, 各分布式子单元通过 FPGA对接收到的同歩报文到 达时刻沿进行锁定并解析同歩报文信息、 根据报文延时和同歩时延触发同歩信 号, 如分布式采集单元根据此同歩信号采样组帧后发给主控制器, 主控制器解 析采样报文交予主运算处理器计算, 完成后将结果通过 FPGA按设定的时刻下发 控制报文给各控制子单元, 控制子单元根据同歩控制报文触发同歩信号进而触 发控制逻辑功能, 控制子单元在完成同歩执行后将反馈结果以报文形式回馈给 主控制器, 实现了整个系统的同歩采样及控制功能。 主控制器和各分布式单元 之间的报文通过不同的报文类型来加以区分实现。 其时序逻辑如图 1所示。 The main controller sends the peer message (the same sampling frame or the same control frame) to each distributed sub-unit through the FPGA chip, and each distributed sub-unit receives the same report through the FPGA. The text arrives at the time of the lock and parses the peer message information, triggers the peer message according to the message delay and the peer delay. If the distributed acquisition unit samples the framing according to the same 歩 signal, it sends the framing to the main controller, and the main controller parses the sampled message and sends it to the main operation processor for calculation. After the completion, the result is sent to the host at the set time. The control message is sent to each control sub-unit, and the control sub-unit triggers the control logic function according to the peer control message, and the control sub-unit returns the feedback result to the main controller in the form of a message after completing the peer execution. The same system sampling and control functions are realized. The message between the main controller and each distributed unit is differentiated by different message types. Its timing logic is shown in Figure 1.
本发明的工作原理如下- The working principle of the invention is as follows -
1, 主控制器端原理, 如图 2所示, 包含主运算处理器 DSP和 FPGA处理器, 通过 FPGA扩展多路报文收发通道; 主控制器在每个控制周期内按照设定的延时 发送同歩采样报文, 待收到采样值后进行相应的运算处理, 处理完成后按照设 定的延时发送同歩控制报文, 等待控制反馈值报文; 依次循环。 1, the main controller terminal principle, as shown in Figure 2, including the main operation processor DSP and FPGA processor, through the FPGA to extend the multi-channel message transmission and reception channels; the main controller in accordance with the set delay in each control cycle The same sampling message is sent, and the corresponding processing is performed after the sampling value is received. After the processing is completed, the peer control message is sent according to the set delay, and the control feedback value message is waited for;
2 , 分布式采集端原理, 如图 3所示, 由 FPGA处理器和 ADC采集电路组成; 采集单元在收到同歩采样报文后进行同歩并延时触发 ADC采样, 采样完成后组 帧并发送采样值报文; 同时, 通过 FPGA的处理对同歩采样报文具有一定的容错 处理和抗干扰功能。  2, the principle of distributed acquisition terminal, as shown in Figure 3, consists of FPGA processor and ADC acquisition circuit; After receiving the same sampling message, the acquisition unit performs the same and delays triggering ADC sampling, and the framing after sampling is completed. And send the sampled value message; At the same time, the processing of the FPGA has certain fault-tolerant processing and anti-interference function for the same sampled message.
3, 分布式控制端原理, 如图 4所示, 由 FPGA处理器和外围驱动控制模块 组成, 在 FPGA内部主要实现四部分内容, 包含同歩控制报文接收处理单元、 逻 辑控制单元、 控制回读单元、 报文发送单元。 控制单元在收到同歩报文后进行 同歩并延时触发逻辑控制功能, 在控制执行并反馈完成后组帧发送反馈报文; 同时, 通过 FPGA的处理对同歩控制报文具有一定的容错处理和抗干扰功能。  3, the principle of the distributed control terminal, as shown in Figure 4, consists of the FPGA processor and the peripheral drive control module, which mainly implements four parts in the FPGA, including the peer control message receiving and processing unit, the logic control unit, and the control back. Read unit, message sending unit. After receiving the peer message, the control unit performs the same function and delays the triggering of the logic control function. After the control is executed and the feedback is completed, the control group sends the feedback message. At the same time, the processing of the FPGA has certain certain control messages. Fault-tolerant processing and anti-jamming capabilities.
4, 报文设计说明:  4, message design instructions:
报文类型包括同歩采样报文 (用于同歩各个采样单元, 使用精简协议减少 传输延时)、 采样值报文 (用于采集单元将采集的模拟量组帧回送)、 同歩控制 报文 (用于同歩各个控制单元并传输相关控制信息)、 控制反馈报文 (用于控传 单元将执行的反馈结果组帧后回送)。 The message type includes the same sampling message (for the same sampling unit, using the reduced protocol to reduce the transmission delay), the sampled value message (for the acquisition unit to collect the collected analog group frame), and the same control The message (for the same control unit and transmitting relevant control information), and the control feedback message (for the feedback result that the control unit will perform the framing and returning).
图 5 是基于点对点报文同歩实现采样和控制的总体原理框图, 此技术方 包含三类分布式单元中的内容, 分别为主控制器单元、 采集单元和控制单元。  Figure 5 is a block diagram of the overall principle of sampling and control based on peer-to-peer message. This technology contains the contents of three types of distributed units, namely the main controller unit, the acquisition unit and the control unit.
主控制器单元即为此分布式系统的主处理单元, 负责同歩各个分布式子与 元、 处理解析各子单元的各类数据、 进行实时处理计算、 控制报文发送以及 数配置等功能, 其一般为含处理器处理设备单元。  The main controller unit is the main processing unit of the distributed system. It is responsible for the functions of all distributed sub-elements, processing and parsing various sub-units, real-time processing and calculation, control packet transmission, and number configuration. It is typically a processor-containing processing unit.
采集单元 1、 2主要实现独立的数据采样发送功能,可以为双重发送等功能 也可以实现参数校准优化等, 一般为分布于各个采集量的附近, 就近布置, 4 化系统设计提高抗干扰能力。  The acquisition unit 1 and 2 mainly implement independent data sampling and transmitting functions, which can be dual transmission and other functions, and can also realize parameter calibration optimization, etc., which are generally distributed in the vicinity of each collection amount, and are arranged nearby, and the 4 system design improves the anti-interference ability.
控制单元 1、 2主要实现各个不同应用需求的控制逻辑, 可以实现进行参娄 配置等, 用于具体执行对象的实时控制、 反馈以及相关的容错处理。  The control unit 1 and 2 mainly implement the control logic of each application requirement, and can implement parameter configuration, etc., for real-time control, feedback and related fault-tolerant processing of specific execution objects.
以上用于说明原理的分布式单元 (采集单元或控制单元), 不局限于名称, 其可以是多功能的分布式控制器, 其内部可为含 CPU或 DSP等微处理器的控传 单元。  The above distributed unit (acquisition unit or control unit) for explaining the principle is not limited to the name, and may be a multi-functional distributed controller, which may be a control unit including a microprocessor such as a CPU or a DSP.

Claims

权 利 要 求 书 claims
1、 一种基于点对点报文同步的采样及控制方法, 其特征在于, 包括以下步骤: 主控单元通过 FPGA芯片将同步报文按设定的时刻下发给各分布式子单元, 各分 布式子单元通过 FPGA芯片对接收到的同步报文到达时刻沿进行锁定并解析同歩 报文信息、 根据报文延时和同步时延触发同步信号。 1. A sampling and control method based on point-to-point message synchronization, which is characterized by including the following steps: The main control unit sends the synchronization message to each distributed sub-unit at a set time through the FPGA chip, and each distributed sub-unit The sub-unit locks the arrival time edge of the received synchronization message through the FPGA chip, analyzes the synchronization message information, and triggers the synchronization signal based on the message delay and synchronization delay.
2、根据权利要求 1所述的基于点对点报文同步的采样及控制方法,其特征在于, 主控单元与各个子单元之间是点对点通讯连接, 传输通道共享, 点对点传输的 物理层介质为电缆形式, 或适合各类波长的光纤光缆通信介质。 2. The sampling and control method based on point-to-point message synchronization according to claim 1, characterized in that the main control unit and each sub-unit are point-to-point communication connections, the transmission channel is shared, and the physical layer medium of point-to-point transmission is a cable. form, or fiber optic cable communication media suitable for various wavelengths.
3、根据权利要求 2所述的基于点对点报文同步的采样及控制方法,其特征在于, 所述点对点通讯中, 主控单元和子单元之间是一对一的双向链路通信; 对于主 控单元而言, 是一对多个子单元的通讯, 各个子单元之间是相互独立的, 主控 单元内各个通道是相互独立的。 3. The sampling and control method based on point-to-point message synchronization according to claim 2, characterized in that in the point-to-point communication, there is a one-to-one bidirectional link communication between the main control unit and the sub-unit; for the main control For a unit, it is a communication between one pair of multiple sub-units, each sub-unit is independent of each other, and each channel in the main control unit is independent of each other.
4、根据权利要求 1所述的基于点对点报文同步的采样及控制方法,其特征在于, 所述报文的传输遵循报文传输机制, 双向通信链路上传输的是报文形式的数据 流; 报文传输机制包含同步帧、 同步采样帧或同步控制帧、 数据值帧, 通讯帧 采用的协议或规约采用通用的标准规约, 或采用自行定义的规约形式, 报文传 输的链路层编码方式为曼彻斯特编码、 UART格式、 4B5B、 或 8B10B的形式。 4. The sampling and control method based on point-to-point message synchronization according to claim 1, characterized in that the transmission of the message follows the message transmission mechanism, and what is transmitted on the two-way communication link is a data stream in the form of a message. ; The message transmission mechanism includes synchronization frames, synchronization sampling frames or synchronization control frames, and data value frames. The protocols or protocols used in communication frames adopt common standard protocols or adopt self-defined protocols. Link layer coding of message transmission The mode is Manchester encoding, UART format, 4B5B, or 8B10B.
5、根据权利要求 1所述的基于点对点报文同步的采样及控制方法,其特征在于, FPGA发送控制和接收同步处理方法为:通过 FPGA实现同歩报文的实时发送; 同 步报文的接收是通过 FPGA高速时钟采样来锁定报文帧头到达的时刻沿, 并按给 定和计算所得的延时去驱动和触发采样或控制逻辑。 5. The sampling and control method based on point-to-point message synchronization according to claim 1, characterized in that the FPGA transmission control and reception synchronization processing method is: realizing real-time transmission of synchronization messages through FPGA; receiving synchronization messages It uses FPGA high-speed clock sampling to lock the arrival time edge of the message frame header, and drives and triggers the sampling or control logic according to the given and calculated delay.
6、根据权利要求 1所述的基于点对点报文同步的采样及控制方法,其特征在于, FPGA发送控制和接收同步处理方法为,主控单元通过 FPGA实现针对各个不同对 象的同步报文的准时发送; 各分布式子单元通过 FPGA来检测同步报文起始帧头 沿的触发, 同时各 6. The sampling and control method based on point-to-point message synchronization according to claim 1, characterized in that the FPGA transmission control and reception synchronization processing method is that the main control unit realizes on-time synchronization messages for each different object through the FPGA. Send; Each distributed sub-unit detects the starting frame header of the synchronization message through FPGA edge trigger, simultaneously each
PCT/CN2013/084177 2013-06-27 2013-09-25 Sampling and control method based on point-to-point message synchronization WO2014205936A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310262761X 2013-06-27
CN201310262761XA CN103369036A (en) 2013-06-27 2013-06-27 Point to point message synchrony-based sampling and controlling method

Publications (1)

Publication Number Publication Date
WO2014205936A1 true WO2014205936A1 (en) 2014-12-31

Family

ID=49369557

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/084177 WO2014205936A1 (en) 2013-06-27 2013-09-25 Sampling and control method based on point-to-point message synchronization

Country Status (2)

Country Link
CN (1) CN103369036A (en)
WO (1) WO2014205936A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103795790A (en) * 2014-01-23 2014-05-14 国电南瑞科技股份有限公司 Distributed synchronous sampling and control system and method based on communication
CN103795520B (en) * 2014-01-23 2017-01-25 国家电网公司 Method for real-time synchronization based on FPGA message
CN105162726B (en) * 2015-09-02 2018-05-29 南京磐能电力科技股份有限公司 Long-range SV data transmissions and delay compensation method based on E1 links
CN107817721B (en) * 2017-10-26 2020-10-30 上海乐耘电气技术有限公司 Electric power wave recording data synchronous acquisition system
CN108111224B (en) * 2017-12-05 2019-08-09 艾乐德电子(南京)有限公司 A kind of asynchronous fiber optic communication method, apparatus and network
CN111130070B (en) * 2019-12-18 2021-10-22 南京国电南自电网自动化有限公司 Line differential protection method based on wireless network retransmission mechanism

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252404A (en) * 2008-03-31 2008-08-27 重庆大学 Distributed network clock synchronizing system and method based on FPGA
CN101455014A (en) * 2006-02-22 2009-06-10 西门子企业通讯有限责任两合公司 Methods and devices for sending transmission-time or reception-time information for a transmitted or received message
CN102938565A (en) * 2012-09-28 2013-02-20 上海交通大学 Large-scale parallel system-based distributed communication system and control method thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100358313C (en) * 2005-04-05 2007-12-26 上海瑞生电梯有限公司 Synchronous communication system between evocation board outside elevator ball and main control board
CN101022447A (en) * 2006-12-27 2007-08-22 康佳集团股份有限公司 Digital signal multiplier speed transmitting method
CN101296066B (en) * 2008-06-30 2010-12-08 杭州华三通信技术有限公司 Real time clock synchronization method of distributed system, master control board and cable fastener plate
CN101521561B (en) * 2009-03-31 2011-07-20 清华大学 High-speed RS485 energy/data transmission terminal
CN102774389A (en) * 2012-07-27 2012-11-14 南京恩瑞特实业有限公司 Synchronous control system and method for heavy-duty locomotive

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101455014A (en) * 2006-02-22 2009-06-10 西门子企业通讯有限责任两合公司 Methods and devices for sending transmission-time or reception-time information for a transmitted or received message
CN101252404A (en) * 2008-03-31 2008-08-27 重庆大学 Distributed network clock synchronizing system and method based on FPGA
CN102938565A (en) * 2012-09-28 2013-02-20 上海交通大学 Large-scale parallel system-based distributed communication system and control method thereof

Also Published As

Publication number Publication date
CN103369036A (en) 2013-10-23

Similar Documents

Publication Publication Date Title
WO2014205936A1 (en) Sampling and control method based on point-to-point message synchronization
CN108011694B (en) A kind of efficient data exchange method based on FC
WO2016119525A1 (en) Elastic data interaction integrated bus system
CN101741766B (en) Conversion device from CAN network to ethernet network
CN105743566B (en) A kind of double-PON port ONU optical link pretection switch devices and guard method
WO2014056248A1 (en) Lpc2468-based mvb-wtb gateway and working method thereof
CN101753578B (en) ETHERNET/EI protocol conversion method and protocol converter
CN108259127B (en) PCIE dual-redundancy ten-gigabit network IP core
CN103905281A (en) FC-AE-1553 bus node card capable of interchangeably achieving functions of network controller and network terminal
CN102332971B (en) Field-bus full duplex reliable communication method for numerical control system
CN110299999A (en) A kind of train real-time ethernet TRDP network interface card based on Linux platform
CN107241382B (en) Data conversion method and device used between serial port and Ethernet
JP2014519107A (en) Industrial controller device capable of low error rate and ultra-high speed serial communication and driving method thereof
CN111614166B (en) Excitation power supply control system and method based on SFP + multi-module accelerator
CN103795520A (en) Method for real-time synchronization based on FPGA message
CN100495858C (en) Method for sampling and processing transmission data for protecting transmission line optical-fiber longitudinal difference
CN107579894B (en) FPGA-based EBR1553 bus protocol implementation device
CN106506306B (en) Method and device for transmitting data message
CN107911288B (en) Train communication network card and train control management system
CN102647268A (en) Semi-duplex communication transmitting-receiving control device and method thereof
CN101771617B (en) Method and system for following point-to-point bandwidth, remote terminal equipment and home terminal equipment
CN110297795B (en) System and method for realizing single-channel serial data transmission based on Ethernet PHY chip
CN210518377U (en) EtherCAT, ProfiNET bus compatible system
CN103888331A (en) General high speed bus device for distribution terminal and data interaction method
CN204578681U (en) Based on the remote commanding system of multi-modal communications

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13887716

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13887716

Country of ref document: EP

Kind code of ref document: A1