CN1187937C - Embedded field bus gateway - Google Patents

Embedded field bus gateway Download PDF

Info

Publication number
CN1187937C
CN1187937C CN 03118500 CN03118500A CN1187937C CN 1187937 C CN1187937 C CN 1187937C CN 03118500 CN03118500 CN 03118500 CN 03118500 A CN03118500 A CN 03118500A CN 1187937 C CN1187937 C CN 1187937C
Authority
CN
China
Prior art keywords
devicenet
tcp
data
ip
interface
Prior art date
Application number
CN 03118500
Other languages
Chinese (zh)
Other versions
CN1434609A (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 03118500 priority Critical patent/CN1187937C/en
Publication of CN1434609A publication Critical patent/CN1434609A/en
Application granted granted Critical
Publication of CN1187937C publication Critical patent/CN1187937C/en

Links

Abstract

本发明涉及嵌入式现场总线网关,它包括:现场子网接口、广域网络接口、CAN/DeviceNet-TCP/IP数据处理卡;该网关有以下两种工作方式:CAN/DeviceNet现场子网接口将接收的CAN/DeviceNet数据包传输到CAN/DeviceNet-TCP/IP数据处理单元经协议转换、封装等处理后成为TCP/IP数据并通过广域网接口转发至Internet/Intranet网络;广域网络接口将接收的TCP/IP数据传输到CAN/DeviceNet-TCP/IP数据处理单元经协议转换、封装等处理后成为CAN/DeviceNet数据并通过CAN/DeviceNet现场子网接口转发至CAN/DeviceNet现场总线。 The present invention relates to an embedded field bus gateway, comprising: an interface sub-field, a wide area network interface, CAN / DeviceNet-TCP / IP data processing card; the gateway in one of two ways: CAN / DeviceNet interface receives subnet field the CAN / DeviceNet after data packet transmission to the CAN / DeviceNet-TCP / IP data processing unit via the protocol conversion, packaging, etc. processed into TCP / IP data and forwarded to Internet / intranet network through the WAN interface; WAN interface received TCP / after transmitting the data to the IP CAN / DeviceNet-TCP / IP protocol conversion on the data processing unit, packaging, etc. processed into CAN / DeviceNet data and forwarded to CAN / DeviceNet field bus via CAN / DeviceNet field subnet interfaces. 本发明具有如下优点:实现嵌入式的CAN/DeviceNet现场总线与TCP/IP协议转换,它运用广泛,功耗低、可靠性高;功能强大、性能价格比高;实时性强,支持多任务;占用空间小,效率高;面向特定应用,可根据需要灵活定制。 The present invention has the following advantages: Implement embedded CAN / DeviceNet fieldbus with TCP / IP protocol conversion, it uses a wide range, low power consumption, high reliability; powerful, high performance and low cost; real-time, multi-tasking; small footprint, high efficiency; application-specific, can be flexibly customized as required.

Description

嵌入式现场总线网关 Embedded fieldbus gateways

技术领域 FIELD

本发明涉及一种网络连接设备,特别是用于连接不同协议的异种网络的网关,它能识别多种协议,并可将一种协议的数据包转换为另一种协议的数据包。 The present invention relates to a network connection device, in particular for connecting different protocols gateway heterogeneous networks, it can identify multiple protocols and may convert the packet to a protocol packet of another protocol.

背景技术 Background technique

基于TCP/IP的Internet网络是目前国际主流的广域网,已成为政府、企业及个人信息流通、交换的主要网络通道。 Based on TCP / IP Internet network is the mainstream of the international wide area network, it has become the government, enterprises and individuals flow of information, exchange of major network channels. 近几年方兴未艾的企业内部局域网(Intranet)为企业内部提供强大的信息网络平台。 In recent years, the emerging enterprise local area network (Intranet) to provide a strong information network platform for the enterprise. Intranet也可通过防火墙软件与Internet相连向业务伙伴提供访问网络的安全途径。 Intranet can also be connected to provide a secure way to access the network through a firewall software to its business partners and the Internet. Intranet一般采用Internet技术和标准,如TCP/IP、HTTP、SMTP、HTML等。 Intranet generally use Internet technologies and standards, such as TCP / IP, HTTP, SMTP, HTML and so on. 基于TCP/IP的网络底层协议采用IEEE802.3标准。 TCP / IP based network using the underlying protocol IEEE802.3 standard.

现场总线(FieldBus)是工厂底层设备之间的通信网络,是计算机数字通信技术在自动化领域的应用,为车间底层设备信息及生产过程信息集成提供了通信技术平台。 Fieldbus (FieldBus) is a communication network between the plant floor devices, is the application of computer technology in the automation field of digital communication, there is provided a communication technology platform shop floor equipment and production process information integration information. 现场总线技术实现了全厂信息纵向集成的透明通信,即从管理层到自动化底层的数据存取。 Fieldbus technology whole plant transparent vertical integration of information communications, i.e., data from the underlying access management automation. 面对自动化行业千变万化的现场仪表设备,要实现不同厂家不同种类产品的互连,现场总线技术标准化工作至关重要。 Automation industry face the ever-changing field instrumentation equipment, different manufacturers to achieve the interconnection of different types of products, standardization is critical fieldbus technology. 为此,国际IEC委员会于1984年提出制定现场总线技术标准IEC1158(即IEC61158)。 To this end, the Commission proposes to develop international IEC fieldbus standard IEC1158 (ie IEC61158) in 1984. CAN与DeviceNet是应用较为广泛的两种现场总线。 DeviceNet is CAN and is widely used both fieldbus. CAN/DeviceNet协议是国际标准支持的8种现场总线之一,得到欧美公司广泛支持。 CAN / DeviceNet protocol is one of eight international fieldbus standards support, get broad support for European and American companies. DeviceNet现场总线已于2002年10月8日被批准为国家标准。 DeviceNet fieldbus in 2002 October 8 was approved as a national standard. (注:DeviceNet中国国家标准的编号为GB/T 18858.2-2002)为了实现企业网络信息管理的整体性,实现从工业现场、车间到企业信息平台、电子商务平台的信息无缝连接以及对现场设备的远程监控,必须将基于工业现场的网络信息转换为支持TCP/IP协议的网络信息,利用现场总线网关则可实现不同子网的互联互通。 (Note: DeviceNet Chinese national standard number GB / T 18858.2-2002) in order to achieve overall enterprise information management network, to achieve the industrial field, the workshop to the enterprise information platform, information e-commerce platform and seamless connection to field devices remote monitoring, industrial field must be converted network information network information to support TCP / IP protocol, the use of fieldbus gateways can achieve interoperability based on different subnets. 国外开发的类似设备主要基于PC机的转换平台,它功耗大、可靠性差、性能价格比低、实时性差、占用空间大,效率低,而且该类产品都是由支持某一特定总线标准的厂商推出,很少涉及解决不同现场总线的信息共享问题。 Developed abroad similar equipment is mainly based on the conversion of the PC platform, it is high power consumption, poor reliability, low cost performance, poor real-time, large footprint, low efficiency, and these products are supported by a particular bus standard manufacturers introduced, rarely involve information sharing different fieldbus solve problems.

发明内容 SUMMARY

本发明所要解决的技术问题是:提供一种嵌入式现场总线网关,与现有PC机转换平台相比,它能分别适用于CAN与DeviceNet两种现场总线。 The present invention solves the technical problem: to provide an embedded fieldbus gateways, compared with existing PC-conversion platform that are suitable for CAN fieldbus and DeviceNet version.

本发明解决上述技术问题所采用的技术方案是:它包括:现场子网接口,广域网络接口,其特征在于:它还包括:CAN/DeviceNet-TCP/IP数据处理卡;所述现场子网接口为接收、发送CAN/DeviceNet数据的CAN/DeviceNet现场子网接口;所述广域网络接口为接收、发送TCP/IP数据的广域网络接口;所述CAN/DeviceNet-TCP/IP数据处理卡为将CAN/DeviceNet数据转换成TCP/IP数据或将TCP/IP数据转换成CAN/DeviceNet数据的处理卡。 The present invention is to solve the above technical problem technical solution: it comprises: an interface sub-field, a wide area network interface, characterized by: further comprising: CAN / DeviceNet-TCP / IP data processing card; the interface to a subnet field receive, transmit CAN / DeviceNet data CAN / DeviceNet interface to a subnet field; the wide area network interface to receive, transmits a wide area network interface TCP / IP data; the CAN / DeviceNet-TCP / IP data to the card processing CAN / DeviceNet data into a TCP / IP data to convert or TCP / IP data to process the CAN card / DeviceNet data.

所述CAN/DeviceNet-TCP/IP数据处理卡包括:CAN/DeviceNet网络选择开关;接收所述现场子网接口输入的CAN协议数据,将其转换为TCP/IP协议数据并转发至所述广域网络接口的TCP/IP协议芯片;接收所述广域网络接口输入的TCP/IP协议数据将其转换为CAN协议数据,并转发至所述现场子网接口的CAN协议芯片;读取CAN/DeviceNet网络选择开关的状态,对所述广域网络接口输入的TCP/IP协议数据进行DviceNet协议封装与转换的存储程序数字计算机;存储程序数字计算机通过数据、地址总线、控制线与所述CAN协议芯片、TCP/IP协议芯片相连。 The CAN / DeviceNet-TCP / IP data processing card comprising: CAN / DeviceNet network selection switch; receiving the CAN protocol subnet interface input field data, converts it into TCP / IP protocol and forwards the data to the wide area network TCP / IP protocol chip interfaces; the wide area network interface receives input TCP / IP protocol data into CAN protocol to convert the data, and forwarded to the sub-field CAN protocol interface chip; read CAN / DeviceNet network selection state of the switch, TCP interface to the wide area network input / IP protocol for data encapsulation protocol conversion DviceNet stored program digital computer; stored program digital computer through the data, an address bus, a control line and the CAN protocol chip, TCP / IP protocol chip connected.

该网关有以下两种工作方式:CAN/DeviceNet现场子网接口将接收的CAN/DeviceNet数据包传输到CAN/DeviceNet-TCP/IP数据处理单元经协议转换、封装等处理后成为TCP/IP数据并通过广域网接口转发至Internet/Intranet网络;广域网络接口将接收的TCP/IP数据传输到CAN/DeviceNet-TCP/IP数据处理单元经协议转换、封装等处理后成为CAN/DeviceNet数据并通过CAN/DeviceNet现场子网接口转发至CAN/DeviceNet现场总线。 The gateway works in two ways: the CAN / DeviceNet interface sub-field of the received CAN / DeviceNet data packet to CAN / DeviceNet-TCP / IP protocol conversion on the data processing unit, packaging, etc. processed into TCP / IP data and forwarding via the WAN connection to the Internet / intranet network; after transmission of the WAN interface to the received TCP / IP data to the CAN / DeviceNet-TCP / IP data processing unit via the protocol conversion, packaging, etc. processed into CAN / DeviceNet data via CAN / DeviceNet site subnet interface to forward to CAN / DeviceNet fieldbus.

本发明具有如下优点:实现嵌入式的CAN/DeviceNet现场总线与TCP/IP协议转换,它运用广泛,功耗低、可靠性高;功能强大、性能价格比高;实时性强,支持多任务;占用空间小,效率高;面向特定应用,可根据需要灵活定制。 The present invention has the following advantages: Implement embedded CAN / DeviceNet fieldbus with TCP / IP protocol conversion, it uses a wide range, low power consumption, high reliability; powerful, high performance and low cost; real-time, multi-tasking; small footprint, high efficiency; application-specific, can be flexibly customized as required.

附图说明 BRIEF DESCRIPTION

图1是本发明实施例主要电路结构的方框图图2是CAN/DeviceNet-TCP/IP数据处理卡的电路原理图图3是本发明实施例主要电路连接图图4是TCP/IP协议结构图图5是TCP/IP协议的功能结构图图6是现场总线的信息结构图图7是TCP/IP协议芯片的工作控制流程图具体实施方案如图1所示的本发明实施例,网关包括CAN/DeviceNet现场子网接口、CAN/DeviceNet-TCP/IP数据处理卡、广域网络接口。 FIG. 1 is a block diagram showing a main circuit configuration of embodiment 2 of the invention is a CAN / DeviceNet-TCP / IP data processing card circuit diagram FIG. 3 is a main circuit connection diagram of FIG embodiment of the present invention 4 is a TCP / IP protocol structure of FIG. 5 is a functional block diagram of FIG. TCP / IP protocol field is 6 bus 7 is a structural diagram of information operation control TCP / IP protocol chip shown in the flowchart of the present invention, the specific embodiments shown in the embodiment, the gateway includes a CAN / DeviceNet site subnet interfaces, CAN / DeviceNet-TCP / IP data processing card, a wide area network interface. 所述CAN/DeviceNet现场子网接口包括接收、转发CAN2.0A/B或GB/T 18858.2-2002标准数据的现场子网接口电路和对现场子网接口电路接收或转发的所述数据进行抗干扰处理的隔离电路。 The CAN / DeviceNet interface includes receiving site subnet, the subnet interface circuit forwarding site CAN2.0A / B or GB / T 18858.2-2002 standard data and the sub-field data interface circuitry to receive or forward against the interference the isolation circuit processing. 所述广域网接口包括接收、转发IEEE802.3标准数据的广域网接口电路和对广域网接口电路接收或转发的数据进行抗干扰处理的隔离电路。 The WAN interface includes receiving, forwarding of IEEE802.3 standard data interface circuitry and to the wide area network WAN interface circuitry to receive data forwarded by isolation or interference processing circuit. 所述CAN/DeviceNet-TCP/IP数据处理卡包括存储程序数字计算机、将输入数据封装成符合CAN2.0A/B标准数据的CAN协议芯片、将输入数据封装成符合IEEE802.3标准数据的TCP/IP协议芯片、CAN/DeviceNet网络选择开关;所述CAN协议芯片、TCP/IP协议芯片通过数据、地址总线、控制线与存储程序数字计算机相连。 The CAN / DeviceNet-TCP / IP data processing card comprises stored program digital computer, the input data to conform to the CAN protocol encapsulated CAN2.0A chip / B is standard data, the input data is encapsulated into line with the IEEE802.3 standard data TCP / IP protocol chip, CAN / DeviceNet network selection switch; the CAN protocol chip, TCP / IP protocol chip via the data, address bus, control line stored program digital computer is connected. 存储程序数字计算机包括微处理器、数据存储器、程序存储器,微处理器通过以逻辑顺序读取存储在程序存储器中的多条指令,控制TCP/IP协议芯片与CAN协议芯片的协议转换,通过CAN/DeviceNet网络选择开关的状态,对存储在数据存储器中的数据进行DviceNet协议封装与转换。 Stored program digital computer comprising a microprocessor, a data memory, program memory, the microprocessor reads the logical order by a plurality of instructions stored in the program memory, the control protocol conversion TCP / IP protocol chip with the CAN protocol chip via CAN / DeviceNet network selection state of the switch, the data stored in the data memory and performs conversion DviceNet protocol encapsulation.

如图2、3所示,现场子网接口电路采用82C250芯片,现场子网接口隔离电路采用6N 137芯片,CAN协议芯片采用SJA1000芯片,微处理器采用AT8051芯片、数据存储器采用6264芯片,程序存储器采用2764芯片,TCP/IP协议芯片采用8029芯片,广域网络接口隔离电路采用高频隔离变压器,广域网接口电路采用8209芯片。 As shown in FIG site subnet 2,3 82C250 interface circuit chip, Field subnet interface isolation circuit chip using 6N 137, CAN protocol chip SJA1000 chip, chip microprocessors AT8051, using 6264 data memory chip, a program memory using the 2764 chip, TCP / IP protocol chip 8029 chip, a wide area network interface isolation circuit isolating transformer with high frequency, wide area network interface circuit 8209 chips. CAN/DeviceNet网络选择开关采用跳线方式。 CAN / DeviceNet network selection switch using jumpers.

工作流程如下:现场总线为CAN现场总线时,CAN/DeviceNet网络选择开关选择CAN网络对应跳线,当现场总线有通讯请求时,微处理器向CAN协议芯片发出控制信号,CAN协议芯片将隔离电路输入的TCP/IP协议数据进行CAN2.0A/B标准封装,并将封装后的数据经隔离电路、现场子网接口电路传输至现场子网;现场总线为DviceNet现场总线时,CAN/DeviceNet网络选择开关选择DeviceNet网络对应跳线,当现场总线有通讯请求时,微处理器将隔离电路输入的TCP/IP协议数据进行GB/T18858.2-2002标准封装,并将封装后的数据经隔离电路、现场子网接口电路传输至现场子网;广域网络有通讯请求时,微处理器向TCP/IP协议芯片发出控制信号,TCP/IP协议芯片将隔离电路输入的CAN/DeviceNet协议数据进行IEEE802.3标准封装,并将封装后的数据经隔离电路、广域网络接口电路传输至广域网络。 Works as follows: When the CAN field bus, CAN / DeviceNet network CAN network selection switch to select the corresponding patch, when there is the fieldbus communication request, the microprocessor sends control signals to the CAN bus protocol chip field, the CAN protocol isolation circuit chip TCP / IP protocol data inputted CAN2.0A / B standard package, and the encapsulated data by the isolation circuit, the interface circuit is transmitted to the site subnet subnet field; fieldbus is DviceNet fieldbus, CAN / DeviceNet network selection DeviceNet network switch to select the corresponding patch, when there is the fieldbus communication request, the microprocessor to isolate the TCP / IP protocol for data input circuit GB / T18858.2-2002 standard package, and the encapsulated data by the isolation circuit, field subnet interface circuit is transmitted to the sub-site; wide-area communications network has a request, the microprocessor sends a control signal to the TCP / IP protocol chip, TCP / IP protocol chip isolation circuit input CAN / DeviceNet protocol data IEEE802.3 standard package, and encapsulate the data isolation circuit, a transmission circuit over a wide area network interface to a wide area network.

在本发明实施例嵌入式系统中实现现场总线与TCP/IP协议转换的关键技术:主要考虑解决在嵌入式系统中需要实现的TCP/IP协议子集以及该协议与下层协议的接口匹配和数据链接。 Fieldbus key technology and TCP / IP protocol conversion system according to the embodiment of the present invention is embedded in: the main consideration resolve TCP / IP protocol, and a subset of the protocol and the lower layer protocol needs to implement in embedded systems and the data interface adaptation link. 其分层模型及协议如图4,其实现的功能结构如图5。 Layered model and protocols which FIG. 4, a functional configuration of its implementation in FIG 5.

在该网关的设计中考虑未来与不同总线子网的匹配与连接以解决不同现场总线信息共享的关键技术并在该设计中加以实现;为了实现不同现场总线子网的信息集成,每个类型的子网拥有一个独立的网关,其上运行一个Subagent(SA),各个SA通过局域网与统一平台的Manager Server连接,在Manager Server上运行一个Master Agent(MA),它通过与SA的信息交换得到各子网的信息,并将它们转换成基于广域网的共享信息模式。 Considered in the design of the gateway and matches the next bus to connect different subnets to address key technical information sharing different fieldbus and implemented in this design; in order to achieve information integration of different fieldbus subnets, each type of subnet has a separate gateway, on which to run a Subagent (SA), various SA via LAN and unified platform Manager Server connection, run a Master Agent (MA) on the Manager Server, it gets each by exchanging information with the SA subnet information, and converts them to share information model based WAN.

(1)信息结构设计:信息结构总体上也分为两层,在MANAGER中采用MIB技术,核心数据库系统采用通用关系型数据库系统,信息交换采用基于网络的SQL通用查询语言。 (1) structural design information: the information is also divided into two general structure, the use of technology in the MIB MANAGER, the core database system using a common relational database systems, web-based information exchange using common SQL query language. 由于各现场总线普遍采用DDE或OPC技术进行信息集成,因此核心数据库既要参考上述信息结构,又要考虑适合监控系统的操作,同时还要适合转换成网络浏览的信息库结构,基本配置如图6。 Since each Fieldbus commonly used DDE or OPC information integration technology, so it is necessary to refer to the core database configuration information described above, but also for monitoring regardless of operating system, but also for converting a network browsing information database structure, the basic configuration in FIG. 6.

(2)通信结构设计考虑到网络结构通用性,局域网主干部分采用以太网结构,通信协议采用当前广泛使用的标准简单网络管理协议SNMP(Simple Network Management Protocol)作为现场总线统一平台的开发标准。 (2) communication structure designed taking into account the general structure of the network, local area network backbone part of the development standard Ethernet structure, communication protocol standard SNMP current widespread use of SNMP (Simple Network Management Protocol) as a fieldbus unified platform. SNMP是一种广为执行的网络协议,它使用嵌入到网络设施中的代理软件(agent)来收集网络的通信信息和有关网络设备的统计数据。 SNMP is a network protocol widely performed, it is embedded into the network infrastructure of agent software (agent) to collect statistical information and related data communications network equipment network. 代理软件不断地收集、统计数据,并把这些数据记录到一个管理信息库(MIB)中。 Agent software continue to collect statistical data, and to record the data to a Management Information Base (MIB) in. 管理站通过向代理的MIB发出查询信号可以得到这些数据。 Management station by sending a query signal to the agent's MIB can get these data.

网络的下行信息反馈采用两种方案实现,一种是反馈信息库,其提供的信息结构完整,适应性与可靠性强,但实时性较弱;一种是直接通过Socket接口的消息反馈,其实时性强,但信息结构适应性较弱。 Downlink feedback information network implemented in two schemes, one is feedback information database, which provides complete information structure, adaptability and reliable, but less real time; one is directly through a feedback message Socket interface, in fact, when strong, but the information structure adaptability weak.

MA与广域网的通信采用CORBA技术,由于其基于面向对象的技术特点,因此具有很好的通用性与可移植性。 MA communication with a wide area network using CORBA technology, due to its characteristics based on object-oriented techniques, it has good portability and versatility.

针对嵌入式系统的要求分析确定各种协议及其合理的子集与实现;(1)DeviceNet实现:DeviceNetTM是一个低端网络系统其作用为在简单的工业设备如传感器、激励器等与高端设备控制器之间实现连接。 Analysis for the embedded system and to determine various protocols to achieve a reasonable subset; (1) DeviceNet achieved: DeviceNetTM network is a low-end system and its role as a simple industrial equipment such as sensors, actuators and other high-end devices connection between the controller. DeviceNet可以提供:低端网络设备的低成本解决方案和低端设备的智能化。 DeviceNet can provide: a low-cost solution for low-end intelligent network devices and low-end devices. 其主要实现的通信特性:媒体访问控制及物理信号使用控制器区域网CAN有利于应用之间通讯的面向连接的模式面向网络通讯的典型的请求/响应I/O数据的高效传输高信息量的分段移动MAC ID重复检测(2)OPC实现:分为OPC Server和OPC Client两部分实现OPC服务器由对象链接和嵌入线程处理组成。 The main communication characteristics achieved: a medium access control and physical signals using a controller area network CAN facilitate communication between the application mode of connection-oriented communication network for a typical request / response I / O data transfer efficiency highly informative repeating MAC ID movement detection segment (2) to achieve OPC: OPC server is divided into two parts and the OPC Client OPC server implemented by the object linking and embedding thread processing composition. 对象链接和嵌入将使服务器可以用本身或远端的一个线程处理所有客户机的要求。 Object Linking and Embedding causes the server can handle the requirements of all clients with a thread itself or remotely. 一条交替的通路被提交给“单元式的线路”通过这条线路所有的对象链接和嵌入都可以不断的调用对象链接和嵌入服务器。 An alternate path is submitted to the "unit of Formula line" by this route are continually calling the server object linking and embedding all the object linking and embedding. 单元式的线路简化了各种客户访问途径的问题。 Unitary line simplifies the problem a variety of customer access routes. 到这条单个的线程途径的一个优点是它简化了服务器运行时关于reentrancy问题的实现。 One advantage to this single thread approach is that it simplifies the implementation of reentrancy on the server in question is running. 这样所有的方法通过信息回路自动地,连续地被调用。 In this way all the way through the information loop automatically and continuously be called. 另外的优点是它确保(当需要串行通讯端口时)一台机器的所有通路都由产生通路的线程组成。 A further advantage is to ensure that it (the serial communication port when required) of all channels of a machine produced by the passage of the thread composition.

OPC的客户机服务程序是一个对象只通过创造了它的线程而被存取的串行通信口的必要要求。 OPC client service program is an object only through the creation of the necessary requirements of its thread being accessed serial communication port. 这不仅适用于现在在执行的服务器并且适用于任何执行处理器所对应的对象。 This applies not only performed by a server and is now applied to any object executed by a processor corresponding. 注意有些方法可以部分放宽这种限制(例如存贮地址寄存器可使用线形识别格式)。 Note that some method of this limitation may be partially relaxed (e.g., memory address registers may be used to identify linear format). 然而,这种简单地通过对象建立的线程调用信息路线,需要很高的费用。 However, this object is created simply by calling the information line of thread, require a very high cost. 另外,不管有多少线程试图同时存取对象,他们都将排除正在执行的对象线程分配回路之外,并且不会有任何性能改进。 In addition, no matter how many threads simultaneously attempt to access an object, they will exclude objects executing thread distribution loop outside, and there will be no performance improvement.

由于涉及从CAN、DeviceNet、OPC到TCP/IP等多层次复杂协议转换,必须考虑各种协议之间的接口兼容性、稳定性与实时性;DeviceNet的物理/媒体的特性的总体实现:主干线-分支线结构最多可支持64个节点不用中断网络就可以解除节点同时支持网络供电传感器及自供电执行器设备使用密封或开放形式的连接器接线错误保护可选的数据速率为125k波特250k波特以及500k波特可调整的电源结构以满足各分类应用的需要大电流容量每个电源最大容量可以达到16安培可以在带电状况下操作电源插头可以连接符合DeviceNet标准的不同制造商供电装置内置式过载保护总线供电主干线中包括电源线及信号线该网关工作于工业现场,因此要解决现场抗干扰与电磁兼容性问题。 As it involves the CAN, DeviceNet, OPC to TCP / IP multi-level complex protocol conversion must be considered an interface between the various protocol compatibility, stability and real-time; overall physical properties / DeviceNet media implemented: Mains - the branch line structure can support up to 64 nodes can be released without interrupting the network node supports network-powered self-powered sensors and actuators using a sealing device in the form of an open connection or wiring error protection optional data rate 125k 250k baud wave Patent 500k baud and adjustable power structure to meet the needs a large current capacity of each application in the maximum capacity of each power supply can reach 16 amps power plug may be operated may be connected in line with different manufacturers DeviceNet standard built-in power supply means at the charging condition in bus-powered overload trunk power lines and signal lines including the gateway operates in the industrial field, so to solve the problem of electromagnetic compatibility and interference field. 该项设计主要采用软硬件两个方面的措施加以实现。 The measures designed mainly two aspects of hardware and software to be realized.

主要的硬件措施有:设备采用隔离DC/DC电源,保证电源的稳定、干净;CAN/DeviceNet端采用光电隔离措施,器件采用6N137高速光隔;TCP/IP端采用专用的高频隔离变压器。 The main hardware measures: device uses isolated DC / DC power supply, to ensure a stable supply of clean; CAN / DeviceNet end of the opto-isolated, high-speed optical isolation devices are 6N137; TCP / IP terminal using a dedicated high frequency isolation transformer. 主要的译码与接口电路采用CPLD/FPGA设计,提高系统的抗干扰能力。 Main decoding and interface circuit CPLD / FPGA design, improve the anti-interference capability of the system. 主要的电源回路采用反向脉冲截止电路滤除负脉冲干扰。 The main power circuit using inversion pulse was filtered off circuit negative glitch. CPU采用看门狗电路保证单片机系统的运行稳定。 CPU with the watchdog circuit to ensure stable operation of the microcontroller system.

主要的软件措施有:采用冷热启动判别的自恢复功能;采用数据冗余和表决机制保证数据可靠性;采用软件陷阱提高系统恢复能力;TCP/IP协议芯片的工作控制流程如图7,CAN协议芯片的工作控制流程与TCP/IP协议芯片的工作控制流程同理。 The main software measures are: the use of self-recovery hot and cold start discrimination; the use of data redundancy and voting mechanism to ensure data reliability; the use of software trap system resilience; TCP / IP protocol chip operating control flow shown in Figure 7, CAN protocol chip work control processes and TCP / IP protocol chip operational control flow empathy.

Claims (5)

1.嵌入式现场总线网关,它包括:现场子网接口、广域网络接口,其特征在于:它还包括:CAN/DeviceNet-TCP/IP数据处理卡;所述现场子网接口为接收、发送CAN/DeviceNet数据的CAN/DeviceNet现场子网接口;所述广域网络接口为接收、发送TCP/IP数据的广域网络接口;所述CAN/DeviceNet-TCP/IP数据处理卡为将CAN/DeviceNet数据转换成TCP/IP数据或将TCP/IP数据转换成CAN/DeviceNet数据的处理卡;所述CAN/DeviceNet-TCP/IP数据处理卡包括:CAN/DeviceNet网络选择开关;接收所述现场子网接口输入的CAN协议数据,将其转换为TCP/IP协议数据并转发至所述广域网络接口的TCP/IP协议芯片;接收所述广域网络接口输入的TCP/IP协议数据将其转换为CAN协议数据,并转发至所述现场子网接口的CAN协议芯片;读取CAN/DeviceNet网络选择开关的状态,对所述广域网络接口输入的TCP/IP协议数据进行DviceNet协议封装与转换 1. Embedded fieldbus gateways, comprising: an interface sub-field, a wide area network interface, characterized by: further comprising: CAN / DeviceNet-TCP / IP data processing card; subnet interfaces to receive the field, sends a CAN / DeviceNet data of the CAN / DeviceNet interface to a subnet field; the wide area network interface to receive, transmits a wide area network interface TCP / IP data; the CAN / DeviceNet-TCP / IP data processing card to the CAN / DeviceNet data into TCP / IP data to convert or TCP / IP data to process the card CAN / DeviceNet data; the CAN / DeviceNet-TCP / IP data processing card comprising: CAN / DeviceNet network selection switch; receiving the input interfaces sub-field CAN protocol data, converts it into TCP / IP protocol and forwards the data to the wide area network interface of the TCP / IP protocol chip; wide area network interface for receiving the input TCP / IP protocol data converted into CAN protocol data, and forwarded to the sub-field CAN protocol interface chip; read CAN / DeviceNet network selection state of the switch, the input interface to a wide area network, TCP / IP protocol for data conversion and protocol encapsulation DviceNet 的存储程序数字计算机;存储程序数字计算机通过数据、地址总线、控制线与所述CAN协议芯片、TCP/IP协议芯片相连。 Stored program digital computer; stored program digital computer through the data, an address bus, a control line and the CAN protocol chip, TCP / IP protocol connected to the chip.
2.根据权利要求1所述的网关,其特征在于所述现场子网接口与CAN/DeviceNet-TCP/IP数据处理卡之间设有隔离电路。 The gateway according to claim 1, wherein the isolation circuit is provided between the sub-field interface CAN / DeviceNet-TCP / IP data processing card.
3.根据权利要求1或2所述的网关,其特征在于所述广域网接口与CAN/DeviceNet-TCP/IP数据处理卡之间设有隔离电路。 The gateway of claim 1 or claim 2, wherein the isolation circuit is provided between the WAN interface and the CAN / DeviceNet-TCP / IP data processing card.
4.根据权利要求1所述的网关,其特征在于所述的存储程序数字计算机包括微处理器、数据存储器、程序存储器。 4. The gateway according to claim 1, wherein said stored program digital computer comprising a microprocessor, a data memory, program memory.
5.根据权利要求1所述的网关,其特征在于:TCP/IP协议芯片为接收所述现场子网接口输入的CAN2.0A/B或GB/T 18858.2-2002标准数据将其转换为IEEE802.3标准数据并转发至所述广域网络接口的芯片;CAN协议芯片为接收所述广域网络接口输入的IEEE802.3标准数据将其转换为CAN2.0A/B标准数据并转发至所述现场子网接口的芯片。 5. The gateway according to claim 1, wherein: TCP / IP protocol to receive the chip CAN2.0A / B or input interfaces sub-field GB / T 18858.2-2002 data to convert it to a standard IEEE802. 3 standard data and forwarded to the wide area network interface chip; the CAN protocol IEEE802.3 standard chip to receive the data input of the WAN interface to convert CAN2.0A / B standard data and forwarded to the sub-field chip interface.
CN 03118500 2003-01-21 2003-01-21 Embedded field bus gateway CN1187937C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 03118500 CN1187937C (en) 2003-01-21 2003-01-21 Embedded field bus gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 03118500 CN1187937C (en) 2003-01-21 2003-01-21 Embedded field bus gateway

Publications (2)

Publication Number Publication Date
CN1434609A CN1434609A (en) 2003-08-06
CN1187937C true CN1187937C (en) 2005-02-02

Family

ID=27634397

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 03118500 CN1187937C (en) 2003-01-21 2003-01-21 Embedded field bus gateway

Country Status (1)

Country Link
CN (1) CN1187937C (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100394410C (en) 2004-03-22 2008-06-11 上海电器科学研究所(集团)有限公司 Relay extender for network bus
CN100469007C (en) 2005-05-20 2009-03-11 上海电器股份有限公司人民电器厂 Communication adapter of connecting low voltage electric appliance field bus
WO2007082015A2 (en) 2006-01-11 2007-07-19 Fisher-Rosemount Systems, Inc. Control of low power wireless networks for power conservation
CN101094165B (en) 2006-06-19 2010-12-08 大唐移动通信设备有限公司 Method, system, and device for controlling implementation of data transmission in local area network
CN101447904B (en) 2008-10-31 2011-06-22 中国电力科学研究院 Single-CAN-card-based multi-address receiving and transmitting method
CN101420386B (en) 2008-12-09 2011-04-27 南京西倍特科技有限公司 Multi-field integrated metering network interconnecting routing method

Also Published As

Publication number Publication date
CN1434609A (en) 2003-08-06

Similar Documents

Publication Publication Date Title
Sauter et al. End-to-end communication architecture for smart grids
Mackiewicz Overview of IEC 61850 and Benefits
CN101951031B (en) Distribution network automatic system based on broadband wireless communication and realization method thereof
US20060077999A1 (en) System and method for simultaneous communication on modbus and DNP 3.0 over Ethernet for electronic power meter
US6363057B1 (en) Remote access to electronic meters using a TCP/IP protocol suite
CN101425948B (en) Industrial wireless network access industrial Ethernet, multi-protocol gateway of field bus and protocol conversion method
CN101047549A (en) Data synchronous system and its method
CN101652975A (en) Method of configuring an intelligent electronic device
WO2012152082A1 (en) Data acquisition concentrator and data acquisition method
CN103036893A (en) One-layer network data processing method suitable for intelligent substation
CN102209074B (en) Digital A power system dynamic simulation system
EP1062648B1 (en) Remote access to electronic meters using a tcp/ip protocol suite
CN101262472B (en) A multi-function protocol parser and its realization method
CN101697551A (en) Networked power telecontrol communication method
CN103501047B (en) Intelligent fault wave recording main station information management system
CN103414251A (en) Substation network communication simulation system based on IEC 61850
CN1306677C (en) Layered distributed monitoring system with chain type static synchronous compensator
CN1216475C (en) Embedded gate for realizing interconnection between networks with different structures
CN1369990A (en) Digital family network system
CN101685301B (en) Embedded type state monitoring information adaptor capable of operating under complex working conditions of numerically-controlled machine tool and method thereof
CN103064374A (en) Household energy consumption monitoring system based on internet of things technology
CN101354581B (en) On site bus building integrated control system based on LON bus technique
CN1794242B (en) Failure diagnosis data collection and publishing method
CN200950557Y (en) Unattended remote monitor system for 500kV transformer station
CN101442430B (en) IPv6 digitalization network illumination control system and IPv6 digitalization network control system

Legal Events

Date Code Title Description
C06 Publication
C41 Transfer of patent application or patent right or utility model
ASS Succession or assignment of patent right

Owner name: WUHAN UNIV. OF SCIENCE AND ENGINEERING; SHANGHAI

Free format text: FORMER OWNER: WUHAN UNIV. OF SCIENCE AND ENGINEERING

Effective date: 20030730

C10 Entry into substantive examination
C14 Grant of patent or utility model
EXPY Termination of patent right or utility model