Ethernet communication method and system

Insufficient data processing efficiency and insufficient fault tolerance are solved by using a data allocator in an Ethernet communication system to distribute pending data to the master and auxiliary controllers and switch to the backup controller for processing when the auxiliary controller fails. The problem of this achieves efficient data processing and fault tolerance.

CN114189519BActive Publication Date: 2024-11-22TRIDUCTOR TECH SUZHOU
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010896390.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-31
Publication Date
2024-11-22
Estimated Expiration
2040-08-31

AI Technical Summary

Technical Problem

The existing Ethernet communication system has low data processing efficiency in complex servo control systems, and the auxiliary controller fault tolerance is low, which can easily lead to communication failures.

Method used

The data allocator is used to distribute the pending data of the peripheral device to the main station controller and the auxiliary controller, and switch to the backup controller to process the data when the auxiliary controller fails, improving data processing efficiency and system fault tolerance.

Benefits of technology

The data is processed jointly by the main station controller and the auxiliary controller, which significantly improves data processing efficiency and prevents system paralysis when the auxiliary controller fails, enhancing fault tolerance and emergency response capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114189519B_ABST
    Figure CN114189519B_ABST
Patent Text Reader

Abstract

The present invention discloses an Ethernet communication method and system, the method comprising: a data distributor receives data to be processed from a peripheral device; the data distributor distributes the data and sends it to a main station controller, an auxiliary controller and a standby controller; when the auxiliary controller operates normally, the auxiliary controller processes the received data and uploads it to the main station controller; when the auxiliary controller fails, the standby controller processes the received data and uploads it to the main station controller; the present invention distributes the data input by the peripheral device so that the main station controller and the auxiliary controller process the data at the same time, thereby greatly improving the work efficiency, and at the same time increasing the device controller as a standby solution for the auxiliary controller, thereby improving the system fault tolerance rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of network communications, and in particular to an Ethernet communication method and system. Background Art

[0002] Ethernet is a computer local area network technology. The IEEE802.3 standard of the IEEE organization has formulated the technical standards for Ethernet, which stipulates the content including the connection of the physical layer, electronic signals and the media access layer protocol. Ethernet is currently the most commonly used local area network technology and has been widely used in various fields, replacing other local area network technologies such as token ring, FDDI and ARCNET.

[0003] EtherCAT (Ethernet Control Automation Technology) Industrial Ethernet has high transmission efficiency when the number of nodes increases, the amount of data increases, and the load is heavy, making it widely used in servo control systems. However, currently the requests and operations of the servo control system are all implemented through the EtherCAT master controller. When the structure of the servo control system is very complex, the EtherCAT master controller will generate more processing requests and larger computing requirements, thereby reducing the processing efficiency of the EtherCAT master controller.

[0004] In view of the above problems, Chinese patent application CN108390940A discloses an Ethernet communication system, including: a master station controller and an auxiliary controller; the master station controller and the auxiliary controller are connected in communication; the auxiliary controller is used to obtain the to-be-processed data of the peripheral device; the master station controller is used to receive the processing result sent by the auxiliary controller, and the processing result is the result after the auxiliary controller processes the to-be-processed data. The inventor found that although this scheme can reduce the amount of data processed by the master station controller, the to-be-processed data of the external device is simply processed by the auxiliary controller instead of the master station controller. There is still only one controller for the main body of this part of data processing. In terms of data processing efficiency, its efficiency is the same as that of the master station controller, except that the main body of data processing has been replaced, and the data processing efficiency is still very low; and if the auxiliary controller fails to work due to an abnormality, this will cause the data processing input of the external device to be abnormal, and the master station controller receives an abnormal processing result, which eventually leads to communication failure. Summary of the invention

[0005] Therefore, the present invention aims to solve the problems of low data processing efficiency and low fault tolerance of auxiliary controller failure in the prior art Ethernet communication system, thereby providing an Ethernet communication method and system.

[0006] To achieve the above object, the present invention provides the following solutions:

[0007] In a first aspect, an embodiment of the present invention provides an Ethernet communication system, including: a master station controller and an auxiliary controller, wherein the master station controller and the auxiliary controller are communicatively connected, and the Ethernet communication system includes:

[0008] A data distributor, which is in communication connection with the master station controller and the auxiliary controller respectively, and is used to distribute the to-be-processed data of the peripheral device to the master station controller and the auxiliary controller, and the master station controller and the auxiliary controller respectively process the received to-be-processed data;

[0009] The standby controller has the same structure and function as the auxiliary controller, and is respectively connected to the master station controller, the auxiliary controller and the data distributor for starting operation when the auxiliary controller fails.

[0010] In one embodiment, the data distributor comprises:

[0011] A data input interface, connected to the peripheral device, for obtaining the data to be processed from the peripheral device;

[0012] A distributor, connected to the data input interface, and configured to distribute the data to be processed into a first path of data and a second path of data, wherein the first path of data and the second path of data do not overlap;

[0013] A first output interface, connected to the master station controller for transmitting the first path of data to the master station controller;

[0014] A second output interface, connected to the distributor and the auxiliary controller respectively, and used to send the second path of data to the auxiliary controller;

[0015] The third output interface is connected to the distributor and the standby controller respectively, and is used to send the second path of data to the standby controller.

[0016] In one embodiment, the data distributor further comprises:

[0017] A gating module comprises a first input terminal, a first output terminal and a second output terminal, wherein the first input terminal is connected to the distributor, the first output terminal is connected to the second output interface, and the second output terminal is connected to the third output interface, and the gating module is used to control the gating between the distributor and the second output interface and between the distributor and the third output interface.

[0018] In one embodiment, the auxiliary controller comprises:

[0019] Processors, digital codecs, analog codecs, communication devices;

[0020] The processor is electrically connected to the digital codec, the analog codec, and the communication device respectively;

[0021] The digital codec and the analog codec are used to decode the data to be processed;

[0022] The processor is used to process the decoded data to be processed and generate a data processing result, and then send the data processing result to the communication device;

[0023] The communication device is used to upload the data processing result to the main station controller.

[0024] In one embodiment, the auxiliary controller further includes:

[0025] A disconnection detection module, used to generate an alarm signal when a disconnection signal is detected;

[0026] An overload protection module is electrically connected to the processor.

[0027] In one embodiment, the data distributor further comprises:

[0028] A clock generator, connected to the master station controller, the auxiliary controller, and the standby controller, for generating a stable clock signal;

[0029] A timing controller, connected to the distributor and the clock generator respectively, for applying time control to the operation signal;

[0030] The system controller is connected to the distributor and is used to determine the input and output status of the communication data.

[0031] In a second aspect, an embodiment of the present invention provides an Ethernet communication method, the method comprising the following steps:

[0032] The data distributor receives the data to be processed from the peripheral device;

[0033] The data distributor distributes the data and sends it to the master controller, the auxiliary controller and the standby controller;

[0034] When the auxiliary controller operates normally, the auxiliary controller processes the received data and uploads it to the main station controller;

[0035] When the auxiliary controller fails, the standby controller processes the received data and uploads it to the master controller;

[0036] The technical solution of the present invention has the following advantages: The present invention provides an Ethernet communication method and system, which distributes the data input by the peripheral device to the main station controller and the auxiliary controller by using a data distributor, so that the main station controller and the auxiliary controller can jointly process the input data, greatly improving the data processing efficiency.

[0037] On the other hand, by adding a device controller to the system, when the auxiliary controller fails, it can be replaced with a backup controller in time to process the data assigned to the auxiliary controller, avoiding system paralysis due to auxiliary controller failure and improving the fault tolerance and emergency response capabilities of the Ethernet system. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0039] Figure 1 A schematic diagram of the structure of an Ethernet communication system provided by an embodiment of the present invention;

[0040] Figure 2 Schematic diagram for data allocation in the prior art;

[0041] Figure 3 A flow chart of an Ethernet communication method provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0042] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0043] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0044] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, it can also be the internal connection of two components, it can be a wireless connection, or it can be a wired connection. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0045] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0046] Example 1

