CN110545270A - protocol conversion device, protocol conversion apparatus and method - Google Patents

protocol conversion device, protocol conversion apparatus and method Download PDF

Info

Publication number
CN110545270A
CN110545270A CN201910777966.9A CN201910777966A CN110545270A CN 110545270 A CN110545270 A CN 110545270A CN 201910777966 A CN201910777966 A CN 201910777966A CN 110545270 A CN110545270 A CN 110545270A
Authority
CN
China
Prior art keywords
network
protocol
chip
conversion device
protocol chip
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
CN201910777966.9A
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.)
BEIJING PEITIAN TECHNOLOGY Co Ltd
Original Assignee
BEIJING PEITIAN TECHNOLOGY 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 BEIJING PEITIAN TECHNOLOGY Co Ltd filed Critical BEIJING PEITIAN TECHNOLOGY Co Ltd
Priority to CN201910777966.9A priority Critical patent/CN110545270A/en
Publication of CN110545270A publication Critical patent/CN110545270A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Abstract

the application provides a protocol conversion device, which comprises a first network slave station protocol stack, a second network slave station protocol stack, a first network protocol chip and a second network protocol chip, wherein the first network slave station protocol stack receives a control instruction for electronic equipment sent by the first network protocol chip and generates an object dictionary instruction set; the second network master station protocol stack is used for packaging the object dictionary instruction set into a second network data frame, and the second network data frame is in a second network protocol format; storing the second network frame to a second network protocol chip according to a preset communication period, and reading the state and position information of the electronic equipment from the second network protocol chip, wherein the communication period is a period for communicating with the second network protocol chip; the state and position information of the electronic equipment is packaged into a first network data frame, and the first network data frame is stored in a first network protocol chip, so that the mutual use of industrial equipment supporting two protocols is realized, and the application range of the industrial equipment is expanded. The application also comprises a protocol conversion device and a protocol conversion method which adopt the protocol conversion device.

Description

