CN101018115B - Real time synchronization network based on the standard Ethernet and its operating method - Google Patents

Real time synchronization network based on the standard Ethernet and its operating method Download PDF

Info

Publication number
CN101018115B
CN101018115B CN 200710013313 CN200710013313A CN101018115B CN 101018115 B CN101018115 B CN 101018115B CN 200710013313 CN200710013313 CN 200710013313 CN 200710013313 A CN200710013313 A CN 200710013313A CN 101018115 B CN101018115 B CN 101018115B
Authority
CN
China
Prior art keywords
device
data
master
configuration
packet
Prior art date
Application number
CN 200710013313
Other languages
Chinese (zh)
Other versions
CN101018115A (en
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 山东大学
Priority to CN 200710013313 priority Critical patent/CN101018115B/en
Publication of CN101018115A publication Critical patent/CN101018115A/en
Priority claimed from PCT/CN2008/000268 external-priority patent/WO2008101394A1/en
Application granted granted Critical
Publication of CN101018115B publication Critical patent/CN101018115B/en

Links

Abstract

The disclosed real-time synchronous network based on standard Ethernet divides devices in network into the primary and slavery ones, provides a network topology for full-duplex communication in Ethernet, and presents method for primary device to automatic enumerate and configure slavery devices.

Description

基于标准以太网的实时同步网络及其工作方法 Based on the real-time synchronization standard Ethernet network and its working methods

技术领域: FIELD:

[0001] 本发明涉及一种用于工业现场级通信的实时同步通信网络,尤其涉及一种基于标 [0001] The present invention relates to an industrial communication network, real-time synchronization field level for communication, and particularly to a standards-based

准以太网的实时同步网络,用于解决现场级通信系统中通信问题,即如何解决以太网用于现场级通信系统时,实现通信的实时性和以及系统的精确同步性。 Quasi-real-time synchronous Ethernet network for field level communication system to solve communication problems, namely how to solve the Ethernet communication system for the field level, accurate and real-time synchronization and communication systems.

背景技术 Background technique

[0002] 目前在工厂自动化和过程自动化领域中,现场总线是现场级通信系统中的主流解决方案。 [0002] Currently in factory automation and process automation, field bus communication system is field-level mainstream solutions. 不过,随着技术的不断进步和发展,传统现场总线越来越多地表现出了其本身的局限性。 However, with the continuous progress and development of technology, more and more traditional fieldbus demonstration of the limitations of its own. 一方面,随着现场设备智能程度的不断提高,控制变得越来越分散,分布在工厂各处的智能设备之间以及智能设备和工厂控制层之间需要连续地交换控制数据,这使得现场设备之间数据的交换量飞速增长;另一方面,随着计算机技术的发展,企业希望能够将底层的生产信息整合到统一的全厂信息管理系统中,于是企业的信息管理系统需要读取现场的生产数据,并通过工业通信网络实现远程服务和维护,因此,纵向一致性也成为热门的话题, 用户希望管理层和现场级能够使用统一的、与办公自动化技术兼容的通信方案,这样可以大大简化工厂控制系统的结构,节约系统实施和维护的成本。 On the one hand, with the increasing intelligence of field devices, control becomes increasingly decentralized, distributed between smart devices and smart devices throughout the plant and plant control layer requires a continuous exchange of control data, which makes the scene the amount of data exchange between devices rapid growth; on the other hand, with the development of computer technology, companies want to be able to integrate the underlying production information into a unified whole plant information management system, so enterprise information management system needs to read the scene production data, and remote service and maintenance through industrial communication networks, therefore, longitudinal consistency has become a hot topic, users want to be able to use the field level management and unified, and office automation technology compatible communication scheme, which can greatly simplifying the structure of the plant control system, cost of implementation and maintenance.

[0003] 基于这样的需求,以太网技术开始逐渐从工厂和企业的信息管理层向底层渗透, 以太网技术开始广泛地应用于工厂的控制级通信。 [0003] Based on such demands, Ethernet technology began to penetrate from the plant and to the underlying business management information, the Ethernet technology is widely used in the control start stage of the communication facility. 在自动化世界中使用以太网解决方案有几方面显著的优势:统一的架构、集成的通信以及强大的服务和诊断功能。 Use Ethernet solution has several significant advantages in the automation world: a unified architecture, integrated communications as well as strong service and diagnostic functions. 从目前工业自动化控制领域的情况来看,以太网技术取代现场总线是工业控制网络发展的必然趋势。 From the current situation of industrial automation and control point of view, Ethernet technology to replace the field bus control network is the inevitable trend of industrial development. [0004] 不过,将以太网技术应用于工厂的生产控制过程中并不是一个简单的移植过程。 [0004] However, the Ethernet technology used in factory production control process of the transplant is not a simple process. 在将以太网技术引入到控制级通信的过程中,为了满足工业控制系统的特殊需求,如现场环境、拓扑结构、可靠性等要求,必须对普通的办公室以太网做出调整和补充,以保证以太网技术在工业现场应用的可靠性,即我们常说的工业以太网。 In the process of Ethernet technology into the control level communication, in order to meet the special needs of industrial control systems, such as on-site environment, topology, reliability, etc., must make adjustments and additions to the ordinary office Ethernet, to ensure the reliability of Ethernet technology in the industrial field, that we often say that industrial Ethernet. 目前,在控制级通信网络领域中,工业以太网解决方案已经得到了广泛的认可和接受,企业和工厂也充分享受到了高性能通信网络带来的便利和收益。 At present, the control level in the field of communication networks, industrial Ethernet solutions have been widely recognized and accepted, businesses and factories also fully enjoy the convenience and benefits of high-performance communications network brings. 尽管如此,工业以太网技术在向最底层的现场级控制系统渗透时遇到了难以克服的障碍——通信的实时性和确定性。 Nevertheless, the industrial Ethernet technology encountered insurmountable obstacles in the lowest level of penetration of the field-level control system - real-time and deterministic communications. 由于以太网采用CSMA/CD碰撞检测方式,即:当一个网络上的某一个节点需要发送数据时,它首先监听信道,若信道忙就持续等待,直到它一旦监听到信道空闲时,就将数据发送出去。 Since the Ethernet using CSMA / CD collision detection mode, namely: when a node on a network needs to send data, it first listens to the channel, if the channel is busy and keeps waiting until it once listening to the channel is idle, it will be data sent out. 如果两个或多个节点都在监听和等待发送数据,当监听到信道空闲时,各节点就立即(几乎同时)开始发送数据,这是就发生冲突。 If two or more nodes are listening and waiting for data transmission, when listening to the channel is idle, each node immediately (almost simultaneously) starts to send data, which is the conflict occurs. 如果一个节点在传输期间检测到冲突,就立即停止传输,并向信道发出一个"拥挤"信号,以确保网络上的所有其他节点也发现冲突。 If a node detects a collision during transmission, the transmission is stopped immediately, and issues a "congestion" signal channel, to ensure that all other nodes on the network also found conflict. 在基于以太网的通信中,为避免冲突,各节点采用二进制指数退避(BEB,Binary Exponential Back-Off)算法处理冲突,但该方法具有冲突时延不确定性的缺陷。 Ethernet based communication, in order to avoid conflict, each node binary exponential backoff (BEB, Binary Exponential Back-Off) algorithm conflict, but this method has a defect conflict delay uncertainty. 当网络负荷较大时,网络传输的不确定性不能满足工业控制的实时性要求,因此传统以太网技术难以满足控制系统要求准确定时通信的实时性要求, 一直被视为非确定性网络。 When the network load is large, the uncertainty of the transmission network can not meet the requirements of real-time industrial control, and therefore the conventional control system can not meet the Ethernet technology requires accurate timing of the communication of real-time requirements, it has been regarded as non-deterministic network.

[0005] 工业控制网络是一种典型的实时应用系统,其中的任务(如功能块的执行)通常按照一定的时间间隔出发,并且对任务的执行时间具有截止性要求,这种任务称为周期性任务。 [0005] Industrial control network is a typical real-time application, wherein the task (e.g., function block execution) are typically spaced departure certain time, and having a cut-off requirement for the execution time of the task, the task that called the periodic task. 实时应用系统中还有一种任务,这种任务只有在特定的事件触发下才出现,例如设备配置、故障诊断、程序的上载/下载、运行记录、报警处理等,这种任务称为非周期性任务, 非周期性任务是随机触发的。 There is also a real-time application tasks, such tasks only occur under certain trigger events, such as device configuration, diagnostics, upload / download program, run record, alarm processing, this task is called aperiodic tasks, aperiodic task is randomly triggered. 这两种任务反映在工业控制网络的通信中,就是两类通信信息:周期性通信信息和非周期性通信信息。 These two tasks are reflected in industrial control communication network, the communication is two types of information: the periodic and aperiodic communication information communication information. 周期性通信信息是实时信息,非周期信息是非实时信息,周期性通信信息和非周期性通信信息具有不同的时间特性。 Cyclic communication information is real-time information, information of non-periodic non-real-time information, periodic and aperiodic communication information of the communication information having different time characteristics. 一旦系统组态完成,周期性通信信息的发送就具有时间确定性。 Once the system configuration is completed, the communication information periodically transmitted on time-deterministic. 而非周期性通信信息往往是突发信息,在时间上是不确定的。 And the communication information is often aperiodic burst information in time is uncertain.

[0006] 为了提高以太网的实时性和确定性,人们作了不少研究,提出各种方法来改进CSMA/CD,按照对CSMA/CD的改进方法划分,主要有:改进以太网MAC协议、在以太网上层增加传输控制机制等。 [0006] In order to improve real-time and deterministic Ethernet, people made a lot of research, propose ways to improve CSMA / CD, according to an improved method for CSMA / CD division, are: improved Ethernet MAC protocol, increase transmission control mechanism in the upper Ethernet. CSMA/DCR(Deterministic Collision Resolution)是最具有代表性的一种MAC协议改进方法。 CSMA / DCR (Deterministic Collision Resolution) is a MAC protocol improved the most representative method. 当冲突发生时,采用确定性的二叉树寻址方法,CSMA/DCR依照节点地址采取先序遍历的方式解决冲突。 When a collision occurs, the binary deterministic addressing method, CSMA / DCR taken in accordance with the node address preorder traversal of conflict resolution. 当冲突发生时,低优先级的节点停止对信道的竞争, 而高优先级的节点继续竞争信道,直到成功传输。 When a collision occurs, low-priority node to stop competing for the channel, and the high-priority channel node continue to compete until a successful transmission. 这种修改以太网MAC协议的方式虽然可以极大的改善以太网通信确定性的问题,却是以更改以太网固件(以太网控制器硬件和软件)为代价的,很难与标准的商用以太网兼容,并且增加了开发成本。 This modification Ethernet MAC protocol of the way although you can greatly improve the deterministic Ethernet communication problem, but it is to change the Ethernet firmware (Ethernet controller hardware and software) for the price, it is difficult with standard commercial Ethernet network compatible, and increased development costs.

[0007] 在以太网上层增加传输控制机制中最典型的一种方法是时分多路获取(TDMA)策略,TDMA为每个节点分配一定的带宽,每个节点在固定的时间片内发送信息,以保证每个节点的信息具有确定的发送时间。 [0007] increase in the upper most typical Ethernet transmission control mechanism, a method is a time division multiple acquisition (TDMA) policy, TDMA assigned a certain bandwidth for each node, each node transmitting information within a fixed time slices, to ensure that each node has information of the determined transmission time. 由于TDMA不需要传输额外的控制信息,使得网络带宽得使用率比较高。 Because TDMA does not require additional control information transmission, such that the network bandwidth utilization too high. 但TDMA是基于节点的方法,不能反映每个节点的实际带宽要求,无法保证非周期信息及时发送。 But TDMA is a node-based method, each node does not reflect the actual bandwidth requirements, can not guarantee timely delivery of non-periodic information. 另外一种在以太网上层增加传输控制的方法是主从式传输控制方式,这是一种集中式的传输控制方式,网络中至少有一个主设备和多个从设备,从设备只有在收到来自主设备的控制报文之后,才可以发送数据。 Another method of increasing the upper Ethernet transmission control is the master-slave transmission control method, which is a centralized transmission control mode, the network having at least one master device and a plurality of slave devices, the slave device receives only be after the control packets autonomous devices, you can send data. 这种主从式传输控制方式的优点是可以保证每个从设备都有发送数据的机会,但缺点是无法处理工业控制网络中的突发性通信,例如工业控制网络中的报警信息。 From the main advantage of this embodiment is the transmission control formula can ensure that each has a chance to transmit data from the device, but the drawback is unable to handle bursty industrial control network, such as industrial control network alarm information.

[0008] 因此,尽管上述方法都在一定程度上提高了以太网传输的实时性和确定性,却是以改变以太网结构为代价(如CSMA/DCR),或者在较低的网络层次(如MAC层的上层)实现,这些方法的最大不足是实现难度大,往往涉及到硬件,无法与传统标准的以太网相互兼容,并且无法满足工业控制网络中对两类信息-周期信息(即实时信息)和非周期信息(通常为非实时信息)进行同时处理的特殊要求。 [0008] Thus, although the above methods are improved real-time and deterministic Ethernet transmission to a certain extent, but Ethernet is changing the structure of the cost (such as CSMA / DCR), or at a lower network layers (such as upper layer) to achieve the MAC layer, the biggest deficiency of these methods is difficult to achieve, often related to hardware, not compatible with the conventional standard Ethernet, and can not meet the industrial control network of two types of information - period information (ie, real-time information ) and aperiodic information (typically a non-real-time information) for the special requirements of concurrent processing.

[0009] 快速以太网与交换式以太网技术的发展,给解决以太网的非确定性问题带来了一种解决方案,使这一应用成为可能。 [0009] Fast Ethernet and switched Ethernet technology development, to solve the problem of non-deterministic Ethernet brings a solution to make this application possible. 首先,Ethernet的通信速率从10M、 100M增大到如今的1000M、10G,在数据吞吐量相同的情况下,通信速率的提高意味着网络负荷的减轻和网络传输延迟的减小,即碰撞几率大大下降。 First, the communication rate from the Ethernet 10M, 100M now increased to 1000M, 10G, in the case where the same data throughput, the communication rate is increased and reduced mean that reducing the network transmission delay of the network load, i.e., the probability of collision is greatly decline. 其次采用星形网络拓扑结构,交换机将网络划分为若干个网段。 Secondly, a star network topology, the switch network is divided into several segments. Ethernet交换机由于具有数据存储、转发功能,使各端口之间输入和输出的数据帧能够得到缓冲,不再发生碰撞同时交换机还可对网络上传输的数据进行过滤,使每个网段内节点间数据的传输只限在本地网段内进行,而不再需要经过主干网,也不再占用其他网段内的带宽,从而降低了所有网段和主干网的网络负荷。 Since the Ethernet switch has a data storage, forwarding the data input and output between the frames can be buffered for each port, while the switch may no longer collide on the network data transmission filter, so that each inter-node network segment transmitting data for only the local subnet, and no longer need to go through the backbone network, the other network segment is no longer occupied bandwidth, thereby reducing the network load of all the segments and the backbone. 再次,全双工通信又使得端口间两对双绞线(或两对光纤)上分别同时接收和发送报文帧,也不会发生冲突。 Again, full duplex communication between the port and that two pairs of twisted-pair (or two pairs of optical fibers) are simultaneously transmitted and received message frame, the collision does not occur. 因此,采用交换式集线器和全双工通信,可使网络上的冲突域不复存在(全双工通信),或碰撞几率大大降低(半双工),因而使Ethernet通信确定性和实时性大大提高。 Therefore, the switching hub and the full duplex communication, can no longer exist on the network collision domains (full duplex), or greatly reduce the probability of collision (half duplex), and thus the real-time deterministic Ethernet communications greatly improve. 但是采用全双工交换式以太网,改变了CSMA/CD机制,网络的通信速度和效率将取决于交换机。 However, full-duplex switched Ethernet, changing the CSMA / CD mechanism, communication speed and efficiency of the network will depend on the switch. 为了减少交换机对整个网络速度和效率的影响,组网时要尽量避免跨多个交换机通信,将经常交换数据的设备放在一个网段内,这将给组网增加难度,也不利于以后系统的扩展。 To reduce the impact on the entire switch network speed and efficiency, to try to avoid when networking across multiple communication switches, data frequently switching equipment on a network segment, which will increase the difficulty of networking, system is not conducive to the future extension.

[0010] 有的系统对通信节点的同步性也有严格的要求,比如在运动控制中,各轴的同步性也是一个非常重要的因素。 [0010] Some systems for synchronous communications node also has strict requirements, such as motion control, synchronization of the respective axes is also a very important factor. 现有的解决方案为网络上的所有站点必须通过精确的时钟同步以实现同步实时以太网。 All sites of existing solutions on the network must be synchronized in order to achieve real-time synchronization via Ethernet accurate clock. 例如:Internet网络时间协议NTP(Network Time Protocal)、 简单时间网络协议SNTP(Simple Network Time Protocal) 、IEEE1588标准精确时间协议协议PTP (Precision Time Protocal),周期性的通过发送带有时间戳协议的同步数据包实现通信循环的同步。 For example: Internet Network Time Protocol NTP (Network Time Protocal), Simple Network Time Protocol SNTP (Simple Network Time Protocal), IEEE1588 Precision Time Protocol standard protocol PTP (Precision Time Protocal), with periodic synchronization protocol by transmitting a time stamp synchronization packets for communication cycle. 在要求同步精度为微秒级的场合,想要获得如此高的同步定时,单纯靠软件是无法实现的,必须依靠网络第二层(数据链路层)中硬件的支持,即等时实时ASIC芯片。 Require synchronization accuracy in the order of microseconds occasions, you want to get such a high synchronization timing, simply relying on software that can not be achieved, we must rely on the support of the second layer (data link layer) network hardware, such as real-time ASIC ie chip.

[0011] 现在很多使用以太网作现场级通信的厂商,上位机都是自己开发的专用控制网卡,以实现以太网的实时通信。 [0011] Many manufacturers now use real-time communication for field level Ethernet communication, the PC is its own development of special control card to enable Ethernet. 很难与标准以太网兼容,也很难与别的厂商开发的设备互换,形成各自独立的一套通信系统。 Compatible with standard Ethernet is difficult, it is difficult to exchange with other equipment manufacturers to develop and form their own independent set of communication systems.

[0012] 现在国际上主要有几个比较流行的工业以太网络,分别是PROFINET、 Ethernet/ IP、 PowerLink、 SY顆ET、 SERC0S III等。 [0012] There are now several popular industrial Ethernet Internationally, respectively PROFINET, Ethernet / IP, PowerLink, SY pieces ET, SERC0S III and so on.

[0013] PR0FINET :是一种典型的交换式以太网络,交换机采用的是一种基于地址的信息转发机制,网络的通信速度和效率将取决于交换机。 [0013] PR0FINET: is a typical switched Ethernet switch uses an information address based forwarding mechanism, the communication speed and efficiency will depend on the network switch. 为了减少交换机对整个网络速度和效率的影响,组网时要尽量避免跨多个交换机通信,将经常交换数据的设备放在一个网段内,这将给组网增加难度,也不利于以后系统的扩展。 To reduce the impact on the entire switch network speed and efficiency, to try to avoid when networking across multiple communication switches, data frequently switching equipment on a network segment, which will increase the difficulty of networking, system is not conducive to the future extension. 同时系统也无法枚举和配置各设备。 At the same time the system can not enumerate and configure each device. PR0FINET通过精确的时钟同步以实现同步实时以太网,通过规律的同步数据实现通信循环的同步,其精度可以达到微秒级,这么高的同步水平单纯靠软件是无法实现的,想要获得这么高精度的同步实时,必须依靠网络第二层中硬件的支持,即西门子IRT等时实时ASIC芯 PR0FINET through accurate clock synchronization in order to achieve simultaneous real-time Ethernet, through regular synchronization data synchronization communication cycle, its accuracy can reach microsecond, such a high level of synchronization can not be achieved simply by software, and want to get so high accuracy of real-time synchronization, must rely on the support of the hardware in the second layer of the network, namely Siemens IRT isochronous real-time ASIC core

片,增加了系统成本。 Sheet, increasing the system cost.

[0014] Ethernet/IP :Ethernet/IP的协议由IEEE 802. 3物理层和数据链路层标准、TCP/ IP协议组和控制与信息协议CIP (Control Information Protocol)等3个部分组成,前面两部分为标准的以太网技术,其特色就是被称作控制和信息协议的CIP部分。 [0014] Ethernet / IP: Ethernet / IP protocol IEEE 802. 3 by the physical layer and data link layer standards, TCP / IP protocol suite and control information protocol CIP (Control Information Protocol) and other three components, the first two part of standard Ethernet technology, which is referred to as characteristic information and protocol control section CIP. Ethernet/IP 网络采用商业以太网通信芯片、物理介质和星形拓扑结构,也是采用以太网交换机实现各设备间的点对点连接,系统也无法枚举和配置各设备。 Ethernet / IP network using Ethernet communication chip business, physical media, and star topology is implemented with an Ethernet switch-point connection between devices, the system can not each device enumeration and configuration. 最新版本的Ethernet/IP技术规范中包含了CIPSync,CIP Sync时间同步方案基于IEEE1588标准,通过主处理器(或从站)周期性的发送一个实时的时钟同步报文信号,以便其它的从处理器(或从站)能够准确地同步。 The latest version of Ethernet / IP specification contains CIPSync, CIP Sync time synchronization scheme based on IEEE1588 standard, through the main processor (or slave) periodically send a real-time clock synchronization signal packet to other slave processors (or slave) can be synchronized accurately. 这种方式将增加网络的负担,同样需要硬件的支持,即等时实时ASIC芯片。 This way will increase the burden on the network, also need hardware support, ie real-time ASIC chip. 这种方式, 所有站点都必须自带时钟,成本较高,用这样的通信机制对系统的编程带来很大的影响,因为控制任务必须通过时间触发的方式来启动,这提高了编程的难度,而且不符合工控工程人员的编程习惯。 This way, all stations must have its own clock, high cost, a great deal of influence with the programming of such communication mechanism of the system, because the control task must be initiated by means of time-triggered, which increases the difficulty of programming and do not meet the programming practice industrial engineering staff.

[0015] PowerLink :通过使用Hub来实现任意的网络拓扑结构,通过Hub来组网,使得系统很难枚举和配置各设备。 [0015] PowerLink: achieved by using an arbitrary network topology Hub, through the Hub to the network, such systems are difficult to each device enumeration and configuration. 为了避免冲突,PowerLink尽量利用带宽,在时间上重新组织了网 To avoid conflicts, PowerLink make full use of the bandwidth, in time to re-organize the network

7络中站点信息交互机制,在CSMA/CD基础上引入时间槽管理机制,网络上一个站点充当管理站管理网络通信,对其他站点给定同步节拍,分配给各站发布权限,各站只能在得到发布权限之后才可以发布信息。 7 sites in network information exchange mechanism, introduced in CSMA / CD based on the time slot management system, the site acts as a management station to manage network traffic on the network, given to other sites beat synchronization, publishing rights assigned to each station, each station can only Ads can only be obtained after publishing rights. 这种时间槽管理机制,虽然避免了网络上通信冲突,但也使各设备得非周期实时数据(如报警等)无法及时通知到系统。 Such a time slot management system, while avoiding communication collision on the network, but each have a non-periodic time data devices (e.g., alarms, etc.) can not be timely notified to the system.

[0016] SYNQNET :是一种环形网络结构,具有容错功能,主设备通过自己开发的一种专用控制网卡来实现实时同步网络,并修改了数据链路层MAC协议,实现了一种高性能的同步运动网络,由于是自己专用的控制网卡和修改了数据链路层MAC协议,使其很难与别的厂商和标准的以太网兼容。 [0016] SYNQNET: a ring network architecture, fault-tolerant, real-time synchronization master device to the network by means of a dedicated control card as they develop, and the modified MAC protocol data link layer, to achieve a high performance synchronous motion network, because it is their own dedicated control card and modify the data link layer MAC protocol, making it difficult to be compatible with other manufacturers and standard Ethernet.

[0017] SERC0S III :是一种环形或线型拓扑结构,主设备通过自己开发的专用控制网卡来实现实时同步网络,通信协议分为实时通信通道和非实时通信通道。 [0017] SERC0S III: is a linear or a ring topology, the master device through the network to achieve real-time synchronization control card dedicated to develop their own communication protocols are divided into real-time and non-real time communication channel communication channel. 实时通信通道传送用于显示和输入所有的控制内部参数、数据和诊断信息等实时数据。 Transmitting a communication channel in real time display and input of all the internal parameters of the control, data and diagnostic information in real-time data. 非实时通道使用标准的以太网帧来传送非实时数据。 Non-real-time channel using a standard Ethernet frame to transmit the non-real time data. 但并未提出系统中枚举和配置各设备的方法。 But the method system enumeration and configuration of each device is not made.

发明内容 SUMMARY

[0018] 本发明的目的就是为了解决目前将以太网用于现场级通信系统时,现有网络设备 [0018] The object of the present invention is to solve the current when the field level for Ethernet communication system, the existing network equipment

通信的实时性以及系统的精确同步性难以保障,而添加专用设备,又造成使用成本增高等 Precise synchronization and real-time communication system is difficult to protect, and add special equipment, such as increased costs and resulting in the use

问题,提供一种具有结构简单,成本较低,采用现有普通的通用网卡即可实现实时同步的基 Problems and provide a simple structure, low cost, using existing generic universal card required to achieve real-time synchronization of the base

于标准以太网的实时同步网络及其工作方法。 Real-time synchronization with standard Ethernet network and its working methods.

[0019] 为实现上述目的,本发明采用了如下技术方案: [0019] To achieve the above object, the present invention employs the following technical solutions:

[0020] —种基于标准以太网的实时同步网络,在分布式控制系统中,包括至少一个主设备和至少一个从设备,在从设备中任选一个为同步信号源,各设备通过传输协议传送数据, 主设备上有至少一个数据线接口,每个从设备有至少两个数据线接口,连接时彼此串行连接,即主设备的数据线接口通过数据线连接到从设备的一个数据线接口上,从设备的另一个数据接口通过数据线连接到下一个从设备的一个数据接口上,依次连接构成串行网络, 进行实时同步的全双工通信。 [0020] - species based real-time synchronization standard Ethernet network, the distributed control system, comprising at least one master device and at least one device, the device optionally from a synchronization signal source, each device is transmitted from the transmission protocol data, at least one data line interface on the master device, each slave device has at least two data line interface, a serial connection connected to each other, i.e., the data line interface to the master device from a data line by data line interface device on the other data from the device interface to the next interface device data from a sequentially connected to form serial network, full duplex communication in real time through the data line synchronization.

[0021] 所述各主设备有两个数据线接口,各从设备有两个数据线接口,在从设备中任选一个为同步信号源,各设备通过传输协议传送数据,主设备的一个数据线接口通过数据线连接到从设备的一个数据线接口上,从设备的另一个数据线接口通过数据线连接到下一个从设备的一个数据接口上,这样级联下去,一直连到最后一个从设备的数据线接口上,最后一个从设备的另一个数据线接口通过数据线连接到主设备的另一个数据线接口上,构成环形网络,进行实时同步的全双工通信。 [0021] The apparatus has two each of the main data line interface, each slave device has two data line interface, the device optionally from a synchronization signal source, a data transfer device for each data transfer protocol, the master device from the next cable interface is connected to a data line interface device, the data line from another device connected to the interface via a data line from a data interface device, such cascade down through the data line, been connected to the last a data line interface device, a last data line interface from another device via a data line to the master device on the other data line interface, a ring network configuration, real-time synchronization of full-duplex communication.

[0022] 所述同步信号源是在从设备中任选一个,并在其上安装同步信号线与其余的从设 The [0022] optionally a synchronization signal from the source device, and installing the synchronization signal line from the rest provided thereon

备连接,同步信号源负责严格的定时和同步信号的发送,周期性的发送同步信号,其他从设 Device is connected, the synchronization signal source and is responsible for strict timing synchronization signal transmitted periodically transmits the synchronization signal, provided from the other

备负责接收同步信号,各从设备中设有一个信号延迟参数寄存器,用于设定同步信号在传 Preparation responsible for receiving the synchronization signal, each provided with a signal delay parameter register from the device for setting a synchronization signal transmission

输线上的时间延迟,这个信号延迟参数可以通过主设备发送配置报文的形式来设定。 Time delay transmission line, the signal delay parameters can be sent in the form of packets configured to be set by the master device.

[0023] 所述同步信号源设定时,还可根据主设备发送命令报文的形式利用软件任意指定 [0023] The source of the synchronization signal is set, may also be utilized in accordance with the master device sends a command packet to specify any form of software

一个从设备为同步信号源,或者通过在任意一个从设备上设定拨码开关装置的方式确定一 In either a DIP switch setting means determines the way from the device to the device from a synchronization signal source, or by a

个从设备为同步信号源,然后用同步信号线将同步信号源与其余从设备连接。 A synchronization signal from the source device, then synchronized with a synchronization signal line from the signal source is connected with the rest of the device.

[0024] 所述数据线既包括数据发送线,也包括数据接收线,相邻的两个设备之间通信时没有冲突,实现全双工通信,数据线的传输介质既可为双绞线,也可为光纤。 [0024] The line data includes both the data transmission line, including a data receiving line, there is no conflict between two adjacent communication devices, to realize full-duplex communication, the transmission medium may be either a twisted-pair data lines, It may also be an optical fiber.

[0025] 所述全双工通信为,每个从设备有存储转发数据和直接转发数据的功能,主设备 [0025] The full-duplex communication for each function from a memory device and forwarding data forwarded directly to the data, the master device

同从设备进行通信时,各从设备转发主设备的信息,整个系统通信没有冲突,各从设备同主 Communicating with the slave device, the forwarding device from the device master information, the overall communication system does not conflict with the main apparatus from each

设备进行通信时,从设备如果有发送给主设备的数据,将先发送自己的数据给主设备,同时 When the communication device, the slave device if the master device transmits data to the first send their data to the main device, while

接收并存储后面一个从设备发送给主设备的数据,等待自己给主设备的数据发送完成后, Receiving and storing a transmitted back to the data device from the master device, after waiting for themselves to the completion of transmission of data of the main device,

再转发已存储的后一个从设备发送给主设备的数据,从设备如果没有发送给主设备的数 After the stored forwarded from a transmitting apparatus to the data of the main device, if the number of devices is not transmitted to the master device from

据,将直接转发后面一个从设备发送给主设备的数据,避免了通信冲突,实现了整个系统的 It will be forwarded directly to the back of a device transmitting data from the master device, to avoid communication conflicts, where the entire system

全双工通信。 Full-duplex communication.

[0026] 所述的串行或环形网络结构的传输协议形式可以是标准以太网传输协议,如IEEE802. 3帧协议格式,包括前导符、分割符、目的地址、源地址、长度/类型字段、数据段、 帧校验序列域等组成;其中数据段中包括非周期数据和周期数据,周期数据是工业控制中, 任务通常按照一定的时间间隔发出,并且对任务的执行时间具有截止性要求的数据,非周期数据是只有在特定的事件触发下才出现,如设备配置、故障诊断、程序的上载/下载、运行记录、报警处理等;还可适用于用户自定义的或其他公知的传输协议形式。 [0026] The transport protocol in the form of serial or ring network structure may be a standard Ethernet transmission protocol, such as IEEE802. 3 frame protocol format comprising a preamble, delimiter, destination address, source address, length / type field, data segment, frame check sequence field and the like; wherein the data segment comprises a non-periodic data and cycle data, industrial control cycle data, a task usually given in accordance with a certain time interval, and the execution time of the task having the cutoff requirements data, non-periodic data appear only under certain event trigger, such as device configuration, diagnostics, upload / download program, log, alarm processing and the like; also applies to user-defined or other well-known transfer protocols form. [0027] —种基于标准以太网的实时同步网络的工作方法, [0027] - kind of standards-based Ethernet network, real-time synchronization of working methods,

[0028] (1)首先,主设备对从设备进行自检,主设备发送一个查询报文,第一个从设备首先接收到此查询报文,第一个从设备将转发此查询报文,并发送自己的应答报文和将自己的设备号初始化为0,各从设备在收到查询报文后依次转发此查询报文,并发送自己的应答报文和将自己的设备号初始化为0,直到最后一个从设备,最后一个从设备可以通过拨码开关来确定,该最后一个从设备收到此查询报文后,发送自己的应答报文,包含为最后一个从设备的信息,并将自己的设备号初始化为0,主设备收到最后一个从设备的应答报文后, 说明系统连接可靠和各设备正常工作;若主设备在发送完查询报文后,等待一段时间,此时间为正常情况下枚举最大从设备的最长时间的2倍,仍然收不到最后一个从设备的应答报文,将报告错误,说明有故障; [0028] (1) First, the master device performs a self-test from the device, the master device sends a query message from the first device first receives this query message, forwarding the first message from the query device, and send your own messages and reply to their device number is initialized to 0, from each device in turn forwards the query message after receiving the query message, and send your own messages and reply to their device number is initialized to 0 until the last, the last can be determined by the device from the device from the DIP switch, the last packet received from the query device, sends its own response message containing the last information from a device, and own device number is initialized to 0, the master received a final response message from the device, indicating the system reliable connection and each device is working properly; if the master device after you send a query message, wait for some time, this time enumeration maximum of twice the maximum time from the device under normal circumstances, there are still no final response message from the device, will report an error, there is a fault;

[0029] (2)自检通过后,主设备对从设备进行枚举和配置,即从主设备收到最后一个从设备的应答报文后,开始发送配置报文,跟主设备相连的第一个从设备,此时设备号为0,将先收到配置报文,收到此配置报文后,将不转发此配置报文到下一个从设备,第一个从设备将自己的设备号设置为1,同时发送一个应答报文,包含自己的设备号、该从设备的功能、作用等,主设备在配置完第一个从设备后,将再发个下一个配置报文,第一个从设备将转发此配置报文到第二个从设备,此时设备号为0,第二个从设备在收到此配置报文后将不转发此配置报文到下一个从设备,第二个从设备将自己的设备号设置为2,同时发送一个应答报文, 包含自己的设备号、该从设备的功能、作用等;这样依次类推,直到配置到最后一个从设备; 这样每个从设备都有自己唯一的设 [0029] (2) self-test passes, the master device performs enumeration and configuration from the device, i.e., the last received from the master device starts transmission of the configuration message from the device response message, the master device is connected with the first after a slave device, and the device number is 0, the configuration will first receive a packet, the packet receive this configuration, this configuration will not forward packets from the device to the next, from the first device to your device number is set to 1, and sends a response message containing its own device number, the function of the device from acting like a master in the configuration packet configuring the first slave device, send Jiangzai first this configuration from a packet to be forwarded to the device from a second device, and the device number is 0, the second device does not forward from this configuration after receiving this packet to the next configuration packet from the device, the second device from its device number is set to 2, and sends a response message containing its own device number, the function of the device from acting like; this so on until the last slave configuration; so that each a slave device has its own unique set 备标号,主设备也建立一个设备表,包含各从设备的设备号、各从设备的功能和作用等; Preparation of reference, the master device also create a table, contains the device number from the device, the function and effect of each other device;

[0030] (3)在主设备完成对各从设备的枚举和配置后,给每个从设备依次发送参数设定 [0030] (3) to complete the set for each, to sequentially transmitted from each device enumeration and configuration parameters from the master device

报文,包括同步信号延迟参数等,然后系统进入实时同步的正常运行状态。 Packet includes a synchronization signal delay parameters, then the system enters normal operation of the real-time synchronization.

[0031] 所述步骤(1)在环形网络中自检时,主设备发送一个查询报文,第一个从设备收 [0031] The step (1) self-check ring network, the master device sends a query message from a first device received

到之后转发到下一个从设备,同时将自己的设备号初始化为0,各从设备依次转发并将自己 After forwarding to the next slave device, while the own device number is initialized to 0, and their respective sequentially forwarded from device

设备号初始化为O,直到最后一个从设备,最后一个从设备再转发此查询报文到主设备,并初始化自己设备号为0 ;主设备在收到此查询报文后,说明系统连接可靠和各设备工作正常;若主设备等待一段时间后,此时间为正常情况下检测最大从设备数的最长时间的2倍, 仍然接收不到此查询报文,说明系统连接不可靠或某个设备不正常工作。 Initializing device number is O, until the last slave device, the last forwarded packets from the device to query the master device, and initializes the own device number is 0; master device after receiving the query message, and reliable connection system described each device is working properly; if the master after waiting for some time, this time to detect up to 2 times the maximum time from the number of equipment under normal circumstances, still do not receive the query message, indicating that the system is unreliable connection or a device It does not work properly.

[0032] 所述步骤(2)在环形网络中,主设备通过一个数据接口开始发送配置报文,跟主设备相连的第一个从设备,此时设备号为0,将先收到配置报文,收到此配置报文后,将不转发此配置报文到下一个从设备,第一个从设备将自己的设备号设置为l,同时发送一个应答报文,包含自己的设备号、该从设备的功能、作用等,主设备在配置完第一个从设备后,将再发个下一个配置报文,第一个从设备将转发此配置报文到第二个从设备,此时设备号为O, 第二个从设备在收到此配置报文后将不转发此配置报文到下一个从设备,第二个从设备将自己的设备号设置为2,同时发送一个应答报文,包含自己的设备号、该从设备的功能、作用等,这样依次类推,直到配置完最后一个从设备;此时主设备再发配置报文,各从设备都有自己的设备号,各从设备都将转发此 [0032] The step (2) in the ring network, the master device starts to transmit a configuration message through a data interface, coupled with the master device from the first device, and the device number is 0, the packet received first configuration hereinafter, the configuration packet is received, this configuration will not forward the packet to the next slave device, the first device from the own device number is set to L, and sends a response message containing its own device number, the function of the device from acting like a master in the configuration packet configuring the first slave device, Jiangzai send a first message from forwarding the configuration message to the second device a slave, when the device number is O, from the second device does not forward the packet after receiving this configuration the configuration packet to the next slave device, the second device from the own device number is set to 2, and sends a response packet that contains its own device number, from the device function, effect, etc., so so on until the last slave configuring apparatus; this point the master configuration retransmission packets from each device has its own device number, each device will be forwarded from this 置报文,最后一个从设备将转发此配置报文到主设备的另一个数据线接口上;主设备在收到此配置报文后,说明整个系统将配置完毕,这样每个从设备都有自己唯一的设备标号,主设备也建立一个设备表,包含各从设备的设备号、各从设备的功能和作用等。 Home packet, forwards this last configuration message packets on the other data line interface from the device to the master device; master device receives the configuration message, the system will be described configuration is completed, so that each slave device has own unique device identification number, the master device also create a table that contains the device number of each device, the function and effect of each other device.

[0033] 其中,主设备为负责整个系统的管理,并控制各从设备的设备,所述的从设备为负责系统的执行设备,接收主设备的命令并按命令工作。 [0033] wherein the master device is responsible for managing the entire system, and controls the respective command device from the working device, from the press apparatus is a device responsible for performing system, the master device receiving the command.

[0034] 本发明结合FPGA(现场可编程门阵列)技术实现了一种新的用于现场级通信的实时同步以太网络,将以太网中的设备分为主设备和从设备,适合于分布式控制系统。 [0034] The present invention incorporates an FPGA (field programmable gate array), a new technology to achieve real-time synchronization Ethernet field level for communication, the Ethernet-based devices and devices from sub-device, suitable for distributed Control System. 给出了以太网中实现全双工通信的网络拓扑结构,并给出了主设备自动枚举和配置从设备的方法,以及实现各从设备实时通信和同步动作的方法。 Given network topology in an Ethernet full-duplex communication, and gives master device and method for automatically enumerate devices, as well as a method of realizing real-time communication from a device configuration operation and synchronization. [0035] 本发明的有益效果: [0035] Advantageous effects of the invention:

[0036] (1)该系统主设备采用普通标准网卡,与以太网完全兼容,实现了工厂控制网络的一致性,实现了一网到底,避免了专用网卡间不兼容的局限性。 [0036] (1) The system using ordinary standard master card is fully compatible with Ethernet, to achieve the consistency of the plant control network, the network achieved in the end, to avoid incompatibility between a dedicated NIC limitations.

[0037] (2)该系统采用串行结构(无容错功能)或者环形结构(有容错功能),易于系统构建、扩展和维护。 [0037] (2) The system uses a serial structure (no fault tolerance) or a ring structure (fault tolerance), the system is easy to build, extend, and maintain. 不使用集线器和交换机,避免了系统构建时的复杂问题和提高了系统通信的速度和效率。 Without using hubs and switches, to avoid the complex problems of system construction and increased the speed and efficiency of the system in communication.

[0038] (3)该系统提出的主设备自动检测、枚举和配置各从设备的方法,使系统具有智能 [0038] (3) of the host device automatically detects the proposed system, enumeration and configuration of each apparatus from the method, the system has intelligence

性,减少了用拨码开关手工配置从设备的烦琐工作,提高了自动化水平。 , Reduced by the DIP switch manually configured from cumbersome operation of the apparatus, increase the level of automation.

[0039] (4)该系统提出的实现实时同步的方法,相比Internet网络时间协议 [0039] (4) the proposed method of implementation of the system real-time synchronization, compared to Internet Network Time Protocol

NTP(NetworkTime Protocal)、简单时间网络协议SNTP (Simple Network Time Protocal)、 NTP (NetworkTime Protocal), Simple Network Time Protocol SNTP (Simple Network Time Protocal),

IEEE1588标准精确时间协议协议PTP(Precision Time Protocal)等方法,减轻了网络 IEEE1588 Precision Time Protocol standard protocol PTP (Precision Time Protocal) or the like, to reduce the network

负担。 burden. 在实现高精度同步时,避免每个从设备站点必须自带精确时钟芯片(即等时实时 Real-time synchronization at high precision, to avoid the device from each site must have its own precise clock chip (i.e., isochronous

ASIC),节约了成本。 ASIC), cost savings.

附图说明 BRIEF DESCRIPTION

[0040] 图1为实施例1的系统串行拓扑结构图; [0041] 图2为图1的以太网连接实例结构图; [0042] 图3为系统的环形拓扑结构图; [0040] FIG. 1 is a block diagram of a serial topology system according to embodiment 1; [0041] FIG. 2 is an Ethernet connection example of a configuration diagram; [0042] FIG. 3 is a system configuration diagram of a ring topology;

10[0043] 图4为图3的以太网连接实例结构图; [0044] 图5为实现从设备精确同步的方法图[0045] 图6为数据的传输协议格式图, 10 [0043] FIG. 3 FIG. 4 is a configuration diagram of an Ethernet connection example; [0044] FIG. 5 is a slave to achieve accurate synchronization method of FIG. [0045] FIG. 6 is a map data transmission protocol format,

[0046] 其中,l.主设备,2.从设备,3.数据发送线,4.数据接收线,5.普通标准网卡, 6.网络变压器,7.PHY芯片,8.带MAC IP核的FPGA,9.信号同步线。 [0046] wherein, L. Master device 2 from the device 3. The data transmission line 4. The data receiving line, 5. General standard card, network transformers 6, 7.PHY chip 8 with MAC IP core FPGA, 9. line synchronization signal.

具体实施方式 Detailed ways

[0047] 下面结合附图与实施例对本发明作进一步说明。 The drawings and embodiments of the present invention will be further described [0047] below in conjunction. [0048] 实施例1 : [0048] Example 1:

[0049] 以一个主设备和两个从设备为例来说,该系统的串行拓扑结构如图1所示。 [0049] In a master and two slave devices as an example, a serial topology of the system shown in Figure 1. [0050] 主设备1和从设备2之间的通信分别由数据发送线3和数据接收线4来完成,从设备2之间的通信也由数据发送线3和数据接收线4来完成,这样就实现了各设备间数据的全双工通信。 [0050] transmitted by the master device and the data communication between the devices 2 and 3 respectively from the data line 14 to complete the reception line, and the transmission line 3 and the data communication between the devices from receiving the data from the line 4 to complete, so full duplex communication is realized between the respective data devices. 从设备有存储转发和直接转发的功能,主设备1发送的数据经过从设备2时, 从设备2接收并直接转发给下一个从设备2,从设备2的数据发送给主设备1时,若从设备2有要发送给主设备1的数据,则从设备2先存储下一个从设备2的数据,等从设备2发送给主设备1的数据发送完后,再转发下一个从设备2的数据,若从设备2没有要发送给主设备1的数据,则从设备2直接转发下一个从设备2的数据。 A time from the apparatus 2 transmits to the master data device 2 from an apparatus with a storage forwarding and direct forwarding function, data transmitted to the master device after receiving from the device 2 when the device 2 and forwarded directly to the next from the, if from the master device 2 has data to transmit to the device 1, the device 2 from a previously stored, like the transmission data from the data transmission apparatus 2 to the master device 2 from the device 1 after, and then forwarded to the next apparatus 2 from data from a data device at 2, when there is no data to be transmitted from the apparatus 2 to the master device 1, device 2 from the direct forwards. 这样就实现了系统的全双工通信。 This realization of the full-duplex communication system. 此拓扑结构不仅适用于以太网,还可适用于用户自定义的或其他公知的传输协议形式, 只是FPGA中IP核的协议不同。 This applies not only to an Ethernet topology, is also applicable to other user-defined or well-known form of transmission protocol, but the FPGA core IP protocol different.

[0051] 举以太网为实例,详细结构如图2所示。 [0051] For Ethernet as an example, a detailed configuration as shown in FIG. 1为主设备,2为从设备,5为主设备的数据接口,为普通标准网卡,6为网络变压器,7为PHY芯片,8为为带MAC IP核的FPGA。 The main apparatus 1, the data from the interface device 2, the master device 5, as an ordinary standard NICs, a transformer 6 for the network, the PHY chip 7, 8 with the FPGA MAC IP core. [0052] 在该系统的串行结构中,主设备l可以自动检测系统是否可靠连接和正常工作。 [0052] In the serial structure of the system, the master device l can automatically detect whether the system is working properly and securely connected. 在最后一个从设备2中通过一个拨码配置开关,表明为最后一个从设备。 In the final configuration through a DIP switch from the device 2, shown to be the last slave device. 在主设备l自动检测从设备时,主设备1发送一个查询报文,第一个从设备2首先接收到此查询报文,第一个从设备2将转发此查询报文,并发送自己的应答报文和将自己的设备号初始化为0下一个从设备2也即最后一个从设备收到此查询报文后,发送自己的应答报文(包含为最后一个节点的信息),并将自己的设备号初始化为0。 Automatically detecting slave devices, the master device 1 transmits a query message in the master device L, the first query message from the device 2 first receives this, the first query from the packet forwarding device 2, and transmits its own reply message and will own initialization device number 0 2 that is a slave after receiving this last query message from device to send their response messages (containing information as the last node), and himself the device number is initialized to 0. 主设备1收到最后一个从设备2的应答报文后,说明系统连接可靠和各设备正常工作。 A master apparatus 1 receives the last response message from the device 2, the system described and reliable connection of each device to work. 若主设备l在发送完查询报文后,等待一段时间(此时间为正常情况下检测最大从设备数的最长时间的2倍),仍然收不到最后一个设备2的应答报文,将报告错误,说明有故障。 If the master device l After sending the query message, wait for some time (this time is normally detected up to 2 times the maximum time from the number of equipment), there are still no final response packet device 2, the report an error, there is a fault.

[0053] 在该系统的串行结构中,主设备1可以自动枚举和配置各从设备2。 [0053] In the serial structure of the system, the master device 1 can be configured automatically and enumerate each slave device 2. 在主设备1检测到系统可靠连接和正常工作后,在主设备1收到最后一个从设备2的应答报文后,开始发送配置报文,跟主设备1相连的第一个从设备2 (此时设备号为0)将先收到配置报文,收到此配置报文后,将不转发此配置报文到下一个从设备2,第一个从设备2将自己的设备号设置为1,同时发送一个应答报文,包含自己的设备号、该从设备的功能、作用等,主设备1在配置完第一个从设备2后,将再发下一个配置报文,第一个从设备2 (此时设备号不为0)将转发此配置报文到第二个从设备2 (此时设备号为0),第二个从设备也即最后一个从设备2在收到此配置报文后将自己的设备号设置为2,同时发送一个应答报文,包含自己的设备号、该从设备的功能、作用等。 After the master device 1 detects that the system reliability and the working connection, in the master apparatus 1 receives last, start sending the configuration message from the response packet device 2, from a first device connected with the master device 12 ( at this time, the device number is 0) will first receive the configuration packet, the packet received this configuration, the configuration will not forward the packet to the next slave device 2, the first one of the two own device number setting device 1, and sends a response message containing its own device number, from the device function, role of the master device 1 configuring the first slave device 2, arranged next Jiangzai send a message at the first from device 2 (case number is not 0) to forward the packet to the configuration from the second device 2 (in this case the device number is 0), i.e. the second device from the last slave device 2 receives this after configuration BPDU own device number is set to 2, and sends a response message containing its own device number, from the device function, effect and the like. 这样每个从设备2都有自己唯一的设备标号,主设备1也建立一个设备表,包含各设备的设备号,包含各设备的功能和作用等。 2 so that each device has its own unique device identification number, the master device 1 also create a table from the device, comprising a device number of each device, comprising the function and role of each device and the like.

[0054] 以一个主设备和两个从设备为例来说,该系统的环形拓扑结构如图3所示。 [0054] In a master and two slave devices as an example, the ring topology of the system shown in Figure 3. 1为主设备,2为从设备。 A master device, a slave device 2. 主设备1和从设备2之间的通信线有两根数据发送线3和两根数据接收线4,两个从设备2之间的通信也由数据发送线3和数据接收线4来完成,这样相邻的设备间就实现了数据的全双工通信。 There are two main device 1 and the communication line from the data transmission line between the receiving apparatus 3 and the two data lines 4, the communication between the two devices is also done from the data transmission line 3 to line 4 and the data reception, such devices between adjacent full duplex communication is realized data. 从设备有存储转发和直接转发的功能,主设备发送的数据经过第一个从设备2时,从设备2接收并直接转发给下一个从设备2,从设备2的数据发送给主设备31时,若从设备2有要发送给主设备1的数据,则从设备2先存储下一个从设备2的数据,等从设备2发送给主设备1的数据发送完后,再转发下一个从设备2的数据,若从设备2没有要发送给主设备1的数据,则从设备2直接转发下一个从设备2的数据。 From equipment and direct forwarding of store and forward function, the data transmitted via the master device when the first device 2, device 2 receives from and forwarded directly to the next slave 2, the device transmits to the master data device 31 2 from , to be sent to the master apparatus 1, the data from the device 2, when the apparatus 2 from a previously stored, like the data transmission apparatus 2 from the data transmission apparatus 2 to the master device 1 from exhausted, and then forwarded to the next slave device data from a data device 2 at 2, when there is no data to be transmitted from the apparatus 2 to the master device 1, device 2 from the direct forwards. 主设备1也可以通过另一根数据线3、4与从设备2进行通信,方法与上面提到的主设备1通过数据线3、4与从设备2通信方法一致。 The master device 1 may be 3,4 3,4 unanimously by the other data line and the main device 1 through the data lines from the above-mentioned apparatus 2 to communicate with the second communication device a method method. 即正常情况下,一根数据线是冗余的,但该拓扑结构有容错功能,即若两个从设备2之间的数据线连接有断开的时候,从设备2可以通过数据线3、4与主设备1进行通信,下一个从设备2可以通过另一根数据线3、4与主设备1进行数据通信。 Under normal circumstances i.e., one of the data lines is redundant, but the topology fault tolerance, i.e., when the data from the two connecting lines between the equipment when disconnected from the device 2 via a data line 3, 4 communicates with the master device 1, the next slave device 2 can perform data communication through the data lines 3, 4 and another host device 1. 此拓扑结构不仅适用于以太网,还可适用于用户自定义的或其他公知的传输协议形式,只是FPGA中IP核的协议不同。 This applies not only to an Ethernet topology, is also applicable to other user-defined or well-known form of transmission protocol, but the FPGA core IP protocol different.

[0055] 举以太网为实例,内部详细结构如图4所示。 [0055] For Ethernet as an example, the detailed internal configuration as shown in FIG. 1为主设备,2为从设备,5为主设备的通信数据接口,即普通标准网卡,6为网络变压器,7为PHY芯片,8为为带MAC IP核的FPGA。 The main apparatus 1, 2 from the communication data interface device, the master device 5, i.e., ordinary standard card, a transformer 6 for the network, the PHY chip 7, 8 with the FPGA MAC IP core.

[0056] 在该系统的环形结构中,主设备l可以自动检测系统是否可靠连接和正常工作。 [0056] In the ring structure of the system, the master device l can automatically detect whether the system is working properly and securely connected. 主设备1通过数据线3、4发送一个查询报文,第一个从设备2收到之后转发到下一个从设备2,同时将自己的设备号初始化为O,下一个从设备也即最后一个从设备2再通过数据线3、4转发此查询报文到主设备1,并初始化自己设备号为0。 The master device 1 through the data lines 3, 4 sends a query message forwarded from a first device 2, after receipt of the next slave device 2, while the number of own initialization device is O, the next slave device and final 2 from the device and then forwarded via the data lines 3, 4, this query packet to the master device 1, and initializes its own device number 0. 主设备1在收到此查询报文后, 说明系统连接可靠和各设备工作正常。 Master 1 after receiving the query message, indicating the system reliable connection and each device is working properly. 若主设备l等待一段时间(此时间为正常情况下检测最大从设备数的最长时间的2倍)后,仍然接收不到此查询报文,说明系统连接不可靠或某个设备不正常工作。 If the master device waits for a period of time l (this time is normally detecting the maximum from twice the number of the longest device), still do not receive the query message, indicating the system unreliable connections or a device does not work .

[0057] 在该系统的环形结构中,主设备1可以自动枚举和配置各从设备2。 [0057] In the ring structure of the system, the master device 1 can be configured automatically and enumerate each slave device 2. 主设备1检测系统可靠连接和正常工作后,主设备1通过数据线3、4开始发送配置报文,跟主设备1相连的第一个从设备2 (此时设备号为0)将先收到配置报文,收到此配置报文后,将不转发此配置报文到下一个从设备2,第一个从设备2将自己的设备号设置为1,同时发送一个应答报文,包含自己的设备号、该从设备的功能、作用等,主设备1在配置完第一个从设备2后, 将再发个下一个配置报文,第一个从设备2将转发此配置报文到第二个从设备2 (此时设备号为0),第二个从设备2在收到此配置报文后将不转发此配置报文到下一个从设备2,第二个从设备2将自己的设备号设置为2,同时发送一个应答报文,包含自己的设备号、该从设备的功能、作用等。 After the master device 1 detects normal operation and reliable connection system, the master device 1 through the data lines 3, 4, starts to send the configuration message, the first device 2 (in this case the device number is 0) received from the first device 1 connected with the main after the packet to the configuration, the configuration packet is received, this configuration will not forward the packet to the next slave device 2, from the first own device number 2 is provided to the device 1, and sends a response packet, comprising own device number, the function of the device from acting like a master in a configuration packet configuring the first device 2 after this, it will send a first message from a configuration device 2 forwards from 2 to the second device (device number at this time is 0), from the second device 2 does not forward configuration after receiving this packet configuration packet to the next slave device 2, the second device 2 from own device number is set to 2, and sends a response message containing its own device number, function from the device, and the like effect. 此时主设备再发配置报文,各从设备2都有自己的设备号(此时设备号不为0),各从设备2都将转发此配置报文,最后一个从设备2将转发此配置报文到主设备1 的另一个数据线接口上。 At this time, the master configuration retransmission packets from each device has its own device number 2 (case number is not 0), the configuration of each packet are forwarded from the device 2, device 2 from the last to forward this configuration packet to another data line interface of a host device. 主设备l在收到此配置报文后,说明整个系统将配置完毕。 L master device after receiving the configuration message, the system will be described configuration is completed. 这样每个从设备2都有自己唯一的设备标号,主设备1也建立一个设备表,包含各从设备2的设备号,包含各设备的功能和作用等。 2 so that each device has its own unique device identification number, the master device 1 also established from a device table, contains the slave device 2, including the function and role of each device and the like.

[0058] 在上面所说的串行和环形网络结构中,除可用Internet网络时间协议NTP(Network TimeProtocal)、简单时间网络协议SNTP (Simple Network Time Protocal)、 IEEE1588标准精确时间协议协议PTP(Precision Time Protocal)协议来同步各从设备外, 还提出了一种用于各从设备精确同步的方法。 [0058] In the above mentioned serial ring network structure and, in addition to the available Internet network time protocol NTP (Network TimeProtocal), Simple Network Time Protocol SNTP (Simple Network Time Protocal), IEEE1588 Precision Time Protocol standard protocol PTP (Precision Time protocal) from each of the synchronization protocol to external equipment, has also been proposed a method for each device from the precise synchronization. 就是从设备之间除了数据线之外,再加一根同步信号线。 Is a slave device in addition to the data line, together with a synchronization signal line. 以串行拓扑结构为例,如图5所示,1为主设备,2为从设备,3为数据发送线、 4为数据接收线,9为同步信号线。 Serial topology, for example, as shown in FIG. 5, a master device, a slave device 2, the data transmission line 3, line 4 to the data received, the synchronization signal line 9. 在从设备2中可任选一个从设备为同步信号源,举以最后一个从设备2为同步信号源为例,最后一个从设备2负责严格的定时和同步信号的发送, 周期性的通过同步信号线9发送同步信号。 In the apparatus from the apparatus 2 may optionally be a source for the synchronization signal, to give a final synchronization signal from the source device 2 as an example, the last transmission from a charge of 2 strict timing synchronization and signaling equipment, by a periodic synchronization from 9 a signal line transmitting the synchronization signal. 其他的从设备2接收同步信号。 2 receives from the other device sync signal. 如果不考虑传输线的线上延迟,各从设备2将同时收到同步信号,同时动作,实现各从设备2动作的同步性。 Without considering the transmission line delay line, each slave device 2 receives the synchronization signal at the same time, while the operation, realizing the synchronization device from the second operation. 如果考虑传输线的线上延迟,各从设备2收到同步信号的线上延迟时间是固定的,在配置阶段根据各设备的传输线长给各从设备2中设置一个时间延迟参数寄存器,在收到同步信号后,每次延迟一段确定的时间再动作,这样就实现了各从设备2的精确同步动作。 Considering the transmission line delay lines, each delay line receiving the synchronization signal from the two devices is fixed, the configuration of each stage according to the length of the transmission line from the device to each device 2 is provided with a time delay parameter register receipt after synchronization signal, each time delay period of time to determine the action, thus achieving a precise synchronization of the operation of each slave device 2. [0059] 在上面所说的串行和环形网络结构中,除了主设备可以与各从设备进行数据通信外,各从设备之间也可以进行数据通信。 [0059] In the above mentioned serial ring network structure and, in addition to the master device may be, each of the data communication can be performed between the devices from a data communication with the device from outside. 主设备与各从设备进行数据通信的传输协议和报文格式,主要包括主设备配置报文、主设备数据报文、从设备数据报文三类。 The master device and the transmission protocol packet format from the respective data communication apparatus, includes the main device configuration packet, the master device the data packets, the data packets from the device categories. 主设备与从设备间以及各从设备间数据通信协议符合以太网帧协议规范,举以太网IEEE802. 3帧协议格式为例,如图6所示,包括前导符、分割符、目的地址、源地址、长度/类型字段、数据段、帧校验序列域等组成。 Between the master and slave devices conform to and from each of the data communications protocol between the Ethernet frame protocol specification, for Ethernet IEEE802. 3 as an example the frame protocol format, shown in FIG. 6, including a preamble, delimiter, destination address, source address, length / type field, a data section, a frame check sequence field and so on. 其中数据段中包括非周期数据和周期数据,周期数据是工业控制中,任务(如功能块的执行)通常按照一定的时间间隔发出,并且对任务的执行时间具有截止性要求的数据。 Wherein the data segment comprises a non-periodic data and cycle data, the data period is industrial control tasks (e.g., perform the function block) is usually given in accordance with a certain time interval, and having a cut-off of the data required for the execution time of the task. 非周期数据是只有在特定的事件触发下才出现,例如设备配置、故障诊断、程序的上载/下载、运行记录、报警处理等。 Acyclic data is only occur under certain trigger events, such as device configuration, diagnostics, upload / download program, run record, alarm processing.

[0060] 主设备配置(查询)报文:系统上电以后或系统重构以后,主设备发送此报文,完成系统的检测以及对各从设备的自动枚举和配置。 [0060] The master device configuration (query) message: after system power-up or after system reconfiguration, the master device transmits the packet, and a system for detecting the completion of the auto-enumeration and configuration of each device.

[0061] 主设备数据报文用于向从设备发送指令数据,在一次通讯周期中,主设备发送一次主设备周期数据报文,从设备接收后从中提取自己的数据。 [0061] The master device for a data packet to the data transmission instruction from the device, in a communication cycle, the master device transmits a master cycle data packets, extract their data from the receiving device.

[0062] 从设备数据报文用于向主设备反映该设备的运行状态,在一次通讯周期中,从设备都会向主设备发送一次从设备数据报文。 [0062] from the device data packet is used to reflect the operating state of the device to the host device, in a communication cycle, a device data packet is sent from the device to the master device.

[0063] 在系统完成从设备的自动枚举和配置过程后,以串行结构为例,如图5所示,主设备1发送周期数据报文,在保证各从设备2都收到主设备1的周期数据报文的前提下,同步信号源即最后一个从设备2周期性的通过信号同步线9发送一个同步信号,各从设备2在收到此信号后,经过设定的延迟时间值后,锁存当前的工作状态,按照收到的主设备1周期数据同时动作,并同时将当前的工作状态即从设备周期数据报文发送到主设备1。 [0063] After the completion of the system from the automatic device enumeration and configuration process, a serial structure as an example, shown in Figure 5, the master device 1 transmits a data packet period, to ensure the devices are received from the master device 2 1 cycle under the premise of a data packet, i.e. the last synchronization signal source transmitting a synchronization signal from the device 2 by a periodic synchronizing signal line 9, each from 2 after receiving this signal, the delay time value set through the apparatus after the latch current working state, according to the cycle master apparatus 1 receives the operation data at the same time, while the current operating state of the device that is transmitted from the cycle master to the data packets 1.

13 13

Claims (8)

  1. 一种基于标准以太网的实时同步网络,在分布式控制系统中,包括至少一个主设备和至少一个从设备,在从设备中任选一个为同步信号源,各设备通过传输协议传送数据,主设备上有至少一个数据线接口,每个从设备有至少两个数据线接口,连接时彼此串行连接,即主设备的数据线接口通过数据线连接到从设备的一个数据线接口上,从设备的另一个数据接口通过数据线连接到下一个从设备的一个数据接口上,依次连接构成串行网络,进行实时同步的全双工通信;或者各主设备有两个数据线接口,各从设备有两个数据线接口,在从设备中任选一个为同步信号源,各设备通过传输协议传送数据,主设备的一个数据线接口通过数据线连接到从设备的一个数据线接口上,从设备的另一个数据线接口通过数据线连接到下一个从设备的一个数据接口上,这样级 Based on the real-time synchronization standard Ethernet network, the distributed control system, comprising at least one master device and at least one slave device, the device optionally from a synchronization signal source, each device transmits the data over the transport protocol, the main At least one data line interface device, each slave device has at least two data line interface, a serial connection connected to each other, i.e., the master data line interface device connected to the interface device from a data line through the data line, from the data interface device is further connected via a data line from a data interface device, in turn connected to form serial network, real-time synchronization of full duplex communication; or each device has two master data line interface, from each of there are two data line interface device, the device optionally from a synchronization signal source, each device transmits data transport protocol, a master data line interface device connected to the interface device from a data line through the data line, from the other data line is connected to the interface device via a data line from a data interface device, so that level 下去,一直连到最后一个从设备的数据线接口上,最后一个从设备的另一个数据线接口通过数据线连接到主设备的另一个数据线接口上,构成环形网络,进行实时同步的全双工通信;其特征是:所述同步信号源是在从设备中任选一个,并在其上安装同步信号线与其余的从设备连接,同步信号源负责严格的定时和同步信号的发送,周期性的发送同步信号,其他从设备负责接收同步信号,各从设备中设有一个信号延迟参数寄存器,用于设定同步信号在传输线上的时间延迟,这个信号延迟参数通过主设备发送配置报文的形式来设定。 Down, been connected to the data line from the last interface device, a last data line interface from another device via a data line to another data line interface of the master device, configured ring network for full-duplex real-time synchronization duplex communication; characterized in that: said synchronizing signal from a source is optional in the device, and the synchronization signal line from the rest of the device is connected is responsible for the synchronization signal source and the strict timing synchronization signal transmission mounted thereon, the cycle transmission of the synchronization signal, the synchronization signal received from the other device is responsible, each provided with a signal delay parameter register for setting the delay time of the synchronization signal transmission line from the device, the signal delay through the master device sends configuration parameters message in the form set.
  2. 2. 根据权利要求1所述的基于标准以太网的实时同步网络,其特征是:所述同步信号源设定时,根据主设备发送命令报文的形式利用软件任意指定一个从设备为同步信号源, 或者通过在任意一个从设备上设定拨码开关装置的方式确定一个从设备为同步信号源,然后用同步信号线将同步信号源与其余从设备连接。 According to claim 1, said network-based real-time synchronization of the Ethernet standard, wherein: said synchronizing signal source is set, any given apparatus from a software using a synchronization signal according to the master device sends a command message in the form of source, or from a device connected to the remainder of the synchronization signal source, then synchronization signal line synchronization signal from the source device by determining any one of the DIP switch setting device from the device mode.
  3. 3. 根据权利要求1所述的基于标准以太网的实时同步网络,其特征是:所述数据线既包括数据发送线,也包括数据接收线,相邻的两个设备之间通信时没有冲突,实现全双工通信,数据线的传输介质为双绞线或光纤。 The standard Ethernet-based network real-time synchronization according to claim 1, wherein: said data line includes both the data transmission line, including a data receiving line, there is no conflict between two adjacent communication devices , full-duplex communication transmission medium, the data line is a twisted pair or fiber.
  4. 4. 根据权利要求1或3所述的基于标准以太网的实时同步网络,其特征是:所述全双工通信为,每个从设备有存储转发数据和直接转发数据的功能,主设备同从设备进行通信时,各从设备转发主设备的信息,整个系统通信没有冲突,各从设备同主设备进行通信时, 从设备如果有发送给主设备的数据,将先发送自己的数据给主设备,同时接收并存储后面一个从设备发送给主设备的数据,等待自己给主设备的数据发送完成后,再转发已存储的后一个从设备发送给主设备的数据,从设备如果没有发送给主设备的数据,将直接转发后面一个从设备发送给主设备的数据,避免了通信冲突,实现了整个系统的全双工通信。 The standard Ethernet-based network real-time synchronization of claim 1 or claim 3, wherein: the full-duplex communication for each forwarding data from a memory device, and direct data forwarding function, the master device with from the device in communication, the forwarding information of the master device from the device, the entire communication system, there is no conflict, each of the device with the master device in communication from the device if there is data transmitted to the master device, the first transmitting own data to the master device, while receiving and later store a sent from the device to the data of the main device, after waiting for themselves to the data of the main device sent, then forwards the data stored in a transmission from the device to the host device, from the device if there is no transmitted to the data of the main device, directly behind the forward data transmitted from a device to the master device, to avoid communication conflicts, to achieve the full duplex communication of the whole system.
  5. 5. 根据权利要求l所述的基于标准以太网的实时同步网络,其特征是:所述的串行或环形网络结构的传输协议形式是标准以太网传输协议,即IEEE802. 3帧协议格式,包括前导符、分割符、目的地址、源地址、长度/类型字段、数据段、帧校验序列域组成;其中数据段中包括非周期数据和周期数据,周期数据是工业控制中,任务通常按照一定的时间间隔发出,并且对任务的执行时间具有截止性要求的数据,非周期数据是只有在特定的事件触发下才出现,即设备配置、故障诊断、程序的上载/下载、运行记录和报警处理;适用于用户自定义的或其他公知的传输协议形式。 5. Based on the real-time synchronization l standard Ethernet network according to claim, characterized in that: the transfer protocol in serial form or configuration of a ring network is a standard Ethernet transmission protocol, i.e., the frame protocol IEEE802 3 format, includes a preamble, delimiter, destination address, source address, length / type field, a data segment, consisting of a frame check sequence field; wherein the data segment comprises a non-periodic data and cycle data, data industrial control period, generally in accordance with the task a certain time interval is issued, and have the data cut-off requirements of the execution time of the task, acyclic data is only occur under specific event trigger that device configuration, diagnostics, upload the program / download, run record and alarm processing; for other user-defined or well-known transfer protocol format.
  6. 6. —种权利要求1所述的基于标准以太网的实时同步网络的工作方法,其特征是: (1)首先,在从设备中任选一个作为同步信号源发送同步信号,在其上安装同步信号线与其他从设备相连,其他从设备通过同步信号线接收同步信号;主设备对从设备进行自检,主设备发送一个查询报文,第一个从设备首先接收到此查询报文,第一个从设备将转发此查询报文,并发送自己的应答报文和将自己的设备号初始化为0,各从设备在收到查询报文后依次转发此查询报文,并发送自己的应答报文和将自己的设备号初始化为0,直到最后一个从设备,最后一个从设备通过拨码开关来确定,该最后一个从设备收到此查询报文后,发送自己的应答报文,包含为最后一个从设备的信息,并将自己的设备号初始化为O,主设备收到最后一个从设备的应答报文后,说明系统连接可 6. - based real-time synchronization of the Ethernet network standard working method according to claim 1 kind, characterized in that: (1) First, in an optional device from a transmission source of the synchronization signal as a synchronization signal, which is mounted on synchronization signal line is connected from the other device, the other device receives the synchronization signal from the synchronization signal line; self-test from the master device to device, the master device sends a query message, the first device first receives a query message from this, the first slave device forwards the query message, and send your own messages and reply to their device number is initialized to 0, this query packets from each device in turn forwarded after receiving a query message, and send your own response packet and the own device number is initialized to 0, until the last, the last device to determine the device from the DIP switch, the last Upon receiving the query message transmits its reply message from the device, contains information for the device from the last, and the number of own device initialization is O, a master device receives the last response packet from the device, the connection system can be described 和各设备正常工作;若主设备在发送完查询报文后,等待一段时间,此时间为正常情况下枚举最大从设备的最长时间的2倍,仍然收不到最后一个从设备的应答报文,将报告错误,说明有故障;(2) 自检通过后,主设备对从设备进行枚举和配置,即从主设备收到最后一个从设备的应答报文后,开始发送配置报文,跟主设备相连的第一个从设备,此时设备号为0,将先收到配置报文,收到此配置报文后,将不转发此配置报文到下一个从设备,第一个从设备将自己的设备号设置为1,同时发送一个应答报文,包含自己的设备号、该从设备的功能、作用,主设备在配置完第一个从设备后,将再发个下一个配置报文,第一个从设备将转发此配置报文到第二个从设备,此时设备号为0,第二个从设备在收到此配置报文后将不转发此配置报文到下一个从设备,第二个 And each device is working properly; if the master device after you send a query message, wait for some time, this time to enumerate a maximum of two times the maximum time from the device is under normal circumstances, still not received a final response from the device packets, an error is reported, there is a fault; (2) self-test passes, the master device performs enumeration and configuration from the device, i.e., the last received, starts sending response message from the device configuration packet from the master device hereinafter, connected with the master device from the first device, and the device number is 0, the packet received first configuration, the configuration packet is received, this configuration will not forward the packet to the next slave device, the first a slave own device number is set to 1, and sends a response message containing its own device number, from the device function, the role of the master device after configuring the first device, send the Jiangzai next configuration packet, from a first device forwards the packet to the configuration from the second device, and the device number is 0, the second device does not forward from this configuration after receipt of the configuration message packet message from the device to the next, the second 设备将自己的设备号设置为2,同时发送一个应答报文,包含自己的设备号、该从设备的功能、作用;这样依次类推,直到配置到最后一个从设备;这样每个从设备都有自己唯一的设备标号,主设备也建立一个设备表,包含各从设备的设备号、 各从设备的功能和作用;(3) 在主设备完成对各从设备的枚举和配置后,给每个从设备依次发送参数设定报文, 包括同步信号延迟参数,然后系统进入实时同步的正常运行状态。 The apparatus own device number is set to 2, and sends a response message containing its own device number, from the device function, role; so so on until the last slave configuration; each slave device has such own unique device identification number, the master device also create a table that contains the device number of each device, the function and role of each device; (3) after completion of the respective device enumeration and configuration, for each master device a transmission parameter setting packet includes a synchronization signal delay parameters sequentially from the device, then the system enters normal operation of the real-time synchronization.
  7. 7. 根据权利要求6所述的基于标准以太网的实时同步网络的工作方法,其特征是:所述步骤(1)在环形网络中自检时,主设备发送一个查询报文,第一个从设备收到之后转发到下一个从设备,同时将自己的设备号初始化为0,各从设备依次转发并将自己设备号初始化为0,直到最后一个从设备,最后一个从设备再转发此查询报文到主设备,并初始化自己设备号为0 ;主设备在收到此查询报文后,说明系统连接可靠和各设备工作正常;若主设备等待一段时间后,此时间为正常情况下检测最大从设备数的最长时间的2倍,仍然接收不到此查询报文,说明系统连接不可靠或某个设备不正常工作。 7. The method of working standard Ethernet-based real-time synchronization of the network according to claim 6, wherein: said step (1) self-check ring network, the master device sends a query message, a first forwarded from the device receives from the device to the next, while their device number is initialized to 0, each in turn forwards the device initialization own device number from 0 until the last slave, and finally forwarded this query from a device packet to the master device, and initializes the own device number is 0; master device after receiving the query message, the system described and reliable connection of each device is working properly; if the master device waits a period of time, which is normally detected from 2 times the maximum number of devices the longest time, still do not receive the query message, indicating that the system is unreliable connection or a device does not work properly.
  8. 8. 根据权利要求6所述的基于标准以太网的实时同步网络的工作方法,其特征是:所述步骤(2)在环形网络中,主设备通过一个数据接口开始发送配置报文,跟主设备相连的第一个从设备,此时设备号为O,将先收到配置报文,收到此配置报文后,将不转发此配置报文到下一个从设备,第一个从设备将自己的设备号设置为l,同时发送一个应答报文,包含自己的设备号、该从设备的功能、作用,主设备在配置完第一个从设备后,将再发个下一个配置报文,第一个从设备将转发此配置报文到第二个从设备,此时设备号为0,第二个从设备在收到此配置报文后将不转发此配置报文到下一个从设备,第二个从设备将自己的设备号设置为2,同时发送一个应答报文,包含自己的设备号、该从设备的功能、作用,这样依次类推,直到配置完最后一个从设备;此时主设 8. The method of working standard Ethernet-based real-time synchronization of the network according to claim 6, wherein: said step (2) in the ring network, the master device starts to transmit the interface configuration data packets, with the main after the device is connected to a first slave device, and the device number is O, arranged to receive the first packet, the packet received this configuration, this configuration will not forward the packet to the next slave device, from a first device own device number is set to L, and sends a response message containing its own device number, from the device function, the role of the master device disposed at a first configuring a slave device, send a message Jiangzai text, from a first device forwards the packet to the configuration from the second device, and the device number is 0, the second device does not forward from this configuration after receipt of the configuration message to the next packet from the device, the second device from the own device number is set to 2, and sends a response message containing its own device number, function from the device, the role, so that so on until the last configuring a slave device; In this case the main set 备再发配置报文,各从设备都有自己的设备号,各从设备都将转发此配置报文,最后一个从设备将转发此配置报文到主设备的另一个数据线接口上;主设备在收到此配置报文后,说明整个系统将配置完毕,这样每个从设备都有自己唯一的设备标号,主设备也建立一个设备表,包含各从设备的设备号、各从设备的功能和作用。 Preparation of recurrent configuration packets from each device has its own device number, each will forward the packet from the device configuration, a last forwarding packet from the device configuration to the other data line interface of the master; the master in this configuration the device after receiving the message, the whole system will be described configuration is completed, so that each device has its own unique device identification number, the master device also established from a device table, contains the device number from the device, each slave device function and role.
CN 200710013313 2007-02-13 2007-02-13 Real time synchronization network based on the standard Ethernet and its operating method CN101018115B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200710013313 CN101018115B (en) 2007-02-13 2007-02-13 Real time synchronization network based on the standard Ethernet and its operating method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN 200710013313 CN101018115B (en) 2007-02-13 2007-02-13 Real time synchronization network based on the standard Ethernet and its operating method
PCT/CN2008/000268 WO2008101394A1 (en) 2007-02-13 2008-02-02 Real-time synchronous method and synchronous network based on the standard ethernet

Publications (2)

Publication Number Publication Date
CN101018115A CN101018115A (en) 2007-08-15
CN101018115B true CN101018115B (en) 2010-05-19

Family

ID=38726889

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200710013313 CN101018115B (en) 2007-02-13 2007-02-13 Real time synchronization network based on the standard Ethernet and its operating method

Country Status (1)

Country Link
CN (1) CN101018115B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008101394A1 (en) * 2007-02-13 2008-08-28 Shan Dong University Real-time synchronous method and synchronous network based on the standard ethernet
CN101374086B (en) 2007-08-23 2011-04-06 大唐移动通信设备有限公司 Access method and apparatus for farend equipment of distributed communication system
CN101296070B (en) 2008-06-26 2010-12-01 中兴通讯股份有限公司 Clock synchronization method and system of multiport synchronization Ethernet equipment
CN101374112B (en) 2008-10-28 2011-02-09 华为技术有限公司 Method, system and apparatus for transmitting packet
US8953645B2 (en) * 2009-11-11 2015-02-10 Mitsubishi Electric Corporation Communication system, communication apparatus and time synchronization method
CN101917316B (en) * 2010-09-13 2012-12-12 北京航空航天大学 Communication method and device for high-speed real-time industrial Ethernet
JP5229343B2 (en) * 2011-03-15 2013-07-03 オムロン株式会社 Connection abnormality detection method, network system, and master device
CN102664902B (en) * 2012-05-15 2015-05-06 南京华兴数控技术有限公司 Hardware implementing method for kernels of POWERLINK communication protocol master and slave stations
CN102761407A (en) * 2012-07-16 2012-10-31 中兴通讯股份有限公司 Machine frame straddling system and implementation method and device of time and frequency passthrough thereof
CN103067148B (en) * 2012-07-27 2016-03-02 杭州亿恒科技有限公司 A kind of can the method for hardware synchronization between cascade instrument
CN104253667A (en) * 2013-06-28 2014-12-31 联芯科技有限公司 System and method for check and feedback of serial synchronous bus for mobile phone platform
CN103825695B (en) * 2014-03-11 2017-02-08 武汉迈信电气技术有限公司 Compensation method for synchronous time delay of network based on POWERLINK
CN105207971A (en) * 2014-06-13 2015-12-30 艾默生网络能源有限公司 Data transmission method and device
WO2016132530A1 (en) * 2015-02-20 2016-08-25 三菱電機株式会社 Communication device, communication method and program
CN106789258A (en) * 2016-12-24 2017-05-31 上海新时达电气股份有限公司 The collocation method of EPA
JP6404975B2 (en) 2017-03-21 2018-10-17 ファナック株式会社 Slave, serial communication system, and communication method of serial communication system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1599376A (en) 2004-07-28 2005-03-23 沈逸林 Application and communication method of terminal of network media phone

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1599376A (en) 2004-07-28 2005-03-23 沈逸林 Application and communication method of terminal of network media phone

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
IEEE.IEEE Standard for a Precision Clock SynchronizationProtocolfor Networked Measurement and Control Systems.IEEE Std 1588TM-2002.2002,11-14.
工业机械电气设备 控制驱动装置间实时串行通信数据链路.中华人民共和国国家标准.2002,275,276,283-304.

Also Published As

Publication number Publication date
CN101018115A (en) 2007-08-15

Similar Documents

Publication Publication Date Title
Jansen et al. Real-time Ethernet: the EtherCAT solution
EP0772326B1 (en) Full duplex flow control for ethernet networks
US4491946A (en) Multi-station token pass communication system
EP1717978B1 (en) Time synchronization, deterministic data delivery and redundancy for cascaded nodes on full duplex ethernet networks
US7401120B2 (en) Method and apparatus for universal data exchange gateway
US5631905A (en) Communications network control method
JP2510606B2 (en) Russia - local area de - data distribution Biyu - Deployment system
Bux Token-ring local-area networks and their performance
EP0413286B1 (en) Data synchronous transfer system using a fiber distributed data exchange interface
JP4903201B2 (en) Data communication method for bus subscription equipment in open automation system
CN101425948B (en) Industrial wireless network access industrial Ethernet, multi-protocol gateway of field bus and protocol conversion method
EP1554839B1 (en) Method and node for using in parallel a communication network for real-time applications and non real-time applications
JP3729237B2 (en) Node and data processing method in node
ES2358609T3 (en) Participant and controller of communications of a communications system and method for the implementation of a functionality of the link door in a participant of a communications system.
CN101977104B (en) IEEE1588 based accurate clock synchronization protocol system and synchronization method thereof
US5483535A (en) Communications network interface, and adapter and method therefor
CN101164264B (en) Method and apparatus for synchronizing the two bus systems and a device consisting of two bus systems
US8339969B2 (en) Distributed ethernet system and method for detecting fault based thereon
US20100034191A1 (en) Method and system for time synchronization in a sensor network
US6169928B1 (en) Apparatus and method for sharing data among a plurality of control devices on a communications network
DE102008018633B4 (en) Method, bus components and control system for Ethernet-based control of an automation system
US7668994B2 (en) Method for optimizing bandwidth utilization in bus systems
CN100414466C (en) Multi-event sequential recording and testing system
EP2340623B1 (en) Power management of a network device
US5471461A (en) Digital communication network with a moderator station election process

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C41 Transfer of the right of patent application or the patent right
ASS Succession or assignment of patent right

Owner name: SHANDONG UNIV.

Free format text: FORMER OWNER: ZHANG CHENGRUI

Effective date: 20071214

C14 Granted