[0047] An embodiment of the present invention provides an Ethernet communication system, such as Figure 1 As shown, it includes: a master station controller 10 and an auxiliary controller 20, the master station controller 10 and the auxiliary controller 20 are communicatively connected, and the Ethernet communication system includes:

[0048] A data distributor 30 is connected to the master station controller 10 and the auxiliary controller 20 for distributing the to-be-processed data of the peripheral device to the master station controller 10 and the auxiliary controller 20, and the master station controller 10 and the auxiliary controller 20 process the received to-be-processed data respectively;

[0049] The data distributor is an array of AND gates, which is used to send data from a data source to multiple different channels as needed, such as Figure 2 As shown, the function of the data distributor is equivalent to a single-pole multi-throw switch with multiple outputs. The data distributor can be implemented with a unique address decoder. For example, a 3-line to 8-line decoder can distribute a data signal to 8 different channels. Since the functions of the decoder and the data distributor are similar, the decoder can also be reconnected to form another data distributor. In practical applications, the data distributor is selected according to the conditions, and the present invention is not limited here.

[0050] The backup controller 40 has the same structure and function as the auxiliary controller 20, and is respectively connected to the master station controller 10, the auxiliary controller 20 and the data distributor 30 for starting operation when the auxiliary controller 20 fails.

[0051] The backup controller is a backup solution when the auxiliary controller fails. It has the same structure and function as the auxiliary controller. When the auxiliary controller fails, the backup controller replaces the auxiliary controller to process data and uploads the processing results to the main station controller.

[0052] As an optional implementation, the backup controller can also be a backup solution for the main station controller, that is, the backup controller has the same structure and function as the main station controller. When the main station controller fails, the backup controller replaces the main station controller to process data.

[0053] As a further optional implementation, the standby controller can also be a backup solution for the master controller or the auxiliary controller, that is, when any one of the master controller and the auxiliary controller fails, the standby controller serves as its backup solution and replaces the failed controller to perform data processing. In practical applications, the standby controller can be set according to requirements, and the present invention is not limited thereto.

[0054] The embodiment of the present invention sets a data distributor and a backup controller, and uses the data distributor to distribute the data input by the peripheral device to the main station controller and the auxiliary controller, so that the main station controller and the auxiliary controller can jointly process the input data, which greatly improves the data processing efficiency. At the same time, a device auxiliary controller is added. When the auxiliary controller fails, it can be replaced with the backup controller in time to process the data allocated to the auxiliary controller, avoiding system paralysis due to the failure of the auxiliary controller, and improving the fault tolerance and emergency response capability of the Ethernet system.

[0055] As an optional implementation, the data distributor includes:

[0056] A data input interface, connected to the peripheral device, for obtaining the data to be processed from the peripheral device;

[0057] A distributor, connected to the data input interface, and configured to distribute the data to be processed into a first path of data and a second path of data, wherein the first path of data and the second path of data do not overlap;

[0058] A first output interface, connected to the master station controller for transmitting the first path of data to the master station controller;

[0059] A second output interface, connected to the distributor and the auxiliary controller respectively, and used to send the second path of data to the auxiliary controller;

[0060] The third output interface is connected to the distributor and the standby controller respectively, and is used to send the second path of data to the standby controller.

[0061] The standby controller is used as a backup device for the auxiliary controller, and the data processed should be the same as that of the auxiliary controller, so the third output interface is used to transmit the second data path. When the standby controller is used as a backup device for the master controller, the output interface connected to the standby controller transmits the first data path; when the standby controller is used as a backup device for the master controller or the auxiliary controller, the output interface connected to the standby controller transmits the first data path and / or the second data path. In practical applications, the standby controller can be set according to requirements, and the present invention is not limited thereto.

[0062] In the embodiment of the present invention, the third output interface is used to transmit the data required by the backup controller, which is beneficial for the backup controller to process and upload the second data in a timely manner when the auxiliary controller fails, thereby avoiding system paralysis due to the failure of the auxiliary controller and improving the fault tolerance and emergency response capabilities of the Ethernet system.

