Communication system
By designing a communication system that includes serial communication equipment, communication gateway equipment and Ethernet communication equipment, the problem of inability to communicate directly between serial and Ethernet equipment is solved, and a longer communication distance and higher communication speed are achieved.
Patent Information
- Application Number
- CN202421322807.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2034-06-11
AI Technical Summary
In the prior art, there is a compatibility problem between the Modbus RTU and the Modbus TCP/IP protocol, which leads to the inability to communicate directly between the serial port device and the Ethernet device, which increases costs and limits the communication distance and speed.
A communication system is designed, including serial communication equipment, communication gateway equipment and Ethernet communication equipment. The data conversion between serial communication data and Ethernet communication data is performed through the communication gateway equipment to ensure that the distance between the communication gateway equipment and the serial communication equipment is smaller than the distance between the Ethernet communication equipment.
The communication between serial port equipment and Ethernet equipment is realized, and the communication distance and communication speed between the two devices are improved, avoiding the problems of increasing costs and reducing communication performance.
Smart Images

Figure CN222638548U_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular, to a communication system. Background Art
[0002] Modbus rtu is a simple, inquiry-based communication protocol that uses command line instructions to exchange data. Each time a command is sent, it is necessary to wait for a return message. Modbus has become the industry standard for communication protocols in the industrial field and is a commonly used connection method between industrial electronic equipment.
[0003] Modbus TCP / IP protocol is mainly used in Internet or Intranet, while Ethernet has long transmission distance and fast transmission speed, making its application scope more extensive.
[0004] Most third-party serial devices use the modbusrtu communication protocol based on the RS485 serial port by default, while high-end Ethernet controllers such as Siemens SIMATIC S7-1200 use the modbustcp communication protocol based on Ethernet by default, resulting in the inability of direct communication between the two devices. If an RS485 communication module is added to the controller side, the cost will increase, and the communication distance and speed will also be affected. Utility Model Content
[0005] The purpose of the present disclosure is to provide a communication system, which can realize communication between a serial port device and an Ethernet device, and improve the communication distance between the two devices and improve the communication speed between the two devices.
[0006] In order to achieve the above-mentioned object, an embodiment of the present disclosure provides a communication system, the communication system comprising: a serial communication device, a communication gateway device and an Ethernet communication device;
[0007] The serial communication device, the communication gateway device and the Ethernet communication device are connected in series with each other;
[0008] The communication gateway device is used for data conversion between serial communication data of the serial communication device and Ethernet communication data of the Ethernet communication device. The first distance between the communication gateway device and the serial communication device is smaller than the second distance between the communication gateway device and the Ethernet communication device.
[0009] Optionally, the receiving end of the serial communication device is connected to the sending end of the serial port interface of the communication gateway device, and the sending end of the serial communication device is connected to the receiving end of the serial port interface of the communication gateway device;
[0010] The Ethernet interface of the communication gateway device is connected to the Ethernet interface of the Ethernet communication device.
[0011] Optionally, the optical fiber interface of the communication gateway device is connected to the optical fiber interface of the Ethernet communication device.
[0012] Optionally, there are multiple serial port communication devices, the receiving ends of the multiple serial port communication devices are connected to each other, and the sending ends of the multiple serial port communication devices are connected to each other;
[0013] The receiving ends of the plurality of serial communication devices are connected to the sending end of the serial port interface of the communication gateway device, and the sending ends of the plurality of serial communication devices are connected to the receiving end of the serial port interface of the communication gateway device.
[0014] Optionally, a first serial port communication device among the plurality of serial port communication devices is provided with a terminal resistor.
[0015] Optionally, the serial communication device includes any one of the following:
[0016] RS485 communication equipment, RS422 communication equipment, RS232 communication equipment.
[0017] Optionally, the communication gateway device includes a modbus gateway device.
[0018] Optionally, the Ethernet communication device includes an Ethernet communication device of model SIMATIC S7-1200.
[0019] Optionally, the serial port communication device and the communication gateway device use a serial port-based modbusrtu protocol for data communication.
[0020] Optionally, the Ethernet communication device and the communication gateway device use the Ethernet-based modbustcp protocol for data communication.
[0021] In summary, the embodiment of the present disclosure provides a communication system, the communication system comprising: a serial communication device, a communication gateway device and an Ethernet communication device; the serial communication device, the communication gateway device and the Ethernet communication device are connected in series with each other; the communication gateway device is used for data conversion between the serial communication data of the serial communication device and the Ethernet communication data of the Ethernet communication device, and the first distance between the communication gateway device and the serial communication device is less than the second distance between the communication gateway device and the Ethernet communication device. The embodiment of the present disclosure can realize the communication between the serial port device and the Ethernet device, and improve the communication distance between the two devices, and improve the communication speed between the two devices.
[0022] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
[0024] Figure 1 The invention is a schematic diagram of a communication system according to an exemplary embodiment.
[0025] Figure 2 It is a schematic diagram of another communication system according to an exemplary embodiment.
[0026] Figure 3 is a schematic diagram of yet another communication system according to an exemplary embodiment. DETAILED DESCRIPTION
[0027] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
[0028] It should be understood that the term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0029] It should be noted that the concepts of "first", "second", etc. mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units. The modifications of "one" and "multiple" mentioned in the present disclosure are illustrative and not restrictive. Those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more". In the description of the present disclosure, unless otherwise specified, "multiple" refers to two or more than two, and other quantifiers are similar; "at least one item", "one item or multiple items" or similar expressions refer to any combination of these items, including any combination of single items or plural items.
[0030] Although operations or steps are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood that it is required to perform these operations or steps in the specific order shown or in a serial order, or to perform all the operations or steps shown to obtain the desired results. In the embodiments of the present disclosure, these operations or steps can be performed in series; these operations or steps can also be performed in parallel; or some of these operations or steps can be performed.
[0031] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only for illustrative purposes and are not used to limit the scope of these messages or information. It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user in an appropriate manner in accordance with relevant laws and regulations and the user's authorization should be obtained. The present disclosure is described below in conjunction with specific embodiments.
[0032] First, the application scenario of the present disclosure is described. The Modbus gateway is a converter that can convert ModbusRTU data into Modbus TCP data. Due to the limitations of serial bus interfaces such as RS485, the disadvantages of the Modbus protocol are short communication distance and slow data transmission speed, which limits many applications. The TCP / IP protocol is mainly used for Internet applications. The advantages of the TCP / IP protocol are long communication transmission distance and fast data transmission speed, and the application scope of the TCP / IP protocol is wider.
[0033] Modbus gateway supports mainstream industrial PLC equipment protocols and remotely obtains PLC operation data. It can realize PLC remote monitoring, PLC remote debugging, PLC remote maintenance, PLC remote upgrade, PLC remote diagnosis, and build an information network for large-scale remote management of equipment. It is an industrial equipment that realizes big data early warning and is also a type of intelligent transmission terminal equipment in the industrial Internet platform.
[0034] Data acquisition equipment at industrial sites often use serial ports to transmit data, while high-end industrial controllers often use Ethernet interfaces to transmit data. When data needs to be transmitted between data acquisition equipment using serial port communication and controllers using Ethernet interfaces, if a serial port module is added to the controller end using Ethernet interfaces, it will bring about a series of problems such as short communication distance, slow communication rate, and weak anti-interference ability.
[0035] Figure 1 FIG. 1 is a schematic diagram of a communication system according to an exemplary embodiment. Figure 1As shown, an embodiment of the present disclosure provides a communication system, which includes: a serial communication device 10, a communication gateway device 20 and an Ethernet communication device 30. The serial communication device 10, the communication gateway device 20 and the Ethernet communication device 30 are connected in series with each other. The communication gateway device 20 is used for data conversion between the serial communication data of the serial communication device 10 and the Ethernet communication data of the Ethernet communication device 30, and the first distance between the communication gateway device 20 and the serial communication device 10 is less than the second distance between the communication gateway device 20 and the Ethernet communication device 30.
[0036] Since the serial communication distance is generally short and the rate is relatively low, the longest communication distance of the RS232 serial connection is 15 meters. The maximum transmission rate of RS232 is 20Kbps, the maximum transmission distance of RS422 / 485 is 1.2km, and the maximum transmission rate is 10Mbps. The maximum non-relay transmission distance of RS485 is 1200 meters (this value can be exceeded by using impedance-matched low-attenuation special cables). Therefore, the embodiment of the present disclosure sets the communication gateway device 20 at a position close to the serial communication device 10. Since the Ethernet communication distance is longer, the communication gateway device 20 can be set at a position far away from the Ethernet communication device 30, that is, Figure 1 The first distance between the communication gateway device 20 and the serial communication device 10 is smaller than the second distance between the communication gateway device 20 and the Ethernet communication device 30. In this way, the communication rate between the serial communication device 10 and the Ethernet communication device 30 is guaranteed.
[0037] In summary, the embodiment of the present disclosure provides a communication system, the communication system comprising: a serial communication device, a communication gateway device and an Ethernet communication device; the serial communication device, the communication gateway device and the Ethernet communication device are connected in series with each other; the communication gateway device is used for data conversion between the serial communication data of the serial communication device and the Ethernet communication data of the Ethernet communication device, and the first distance between the communication gateway device and the serial communication device is less than the second distance between the communication gateway device and the Ethernet communication device. The embodiment of the present disclosure can realize the communication between the serial port device and the Ethernet device, and improve the communication distance between the two devices, and improve the communication speed between the two devices.
[0038] In some embodiments, the receiving end of the serial communication device 10 is connected to the sending end of the serial port interface of the communication gateway device 20, and the sending end of the serial communication device 10 is connected to the receiving end of the serial port interface of the communication gateway device 20. The Ethernet interface of the communication gateway device 20 is connected to the Ethernet interface of the Ethernet communication device 30. In this way, through the relay of the communication gateway device 20, long-distance communication between the serial communication device 10 and the Ethernet communication device 30 can be achieved, and due to the serial data and Ethernet data conversion capability of the communication gateway device 20, the communication rate between the serial communication device 10 and the Ethernet communication device 30 is also improved.
[0039] Figure 2 FIG. 1 is a schematic diagram of another communication system according to an exemplary embodiment. Figure 1 As shown, the optical fiber interface of the communication gateway device 20 is connected to the optical fiber interface of the Ethernet communication device 30. Due to the existence of the optical fiber interface, the transmission rate of the communication signal can be further improved.
[0040] Figure 3 FIG. 1 is a schematic diagram of another communication system according to an exemplary embodiment. Figure 1 As shown, there are multiple serial port communication devices 10, the receiving ends of the multiple serial port communication devices 10 are connected to each other, and the sending ends of the multiple serial port communication devices 10 are connected to each other.
[0041] The receiving ends of the multiple serial port communication devices 10 are connected to the sending end of the serial port interface of the communication gateway device 20 , and the sending ends of the multiple serial port communication devices 10 are connected to the receiving end of the serial port interface of the communication gateway device 20 .
[0042] In this way, the embodiment of the present disclosure can also support data communication between multiple serial port communication devices 10 and Ethernet communication devices 30 .
[0043] In some embodiments, the first serial communication device 10 among the multiple serial communication devices 10 is provided with a terminal resistor (not shown in the figure). In the case where multiple serial communication devices 10 are cascaded and data communication is performed between the Ethernet communication device 30, it is necessary to set an impedance matching resistor, i.e., a terminal resistor, in the serial communication device 10 to ensure impedance matching and normal communication of the serial communication. Exemplarily, the terminal matching resistor can be set in the first-level serial communication device 10, and the terminal matching resistor can also be set in the last-level serial communication device 10.
[0044] In some embodiments, the serial communication device 10 includes any one of the following:
[0045] RS485 communication equipment, RS422 communication equipment, RS232 communication equipment.
[0046] In some embodiments, the communication gateway device 20 may include a modbus gateway device, which is responsible for the conversion between serial port data and Ethernet data.
[0047] In some embodiments, the Ethernet communication device 30 includes an Ethernet communication device 30 of model SIMATIC S7-1200.
[0048] In some embodiments, the serial communication device 10 and the communication gateway device 20 use the serial port-based modbusrtu protocol for data communication.
[0049] In some embodiments, the Ethernet communication device 30 and the communication gateway device 20 use the Ethernet-based modbustcp protocol for data communication.
[0050] In summary, the embodiment of the present disclosure provides a communication system, the communication system comprising: a serial communication device, a communication gateway device and an Ethernet communication device; the serial communication device, the communication gateway device and the Ethernet communication device are connected in series with each other; the communication gateway device is used for data conversion between the serial communication data of the serial communication device and the Ethernet communication data of the Ethernet communication device, and the first distance between the communication gateway device and the serial communication device is less than the second distance between the communication gateway device and the Ethernet communication device. The embodiment of the present disclosure can realize the communication between the serial port device and the Ethernet device, and improve the communication distance between the two devices, and improve the communication speed between the two devices.
[0051] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.
[0052] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
[0053] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.
Claims
1. A communication system, characterized in that: The communication system includes: a serial communication device, a communication gateway device and an Ethernet communication device; The serial communication device, the communication gateway device and the Ethernet communication device are connected in series with each other; The communication gateway device is used for data conversion between serial communication data of the serial communication device and Ethernet communication data of the Ethernet communication device. The first distance between the communication gateway device and the serial communication device is smaller than the second distance between the communication gateway device and the Ethernet communication device.
2. The communication system according to claim 1, characterized in that The receiving end of the serial communication device is connected to the sending end of the serial port interface of the communication gateway device, and the sending end of the serial communication device is connected to the receiving end of the serial port interface of the communication gateway device; The Ethernet interface of the communication gateway device is connected to the Ethernet interface of the Ethernet communication device.
3. The communication system according to claim 2, characterized in that The optical fiber interface of the communication gateway device is connected to the optical fiber interface of the Ethernet communication device.
4. The communication system according to claim 2, characterized in that: There are multiple serial communication devices, the receiving ends of the multiple serial communication devices are connected to each other, and the sending ends of the multiple serial communication devices are connected to each other; The receiving ends of the plurality of serial communication devices are connected to the sending end of the serial port interface of the communication gateway device, and the sending ends of the plurality of serial communication devices are connected to the receiving end of the serial port interface of the communication gateway device.
5. The communication system according to claim 4, characterized in that: The first serial port communication device among the plurality of serial port communication devices is provided with a terminal resistor.
6. The communication system according to any one of claims 1 to 5, characterized in that: The serial communication device includes any one of the following: RS485 communication equipment, RS422 communication equipment, RS232 communication equipment.
7. The communication system according to any one of claims 1 to 5, characterized in that: The communication gateway device comprises a modbus gateway device.
8. The communication system according to any one of claims 1 to 5, characterized in that: The Ethernet communication device includes an Ethernet communication device of model SIMATIC S7-1200.
9. The communication system according to any one of claims 1 to 5, characterized in that: The serial port communication device and the communication gateway device use the serial port-based modbusrtu protocol for data communication.
10. The communication system according to any one of claims 1 to 5, characterized in that: The Ethernet communication device and the communication gateway device use the Ethernet-based modbustcp protocol for data communication.