Real-time Ethernet field bus data packet processing method based on original socket

A raw socket and field bus technology, applied in the direction of bus network, data exchange network, data exchange through path configuration, etc., can solve the requirements of less strict network data packet transmission time, long interpolation cycle of system performance, etc. problem, to achieve the effect of convenient and flexible use, good compatibility, and avoidance of dependence

A raw socket and field bus technology, applied in the direction of bus network, data exchange network, data exchange through path configuration, etc., can solve the requirements of less strict network data packet transmission time, long interpolation cycle of system performance, etc. problem, to achieve the effect of convenient and flexible use, good compatibility, and avoidance of dependence

CN114513383APending Publication Date: 2022-05-17SHENYANG GOLDING NC & INTELLIGENCE TECH CO LTD

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Real-time Ethernet field bus data packet processing method based on original socket
  • Real-time Ethernet field bus data packet processing method based on original socket

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.

[0034] The present invention is suitable for application in the field of numerical control systems, and is especially suitable for applications where standard network cards are used to transmit real-time Ethernet field bus network data packets, and is particularly suitable for use in medium and low-grade numerical control systems where standard network cards are used to transmit real-time Ethernet field bus network data packets. occasion. The specific implementation of the method of the present invention will be described in further detail below in conjunction with the accompanying drawings.

[0035] The real-time Ethernet field bus network packet processing method based on PACKET_MMAP comprises the following steps:

[0036] 1) Determine the transmission path of the real-time Ethernet field bus data packet from the network card driver to the ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a real-time Ethernet field bus network data packet processing method based on PACKETMMAP, and relates to the technical field of numerical control, in particular to the technical field of real-time Ethernet field buses, and specifically relates to a real-time Ethernet field bus data packet processing method based on an original socket, and the original socket adopts a PACKETMMAP method. The method comprises the following steps: firstly, analyzing a transmission path of a real-time Ethernet fieldbus data packet from a network card driver to a kernel network protocol stack, and establishing a capture point of the real-time Ethernet fieldbus data packet at an entrance of the kernel network protocol stack; then, analyzing the characteristics of the data packet at the capture point, and establishing a data packet capture and forwarding method based on PACKETMMAP; and finally, according to the bus protocol type to which the data packet belongs, designing an analysis processing method of the data packet in the real-time Ethernet bus component in the user space.

Description

technical field [0001] The invention relates to the technical field of numerical control, in particular to the field of real-time Ethernet field bus technology, and in particular to a method for processing data packets of the real-time Ethernet field bus based on raw sockets. The raw sockets adopt the PACKET_MMAP method. Background technique [0002] The PACKET_MMAP mechanism is a socket programming interface based on memory mapping provided by the kernel. This mechanism allocates a kernel buffer area in the kernel space and maps it to the user space, and then the application program in the user space obtains the mapping to the user through the mmap system call. Spatial data. The PACKET_MMAP mechanism is very efficient, it provides a configurable size ring buffer mapped to user space. In this way, the buffer shared by the kernel space and the user space can also reduce data copying. [0003] Middle and low-end CNC systems have high requirements for real-time performance, b...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
17 May 2022
Publication
CN114513383A
IPC
H04L12/40; H04L69/22
CPC
H04L12/40006; H04L12/40169; H04L69/22; H04L2012/40208; H04L2012/4026
Inventors
李备备; 郑飂默