CN116991121A - EPA scheduling method and device compatible with multiple protocols - Google Patents

EPA scheduling method and device compatible with multiple protocols Download PDF

Info

Publication number
CN116991121A
CN116991121A CN202310704024.4A CN202310704024A CN116991121A CN 116991121 A CN116991121 A CN 116991121A CN 202310704024 A CN202310704024 A CN 202310704024A CN 116991121 A CN116991121 A CN 116991121A
Authority
CN
China
Prior art keywords
epa
message
protocol
application data
sending
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
CN202310704024.4A
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.)
Zhejiang Zhikong Technology Co ltd
ZHEJIANG SUPCON RESEARCH CO LTD
Original Assignee
Zhejiang Zhikong Technology Co ltd
ZHEJIANG SUPCON RESEARCH CO LTD
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 Zhejiang Zhikong Technology Co ltd, ZHEJIANG SUPCON RESEARCH CO LTD filed Critical Zhejiang Zhikong Technology Co ltd
Priority to CN202310704024.4A priority Critical patent/CN116991121A/en
Publication of CN116991121A publication Critical patent/CN116991121A/en
Pending legal-status Critical Current

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/41865Total 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 job scheduling, process planning, material flow
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/32Operator till task planning
    • G05B2219/32252Scheduling production, machining, job shop

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)
  • Communication Control (AREA)

Abstract

The invention discloses a multi-protocol compatible EPA scheduling method, which comprises the steps that an application layer module transmits EPA application data to an EPA protocol stack, and an application layer module transmits non-EPA application data to a non-EPA channel. And packaging the EPA application data and/or the non-EPA application data, caching, and then giving a request sending message to a sending management module. And scheduling and sending the EPA application data and/or the non-EPA application data according to the preset parameter configuration. The invention is provided with a configuration register, and can configure the protocol type, the message type and the priority of the EPA dispatching device through the configuration port. The EPA protocol stack is realized or transplanted according to the EPA standard protocol, and no protocol change is made. While supporting EPA protocol transmission, data messages supporting different protocols are transmitted in a network, and no data collision is generated. All protocol messages participate in real-time scheduling, and the priorities of different protocol messages can be flexibly configured according to practical application occasions.

Description

