CN114513284A - Data transmission method and system of networked servo system communication protocol - Google Patents

Data transmission method and system of networked servo system communication protocol Download PDF

Info

Publication number
CN114513284A
CN114513284A CN202210069617.3A CN202210069617A CN114513284A CN 114513284 A CN114513284 A CN 114513284A CN 202210069617 A CN202210069617 A CN 202210069617A CN 114513284 A CN114513284 A CN 114513284A
Authority
CN
China
Prior art keywords
data
network node
frame
data transmission
real
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
CN202210069617.3A
Other languages
Chinese (zh)
Other versions
CN114513284B (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.)
South China University of Technology SCUT
Original Assignee
South China University of Technology SCUT
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 South China University of Technology SCUT filed Critical South China University of Technology SCUT
Priority to CN202210069617.3A priority Critical patent/CN114513284B/en
Publication of CN114513284A publication Critical patent/CN114513284A/en
Application granted granted Critical
Publication of CN114513284B publication Critical patent/CN114513284B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses a data transmission method and a system of a communication protocol of a networked servo system, wherein the method comprises the steps of acquiring a data transmission mode between two network nodes of the networked servo system, wherein the data transmission mode is divided into a non-real-time data transmission mode and a real-time data transmission mode; setting three rounds of itinerant verification in a non-real-time data transmission mode, and forming a data frame by the network node I and sending the data frame to the network node II for the real-time data transmission mode; and the network node II deframes the data frame and stores the data frame into a corresponding data structure. The invention realizes the modularization and standardization of the communication protocol, and has strong expansibility and wide transplantation range.

Description