Protocol conversion device, protocol conversion apparatus and method
[ technical field ] A method for producing a semiconductor device
the present application relates to the field of communications technologies, and in particular, to a protocol conversion device, a protocol conversion apparatus, and a protocol conversion method.
[ background of the invention ]
in the field of industrial control, the interconnection between various industrial control devices is becoming more and more important, and communication is also evolving from the earliest field bus to the current industrial ethernet.
Ethercat (ethernet Control Automation Technology) is an industrial ethernet which is widely used at present, is one of IEC61158 international standards, and has the advantages of high transmission speed, high real-time performance, accurate synchronization performance, capability of supporting 65535 slave stations at most, and capability of achieving 12.5us of the minimum interpolation period. The physical layer uses standard 100M Ethernet, the data link layer uses standard network card chip for the master station, and the slave station uses proprietary protocol chip. The RTEX (real express) bus servo and IO device also have wide application, and the RTEX industrial ethernet uses 100M ethernet for transmission, can support 32 slave stations at most, can achieve 83.3us as the minimum interpolation period, and the master station and the slave station of the RTEX both use proprietary protocol chips. However, the servo driver supporting the RTEX cannot be accessed to the EtherCAT network, and cannot realize the sharing of industrial equipment supporting two protocols, so that the application range of the industrial equipment is limited.
[ summary of the invention ]
The technical problem mainly solved by the application is to provide a protocol conversion device, a protocol conversion device and a method, so as to realize the sharing of industrial equipment supporting two protocols and expand the application range of the industrial equipment.
In order to solve the technical problem, the application adopts a technical scheme that: there is provided a protocol conversion device including:
the first network slave station protocol stack is used for receiving a control instruction for the electronic equipment, which is sent by the first network protocol chip, and generating an object dictionary instruction set according to the control instruction;
the second network master station protocol stack is used for packaging the object dictionary instruction set into a second network data frame, and the second network data frame is in a second network protocol format;
storing the second network frame to a second network protocol chip and reading the state and position information of the electronic equipment from the second network protocol chip according to a preset communication period, wherein the communication period is a period for communicating with the second network protocol chip;
and packaging the state and position information of the electronic equipment into a first network data frame, and storing the first network data frame to the first network protocol chip.
in order to solve the above technical problem, another technical solution adopted by the present application is: there is provided a protocol conversion apparatus including:
a protocol conversion device;
The first network interface circuit comprises a first network protocol chip, and the first network protocol chip is connected with the protocol conversion device and is connected with a first network;
The second network interface circuit comprises a second network protocol chip, and the second network protocol chip is connected with the protocol conversion device and is connected with a second network;
Wherein the protocol conversion device includes:
The first network slave station protocol stack receives a control instruction for the electronic equipment, which is sent by the first network protocol chip, and generates an object dictionary instruction set according to the control instruction;
The second network master station protocol stack encapsulates the object dictionary instruction set into a second network data frame, and the second network data frame is in a second network protocol format;
Storing the second network data frame to a second network protocol chip and reading the state and position information of the electronic equipment from the second network protocol chip according to a preset communication period, wherein the communication period is a period for communicating with the second network protocol chip;
and packaging the state and position information of the electronic equipment into a first protocol data frame, and storing the first network data frame to the first network protocol chip.
in order to solve the above technical problem, the present application adopts another technical solution that: provided is a protocol conversion method, including:
Receiving a control instruction for the electronic equipment, which is sent by a first network protocol chip, from a station protocol stack through a first network and generating an object dictionary instruction set according to the control instruction;
Packaging the object dictionary instruction set into a second network data frame through a second network master station protocol stack, wherein the second network data frame is in a second network protocol format;
Storing the second network frame to a second network protocol chip and reading the state and position information of the electronic equipment from the second network protocol chip according to a preset communication period, wherein the communication period is a period for communicating with the second network protocol chip;
And packaging the state and position information of the electronic equipment into a first network data frame, and storing the first network data frame to the first network protocol chip.
the beneficial effect of this application is: the method is characterized in that a control instruction of a servo driver received from a first network protocol chip is analyzed and converted into a second network data frame through a main control chip, the second network data frame is stored in a second network protocol chip, the state and position information of the servo driver is read from the second network protocol chip through the main control chip and is packaged into a first network data frame, and the first network data frame is stored in the first network protocol chip, so that the conversion between a first network protocol and a second network protocol is realized, the mutual use of industrial equipment supporting two protocols is realized, and the use range of the industrial equipment is expanded.
[ description of the drawings ]
FIG. 1 is a block diagram of a protocol conversion device according to the present application;
FIG. 2 is a block diagram of a protocol conversion device of the present application;
FIG. 3 is a schematic structural diagram of a protocol conversion device according to the present application;
fig. 4 is a flowchart illustrating a protocol conversion method according to the present application.
[ detailed description ] embodiments
For the purpose of making the technical solutions and advantages of the embodiments of the present application clearer, the following makes clear and complete descriptions of the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, and all other embodiments obtained by a person having ordinary skill in the art without making any inventive changes belong to the protection scope of the present application.
Fig. 1 is a block diagram of a protocol conversion device according to the present application. Referring to fig. 3, the protocol conversion device 1 includes:
the first network slave station protocol stack 11 is configured to receive a control instruction for the electronic device 10 sent by the first network protocol chip 20 and generate an object dictionary instruction set according to the control instruction;
a second network master station protocol stack 12, configured to encapsulate the object dictionary instruction set into a second network data frame, where the second network data frame is in a second network protocol format;
Storing the second network data frame to a second network protocol chip 30 according to a preset communication period, and reading the state and position information of the electronic device 10 from the second network protocol chip 30, wherein the communication period is a period for communicating with the second network protocol chip 30;
and encapsulating the state and position information of the electronic device 10 into a first network data frame, and storing the first network data frame to the first network protocol chip 20.
in this embodiment, the first network is an EtherCAT network, the second network is an RTEX network, the first network protocol chip 20 is an EtherCAT network protocol chip, the second network protocol chip 30 is an RTEX network protocol chip, and the electronic device 10 is a servo driver and is a servo driver conforming to an RTEX protocol.
The protocol conversion device 1 further includes a conversion control module 13, configured to, before receiving a control instruction for the servo driver 10 sent by the EtherCAT protocol chip 20:
Receiving an interrupt notification sent by the EtherCAT protocol chip 20; and
and triggering RTEX protocol data interaction interruption when the interruption notification is received.
The conversion control module 13 is further configured to resume RTEX protocol data interaction after reading the state and position information of the servo driver 10 from the RTEX protocol chip 30.
Specifically, the conversion control module 13 is responsible for state jump of the control program, when the EtherCAT protocol chip 20 acquires a control instruction, it will notify the random access memory that data arrives through interruption, at this time, the conversion control module 13 will read the acquired data frame from the EtherCAT protocol chip 20, and at the same time, store the response of the last instruction processing into the EtherCAT protocol chip 20, and then the conversion control module 13 will parse the data frame, and then convert and encapsulate the instruction into an RTEX data frame to be stored into the RTEX protocol chip 30, and the protocol conversion module needs to switch between interruption and the main program to ensure the real-time performance of the whole conversion process.
The protocol conversion device 1 further includes an error processing module 14, configured to monitor a program running state of the protocol conversion device 1, and enter an error processing program when detecting that the program running state of the protocol conversion device 1 is an error. If an error occurs, such as disconnection or data starvation, an error handling process needs to be entered for alarm and error handling, and then the main controller is waited for clearing the error.
The protocol conversion device 1 analyzes the control instruction received from the EtherCAT protocol chip 20 to obtain an EtherCAT protocol data frame, converts the EtherCAT protocol data frame into an RTEX protocol data frame, stores the RTEX protocol data frame in the RTEX protocol chip, and further controls the servo driver conforming to the RTEX protocol to work, and meanwhile, the protocol conversion device 1 reads the state and position information of the servo driver from the RTEX protocol chip, converts the state and position information of the servo driver into the EtherCAT protocol data frame, stores the EtherCAT protocol data frame in the EtherCAT protocol chip 20, and switches between an interruption state and a main program through the conversion control module 13 to ensure the real-time performance of the whole conversion process, thereby realizing the interoperability of industrial equipment supporting two protocols, and expanding the application range of the industrial equipment.
fig. 2 is a block diagram of a protocol conversion device according to the present application. The protocol conversion apparatus 100 includes a protocol conversion device 1, a first network interface circuit 2, and a second network interface 3.
The first network interface circuit 2 includes a first network protocol chip 20, and the first network protocol chip 20 is connected to the protocol conversion device 1 and is connected to a first network, such as an EtherCAT network.
and a second network interface circuit 3 including a second network protocol chip 30, wherein the second network protocol chip 30 is connected to the protocol conversion device 1 and is connected to a second network, such as an RTEX network.
The protocol conversion device 1 receives a control instruction for the electronic device 10 sent by the first network protocol chip 20, generates an object dictionary instruction set according to the control instruction, packages the object dictionary instruction set into a second network data frame, the second network data frame is in a second network protocol format, then stores the second network data frame to the second network protocol chip 30 according to a preset communication period, reads the state and the position information of the electronic device 10 from the second network protocol chip 30, wherein the communication period is a period for communicating with the second network protocol chip 30, packages the state and the position information of the electronic device 10 into a first protocol data frame, and stores the first network data frame to the first network protocol chip 20.
In this embodiment, the first network is an EtherCAT network, the second network is an RTEX network, the first network protocol chip 20 is an EtherCAT network protocol chip, the second network protocol chip 30 is an RTEX network protocol chip, the first network interface circuit 2 is an EtherCAT network interface circuit, and the second network interface circuit 3 is an RTEX network interface circuit; the electronic device 10 is a servo driver.
the protocol conversion device 1 is further configured to receive an interrupt notification sent by the EtherCAT protocol chip 20 before receiving a control instruction sent by the EtherCAT protocol chip 20 for the servo driver 10, trigger RTEX protocol data interaction interrupt when receiving the interrupt notification, and recover RTEX protocol data interaction after reading the state and position information of the servo driver 10 from the RTEX protocol chip 30.
Specifically, the protocol conversion device 1 is responsible for state jump of the control program, when the EtherCAT protocol chip 20 acquires a control instruction, it is notified that data arrives in the random access memory through interruption, at this time, the protocol conversion device 1 reads an acquired data frame from the EtherCAT protocol chip 20, and at the same time, stores a response of last instruction processing into the EtherCAT protocol chip 20, and then the protocol conversion device 1 parses the data frame, and then converts and encapsulates the instruction into an RTEX data frame to be stored into the RTEX protocol chip 30, and the protocol conversion device 1 needs to switch between the interruption and the main program to ensure real-time performance of the whole conversion process.
the protocol conversion device 1 is further configured to monitor a program running state of the protocol conversion device 1, and enter an error handling program when detecting that the program running state of the protocol conversion device 1 is incorrect. If an error occurs, such as disconnection or data starvation, an error handling process needs to be entered for alarm and error handling, and then the main controller is waited for clearing the error.
The protocol conversion apparatus 100 further includes a power circuit 4, a reset circuit 5, an indication circuit 6, and a JTAG circuit 7.
the power circuit 4 is connected to the protocol conversion device 1 and is configured to supply power to the protocol conversion device 1.
the reset circuit 5 is connected to the protocol conversion device 1, and is configured to reset the protocol conversion device 1.
the indicating circuit 6 is connected to the protocol conversion device 1 and configured to display a power supply state and a communication connection state of the protocol conversion device 1, where the communication connection state includes whether the second network interface circuit 3 enters a periodic communication state and whether the first network interface circuit 2 enters a periodic communication state. Specifically, the indicating circuit 6 includes three LED indicator lights, one of which is used to indicate whether the power supply state of the protocol conversion device 1 is normal, one of which is used to indicate whether the EtherCAT protocol chip enters the normal communication state, and the other of which is used to indicate whether the RTEX protocol chip enters the normal communication state.
The JTAG circuit 7 is connected with the protocol conversion device 1 and is used for writing the written control program into the protocol conversion device and debugging the program in the protocol conversion device on line.
In this embodiment, the protocol conversion device 1 is a main control chip, and the model thereof is ARM STM32F105, the model of the power supply chip adopted by the power supply circuit 4 is TPS62291 chip or TPS62290, is used for outputting 2.5V or 3.3V voltage, the type of a reset chip adopted by the reset circuit 5 is TPS386000, which is connected to a reset pin of the protocol conversion device 1, a second network interface circuit 3 comprising an RTEX protocol chip 30 (of the type MNM1221), an isolation chip and an RJ45 network interface, the second network interface circuit 3 is connected with the protocol conversion device 1 through an FSMC parallel bus, the first network interface circuit 2 comprises an EtherCAT protocol chip 20 (the model is LAN9252), an isolation chip and an RJ45 network interface, the first network interface circuit 2 is connected to the protocol conversion device 1 via a FSMC parallel bus, the first network interface circuit 2 further comprises a memory element, such as an EEPROM, for storing a configuration file.
further, the first interface circuit 2 and the second interface circuit 3 communicate with the protocol conversion device 1 through a variable Static Memory Controller (FSMC) parallel bus. The indication circuit 6 is connected to the protocol conversion device 1 through a General purpose input/output interface (GPIO). The joint test workgroup interface 7 is connected to an external emulator.
The protocol conversion device 1 analyzes the control instruction received from the EtherCAT protocol chip 20 to obtain an EtherCAT protocol data frame, converts the EtherCAT protocol data frame into an RTEX protocol data frame, stores the RTEX protocol data frame in the RTEX protocol chip, and further controls the servo driver conforming to the RTEX protocol to work, and meanwhile, the protocol conversion device 1 reads the state and position information of the servo driver from the RTEX protocol chip, converts the state and position information of the servo driver into the EtherCAT protocol data frame, stores the EtherCAT protocol data frame in the EtherCAT protocol chip 20, and switches between an interruption state and a main program through the conversion control module 13 to ensure the real-time performance of the whole conversion process, thereby realizing the interoperability of industrial equipment supporting two protocols, and expanding the application range of the industrial equipment. Fig. 3 is a schematic structural diagram of a protocol conversion device according to the present application.
The protocol conversion device 100 is connected to the electronic device 10. The electronic device 10 is a servo drive compliant with the RTEX protocol. In other embodiments, the electronic device may be other types of electronic devices as long as the purpose of the present application is satisfied.
the protocol conversion apparatus 100 includes a protocol conversion device 1, a first network interface circuit 2, and a second network interface 3.
the first network interface circuit 2 includes a first network protocol chip 20, and the first network protocol chip 20 is connected to the protocol conversion device 1 and is connected to a first network, such as an EtherCAT network.
and a second network interface circuit 3 including a second network protocol chip 30, wherein the second network protocol chip 30 is connected to the protocol conversion device 1 and is connected to a second network, such as an RTEX network.
Wherein the protocol conversion device 1 includes:
The first network slave station protocol stack 11 receives a control instruction for the electronic device 10 sent by the first network protocol chip 20 and generates an object dictionary instruction set according to the control instruction;
the second network master station protocol stack 12 is used for packaging the object dictionary instruction set into a second network data frame, and the second network data frame is in a second network protocol format;
And storing the second network data frame to a second network protocol chip 30 and reading the state and location information of the electronic device 10 from the second network protocol chip 30 according to a preset communication period, where the communication period is a period for communicating with the second network protocol chip 30, encapsulating the state and location information of the electronic device 10 into a first protocol data frame, and storing the first network data frame to the first network protocol chip 20.
In this embodiment, the first network is an EtherCAT network, the second network is an RTEX network, the first network protocol chip 20 is an EtherCAT network protocol chip, the second network protocol chip 30 is an RTEX network protocol chip, the first network interface circuit 2 is an EtherCAT network interface circuit, and the second network interface circuit 3 is an RTEX network interface circuit; the electronic device 10 is a servo driver.
The protocol conversion device 1 further includes a conversion control module 13, configured to receive an interrupt notification sent by the EtherCAT protocol chip 20 before receiving a control instruction sent by the EtherCAT protocol chip 20 for the servo driver 10, and trigger RTEX protocol data interaction interrupt when receiving the interrupt notification, where the conversion control module 13 is further configured to resume RTEX protocol data interaction after reading the state and the position information of the servo driver 10 from the RTEX protocol chip 30.
Specifically, the conversion control module 13 is responsible for state jump of the control program, when the EtherCAT protocol chip 20 acquires a control instruction, it will notify the random access memory that data arrives through interruption, at this time, the conversion control module 13 will read the acquired data frame from the EtherCAT protocol chip 20, and store the response of the last instruction processing into the EtherCAT protocol chip 20, and then the conversion control module 13 will parse the data frame, and then convert and encapsulate the instruction into an RTEX data frame and store the RTEX data frame into the RTEX protocol chip 30, and the conversion control module 13 needs to switch between the interruption and the main program to ensure the real-time performance of the whole conversion process.
The protocol conversion device 1 further includes an error processing module 14, configured to monitor a program running state of the protocol conversion device 1, and enter an error processing program when detecting that the program running state of the protocol conversion device 1 is incorrect. If an error occurs, such as disconnection or data starvation, an error handling process needs to be entered for alarm and error handling, and then the main controller is waited for clearing the error.
the protocol conversion apparatus 100 further includes a power circuit 4, a reset circuit 5, an indication circuit 6, and a JTAG circuit 7.
The power circuit 4 is connected to the protocol conversion device 1 and is configured to supply power to the protocol conversion device 1.
The reset circuit 5 is connected to the protocol conversion device 1, and is configured to reset the protocol conversion device 1.
the indicating circuit 6 is connected to the protocol conversion device 1 and configured to display a power supply state and a communication connection state of the protocol conversion device 1, where the communication connection state includes whether the second network interface circuit 3 enters a periodic communication state and whether the first network interface circuit 2 enters a periodic communication state. Specifically, the indicating circuit 6 includes three LED indicator lights, one of which is used to indicate whether the power supply state of the protocol conversion device 1 is normal, one of which is used to indicate whether the EtherCAT protocol chip enters the normal communication state, and the other of which is used to indicate whether the RTEX protocol chip enters the normal communication state.
The JTAG circuit 7 is connected with the protocol conversion device 1 and is used for writing the written control program into the protocol conversion device and debugging the program in the protocol conversion device on line.
In this embodiment, the protocol conversion device 1 is a main control chip, and the model thereof is ARM STM32F105, the model of the power supply chip adopted by the power supply circuit 4 is TPS62291 chip or TPS62290, is used for outputting 2.5V or 3.3V voltage, the type of a reset chip adopted by the reset circuit 5 is TPS386000, which is connected to a reset pin of the protocol conversion device 1, a second network interface circuit 3 comprising an RTEX protocol chip 30 (of the type MNM1221), an isolation chip and an RJ45 network interface, the second network interface circuit 3 is connected with the protocol conversion device 1 through an FSMC parallel bus, the first network interface circuit 2 comprises an EtherCAT protocol chip 20 (the model is LAN9252), an isolation chip and an RJ45 network interface, the first network interface circuit 2 is connected to the protocol conversion device 1 via a FSMC parallel bus, the first network interface circuit 2 further comprises a memory element, such as an EEPROM, for storing a configuration file. In other embodiments, the model of each chip is not limited to this, and may be selected according to specific requirements.
further, the first interface circuit 2 and the second interface circuit 3 communicate with the protocol conversion device 1 through a variable Static Memory Controller (FSMC) parallel bus. The indication circuit 6 is connected to the protocol conversion device 1 through a General purpose input/output interface (GPIO). The joint test workgroup interface 7 is connected to an external emulator.
In this embodiment, the isolation chips (not shown) in the first and second network interface circuits 2 and 3 are used to isolate signals from interference. The first and second network interface circuits 2 and 3 may be connected to a network through a network interface, or may be connected to the network in a wireless manner, which is specifically set according to the use requirement, and the wireless manner of connecting to the network is not described herein for the prior art.
please refer to fig. 4, which is a flowchart illustrating a protocol conversion method according to the present application. The method comprises the following steps:
Step S1: and receiving a control instruction for the electronic equipment sent by the first network protocol chip from the station protocol stack through the first network and generating an object dictionary instruction set according to the control instruction.
step S2: and packaging the object dictionary instruction set into a second network data frame through a second network master station protocol stack, wherein the second network data frame is in a second network protocol format.
Step S3: and storing the second network frame to a second network protocol chip according to a preset communication period, and reading the state and position information of the electronic equipment from the second network protocol chip, wherein the communication period is a period for communicating with the second network protocol chip.
step S4: and packaging the state and position information of the electronic equipment into a first network data frame, and storing the first network data frame to the first network protocol chip.
In this embodiment, the first network is an EtherCAT network, the second network is an RTEX network, the first network protocol chip is an EtherCAT network protocol chip, and the second network protocol chip is an RTEX network protocol chip; the electronic device is a servo driver.
Before receiving, from the station protocol stack through the first network, the control instruction for the electronic device sent by the first network protocol chip in step S3, the method includes:
Step S31: receiving an interrupt notification sent by a first network protocol chip through a conversion control module; and
step S32: and triggering a second network protocol data interaction interrupt when the interrupt notification is received.
After the step S3 of reading the status and the location information of the electronic device from the second network protocol chip, the method includes:
Step S33: and restoring the second network protocol data interaction through the conversion control module.
Specifically, the conversion control module 13 is responsible for controlling the state jump of the program, when the EtherCAT protocol chip 20 acquires a control instruction, it is notified that data arrives in the random access memory through interruption, at this time, the conversion control module 13 reads the acquired data frame from the EtherCAT protocol chip 20, and stores the response of the last instruction processing into the EtherCAT protocol chip 20, and then the conversion control module 13 parses the data frame, and then converts and encapsulates the instruction into an RTEX data frame to be stored into the RTEX protocol chip 30, and the conversion control module 13 needs to switch between the interruption and the main program to ensure the real-time performance of the whole conversion process.
further included after step S4 is:
Step S5: and monitoring the program running state of the protocol conversion device through the error processing module, and entering an error processing program when detecting that the program running state of the protocol conversion device is wrong.
specifically, the protocol conversion device 1 monitors the program running state of the protocol conversion device 1 through an error processing module 14, and when detecting that the program running state of the protocol conversion device 1 is incorrect, enters an error processing program. If an error occurs, such as disconnection or data starvation, an error handling process needs to be entered for alarm and error handling, and then the main controller is waited for clearing the error.
the protocol conversion device 1 analyzes the control instruction received from the EtherCAT protocol chip 20 to obtain an EtherCAT protocol data frame, converts the EtherCAT protocol data frame into an RTEX protocol data frame, stores the RTEX protocol data frame in the RTEX protocol chip, and further controls the servo driver conforming to the RTEX protocol to work, and meanwhile, the protocol conversion device 1 reads the state and position information of the servo driver from the RTEX protocol chip, converts the state and position information of the servo driver into the EtherCAT protocol data frame, stores the EtherCAT protocol data frame in the EtherCAT protocol chip 20, and switches between interruption and a main program through the conversion control module 13 to ensure the real-time performance of the whole conversion process.
The above description is only for the purpose of illustrating embodiments of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application or are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (12)

