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

CN1434609A - Embedded in situ bus gateway - Google Patents

Embedded in situ bus gateway Download PDF

Info

Publication number
CN1434609A
CN1434609A CN 03118500 CN03118500A CN1434609A CN 1434609 A CN1434609 A CN 1434609A CN 03118500 CN03118500 CN 03118500 CN 03118500 A CN03118500 A CN 03118500A CN 1434609 A CN1434609 A CN 1434609A
Authority
CN
China
Prior art keywords
data
devicenet
tcp
protocol
wide area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 03118500
Other languages
Chinese (zh)
Other versions
CN1187937C (en
Inventor
周祖德
黄涛
卢珞先
李波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Baosight Software Co Ltd
Original Assignee
Wuhan University of Technology WUT
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 Wuhan University of Technology WUT filed Critical Wuhan University of Technology WUT
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
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

This invention relates to embedded site bus gate including: site subnet interface, WAN interface, CAN/Device net-TCP/IP data process card, the said gate works in two ways: CAN/Device Net site subnet interface transmits the received CAN/Device Net data packet to CAN/Device Net-Tcp/IP data process unit to become TCP/IP data after protocol transform and packet then forward to Internet/Intranet network via WAN interface which transfers TCP/IP data to CAN/Device Net-TCP/IP data process unit to become CAN/Device Net data after process of transform and packet then forward to CAN/Device Net site bus via its subnet interface, realizing transformation of embedded CAN/Device Net site bus with TCP/IP protocol.

Description

The embedded field bus gateway
Technical field
The present invention relates to a kind of network access device, especially for the gateway of the heterogeneous network that connects different agreement, it can discern various protocols, and a kind of packet of agreement can be converted to the packet of another kind of agreement.
Background technology
Internet network based on TCP/IP is the wide area network of present international mainstream, has become the main network channel of government, enterprise and personal information circulation, exchange.Enterprises lan in the ascendant in recent years (Intranet) provides powerful information network platform for enterprises.Intranet also can link to each other with Internet by firewall software provides the secure way of accesses network to business partner.Intranet generally adopts Internet technology and standard, as TCP/IP, HTTP, SMTP, HTML etc.Network bottom layer agreement based on TCP/IP adopts the IEEE802.3 standard.
Fieldbus (FieldBus) is the communication network between factory's underlying device, is the application of the computer digit communication technology in automatic field, and workshop underlying device information and the integrated communication technology platform that provides of production process information are provided.Field bus technique has been realized full factory information vertically integrated transparent communication, i.e. data access from management level to the automation bottom.In the face of the Protean field instrument equipment of automation industry, realize the interconnection of different manufacturers variety classes product, the field bus technique standardization effort is most important.For this reason, the international IEC committee proposed to formulate field bus technique standard IEC 1158 (being IEC61158) in 1984.CAN and DeviceNet are widely used two kinds of fieldbus.The CAN/DeviceNet agreement is one of 8 kinds of fieldbus of international standard support, obtains American-European company and extensively supports.The DeviceNet fieldbus has been approved for national standard on October 8th, 2002.(annotate: DeviceNet CNS be numbered GB/T 18858.2-2002)
In order to realize the globality of enterprise network information management, realization from industry spot, workshop to company information platform, e-commerce platform the information seamless link and to the remote monitoring of field apparatus, must be converted to the network information of supporting ICP/IP protocol based on the network information of industry spot, utilize field bus gateway then can realize interconnecting of different sub-network.The similar devices of external exploitation is mainly based on the conversion platform of PC, its power consumption is big, poor reliability, the ratio of performance to price is low, real-time is poor, take up room big, efficient is low, and this series products all is to be released by the manufacturer that supports a certain specific bus standard, seldom relates to the information sharing problem that solves different fieldbus.
Summary of the invention
Technical problem to be solved by this invention is: a kind of embedded field bus gateway is provided, compares with existing PC conversion platform, it can be applicable to CAN and two kinds of fieldbus of DeviceNet respectively.
The present invention solves the problems of the technologies described above the technical scheme that is adopted: it comprises: on-the-spot subnet interface, and the Wide Area Network interface is characterized in that: it also comprises: the CAN/DeviceNet-TCP/IP data processing card; Described on-the-spot subnet interface is the on-the-spot subnet interface of the CAN/DeviceNet that receives, sends the CAN/DeviceNet data; Described Wide Area Network interface is for receiving, send the Wide Area Network interface of TCP/IP data: described CAN/DeviceNet-TCP/IP data processing card is the transaction card that the CAN/DeviceNet data transaction is become the TCP/IP data or the TCP/IP data transaction is become the CAN/DeviceNet data.
This gateway has the on-the-spot subnet interface of following two kinds of working method: CAN/DeviceNet that the CAN/DeviceNet data packet transmission that receives is become the TCP/IP data and is forwarded to the Internet/Intranet network by Wide Area Network interface to the CAN/DeviceNet-TCP/IP data processing unit after processing such as protocol conversion, encapsulation; The Wide Area Network interface becomes the TCP/IP transfer of data that receives the CAN/DeviceNet data and is forwarded to the CAN/DeviceNet fieldbus by the on-the-spot subnet interface of CAN/DeviceNet to the CAN/DeviceNet-TCP/IP data processing unit after processing such as protocol conversion, encapsulation.
The present invention has following advantage: realize the conversion of Embedded CAN/DeviceNet fieldbus and ICP/IP protocol, its utilization is extensive, low in energy consumption, reliability is high; Powerful, the ratio of performance to price is high; Real-time, support multitask; It is little to take up room, the efficient height; Towards application-specific, flexible customization as required.
Description of drawings
Fig. 1 is the block diagram of embodiment of the invention main circuit structure
Fig. 2 is the circuit theory diagrams of CAN/DeviceNet-TCP/IP data processing card
Fig. 3 is an embodiment of the invention main circuit connection layout
Fig. 4 is the ICP/IP protocol structure chart
Fig. 5 is the functional structure chart of ICP/IP protocol
Fig. 6 is the information structure diagram of fieldbus
Fig. 7 is the work control flow chart of ICP/IP protocol chip
Specific embodiments
The embodiment of the invention as shown in Figure 1, gateway comprise the on-the-spot subnet interface of CAN/DeviceNet, CAN/DeviceNet-TCP/IP data processing card, Wide Area Network interface.The on-the-spot subnet interface of described CAN/DeviceNet comprises the on-the-spot subnet interface circuit of reception, forwarding CAN2.0A/B or GB/T 18858.2-2002 normal data and the described data that on-the-spot subnet interface circuit receives or transmits is carried out the buffer circuit of anti-interference process.Described Wide Area Network interface comprises the Wide Area Network interface circuit of reception, forwarding IEEE802.3 normal data and the data that the Wide Area Network interface circuit receives or transmits is carried out the buffer circuit of anti-interference process.Described CAN/DeviceNet-TCP/IP data processing card comprises the stored program digital computer, will import CAN protocol chip that data encapsulation becomes to meet the CAN2.0A/B normal data, will import ICP/IP protocol chip, CAN/DeviceNet network selecting switch that data encapsulation one-tenth meets the IEEE802.3 normal data; Described CAN protocol chip, ICP/IP protocol chip link to each other with the stored program digital computer by data, address bus, control line.The stored program digital computer comprises microprocessor, data storage, program storage, microprocessor is by reading many instructions that are stored in the program storage with logical order, the protocol conversion of control ICP/IP protocol chip and CAN protocol chip, by the state of CAN/DeviceNet network selecting switch, the data that are stored in the data storage are carried out DviceNet protocol encapsulation and conversion.
Shown in Fig. 2,3, on-the-spot subnet interface circuit adopts the 82C250 chip, on-the-spot subnet interface buffer circuit adopts 6N 137 chips, the CAN protocol chip adopts the SJA1000 chip, microprocessor adopts AT8051 chip, data storage to adopt 6264 chips, and program storage adopts 2764 chips, and the ICP/IP protocol chip adopts 8029 chips, Wide Area Network interface buffer circuit adopts high-frequency isolation transformer, and the Wide Area Network interface circuit adopts 8209 chips.CAN/DeviceNet network selecting switch adopts the wire jumper mode.
Workflow is as follows: when fieldbus is the CAN fieldbus, CAN/DeviceNet network selecting switch is selected the corresponding wire jumper of CAN network, when fieldbus has communication request, microprocessor sends control signal to the CAN protocol chip, the CAN protocol chip carries out the CAN2.0A/B standard packaging with the ICP/IP protocol data of buffer circuit input, and the data after will encapsulate are through buffer circuit, on-the-spot subnet interface circuit transmission on-the-spot subnet extremely;
When fieldbus is the DviceNet fieldbus, CAN/DeviceNet network selecting switch is selected the corresponding wire jumper of DeviceNet network, when fieldbus has communication request, microprocessor carries out the GB/T18858.2-2002 standard packaging with the ICP/IP protocol data of buffer circuit input, and the data after will encapsulate are through buffer circuit, on-the-spot subnet interface circuit transmission on-the-spot subnet extremely;
When Wide Area Network has communication request, microprocessor sends control signal to the ICP/IP protocol chip, the ICP/IP protocol chip carries out the IEEE802.3 standard packaging with the CAN/DeviceNet protocol data of buffer circuit input, and the data after will encapsulating transfer to Wide Area Network through buffer circuit, Wide Area Network interface circuit.
In embodiment of the invention embedded system, realize the key technology of fieldbus and ICP/IP protocol conversion: mainly consider that solution needs the ICP/IP protocol subclass that realizes and this agreement and the Interface Matching and the data of lower-layer protocols to link in embedded system.Its hierarchical mode and agreement such as Fig. 4, the functional structure of its realization such as Fig. 5.
In the design of this gateway, look to the future with the coupling of different bus subnet be connected with the key technology that solves different fieldbus information sharings and in this design, realized; In order to realize the information integration of different fieldbus subnets, the subnet of each type has an independently gateway, an operation Subagent (SA) on it, each SA is connected with the Manager Server of the unified platform by local area network (LAN), an operation Master Agent (MA) on Manager Server, it obtains the information of each subnet by the information exchange with SA, and converts them to based on wide area network shared information pattern.
(1) message structure design: message structure also is divided into two-layer generally, adopts MIB technology, core database system to adopt total relation type Database Systems in MANAGER, and based on network SQL general polling language is adopted in information exchange.Because each fieldbus generally adopts DDE or OPC technology to carry out information integration, therefore core database should be with reference to above-mentioned message structure, consider to be fit to the operation of supervisory control system again, also will be fit to convert to the information bank structure of network browsing simultaneously, basic configuration such as Fig. 6.
(2) communication structure design
Consider the network configuration versatility, the local area network (LAN) trunk portion adopts the Ethernet structure, and communication protocol adopts the exploitation standard of current widely used standard Simple Network Management Protocol SNMP (Simple Network Management Protocol) as the fieldbus unified platform.SNMP is a kind of procotol of widely carrying out, and it uses the agent software (agent) that is embedded in the network facilities to come the communication information of collection network and the statistics of related network equipment.Agent software is constantly collected, statistics, and in these data record to one management information bank (MIB).Management station sends request signal by the MIB to the agency can obtain these data.
The downlink information of network feedback adopts two kinds of schemes to realize that a kind of is the feedback information storehouse, and its message structure that provides is complete, adaptability and good reliability, but real-time a little less than; A kind of is the direct message feedback by the Socket interface, and it is real-time, but message structure adaptability a little less than.
MA adopts the CORBA technology with communicating by letter of wide area network, because it is based on OO technical characterstic, therefore has good versatility with portable.
Analyze definite variety of protocol and reasonably subclass and realization thereof at the requirement of embedded system;
(1) DeviceNet realizes:
DeviceNet TMBe a low side network system its act as between simple industrial equipment such as transducer, exciter etc. and high-end devices controller and realize being connected.DeviceNet can provide: the low-cost solution of the low side network equipment and the intellectuality of low side devices.The communication characteristic that it is mainly realized:
Media interviews control and physical signalling use controller area net CAN
The connection-oriented pattern of communication between helping using
The typical request of network-oriented communication
The high efficiency of transmission of I/O data
The segmentation of high information quantity is moved
MAC ID duplicate detection
(2) OPC realizes: be divided into OPC Server and OPC Client two parts and realize
Opc server is made up of object linking and embedding thread process.Object linking and embedding will make server can use the requirement of a thread process All Clients of or far-end own.Article one, the path that replaces is submitted to " modular circuit " by all object linking of this circuit with embed constantly the allocating object link and the embedding server.Modular circuit has been simplified the problem of various client access approach.To an advantage of this single thread approach is its realization about the reentrancy problem when having simplified the server operation.All like this methods by information circuits automatically are called continuously.Additional advantage is that all paths that it guarantees (when needing COM port) machine all are made up of the thread that produces path.
The client service program of OPC be an object only by the thread of having created it by the exclusive requirement of the serial communication port of access.This is not only applicable to now at the server of carrying out and is applicable to the pairing object of any execution processor.Notice that some method can partly relax this restriction (for example store address register and can use linear identification form).Yet this thread dispatching information route of setting up by object simply needs very high expense.In addition, no matter there are how many threads to attempt access object simultaneously, they will get rid of outside the object thread dispensing loop of carrying out, and not have any improvement in performance.
Change to multi-level complex protocols such as TCP/IP owing to relate to, must consider interface compatibility, stability and real-time between the variety of protocol from CAN, DeviceNet, OPC;
The overall realization of the characteristic of physics/medium of DeviceNet:
Backbone-branch line structure
Can support 64 nodes at most
Just can remove node without interrupt network
While network enabled powered sensor and self-powered actuator equipment
Use the connector of sealing or opening mode
The wiring error protection
Optionally data rate is 125k baud 250k baud and 500k baud
Adjustable power supply architecture is to satisfy the needs of each classification application
Each power supply heap(ed) capacity of high current capacity can reach 16 amperes
Can under charged state, operate
Attaching plug can connect the different manufacturers electric supply installation that meets the DeviceNet standard
Built-in type overload protection
Comprise power line and holding wire in the bus-powered backbone
This gateway works in industry spot, therefore will solve on-the-spot anti-interference and emc issue.This design is main adopts the measure of two aspects of software and hardware to be realized.
Main hardware measure has: equipment adopts isolates the DC/DC power supply, guarantees the stable, clean of power supply; CAN/DeviceNet end adopts the photoelectricity quarantine measures, device adopt the 6N137 high-speed light every; The TCP/IP end adopts special-purpose high-frequency isolation transformer.Main decoding and interface circuit adopt the CPLD/FPGA design, improve the antijamming capability of system.Main electric power loop adopts reverse impulse cut-off circuit filtering negative pulse to disturb.CPU adopts watchdog circuit to guarantee the stable of Single Chip Microcomputer (SCM) system.
Main software measure has: the self-recovering function that adopts cold and hot startup to differentiate; Adopt data redundancy and voting mechanism to guarantee data reliability; Adopt software trap to improve the system restoration ability; Work control flow such as Fig. 7 of ICP/IP protocol chip, the work control flow of CAN protocol chip and the work control flow of ICP/IP protocol chip are in like manner.

Claims (6)

1, embedded field bus gateway, it comprises: on-the-spot subnet interface, Wide Area Network interface, it is characterized in that: it also comprises: the CAN/DeviceNet-TCP/IP data processing card;
Described on-the-spot subnet interface is the on-the-spot subnet interface of the CAN/DeviceNet that receives, sends the CAN/DeviceNet data;
Described Wide Area Network interface is for receiving, send the Wide Area Network interface of TCP/IP data:
Described CAN/DeviceNet-TCP/IP data processing card is the transaction card that the CAN/DeviceNet data transaction is become the TCP/IP data or the TCP/IP data transaction is become the CAN/DeviceNet data.
2. gateway according to claim 1 is characterized in that described CAN/DeviceNet-TCP/IP data processing card comprises:
CAN/DeviceNet network selecting switch;
Receive the CAN protocol data of described on-the-spot subnet interface input, be converted into the ICP/IP protocol data and be forwarded to the ICP/IP protocol chip of described Wide Area Network interface;
The ICP/IP protocol data that receive described Wide Area Network interface input are converted into the CAN protocol data, and are forwarded to the CAN protocol chip of described on-the-spot subnet interface;
Read the state of CAN/DeviceNet network selecting switch, the stored program digital computer that the ICP/IP protocol data of described Wide Area Network interface input are carried out DviceNct protocol encapsulation and conversion;
The stored program digital computer links to each other with described CAN protocol chip, ICP/IP protocol chip by data, address bus, control line.
3. gateway according to claim 1 and 2 is characterized in that being provided with buffer circuit between described on-the-spot subnet interface and the CAN/DeviceNet-TCP/IP data processing card.
4. according to claim 1 or 2 or 3 described gateways, it is characterized in that being provided with buffer circuit between described Wide Area Network interface and the CAN/DeviceNet-TCP/IP data processing card.
5. gateway according to claim 1 is characterized in that described stored program digital computer comprises microprocessor, data storage, program storage.
6, gateway according to claim 2 is characterized in that: the ICP/IP protocol chip is converted into the IEEE802.3 normal data for the CAN2.0A/B that receives described on-the-spot subnet interface input or GB/T 18858.2-2002 normal data and is forwarded to the chip of described Wide Area Network interface; The CAN protocol chip is converted into the CAN2.0A/B normal data for the IEEE802.3 normal data that receives described Wide Area Network interface input and is forwarded to the chip of described on-the-spot subnet interface.
CN 03118500 2003-01-21 2003-01-21 Embedded in situ bus gateway Expired - Fee Related CN1187937C (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

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

Family

ID=27634397

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 03118500 Expired - Fee Related CN1187937C (en) 2003-01-21 2003-01-21 Embedded in situ bus gateway

Country Status (1)

Country Link
CN (1) CN1187937C (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100382546C (en) * 2005-03-30 2008-04-16 黄涛 Infrared communication gateway based on CAN network
CN100394410C (en) * 2004-03-22 2008-06-11 上海电器科学研究所(集团)有限公司 Relay extender for network bus
CN101094165B (en) * 2006-06-19 2010-12-08 大唐移动通信设备有限公司 Method, system, and device for controlling implementation of data transmission in local area network
CN101420386B (en) * 2008-12-09 2011-04-27 南京西倍特科技有限公司 Multi-field integrated metering network interconnecting routing method
CN101447904B (en) * 2008-10-31 2011-06-22 中国电力科学研究院 Single-CAN-card-based multi-address receiving and transmitting method
CN101401321B (en) * 2006-01-11 2013-07-03 费希尔-罗斯蒙德系统公司 Field device control system and method in low power wireless networks
CN110446990A (en) * 2017-04-04 2019-11-12 霍尼韦尔国际公司 Enable the intelligent energy converter of Internet protocol (IP)

Cited By (8)

* 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
CN100382546C (en) * 2005-03-30 2008-04-16 黄涛 Infrared communication gateway based on CAN network
CN101401321B (en) * 2006-01-11 2013-07-03 费希尔-罗斯蒙德系统公司 Field device control system and method in low power wireless networks
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
CN110446990A (en) * 2017-04-04 2019-11-12 霍尼韦尔国际公司 Enable the intelligent energy converter of Internet protocol (IP)
CN110446990B (en) * 2017-04-04 2022-12-06 霍尼韦尔国际公司 Internet Protocol (IP) enabled smart transducer

Also Published As

Publication number Publication date
CN1187937C (en) 2005-02-02

Similar Documents

Publication Publication Date Title
CN101741819A (en) Protocol conversion gateway
CN1268995C (en) Wireless local area network field bus network control station
CN103812724A (en) Communication management device for transformer substation online monitoring system
CN209417574U (en) Industrial robot controller data intelligence acquisition system
CN1187937C (en) Embedded in situ bus gateway
CN104635708A (en) OPC UA (Unified Architecture) data acquisition module based on I-MX287 processor
CN206559386U (en) Embedded industry intelligent gateway and internet of things data acquisition monitoring system based on SoC
CN1216475C (en) Embedded gate for realizing interconnection between networks with different structures
CN206922798U (en) A kind of Multi-protocol converter, data transmitting equipment and communication system
CN101414177A (en) System for converting serial port to Ethernet based on field bus data acquisition
CN1268069C (en) Method and system of controlling network communication of automation based on blue-tooth technique
CN109167768B (en) Remote access and tamper-proof system for industrial field data in industrial Internet of things
CN103746836A (en) Embedded network management agent system based on ARM
CN1798114A (en) CAN bus - bridge of Ethernet network
CN1545267A (en) Ethernet redundancy switcher, redundant network system, and method for implementing redundancy switching
CN214670231U (en) Real-time monitoring system based on internet of things distributed architecture
CN201145905Y (en) Scanning firearm terminal
CN212009372U (en) Industrial control data fusion acquisition system
CN116389610A (en) Data acquisition and edge computing system and method based on information creation environment
CN1917442A (en) Concentrating type method for managing networked devices based on embedded type TELNET server
CN2641897Y (en) Networking server for series interface field bus equipment
CN1376985A (en) Field bus network controller
CN1133301C (en) Method and device of utilizing SDH access network data channel to realize router
CN217386201U (en) Distributed Internet of things information acquisition monitoring intelligent management system
CN1499741A (en) Protocol of power line carrier communication and equipment thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
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

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20030730

Applicant after: Wuhan University of Technology

Applicant after: Shanghai Baosight Software Co., Ltd.

Applicant before: Wuhan University of Technology

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20050202

Termination date: 20150121

EXPY Termination of patent right or utility model