[go: up one dir, main page]

CN104503390B - Method for achieving automatic recognition of main station through industrial Ethernet integrated slave station - Google Patents

Method for achieving automatic recognition of main station through industrial Ethernet integrated slave station Download PDF

Info

Publication number
CN104503390B
CN104503390B CN201410703498.8A CN201410703498A CN104503390B CN 104503390 B CN104503390 B CN 104503390B CN 201410703498 A CN201410703498 A CN 201410703498A CN 104503390 B CN104503390 B CN 104503390B
Authority
CN
China
Prior art keywords
slave station
packet
integrated
tcp
modbus
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.)
Expired - Fee Related
Application number
CN201410703498.8A
Other languages
Chinese (zh)
Other versions
CN104503390A (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.)
Tianjin University of Technology
Original Assignee
Tianjin University of Technology
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 Tianjin University of Technology filed Critical Tianjin University of Technology
Priority to CN201410703498.8A priority Critical patent/CN104503390B/en
Publication of CN104503390A publication Critical patent/CN104503390A/en
Application granted granted Critical
Publication of CN104503390B publication Critical patent/CN104503390B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • G05B19/4185Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by the network communication
    • G05B19/41855Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by the network communication by local area network [LAN], network structure

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

本发明公开了一种集成工业以太网从站自主识别主站的方法,应用在嵌入有Linux操作系统的集成从站上。该方法基于工业以太网主从站之间通信前,主站会向从站发送识别信息这一前提,采用在Linux操作系统下原始套接字编程的方法,抓取通信网络中主站发出的识别信息,并对抓取到的识别信息进行区分判断,从而确定主站的类型并加载相应的从站程序。通过该方法,可以实现工业以太网集成从站自主识别与之相连接的主站类型,并完成自动加载运行与之对应的从站程序。

The invention discloses a method for an integrated industrial Ethernet slave station to independently identify a master station, which is applied to an integrated slave station embedded with a Linux operating system. This method is based on the premise that the master station will send identification information to the slave station before the communication between the industrial Ethernet master and slave stations. Identify the information, and distinguish and judge the captured identification information, so as to determine the type of the master station and load the corresponding slave station program. Through this method, the industrial Ethernet integrated slave station can automatically identify the type of the master station connected to it, and complete the automatic loading and running of the corresponding slave station program.

Description

一种集成工业以太网从站自主识别主站的方法A method for autonomous identification of master station by integrated industrial Ethernet slave station

技术领域technical field

本发明属于工业控制领域,涉及工业控制现场,运行有嵌入式Linux操作系统的集成工业以太网从站,与不同种类工业以太网主站进行通信时,进行自主识别与之连接的主站种类,进行相应从站程序的选择运行。The invention belongs to the field of industrial control and relates to an industrial control site. An integrated industrial Ethernet slave station running an embedded Linux operating system can independently identify the type of the master station connected to it when communicating with different types of industrial Ethernet master stations. Select and run the corresponding slave station program.

背景技术Background technique

以太网技术向工业现场的推广,为生产效率的提高,产品的优化等等多方面都起到了极大的促进作用。目前世界上有多种工业以太网标准,种类繁多,各有优点,在某一生产过程中,往往需要几种工业以太网配合使用会产生更大的收益。所以,在工业控制现场比较流行使用集成工业以太网从站,但是,集成从站内对于从站程序的选择运行,一直采用传统的手动加载运行,即在上电前确定集成从站的性质,这给大规模的工业生产带来了很多不便。目前,急需一种方法,能够实现集成从站自主识别与之连接的主站类型,并自动运行与之对应的从站程序。The promotion of Ethernet technology to industrial sites has greatly promoted the improvement of production efficiency, product optimization and many other aspects. At present, there are many kinds of industrial Ethernet standards in the world, each of which has its own advantages. In a certain production process, it is often necessary to use several industrial Ethernet standards together to generate greater benefits. Therefore, it is more popular to use the integrated industrial Ethernet slave station in the industrial control field. However, the selection and operation of the slave station program in the integrated slave station has been using the traditional manual loading operation, that is, to determine the nature of the integrated slave station before powering on. Bring a lot of inconvenience to large-scale industrial production. At present, there is an urgent need for a method that can automatically identify the type of the master station connected to the integrated slave station, and automatically run the corresponding slave station program.