[0063] In one embodiment, the data distributor further comprises:

[0064] A gating module comprises a first input terminal, a first output terminal and a second output terminal, wherein the first input terminal is connected to the distributor, the first output terminal is connected to the second output interface, and the second output terminal is connected to the third output interface, and the gating module is used to control the gating between the distributor and the second output interface and between the distributor and the third output interface.

[0065] During use, when the auxiliary controller is in normal operating state, the selection module opens the first output port and sends the second data allocated by the distributor to the auxiliary controller through the first output port; when the auxiliary controller is in abnormal operating state, the selection module opens the second output port and sends the second data allocated by the distributor to the standby controller through the second output port.

[0066] In the embodiment of the present invention, by utilizing the selection module, it is determined whether to send the second data path to the auxiliary controller or the backup controller, thereby avoiding system paralysis caused by data loss due to failure of the auxiliary controller, improving the fault tolerance of the auxiliary controller, and also improving the emergency handling capability of the system.

[0067] As an optional implementation manner, the auxiliary controller includes:

[0068] Processors, digital codecs, analog codecs, communication devices;

[0069] The processor is electrically connected to the digital codec, the analog codec, and the communication device respectively;

[0070] The digital codec and the analog codec are used to decode the data to be processed;

[0071] The processor is used to process the decoded data to be processed and generate a data processing result, and then send the data processing result to the communication device;

[0072] The communication device is used to upload the data processing result to the main station controller.

[0073] The digital codec may include an absolute codec and an incremental codec. The digital codec specifically includes an encoder chip, a signal processing circuit and an impedance matching circuit electrically connected in sequence. The processor may utilize a SOC chip to implement corresponding functions. Of course, the processor may also utilize an FPGA chip, an MCU chip, etc. The present invention is not limited here.

[0074] The embodiment of the present invention utilizes a digital codec and an analog codec to decode the data to be processed and sends it to a processor. The processor processes the decoded data to generate a processing result, and then the communication device uploads the generated processing result to the main station controller, thereby achieving the purpose of the auxiliary controller sharing the workload of the main station controller and improving data processing efficiency.

[0075] As an optional implementation manner, the auxiliary controller further includes:

[0076] A disconnection detection module, used to generate an alarm signal when a disconnection signal is detected;

[0077] An overload protection module is electrically connected to the processor.

[0078] When the distributor,is in poor contact with the data input interface, the disconnection detection module,detects the disconnection signal and generates an alarm message, which may be an,audible or visual alarm;

[0079] The overload protection module is used to protect the safety of each module in the auxiliary controller. It can generally be achieved by installing an air switch or a fuse. The specific selection can be made according to actual conditions, and the present invention is not limited here.

[0080] The embodiment of the present invention ensures the circuit safety of the Ethernet system by providing a disconnection detection module and an overload protection module.

[0081] As an optional implementation manner, the data distributor further includes:

[0082] A clock generator, connected to the master station controller, the auxiliary controller, and the standby controller, for generating a stable clock signal;

[0083] A timing controller, connected to the distributor and the clock generator respectively, for applying time control to the operation signal;

[0084] The system controller is connected to the distributor and is used to determine the input and output status of the communication data.

[0085] The clock generator is a device used to generate clock signals. In the Ethernet system, all components perform calculations synchronously with the clock signal. Only through the control of the clock generator can the system device accurately process digital signals. If the clock is unstable, it is easy to cause errors in digital signal transmission and even cause system crashes. Commonly used clock generators include: crystal oscillators, RC oscillators, etc., which are not limited in this invention. The timing controller has strict requirements on the generation time, stabilization time, cancellation time and the relationship between various operation signals. Strict timing control can ensure the orderly operation of various functional components.

[0086] The embodiment of the present invention utilizes a clock generator to generate a stable clock signal, which facilitates the timing controller to orderly control various operation signals. At the same time, a system controller is added to monitor whether the input and output status of data is normal, thereby ensuring that the entire Ethernet communication system operates in an orderly and efficient manner.