EPA scheduling method and device compatible with multiple protocols
Technical Field
The invention belongs to the field of industrial control automation, and particularly relates to a EPA scheduling method and device compatible with multiple protocols.
Background
The bus is used as a neural network for connecting all devices in the industrial control system and is used for realizing real-time, reliable and safe transmission of data in the control system. Along with the continuous expansion of control scale and the increasing of control objects, the intelligent equipment has various types, and higher demands are put forward on the safety and usability of buses. In a large environment where "domestic" is being pursued, EPA bus, which is a bus with independent intellectual property rights in our country, stands out from a series of buses, however, EPA bus also has a large lifting space from the viewpoint of availability. Current EPA bus applications are also essentially limited to EPA inter-device communication, not with other protocols.
In view of the above, there are prior art improvements in the art with respect to EPA buses having application numbers CN110943899A and CN 106685735A. The patent CN110943899a modifies the EPA protocol message, and inserts a TSN identification field into the EPA message to interwork with the TSN message. The patent CN106685735A mainly adds a non-RTE communication stage on the basis of an EPA standard protocol, wherein EPA message data communication is carried out between an EPA master end or an EPA slave end in a RTE period stage and an RTE non-period stage according to the respective communication slot time length, and the EPA message data communication is used for sending or receiving EPA messages or common Ethernet messages in the non-RTE communication stage; however, the non-EPA message can only be sent at a fixed time, and there is a lower priority for transmission.
Therefore, there is a need for an EPA scheduler that not only achieves interworking with multiple protocols, but also ensures real-time performance of EPA messages and non-EPA protocol messages without changing the original EPA standard communication messages.
Disclosure of Invention
The technical aim of the invention is to provide a EPA scheduling method and device compatible with multiple protocols, so as to solve the technical problem of insufficient EPA bus compatibility.
In order to solve the problems, the technical scheme of the invention is as follows:
a multi-protocol compatible EPA scheduling method, configured in a multi-protocol compatible EPA scheduling device, comprising the steps of:
transmitting EPA application data to an EPA protocol stack of the EPA scheduler by the application layer module, and transmitting non-EPA application data to a non-EPA channel of the EPA scheduler by the application layer module;
the transmission management module is used for packaging and caching EPA application data and/or non-EPA application data and then giving a request transmission message to the EPA scheduling device;
and scheduling and sending the EPA application data and/or the non-EPA application data according to the preset parameter configuration.
It is further preferred that the data is transported by the application layer further comprising configuring parameters of the EPA scheduler, the configuration parameters comprising basic parameters of the EPA protocol: macro period, period time, non-period time and transmission time offset, and a configuration parameter table related to multi-protocol compatibility, wherein the configuration parameter table comprises protocol type, message type and message priority.
The scheduling and sending of EPA application data and/or non-EPA application data according to the preset parameter configuration specifically comprises the following steps:
determining the scheduling priority of EPA application data and/or non EPA application data according to the protocol and the message type of the request message, preferentially sending the message with high priority, and then sending the message with low priority; the message with high priority can interrupt the message transmission with low relative priority, and the message with low priority is retransmitted and transmitted after the message with high priority is transmitted.
Further preferably, the method further comprises the steps of: receiving the message from the external network, judging and forwarding the protocol of the message, transferring the EPA message to an EPA protocol stack for receiving treatment, transferring the non-EPA message to a non-EPA channel for receiving treatment, and then transferring the application data after receiving treatment to an application layer module for further treatment.
The EPA scheduling device compatible with multiple protocols is applied with the EPA scheduling method compatible with multiple protocols, and comprises an application layer module, an EPA protocol stack, a non-EPA channel and a transmission management module;
the application layer module is respectively connected with the EPA protocol stack and the non-EPA channel signal and is used for transmitting EPA application data to the EPA protocol stack or transmitting non-EPA application data to the non-EPA channel;
the EPA protocol stack is used for packaging and caching EPA application data and then giving a request sending message to the sending management module;
the non-EPA channel is used for packaging and caching the non-EPA application data and then giving out a request sending message to the sending management module;
the sending management module is in signal connection with other external devices through an Ethernet interface and is used for determining the scheduling priority of EPA application data and/or non-EPA application data according to the protocol and the message type of the request sending message, sending the message with high priority preferentially and then sending the message with low priority; the message with high priority can interrupt the message transmission with low relative priority, and the message with low priority is retransmitted and transmitted after the message with high priority is transmitted.
Further preferably, the system further comprises a configuration register, wherein the configuration register is used for acquiring configuration parameters from an external upper computer, and the configuration parameters comprise basic parameters of the EPA protocol: macro period, period time, non-period time and transmission time offset, and a configuration parameter table related to multi-protocol compatibility, wherein the configuration parameter table comprises protocol type, message type and message priority.
The system further preferably further comprises a receiving management module which is in signal connection with the external network through an Ethernet interface and is respectively in signal connection with the EPA protocol stack and the non-EPA channel, and the receiving management module is used for receiving messages from the external network, judging and forwarding the protocol of the messages, transferring the EPA messages to the EPA protocol stack for receiving, transferring the non-EPA messages to the non-EPA channel for receiving, and then sending the received application data to the application layer module for further processing.
EPA message is adopted in EPA application data, and the EPA message comprises a periodic message, a synchronous message and an aperiodic message, and is distinguished by the 14 th byte of the EPA message.
By adopting the technical scheme, the invention has the following advantages and positive effects compared with the prior art:
the invention is provided with a configuration register, which is provided with a configuration port connected with an external controller, wherein the configuration port can be an Ethernet port, a PCIE interface, a serial interface and the like, and a PC or other main controllers carry out protocol type, message type and priority configuration on the EPA dispatching device through the configuration port.
The EPA protocol stack of the invention is realized or transplanted according to EPA standard protocol, and no protocol change is made.
The invention supports EPA protocol transmission and simultaneously supports data messages of different protocols to be transmitted in a network, and data conflict can not be generated.
All protocol messages participate in real-time scheduling, and the messages are sent first with high priority and then with low priority. The message transmission with high priority can be interrupted, and the message with low priority is retransmitted and transmitted after the message with high priority is transmitted. The priorities of the messages of different protocols can be flexibly configured according to practical application occasions.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention.
FIG. 1 is a flow chart of steps of a multi-protocol compatible EPA scheduling method of the present invention;
fig. 2 is a block diagram of a multi-protocol compatible EPA scheduler of the present invention.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will explain the specific embodiments of the present invention with reference to the accompanying drawings. It is evident that the drawings in the following description are only examples of the invention, from which other drawings and other embodiments can be obtained by a person skilled in the art without inventive effort.
For the sake of simplicity of the drawing, the parts relevant to the present invention are shown only schematically in the figures, which do not represent the actual structure thereof as a product. Additionally, in order to simplify the drawing for ease of understanding, components having the same structure or function in some of the drawings are shown schematically with only one of them, or only one of them is labeled. Herein, "a" means not only "only this one" but also "more than one" case.
The following describes in further detail a multi-protocol compatible EPA scheduling method and apparatus according to the present invention with reference to the accompanying drawings and specific embodiments. Advantages and features of the invention will become more apparent from the following description and from the claims.
Example 1
Referring to fig. 2, the present embodiment is based on an FPGA chip, and implements a multi-protocol compatible EPA scheduling device as shown in fig. 2, where the device specifically includes an application layer module, an EPA protocol stack, a non-EPA channel, a transmission management module, a configuration register, and a reception management module. In addition, the embodiment is provided with three interfaces, namely a configuration port, an ethernet communication interface and an application layer access interface. The configuration port is used for parameter configuration of the embodiment by the upper computer, and the configuration port can be an Ethernet port, a PCI E interface, a serial interface and the like; the ethernet communication interface is used for data intercommunication with other devices in this embodiment, and the application layer access interface is responsible for data transmission in the protocol application layer module.
The units of this embodiment will now be described, and the application layer module is connected to the EPA protocol stack and the non-EPA channel signal via the application layer access interface, respectively, and can transmit EPA application data to the EPA protocol stack or non-EPA application data to the non-EPA channel. Also, EPA application data may be received from the EPA protocol stack or non-EPA application data may be received from the non-EPA channel. The EPA protocol stack is used for packaging and caching the received EPA application data and then giving out a request sending message to the sending management module. The EPA protocol stack is realized or transplanted according to the EPA standard protocol, and no protocol change is made. The non-EPA channel is used for packaging and caching the non-EPA application data and then giving out a request sending message to the sending management module.
The sending management module is in signal connection with other external devices through an Ethernet interface, determines the scheduling priority of EPA application data and/or non-EPA application data according to the protocol and the message type of the request sending message, preferentially sends the message with high priority, and then sends the message with low priority. Further, the message with high priority can interrupt the message transmission with low relative priority, and the message with low priority is retransmitted and transmitted after the message with high priority is transmitted.
The configuration register obtains configuration parameters from an external upper computer through a configuration port, wherein the upper computer can be a PC or other main controllers. The configuration parameters include basic parameters of EPA protocol with parameter table as carrier: macro-period, period time, non-period time and transmission time offset, and multiprotocol compatible external protocol parameters, also taking parameter table as carrier, including protocol type, message type and message priority.
The receiving management module is connected with an external network through an Ethernet interface and is respectively connected with an EPA protocol stack and a non-EPA channel signal, and is used for receiving messages from other external devices through the network, judging and forwarding the protocol of the messages, transferring the EPA messages to the EPA protocol stack for receiving, transferring the non-EPA messages to the non-EPA channel for receiving, and then sending the application data after receiving to the application layer module for further processing.
In this embodiment, the network is connected to a 3-type communication protocol, which is an EPA protocol, an EtherCat protocol, and a normal ethernet protocol, respectively. EPA protocol number is 0x8907, etherCat protocol number is 0x88A4, IP message protocol number is 0x0800.EPA messages are of three types, respectively 0x10 (periodic messages), 0x20 (synchronous messages) and 0x30 (non-periodic messages) distinguished by the 14 th byte in the message; the common ethernet packet enumerates two types of I P packets, which are distinguished by the 15 th byte in the packet, namely 0x00 (icmp) and 0x10 (udp). The following table shows:
example 2
Referring to fig. 1, the present embodiment provides a multi-protocol-compatible EPA scheduling method, which is configured in a multi-protocol-compatible EPA scheduling device as in embodiment 1, and the implementation process thereof is as follows:
after powering up the EPA scheduling device, the upper computer configures parameters of the EPA scheduling device through the configuration port, wherein the configuration parameters comprise basic parameters of EPA protocol, such as macrocycle, cycle time, non-cycle time, transmission time offset and the like. The configuration parameters also include a configuration parameter table related to multi-protocol compatibility, such as protocol type, message type, and message priority.
After the configuration is completed, the device enters a normal working state.
And in the sending stage, the application layer module transmits EPA application data to the EPA protocol stack for packaging and caching, and triggers a sending request according to the arrival of the EPA protocol at the sending offset time. The application layer module also transmits non-EPA application data to enter a non-EPA channel for packaging and caching, and gives out a sending request.
And the to-be-transmitted management module performs scheduling transmission according to the configuration table after receiving the transmission request. And the module determines the scheduling priority of the current message according to the protocol and the message type of the message requested to be sent. First transmission with high priority and then transmission with low priority. The message transmission with high priority can be interrupted, and the message with low priority is retransmitted and transmitted after the message with high priority is transmitted. In this example, in order to ensure the real-time performance of EPA message scheduling and the accuracy of device synchronization, the periodic message and the synchronous message priority of EPA are set to be the highest. Because the periodic messages and the synchronous messages are respectively sent in the periodic time and the non-periodic time, the possibility of simultaneous sending does not exist, and the two messages have the same priority and cannot be preempted.
And finally, the receiving management module can receive the message from the network, judge and forward the message according to the message protocol, transfer the EPA message to an EPA protocol stack for receiving treatment, and transfer the non-EPA message to a non-EPA channel for receiving treatment. The received and processed application data is sent to an application layer module for further processing.
The embodiments of the present invention have been described in detail with reference to the drawings, but the present invention is not limited to the above embodiments. Even if various changes are made to the present invention, it is within the scope of the appended claims and their equivalents to fall within the scope of the invention.