Data transmission method and system of networked servo system communication protocol
Technical Field
The invention relates to the technical field of data transmission, in particular to a data transmission method and a data transmission system of a networked servo system communication protocol.
Background
The interconnection of everything is the trend of technological development nowadays, and the key ring of interconnection is the transmission of data, does not have reliable data transmission, and interconnection equipment just has no way to carry out good collaborative work. Meanwhile, with the continuous development of modern industry, more and more social production tends to be integrated and automated, and industrial internet also needs to be transported. And the formation of the industrial internet requires various standards. In the fields of high-grade numerical control machines and robots, the equipment standardization and modularization development is required to be promoted in the application fields of industrial equipment such as automobiles, machinery and light electronic industry and service robots such as medical health and family service, and servo systems participate in the fields and products and play a core role.
At present, a unified standard and a unified regulation do not exist for a communication protocol and a data transmission method of a networked servo system, all manufacturers make the communication protocol and the data transmission method at will according to own ideas, so that the protocols are incompatible, meanwhile, some protocols cannot ensure the reliability of data transmission, so that the servo system cannot work normally, and serious problems occur in subsequent products.
Disclosure of Invention
In order to overcome the defects and shortcomings of the prior art, the invention provides a data transmission method and system of a communication protocol of a networked servo system.
The invention adopts the following technical scheme:
a data transmission method of a networked servo system communication protocol comprises the following steps:
acquiring a data transmission mode between two network nodes in a network servo system;
if the transmission mode is a non-real-time data transmission mode, executing the following steps:
the network node I stores the data checksum to the local, and then frames the data to the network node II;
the network node II receives the data framing and then carries out de-framing, and temporarily stores the obtained data into a buffer area;
the network node II calculates a check sum of the data in the cache region, frames the check sum into a check frame and sends the check frame to the network node I;
the network node I decodes the received check frame to obtain the check sum of the network node II;
judging whether the local checksum is equal to the checksum of the network node II or not;
if the two are equal, the network node I sends a confirmation frame;
after receiving the confirmation frame, the network node II carries out deframing, sets the corresponding flag bit, stores the data of the cache region into the corresponding data structure, and clears the cache region;
if the transmission mode is a real-time data transmission mode, executing the following steps:
the network node I frames the data to a network node II;
and the network node II unframes the data frame and stores the data frame into a corresponding data structure.
Further, the non-real-time data transmission mode is data transmission with no requirement on a time period, and comprises network node parameter configuration data, network node instruction given data and network node function initialization data.
Further, the real-time data transmission refers to data transmission with a limitation requirement on a time period, and is divided into strong real-time data and weak real-time data according to the time period. Strong real-time data must use a real-time data transmission mode; and selecting a real-time data transmission mode or a non-real-time data transmission mode for weak real-time data according to specific working condition requirements and control requirements.
Further, judging whether the local checksum and the network node II checksum are equal, if so, indicating that the transmitted data frame has no data abnormality, and sending a confirmation frame; if not, the data transmission is wrong, and the network node I sends the data frame again.
Further, the format of the data framing is as follows:
frame header 1-frame header 2-frame data length-source timestamp-source node number-source address-destination node number-destination address-frame function code-data 1-data 2-data n-check bit.
Further, the format of the check frame is as follows:
frame header 1-frame header 2-frame data length-source timestamp-source node number-source address-destination node number-destination address-frame function code-checksum-check bit.
Further, the network node I and the network node II are any network nodes with communication functions of a networked servo system.
A data transmission system comprising:
the user-defined preset module is used for writing user-defined preset sending data by a user;
the network node initialization module is used for initializing a network node serial number, a network node internal address and data;
the instruction generating module is used for generating data to be sent in the running process of the network servo system;
the framing sending module is used for framing the related data, then transmitting the data and sending the data to another servo network node;
the de-framing receiving module is used for de-framing the received data frame and receiving the non-real-time data into the data cache region;
and each data structure body is provided with an address number and is used for storing corresponding data of the cache region after confirmation in the non-real-time transmission process and data obtained by deframing in the real-time transmission process.
A data transmission device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the data transmission method when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out a data transmission method as set forth.
The invention has the beneficial effects that:
(1) the invention improves the reliability and accuracy of data transmission by classifying the data transmission models.
(2) In the non-real-time data transmission mode, the invention sets three rounds of itinerant verification to ensure the accuracy of the non-real-time data.
(2) The system comprises a user-defined preset module, an instruction generation module, a framing sending module, a deframing receiving module and a data structure module, so that the modularization of the system is realized, and the stability and the reliability of the system are improved.
Drawings
FIG. 1 is a flowchart of a method of example 1 of the present invention;
fig. 2 is a diagram illustrating a format of a data frame according to embodiment 1 of the present invention;
fig. 3 is a diagram illustrating an ack frame mapping format according to embodiment 1 of the present invention;
fig. 4 is a structural view of embodiment 2 of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the following examples and drawings, but the mode of carrying out the invention is not limited thereto.
Example 1
As shown in fig. 1, a data transmission method of a communication protocol of a networked servo system includes:
s101, acquiring a data transmission mode between two network nodes in a network servo system;
s111 if the transmission mode is the non-real-time data transmission mode, executing the following steps:
s112, the network node I stores the data checksum to the local, and then frames the data to the network node II;
s113, after receiving the data framing, the network node II carries out de-framing, and temporarily stores the obtained data into a buffer area;
s114, the network node II calculates a check sum of the data in the cache region, frames the data into check frames and sends the check frames to the network node I;
s115, the network node I decodes the received check frame to obtain the check sum of the network node II;
s116, judging whether the local checksum is equal to the checksum of the network node II;
s117, if the data are equal, the network node I sends a confirmation frame;
s118, after receiving the confirmation frame, the network node II carries out de-framing, sets the corresponding flag bit, stores the data of the cache region into the corresponding data structure and empties the cache region;
s121, if the transmission mode is the real-time data transmission mode, executing the following steps:
s122, the network node I frames the data to a network node II;
and S123, the network node II deframes the data frame and stores the data frame into a corresponding data structure.
Referring to fig. 2, the format of the data frame sent by the network node of the servo system is: frame header 1-frame header 2-frame data length-source timestamp-source node number-source address-destination node number-destination address-frame function code-data 1-data 2-data n-check bit. And transmitting the data frame to the next network node motion instruction or original data.
Referring to fig. 3, the servo network node i makes the servo network node ii correspond to the flag bit by sending an acknowledgement frame to the servo network node ii, and starts to load the data in the buffer area.
Further, the data frame includes a frame header, a frame data length, a source timestamp, a source node number, a source address, a destination node number, a destination address, a frame function code, transmission data, and a check bit.
The frame data length is the data length of the frame without the frame header;
the source timestamp is a source clock value of the frame when the framing of the frame is started;
the source node number is a node ID number sent by the data frame;
the source address is a data structure address of a data source in the data frame;
the destination node number is a node ID number received by the data frame;
the destination address is a data structure address where data in the data frame should be stored;
the frame function code indicates the specific function of the frame;
the transmission data is transmission data from a source address to a destination address;
the check bit is the check sum of the data frame except the frame header.
Further, the frame function code is 1 byte, which is detailed in table 1 below, and table 1 is an example of the type of the function code.
TABLE 1
Figure BDA0003481536200000051
Figure BDA0003481536200000061
Example 2
As shown in fig. 4, a data transmission system of a network servo system communication protocol includes an arbitrary servo network node i and a servo network node ii which are in data connection with each other, where the servo network node may be a PLC, a PC, and a servo driver; the servo network node I and the servo network node II have the same position, and the servo network node comprises:
the user-defined preset module is used for writing user-defined preset sending data by a user;
the network node initialization module is used for initializing a network node serial number, a network node internal address and data;
the instruction generating module is used for generating data to be sent in the running process of the network servo system;
the framing sending module is used for framing the related data, then transmitting the data and sending the data to another servo network node;
the de-framing receiving module is used for de-framing the received data frame and receiving the non-real-time data into the data cache region;
and each data structure body is provided with an address number and is used for storing corresponding data of the cache region after confirmation in the non-real-time transmission process and data obtained by deframing in the real-time transmission process.
Example 3
A data transmission device comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the memory is stored with the computer program which can be loaded by a computer upper computer and an embedded lower computer and can execute the data transmission method of the servo system communication protocol in embodiment 1.
Example 4
A computer-readable storage medium storing a computer program that can be loaded by a computer upper computer and an embedded lower computer and that executes the data transmission method of the servo system communication protocol in embodiment 1.
In an embodiment of the present invention, the computer-readable storage medium includes, for example: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates a relationship that front and rear associated objects are an "or" unless otherwise specified.
The above embodiments are preferred embodiments of the present invention, but the present invention is not limited to the above embodiments, and any other changes, modifications, substitutions, combinations, and simplifications which do not depart from the spirit and principle of the present invention should be construed as equivalents thereof, and all such changes, modifications, substitutions, combinations, and simplifications are intended to be included in the scope of the present invention.

