[go: up one dir, main page]

CN105812253A - OPC UA data service gateway device and implementation method thereof - Google Patents

OPC UA data service gateway device and implementation method thereof Download PDF

Info

Publication number
CN105812253A
CN105812253A CN201410835886.1A CN201410835886A CN105812253A CN 105812253 A CN105812253 A CN 105812253A CN 201410835886 A CN201410835886 A CN 201410835886A CN 105812253 A CN105812253 A CN 105812253A
Authority
CN
China
Prior art keywords
opcua
data
control unit
main control
ethernet
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.)
Pending
Application number
CN201410835886.1A
Other languages
Chinese (zh)
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.)
Shenyang Institute of Automation of CAS
Original Assignee
Shenyang Institute of Automation of CAS
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 Shenyang Institute of Automation of CAS filed Critical Shenyang Institute of Automation of CAS
Priority to CN201410835886.1A priority Critical patent/CN105812253A/en
Publication of CN105812253A publication Critical patent/CN105812253A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

本发明涉及一种OPC UA数据服务网关装置及其实现方法,所述方法和装置用于在应用工业标准通信协议OPC UA情况下实现嵌入式OPC UA服务器,并可以周期性的采集仪表、PLC等不同种类现场设备的相关信息数据,将这些设备映射到OPC UA地址空间中,建立相应的设备模型与设备关系模型,实现对现场设备的标识与管理,与此同时,为了能让OPC UA客户端与服务器交互而应用OPC UA事务管理机制,这样OPC UA服务器能为客户端提供监听、读写、查询等服务,本发明的主旨是利用OPC UA协议实现一种支持多无线通讯协议标准的设备接口技术,并且有低功耗、易扩展的服务适配器硬件做载体,使得在进行自动化控制时不用去关心底层协议与实现。

The present invention relates to an OPC UA data service gateway device and its implementation method. The method and device are used to implement an embedded OPC UA server under the application of the industry standard communication protocol OPC UA, and can periodically collect instruments, PLCs, etc. Relevant information data of different types of field devices, map these devices into the OPC UA address space, establish corresponding device models and device relationship models, and realize the identification and management of field devices. At the same time, in order to enable the OPC UA client Interact with the server and apply the OPC UA transaction management mechanism, so that the OPC UA server can provide services such as monitoring, reading and writing, and querying for the client. The gist of the present invention is to use the OPC UA protocol to realize a device interface that supports multiple wireless communication protocol standards technology, and has low power consumption and easy-to-extend service adapter hardware as the carrier, so that you don't need to care about the underlying protocol and implementation when performing automatic control.

Description

一种OPC UA数据服务网关装置及其实现方法An OPC UA data service gateway device and its implementation method

技术领域 technical field

本发明涉及一种OPCUA数据服务网关,具体涉及一种OPCUA数据服务网关装置及其实现方法,用于根据标准协议OPCUA设计嵌入式服务适配器。 The invention relates to an OPCUA data service gateway, in particular to an OPCUA data service gateway device and an implementation method thereof, which are used to design an embedded service adapter according to the standard protocol OPCUA.

背景技术 Background technique

随着当今工业的快速发展,生产效率需求的不断提升,以及控制技术、信息技术和网络技术的快速发展和融合,不同工业领域对数据采集和远距离传输的需求也是越来越多。由于工业设备的生产商众多,不同厂商生产的应用在不同工业场合上的设备产生的数据格式和类型也有很大不同。现有的数据网关大多通过RS485/CAN/ModBus等总线技术完成数据采集,只支持单一类型的采集终端,多类型的计量装置兼容性差甚至不能兼容;现有的数据采集网关由于在硬件结构上采用时钟频率小于100MHz的微处理器,所能支持的总线接口较少,因此造成单网关支持的计量终端设备少,无法满足使用的需求。综上所述,数据网关在满足基本采集数据功能的基础上,应添加更丰富的的功能和设计来进行不断完善。 With the rapid development of today's industry, the continuous improvement of production efficiency requirements, and the rapid development and integration of control technology, information technology and network technology, the demand for data collection and long-distance transmission in different industrial fields is also increasing. Due to the large number of manufacturers of industrial equipment, the data formats and types generated by the equipment produced by different manufacturers and applied in different industrial occasions are also very different. Most of the existing data gateways complete data acquisition through bus technologies such as RS485/CAN/ModBus, and only support a single type of acquisition terminal, and the compatibility of multiple types of metering devices is poor or even incompatible; A microprocessor with a clock frequency of less than 100MHz can support fewer bus interfaces, so the number of metering terminal devices supported by a single gateway cannot meet the needs of use. To sum up, on the basis of satisfying the basic data collection functions, the data gateway should add more functions and designs for continuous improvement.

OPCUA是目前已经使用的OPC工业标准的补充,提供更多重要特性,包括平台独立性,扩展性,高可靠性和连接互联网的能力。OPCUA不再依靠DCOM,而是基于面向服务的架构(SOA),OPCUA的使用更简便、灵活,实现原始数据和预处理的信息从制造层级到生产计划或ERP层级的传输。现在,OPCUA已经成为独立于微软,UNIX或其他的操作系统企业层和嵌入式自动组建之间的桥梁。 OPCUA is a supplement to the already used OPC industry standard, providing more important features, including platform independence, scalability, high reliability and the ability to connect to the Internet. OPCUA no longer relies on DCOM, but is based on a service-oriented architecture (SOA). OPCUA is easier and more flexible to use, and realizes the transmission of raw data and preprocessed information from the manufacturing level to the production planning or ERP level. Now, OPCUA has become a bridge between the enterprise layer and embedded automatic components independent of Microsoft, UNIX or other operating systems.

现有技术中,根据标准协议OPCUA设计的服务适配器采用上位机来实现,使用灵活性较差,不易与现场设备集成,且能源消耗量大。 In the prior art, the service adapter designed according to the standard protocol OPCUA is implemented by a host computer, which has poor flexibility in use, is difficult to integrate with field devices, and consumes a lot of energy.

