Serial port conversion test module for power distribution terminal
By designing a serial port conversion test module for power distribution terminals, the problems of complex structure and high cost of existing general-purpose serial port servers are solved. It realizes flexible conversion between RS232 and RS485 signals, simplifies the test environment, and reduces costs.
Patent Information
- Application Number
- CN202423273306.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2034-12-30
AI Technical Summary
Existing general-purpose serial port servers are complex in structure, expensive, and cannot test RS232 and RS485 serial ports simultaneously, making testing inconvenient.
A power distribution terminal serial port conversion test module was designed, which includes an RS232 interface, an RS232-TTL conversion circuit, an optocoupler inversion circuit, a TTL-RS485 conversion circuit, and an RS485 interface. It realizes the conversion of RS232 and RS485 signals through a simple circuit structure and is powered by low-cost circuit components and power conversion circuit.
It achieves flexible serial port conversion, simplifies the factory testing of power distribution terminals, reduces testing costs, is applicable to various serial server interfaces, and facilitates test environment configuration.
Smart Images

Figure CN223582473U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The utility model relates to the field of distribution test, especially a distribution terminal serial port conversion test module. BACKGROUND
[0002] At present, when most distribution terminals are tested, there are RS232 serial ports and RS485 serial ports, and the number is large, and serial port servers are used to test them, the interface of the serial port server is often only one kind, RS232 or RS485, which causes inconvenience in testing, and two serial port servers are often used for testing.
[0003] Although the existing serial port server can be used for RS232 serial ports and RS485 serial ports and other serial ports, the implementation mode is to set a central processing unit between the serial ports, the central processing unit realizes coordination and control of the whole conversion process by writing a specific program or algorithm, and through components such as level conversion circuit, direction control logic and power supply circuit, the central processing unit is responsible for converting the signals of RS232 serial ports and RS-485 signals, standard signals, and managing the direction of data transmission.
[0004] Although this kind of universal serial port server can not only convert the signals of RS232 serial ports and RS-485 signals, but also convert the signals of other serial ports, this kind of universal serial port server has the defects of complex structure and high cost, and also needs to write programs or algorithms to realize it.
[0005] Therefore, a distribution terminal serial port conversion test module that can test RS232 and RS485, has a simple structure and low cost is needed. UTILITY MODEL CONTENTS
[0006] The utility model provides a distribution terminal serial port conversion test module that can test RS232 and RS485, has a simple structure and low cost to solve the defects of the existing universal serial port server, complex structure, high cost, and single serial port server cannot test RS232 serial ports and RS485 serial ports at the same time.
[0007] The utility model relates to a kind of distribution terminal serial ports conversion test module, including RS232 interface, RS232-TTL conversion circuit, opto-coupler reverse circuit, TTL-RS485 conversion circuit and RS485 interface, the RS232 interface is connected with RS232-TTL conversion circuit bidirectionally, the RS232-TTL conversion circuit is connected with opto-coupler reverse circuit bidirectionally, the opto-coupler reverse circuit is connected with TTL-RS485 conversion circuit bidirectionally, the TTL-RS485 conversion circuit is connected with RS485 interface bidirectionally.
[0008] Further: it further includes power input terminal and power conversion circuit, the output end of the power input terminal is connected with the input end of power conversion circuit, and the power conversion circuit is used to power supply for the serial ports conversion test module.
[0009] Further: it further includes PCB board, for realizing that the serial ports conversion test module circuit is laid out on the PCB board, and the PCB board is arranged in the shell.
[0010] Further: the serial ports conversion test module circuit is arranged in the shell.
[0011] Further: the shell is metal shell.
[0012] Further: the RS232 interface and RS485 interface are at least 1 way.
[0013] Further: each way RS232 interface and RS485 interface are provided with serial port transceiver indicating lamp, for showing the data transmission of current interface.
[0014] Further: the serial port transceiver indicating lamp adopts straight insertion LED lamp, for indicating that current serial port has data being transmitted.
[0015] The utility model has the advantages that:
[0016] The utility model discloses a kind of distribution terminal serial ports conversion test module, can be converted into RS485 interface access serial port server with the RS232 interface of distribution terminal, also can be converted into RS32 interface access serial port server with RS485 interface, can be flexibly configured.
[0017] The utility model discloses a kind of distribution terminal serial ports conversion test module, can very flexibly convert RS232 interface and RS485 interface, facilitate distribution terminal's factory test. It can very conveniently solve the different test conditions between the serial port type of distribution terminal and serial port server serial port type. BRIEF DESCRIPTION OF DRAWINGS
[0018] Figure 1is a circuit block diagram of the serial port conversion test module;
[0019] Figure 2 is a shell structure schematic diagram;
[0020] Figure 3 is a circuit diagram of the RS485 interface;
[0021] Figure 4 is a circuit diagram of the TTL-RS485 conversion circuit;
[0022] Figure 5 is a circuit diagram of the RS232-TTL conversion circuit;
[0023] Figure 6 is a circuit diagram of the RS232 interface;
[0024] Figure 7 is a circuit diagram of the power conversion circuit;
[0025] Figure 8 is a circuit diagram of the optocoupler reverse circuit;
[0026] In the figure, 1, shell; 2, serial port transceiver indicator light; 3, power input terminal; 4, RS232 interface; 5, RS485 interface. DETAILED DESCRIPTION
[0027] The following is only the preferred specific embodiments of the present application, but the scope of the present application is not limited to this, any skilled in the art of the technical personnel in the present application disclosed in the technical range, can easily think of changes or replacement, should be covered in the scope of the present application. The following examples are only used to explain the present application, and cannot be explained as a limitation of the present application, the scope of protection of the present application should be subject to the scope of protection of claims. The following describes the embodiments of the present application, in order to facilitate the description of the present application and simplify the description, the technical terms used in the specification of the present application should be interpreted broadly, including but not limited to the conventional replacement scheme not mentioned in the present application, at the same time, including direct implementation and indirect implementation.
[0028] Embodiment 1
[0029] Combined with Figures 1-8The embodiment discloses a power distribution terminal serial port conversion test module, which comprises an RS232 interface 4, an RS232-TTL conversion circuit, an optical coupling reverse circuit, a TTL-RS485 conversion circuit and an RS485 interface 5.
[0030] As Figure 3 and Fig Figure 6 shown, the RS232 interface 4 and the RS485 interface 5 are both serial port input terminals, adopt green terminals with a 5.08 interval, and have different numbers of splices.
[0031] As Figure 5 shown, the RS232-TTL conversion circuit is used for converting an RS232 level signal into a TTL level signal, and can use an RS232 transceiver chip D1 with a model number of TPT3232E.
[0032] As Figure 8 shown, the optical coupling reverse circuit is used for performing reverse processing on a signal sent by RS485 to RS232, converting a high level into a low level or converting a low level into a high level, and the optical coupling can be of a type of LTV-356T.
[0033] As Figure 4 shown, the TTL-RS485 conversion circuit is used for converting an RS485 level signal into a TTL level signal, and can use an RS485 transceiver chip with a model number of TPT487.
[0034] As Figure 7As shown, the power input terminal 3 is connected with the input end of the power conversion circuit, and the power conversion circuit is used to supply power to the serial port conversion test module. The power input terminal 3 and the serial port input terminal are both green terminals with a 5.08 pitch, but the number of terminals is different. The power conversion module uses a power conversion chip that converts 18-75V to 3.3V, and the model number of the power module here can be URB4803YMD-6WR3.
[0035] The PCB board is also included, which is used to realize the circuit layout of the serial port conversion test module on the PCB board, and the PCB board is arranged inside the shell 1. The serial port conversion test module circuit is arranged inside the shell 1. The shell 1 can adopt a metal shell.
[0036] As shown in Figure 2 The RS232 interface 4 and the RS485 interface 5 are at least one way. Each way of the RS232 interface 4 and the RS485 interface 5 is provided with a serial port transceiver indicator light 2, which is used to display the data transmission of the current interface. The serial port transceiver indicator light 2 uses a direct insertion LED light to indicate that the current serial port has data being transmitted.
[0037] The various chips and terminal interfaces described above are welded on the PCB board, and then the PCB board is installed in the shell 1. The power supply is connected with the power input terminal 3 of the serial port conversion test module, and then the RS232 interface 4 of the serial port conversion test module is connected with the RS232 interface to be tested of the power distribution terminal, and the RS485 interface 5 of the serial port conversion test module is connected with the RS485 interface of the serial port server. When the power distribution terminal is normally tested, the serial port conversion test module will convert the RS232 signal into an RS485 signal, and at the same time, the transceiver indicator light 2 of the corresponding interface will be indicated by lighting.
[0038] In the opposite way, the RS485 interface to be tested of the power distribution terminal can be converted into an RS232 module by the serial port conversion test module and connected with the serial port server of the RS232 interface.
[0039] Embodiment 2
[0040] In combination with Embodiment 1, the working principle of the power distribution terminal serial port conversion test module described in this embodiment is as follows:
[0041] RS232 serial port→RS485 direction transmission logic:
[0042] When RS232 serial port sends data, the data is sent to pin 13 of chip D1 (TPT3232E), which is converted to TTL level. At this time, logic 1 of RS232 data corresponds to high level 3.3V of TTL level, and logic 0 of RS232 data corresponds to low level 0V of TTL level.
[0043] The data from pin 12 of D1 is sent to pin 2 of optocoupler E1 (LTV-356T) through resistor R5. When the data is high level (logic 1), the optocoupler is not conductive, so the optocoupler is not conductive, and pin 3 of the optocoupler is low level due to the pull-down resistor R7. When the data from pin 12 of D1 is sent to pin 2 of optocoupler E1 through resistor R5, and the data is low level (logic 0), the optocoupler is conductive, 3.3V is conducted to pin 3 through pin 4 of the optocoupler, so pin 3 outputs high level. Thus, the reverse principle is completed.
[0044] Then the data flows to pins 2 and 3 of D2 (TPT487). When the data from pin 3 of the optocoupler is high level (logic 0), D2 is in a sending state, and the sending state of D2 is controlled by pin 4. Pin 4 is forcibly pulled low to GND by R6, so the output of D2 is B (pin 7) > A (pin 6) logic 0, and the data is sent to RS485 terminal. When the data from pin 3 of the optocoupler is low level (logic 1), D2 is in a receiving state, and the state of D2 is controlled by the pull-up and pull-down resistors of external A (pin 6) and B (pin 7). External A is pulled high by R8, and B is pulled low by R3. A > B is logic 1, and the data is sent to RS485 terminal.
[0045] Through the above process, the logic of RS232 is reversed through the optocoupler, and finally through the RS485 chip, and finally the correct logic is output.
[0046] RS485 serial port → RS232 direction transmission logic:
[0047] When the RS485 serial port sends data, the data is sent to A (pin 6) and B (pin 7) of D2 (TPT487). When A > B, it is logic 1, the 1 pin of D2 outputs high level, and the high level is sent to pin 11 of D1 through resistor R1, and finally the data is sent to RS232 terminal through pin 14 of D1. There is no reverse process in this direction of data transmission, and the data can be smoothly transmitted.
[0048] In the whole process of receiving and sending data, as long as there is data, it is received and sent through R9 and R10 respectively, and V2 and V3 light emitting diodes are lit to prompt the user that the data transmission is normal.
[0049] The above only describes the conversion process of 1 way, and the same 8 ways can be performed simultaneously, which can cover most of the serial port numbers of power distribution terminals on the market.
[0050] The above power supply is input to the D3 (URB4803YMD-6WR3) chip from the power terminal, and 18-75V DC power can be converted to 3.3V power used by the module by D3.
[0051] Through the above process, the conversion of RS232 signal and RS485 signal is completed, the logic transmission is correct, and the situation that there is no RS232 or RS485 interface when the power distribution terminal is tested before leaving the factory can be easily solved, and the test environment is simplified.
Claims
1. A power distribution terminal serial port conversion test module, characterized by, The RS232 interface (4), RS232-TTL conversion circuit, opto-coupler reverse circuit, TTL-RS485 conversion circuit and RS485 interface (5) are connected bidirectionally, the RS232 interface (4) is connected with the RS232-TTL conversion circuit bidirectionally, the RS232-TTL conversion circuit is connected with the opto-coupler reverse circuit bidirectionally, the opto-coupler reverse circuit is connected with the TTL-RS485 conversion circuit bidirectionally, and the TTL-RS485 conversion circuit is connected with the RS485 interface (5) bidirectionally.
2. The power distribution terminal serial port conversion test module of claim 1, wherein, The power input terminal (3) and power conversion circuit are further included, the output end of the power input terminal (3) is connected with the input end of the power conversion circuit, and the power conversion circuit is used for supplying power to the serial port conversion test module.
3. The power distribution terminal serial conversion test module of claim 1, wherein, The PCB board is further included, which is used for arranging the serial port conversion test module circuit on the PCB board, and the PCB board is arranged in the shell (1).
4. The power distribution terminal serial conversion test module of claim 1, wherein, The serial port conversion test module circuit is arranged in the shell (1).
5. The power distribution terminal serial conversion test module of claim 3 or 4, wherein, The shell (1) is a metal shell.
6. The power distribution terminal serial conversion test module of claim 1, wherein, The RS232 interface (4) and RS485 interface (5) are at least one way.
7. The power distribution terminal serial conversion test module of claim 1 or 6, wherein, The serial port transceiving indicating lamp (2) is arranged on each way of the RS232 interface (4) and RS485 interface (5), which is used for displaying the data transmission of the current interface.
8. The power distribution terminal serial conversion test module of claim 7, wherein, The serial port transceiving indicating lamp (2) is a direct insertion LED lamp, which is used for indicating that the current serial port has data being transmitted.