1. A protocol conversion device, comprising:
The first network slave station protocol stack is used for receiving a control instruction for the electronic equipment, which is sent by the first network protocol chip, and generating an object dictionary instruction set according to the control instruction;
the second network master station protocol stack is used for packaging the object dictionary instruction set into a second network data frame, and the second network data frame is in a second network protocol format;
storing the second network frame to a second network protocol chip and reading the state and position information of the electronic equipment from the second network protocol chip according to a preset communication period, wherein the communication period is a period for communicating with the second network protocol chip;
And packaging the state and position information of the electronic equipment into a first network data frame, and storing the first network data frame to the first network protocol chip.
2. The protocol conversion device of claim 1, wherein the first network is an EtherCAT network, the second network is an RTEX network, the first network protocol chip is an EtherCAT network protocol chip, and the second network protocol chip is an RTEX network protocol chip; the electronic device is a servo driver.
3. The protocol conversion device of claim 2, further comprising a conversion control module for, before receiving a control instruction for the servo driver sent by the EtherCAT protocol chip:
receiving an interrupt notification sent by an EtherCAT protocol chip; and
And triggering RTEX protocol data interaction interruption when the interruption notification is received.
4. The protocol conversion device of claim 3, wherein the conversion control module is further to: and recovering the RTEX protocol data interaction after reading the state and the position information of the servo driver from the RTEX protocol chip.
5. the protocol conversion device according to any one of claims 1 to 4, further comprising an error handling module for monitoring a program operating state of the protocol conversion device and entering an error handling program when an error in the program operating state of the protocol conversion device is detected.
6. a protocol conversion apparatus, characterized by comprising:
A protocol conversion device;
The first network interface circuit comprises a first network protocol chip, and the first network protocol chip is connected with the protocol conversion device and is connected with a first network;
the second network interface circuit comprises a second network protocol chip, and the second network protocol chip is connected with the protocol conversion device and is connected with a second network;
characterized in that the protocol conversion device comprises:
the first network slave station protocol stack receives a control instruction for the electronic equipment, which is sent by the first network protocol chip, and generates an object dictionary instruction set according to the control instruction;
The second network master station protocol stack encapsulates the object dictionary instruction set into a second network data frame, and the second network data frame is in a second network protocol format;
Storing the second network data frame to a second network protocol chip and reading the state and position information of the electronic equipment from the second network protocol chip according to a preset communication period, wherein the communication period is a period for communicating with the second network protocol chip;
and packaging the state and position information of the electronic equipment into a first protocol data frame, and storing the first network data frame to the first network protocol chip.
7. The protocol conversion apparatus according to claim 6, wherein the first network is an EtherCAT network, the second network is an RTEX network, the first network protocol chip is an EtherCAT network protocol chip, the second network protocol chip is an RTEX network protocol chip, the first network interface circuit is an EtherCAT network interface circuit, and the second network interface circuit is an RTEX network interface circuit; the electronic device is a servo driver.
8. The protocol conversion apparatus according to claim 7, wherein the protocol conversion device further comprises:
The conversion control module is used for receiving an interrupt notification sent by the EtherCAT protocol chip before receiving a control instruction for the servo driver sent by the EtherCAT protocol chip and triggering RTEX protocol data interaction interrupt when receiving the interrupt notification;
The conversion control module is also used for recovering RTEX protocol data interaction after reading the state and position information of the servo driver from the RTEX protocol chip;
the protocol conversion device also comprises an error processing module which is used for monitoring the program running state of the protocol conversion device and entering an error processing program when detecting that the program running state of the protocol conversion device is wrong.
9. the protocol conversion apparatus according to claim 6, further comprising:
The power circuit is connected with the protocol conversion device and used for supplying power to the protocol conversion device;
The reset circuit is connected with the protocol conversion device and is used for resetting the protocol conversion device; and
JTAG circuit, is used for writing the control program compiled into the said protocol conversion device and debugging the procedure in the said protocol conversion device online;
and the indicating circuit is connected with the protocol conversion device and is used for displaying the power supply state and the communication connection state of the protocol conversion device, and the communication connection state comprises whether the second network interface circuit enters a periodic communication state or not and whether the first network interface circuit enters a periodic communication state or not.
10. a protocol conversion method, comprising:
Receiving a control instruction for the electronic equipment, which is sent by a first network protocol chip, from a station protocol stack through a first network and generating an object dictionary instruction set according to the control instruction;
packaging the object dictionary instruction set into a second network data frame through a second network master station protocol stack, wherein the second network data frame is in a second network protocol format;
Storing the second network frame to a second network protocol chip and reading the state and position information of the electronic equipment from the second network protocol chip according to a preset communication period, wherein the communication period is a period for communicating with the second network protocol chip;
and packaging the state and position information of the electronic equipment into a first network data frame, and storing the first network data frame to the first network protocol chip.
11. the protocol conversion method according to claim 10, wherein the first network is an EtherCAT network, the second network is an RTEX network, the first network protocol chip is an EtherCAT network protocol chip, and the second network protocol chip is an RTEX network protocol chip; the electronic equipment is a servo driver;
Before receiving, from the station protocol stack via the first network, a control instruction for the electronic device sent by the first network protocol chip, the method includes:
receiving an interrupt notification sent by a first network protocol chip through a conversion control module; and
Triggering a second network protocol data interaction interruption when the interruption notification is received;
after reading the status and location information of the electronic device from the second network protocol chip, the method includes:
And restoring the second network protocol data interaction through the conversion control module.
12. the protocol conversion method of claim 10, wherein the method further comprises:
And monitoring the program running state of the protocol conversion device through the error processing module, and entering an error processing program when detecting that the program running state of the protocol conversion device is wrong.
CN201910777966.9A 2019-08-21 2019-08-21 protocol conversion device, protocol conversion apparatus and method Pending CN110545270A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910777966.9A CN110545270A (en) 2019-08-21 2019-08-21 protocol conversion device, protocol conversion apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910777966.9A CN110545270A (en) 2019-08-21 2019-08-21 protocol conversion device, protocol conversion apparatus and method