上位机中的OPCUA服务器为客户端提供的对象和相关信息都是与服务器的地址空间有关的,提供一个一致的、完整的地址空间和服务模型。这就允许一个单一的OPCUA服务器把数据、报警与事件和历史信息统一到它的地址空间里,并且可以用一套统一的服务为它们向外提供接口,这些服务也包括一个统一的安全模型。OPCUA服务器将各自独立的地址空间集成到一个唯一的地址空间中,客户端访问实时数据、历史数据等都是访问的一个集成的地址空间,同时实现数据存取、历史数据存取、控制命令、复杂数据的交互通信。 The objects and related information provided by the OPCUA server in the host computer to the client are related to the address space of the server, providing a consistent and complete address space and service model. This allows a single OPCUA server to unify data, alarms and events, and historical information into its address space, and provide interfaces for them with a set of unified services, which also include a unified security model. The OPCUA server integrates independent address spaces into a unique address space. The client accesses real-time data, historical data, etc. are all accessed in an integrated address space, and at the same time realizes data access, historical data access, control commands, Interactive communication of complex data.

上位机为OPCUA服务器提供了较大的存储空间,上位机的主频也为OPCUA服务器提供了更高的处理速度,且上位机具备的系统平台使开发人员的工作量大大降低。但是,由于上位机无法与设备集成,造成了其无法实时的处理现场设备信息数据。而且其编译过程也是经过了不同层次的进化,而嵌入式硬件环境使得服务器通过高速的C编译直接与底层现场设备交互,并且其实现的成本相对于上位机来说也是非常低,比较适合工业化场合的大批量成产,全面提高产线的生产效率。 The upper computer provides a large storage space for the OPCUA server, and the main frequency of the upper computer also provides a higher processing speed for the OPCUA server, and the system platform of the upper computer greatly reduces the workload of developers. However, since the upper computer cannot be integrated with the equipment, it cannot process the field equipment information data in real time. Moreover, the compilation process has undergone different levels of evolution, and the embedded hardware environment allows the server to directly interact with the underlying field devices through high-speed C compilation, and the cost of its implementation is also very low compared to the upper computer, which is more suitable for industrial occasions The large-scale production can improve the production efficiency of the production line in an all-round way.

针对现场设备实时数据处理的需要,采用嵌入式的方式实现OPCUA服务适配器具有较大的优势。 For the needs of real-time data processing of field devices, it has great advantages to realize the OPCUA service adapter in an embedded way.

发明内容 Contents of the invention

针对现有技术中存在的上述不足之处,本发明要解决的技术问题是克服现有网关的缺陷,提供一种OPCUA数据服务网关装置及其实现方法,不仅能够将工业现场的不同格式和类型数据进行实时采集和传输,还能将数据封装成OPCUA信息模型,并通过以太网实时传递给上位机OPCUA客户端,从而对数据进行存储、访问和分析,进而达到对工业现场进行实时监测的目的;采用嵌入式OPCUA技术实现,对外提供一种不依赖于底层通信协议的数据采集技术,并向用户提供WebService服务,实现不同类型的OPCUA客户端都可以访问服务器,相对于传统的OPC,具有更高的扩展性和灵活性 Aiming at the above-mentioned deficiencies in the prior art, the technical problem to be solved in the present invention is to overcome the defects of existing gateways, provide an OPCUA data service gateway device and its implementation method, which can not only integrate different formats and types of industrial sites The data is collected and transmitted in real time, and the data can also be encapsulated into an OPCUA information model, and transmitted to the upper computer OPCUA client through Ethernet in real time, so as to store, access and analyze the data, and then achieve the purpose of real-time monitoring of the industrial site ; Implemented with embedded OPCUA technology, it provides a data acquisition technology that does not depend on the underlying communication protocol, and provides WebService services to users, so that different types of OPCUA clients can access the server. Compared with traditional OPC, it has more High scalability and flexibility

本发明为实现上述目的所采用的技术方案是:一种OPCUA数据服务网关装置,包括: The technical scheme that the present invention adopts for realizing the above object is: a kind of OPCUA data service gateway device, comprises:

串口转网络服务器单元,一端与主控单元连接,另一端用于连接现场设备,用于实现主控单元串口数据和以太网数据的双向转换,进而实现现场设备和主控单元之间的数据传输; Serial port to network server unit, one end is connected to the main control unit, and the other end is used to connect to the field device, which is used to realize the two-way conversion between the serial port data and Ethernet data of the main control unit, and then realize the data transmission between the field device and the main control unit ;

以太网接口单元,与以太网控制单元以及上位机连接,用于建立主控单元以及上位机之间的通信连接,为二者之间的数据传输提供通道; The Ethernet interface unit is connected with the Ethernet control unit and the upper computer, and is used to establish a communication connection between the main control unit and the upper computer, and provides a channel for data transmission between the two;

以太网控制单元,与以太网接口单元以及主控单元连接,受主控单元控制,用于控制以太网接口的工作以及主控单元与上位机之间的数据传输; The Ethernet control unit is connected with the Ethernet interface unit and the main control unit, controlled by the main control unit, and used to control the work of the Ethernet interface and the data transmission between the main control unit and the upper computer;

外扩SRAM存储单元,与主控单元连接,用于存储OPCUASDK,并为采集到的数据提供存储空间; The externally expanded SRAM storage unit is connected with the main control unit to store OPCUASDK and provide storage space for the collected data;

主控单元,集成在现场设备的通信模块中,用于控制串口转网络服务器单元、以太网控制单元、外扩SRAM存储单元、控制按键和指示灯的工作,其内部的SRAM和FLASH作为一级缓存以及闪存,用于为程序的运行提供支持; The main control unit, integrated in the communication module of the field device, is used to control the work of the serial port to network server unit, Ethernet control unit, external SRAM storage unit, control buttons and indicator lights, and its internal SRAM and FLASH are used as the first level Cache and flash memory, used to provide support for the operation of the program;