Claims (10)

1. A data transmission method of a networked servo system communication protocol is characterized by comprising the following steps:
acquiring a data transmission mode between two network nodes in a network servo system;
if the transmission mode is a non-real-time data transmission mode, executing the following steps:
the network node I stores the data checksum to the local, and then frames the data to the network node II;
the network node II receives the data framing and then carries out de-framing, and temporarily stores the obtained data into a buffer area;
the network node II calculates a check sum of the data in the cache region, frames the check sum into a check frame and sends the check frame to the network node I;
the network node I decodes the received check frame to obtain the check sum of the network node II;
judging whether the local checksum is equal to the checksum of the network node II or not;
if the two are equal, the network node I sends a confirmation frame;
after receiving the confirmation frame, the network node II carries out de-framing, sets the corresponding flag bit, stores the data of the cache region into the corresponding data structure and empties the cache region;
if the transmission mode is a real-time data transmission mode, executing the following steps:
the network node I frames the data to a network node II;
and the network node II unframes the data frame and stores the data frame into a corresponding data structure.
2. The data transmission method according to claim 1, wherein the non-real-time data transmission mode is data transmission with unlimited time period requirements, and comprises network node parameter configuration data, network node instruction given data and network node function initialization data.
3. The data transmission method according to claim 1, wherein the real-time data transmission is data transmission having a limitation requirement on a time period, and is divided into strong real-time data and weak real-time data according to the time period.
4. The data transmission method according to claim 1, wherein the determining step determines whether the local checksum and the network node ii checksum are equal, and if so, it indicates that the transmitted data frame has no data abnormality, and then sends an acknowledgement frame; if not, the data transmission is wrong, and the network node I sends the data frame again.
5. The data transmission method according to any one of claims 1 to 4, wherein the format of the data framing is:
frame header 1-frame header 2-frame data length-source timestamp-source node number-source address-destination node number-destination address-frame function code-data 1-data 2-data n-check bit.
6. The data transmission method according to any one of claims 1 to 4, wherein the format of the check frame is:
frame header 1-frame header 2-frame data length-source timestamp-source node number-source address-destination node number-destination address-frame function code-checksum-check bit.
7. The data transmission method according to claim 1, wherein the network node i and the network node ii are any network nodes with communication function of a networked servo system.
8. A system for implementing the data transmission method of any one of claims 1 to 7, comprising:
the user-defined preset module is used for writing user-defined preset sending data by a user;
the network node initialization module is used for initializing a network node serial number, a network node internal address and data;
the instruction generating module is used for generating data to be sent in the running process of the network servo system;
the framing sending module is used for framing the related data, then transmitting the data and sending the data to another servo network node;
the de-framing receiving module is used for de-framing the received data frame and receiving the non-real-time data into the data cache region;
and each data structure body is provided with an address number and is used for storing corresponding data of the cache region after confirmation in the non-real-time transmission process and data obtained by deframing in the real-time transmission process.
9. A data transmission device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the data transmission method according to any of claims 1-7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the data transmission method according to any one of claims 1 to 7.
CN202210069617.3A 2022-01-21 2022-01-21 Data transmission method and system of networked servo system communication protocol Active CN114513284B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210069617.3A CN114513284B (en) 2022-01-21 2022-01-21 Data transmission method and system of networked servo system communication protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210069617.3A CN114513284B (en) 2022-01-21 2022-01-21 Data transmission method and system of networked servo system communication protocol