发明内容Contents of the invention

本发明的目的是为了解决现有技术上存在的上述问题,提供一种集成工业以太网从站能够识别主站类型并自主选择加载运行相应从站程序的方法。The purpose of the present invention is to solve the above-mentioned problems existing in the prior art, and provide a method in which an integrated industrial Ethernet slave station can identify the type of the master station and independently select, load and run the corresponding slave station program.

本发明提供的集成工业以太网从站自主识别主站的方法,应用在工业控制现场,运行有嵌入式Linux操作系统的集成工业以太网从站,以下简称集成从站;所述的集成从站集成了Modbus-TCP和POWERLINK从站程序;此方法通过分析判断来自通信网络中的主站识别信息,来确定与集成从站相连接的主站类型,从而选择加载运行对应的集成从站程序,实现了集成从站对主站类型的自主识别和集成从站程序的自动加载,摆脱了传统的手动加载的方法;The method for autonomously identifying the master station of the integrated industrial Ethernet slave station provided by the present invention is applied to the industrial control site, and the integrated industrial Ethernet slave station running an embedded Linux operating system is hereinafter referred to as the integrated slave station; the integrated slave station Integrates Modbus-TCP and POWERLINK slave station programs; this method determines the type of master station connected to the integrated slave station by analyzing and judging the master station identification information from the communication network, so as to select the corresponding integrated slave station program for loading and running, It realizes the automatic identification of the master station type by the integrated slave station and the automatic loading of the integrated slave station program, getting rid of the traditional manual loading method;

该方法具体的实现步骤如下:The specific implementation steps of this method are as follows:

第1步、抓取工业以太网通信网络中主站发送的识别数据包;Step 1, capture the identification data packet sent by the master station in the industrial Ethernet communication network;

第1.1步、启动集成从站中的Linux操作系统;Step 1.1, start the Linux operating system in the integrated slave station;

第1.2步、设置集成从站以太网芯片的工作模式为混杂模式,这样集成从站就不会只接受目的地址为它的数据包,而是全部经过它的数据包,方便下面获得主站发送来的识别信息数据包。Step 1.2: Set the working mode of the Ethernet chip of the integrated slave station to the promiscuous mode, so that the integrated slave station will not only accept the data packets with its destination address, but all the data packets passing through it, which is convenient for the following to get the master station to send The incoming identification information packet.

第1.3步、通过socket套接字函数创建一个原始套接字的文件描述符;Step 1.3, create a raw socket file descriptor through the socket socket function;

第1.4步、利用recv()函数来接受来自通信网络中的数据包,并将接收到的数据包赋值到一个字符型指针变量中,方便后续对其进行分析。Step 1.4, use the recv() function to receive data packets from the communication network, and assign the received data packets to a character pointer variable for subsequent analysis.

第2步、分析抓取到的通信网络中的数据包;Step 2, analyzing the data packets in the captured communication network;

第2.1步、将第1步中抓取到的数据包划分格式,因为所抓取的数据包赋值给某一变量时是没有划分格式的,数据包从左向右依次为以太网报文头、IP报文头、TCP报文头或者UDP报文头,在区分Modbus-TCP主站所发数据包和POWERLINK主站所发数据包时只需要知道以太网报文头即可。将抓取到的数据包强制转化为struct ether_header结构体,那么数据包的以太网报文头便被保留下来。Step 2.1: Divide the format of the data packet captured in the first step, because there is no division format when the captured data packet is assigned to a variable, and the data packet is the Ethernet header from left to right , IP packet header, TCP packet header or UDP packet header, you only need to know the Ethernet packet header when distinguishing the data packets sent by the Modbus-TCP master station and the data packets sent by the POWERLINK master station. Forcibly transform the captured data packet into a struct ether_header structure, then the Ethernet header of the data packet will be preserved.

第2.2步、判断struct ether_header结构体中的ether_type成员变量,如果变量的值为0x0806则可确定数据包来自Modbus-TCP主站,与集成从站相连的是Modbus-TCP主站,结束第2步,进入第3步;如果ether_type的值,不为0x0806,继续分析数据包。Step 2.2. Determine the ether_type member variable in the struct ether_header structure. If the value of the variable is 0x0806, it can be determined that the data packet comes from the Modbus-TCP master station, and the Modbus-TCP master station is connected to the integrated slave station. End step 2 , go to step 3; if the value of ether_type is not 0x0806, continue to analyze the data packet.

第2.3步、继续判断struct ether_header结构体中的ether_type成员变量,如果变量的值为0x88ab则可确定数据包来自POWERLINK主站,与集成从站相连的是POWERLINK主站,结束第2步,进入第3步;如果ether_type的值,不为0x88ab,继续分析数据包。Step 2.3. Continue to judge the ether_type member variable in the struct ether_header structure. If the value of the variable is 0x88ab, it can be determined that the data packet comes from the POWERLINK master station, and the POWERLINK master station is connected to the integrated slave station. End step 2 and enter step 2. Step 3; If the value of ether_type is not 0x88ab, continue to analyze the data packet.

第2.4步、抛弃所抓取的数据包,返回第1步,重新抓取通信网络中其他数据包。Step 2.4: Discard the captured data packets, return to step 1, and recapture other data packets in the communication network.

第3步、根据第2步的分析结果,加载相应的从站程序;Step 3, according to the analysis result of step 2, load the corresponding slave station program;

此步骤根据第2步中对ether_type成员变量的分析判断结果不同,选择加载运行不同的工业以太网从站程序,或者不加载运行:In this step, depending on the analysis and judgment results of the ether_type member variable in step 2, choose to load and run different industrial Ethernet slave programs, or not to load and run:

第3.1步、对于Modbus-TCP主站,Modbus-TCP作为Linux下的可执行程序,在可执行文件中通过system()函数来完成Modbus-TCP从站程序的运行;Step 3.1, for the Modbus-TCP master station, Modbus-TCP is an executable program under Linux, and the operation of the Modbus-TCP slave station program is completed through the system() function in the executable file;

第3.2步、对于POWERLINK主站,POWERLINK从站程序代码被交叉编译后生成一个Linux内核模块,需要通过insmod命令加载到Linux内核中才能运行;这里,通过编写一个shell脚本文件,在可执行程序中通过执行system()来执行脚本文件,从而完成POWERLINK从站程序的加载运行。Step 3.2. For the POWERLINK master station, the POWERLINK slave station program code is cross-compiled to generate a Linux kernel module, which needs to be loaded into the Linux kernel through the insmod command to run; here, by writing a shell script file, in the executable program Execute the script file by executing system() to complete the loading and running of the POWERLINK slave program.

本发明的优点和有益效果Advantages and beneficial effects of the present invention

通过本发明采用的技术方案可以看出,本方法能够实现集成工业以太网从站对与之相连接主站进行判断识别,并加载相应的从站程序,与主站建立连接,完成后续通信的任务。摆脱了传统的手动选择方式所带来的工作量大,不确定因素多等问题。现在的方法既方便又安全可靠,有更高的实用价值。It can be seen from the technical solution adopted in the present invention that this method can realize that the integrated industrial Ethernet slave station can judge and identify the master station connected to it, and load the corresponding slave station program, establish a connection with the master station, and complete the follow-up communication. Task. It gets rid of the problems of heavy workload and many uncertain factors brought about by the traditional manual selection method. The present method is convenient, safe and reliable, and has higher practical value.

附图说明Description of drawings

图1是数据包抓取流程图;Figure 1 is a flow chart of packet capture;

图2是以太网控制芯片设置分析图;Figure 2 is an analysis diagram of the Ethernet control chip settings;

图3是Modbus-TCP和POWERLINK主站报文分析图;Figure 3 is the message analysis diagram of Modbus-TCP and POWERLINK master station;

图4是Modbus-TCP和POWERLINK报文以太网头分析图;Figure 4 is an analysis diagram of the Ethernet header of Modbus-TCP and POWERLINK packets;

图5是数据包分析流程图。Fig. 5 is a flow chart of packet analysis.

具体实施方式detailed description

本发明提供的集成工业以太网从站自主识别主站的方法,具体步骤如下:The integrated industrial Ethernet slave station provided by the present invention independently identifies the method for the master station, and the specific steps are as follows:

第1步、抓取工业以太网通信网络中主站发送的识别数据包;Step 1, capture the identification data packet sent by the master station in the industrial Ethernet communication network;

图1是集成从站嵌入式Linux操作系统下,如何运行程序来抓取通信网络上的数据包。Figure 1 shows how to run a program to capture data packets on the communication network under the embedded Linux operating system of the integrated slave station.

首先启动Linux操作系统,提供软件程序的工作环境,加载af_packet.ko原始套接字功能模块,一般的嵌入式Linux操作系统中往往不具有这一模块,需要自行加载到内核中。接着,将与集成从站相连的以太网芯片的工作模式设置成混杂模式,因为以太网芯片的缺省工作模式为直接模式或广播模式,缺省工作模式下,以太网控制芯片会判断每个物理数据帧目的地是否为本站地址,如果不是就将它丢弃。然而,集成从站需要在从站程序运行前,完成对通信网络中主站发出的带有识别信息的数据包进行抓取和分析。因此,需要将适配器网卡设置成为混杂模式,这样就可以达到对于网络信息监视捕获的目的。通过命令“ifconfig eth0promisc”完成以太网卡模式的修改,图2上下两部分显示出了以太网控制芯片设置前后的状态。First start the Linux operating system, provide the working environment of the software program, and load the af_packet.ko original socket function module. The general embedded Linux operating system often does not have this module, and it needs to be loaded into the kernel by itself. Next, set the working mode of the Ethernet chip connected to the integrated slave station to promiscuous mode, because the default working mode of the Ethernet chip is direct mode or broadcast mode. In the default working mode, the Ethernet control chip will judge each Whether the destination of the physical data frame is the address of this station, if not, it will be discarded. However, the integrated slave station needs to complete the capture and analysis of the data packet with identification information sent by the master station in the communication network before the slave station program runs. Therefore, it is necessary to set the adapter network card to promiscuous mode, so that the purpose of monitoring and capturing network information can be achieved. The modification of the Ethernet card mode is completed through the command "ifconfig eth0promisc". The upper and lower parts of Figure 2 show the status of the Ethernet control chip before and after setting.

第2步、分析抓取到的通信网络中的数据包;Step 2, analyzing the data packets in the captured communication network;

这里涉及到的图3和图4都是通过wireshark抓包工具,抓取到的来自通信网络中数据包。Figure 3 and Figure 4 involved here are all data packets from the communication network captured by the wireshark packet capture tool.

图3中方框标注的内容分别为Modbus-TCP和POWERLINK工业以太网主站发出的识别信息数据包,观察比较可知,二者在协议类型(protocol选项)上存在差异,Modbus-TCP是ARP,POWERLINK是epl,以此作为区标志。The contents marked in the boxes in Figure 3 are the identification information packets sent by the Modbus-TCP and POWERLINK industrial Ethernet master stations. Observation and comparison show that there are differences in the protocol type (protocol option) between the two. Modbus-TCP is ARP, and POWERLINK It is epl, which is used as the district mark.