控制按键,与主控单元连接,用于在待机状态下唤醒网关或内部程序遇到问题时复位网关; Control button, connected with the main control unit, used to wake up the gateway in standby mode or reset the gateway when the internal program encounters problems;

指示灯单元,与主控单元连接,用于指示网关的工作状态; The indicator light unit is connected with the main control unit and is used to indicate the working state of the gateway;

供电单元,用于将220V交流电压转换成以上所有单元所需的3.3V直流工作电压。 The power supply unit is used to convert the 220V AC voltage into the 3.3V DC working voltage required by all the above units.

所述串口转网络服务器单元包括TCP/IP串口协议转换模块及其外围电路以及以太网接口。 The serial port-to-network server unit includes a TCP/IP serial port protocol conversion module, its peripheral circuits, and an Ethernet interface.

所述以太网控制单元由以太网PHY控制器芯片及其外围电路组成。 The Ethernet control unit is composed of an Ethernet PHY controller chip and its peripheral circuits.

所述主控单元由STM32F407系列的MCU芯片及其外围电路组成。 The main control unit is composed of STM32F407 series MCU chip and its peripheral circuits.

所述供电单元包括电源接头、降压开关电源模块、滤波电路、电路保护、线性稳压器,所述电源接头位于电路板的边缘处。 The power supply unit includes a power connector, a step-down switching power supply module, a filter circuit, a circuit protection, and a linear voltage regulator, and the power connector is located at the edge of the circuit board.

一种OPCUA数据服务网关装置的实现方法,包括以下步骤: A method for realizing an OPCUA data service gateway device, comprising the following steps:

通过主控单元设置其连接的现场设备的节点名,并描述每个现场设备的静态属性和地址ID; Set the node name of the connected field device through the main control unit, and describe the static attribute and address ID of each field device;

当上位机OPCUA客户端发起监听服务时,主控单元通过串口/以太网获取现场设备的动态属性; When the host computer OPCUA client initiates the monitoring service, the main control unit obtains the dynamic attributes of the field device through the serial port/Ethernet;

串口/以太网将获取到的动态属性输出给OPCUA服务器相对应的节点; The serial port/Ethernet outputs the obtained dynamic attributes to the corresponding node of the OPCUA server;

OPCUA客户端调用OPCUASDK内部的读服务,获取到OPCUA服务器中相应节点的属性。 The OPCUA client calls the read service inside the OPCUASDK to obtain the attributes of the corresponding nodes in the OPCUA server.

一种OPCUA数据服务网关装置的实现方法,包括以下步骤: A method for realizing an OPCUA data service gateway device, comprising the following steps:

通过主控单元设置其连接的现场设备的节点名,并描述每个现场设备的静态属性和地址ID; Set the node name of the connected field device through the main control unit, and describe the static attribute and address ID of each field device;

主控单元通过串口/以太网将获取到的动态属性输出给OPCUA服务器的缓存中,等待OPCUA客户端发起服务; The main control unit outputs the obtained dynamic attributes to the cache of the OPCUA server through the serial port/Ethernet, and waits for the OPCUA client to initiate the service;

当上位机OPCUA客户端发起监听服务时,主控单元将缓存中数据赋给OPCUA服务器相对应的节点的属性; When the host computer OPCUA client initiates the monitoring service, the main control unit assigns the data in the cache to the attributes of the corresponding node of the OPCUA server;

OPCUA客户端调用OPCUASDK内部的读服务,获取到OPCUA服务器中相应节点的属性。 The OPCUA client calls the read service inside the OPCUASDK to obtain the attributes of the corresponding nodes in the OPCUA server.

还包括: Also includes:

当现场设备的属性值超过OPCUA服务器设定的阈值,停止OPCUASDK内部的读服务,将该属性值通过OPCUASDK内部的报警机制传输到OPCUA客户端中。 When the attribute value of the field device exceeds the threshold set by the OPCUA server, stop the reading service inside OPCUASDK, and transmit the attribute value to the OPCUA client through the alarm mechanism inside OPCUASDK.

所述OPCUA客户端获取到的动态数据插入到预先配置的数据库中,用于现场设备数据的历史信息查询。 The dynamic data obtained by the OPCUA client is inserted into a pre-configured database for historical information query of field device data.

还包括:所述OPCUASDK产生OPCUA服务器唯一的序列号,并提供给OPCUA客户端,用于标识OPCUA服务器的唯一性。 It also includes: the OPCUASDK generates the unique serial number of the OPCUA server and provides it to the OPCUA client to identify the uniqueness of the OPCUA server.

本发明具有以下优点及有益效果: The present invention has the following advantages and beneficial effects:

1.采用基于WIA-PA协议的无线通信装置来进行数据的接收与采集,适用于复杂工业环境,它在时间上、频率上和空间上的综合灵活性,使这个相对简单而又很有效的协议具有嵌入式的自组织和自愈能力,大大降低了安装的复杂性,确保了无线网络具有长期而且可预期的性能;可实现点对点、一点对多点、多点对多点之间的设备间数据的透明传输;可组成星型、树型和蜂窝型网状网络结构,组网方式非常灵活; 1. The wireless communication device based on the WIA-PA protocol is used for data reception and collection, which is suitable for complex industrial environments. Its comprehensive flexibility in time, frequency and space makes this relatively simple and effective The protocol has embedded self-organization and self-healing capabilities, which greatly reduces the complexity of installation and ensures long-term and predictable performance of the wireless network; it can realize point-to-point, point-to-multipoint, and multipoint-to-multipoint devices Transparent transmission of data between them; it can form a star, tree and cellular mesh network structure, and the networking method is very flexible;

2.能够真正实现多类型数据的兼容。网关内置OPCUA服务器,能够将采集到的不同节点的不同类型的数据封装成统一的OPCUA信息模型,并通过以太网实时发送到上位机存储并由OPCUA客户端来解析模型,分析数据,实现快速的数据采集-传输-封装-传输-存储-解析的过程; 2. It can truly realize the compatibility of multi-type data. The gateway has a built-in OPCUA server, which can encapsulate different types of data collected from different nodes into a unified OPCUA information model, and send it to the upper computer for storage through Ethernet in real time, and the OPCUA client will analyze the model and analyze the data to achieve fast The process of data collection-transmission-encapsulation-transmission-storage-analysis;

