Ethernet gateway
By designing an Ethernet gateway containing multiple communication modules and MCUs, the interoperability and interconnection of the Ethernet bus and the 485 bus is achieved, solving the problem of mutual incompatibility between the two and meeting the needs of multi-load scenarios in industrial control occasions.
Patent Information
- Application Number
- CN202421446015.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-23
- Publication Date
- 2025-05-20
- Estimated Expiration
- 2034-06-23
AI Technical Summary
In the prior art, the Ethernet bus and the 485 bus are incompatible with each other, making it difficult to achieve interoperability and interconnection between the two. Especially in industrial control cases, the interference of external loads is large and it is difficult to meet the requirements of multi-load scenarios.
An Ethernet gateway is designed, including a power module, a 232 communication module, an Ethernet communication module, a MCU, a 485 communication module and an optocoupling isolation IO module. Through the control of the MCU, protocol data exchange between 485 and Ethernet is realized, and interconnection between the two is realized.
It realizes the interconnection between the Ethernet bus and the 485 bus, and can simultaneously receive information from 485 and Ethernet for conversion, meeting the requirements of industrial control occasions with large load interference.
Smart Images

Figure CN222888083U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of network communication, in particular to an Ethernet gateway. Background Art
[0002] In the prior art, 485 is a half-duplex or full-duplex communication bus. Its device nodes can be directly mounted on the bus, realizing a master-slave communication mode. Ethernet is also a full-duplex communication bus. However, Ethernet communicates point-to-point. If one-to-many or many-to-many communication is required, a router is needed. Generally, the Ethernet bus and the 485 bus are not compatible;
[0003] In the industrial control industry, customers often need to connect external loads, such as relays and solenoid valves, etc. These external loads have relatively large interference to the device and cannot meet the requirements of some multi-load scenarios. Summary of the Utility Model
[0004] The purpose of the utility model is to realize the interconnection and interoperability of the Ethernet bus and the 485 bus, and meet the requirements of industrial control occasions with relatively large load interference, and propose an Ethernet gateway.
[0005] In order to achieve the above purpose, the utility model adopts the following technical scheme:
[0006] An Ethernet gateway, comprising:
[0007] A power supply module, a first 232 communication module, an Ethernet communication module, an MCU, a 485 communication module, and an optocoupler isolation IO module;
[0008] The MCU is respectively connected to the power supply module, the first 232 communication module, the Ethernet communication module, the 485 communication module, and the optocoupler isolation IO module;
[0009] The power supply module is used to provide electrical energy for the gateway device, and the first 232 communication module, the 485 communication module, and the Ethernet communication module are used to provide network communication functions; the optocoupler isolation IO module is one or more isolated IO ports for connecting industrial control devices, and the MCU is used to control the power supply module, the first 232 communication module, the Ethernet communication module, the 485 communication module, and the optocoupler isolation IO module.
[0010] Preferably, the Ethernet gateway further comprises a status indication module; the MCU is connected to the status indication module, and the status indication module is used to indicate the status of the gateway device.
[0011] Preferably, the Ethernet gateway further includes: a second power module and a second 232 communication module; the second power module and the second 232 communication module are respectively connected to the Ethernet gateway; the second power module provides electrical energy for the second 232 communication module.
[0012] Preferably, the Ethernet gateway is also connected to an external load; the external load includes a relay and a solenoid valve to drive the external load.
[0013] Preferably, two TVS tubes, namely TVS3 and TVS4, are provided at the interface end of the first 232 communication module.
[0014] Preferably, the TVS tube TVS3 and the TVS tube TVS4 are respectively connected to the second port and the third port of the DB9 connector.
[0015] Preferably, the first port and the sixth port of the DB9 connector are respectively connected to a first resettable fuse and a second resettable fuse; the first resettable fuse and the second resettable fuse are used to protect against output current overload.
[0016] Preferably, the fourth port, the fifth port, and the seventh to ninth ports of the DB9 connector are respectively grounded.
[0017] Preferably, the TVS tube TVS3 is connected to the second port through the RS232-RX interface, and the TVS tube TVS4 is connected to the third port through the RS232-TX interface.
[0018] Preferably, one end of the Ethernet gateway is connected to the master station and the other end is connected to the slave station.
[0019] Compared with the prior art, the Ethernet gateway in the embodiment of the present utility model includes: a power module, a first 232 communication module, an Ethernet communication module, an MCU, a 485 communication module, and an opto-isolated IO module; the MCU is respectively connected to the power module, the first 232 communication module, the Ethernet communication module, the 485 communication module, and the opto-isolated IO module; the power module is used to provide electrical energy for the gateway device, and the first 232 communication module, the 485 communication module, and the Ethernet communication module are used to provide network communication functions; the opto-isolated IO module is one or more isolated IO ports for connecting industrial control devices, and the MCU is used to control the power module, the first 232 communication module, the Ethernet communication module, the 485 communication module, and the opto-isolated IO module; since 485 is a half-duplex communication method while Ethernet is a full-duplex communication, and their physical layer implementations are also different, through the exchange of the gateway in this application, information from both 485 and Ethernet can be received simultaneously for conversion, realizing protocol data exchange in the communication network, thereby achieving communication from 485 to Ethernet, realizing the interconnection between the Ethernet bus and the 485 bus, and one or more isolated IO ports can meet the requirements of industrial control occasions with relatively large load interference. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features, and advantages of the exemplary embodiments of the present disclosure will become readily understood. In the drawings, several embodiments of the present disclosure are shown by way of illustration and not limitation, and like or corresponding reference numerals denote like or corresponding parts, wherein:
[0021] Figure 1 Schematic diagram of an Ethernet gateway proposed by the present utility model;
[0022] Figure 2 Schematic diagram of another Ethernet gateway proposed by the present utility model;
[0023] Figure 3 Schematic diagram of another Ethernet gateway proposed by the present utility model;
[0024] Figure 4 Schematic diagram of a two TVS tubes close to the interface proposed by the present utility model;
[0025] Figure 5 Schematic diagram of the connection between the master station and the slave station proposed by the present utility model;
[0026] Figure 6 Schematic diagram of the network hierarchical structure of an Ethernet gateway proposed by the present utility model. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0027] Next, the technical solutions in the embodiments of the present disclosure will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of the present disclosure.
[0028] The following will describe in detail the specific implementation manners of the present disclosure in conjunction with the accompanying drawings.
[0029] Referring to Figure 1 , a schematic diagram of an Ethernet gateway according to an embodiment of the present invention is shown, including:
[0030] A power supply module, a first 232 communication module, an Ethernet communication module, an MCU, a 485 communication module, and an optocoupler isolation IO module;
[0031] Further, the MCU is respectively connected to the power supply module, the first 232 communication module, the Ethernet communication module, the 485 communication module, and the optocoupler isolation IO module;
[0032] In the embodiment of the present invention, the power supply module is used to provide electrical energy for the gateway device, and the first 232 communication module, the 485 communication module, and the Ethernet communication module are used to provide network communication functions; the optocoupler isolation IO module is one or more isolated IO ports for connecting industrial control devices, and the MCU is used to control the power supply module, the first 232 communication module, the Ethernet communication module, the 485 communication module, and the optocoupler isolation IO module.
[0033] Further applied to the embodiment of the present invention, the MCU may include multiple types of chips, which can control multiple modules, such as the above-mentioned power supply module, the first 232 communication module, the Ethernet communication module, the 485 communication module, the optocoupler isolation IO module, etc., to achieve control functions. The power supply module may include a charging device or a battery device. Among them, the charging device may include multiple types of adapters and charging interfaces, and the embodiment of the present invention does not limit this too much; further, the battery device may be multiple types of batteries such as lithium batteries, and the embodiment of the present invention does not limit this too much.
[0034] Specifically, the first 232 communication module, the Ethernet communication module, and the 485 communication module are communication modules, so that the device has multiple communication functions. In addition, other multiple communication modules may also be included, such as a 422 communication module, a CAN (Controller Area Network) bus communication module, etc., and the embodiment of the present invention does not limit this.
[0035] Furthermore, the opto-isolated IO module in the embodiment of the present utility model may refer to one or more isolated IO ports, which can meet the requirements of industrial control scenarios with relatively large load interference. For example, in the industrial control industry, in scenarios where equipment often needs to connect relays and solenoid valves, that is, the Ethernet gateway is also connected to an external load; the external load includes relays and solenoid valves, achieving the technical effect of driving the external load. Of course, the solution of the present application may also include other types of external loads, and the embodiment of the present utility model does not impose too many restrictions on this.
[0036] The Ethernet gateway in the embodiment of the present utility model includes: a power supply module, a first 232 communication module, an Ethernet communication module, an MCU, a 485 communication module, and an opto-isolated IO module; the MCU is respectively connected to the power supply module, the first 232 communication module, the Ethernet communication module, the 485 communication module, and the opto-isolated IO module; the power supply module is used to provide electrical energy for the gateway device, and the first 232 communication module, the 485 communication module, and the Ethernet communication module are used to provide network communication functions; the opto-isolated IO module is one or more isolated IO ports for connecting industrial control devices, and the MCU is used to control the power supply module, the first 232 communication module, the Ethernet communication module, the 485 communication module, and the opto-isolated IO module; realizing the interconnection and interoperability of the Ethernet bus and the 485 bus, and one or more isolated IO ports can meet the requirements of industrial control scenarios with relatively large load interference.
[0037] Refer to Figure 2 , which shows a schematic diagram of another Ethernet gateway in the embodiment of the present utility model. The Ethernet gateway includes: a status indication module; the MCU is connected to the status indication module, and the status indication module is used to indicate the status of the gateway device. For example, the status indication module may include a status indicator light or a status indication screen, etc. The status indication screen may include an LED display, an LCD liquid crystal display, an OLED display, etc., and the embodiment of the present utility model does not impose too many restrictions on this.
[0038] Refer to Figure 3 , which shows a schematic diagram of another Ethernet gateway in the embodiment of the present utility model. The Ethernet gateway further includes: a second power supply module and a second 232 communication module; the second power supply module is connected to the Ethernet gateway, and the second 232 communication module is connected to the Ethernet gateway; the second power supply module is used to provide electrical energy for the second 232 communication module.
[0039] In the embodiment of the present utility model, two 232 communication modules may also be provided. The second 232 communication module and the first 232 communication module may share one power supply module or multiple power supply modules, with simpler wiring, higher reliability, and also saving one power supply module, reducing the overall equipment cost.
[0040] Specifically, the second 232 communication module does not need to be provided with a power module, but shares a second power module with the first 232 communication module in the Ethernet gateway. That is, in this embodiment, a second power module can be set to be connected to the Ethernet gateway of the present application, and the second power module is built-in. The second 232 communication module can be powered through the Ethernet gateway. This reduces the wiring difficulty, has higher reliability, reduces the failure rate, and reduces the setting of the power module, so the overall cost will be lower.
[0041] Refer to Figure 4 , which shows a schematic diagram of two TVS tubes close to the interface in an embodiment of the present invention. Two TVS tubes, TVS3 and TVS4, are provided at the interface end of the first 232 communication module. It should be noted that TVS3 and TVS4 are only examples in the embodiment of the present invention, and other TVS tubes, such as TVS5 and TVS6, may also be included. The embodiment of the present invention does not impose too many restrictions on this. Further, other numbers of TVS tubes may also be set, and the embodiment of the present invention does not impose too many restrictions on this.
[0042] In further application of the embodiment of the present invention, the TVS tube TVS3 and the TVS tube TVS4 are respectively connected to the second port and the third port of the DB9 connector; as Figure 4 shown, the TVS tube TVS3 and the TVS tube TVS4 are respectively connected to the second port and the third port of the DB9 connector.
[0043] Specifically, TVS3 and TVS4 are transient suppression diodes. In the normal state, the transient suppression diodes are in a cut-off state. However, when the voltage exceeds a certain amplitude, for example, 13V, TVS3 and TVS4 will break down and conduct. A large current can flow through them in an instant, so that the interference voltage crosstalked from the external signal line can be consumed.
[0044] In practical applications, the model of the DB9 connector can include DB9M2-S, etc. The embodiment of the present invention does not impose too many restrictions on the model of the DB9 connector. DB9M2-S can be used to connect to an external load. The circuit signal of the present application is connected to the external load through this DB9M2-S connector.
[0045] In addition, the first port and the sixth port of the DB9 connector are respectively connected to a first resettable fuse and a second resettable fuse; the first resettable fuse and the second resettable fuse are used to protect against output current overload. The first resettable fuse F1 and the second resettable fuse F2 are used to protect against output current overload. When the output load is too large, for example, when a short circuit occurs, a large current will flow through F1 or F2, and then they will melt due to heat generation; however, F1 and F2 are resettable, that is, after the overcurrent fault is removed, F1 and F2 return to normal.
[0046] On the other hand, the fourth port, the fifth port, and the seventh to ninth ports of the DB9 connector are respectively grounded.
[0047] Specifically, the TVS tube TVS3 is connected to the second port through the RS232-RX interface, and the TVS tube TVS4 is connected to the third port through the RS232-TX interface.
[0048] Furthermore, the tenth port and the eleventh port of the B9 connector are connected to the PE line. It should be noted that the PE line is a conductor specifically used to ground the exposed conductive parts of electrical devices.
[0049] Refer to Figure 5 , which shows a connection schematic diagram of a master station and a slave station in an embodiment of the present invention. One end of the Ethernet gateway is connected to the master station, and the other end is connected to the slave station.
[0050] Refer to Figure 6 , which shows a network hierarchical structure schematic diagram of an Ethernet gateway in an embodiment of the present invention. Among them, the network hierarchical structure includes a data exchange layer, a communication physical layer, and basic function modules; specifically, the data exchange layer includes an Ethernet data exchange module and a 485 data exchange module, and both implement the function of protocol data exchange; further, the communication physical layer may include an MCU, an Ethernet communication module, and a 485 communication module. The MCU communicates with the Ethernet communication module and the 485 communication module respectively to form the communication physical layer. The above-mentioned Ethernet data exchange module and 485 data exchange module are respectively connected to each module of the communication physical layer. On the other hand, the basic function modules may include a power supply module, a first 232 communication module, a 485 communication module, an optocoupler isolation IO module, and a status indication module. The above-mentioned power supply module, first 232 communication module, 485 communication module, optocoupler isolation IO module, and status indication module are respectively connected to the MCU, and the basic functions of multiple modules are realized through the control function of the MCU.
[0051] The Ethernet of this application is between the master station and the slave stations. The slave stations are Node 1 to Node N, which can refer to external loads such as relays and solenoid valves. The master station and the Ethernet gateway of this application use Ethernet for data transmission. Therefore, the master station and the Ethernet gateway of this application can only be connected in a one-to-one manner. The Ethernet gateway of this application and the slave nodes are connected by a 485 bus. Since the 485 bus is a multi-node connection bus, multiple nodes can be connected in parallel to a single 485 bus. The Ethernet gateway of this application converts the Ethernet protocol into 485, acting as a protocol gateway, enabling direct data transmission for both the master station and the slave stations, thus solving the problem of one-to-many nodes in Ethernet.
[0052] In the above description of this specification, unless otherwise clearly specified and limited, terms such as "fixed", "installed", "connected" or "coupled" should be understood in a broad sense. For example, for the term "connected", it can be a fixed connection, a detachable connection, or integrated; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, or it can be the internal communication of two components or the interaction relationship between two components. Therefore, unless otherwise clearly limited in this specification, those skilled in the art can understand the specific meaning of the above terms in this utility model according to specific circumstances.
[0053] Based on the above description of this specification, those skilled in the art can also understand the following terms used. For example, terms indicating orientation or position relationship such as "upper", "lower", "front", "rear", "left", "right", "length", "width", "thickness", "vertical", "horizontal", "top", "bottom", "inner", "outer", "axial", "radial", "circumferential", "center", "longitudinal", "transverse", "clockwise" or "counterclockwise" are based on the orientation or position relationship shown in the drawings of this specification. These are only for the purpose of facilitating the description of the solution of this utility model and simplifying the description, rather than explicitly or implicitly indicating that the device or component involved must have the specific orientation, be constructed and operated in the specific orientation. Therefore, the above terms of orientation or position relationship cannot be understood or interpreted as a limitation to the solution of this utility model.
[0054] In addition, the terms "first" or "second" etc. used in this specification to refer to numbers or ordinals are only for descriptive purposes and cannot be understood as explicitly or implicitly indicating relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" or "second" may explicitly or implicitly include at least one such feature. In the description of this specification, the meaning of "plural" is at least two, such as two, three or more, etc., unless otherwise clearly and specifically limited.
[0055] Although this specification has shown and described multiple embodiments of the present utility model, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will think of many changes, alterations, and alternative ways without departing from the spirit and concept of the present utility model. It should be understood that various alternative solutions to the embodiments of the present utility model described herein may be adopted in the practice of the present utility model. The appended claims are intended to define the protection scope of the present utility model and thus cover the module compositions, equivalents, or alternative solutions within the scope of these claims.
Claims
1. An Ethernet gateway, characterized in that: include: Power module, first 232 communication module, Ethernet communication module, MCU, 485 communication module, optocoupler isolation IO module; The MCU is respectively connected to the power module, the first 232 communication module, the Ethernet communication module, the 485 communication module, and the optical coupling isolation IO module; The power module is used to provide power to the gateway device, and the first 232 communication module, 485 communication module and Ethernet communication module are used to provide network communication functions; the optocoupler isolation IO module is one or more isolated IO ports used to connect industrial control equipment, and the MCU is used to control the power module, the first 232 communication module, the Ethernet communication module, the 485 communication module, and the optocoupler isolation IO module.
2. The Ethernet gateway according to claim 1, characterized in that: The Ethernet gateway further comprises a status indication module; the MCU is connected to the status indication module, and the status indication module is used to indicate the status of the gateway device.
3. The Ethernet gateway according to claim 1, characterized in that: The Ethernet gateway further includes: a second power supply module and a second 232 communication module; the second power supply module and the second 232 communication module are respectively connected to the Ethernet gateway; the second power supply module provides power for the second 232 communication module.
4. The Ethernet gateway according to claim 1, characterized in that: The Ethernet gateway is also connected to an external load; the external load includes a relay and a solenoid valve.
5. The Ethernet gateway according to claim 1, characterized in that: The interface end of the first 232 communication module is provided with two TVS tubes: TVS3 and TVS4.
6. The Ethernet gateway according to claim 5, characterized in that: The TVS tube TVS3 and the TVS tube TVS4 are connected to the second port and the third port of the DB9 connector respectively.
7. The Ethernet gateway according to claim 6, characterized in that: The first port and the sixth port of the DB9 connector are connected to a first resettable fuse and a second resettable fuse respectively; the first resettable fuse and the second resettable fuse are used to protect the output current from overload.
8. The Ethernet gateway according to claim 6, characterized in that: The fourth port, the fifth port, and the seventh port to the ninth port of the DB9 connector are grounded respectively.
9. The Ethernet gateway according to claim 6, characterized in that: The TVS tube TVS3 is connected to the second port via an RS232-RX interface, and the TVS tube TVS4 is connected to the third port via an RS232-TX interface.
10. The Ethernet gateway according to claim 5, characterized in that: One end of the Ethernet gateway is connected to the master station, and the other end is connected to the slave station.