Publications (1)

Publication Number Publication Date
CN110545270A true CN110545270A (en) 2019-12-06

Family

ID=68711794

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910777966.9A Pending CN110545270A (en) 2019-08-21 2019-08-21 protocol conversion device, protocol conversion apparatus and method

Country Status (1)

Country Link
CN (1) CN110545270A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202077061U (en) * 2011-03-24 2011-12-14 华中科技大学 Multi-port and multi-network protocol converter
CN102291337A (en) * 2011-08-23 2011-12-21 国电南京自动化股份有限公司 Gateway for switching communication based on EtherCAT (Ethernet for Control and Automation Technology) protocol and Profibus-DP (Process Field Bus-Decentralized Periphery) protocol and communication method thereof
WO2018188070A1 (en) * 2017-04-14 2018-10-18 深圳配天智能技术研究院有限公司 Conversion apparatus and control system
CN109328449A (en) * 2017-03-22 2019-02-12 深圳配天智能技术研究院有限公司 RTEX-EtherCAT protocol conversion apparatus and industrial control system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202077061U (en) * 2011-03-24 2011-12-14 华中科技大学 Multi-port and multi-network protocol converter
CN102291337A (en) * 2011-08-23 2011-12-21 国电南京自动化股份有限公司 Gateway for switching communication based on EtherCAT (Ethernet for Control and Automation Technology) protocol and Profibus-DP (Process Field Bus-Decentralized Periphery) protocol and communication method thereof
CN109328449A (en) * 2017-03-22 2019-02-12 深圳配天智能技术研究院有限公司 RTEX-EtherCAT protocol conversion apparatus and industrial control system
WO2018188070A1 (en) * 2017-04-14 2018-10-18 深圳配天智能技术研究院有限公司 Conversion apparatus and control system