3.能够以可以设定的频率采集一组大小为KB级别的数据,数据即时通过以太网传送到上位机储存,因此后续的数据可以随时覆盖之前的数据,这种机制只需要在网关中留出一块存储数据的空间作为缓存,而无需担心数据存储空间的不足。 3. A group of KB-level data can be collected at a frequency that can be set. The data is immediately transmitted to the host computer for storage through Ethernet, so subsequent data can overwrite the previous data at any time. This mechanism only needs to be stored in the gateway. Create a space for storing data as a cache, without worrying about insufficient data storage space.

4.本发明可实现与多种现场总线设备通信的功能,其中包括Profibus设备,Modbus总线设备、Can总线设备、HART总线设备。 4. The present invention can realize the function of communicating with various field bus devices, including Profibus devices, Modbus bus devices, Can bus devices, and HART bus devices.

5.本发明可应用于大部分的数据通信环境中,并采用异构总线模式,通过OPCUA地址空间对现场设备进行分层标识,建立设备之间的层次关系模型,并利用数据模型对数据进行分析处理。 5. The present invention can be applied to most of the data communication environments, and adopts the heterogeneous bus mode to carry out hierarchical identification on the field devices through the OPCUA address space, establish a hierarchical relationship model between the devices, and use the data model to carry out data processing Analytical processing.

6.本发明还可通过以太网连接多个主机设备,向主机提供OPCUA服务,与此同时可以通过Modbus总线进行周期性的数据采集工作。 6. The present invention can also connect multiple host devices through Ethernet, provide OPCUA service to the host, and at the same time, perform periodic data collection work through the Modbus bus.

7.本发明通过嵌入式OPCUA技术对现场设备建立关系模型,并对外提供统一的接口数据模型。 7. The present invention establishes a relational model for field devices through embedded OPCUA technology, and provides a unified interface data model externally.

附图说明 Description of drawings

图1是本发明实施例的组成框图; Fig. 1 is a block diagram of an embodiment of the present invention;

图2是通信接口转换模块的组成框图; Fig. 2 is the composition block diagram of communication interface conversion module;

图3是供电单元的组成框图; Figure 3 is a block diagram of the power supply unit;

图4是本发明实施例的工作原理图; Fig. 4 is the working principle diagram of the embodiment of the present invention;

图5是本发明提供的软件示意图; Fig. 5 is a schematic diagram of software provided by the present invention;

图6是本发明提供的应用示意图。 Fig. 6 is a schematic diagram of the application provided by the present invention.

具体实施方式 detailed description

下面结合附图及实施例对本发明做进一步的详细说明。 The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.

如图1所示,本发明实例由WIA-PA无线收发器单元、WIA-PA网络管理器单元、以太网接口单元、以太网控制单元、外扩SRAM存储单元、主控单元、串口转网络服务器单元、控制按键、指示灯单元、供电单元十个单元组成,这十个单元根据功能又分为数据采集单元以及数据处理单元两部分,这两部分之间通过以太网接口以及网线连接,其中数据采集单元包括WIA-PA无线收发器单元和WIA-PA网络管理器单元,由以太网接口供电;数据处理单元中主控单元与以太网控制单元、外扩SRAM存储单元、串口转网络服务器单元、控制按键、指示灯单元呈星形连接;所述供电单元为数据处理单元中其他所有单元供电。 As shown in Figure 1, the example of the present invention consists of a WIA-PA wireless transceiver unit, a WIA-PA network manager unit, an Ethernet interface unit, an Ethernet control unit, an externally expanded SRAM storage unit, a main control unit, and a serial port to a network server Unit, control button, indicator light unit, and power supply unit are composed of ten units. These ten units are divided into two parts: data acquisition unit and data processing unit according to their functions. These two parts are connected by Ethernet interface and network cable. The acquisition unit includes a WIA-PA wireless transceiver unit and a WIA-PA network manager unit, which are powered by the Ethernet interface; the main control unit and the Ethernet control unit in the data processing unit, the externally expanded SRAM storage unit, the serial port to the network server unit, The control button and indicator light units are connected in a star shape; the power supply unit supplies power to all other units in the data processing unit.

其中,所述串口转网络服务器单元结构框图如图2所示。所述串口转网络服务器单元包括引脚、TCP/IP串口协议转换模块及其外围电路以及以太网接口组成;所述串口转网络服务器单元通过引脚与主控单元以及供电单元连接,所述TCP/IP串口协议转换模块能够实现单片机串口数据和以太网数据的转换,实现WIA-PA网络管理器单元和单片机之间的透明数据传输; Wherein, the structural block diagram of the serial port-to-network server unit is shown in FIG. 2 . The serial port-to-network server unit includes pins, a TCP/IP serial port protocol conversion module and its peripheral circuit, and an Ethernet interface; the serial port-to-network server unit is connected to the main control unit and the power supply unit through pins, and the TCP The /IP serial port protocol conversion module can realize the conversion of single-chip serial port data and Ethernet data, and realize transparent data transmission between the WIA-PA network manager unit and the single-chip computer;

所述主控单元由ST公司生产的STM32F407系列微控制器及其外围电路组成; Described main control unit is made up of STM32F407 series microcontroller and its peripheral circuit that ST company produces;

所述外扩SRAM存储器单元由ISSI公司生产的IS61WV102416BLL芯片及其外围电路组成; The externally expanded SRAM memory unit is made up of an IS61WV102416BLL chip produced by ISSI and its peripheral circuits;

所述以太网控制单元由TI公司生产的DP83848CVV芯片及其外围电路组成; Described Ethernet control unit is made up of DP83848CVV chip and peripheral circuit thereof produced by TI company;