[0087] Example 2

[0088] This embodiment provides an Ethernet communication method, such as Figure 3 As shown, the method comprises the following steps:

[0089] Step S501, the data distributor receives the data to be processed from the peripheral device;

[0090] Step S502, the data distributor distributes the data and sends it to the master controller, the auxiliary controller and the standby controller;

[0091] Step S503, when the auxiliary controller operates normally, the auxiliary controller processes the received data and uploads it to the main station controller;

[0092] Step S504: when the auxiliary controller fails, the standby controller processes the received data and uploads it to the master controller.

[0093] The embodiment of the present invention distributes the data input by the peripheral device to the main station controller and the auxiliary controller by using the data distributor, so that the main station controller and the auxiliary controller can jointly process the input data, which greatly improves the data processing efficiency. At the same time, a device controller is added to the system. When the auxiliary controller fails, it can be replaced with a standby controller in time to process the data allocated to the auxiliary controller, avoiding the system paralysis caused by the failure of the auxiliary controller, and improving the fault tolerance and emergency response capability of the Ethernet system.

[0094] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the invention.

Claims

1. An Ethernet communication system, comprising: A master station controller and an auxiliary controller, wherein the master station controller and the auxiliary controller are communicatively connected, wherein the Ethernet communication system comprises: A data distributor, which is in communication connection with the master station controller and the auxiliary controller respectively, and is used to distribute the to-be-processed data of the peripheral device to the master station controller and the auxiliary controller, and the master station controller and the auxiliary controller respectively process the received to-be-processed data; A standby controller, which has the same structure and function as the auxiliary controller, is respectively connected to the master station controller, the auxiliary controller and the data distributor for starting operation when the auxiliary controller fails; Wherein, the data distributor comprises: A data input interface, connected to the peripheral device, for obtaining the data to be processed from the peripheral device; A distributor, connected to the data input interface, and configured to distribute the data to be processed into a first path of data and a second path of data, wherein the first path of data and the second path of data do not overlap; A first output interface, connected to the master station controller for transmitting the first path of data to the master station controller; A second output interface, connected to the distributor and the auxiliary controller respectively, and used to send the second path of data to the auxiliary controller; A third output interface, connected to the distributor and the standby controller respectively, and used to send the second path of data to the standby controller; A gating module comprises a first input terminal, a first output terminal and a second output terminal, wherein the first input terminal is connected to the distributor, the first output terminal is connected to the second output interface, and the second output terminal is connected to the third output interface, and the gating module is used to control the gating between the distributor and the second output interface and between the distributor and the third output interface.

2. The system according to claim 1, characterized in that The auxiliary controller comprises: Processors, digital codecs, analog codecs, communication devices; The processor is electrically connected to the digital codec, the analog codec, and the communication device respectively; The digital codec and the analog codec are used to decode the data to be processed; The processor is used to process the decoded data to be processed and generate a data processing result, and then send the data processing result to the communication device; The communication device is used to upload the data processing result to the main station controller.

3. The system according to claim 2, characterized in that The auxiliary controller also includes: A disconnection detection module, used to generate an alarm signal when a disconnection signal is detected; An overload protection module is electrically connected to the processor.

4. The system according to claim 1, characterized in that The data distributor also includes: A clock generator, connected to the master station controller, the auxiliary controller, and the standby controller, for generating a stable clock signal; A timing controller, connected to the distributor and the clock generator respectively, for applying time control to the operation signal; The system controller is connected to the distributor and is used to determine the input and output status of the communication data.

5. An Ethernet communication method for the Ethernet communication system according to any one of claims 1 to 4, characterized in that: include: The data distributor receives the data to be processed from the peripheral device; The data distributor distributes the data and sends it to the master controller, the auxiliary controller and the standby controller; When the auxiliary controller operates normally, the auxiliary controller processes the received data and uploads it to the main station controller; When the auxiliary controller fails, the standby controller processes the received data and uploads it to the main controller.