图4是这两种协议以太网报文头的分析图。本发明方法对抓取到的数据包进行分析,所涉及到的内容是在数据链路层,主要判定以太网报文头,对上层网络包括网络层和传输层,不作分析判定。Modbus-TCP和POWERLINK为两种工业以太网通信协议,使用的均为Ethernet II帧格式,这里之所以要突出是使用的Ethernet II型数据帧,是因为它的12字节之后为类型选项,而Modbus-TCP和POWERLINK这两种协议在这里有所区分。Modbus-TCP协议是基于TCP/IP的工业以太网,它的以太网报文头中此项内容为0x0806;POWERLINK协议不是基于TCP/IP的以太网,它有自己的数据链路层协议标准,因此它的以太网报文头的类型内容为0x88ab。因此,就可以通过判断抓取到的数据包的以太网数据报文类型,来确定与集成从节点相连接的通信主站类型。Figure 4 is an analysis diagram of the Ethernet packet headers of these two protocols. The method of the invention analyzes the captured data packets, and the involved content is in the data link layer, and mainly judges the Ethernet message header, and does not analyze and judge the upper network including the network layer and the transmission layer. Modbus-TCP and POWERLINK are two industrial Ethernet communication protocols, both of which use the Ethernet II frame format. The reason why it is highlighted here is the Ethernet II type data frame used, because it is a type option after 12 bytes, and The two protocols Modbus-TCP and POWERLINK are distinguished here. The Modbus-TCP protocol is an industrial Ethernet based on TCP/IP, and the content of this item in its Ethernet message header is 0x0806; the POWERLINK protocol is not an Ethernet based on TCP/IP, and it has its own data link layer protocol standard. Therefore, the type content of its Ethernet packet header is 0x88ab. Therefore, the type of the communication master station connected to the integrated slave node can be determined by judging the Ethernet data packet type of the captured data packet.

图5是分析判断所抓取到数据包的流程图。首先,根据数据包的构成形式,将抓取到的数据包划分格式,因为所抓取的数据包给某一变量是没有划分格式的,数据包从左向右依次为以太网报文头、IP报文头、TCP报文头或者UDP报文头,根据上面的分析,可知区分Modbus-TCP和POWERLINK工业以太网只需要知道以太网报文头即可。将数据包赋值到某一字符指针变量中,并将此变量强制转化为struct ether_header结构体,那么数据包的以太网报文头便被保留下来。struct ether_header结构体是以太网报文头的函数体形式,具体构成如下:FIG. 5 is a flow chart of analyzing and judging captured data packets. First of all, according to the form of the data packet, divide the format of the captured data packet, because the captured data packet is not divided into a format for a certain variable, and the data packet from left to right is the Ethernet packet header, IP packet header, TCP packet header or UDP packet header, according to the above analysis, it can be seen that only need to know the Ethernet packet header to distinguish Modbus-TCP and POWERLINK industrial Ethernet. Assign the data packet to a character pointer variable, and force this variable into a struct ether_header structure, then the Ethernet header of the data packet will be preserved. The struct ether_header structure is the function body form of the Ethernet packet header, and its specific composition is as follows:

接着,通过判断语句,判断以太网报文头中的ether_type这一项,根据图3的报文分析可知,如果以太网头的类型为0x0806,就是Modbus-TCP主站的识别信息,那么就加载Modbus-TCP从站程序;如果以太网头的类型为0x88ab,就是POWERLINK主站的识别信息,那么就加载POWERLINK从站程序;如果不是这两种的一个,那么就是垃圾包,将其丢弃,并通过while函数返回到第1步,重新抓取分析数据包。Then, judge the ether_type item in the Ethernet packet header through the judgment statement. According to the message analysis in Figure 3, if the type of the Ethernet header is 0x0806, it is the identification information of the Modbus-TCP master station, then load the Modbus-TCP slave station program; if the type of Ethernet header is 0x88ab, which is the identification information of the POWERLINK master station, then load the POWERLINK slave station program; if it is not one of these two, then it is a garbage packet, discard it, and Return to step 1 through the while function, and recapture the analysis data package.

第3步、根据第2步的分析结果,加载相应的从站程序Step 3, according to the analysis results of step 2, load the corresponding slave station program