所述指示灯单元由贴片LED组成; The indicator light unit is composed of patch LEDs;

所述供电单元由电源接头以及一级降压单元和二级稳压单元组成,如图3所示,一级降压单元由金升阳公司生产的降压开关电源模块及其外围保护、滤波电路组成,220V交流电通过电源接头接入,经过防浪涌保护电路后作为降压开关电源模块的输入,防浪涌保护电路使本网关具有抗雷击和冲击的性能;降压开关电源模块输出5V直流电压,经过保护与滤波电路后作为二级稳压单元的输入;二级稳压单元由AS1117线性稳压器及其外围滤波、指示灯电路组成,线性稳压器将5V直流电压降为上述各单元所需工作电压3.3V,线性稳压器的输出再经过一层滤波电路后,供给各单元使用。在二级稳压单元的末端还接有指示灯电路,用来指示供电单元是否正常工作。 The power supply unit is composed of a power connector, a primary step-down unit and a secondary voltage stabilization unit. As shown in Figure 3, the primary step-down unit is composed of a step-down switching power supply module produced by Jinshengyang Company and its peripheral protection and filter circuits. , 220V AC is connected through the power connector, and after passing through the anti-surge protection circuit, it is used as the input of the step-down switching power supply module. The anti-surge protection circuit makes the gateway have the performance of anti-lightning and impact; the step-down switching power supply module outputs 5V DC voltage , after the protection and filtering circuit, it is used as the input of the secondary voltage stabilizing unit; the secondary voltage stabilizing unit is composed of AS1117 linear voltage regulator and its peripheral filter and indicator circuit. The linear voltage regulator reduces the 5V DC voltage to the above units The required operating voltage is 3.3V, and the output of the linear voltage regulator is supplied to each unit after passing through a layer of filter circuit. An indicator light circuit is also connected at the end of the secondary voltage stabilizing unit to indicate whether the power supply unit is working normally.

图4给出了本发明实施例的工作原理流程图,如图4所示,在工业现场将OPCUA数据服务网关硬件设备布置好,将其通上220V交流电,网关启动后,通过WIA-PA无线收发器单元访问工业现场布置的节点,并将收集到的数据实时转发给WIA-PA网络管理器单元;WIA-PA网络管理器单元内部有实时操作系统来采集数据并暂时存储,接着通过串口转网络服务器单元将数据传递给主控单元,主控单元将数据转移到外扩SRAM中存储;另外外扩SRAM存储单元也用来存储OPCUASDK;由于采集到的数据可能是不同格式和类型的,主控单元通过OPCUASDK将接收到的不同格式的数据封装成统一的OPCUA服务,即OPCUA的信息模型,然后通过以太网控制单元以及以太网接口经网线传输给上位机进行存储,上位机上的OPCUA客户端便可以通过通用服务集对信息模型进行访问、浏览和操作,用户进而可以分析数据,实时监测工业现场设备的运行情况,发现工业现场设备可能存在的问题,最终解决问题。 Fig. 4 shows the working principle flow chart of the embodiment of the present invention, as shown in Fig. 4, the hardware device of the OPCUA data service gateway is arranged at the industrial site, and it is connected to 220V alternating current. The transceiver unit accesses the nodes arranged on the industrial site, and forwards the collected data to the WIA-PA network manager unit in real time; the WIA-PA network manager unit has a real-time operating system to collect data and temporarily store it, and then transmit it through the serial port. The network server unit transmits the data to the main control unit, and the main control unit transfers the data to the externally expanded SRAM for storage; in addition, the externally expanded SRAM storage unit is also used to store OPCUASDK; since the collected data may be in different formats and types, the main control unit The control unit encapsulates the received data in different formats into a unified OPCUA service through OPCUASDK, that is, the information model of OPCUA, and then transmits it to the host computer through the Ethernet control unit and Ethernet interface for storage, and the OPCUA client on the host computer The information model can be accessed, browsed and operated through the general service set, and the user can then analyze the data, monitor the operation of the industrial field equipment in real time, discover the possible problems of the industrial field equipment, and finally solve the problem.

本发明将基于现场的设备信息统一映射到构建的统一地址空间和服务集中,并通过WebService服务为用户提供统一的访问接口。 The invention uniformly maps field-based equipment information to the constructed unified address space and service concentration, and provides users with a unified access interface through the WebService service.

本发明通过嵌入式OPCUA技术对现场设备建立关系模型,并对外提供统一的接口数据模型,包括设备对象,属性集和属性。设备对象就是物理设备在程序中的映射;属性集包括通用属性集、动态属性集和静态属性集。通用属性集包括设备类型、设备生产厂商、设备作用等。静态属性集包括设备额定电压、额定电流、额定功率等。动态属性集包括设备状态、设备目前的电压、电流、功率,设备运行时间等。 The invention establishes a relational model for field devices through embedded OPCUA technology, and provides a unified interface data model to the outside, including device objects, attribute sets and attributes. The device object is the mapping of the physical device in the program; the attribute set includes common attribute set, dynamic attribute set and static attribute set. The general attribute set includes device type, device manufacturer, device function, etc. The static attribute set includes device rated voltage, rated current, rated power, etc. The dynamic attribute set includes device status, device current voltage, current, power, device running time, etc.

