Device for carrying out communication test on serial port communication product
By designing a device that includes a test PC, a power supply module, a communication environment load simulation module, and a fault injection module, the shortcomings of performance testing of serial communication products under different communication application environments are solved, and the testing of serial communication products under different network loads and faults is realized.
Patent Information
- Application Number
- CN202520448515.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-14
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2035-03-14
AI Technical Summary
Currently, there is a lack of communication testing equipment capable of performing performance tests on serial communication products under different communication application environments.
A device comprising a test PC, a power supply module, a communication environment load simulation module, and a fault injection module was designed to test the performance of serial communication products by simulating different network loads and injecting faults.
It enables performance testing of serial communication products under different communication application environments, and evaluates their adaptability under different network loads and faults.
Smart Images

Figure CN223885204U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The utility model relates to serial port communication test device technical field, specifically speaking, relate to a device for carrying out communication test to serial port communication product. BACKGROUND
[0002] Serial communication communication line is simple, and bidirectional communication can be realized as long as a pair of transmission lines. Serial communication is asynchronous, and data can be sent on one transmission line while receiving data on another transmission line. Commonly used communication protocol types include RS232, RS485, CAN, etc. Serial communication is widely used in remote control, data acquisition and inter-device communication, and the stability and reliability of serial communication become more and more important.
[0003] Common serial communication test devices are mainly used for testing and verifying the data or signals of product serial communication. For example, the patent application file with the application publication number CN 109165129 A, named serial communication test device, includes: a communication signal acquisition device; a micro processing unit connected with a level conversion device, configured to determine whether the communication of the serial port to be tested is normal; and an indicating device. The micro processing unit judges the communication information to determine whether the serial communication state is normal. The indicating device can understand the state of the measured device to determine whether the data flow interaction state of the measured serial port and the serial communication test device is normal.
[0004] At present, serial communication application scenarios are increasing, which puts forward higher requirements on the serial communication performance of products, that is, the communication can adapt to different application scenarios. However, there is no communication test device that can realize the performance test of serial communication products in different communication application environments at present. How to design a serial communication test device to realize the test and verification of products in different communication application environments is a problem to be solved.
[0005] In order to solve the above problems, people have been seeking an ideal technical solution. SUMMARY
[0006] The utility model aims at the shortage of prior art, and provides a device for communication test of serial port communication product, so as to solve the problem that there is no communication test device that can realize the performance test of serial communication products in different communication application environments at present.
[0007] In order to realize the above purpose, the utility model provides a device for communication test of serial port communication product in the first aspect:
[0008] Including test PC, power supply module, communication environment load simulation module, serial port communication product to be tested.
[0009] The test PC is connected with the serial communication product to be tested through a serial bus;
[0010] The communication environment load simulation module is connected with the serial bus, and is used for simulating different loads of the serial bus.
[0011] The power supply module is used for supplying power for the serial communication product to be tested and the test PC.
[0012] Based on the above, the communication environment load simulation module comprises a plurality of series-connected loads and load switches connected in parallel on both sides of each load, the first load is connected with the A line of the serial bus, and the last load is connected with the B line of the serial bus.
[0013] Based on the above, the fault injection module comprises a short-circuit fault switch, a power supply fault switch and a grounding fault switch, the short-circuit fault switch is connected in parallel between the A line and the B line of the serial bus, the power supply fault switch is connected in series between the serial bus and the power supply module, and the grounding fault switch is connected in series between the serial bus and the signal ground.
[0014] Based on the above, the serial bus comprises a CAN bus, an RS485 bus and a bus two-selection module, the bus two-selection module is connected with the CAN bus and the RS485 bus respectively, and is used for selecting the CAN bus or the RS485 bus.
[0015] Based on the above, the load switch is an electronic switch, and the communication environment load simulation module further comprises a first PLC controller, the first PLC controller is connected with the test PC and the control end of the electronic switch respectively, and controls the opening and closing of the electronic switch.
[0016] Based on the above, the load switch is a manual switch.
[0017] Based on the above, the short-circuit fault switch, the power supply fault switch and the grounding fault switch are all electronic switches.
[0018] The fault injection module further comprises a second PLC controller, the second PLC controller is connected with the test PC and the control end of the short-circuit fault switch, the power supply fault switch and the grounding fault switch respectively, and controls the opening and closing of the short-circuit fault switch, the power supply fault switch and the grounding fault switch.
[0019] Based on the above, the short-circuit fault switch, the power supply fault switch and the grounding fault switch are all manual switches.
[0020] The utility model discloses relative prior art has substantial feature and progress, specifically speaking, communication environment load simulation module with the serial bus connection for realizing the simulation of different quantity load of serial bus, the communication performance of serial communication product under different network load environment is convenient for testing, realizes the performance test of serial communication product under different communication application environment.
[0021] Further, by introducing the fault injection module, the short-circuit fault switch, the power supply fault switch and the ground fault are connected into the communication loop, so that the adaptability of the serial communication product to the fault can be tested. BRIEF DESCRIPTION OF DRAWINGS
[0022] Figure 1 is a structural schematic block diagram of a device for testing the communication of serial communication product of the utility model;
[0023] Figure 2 is the circuit principle schematic diagram of the communication environment load simulation module of the utility model;
[0024] Figure 3 is the structural schematic block diagram of another device for testing the communication of serial communication product of the utility model;
[0025] Figure 4 is the circuit principle schematic diagram of the fault injection module of the utility model;
[0026] Figure 5 is the structural schematic block diagram of embodiment 6 of the utility model. DETAILED DESCRIPTION
[0027] The technical scheme of the utility model will be described in further detail by specific embodiments.
[0028] The terms "first", "second", "third", "fourth" and the like in the description, claims, and drawings of the present application are used for distinguishing between similar objects, and are not necessarily used to describe a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances, and that the embodiments of the present application are capable of functioning in other sequences or orders than described.
[0029] Embodiment 1
[0030] As shown in Figure 1 , the embodiment gives a specific embodiment of a device for testing the communication of serial communication product.
[0031] A device for testing the communication of serial communication product: including test PC, power supply module, communication environment load simulation module, serial communication product to be tested;
[0032] The test PC is connected to the serial communication product under test via a serial bus.
[0033] The communication environment load simulation module is connected to the serial bus and is used to simulate different amounts of load on the serial bus.
[0034] The power supply module is used to power the serial communication product under test and the test PC.
[0035] It should be noted that the communication environment load simulation module simulates different loads on the serial bus, which facilitates testing the communication performance of the serial communication product under different network load environments, and realizes the performance testing of the serial communication product under different communication application environments.
[0036] It should be noted that the power supply module can provide different voltages to the serial communication product under test in order to test the impact of power supply voltage changes on the product's communication.
[0037] Specifically, when it is necessary to simulate adding a load of a certain size between serial ports, the corresponding load in the communication environment load simulation module is connected between the serial ports to determine the impact of the added load on communication. When it is necessary to simulate the impact of the power supply voltage of the serial communication product under test on communication, the power supply voltage of the power supply module is controlled to determine the impact of different power supply voltages on communication.
[0038] Example 2
[0039] like Figure 2 As shown, R1 to R10 are resistors, and K1 to K10 are load switches. The difference between this embodiment and Embodiment 1 is that it provides a specific implementation method for the communication environment load simulation module.
[0040] The communication environment load simulation module includes several loads connected in series and load switches connected in parallel on both sides of each load. The first load is connected to line A of the serial bus, and the last load is connected to line B of the serial bus. In one embodiment, the first load is connected to line A of the serial bus via a switch, and the last load is connected to line B of the serial bus via a switch. The opening and closing of the switches controls whether the loads in the communication environment load simulation module are connected to the serial bus. The switches can be manual switches or electronic switches. The control terminal of the electronic switch is connected to a PLC controller, and the PLC controller is connected to a test PC to control the opening and closing of the electronic switch.
[0041] It should be noted that the load can be a resistor. Different numbers of loads on the serial bus can be simulated by increasing or decreasing the resistance value between the serial bus components.
[0042] It can be understood that, when a load of a certain size between the simulated serial bus is not carried out, the load in the communication environment load simulation module is not connected between the A line and the B line of the serial bus; when a load of a certain size between the simulated serial bus is carried out, the corresponding load in the communication environment load simulation module is connected between the A line and the B line of the serial bus, so as to determine the influence of the added load on the communication. Wherein, the different number of loads between the simulated serial bus can be different number of communication modules between the simulated serial bus.
[0043] Specifically, for example, when a load of a certain size between the simulated serial bus is not carried out, the load in the entire communication environment load simulation module is not connected between the serial bus or the entire communication test device does not work; as Figure 2 shown, when the resistance of the load between the simulated serial bus needs to be simulated as 40 ohms, the load switch K4 and the load switch K6 are controlled to be disconnected, and the remaining load switches are connected, wherein the resistance connected in parallel with the load switch K4 has a resistance of 8 ohms, and the resistance connected in parallel with the load switch K6 has a resistance of 32 ohms, so as to determine the influence of the 40 ohm load on the communication.
[0044] Embodiment 3
[0045] The difference between this embodiment and embodiment 2 is that the specific implementation of the load switch in the communication environment load simulation module is given.
[0046] The load switch in the communication environment load simulation module can be an electronic switch. The communication environment load simulation module further comprises a first PLC controller, and the first PLC controller is connected with the control end of the test PC and the electronic switch respectively, and controls the opening and closing of the electronic switch. The first PLC controller is connected with the control end of the electronic switch.
[0047] When it is needed to simulate the increase of a load of a certain size between the serial bus, the first PLC controller can be controlled by the test PC, and the first PLC controller controls the load of a corresponding size to be connected between the serial bus, so as to determine the influence of the added load on the communication.
[0048] In one embodiment, the load switch in the communication environment load simulation module can be a manual switch. The load connected between the serial bus is manually controlled by artificial.
[0049] Embodiment 4
[0050] As shown in Figure 3 and Figure 4 The difference between this embodiment and embodiment 1 is that the communication test device further comprises a fault injection module.
[0051] The fault injection module comprises a short-circuit fault switch, a power supply fault switch and a grounding fault switch, the short-circuit fault switch is connected in parallel between A line and B line of the serial bus, the power supply fault switch is connected in series between the serial bus and the power supply module, and the grounding fault switch is connected in series between the serial bus and a signal ground.
[0052] It can be understood that, for example, when a short-circuit fault test is performed, the short-circuit fault switch is controlled to be closed to determine the influence of the short-circuit fault on communication, and after the short-circuit fault is removed, it is determined whether the communication can be restored within a short time.
[0053] It should be noted that the fault injection module is used to add a certain type of fault between the serial bus, so as to evaluate whether the communication of the serial communication product is affected when the type of fault occurs, and whether the communication can be restored within a target time after the type of fault is removed, for verifying the reliability of the communication and the anti-interference ability of the communication.
[0054] Embodiment 5
[0055] The difference between this embodiment and embodiment 4 is that the short-circuit fault switch, the power supply fault switch and the grounding fault switch in the fault injection module are all electronic switches.
[0056] The fault injection module further comprises a second PLC controller, the second PLC controller is connected with the test PC and control ends of the short-circuit fault switch, the power supply fault switch and the grounding fault switch respectively, and controls opening and closing of the short-circuit fault switch, the power supply fault switch and the grounding fault switch.
[0057] It can be understood that, for example, when a short-circuit fault test is performed, the second PLC controller can be controlled by the test PC, and the second PLC controller controls the short-circuit fault switch to be closed to determine the influence of the short-circuit fault on communication.
[0058] In one embodiment, the short-circuit fault switch, the power supply fault switch and the grounding fault switch are all manual switches. The opening and closing of the short-circuit fault switch, the power supply fault switch and the grounding fault switch are manually controlled by a person.
[0059] Embodiment 6
[0060] As shown in Figure 5 The difference between this embodiment and embodiment 1 is the specific implementation of the serial bus in the communication test device.
[0061] The serial bus comprises a CAN bus, an RS485 bus and a bus two-selection module, the bus two-selection module is connected with the CAN bus and the RS485 bus respectively, and is used for selecting the CAN bus or the RS485 bus.
[0062] For example, when the CAN bus is needed to be used, the CAN bus is enabled through the control bus two-way selection module.
[0063] In one embodiment, the enabling switch of the bus two-way selection module is a manual switch, and the CAN bus or the RS485 bus can be enabled by manually operating the manual switch of the bus two-way selection module. For example, the manual switch is closed to enable the CAN bus.
[0064] In another embodiment, the enabling switch of the bus two-way selection module is an electronic switch, and the control end of the electronic switch is connected with the third PLC controller, and the third PLC controller is connected with the test PC, and the electronic switch is controlled to be opened or closed to enable the CAN bus or the RS485 bus. For example, the electronic switch is closed to enable the CAN bus.
[0065] It should be noted that the first PLC relay, the second PLC relay and the third PLC relay can be the same relay or different relays.
[0066] In one embodiment, the electronic switch described above can be a relay switch.
[0067] It should be noted that the above-mentioned multiple tests can be tested respectively or simultaneously.
[0068] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and not to limit them; although the present application has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the specific embodiments of the present application can be modified or some technical features can be replaced by equivalent ones; without departing from the spirit of the technical solutions of the present application, they should be covered in the technical solution range of the present application claimed.
Claims
1. A device for communication test of serial communication products, characterized in that: it comprises a test PC, a power supply module, a communication environment load simulation module, and a serial communication product to be tested; the test PC is connected to the serial communication product to be tested through a serial bus; the communication environment load simulation module is connected to the serial bus and is used to simulate different loads of the serial bus; the power supply module is used to supply power to the serial communication product to be tested and the test PC. The communication environment load simulation module comprises a plurality of series-connected loads and load switches connected in parallel on both sides of each load, the first load is connected to the A line of the serial bus, and the last load is connected to the B line of the serial bus. It further comprises a fault injection module, which comprises a short-circuit fault switch, a power supply fault switch, and a ground fault switch, the short-circuit fault switch is connected in parallel between the A line and the B line of the serial bus, the power supply fault switch is connected in series between the serial bus and the power supply module, and the ground fault switch is connected in series between the serial bus and the signal ground. The serial bus comprises a CAN bus, an RS485 bus, and a bus selection module, the bus selection module is connected to the CAN bus and the RS485 bus respectively, and is used to select the CAN bus or the RS485 bus. The load switch is an electronic switch, and the communication environment load simulation module further comprises a first PLC controller, the first PLC controller is connected to the test PC and the control end of the electronic switch respectively, and controls the opening and closing of the electronic switch.
2. The device for testing serial communication products according to claim 1, characterized in that: The load switch is a manual switch.
3. The device for testing the serial communication product according to claim 1 or 2, characterized in that: The short-circuit fault switch, the power supply fault switch, and the ground fault switch are all electronic switches.
4. The device for testing communication of serial communication products according to claim 1 or 2, characterized in that: The fault injection module further comprises a second PLC controller, the second PLC controller is connected to the test PC and the control end of the short-circuit fault switch, the power supply fault switch, and the ground fault switch respectively, and controls the opening and closing of the short-circuit fault switch, the power supply fault switch, and the ground fault switch.
5. The device for testing serial communication products according to claim 2, wherein: The short-circuit fault switch, the power supply fault switch, and the ground fault switch are all manual switches.
6. The device for testing serial communication products according to claim 2, wherein: 7. The device for testing serial communication products according to claim 3, wherein: 8. The device for testing serial communication products according to claim 3, wherein:
Citation Information
Patent Citations
Serial communication test device
CN109165129A