此步骤根据第2步中对ether_type成员变量的分析判断结果不同,选择加载运行不同的工业以太网从站程序,或者不加载运行。由于Modbus-TCP和POWERLINK的从站程序的特点不同,它们运行的方式也是不同的。Modbus-TCP作为Linux下的可执行程序,在可执行文件中通过system()函数来完成Modbus-TCP从站程序的运行;而POWERLINK从站程序代码被交叉编译后生成一个Linux内核模块,需要通过insmod命令加载到Linux内核中才能运行,但是,从可执行文件中是无法执行insmod命令来加载内核模块,这里,通过编写一个shell脚本文件,在可执行程序中通过执行system()来执行脚本文件,从而间接地完成POWERLINK从站程序的加载运行。In this step, depending on the analysis and judgment results of the ether_type member variable in step 2, choose to load and run different industrial Ethernet slave programs, or not to load and run. Due to the different characteristics of the slave station programs of Modbus-TCP and POWERLINK, their operation methods are also different. As an executable program under Linux, Modbus-TCP uses the system() function in the executable file to complete the operation of the Modbus-TCP slave station program; and the POWERLINK slave station program code is cross-compiled to generate a Linux kernel module, which needs to pass The insmod command is loaded into the Linux kernel to run, but the insmod command cannot be executed from the executable file to load the kernel module. Here, by writing a shell script file, the script file is executed by executing system() in the executable program , thus indirectly completing the loading and running of the POWERLINK slave program.

Claims (1)

1. a kind of method of integrated EPA slave station autonomous classification main website, the method is applied at Industry Control scene, operation There are the integrated EPA slave station of built-in Linux operating system, hereinafter referred to as integrated slave station;Described integrated slave station is integrated Modbus-TCP and POWERLINK slave station programs;The method judges to recognize letter from the main website in communication network by analysis Cease to determine the main website type being connected with integrated slave station, so as to select the corresponding integrated slave station program of load operating, realize Integrated slave station has broken away from the side of traditional manual loading to the autonomous classification of main website type and the automatic loading of integrated slave station program Method;The method to implement step as follows:
The identification data bag that main website sends in 1st step, crawl EPA communication network;
1.1st step, the (SuSE) Linux OS started in integrated slave station;
1.2nd step, the mode of operation of the integrated slave station Ethernet chip of setting are promiscuous mode, and so integrated slave station would not only connect It is its packet by destination address, but all by its packet, it is convenient to obtain the identification information number that main website sends According to bag;
1.3rd step, by socket socket functions create a filec descriptor for raw socket;
1.4th step, received from the packet in communication network using recv () function, and the packet assignment that will be received It is convenient that subsequently it is analyzed in a character type pointer variable;
Packet in the communication network that 2nd step, analysis are grabbed;
2.1st step, the packet that will be grabbed in the 1st step divide form, because the packet for being captured is assigned to a certain variable When, be not divide form, packet be followed successively by from left to right Ethernet heading, IP headings, TCP message head or UDP headings, only need to know when packet is sent out by differentiation Modbus-TCP main websites and packet is sent out by POWERLINK main websites Ethernet heading.The variable that packet is replicated is forced to be converted into structether_header structures, then The Ethernet heading of packet is just retained;
2.2nd step, the ether_type member variables judged in struct ether_header structures, if the value of variable Packet is then can determine that for 0x0806 from Modbus-TCP main websites, what is be connected with integrated slave station is Modbus-TCP main websites, knot The step of beam the 2nd, into the 3rd step;It is not 0x0806 if the value of ether_type, continues analyze data bag;
2.3rd step, continuation judge the ether_type member variables in struct ether_header structures, if variable Value then can determine packet from POWERLINK main websites for 0x88ab, that be connected with integrated slave station is POWERLINK master Stand, terminate the 2nd step, into the 3rd step;It is not 0x88ab if the value of ether_type, continues analyze data bag;
2.4th step, captured packet is abandoned, return to the 1st step, other packets in communication network are captured again;
3rd step, the analysis result according to the 2nd step, load corresponding slave station program;
This step is different according to the analysis judged result in the 2nd step to ether_type member variables, and selection load operating is different EPA slave station program, or be not loaded with operation:
3.1st step, for Modbus-TCP main websites, Modbus-TCP as the executable program under Linux, in executable file In the operation of Modbus-TCP slave station programs is completed by system () function;
3.2nd step, for POWERLINK main websites, POWERLINK slave stations program code is generated a Linux after cross compile Kernel module could run, it is necessary to be loaded into linux kernel by insmod orders;Here, by writing a shell pin Presents, by performing system () come perform script file in executable program, so as to complete POWERLINK slave station journeys The load operating of sequence.
CN201410703498.8A 2014-11-30 2014-11-30 Method for achieving automatic recognition of main station through industrial Ethernet integrated slave station Expired - Fee Related CN104503390B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410703498.8A CN104503390B (en) 2014-11-30 2014-11-30 Method for achieving automatic recognition of main station through industrial Ethernet integrated slave station

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410703498.8A CN104503390B (en) 2014-11-30 2014-11-30 Method for achieving automatic recognition of main station through industrial Ethernet integrated slave station