参照图5,本发明的软件具体实施方式采用以下具体方案:一种基于嵌入式OPCUA技术的服务适配器,其包括:1、OPCUASDK,2、FreeRTOS嵌入式实时操作系统,3、STM32F407外设驱动,4、以太网硬件驱动模块,5、OPCUA服务器。所述的OPCUASDK为OPCUA服务器提供了:开发所用的库函数,TCP网络连接的基本配置,地址空间的基本配置;所述的FreeRTOS嵌入式实时操作系统可支持STM32F407芯片的CortexM4架构;所述的STM32F407外设驱动包含定时器驱动,Modbus驱动,GPIO驱动,FSMC驱动,为OPCUA服务器提供了所需的外设驱动函数;所述的以太网硬件驱动模块提供了对以太网通信所需的外设驱动函数,实现了OPCUA服务器的网络通信功能,使得OPCUA客户端能够通过TCP访问到OPCUA服务器;所述的OPCUA服务器为OPCUA客户端提供了标准的OPCUA访问接口以及设备数据模型。 With reference to Fig. 5, the software specific embodiment of the present invention adopts following specific scheme: a kind of service adapter based on embedded OPCUA technology, it comprises: 1, OPCUASDK, 2, FreeRTOS embedded real-time operating system, 3, STM32F407 peripheral hardware drive, 4. Ethernet hardware driver module, 5. OPCUA server. Described OPCUASDK provides for OPCUA server: the library function used for development, the basic configuration of TCP network connection, the basic configuration of address space; The described FreeRTOS embedded real-time operating system can support the CortexM4 framework of STM32F407 chip; Described STM32F407 The peripheral driver includes timer driver, Modbus driver, GPIO driver, and FSMC driver, which provide the required peripheral driver functions for the OPCUA server; the Ethernet hardware driver module provides the required peripheral driver for Ethernet communication The function realizes the network communication function of the OPCUA server, so that the OPCUA client can access the OPCUA server through TCP; the OPCUA server provides a standard OPCUA access interface and a device data model for the OPCUA client.

参照图6,本发明可以直接嵌入到不同种类的设备中,并直接通过以太网与上位机中的OPCUA客户端进行通信,在客户端可以为用户展示现场设备之间的关系以及每个设备的数据模型。 Referring to Figure 6, the present invention can be directly embedded in different types of devices, and communicate directly with the OPCUA client in the host computer through Ethernet, and the client can display the relationship between field devices and the status of each device for the user. data model.

Claims (10)

1. an OPCUA data, services gateway apparatus, it is characterised in that including:
Serial ports turns webserver unit, and one end is connected with main control unit, and the other end is used for field equipment connecting, for realizing the bi-directional conversion of main control unit serial data and Ethernet data, and then realizes the data transmission between field apparatus and main control unit;
Ethernet interface unit, is connected with Ethernet control unit and host computer, for setting up the communication connection between main control unit and host computer, transmits for data therebetween and provides passage;
Ethernet control unit, is connected with Ethernet interface unit and main control unit, is controlled by main control unit, is used for the data transmission controlling between work and main control unit and the host computer of Ethernet interface;
Extend out SRAM memory cell, be connected with main control unit, be used for storing OPCUASDK, and the data for collecting provide memory space;
Main control unit, it is integrated in the communication module of field apparatus, turn webserver unit, Ethernet control unit for controlling serial ports, extend out SRAM memory cell, control the work of button and display lamp, its internal SRAM and FLASH, as level cache and flash memory, supports for providing for the operation of program;
Control button, is connected with main control unit, be used for waking gateway up in the standby state or reset gateway when internal processes encounters problems;
Indicator unit, is connected with main control unit, for indicating the duty of gateway;
Power supply unit, for converting the 3.3V direct-current working volts needed for all above unit to by 220V alternating voltage.
2. a kind of OPCUA data, services gateway apparatus according to claim 1, it is characterised in that described serial ports turns webserver unit and includes TCP/IP serial port protocol modular converter and peripheral circuit thereof and Ethernet interface.
3. a kind of OPCUA data, services gateway apparatus according to claim 1, it is characterised in that described Ethernet control unit is made up of ethernet PHY controller chip and peripheral circuit thereof.
4. a kind of OPCUA data, services gateway apparatus according to claim 1, it is characterised in that described main control unit is made up of MCU chip and the peripheral circuit thereof of STM32F407 series.
5. a kind of OPCUA data, services gateway apparatus according to claim 1; it is characterized in that; said supply unit includes power connection, step-down switching power module, filter circuit, circuit protection, linear voltage regulator, and described power connection is positioned at the edge of circuit board.
6. an OPCUA data, services gateway apparatus realize method, it is characterised in that comprise the following steps:
The node name of the field apparatus of its connection is set by main control unit, and describes static attribute and the address ID of each field apparatus;
When host computer OPCUA client initiates monitoring service, main control unit obtains the dynamic attribute of field apparatus by serial ports/Ethernet;
The dynamic attribute got is exported the node corresponding to OPCUA server by serial ports/Ethernet;
Reading service within OPCUA client call OPCUASDK, gets the attribute of respective nodes in OPCUA server.
7. an OPCUA data, services gateway apparatus realize method, it is characterised in that comprise the following steps:
The node name of the field apparatus of its connection is set by main control unit, and describes static attribute and the address ID of each field apparatus;
The dynamic attribute got is exported in the buffer memory to OPCUA server by main control unit by serial ports/Ethernet, waits that OPCUA client initiates service;
When host computer OPCUA client initiates monitoring service, data in buffer memory are assigned to the attribute of the corresponding node of OPCUA server by main control unit;
Reading service within OPCUA client call OPCUASDK, gets the attribute of respective nodes in OPCUA server.
8. the OPCUA data, services gateway apparatus according to claim 6 or 7 realize method, it is characterised in that also include:
When the property value of field apparatus is more than the threshold value of OPCUA server settings, stops the reading service within OPCUASDK, this property value is transferred in OPCUA client by the alarm mechanism within OPCUASDK.
9. the OPCUA data, services gateway apparatus according to claim 6 or 7 realize method, it is characterised in that the dynamic data that described OPCUA client gets is inserted in the data base being pre-configured with, and the historical information for field equipment data is inquired about.
10. the OPCUA data, services gateway apparatus according to claim 6 or 7 realize method, it is characterized in that, also include: described OPCUASDK produces the unique serial number of OPCUA server, and is supplied to OPCUA client, for identifying the uniqueness of OPCUA server.
CN201410835886.1A 2014-12-29 2014-12-29 OPC UA data service gateway device and implementation method thereof Pending CN105812253A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410835886.1A CN105812253A (en) 2014-12-29 2014-12-29 OPC UA data service gateway device and implementation method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410835886.1A CN105812253A (en) 2014-12-29 2014-12-29 OPC UA data service gateway device and implementation method thereof