Publications (2)

Publication Number Publication Date
CN114513284A true CN114513284A (en) 2022-05-17
CN114513284B CN114513284B (en) 2023-07-18

Family

ID=81550365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210069617.3A Active CN114513284B (en) 2022-01-21 2022-01-21 Data transmission method and system of networked servo system communication protocol

Country Status (1)

Country Link
CN (1) CN114513284B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141451A (en) * 2007-10-26 2008-03-12 华中科技大学 Numerical control system communication interface, numerical control system and data receiving and sending method
CN105120003A (en) * 2015-09-10 2015-12-02 浪潮(北京)电子信息产业有限公司 Method for realizing data backup in cloud environment
CN105629902A (en) * 2014-10-31 2016-06-01 北京精密机电控制设备研究所 CAN bus accurate timing and assembly line testing communication system and method
CN108650312A (en) * 2018-05-03 2018-10-12 西安电子科技大学 The MAC IP kernels device and data transmission method for supporting real time data to seize

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141451A (en) * 2007-10-26 2008-03-12 华中科技大学 Numerical control system communication interface, numerical control system and data receiving and sending method
CN105629902A (en) * 2014-10-31 2016-06-01 北京精密机电控制设备研究所 CAN bus accurate timing and assembly line testing communication system and method
CN105120003A (en) * 2015-09-10 2015-12-02 浪潮(北京)电子信息产业有限公司 Method for realizing data backup in cloud environment
CN108650312A (en) * 2018-05-03 2018-10-12 西安电子科技大学 The MAC IP kernels device and data transmission method for supporting real time data to seize

Also Published As

Publication number Publication date
CN114513284B (en) 2023-07-18

Similar Documents

Publication Publication Date Title
CN100339843C (en) Interface module for use with a fieldbus device network and modbus device network
US10666718B2 (en) Dynamic data transport between enterprise and business computing systems
CN114222009B (en) Industrial communication multi-protocol conversion system
EP0576546A4 (en) Networked variables.
CN108881251B (en) System and method for access analysis and standardization of any binary equipment
CN109361585B (en) Method for automatically setting baud rate and address of child node by main node
CN111064627A (en) Plug-and-play management system for electric power internet of things terminal
CN112311742A (en) Method, device and system for adapting field gateway data
Plotnikov et al. Modeling of inter-modular interaction based on the CANopen protocol in vibration monitoring systems
KR20210098219A (en) Advanced Operator Method for Manufacturing Equipment System using Broker based OPC UA PubSub
EP1391098B1 (en) Method, system and agent for 3gpp technical specification document number exchange
CN106506303A (en) A kind of main station system of controller real-time ethernet EtherCAT
CN111541688A (en) Embedded system compatible with multiple protocols, data processing method and device
KR20180074128A (en) Diagnosis message routing system and method for gateway of vehicle
US5704041A (en) Object independent scoping in an open system interconnection system
Ho et al. Implementation of dds cloud platform for real-time data acquisition of sensors
CN114513284A (en) Data transmission method and system of networked servo system communication protocol
CN107018151B (en) CAN-LonWorks protocol conversion method of programmable conversion logic
CN112698973A (en) System, method and device for automatic registration and management of modbus equipment
CN110430110B (en) On-site bus gateway and protocol conversion method thereof
CN114900387B (en) Cross-platform fusion access method, system, gateway and storage medium of equipment
WO2020238764A1 (en) Time sequence management method, device and system
EP4287585A1 (en) Data communication processing method and device
US20200311040A1 (en) Dynamically rendering an application programming interface for internet of things applications
CN111641668B (en) Heterogeneous execution engine in network center process control system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant