Serial port data to Ethernet data conversion system
Through the serial port data conversion system, the RS485 or RS232 serial port data in the subway equipment is converted into Ethernet data, which solves the problems of low conversion efficiency and data transmission errors in the existing technology, achieves efficient and reliable data upload, and the circuit is stable and Low cost.
Patent Information
- Application Number
- CN202420195198.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-26
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2034-01-26
AI Technical Summary
In the existing technology, the format of RS485 or RS232 serial port data is different from that of Ethernet data. As a result, real-time subway operation data cannot be directly uploaded to the backend cloud. Multiple intermediate links are required for conversion, which is inefficient and involves the risk of data transmission errors.
A serial data to Ethernet data conversion system is designed, including a power module, DIP switch, 232 data conversion module, 485 data conversion module, TTL data conversion module and network isolation transformer. Through the 232 data conversion module and 485 data conversion module The serial port data is converted into TTL signals, and then the TTL data conversion module is converted into Ethernet signals, and the network isolation transformer is used for differential mode coupling and lightning protection.
It realizes the efficient conversion of serial port data in subway equipment into Ethernet data, improves the reliability and efficiency of data transmission, has good circuit structure stability and low cost.
Smart Images

Figure CN221614990U
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of signal conversion, in particular to a serial port data to Ethernet data conversion system. Background Art
[0002] With the development of industrial automation technology, more and more existing subway equipment uses RS485 or RS232 serial port data for communication. However, due to the different formats of RS485 and 232 serial port data and Ethernet data, it is not possible to directly upload the real-time subway operation data to the backend cloud control room via the Internet. Conversion is required to achieve data transmission. Existing conversion methods usually require multiple intermediate links, resulting in low conversion efficiency and the risk of introducing data transmission errors. Utility Model Content
[0003] Based on this, it is necessary to provide a serial port data to Ethernet data conversion system to address the above problems.
[0004] A serial data to Ethernet data conversion system, characterized in that it includes a power module, a dip switch, a 232 data conversion module, a 485 data conversion module, a TTL data conversion module and a network isolation transformer, the power module supplies power to the 232 data conversion module, the 485 data conversion module, the TTL data conversion module and the network isolation transformer, the dip switch input end is connected to the output end of the 232 data conversion module and the 485 data conversion module, the dip switch output end is connected to the TTL data conversion module input end, the TTL data conversion module output end is connected to the network isolation transformer, the 232 data conversion module includes a transceiver U7 and a pin connector P2, the VCC pin of the transceiver U7 is connected to the output end of the power module, and is connected in parallel with a capacitor C32 to a common ground, and the transceiver U7 Pin 13 is connected to pin 1 of the pin connector P2, and the connection is grounded through a bidirectional diode D1. Pin 4 of the pin connector P2 serves as a reset pin, pin 3 is grounded, and pin 2 is connected in series with a bidirectional diode D2 to ground. The 485 data conversion module includes a transceiver U6 and a pin connector P3. The VCC pin of the transceiver U6 is connected to the output end of the power module, and a capacitor C36 is connected in parallel to ground. Pin 1 of the pin connector P3 is connected to pin 6 of the transceiver U6, and pin 1 of the pin connector P3 is connected in series with a resistor R9, which is connected to the output end of the power module. Pin 2 of the pin connector P3 is connected to pin 7 of the transceiver U6, and a bidirectional diode D3 is connected in series between pin 2 and pin 1 of the pin connector P3. A resistor R8 is connected in series between pin 6 and pin 7 of the transceiver U6, and a resistor R10 is connected in series with pin 7 of the transceiver U6 to ground.
[0005] Preferably, the model of the transceiver U7 is MAX232ICL232, and the model of the transceiver U6 is MAX485eSA.
[0006] Preferably, the power module includes a rectifier D6, a voltage regulator U1, a voltage regulator U2 and a voltage regulator U3, pins 1 and 2 of the rectifier D6 are connected to the input pin connector P1, pins 3 and 4 of the rectifier D6 are respectively connected to pins 2 and 1 of the voltage regulator U1, an inductor L1 is connected in series to pin 3 of the rectifier D6, a varistor MOV, a capacitor C1 and a capacitor C2 are connected in parallel between pins 3 and 4 of the rectifier D6, a capacitor C3 is connected in parallel between pins 2 and 1 of the voltage regulator U1, and the voltage regulator U3 is connected in parallel to the voltage regulator U3. A capacitor C4 is connected in parallel between pin 6 of regulator U1 and pin 7 of ground, pin 3 of voltage regulator U2 is connected to pin 6 of step-down voltage regulator U1, capacitor C5 is connected in parallel to pin 3 of voltage regulator U2 and is grounded, pin 4 of voltage regulator U2 is connected to pin 2, capacitors C6 and C7 are connected in parallel to pin 4 and pin 2 of voltage regulator U2 and are grounded respectively, pin 3 of voltage regulator U3 is connected to pin 2 of voltage regulator U2, capacitor C8 is connected in parallel to pin 3 of voltage regulator U3 and is grounded, pin 4 of voltage regulator U3 is connected to pin 2, capacitors C9 and C10 are connected in parallel to ground respectively.
[0007] Preferably, the models of the voltage stabilizer U2 and the voltage stabilizer U3 are ASM1117, the model of the voltage reducer U1 is WRB2405S-3WR2, and the model of the rectifier D6 is DB107S.
[0008] Preferably, the TTL data conversion module includes a serial port to network chip U4, and the model of the serial port to network chip U4 is CH9121.
[0009] Preferably, the model of the network isolation transformer is HR911105A.
[0010] The benefit of the utility model lies in that the 232 and 485 serial port data signals transmitted in the subway equipment can be simply and efficiently converted into Ethernet data through this design, which is convenient for network connection and cloud processing. This design improves the reliability and efficiency of data transmission, and the circuit structure has good stability and low cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 A schematic diagram of a serial data to Ethernet data conversion system module according to one embodiment;
[0012] Figure 2 It is the circuit diagram of the DIP switch, 232 data conversion module and 485 data conversion module;
[0013] Figure 3 This is the circuit diagram of the power module;
[0014] Figure 4 This is the circuit diagram of the TTL data conversion module. DETAILED DESCRIPTION
[0015] In order to make the above-mentioned purposes, features and advantages of the utility model more obvious and easy to understand, the specific implementation methods of the utility model are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the utility model. However, the utility model can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the utility model, so the utility model is not limited by the specific embodiments disclosed below.
[0016] It should be noted that when an element is referred to as being "fixed to" or "disposed on" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only and do not represent the only implementation method.
[0017] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art in the technical field of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.
[0018] like Figures 1 to 4As shown, a serial data to Ethernet data conversion system includes a power module 1, a dip switch 2, a 232 data conversion module 3, a 485 data conversion module 4, a TTL data conversion module 5 and a network isolation transformer 6. The power module 1 supplies power to the 232 data conversion module 3, the 485 data conversion module 4, the TTL data conversion module 5 and the network isolation transformer 6. The input end of the dip switch 2 is connected to the output ends of the 232 data conversion module 3 and the 485 data conversion module 4, the output end of the dip switch 2 is connected to the input end of the TTL data conversion module 5, and the output end of the TTL data conversion module 5 is connected to the network isolation transformer 6. The 232 data conversion module 3 includes a transceiver U7 and a pin connector P2. The VCC pin of the transceiver U7 is connected to the output end of the power module 1, and is connected in parallel with a capacitor C32 to a common ground. Pin 13 of the transceiver U7 is connected to pin 1 of the pin connector P2, and the connection is grounded through a bidirectional diode D1. Pin 4 of the pin connector P2 serves as a reset pin, pin 3 is grounded, and pin 2 is connected in series with a bidirectional diode D2 to ground. The 485 data conversion module 4 includes a transceiver U6 and a pin connector P3. The VCC pin of the transceiver U6 is connected to the output end of the power module 1, and a capacitor C36 is connected in parallel to ground. Pin 1 of the pin connector P3 is connected to pin 6 of the transceiver U6, and pin 1 of the pin connector P3 is connected in series with a resistor R9, which is connected to the output end of the power module 1. Pin 2 of the pin connector P3 is connected to pin 7 of the transceiver U6, and a bidirectional diode D3 is connected in series between pin 2 and pin 1 of the pin connector P3. A resistor R8 is connected in series between pin 6 and pin 7 of the transceiver U6, and a resistor R10 is connected in series with pin 7 of the transceiver U6 to ground. Specifically, in this embodiment, the circuit board integrates 232 data conversion module 3 and 485 data conversion module 4 to adapt to different signal processing in subway equipment. When 232 serial port data or 485 serial port data is detected, the 232 data conversion module 3 or 485 data conversion module 4 is rotated by the dial switch 2. We use the 232 data conversion module 3 and the 485 data conversion module 4 to convert the 232 and 485 serial port data into TTL signals, solving the problem of complex and inefficient conversion of serial port data and Ethernet data in the prior art. The conversion system includes parts such as RS485 data receiving module, TTL level conversion module, Ethernet data sending module, etc., which can realize fast and efficient data conversion. At the same time, the TTL data conversion module 5 is used to convert the input TTL signal into an Ethernet signal, which can be uploaded to the backend cloud through networking. A network isolation transformer 6 is added to the output end of the TTL data conversion module 5. When transmitting data, the output Ethernet signal can be coupled and filtered with a differential mode coupled coil to enhance the signal, and coupled to the other end of the connecting network cable of different levels through the conversion of the electromagnetic field. At the same time, it can also provide certain lightning protection for the equipment.In this embodiment, the model of the transceiver U7 is MAX232ICL232, the model of the transceiver U6 is MAX485eSA, and the model of the network isolation transformer 6 is HR911105A.
[0019] like Figure 3 As shown, the power module 1 includes a rectifier D6, a voltage regulator U1, a voltage regulator U2 and a voltage regulator U3. Pins 1 and 2 of the rectifier D6 are connected to the input pin connector P1. Pins 3 and 4 of the rectifier D6 are connected to pins 2 and 1 of the voltage regulator U1 respectively. An inductor L1 is connected in series to pin 3 of the rectifier D6. A varistor MOV, a capacitor C1 and a capacitor C2 are connected in parallel between pins 3 and 4 of the rectifier D6. A capacitor C3 is connected in parallel between pins 2 and 1 of the voltage regulator U1. A capacitor C4 is connected in parallel between the 6th pin of the regulator U1 and the 7th pin of the ground, the 3rd pin of the voltage regulator U2 is connected to the 6th pin of the voltage regulator U1, the 3rd pin of the voltage regulator U2 is connected to the ground in parallel with the capacitor C5, the 4th pin of the voltage regulator U2 is connected to the 2nd pin, the 4th pin and the 2nd pin of the voltage regulator U2 are connected to the ground in parallel with the capacitors C6 and C7, the 3rd pin of the voltage regulator U3 is connected to the 2nd pin of the voltage regulator U2, the 3rd pin of the voltage regulator U3 is connected to the ground in parallel with the capacitor C8, the 4th pin of the voltage regulator U3 is connected to the 2nd pin, and the capacitors C9 and C10 are connected to the ground in parallel. Specifically, in this embodiment, the rectifier D6 is used for voltage stabilization and rectification, outputs a 24V DC voltage, uses inductance and capacitance filtering, and plays a role in suppressing electromagnetic interference, avoiding current mutations, and improving circuit stability. The 24V voltage is stepped down by the voltage regulator U1 to output a 5V voltage, which can be directly supplied to the 232 data conversion module 3 and the 485 data conversion module 4. At the same time, the output end of the voltage regulator U1 is connected to the voltage regulator U2 and the voltage regulator U3 in turn to reduce the voltage to 3.3V and 1.8V output respectively. The output and input pins of the voltage regulator U2 and the voltage regulator U3 are grounded through capacitors to improve the purity of the output and input signals, eliminate the impact of the voltage shock on the circuit board on the voltage regulator, and improve the stability of the system. In this embodiment, the models of the voltage regulator U2 and the voltage regulator U3 are ASM1117, the model of the voltage regulator U1 is WRB2405S-3WR2, and the model of the rectifier D6 is DB107S.
[0020] like Figure 4As shown, the TTL data conversion module 5 includes a serial port to network chip U4, and the model of the serial port to network chip U4 is CH9121. Specifically, the RX pin of the serial port to network chip U4 is used as a signal receiving pin, and the TX pin is used as a signal sending pin. The power module 1 outputs 3.3V and 1.8V voltages to power it. At the same time, the TCP / IP protocol stack is integrated inside CH9121, which can realize two-way transparent transmission of network data packets and serial port data. It has four working modes: TCP CLIENT, TCP SERVER, UDPCLIENT, and UDP SERVER. The serial port baud rate can support up to 921600bps, which can be easily configured through the host computer software or serial port commands, which is convenient and fast.
[0021] The above-mentioned embodiments only express several implementation methods of the utility model, and the description is relatively specific and detailed, but it cannot be understood as limiting the scope of the utility model patent. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the utility model, which all belong to the protection scope of the utility model. Therefore, the protection scope of the utility model patent shall be based on the attached claims.
Claims
1. A serial data to Ethernet data conversion system, Features: It includes a power module, a dip switch, a 232 data conversion module, a 485 data conversion module, a TTL data conversion module and a network isolation transformer. The power module supplies power to the 232 data conversion module, the 485 data conversion module, the TTL data conversion module and the network isolation transformer. The input end of the dip switch is connected to the output end of the 232 data conversion module and the 485 data conversion module. The output end of the dip switch is connected to the input end of the TTL data conversion module. The output end of the TTL data conversion module is connected to the network isolation transformer. The 232 data conversion module includes a transceiver U7 and a pin connector P2. The VCC pin of the transceiver U7 is connected to the output end of the power module and is connected to a capacitor C32 in parallel. The 13th pin of the transceiver U7 is connected to the pin connector P2. Pin 1 of the pin connector P2 is connected, and the connection is grounded through a bidirectional diode D1. Pin 4 of the pin connector P2 is used as a reset pin, pin 3 is grounded, and pin 2 is connected in series with a bidirectional diode D2 to ground. The 485 data conversion module includes a transceiver U6 and a pin connector P3. The VCC pin of the transceiver U6 is connected to the output end of the power module, and a capacitor C36 is connected in parallel to ground. Pin 1 of the pin connector P3 is connected to pin 6 of the transceiver U6, and pin 1 of the pin connector P3 is connected in series with a resistor R9, which is connected to the output end of the power module. Pin 2 of the pin connector P3 is connected to pin 7 of the transceiver U6. A bidirectional diode D3 is connected in series between pin 2 and pin 1 of the pin connector P3. A resistor R8 is connected in series between pin 6 and pin 7 of the transceiver U6, and a resistor R10 is connected in series with pin 7 of the transceiver U6 to ground.
2. A serial data to Ethernet data conversion system as claimed in claim 1, Features: The model of the transceiver U7 is MAX232ICL232, and the model of the transceiver U6 is MAX485eSA.
3. A serial data to Ethernet data conversion system as claimed in claim 1, Features: The power module includes a rectifier D6, a voltage reducer U1, a voltage regulator U2 and a voltage regulator U3. Pins 1 and 2 of the rectifier D6 are connected to the input pin connector P1. Pins 3 and 4 of the rectifier D6 are connected to pins 2 and 1 of the voltage reducer U1 respectively. An inductor L1 is connected in series to pin 3 of the rectifier D6. A varistor MOV, a capacitor C1 and a capacitor C2 are connected in parallel between pins 3 and 4 of the rectifier D6. A capacitor C3 is connected in parallel between pins 2 and 1 of the voltage reducer U1. A capacitor C4 is connected in parallel between pin 6 of U1 and pin 7 of the ground, pin 3 of the voltage regulator U2 is connected to pin 6 of the step-down voltage regulator U1, capacitor C5 is connected in parallel to pin 3 of the voltage regulator U2, pin 4 of the voltage regulator U2 is connected to pin 2, capacitors C6 and C7 are connected in parallel to pin 4 and pin 2 of the voltage regulator U2 respectively, pin 3 of the voltage regulator U3 is connected to pin 2 of the voltage regulator U2, capacitor C8 is connected in parallel to pin 3 of the voltage regulator U3, pin 4 of the voltage regulator U3 is connected to pin 2, capacitors C9 and C10 are connected in parallel to ground respectively.
4. A serial data to Ethernet data conversion system as claimed in claim 3, Features: The models of the voltage stabilizer U2 and the voltage stabilizer U3 are ASM1117, the model of the voltage reducer U1 is WRB2405S-3WR2, and the model of the rectifier D6 is DB107S.
5. A serial data to Ethernet data conversion system as claimed in claim 1, Features: The TTL data conversion module includes a serial port to network chip U4, and the model of the serial port to network chip U4 is CH9121.
6. A serial data to Ethernet data conversion system as claimed in claim 1, Features: The model of the network isolation transformer is HR911105A.