Similar Documents

Publication Publication Date Title
CN104516306B (en) The automated system of redundancy
CN110941218B (en) CAN bus controller test method
CN103440188A (en) Method and device for detecting PCIE hardware faults
CN108920373B (en) Embedded software debugging system and method thereof
CN112398714B (en) Backboard bus master station, system and data communication method thereof
CN111104272A (en) CAN bus controller testing method based on RX and TX
US10924371B2 (en) Method for monitoring a first node in a communications network and monitoring system
CN110967970A (en) High availability industrial automation controller and method of operating the same
KR20100133010A (en) Communication system, test device, communication device, communication method, and test method
CN103941625A (en) Can bus data transmission monitoring system
US9208008B2 (en) Method and apparatus for multi-chip reduced pin cross triggering to enhance debug experience
CN210183352U (en) Protocol conversion device and protocol conversion apparatus
CN110545270A (en) protocol conversion device, protocol conversion apparatus and method
CN116074397A (en) Data sharing system
CN109347207A (en) A kind of telecontrol device state monitoring apparatus and method based on substation
CN211786734U (en) PLC controller supporting deterministic data transmission
KR100724495B1 (en) Programmable logic controller duplex system and running method
CN110687854B (en) PA bus controller and PA bus control system
RU2705421C1 (en) Method of transmitting data over a bus, a communication system for realizing said method and an automatic protection device for preventing an emergency situation at a control object
CN101340357A (en) Debugging simulation system and method for remote monitoring terminal of subway safe door system
CN115705267A (en) Monitoring acquisition equipment, and main/standby switching method and system based on monitoring acquisition equipment
CN110679118B (en) Processing process data
CN109328449A (en) RTEX-EtherCAT protocol conversion apparatus and industrial control system
CN114095546B (en) Message monitoring method and device based on MQTT protocol
CN205486081U (en) Embedded outside memory bus extension profinet bus device of CPU

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