Claims (8)

1. A multi-protocol compatible EPA scheduling method, configured in a multi-protocol compatible EPA scheduling device, comprising the steps of:
transmitting EPA application data to an EPA protocol stack of the EPA scheduler by an application layer module, and transmitting non-EPA application data to a non-EPA channel of the EPA scheduler by the application layer module;
the EPA application data and/or non-EPA application data are packaged and cached, and then a request sending message is sent to a sending management module of the EPA dispatching device;
and scheduling and sending the EPA application data and/or the non-EPA application data according to the preset parameter configuration.
2. The multi-protocol compatible EPA scheduling method of claim 1, further comprising configuring parameters of the EPA scheduler prior to the application layer delivering data, the configuration parameters comprising basic parameters of the EPA protocol: macro period, period time, non-period time and transmission time offset, and a configuration parameter table related to multi-protocol compatibility, wherein the configuration parameter table comprises protocol type, message type and message priority.
3. The multi-protocol compatible EPA scheduling method of claim 2 wherein said scheduling transmission of EPA application data and/or non-EPA application data according to a preset parameter configuration comprises the steps of:
determining the scheduling priority of EPA application data and/or non EPA application data according to the protocol and the message type of the request message, preferentially sending the message with high priority, and then sending the message with low priority; the message with high priority can interrupt the message transmission with low relative priority, and the message with low priority is retransmitted and transmitted after the message with high priority is transmitted.
4. The multi-protocol compatible EPA scheduling method of claim 2, further comprising the steps of: receiving the message from the external network, judging and forwarding the protocol of the message, transferring the EPA message to an EPA protocol stack for receiving treatment, transferring the non-EPA message to a non-EPA channel for receiving treatment, and then transferring the application data after receiving treatment to an application layer module for further treatment.
5. A multi-protocol compatible EPA scheduling device, to which the multi-protocol compatible EPA scheduling method as claimed in claims 1 to 4 is applied, comprising an application layer module, an EPA protocol stack, a non-EPA channel and a transmission management module;
the application layer module is respectively connected with the EPA protocol stack and the non-EPA channel signal and is used for transmitting EPA application data to the EPA protocol stack or transmitting non-EPA application data to the non-EPA channel;
the EPA protocol stack is used for packaging and caching EPA application data and then giving out a request sending message to the sending management module;
the non-EPA channel is used for packaging and caching the non-EPA application data and then giving out a request sending message to the sending management module;
the sending management module is in signal connection with other external devices through an Ethernet interface and is used for determining the scheduling priority of EPA application data and/or non-EPA application data according to the protocol and the message type of the request sending message, sending the message with high priority preferentially and then sending the message with low priority; the message with high priority can interrupt the message transmission with low relative priority, and the message with low priority is retransmitted and transmitted after the message with high priority is transmitted.
6. The EPA scheduler of claim 5, further comprising a configuration register for obtaining configuration parameters from an external host, the configuration parameters including basic parameters of EPA protocol: macro period, period time, non-period time and transmission time offset, and a configuration parameter table related to multi-protocol compatibility, wherein the configuration parameter table comprises protocol type, message type and message priority.
7. The multi-protocol compatible EPA scheduler according to claim 5 further comprising a receiving management module, wherein the receiving management module is connected to an external network signal via an ethernet interface, and is connected to the EPA protocol stack and the non-EPA channel signal, respectively, and is configured to receive a packet from an external network, determine and forward a protocol of the packet, transfer the EPA packet to the EPA protocol stack for receiving, transfer the non-EPA packet to the non-EPA channel for receiving, and then send the application data after receiving to the application layer module for further processing.
8. The multi-protocol compatible EPA scheduler of claim 5 wherein EPA application data is EPA messages, including periodic, synchronous and non-periodic messages, distinguished by byte 14 of EPA messages.
CN202310704024.4A 2023-06-14 2023-06-14 EPA scheduling method and device compatible with multiple protocols Pending CN116991121A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310704024.4A CN116991121A (en) 2023-06-14 2023-06-14 EPA scheduling method and device compatible with multiple protocols

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310704024.4A CN116991121A (en) 2023-06-14 2023-06-14 EPA scheduling method and device compatible with multiple protocols