Publications (1)

Publication Number Publication Date
CN105812253A true CN105812253A (en) 2016-07-27

Family

ID=56980154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410835886.1A Pending CN105812253A (en) 2014-12-29 2014-12-29 OPC UA data service gateway device and implementation method thereof

Country Status (1)

Country Link
CN (1) CN105812253A (en)

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106444631A (en) * 2016-11-29 2017-02-22 重庆大学 Body-based intelligent machine tool operating state information acquisition platform and method
CN107241392A (en) * 2017-05-22 2017-10-10 北京汉依科技有限公司 A kind of special monitoring system of frequency converter based on 4G mobile Internets
CN107659662A (en) * 2017-10-26 2018-02-02 北京科技大学 A kind of serial data mask method of things-internet gateway
CN107888410A (en) * 2017-10-30 2018-04-06 苏州逸美德科技有限公司 A kind of configurable workshop appliance monitoring system implementation method
CN108040005A (en) * 2017-12-05 2018-05-15 大连理工大学 An intelligent monitoring gateway for CNC machine tools based on the Internet of Things
CN108494763A (en) * 2018-03-16 2018-09-04 沈阳中科博微科技股份有限公司 A kind of OPC-UA data communication processing method
CN108833269A (en) * 2018-06-26 2018-11-16 中国兵器装备集团自动化研究所 A kind of intelligent things gateway towards industry spot
CN109194528A (en) * 2018-10-30 2019-01-11 浙江理工大学 A kind of Knitting Machinery data gateway and control method based on OPC UA
CN109743249A (en) * 2018-10-25 2019-05-10 比亚迪股份有限公司 Forming method, integrated gateway and the integrated system of the integrated gateway of passenger information system
CN109756702A (en) * 2018-10-12 2019-05-14 比亚迪股份有限公司 Integrated approach, gateway and the system of closed-circuit television system
CN109765866A (en) * 2019-01-25 2019-05-17 北京交通大学 An industrial network system based on OPC UA and its data processing method
CN110442753A (en) * 2019-07-17 2019-11-12 北京飞利信电子技术有限公司 A kind of chart database auto-creating method and device based on OPC UA
CN110800269A (en) * 2017-07-05 2020-02-14 西门子交通有限责任公司 Apparatus and method for unidirectionally transmitting data to a remote application server without reaction
CN111049605A (en) * 2018-10-12 2020-04-21 比亚迪股份有限公司 Communication of broadcasting system and method and apparatus for communicating with the same
CN111567010A (en) * 2017-12-22 2020-08-21 普络西思Opc有限公司 Method, system and computer program product for managing OPC UA server capacity
CN111600923A (en) * 2020-03-30 2020-08-28 浙江工业大学 An OPC UA protocol server system based on .NET Core
CN111970212A (en) * 2020-08-27 2020-11-20 重庆邮电大学 Deterministic communication system based on TSN (time delay network) and OPC (optical proximity correction) UA (user agent architecture)
CN112666875A (en) * 2020-12-31 2021-04-16 上海自动化仪表有限公司 Intelligent electric execution system based on OPCUA
CN113032709A (en) * 2021-04-12 2021-06-25 杭州和利时自动化有限公司 Information model setting method, device, equipment and storage medium
CN113342547A (en) * 2021-06-04 2021-09-03 瀚云科技有限公司 Remote service calling method and device, electronic equipment and readable storage medium
CN114785779A (en) * 2022-03-09 2022-07-22 华南理工大学 OPC UA-based multi-mechanical equipment interconnection and intercommunication implementation system
CN115213880A (en) * 2021-04-14 2022-10-21 中国科学院沈阳自动化研究所 A method for constructing and analyzing industrial robot interoperability information model

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120089239A1 (en) * 2010-10-12 2012-04-12 Abb Inc. Intelligent interface for a distributed control system
CN103312794A (en) * 2013-05-28 2013-09-18 西南大学 Field equipment integration device based on mobile terminal
CN203734702U (en) * 2013-09-06 2014-07-23 机械工业仪器仪表综合技术经济研究所 General data collection module based on OPC UA
CN104007738A (en) * 2014-06-06 2014-08-27 机械工业仪器仪表综合技术经济研究所 Public building energy efficiency data collecting and processing system based on OPC UA

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120089239A1 (en) * 2010-10-12 2012-04-12 Abb Inc. Intelligent interface for a distributed control system
CN103312794A (en) * 2013-05-28 2013-09-18 西南大学 Field equipment integration device based on mobile terminal
CN203734702U (en) * 2013-09-06 2014-07-23 机械工业仪器仪表综合技术经济研究所 General data collection module based on OPC UA
CN104007738A (en) * 2014-06-06 2014-08-27 机械工业仪器仪表综合技术经济研究所 Public building energy efficiency data collecting and processing system based on OPC UA

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
徐继宁等: "《基于OPC技术的智能楼宇控制系统的研究与设计》", 《冶金自动化》 *
王侃侃等: "《基于OPC UA技术的智能楼宇控制系统》", 《仪器仪表标准化与计量》 *