Publications (2)

Publication Number Publication Date
CN104503390A CN104503390A (en) 2015-04-08
CN104503390B true CN104503390B (en) 2017-05-24

Family

ID=52944794

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410703498.8A Expired - Fee Related CN104503390B (en) 2014-11-30 2014-11-30 Method for achieving automatic recognition of main station through industrial Ethernet integrated slave station

Country Status (1)

Country Link
CN (1) CN104503390B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108919762B (en) * 2018-07-06 2021-05-25 东莞市李群自动化技术有限公司 Control method and device based on industrial Ethernet

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5946317A (en) * 1993-06-30 1999-08-31 Harris Corporation Multi-master supervisory system
DE10139342A1 (en) * 2001-08-10 2003-03-06 Infineon Technologies Ag Method for transmitting data between a master station and a slave station and data transmission system
CN101232425B (en) * 2007-01-26 2010-04-21 京信通信系统(中国)有限公司 Bus type distributed control system master-salve station opposite terminal control method
CN101425948B (en) * 2008-10-23 2011-10-26 上海大学 Industrial wireless network access industrial Ethernet, multi-protocol gateway of field bus and protocol conversion method
CN103248547B (en) * 2013-04-28 2016-08-17 西南大学 The method of Modbus RTU slave station fast Acquisition data and slave station

Also Published As

Publication number Publication date
CN104503390A (en) 2015-04-08

Similar Documents

Publication Publication Date Title
CN112104654B (en) Multi-protocol automatic identification and conversion method, storage medium and intelligent gateway
CN107911237A (en) Data packet quick determination method in a kind of user's space based on DPDK
CN102946347B (en) Method and device for accelerating to process local data packet by using Linux system
CN104410662A (en) Parallel mass data transmitting middleware of Internet of things and working method thereof
CN108540554A (en) Based on MQTT agreements to the control method of Intelligent hardware device
CN104734911A (en) CAN bus network management test system and method
CN101695035A (en) Flow rate identification method and device thereof
CN101902484A (en) Method and system for classifying local area network http application services
CN109005188A (en) A kind of data transmission device and method, system, equipment, computer storage medium
CN105208016A (en) Agricultural internet of things multi-data transmission and processing method
CN101599897A (en) A peer-to-peer network traffic control method based on application layer detection
CN106330768B (en) A kind of application and identification method based on cloud computing
CN104503390B (en) Method for achieving automatic recognition of main station through industrial Ethernet integrated slave station
CN101119374B (en) iSCSI communication method and corresponding initiation equipment and objective equipment
CN105812346A (en) Data interaction method of serial port device and Ethernet device
CN111726337A (en) A kind of equipment asset detection method and device
CN204989857U (en) Remote control device based on pioneer robot
CN108809725A (en) A kind of collection method and device of journal file
CN111093227B (en) LoRaWAN-based wireless transmission data acquisition method and system
CN104811432A (en) Data packet processing method and device based on parallel protocol stack instance
CN103200084A (en) Message preprocessing method and device based on network processing unit and network processing unit
CN108243232B (en) Industrial network information interconnection method and system
CN114125032B (en) Edge protocol data processing method and system
CN110061880A (en) The data transmission detection device and method of concentrator and remote communication module
CN104899006A (en) Multiprocess parallel processing method for multisystem platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Inventor after: Jia Chao

Inventor after: Sun Xun

Inventor after: Chen Zaiping

Inventor after: Ni Jianyun

Inventor before: Chen Zaiping

Inventor before: Sun Xun

Inventor before: Jia Chao

Inventor before: Ni Jianyun

CB03 Change of inventor or designer information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170524

Termination date: 20211130