Publications (1)

Publication Number Publication Date
CN116991121A true CN116991121A (en) 2023-11-03

Family

ID=88529122

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310704024.4A Pending CN116991121A (en) 2023-06-14 2023-06-14 EPA scheduling method and device compatible with multiple protocols

Country Status (1)

Country Link
CN (1) CN116991121A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117376424A (en) * 2023-12-08 2024-01-09 浙江国利信安科技有限公司 Method for transmitting data, electronic device and storage medium
CN117395213A (en) * 2023-12-08 2024-01-12 浙江国利信安科技有限公司 EPA exchanger, data transmission system and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117376424A (en) * 2023-12-08 2024-01-09 浙江国利信安科技有限公司 Method for transmitting data, electronic device and storage medium
CN117395213A (en) * 2023-12-08 2024-01-12 浙江国利信安科技有限公司 EPA exchanger, data transmission system and method
CN117376424B (en) * 2023-12-08 2024-02-23 浙江国利信安科技有限公司 Method for transmitting data, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN116991121A (en) EPA scheduling method and device compatible with multiple protocols
EP1198926B1 (en) Bridge for can to tcp/ip connection
US9451055B2 (en) PROFINET ethernet adapter
US11050585B2 (en) Data transmission method and communications network
CN109981435B (en) Gateway and communication system based on CAN-ModBus to MQTT
US20080005428A1 (en) Event signaling between peripheral modules and a processing unit
US8660117B2 (en) Packet switching device and local communication network with such a packet switching device
CN102843288A (en) Method for transmitting data packets
US20220050442A1 (en) Communication Device, Communication Terminal, Communication Device and Method for Operating a Communication System for Transmitting Time-Critical Data
CN105553795B (en) A method of the transmission standard Ethernet data in Industrial Ethernet
CN108111494A (en) A kind of protocol conversion apparatus of 1553B buses and FlexRay buses
US11564241B2 (en) Method for operating a radio communication system for an industrial automation system, radio communication system, base station and subscriber station
US11973826B2 (en) Data transmission method and automation communication network
EP2926506B1 (en) Communication module in an industrial network for reducing latency
CN105049312A (en) Industrial control ring network system and networking method thereof
CN109328449A (en) RTEX-EtherCAT protocol conversion apparatus and industrial control system
CN108156137A (en) A kind of method for converting protocol of 1553B buses and FlexRay buses
CN107168045A (en) A kind of communication redundancy control system based on EtherCAT
US20230090803A1 (en) Network Infrastructure Device, Communication Terminal and Method for Synchronizing Control Applications via a Communication Network for Transferring Time-Critical Data
CN103812797A (en) Method for transmitting data packets, and communication module for receiving data packets
US6907488B1 (en) Serial data transmission via a bus system
CN100521690C (en) System and component for realizing first component and second component communication
CN113271291A (en) Interface device between TSN device and non-TSN device
CN107222379A (en) A kind of method and apparatus of serial communication
CN111008169A (en) Low-cost high-speed communication bus and transmission control method thereof

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