Cited By (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106444631A (en) * 2016-11-29 2017-02-22 重庆大学 Body-based intelligent machine tool operating state information acquisition platform and method
CN106444631B (en) * 2016-11-29 2019-02-19 重庆大学 Ontology-based intelligent machine tool running state information collection platform and method
CN107241392A (en) * 2017-05-22 2017-10-10 北京汉依科技有限公司 A kind of special monitoring system of frequency converter based on 4G mobile Internets
US11368437B2 (en) 2017-07-05 2022-06-21 Siemens Mobility GmbH Method and apparatus for repercussion-free unidirectional transfer of data to a remote application server
CN110800269A (en) * 2017-07-05 2020-02-14 西门子交通有限责任公司 Apparatus and method for unidirectionally transmitting data to a remote application server without reaction
CN107659662A (en) * 2017-10-26 2018-02-02 北京科技大学 A kind of serial data mask method of things-internet gateway
CN107659662B (en) * 2017-10-26 2019-11-29 北京科技大学 A kind of serial data mask method of things-internet gateway
CN107888410A (en) * 2017-10-30 2018-04-06 苏州逸美德科技有限公司 A kind of configurable workshop appliance monitoring system implementation method
CN108040005B (en) * 2017-12-05 2020-07-14 大连理工大学 An intelligent monitoring gateway for CNC machine tools based on the Internet of Things
CN108040005A (en) * 2017-12-05 2018-05-15 大连理工大学 An intelligent monitoring gateway for CNC machine tools based on the Internet of Things
CN111567010A (en) * 2017-12-22 2020-08-21 普络西思Opc有限公司 Method, system and computer program product for managing OPC UA server capacity
CN108494763B (en) * 2018-03-16 2020-10-16 沈阳中科博微科技股份有限公司 OPC-UA data communication processing method
CN108494763A (en) * 2018-03-16 2018-09-04 沈阳中科博微科技股份有限公司 A kind of OPC-UA data communication processing method
CN108833269B (en) * 2018-06-26 2020-08-11 中国兵器装备集团自动化研究所 Intelligent Internet of things gateway for industrial field
CN108833269A (en) * 2018-06-26 2018-11-16 中国兵器装备集团自动化研究所 A kind of intelligent things gateway towards industry spot
CN109756702B (en) * 2018-10-12 2020-01-03 比亚迪股份有限公司 Integration method, gateway and system of closed circuit television system
CN109756702A (en) * 2018-10-12 2019-05-14 比亚迪股份有限公司 Integrated approach, gateway and the system of closed-circuit television system
CN111049605A (en) * 2018-10-12 2020-04-21 比亚迪股份有限公司 Communication of broadcasting system and method and apparatus for communicating with the same
CN109743249A (en) * 2018-10-25 2019-05-10 比亚迪股份有限公司 Forming method, integrated gateway and the integrated system of the integrated gateway of passenger information system
CN109194528A (en) * 2018-10-30 2019-01-11 浙江理工大学 A kind of Knitting Machinery data gateway and control method based on OPC UA
CN109765866A (en) * 2019-01-25 2019-05-17 北京交通大学 An industrial network system based on OPC UA and its data processing method
CN110442753A (en) * 2019-07-17 2019-11-12 北京飞利信电子技术有限公司 A kind of chart database auto-creating method and device based on OPC UA
CN111600923A (en) * 2020-03-30 2020-08-28 浙江工业大学 An OPC UA protocol server system based on .NET Core
CN111970212A (en) * 2020-08-27 2020-11-20 重庆邮电大学 Deterministic communication system based on TSN (time delay network) and OPC (optical proximity correction) UA (user agent architecture)
CN112666875A (en) * 2020-12-31 2021-04-16 上海自动化仪表有限公司 Intelligent electric execution system based on OPCUA
CN113032709A (en) * 2021-04-12 2021-06-25 杭州和利时自动化有限公司 Information model setting method, device, equipment and storage medium
CN115213880A (en) * 2021-04-14 2022-10-21 中国科学院沈阳自动化研究所 A method for constructing and analyzing industrial robot interoperability information model
CN113342547A (en) * 2021-06-04 2021-09-03 瀚云科技有限公司 Remote service calling method and device, electronic equipment and readable storage medium
CN113342547B (en) * 2021-06-04 2023-06-06 瀚云科技有限公司 Remote service calling method and device, electronic equipment and readable storage medium
CN114785779A (en) * 2022-03-09 2022-07-22 华南理工大学 OPC UA-based multi-mechanical equipment interconnection and intercommunication implementation system
CN114785779B (en) * 2022-03-09 2023-06-16 华南理工大学 OPC UA-based multi-mechanical equipment interconnection and intercommunication realization system

Similar Documents

Publication Publication Date Title
CN105812253A (en) OPC UA data service gateway device and implementation method thereof
CN103792928B (en) A kind of industrial field data acquisition analysis system based on Modbus
CN105068438B (en) Larger office building intelligent electrical appliance control system and method
CN104660682B (en) A kind of OPC data collection and monitoring intelligent terminal based on TD-LTE
CN206332688U (en) A kind of things-internet gateway
CN101309297A (en) Multi-type household control method based on multimedia wireless sensor network
CN103944982A (en) Data collecting and controlling device and method for heterogeneous sensor network
CN204598011U (en) A kind of OPC data acquisition and monitoring intelligent terminal based on TD-LTE
CN104483931A (en) Ship integral control system and control method
CN103560938A (en) Industrial Ethernet and HART bus protocol conversion board card
CN102781119A (en) Wireless ubiquitous network application terminal system and software component application process management method
CN103167635A (en) ZigBee wireless sensor network system and method for monitoring greenhouse environment
CN105681181A (en) Home gateway system suitable for smart home
CN204406757U (en) A kind of Internet of Things experimental box based on embedded system
Jiang et al. Design and implementation of smart-home monitoring system with the Internet of Things technology
CN105488985B (en) Low-voltage acquisition terminal supporting object-oriented communication protocol
CN105702009A (en) Intelligent meter reading gateway supporting multi-type sensor network accessing simultaneously
CN216057079U (en) IoT terminal and IoT system
CN207995122U (en) A kind of multi-protocols intelligent gateway based on narrowband Internet of Things
CN205596147U (en) WirelessHART adapter, network node and network
CN203563088U (en) Protocol conversion board of industrial Ethernet and HART bus
CN110098991B (en) A device that connects the EtherCAT bus system to the general IoT cloud platform
CN204928863U (en) CAN bus platform monitoring system
CN204129480U (en) Intelligent environment protection number adopts instrument
CN203849878U (en) A parking lot intelligent terminal device based on a KNX bus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160727

RJ01 Rejection of invention patent application after publication