Communication testing device for general facilities of passenger train
By designing a communication test device for general facilities of railway buses, the problem of difficulty in detecting communication functions of bus equipment is solved, and the rapid and effective detection of various types of equipment is achieved, with a simple structure and easy to carry.
Patent Information
- Application Number
- CN202422062429.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2025-08-15
- Estimated Expiration
- 2034-08-23
AI Technical Summary
It is difficult to detect communication functions during section repairs of railway bus equipment, and existing equipment cannot conduct communication functions testing on different equipment, which affects the quality of maintenance.
A communication testing device for common facilities of railway passenger cars was designed, including the main control module, the selection switch module, the first communication module, the second communication module, the communication serial port, the client serial port and the power module. By selecting the switch module, different communication modules are selected for testing, supporting two communication protocols RS485 and RS232, and the structure is simple and portable.
It realizes fast and effective communication function testing of various types of passenger bus equipment, ensuring that the detection method is simple and can be prepared into small instruments, which are easy to carry, and improves the detection efficiency and quality.
Smart Images

Figure CN223231187U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of railway passenger car communication testing, in particular to a railway passenger car general facility communication testing device. Background Art
[0002] Some equipment on railway passenger cars is prone to communication failures during maintenance, leading to malfunctions. Because each device has different communication protocols, there is currently no dedicated test equipment to test the communication functions of common passenger car equipment. This means that communication functionality can only be checked after the train is marshaled, impacting the quality of the train's maintenance.
[0003] Currently, the inspection of railway passenger car communication equipment is based on the test bench to test the performance status of the equipment. However, during daily maintenance, most equipment does not need to be taken off the train for inspection. In addition, there are many types of passenger car equipment, making it extremely difficult to inspect the communication function. Utility Model Content
[0004] The purpose of this utility model is to provide a railway passenger car general facility communication test device to address the above-mentioned problems. The device can perform communication function tests on various types of passenger car equipment, ensuring that the detection method is fast and effective, and has a simple structure and can be prepared into a small instrument for easy carrying.
[0005] In order to achieve the above-mentioned purpose of the utility model, the technical solution adopted by the utility model is as follows:
[0006] According to one aspect of the present invention, a railway passenger car universal facility communication test device is provided, comprising a main control module, a selection switch module, a first communication module, a second communication module, a communication serial port, a client serial port, and a power supply module;
[0007] The main control module is electrically connected to the selection switch module;
[0008] The first communication module and the second communication module are electrically connected to the selection switch module respectively;
[0009] The first communication module and the second communication module are electrically connected to the communication serial port respectively;
[0010] The client serial port is electrically connected to the main control module;
[0011] The main control module, the selection switch module, the first communication module, the second communication module, the communication serial port and the client serial port are electrically connected to the power module respectively.
[0012] Preferably, the main control module includes a single-chip microcomputer, an ISP interface and a crystal oscillator, and the ISP interface and the crystal oscillator are electrically connected to the single-chip microcomputer respectively.
[0013] Preferably, the selection switch module includes a relay and a transistor, the relay is electrically connected to the transistor, and the transistor is electrically connected to the single chip computer.
[0014] Preferably, the first communication module includes an RS485 communication chip, and the RS485 communication chip is electrically connected to the relay.
[0015] Preferably, the second communication module includes an RS232 communication chip, and the RS232 communication chip is electrically connected to the relay.
[0016] Preferably, the power supply module includes a main power supply unit and an isolated power supply unit, the main power supply unit is electrically connected to the isolated power supply unit, the main power supply is used to provide power for the main control module, the selection switch module, the first communication module, the second communication module and the communication serial port, and the isolated power supply unit is used to provide power for the first communication module and the client serial port.
[0017] Preferably, the main power supply unit includes a step-down chip and a battery connection terminal, and the step-down chip is electrically connected to the battery connection terminal.
[0018] Preferably, the isolated power supply unit includes an isolated power supply chip, and the isolated power supply chip is connected to the step-down chip.
[0019] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:
[0020] The utility model sets a first communication module and a second communication module, connects the two modules to the same communication serial port, connects the bus equipment to be tested through the communication serial port, and uses a selection switch module to select one of the two modules to perform communication testing according to the type of bus equipment. This device can perform communication function tests on various types of bus equipment, ensuring that the detection method is fast and effective, and has a simple structure. It can be prepared into a small instrument and is easy to carry. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a structural block diagram of the utility model;
[0022] Figure 2 This is a circuit schematic diagram of the main control module of the utility model;
[0023] Figure 3 This is a circuit diagram of the selector switch module of the utility model;
[0024] Figure 4 This is a circuit diagram of the first communication module of the present utility model;
[0025] Figure 5 This is a circuit diagram of the communication serial port of the utility model;
[0026] Figure 6 This is a circuit diagram of the second communication module of the present invention;
[0027] Figure 7 This is a circuit diagram of the client serial port of the utility model;
[0028] Figure 8 This is a circuit diagram of the main power supply unit of the utility model;
[0029] Figure 9 This is a circuit schematic diagram of the isolated power supply unit of the utility model. DETAILED DESCRIPTION
[0030] To make the objectives, technical solutions, and advantages of the present invention more clearly understood, the present invention is further described below with reference to the accompanying drawings and preferred embodiments. However, it should be noted that many of the details listed in this specification are merely provided to help the reader gain a thorough understanding of one or more aspects of the present invention, and these aspects of the present invention can be implemented even without these specific details.
[0031] See also Figures 1 to 9 The present invention provides a communication test device for general facilities on railway passenger cars. The technical solution is as follows:
[0032] like Figure 1-2 As shown, a railway passenger car general facility communication test device includes a main control module, a selection switch module, a first communication module, a second communication module, a communication serial port, a client serial port and a power supply module. The main control module includes a single-chip microcomputer, an ISP interface and a crystal oscillator. The single-chip microcomputer model is ATmega64, which has a total of 64 pins. The single-chip microcomputer is electrically connected to the ISP interface. The model of the ISP interface is 10PH-AVR-1, which is used to edit the single-chip microcomputer chip. The second pin (RXD pin) of the single-chip microcomputer is connected to the first pin (MOSI pin) of the ISP interface, the third pin (TXD pin) of the single-chip microcomputer is connected to the ninth pin (MISO pin) of the ISP interface, the 11th pin (SCK pin) of the single-chip microcomputer is connected to the 7th pin (SCK pin) of the ISP interface, and the 20th pin (RESET pin) of the single-chip microcomputer is connected to the 5th pin (RST pin) of the ISP interface. The microcontroller is electrically connected to the crystal oscillator. Pin 23 (XTAL2) and pin 24 (XTAL1) of the microcontroller are electrically connected to the two ends of the crystal oscillator. One end of the crystal oscillator is grounded through capacitor C9, and the other end is grounded through capacitor C10. The crystal oscillator provides a stable clock signal, ensuring stable system operation.
[0033] like Figure 3 As shown, the microcontroller is connected to either the first or second communication module via a selector switch module. The selector switch module connects the microcontroller to either the first or second communication module, completing the specific serial port communication function. Specifically, the selector switch module includes a relay and a transistor. The relay model is 6GS-2F and has eight pins. Pin 8 of the relay is the control terminal, connected to the emitter of the transistor. The collector of the transistor is grounded, and the base of the transistor is connected to pin 16 of the microcontroller via resistor R3. The microcontroller controls the conduction and shutdown of the transistor, thereby controlling the opening and closing of the relay. Pin 8 of the relay is connected to pin 1 of the relay via diode D2. The anode of diode D2 is connected to pin 8, and the cathode of diode D2 is connected to pin 1. Pin 1 of the relay is a voltage input pin. Pin 3 of the relay is the first common terminal, connected to pin 3 of the microcontroller, for transmitting data signals to the microcontroller. Pin 2 of the relay is connected to the first communication module. When pin 3 of the relay touches pin 2, the first communication module can send a signal to the microcontroller. Pin 4 of the relay is connected to the second communication module. When pin 3 of the relay touches pin 4, the second communication module can send a signal to the microcontroller. Pin 6 of the relay is the second common terminal, connected to pin 2 of the microcontroller and used to receive data signals transmitted by the microcontroller. Pin 7 of the relay is connected to the first communication module. When pin 6 of the relay touches pin 7, the first communication module can receive data signals transmitted by the microcontroller. Pin 5 of the relay is connected to the second communication module. When pin 6 of the relay touches pin 5, the second communication module can receive data signals transmitted by the microcontroller. During use, the microcontroller is connected to the first communication module by touching pin 3 of the relay to pin 2 and pin 6 to pin 7, respectively, enabling data transmission between the microcontroller and the first communication module. When the 3rd pin of the relay contacts the 4th pin, and the 6th pin contacts the 5th pin, the single-chip microcomputer can be connected to the second communication module, and data can be transmitted between the single-chip microcomputer and the second communication module.
[0034] Specifically, such as Figure 4-5As shown, the first communication module includes an RS485 communication chip, and the model of the RS485 communication chip is ADM2483BRWZ. Pins 1 and 3 of the RS485 communication chip are voltage input pins. Pin 3 of the RS485 communication chip is a data signal receiving pin, which is connected to pin 7 of the relay. After pins 4 and 5 of the RS485 communication chip are connected, they are connected to pin 15 of the microcontroller through resistor R4. Pin 6 of the RS485 communication chip is a data signal sending pin, which is connected to pin 2 of the relay. Pins 12 and 13 of the RS485 communication chip are respectively connected to the communication serial port. The communication serial port is used to connect to train passenger car equipment. The communication serial port has a total of 8 pins. Pin 1 of the communication serial port is connected to pin 13 of the RS485 communication chip, and pin 2 of the communication serial port is connected to pin 12 of the RS485 communication chip. Pin 8 of the communication serial port is a voltage input pin. The RS485 communication chip features isolation, enabling RS232 to RS485 conversion without the need for optocoupler isolation or complex peripheral isolation driver circuits, resulting in more reliable communication. When the train's communication function is RS485, the communication function can be tested by connecting the relay's pins 3 to 2, and its pins 6 to 7, and finally connecting the serial port to the train's equipment.
[0035] like Figure 6-7As shown, the second communication module includes an RS232 communication chip, and the model of the RS232 communication chip is MAX232. Pins 2 and 16 of the RS232 communication chip are voltage input pins. Pin 11 of the RS232 communication chip is a data signal transmission pin and is connected to pin 4 of the relay. Pin 12 of the RS232 communication chip is a data signal receiving pin and is connected to pin 5 of the relay. Pins 13 and 14 of the RS232 communication chip are respectively connected to the communication serial port. Pin 4 of the communication serial port is connected to pin 14 of the RS232 communication chip. Pin 5 of the communication serial port is connected to pin 13 of the RS232 communication chip. Pin 9 of the RS232 communication chip is connected to pin 27 of the microcontroller. Pin 10 of the RS232 communication chip is connected to pin 28 of the microcontroller. Pins 7 and 8 of the RS232 communication chip are connected to the client serial port. The client serial port is used to connect to the client, which can be a control system with a touchscreen for testing the communication functions of train and coach vehicles. A serial touchscreen serves as the human-machine interface. It communicates with the microcontroller via the serial port and displays communication information from the coach equipment. Its capacitive touchscreen is sensitive and reliable, ensuring the tester does not require any external buttons. This makes it easy to use, reduces system development time, and features a more attractive interface and richer functionality. The client serial port model is HY2.0-8P and has a total of eight pins. Pins 7 and 8 of the client serial port are voltage input pins. Pin 4 of the client serial port connects to pin 7 of the RS232 communication chip. Pin 5 of the client serial port connects to pin 8 of the RS232 communication chip. The RS232 communication chip converts the TTL level of the microcontroller serial port to RS232 serial level, enabling communication with RS232-connected train and coach equipment. When the communication type of the train coach to be tested is RS232, the communication function of the RS232 type train coach can be tested by connecting the 3rd pin and the 4th pin of the relay, the 6th pin and the 5th pin of the relay, and finally connecting the communication serial port to the RS232 type train coach equipment.
[0036] Railway passenger car equipment has two communication interfaces, RS485 and RS232, so this application has the function of connecting to both RS485 and RS232 ports to test devices with different interfaces.
[0037] Further, such as Figure 8As shown, the power module includes a main power supply unit and an isolated power supply unit. The main power supply unit includes a step-down chip and a battery connection terminal. The model of the step-down chip is L7805. The battery connection terminal is used to connect the battery to supply energy to the system. The positive pole of the battery connection terminal is connected to a switch K, and the end of the switch K away from the battery connection terminal is connected to a diode D. The anode of the diode D is connected to the switch K, and the cathode of the diode D is connected to the input end of the step-down chip. A voltage node VCC12 is provided between the diode D and the input end of the step-down chip. The voltage node VCC12 is connected to a resistor R1, and the end of the resistor R1 away from the voltage node VCC12 is connected to a sliding resistor. The output end of the step-down chip is provided with a voltage node VCC, and the voltage node VCC is connected to a light-emitting diode LED. The anode of the light-emitting diode LED is connected to the voltage node VCC, and the cathode of the light-emitting diode LED is grounded through a resistor R8. Pins 21, 52, and 64 of the microcontroller, pin 1 of the relay, pin 1 of the RS485 communication chip, pins 2 and 16 of the RS232 communication chip, and pin 6 of the serial port are connected to voltage node VCC. Pin 8 of the serial port and pins 7 and 8 of the client serial port are connected to voltage node VCC12. The main power supply uses a three-terminal linear regulator to convert 12V to a stable 5V power supply for related circuits.
[0038] like Figure 9 As shown, the isolated power supply unit includes an isolated power supply chip, model DCP010505. Pin 1 of the isolated power supply chip is an input pin, connected to voltage node VCC. Pin 6 of the isolated power supply chip is an output pin, and voltage node VCC2 is provided on pin 6 of the isolated power supply chip. Voltage node VCC2 is connected to pin 16 of the RS485 communication chip. The isolated power supply chip works in conjunction with the RS485 communication chip to ensure communication power isolation on the device side of the RS485 communication chip.
[0039] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as within the scope of protection of the present invention.
Claims
1. A railway passenger car general facility communication test device, characterized in that: It includes a main control module, a selection switch module, a first communication module, a second communication module, a communication serial port, a client serial port and a power supply module; The main control module is electrically connected to the selection switch module; The first communication module and the second communication module are electrically connected to the selection switch module respectively; The first communication module and the second communication module are electrically connected to the communication serial port respectively; The client serial port is electrically connected to the main control module; The main control module, the selection switch module, the first communication module, the second communication module, the communication serial port and the client serial port are electrically connected to the power module respectively.
2. A railway passenger car universal facility communication test device according to claim 1, characterized in that: The main control module includes a single chip microcomputer, an ISP interface and a crystal oscillator, and the ISP interface and the crystal oscillator are electrically connected to the single chip microcomputer respectively.
3. A railway passenger car universal facility communication test device according to claim 2, characterized in that: The selection switch module includes a relay and a transistor, the relay is electrically connected to the transistor, and the transistor is electrically connected to the single chip computer.
4. A railway passenger car universal facility communication test device according to claim 3, characterized in that: The first communication module includes an RS485 communication chip, and the RS485 communication chip is electrically connected to the relay.
5. The railway passenger car universal facility communication test device according to claim 3, characterized in that: The second communication module includes an RS232 communication chip, and the RS232 communication chip is electrically connected to the relay.
6. The railway passenger car universal facility communication test device according to claim 1, characterized in that: The power supply module includes a main power supply unit and an isolated power supply unit. The main power supply unit is electrically connected to the isolated power supply unit. The main power supply is used to provide power for the main control module, the selection switch module, the first communication module, the second communication module and the communication serial port. The isolated power supply unit is used to provide power for the first communication module and the client serial port.
7. A railway passenger car universal facility communication test device according to claim 6, characterized in that: The main power supply unit includes a step-down chip and a battery connection terminal, and the step-down chip is electrically connected to the battery connection terminal.
8. The railway passenger car universal facility communication test device according to claim 7, characterized in that: The isolated power supply unit includes an isolated power supply chip, and the isolated power supply chip is connected to the step-down chip.