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

Pending Publication Date: 2022-05-17
SHENYANG GOLDING NC & INTELLIGENCE TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Middle and low-end CNC systems have high requirements for real-time performance, but limited by the performance of the system, the general interpolation cycle is relatively long
For cost considerations, the

Method used

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
View more

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
no application Login to view more
IPC IPC(8): H04L12/40H04L69/22
CPCH04L12/40006H04L12/40169H04L69/22H04L2012/40208H04L2012/4026
Inventor 李备备郑飂默王诗宇王常辉李泽阳李伦兴姜志超
Owner SHENYANG GOLDING NC & INTELLIGENCE TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products