A test method and device for a train onboard recording board
By designing an automated train on-board record board test device, using upper computers and modular testing modules, the problems of cumbersome testing steps and low efficiency in the existing technology are solved, and efficient testing process and accurate results are achieved.
Patent Information
- Application Number
- CN202011175171.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-28
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2040-10-28
AI Technical Summary
In the prior art, the testing steps of train on-board recording boards are cumbersome, the test time is long, the efficiency is low, and it is not suitable for large-scale testing.
A test device including a computer and a test module was designed. Through the data processing module, channel test module group, relay and optocoupler module, the automatic testing of the recording board is realized, manual intervention and equipment disassembly steps are reduced, and the modular design and Signal isolation technology.
It improves testing efficiency, shortens testing time, is suitable for large-scale testing, reduces the tedious steps of equipment disassembly, and improves the accuracy and reliability of test results.
Smart Images

Figure CN114428191B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of train equipment testing, and in particular to a testing method and device for a train on-board recording board. Background Art
[0002] With the rapid development of technology, most trains have been installed with on-board ATP (Automatic Train Protection) equipment. The recording board installed on the on-board ATP equipment is used to record the key log documents generated by the functional boards of other host layers in the train automatic protection system and collect the information status of the interface layer boards.
[0003] At present, when the recording board needs to be tested, it is completed based on a bunch of scattered and independent test instruments and meters. In particular, for the test of different single board information in different recording boards, it is necessary to manually remove the instruments or equipment required for the previous test, and then connect the equipment required for this test to connect the cables or electrical equipment for this test. In the prior art, in the process of each test and inspection, the recording board needs to be disassembled repeatedly, and the test steps are too cumbersome, which is not conducive to industrial assembly line production. In addition, each test requires manual intervention, and it is very likely to cause operational errors, which leads to reduced efficiency of testing and inspection, and greatly increases the test time. Therefore, it is not suitable for large-scale testing and inspection. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a method and device for testing a train on-board recording board to solve the problems in the prior art of complicated testing steps, long testing time, low efficiency, and disadvantages for large-scale testing.
[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:
[0006] The first aspect of the present invention discloses a test device for a train onboard recording board, the test device comprising a host computer and a test module, a communication connection is established between the host computer and the test module;
[0007] The test module is composed of a data processing module, a channel test module group, a relay, an optical coupling module and a connector arranged on a test fixture;
[0008] One end of the data processing module is connected to the host computer, and the other end is connected to the channel test module group, and is used to forward the control information sent by the host computer to each channel module to be tested in the channel test module group, and to return the test information fed back by the channel module to be tested;
[0009] The channel test module group is composed of channel modules to be tested, and the channel modules to be tested perform channel tests on the tested board based on the received data information;
[0010] One end of the relay and the optical coupling module are respectively connected to the corresponding channel module to be tested, and the other end is respectively connected to the connector, for voltage isolation between the single board under test and the channel module to be tested, and signal transmission between the single board under test and the channel module to be tested;
[0011] The connector is arranged on the test base, and is respectively connected to the host computer, the relay and the optical coupling module, and is used to insert and place the recording board to be tested and perform signal transmission. The recording board to be tested is used to record the information of each single board on the train. When performing a channel test, the single board to be tested is determined based on the information of the single board;
[0012] The host computer is used to perform an open-short circuit test on the record board to be tested when the test module is not powered on, and after the measurement is passed, send update information to the record board to be tested through the connector, send control information to each channel module to be tested in the channel test module group through the data processing module, receive test information of the single board to be tested transmitted back by the channel module to be tested through the data processing module, and generate a test report based on the test information.
[0013] Optionally, the host computer is connected to the data processor module via a USB interface to serial port data cable;
[0014] The host computer is connected to the connector via a USB interface to serial port data cable and an Ethernet cable.
[0015] Optionally, the channel modules to be tested include at least: a general purpose input and output GPIO channel module, a serial bus SBP channel module, a serial transmission RS422 channel module, a serial transmission RS485 channel module and a controller area network CAN channel module;
[0016] The channel test module group is a combination of any channel modules among the GPIO channel module, the SBP channel module, the RS422 channel module, the RS485 channel module and the CAN channel module;
[0017] One end of the GPIO channel module is connected to the host computer through the data processing module, and the other end is connected to the recording board to be tested through the relay, and is used to collect status information of non-tested boards, and to perform voltage isolation with the tested board through the relay, and send a control signal to the tested board;
[0018] One end of the SBP channel module is connected to the host computer through the data processing module, and the other end is connected to the recording board to be tested through the optical coupling module, and is used to perform voltage isolation with the single board to be tested through the optical coupling module, and perform information transmission for SBP channel testing;
[0019] One end of the RS422 channel module is connected to the host computer through the data processing module, and the other end is connected to the recording board to be tested through the optical coupling module, and is used for voltage isolation with the single board to be tested through the optical coupling module, and performing information transmission of RS422 channel test;
[0020] One end of the RS485 channel module is connected to the host computer through the data processing module, and the other end is connected to the record board to be tested through the optical coupling module, and is used for performing voltage isolation with the single board to be tested through the optical coupling module, and performing information transmission of RS485 channel test;
[0021] One end of the CAN channel module is connected to the host computer through the data processing module, and the other end is connected to the recording board to be tested through the optical coupling module, which is used to perform voltage isolation with the tested single board through the optical coupling module and perform information transmission for CAN channel testing.
[0022] Optionally, the GPIO channel module includes 24 parallel DC24V voltage circuits. When the tested single board is online, the level of one DC24V voltage circuit corresponding to the tested single board is a DC24V high level, and the other 23 DC24V voltage circuits maintain a low level;
[0023] The SBP channel module includes 4-way optical coupling isolation and common mode filtering and voltage stabilization circuits, and performs common mode filtering and voltage stabilization processing based on the 4-way SBP protocol specific data signals sent by the data processing module and the information returned by the tested single board through the optical coupling module to obtain the SBP channel test result;
[0024] The RS422 channel module includes 2 RS422 communication protocol chips, and transmits specific data signals through the data processing module to perform train radar and TCR pulse information tests to obtain test results of train radar and TCR pulse information;
[0025] The RS485 channel module includes 2 RS485 communication protocol chips, and transmits a specific data signal through the data processing module to perform a train MVB bus protocol reception test to obtain a test result of the train MVB bus protocol reception;
[0026] The CAN channel module includes 4 CAN communication protocol chips, and transmits specific data signals through the data processing module to perform a train CAN bus protocol reception test to obtain the test result of the train CAN bus protocol reception.
[0027] Optionally, the data processing module includes a 32-bit single-chip microcomputer and an FPGA chip.
[0028] Optionally, the connector includes 2 PIN48-pin standard rectangular connectors.
[0029] Optionally, the test fixture is further provided with a power supply module for supplying power to each module on the test fixture;
[0030] The power module has a built-in AC220V to DC24V module and a DC24V to DC5V module.
[0031] A second aspect of an embodiment of the present invention discloses a method for testing a train onboard recording board, wherein the testing device comprises a host computer and a testing module, wherein the testing module comprises a data processing module, a channel testing module group, a relay, an optical coupling module and a connector arranged on a testing fixture, and the recording board to be tested is inserted into the testing module through the connector, and the testing method comprises:
[0032] When the test module is not powered on, the host computer performs an open-short circuit test on the recording board to be tested;
[0033] If the short circuit state does not occur, the host computer controls the test module to be powered on, and measures the reference voltage of each tested board on the record board to be tested through the connector;
[0034] If the reference voltage is qualified, the host computer sends Linux system update information to the record board to be tested based on the connector, so that the record board to be tested is updated;
[0035] After the update is completed, the host computer uses the channel modules to be tested in the channel test module group to perform channel tests in sequence;
[0036] When the channel test performed based on any of the channel modules to be tested fails, the host computer displays the information of the tested board that has a fault;
[0037] After completing the channel test, the host computer generates a test report based on the result of the channel test performed by the channel module to be tested, and outputs the report.
[0038] Optionally, if the channel modules to be tested include at least: a GPIO channel module, an SBP channel module, an RS422 channel module, an RS485 channel module and a CAN channel module; the host computer sequentially performs channel tests using the channel modules to be tested in the channel test module group, including:
[0039] The host computer sequentially tests 24 GPIO channels, 4 SBP channels, 2 RS485 channels, 2 RS422 channels, 4 CAN channels and 2 Ethernet channels based on the GPIO channel module, SBP channel module, RS422 channel module, RS485 channel module and CAN channel module.
[0040] Optionally, when the channel test performed based on any of the channel modules to be tested fails, the host computer displays information of the tested board that has a fault, including:
[0041] If the test of the 24 GPIO channels fails, the host computer obtains an error channel among the 24 GPIO channels, and determines the device information on the tested board based on the error channel;
[0042] If the 4-way SBP channel module test fails, the information of the tested board with the fault is displayed, the host computer obtains the error channel in the 4-way SBP channel, and determines the device information on the tested board based on the error channel;
[0043] If the test of the two RS485 channels fails, the host computer obtains the error channel in the two RS485 channels, and determines the device information on the tested board based on the error channel;
[0044] If the test of the two RS422 channels fails, the host computer obtains the error channel in the two RS422 channels, and determines the device information on the tested board based on the error channel;
[0045] If the 4-way CAN channel test fails, the host computer obtains the error channel in the 4-way CAN channel, and determines the device information on the tested board based on the error channel;
[0046] If the test of the two Ethernet channels fails, the host computer obtains an error channel in the two Ethernet channels, and determines the device information on the tested board based on the error channel.
[0047] A test method and device for a train on-board recording board provided based on the above-mentioned embodiment of the present invention, the test device includes a host computer and a test module, and a communication connection is established between the host computer and the test module. The test module is composed of a data processing module, a channel test module group, a relay, an optical coupling module and a connector arranged on a test tool fixture. One end of the data processing module is connected to the host computer, and the other end is connected to the channel test module group, and the control information issued by the host computer is forwarded to each channel module to be tested in the channel test module group, and the test information fed back by the channel module to be tested is transmitted back. The channel test module group is composed of channel modules to be tested, and the channel modules to be tested perform channel tests on the single board to be tested based on the received data information. One end of the relay and the optical coupling module are respectively connected to the corresponding channel module to be tested, and the other end is respectively connected to the connector, and the single board to be tested and the channel module to be tested are voltage isolated, and the signal transmission between the single board to be tested and the channel module to be tested is performed. The connector is arranged on the test base, and is connected to the host computer, relay and optocoupler module respectively. The recording board to be tested is inserted and placed to transmit signals. The recording board to be tested records the information of each single board on the train. When the channel test is performed, the single board to be tested is determined based on the information of the single board. The host computer sends update information to the recording board to be tested through the connector, sends control information to each channel module to be tested in the channel test module group through the data processing module, and receives the test information of the single board to be tested transmitted back by the channel module to be tested through the data processing module, and generates a test report based on the test information. In this scheme, the signal interference between each module and the single board to be tested is isolated by the relay and optocoupler module, and the channel test modules of modular design are used to perform channel testing on the single board to be tested in combination with the host computer and the data processing module, thereby reducing the tedious steps of repeatedly disassembling various equipment, thereby facilitating the realization of large-scale testing, as well as the purpose of shortening the test time and improving the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0049] Figure 1 A schematic diagram of the structure of a test device for a train-mounted recording board provided by an embodiment of the present invention;
[0050] Figure 2 A schematic diagram of the structure of a channel test module group of a test device for a train on-board recording board provided by an embodiment of the present invention;
[0051] Figure 3A flow chart of a method for testing a train on-board recording board provided by an embodiment of the present invention;
[0052] Figure 4 Another flow chart of a method for testing a train on-board recording board provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0054] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.
[0055] As can be seen from the background technology, the recording board needs to be disassembled repeatedly during the testing and detection process, and the testing steps are too complicated, which is not conducive to industrial assembly line production. Moreover, each test requires manual intervention, and there is a high probability of operational errors, which reduces the efficiency of testing and detection, and greatly increases the testing time, which is not suitable for large-scale testing and detection.
[0056] Therefore, an embodiment of the present invention provides a test method and device for a train on-board recording board, wherein the device includes a host computer and a test module. The host computer adopts a reasonable test process to reduce the tedious steps of repeatedly disassembling various devices. The test module adopts a modular design to reduce signal interference between each other, which is beneficial to the maintenance of the test device. Signals are isolated and independent through relays and optical coupling modules to protect the device and the single board under test, reducing the influence between the single board under test and the test module. At the same time, when a fault occurs, feedback and positioning can be provided in a timely manner, shortening the testing and maintenance time.
[0057] See also Figure 1 , which is a structural schematic diagram of a test device for a train on-board recording board provided in an embodiment of the present invention. The test device includes a host computer 1 and a test module 2, and a communication connection is established between the host computer 1 and the test module 2.
[0058] The test module 2 is composed of a data processing module 21 , a channel test module group 22 , a relay 23 , an optical coupling module 24 and a connector 25 which are arranged on a test fixture.
[0059] It should be noted that the test fixture is also provided with a power supply module 28 to supply power to each module on the test fixture. The power supply module 28 has an AC220V to DC24V module and a DC24V to DC5V module built in.
[0060] In the specific implementation, one end of the data processing module 21 is connected to the host computer 1, and the other end of the data processing module 21 is connected to the channel test module group 22, which is used to forward the control information sent by the host computer 1 to each channel module to be tested in the channel test module group 22, and to return the test information feedback from the channel module to be tested.
[0061] Specifically, the end of the data processing module 21 connected to the host computer 1 is externally connected to the respective data line interfaces through a data line.
[0062] In the embodiment of the present invention, the host computer 1 and the data processing module 21 are connected via a USB interface to serial port data cable.
[0063] After receiving the control information transmitted by the host computer 1, the data processing module 21 performs corresponding data processing on the control information, and then forwards it to each channel module to be tested in the channel test module group 22. After receiving the control information, the channel module to be tested analyzes and processes it, and then performs channel testing on the tested single board according to the analyzed and processed data information, and returns the test information fed back by the channel module to be tested after the channel testing. Thus, the control commands of the host computer 1 and the channel test module are issued and information is returned based on the data processing module 21.
[0064] In the embodiment of the present invention, the data processing module 21 includes a 32-bit single-chip microcomputer and an FPGA chip, a test program is burned inside the chip, and the data processing module 21 includes an RS232 channel.
[0065] In a specific implementation, the channel test module group 22 is composed of channel modules to be tested, and the channel modules to be tested perform channel tests on the tested board based on the received data information.
[0066] It should be noted that the channel modules to be tested in the channel test module group 22 can be configured by technicians based on test requirements. For example, they may include channel test modules such as general input and output GPIO channel modules, serial bus SBP channel modules, serial transmission RS422 channel modules, serial transmission RS485 channel modules and controller area network CAN channel modules.
[0067] The channel test module group 22 is connected to the host computer 1 through the data processing module 21, and the other end is connected to the recording board 27 to be tested through the relay 23 and the optical coupling module 24. The channel module to be tested receives the control information processed by the data processing module 21, analyzes and processes it, and then performs channel testing on the single board to be tested according to the analyzed and processed data information.
[0068] It should be noted that different channel modules to be tested are connected to the recording board to be tested 27 through relays 23 or optical coupling modules 24 , respectively, so as to isolate signal interference between the recording board to be tested 27 and the relays 23 or optical coupling modules 24 .
[0069] In a specific implementation, one end of the relay 23 is connected to the corresponding channel module to be tested, and the other end is connected to the connector 25. The relay 23 is used to isolate the voltage of the tested board and the channel module to be tested, and to transmit signals between the tested board and the channel module to be tested.
[0070] One end of the optical coupling module 24 is connected to the corresponding channel module to be tested, and the other end is connected to the connector 25. The optical coupling module 24 is used to perform voltage isolation between the tested board and the channel module to be tested, and perform signal transmission between the tested board and the channel module to be tested.
[0071] In the specific implementation, the connector 25 is set on the test base 26 on the test fixture, and is respectively connected to the host computer 1, the relay 23 and the optical coupling module 24, and is used to insert the recording board 27 to be tested and transmit signals. The recording board 27 to be tested is used to record the information of each single board on the train. When performing a channel test, the single board to be tested is determined based on the single board information sent by the host computer.
[0072] In the embodiment of the present invention, the connector 25 is provided with a data line interface and an Ethernet interface, the connector 25 is connected to the host computer 1 through the data line interface and the Ethernet interface, and the other end of the connector 25 is connected to the relay 23 and the optical coupling module 24 respectively.
[0073] In the embodiment of the present invention, the connector includes two PIN48-pin standard rectangular connectors, on which the record board 27 to be tested can be inserted, and the other end of the standard rectangular connector is connected to the relay 23 and the optical coupling module 24 respectively.
[0074] In a specific implementation, the host computer 1 is used to perform an open and short circuit test on the record board 27 to be tested when the test module 2 is not powered on, and after the test passes, sends update information to the record board 27 to be tested through the connector 25, sends control information to each channel module to be tested in the channel test module group 22 through the data processing module 21, receives test information of the single board to be tested that is returned by the channel module to be tested through the data processing module 21, and generates a test report based on the test information.
[0075] One end of the host computer 1 is connected to the data processing module 21 through a data line interface, and the other end is connected to the connector 25 through a USB interface to serial port data line interface and an Ethernet interface.
[0076] It should be noted that the host computer 1 specifically performs an open-short circuit test on the recording board 27 to be tested as follows: when the recording board 27 to be tested is not powered on, the resistance value of the recording board 27 to be tested is determined. If there is no short circuit state, the host computer 1 controls the test module 2 to be powered on, and measures the reference voltage of each single board to be tested on the recording board 27 to be tested through the connector 25. If the reference voltage is qualified, the host computer 1 sends Linux system update information to the recording board 27 to be tested based on the connector 25, so that the recording board 27 to be tested is updated. Through the open-short circuit test, it can be tested whether the place where the recording board 27 to be tested should be connected is connected, and if it is not connected, it is in an open circuit state; and it can be tested whether the place where the recording board 27 to be tested should not be connected is connected, and if the place where it should not be connected is connected, it is in a short circuit state.
[0077] After the update of the recording board to be tested 27 is completed, the host computer 1 uses the channel modules to be tested in the channel test module group 22 to perform channel tests in sequence; when the channel test based on any of the channel modules to be tested fails, the host computer 1 displays the information of the single board to be tested that has a fault; after completing the channel test, the host computer 1 generates a test report based on the result of the channel test performed by the channel module to be tested, and outputs it. Based on the test device of the train on-board recording board disclosed in the above-mentioned embodiment of the present invention, the host computer uses the host computer program to perform logical judgment, and the single board to be tested is directly plugged into the fixed test device interface to reduce the tedious steps of repeatedly disassembling various equipment. The test module adopts a modular design to reduce signal interference with each other, which is conducive to the maintenance of the test device; the signal is isolated and independent through relays and optical coupling modules, the device and the single board to be tested are protected, the influence between the single board to be tested and the test module is reduced, and the test and maintenance time is shortened.
[0078] Based on the above embodiments of the present invention Figure 1 The structure diagram of a test device for a train on-board recording board is shown in FIG. 1 . When performing a channel test, the present invention also shows the specific structure of the channel module to be tested. Figure 2The channel module to be tested at least includes: a general purpose input and output GPIO channel module 221, a serial bus SBP channel module 222, a serial transmission RS422 channel module 223, a serial transmission RS485 channel module 224 and a controller area network CAN channel module 225.
[0079] The channel test module group 22 is a combination of any channel modules among the GPIO channel module 221 , the SBP channel module 222 , the RS422 channel module 223 , the RS485 channel module 224 and the CAN channel module 225 .
[0080] Among them, the GPIO channel module 221 is a general input and output channel module, the SBP channel module 222 is a serial bus channel module, the RS422 channel module 223 is a serial transmission channel module, the RS485 channel module 224 is a serial transmission channel module, and the CAN channel module 225 is a controller area network channel module.
[0081] In a specific implementation, one end of the GPIO channel module 221 is connected to the host computer 1 through the data processing module 21 , and the other end is connected to the recording board 27 to be tested through the relay 23 .
[0082] The GPIO channel module 221 is used to collect status information of the non-tested board, perform voltage isolation with the tested board through the relay 23, and send a control signal to the tested board.
[0083] In a specific implementation, one end of the SBP channel module 222 is connected to the host computer 1 through the data processing module 21 , and the other end is connected to the recording board 27 to be tested through the optical coupling module 24 .
[0084] The SBP channel module 222 is voltage-isolated from the board under test through the optical coupling module 24 , and performs information transmission of the SBP channel test 222 .
[0085] In a specific implementation, one end of the RS422 channel module 223 is connected to the host computer 1 through the data processing module 21 , and the other end is connected to the recording board 27 to be tested through the optical coupling module 24 .
[0086] The RS422 channel module 223 is voltage-isolated from the board under test through the optical coupling module 24 , and performs information transmission of the RS422 channel test 223 .
[0087] In a specific implementation, one end of the RS485 channel module 224 is connected to the host computer 1 through the data processing module 21 , and the other end is connected to the recording board 27 to be tested through the optical coupling module 24 .
[0088] The RS485 channel module 224 is voltage-isolated from the board under test through the optical coupler module 24 , and performs information transmission of the RS485 channel test 224 .
[0089] In a specific implementation, one end of the CAN channel module 225 is connected to the host computer 1 through the data processing module 21 , and the other end is connected to the recording board 27 to be tested through the optical coupling module 24 .
[0090] The CAN channel module 225 is voltage-isolated from the board under test through the optical coupler module 24 , and performs information transmission of the CAN channel test 225 .
[0091] In an embodiment of the present invention, the GPIO channel module 221 includes 24 parallel DC24V voltage circuits, the SBP channel module 222 includes 4 optocoupler isolation and common-mode filtering and voltage stabilization circuits, the RS422 channel module 223 includes 2 RS422 communication protocol chips, the RS485 channel module 224 includes 2 RS485 communication protocol chips, and the CAN channel module 225 includes 4 CAN communication protocol chips.
[0092] Specifically, in the GPIO channel module 221, when the tested board is online, the level of one DC24V voltage circuit corresponding to the tested board is a DC24V high level, and the other 23 DC24V voltage circuits maintain a low level.
[0093] The SBP channel module 222 performs common-mode filtering and voltage stabilization processing based on the 4-way SBP protocol specific data signals sent by the data processing module 21 and the information returned by the tested board through the optical coupling module 24 to obtain the SBP channel test result.
[0094] The RS422 channel module 223 transmits a specific data signal through the data processing module 21 to perform train radar and TCR pulse information testing to obtain test results of the train radar and TCR pulse information.
[0095] The RS485 channel module 224 transmits a specific data signal through the data processing module 21 to perform a train MVB bus protocol reception test to obtain a test result of the train MVB bus protocol reception.
[0096] The CAN channel module 225 transmits a specific data signal through the data processing module 21 to perform a train CAN bus protocol reception test to obtain a test result of the train CAN bus protocol reception.
[0097] In the embodiment of the present invention, when performing channel testing, the test module adopts a modular design, and analyzes and processes the control information sent by the host computer after being processed by the data processing module and received by the channel module to be tested, and then performs channel testing on the single board to be tested according to the analyzed and processed data information, thereby reducing signal interference between each other and facilitating the maintenance of the test device. By setting different voltages for different channel modules to be tested, the influence between the single board to be tested and the test module is reduced.
[0098] Based on the test device for a train onboard recording board provided by the above-mentioned embodiment of the present invention, the embodiment of the present invention also provides a test method for a train onboard recording board.
[0099] See also Figure 3 , is a flow chart of a test method for a train on-board recording board provided by an embodiment of the present invention, the test method is applied to the above Figure 1 and Figure 2 The disclosed testing device. The testing method comprises the following steps:
[0100] Step S301: When the test module is not powered on, the host computer performs an open-short circuit test on the recording board to be tested. If a short circuit state occurs, step S308 is executed; if no short circuit state occurs, step S302 is executed.
[0101] In the specific implementation process of step S301, first connect the test device and the host computer, turn on the host computer, disconnect the power of the test module, and perform an open and short circuit test on the host computer on the record board to be tested. Test whether the places where the host computer and the record board to be tested should be connected are connected. If not, it is in an open circuit state. Fill the test result into the text box position specified by the host computer, determine the resistance value of the record board to be tested, and execute step S302 to test whether the places where the record board to be tested should not be connected are connected. If the places where they should not be connected are connected, it is in a short circuit state, and execute step S308.
[0102] It should be noted that the test result requires the measured resistance to be greater than 5 ohms to ensure that there is no short circuit risk at the output end of the power supply. The test result should confirm that there is only an open circuit in the circuit, that is, there is no short circuit.
[0103] Step S302: The host computer controls the test module to power on.
[0104] In the specific implementation process of step S302, according to the test result transmitted back to the host computer that no short circuit state occurs, the host computer controls the test module to be powered on, and then executes step S303.
[0105] Step S303: measuring the reference voltage of each tested board on the record board to be tested through the connector, if the reference voltage of the tested board is qualified, executing step S304; if the reference voltage of the tested board is unqualified, executing step S308.
[0106] In the process of implementing step S303, the reference voltage of each tested board on the test recording board is measured through the connector, the test result is filled in the text box position specified by the upper computer software, and then the voltage is determined. If the reference voltage of the tested board is qualified, step S304 is executed; if the reference voltage of the tested board is unqualified, step S308 is executed.
[0107] It should be noted that the reference voltage refers to the stable voltage value output by the switching power supply and linear regulator circuits on the board, which is consistent with the circuit principle design requirements, such as the fixed voltage of 3.3V\1.8V\1.2V for chip power supply. The test results are specific voltage values, which can fluctuate within a certain range, such as ±5%. If the upper and lower limits of the range are not exceeded, the software can determine that it is qualified.
[0108] Step S304: the host computer sends Linux system update information to the recording board to be tested based on the connector.
[0109] In the specific implementation process of step S304, the host computer sends Linux system update information to the recording board to be tested based on the connector, so that the recording board to be tested performs Linux system update.
[0110] It should be noted that the tested board must be updated with Linux system, and the newly produced tested board does not have the corresponding test program. Only after the test program is updated can it communicate with the host computer software in various protocols.
[0111] Step S305: After the update of the record board to be tested is completed, the host computer uses the channel module to be tested in the channel test module group to perform a channel test. If the channel test fails, step S306 is executed; if the channel test passes, step S308 is executed.
[0112] In the specific implementation process of step S305, after the record board to be tested is updated, the test program and the host computer software communicate in various protocols, and the host computer uses the channel module to be tested in the channel test module group to perform a channel test. If the channel test fails, step S306 is executed. If the channel test passes, step S307 is executed.
[0113] Step S306: the host computer displays the information of the tested board that has a fault, and executes step S308.
[0114] In the process of implementing step S306, if the channel test fails, the host computer software will pop up an error window, which displays the information of the tested board with the fault and prompts to locate the specific component channel.
[0115] Step S307: After completing the channel test, the host computer performs the channel test result based on the channel module to be tested.
[0116] Step S308: Generate a test report and output it.
[0117] In the specific implementation of step S308, after the channel test is completed, the host computer generates a test report according to the result of the channel test performed by the channel module to be tested, then outputs the test report, saves the test report, and finally ends the test.
[0118] In an embodiment of the present invention, when the test module is not powered on, an open short circuit test is performed by a host computer on whether a short circuit state occurs on the record board to be tested. If a short circuit state occurs, a test report is generated and outputted. If a short circuit state does not occur, the host computer controls the test module to be powered on, and measures whether the reference voltage of each single board to be tested on the record board to be tested is qualified through a connector. If the reference voltage is qualified, the host computer sends Linux system update information to the record board to be tested based on the connector, so that the record board to be tested is updated. If the reference voltage is unqualified, a test report is generated and outputted. After the update of the record board to be tested is completed, the host computer uses the channel modules to be tested in the channel test module group to perform channel tests in sequence. When the channel test performed based on any channel module to be tested fails, the host computer displays the information of the single board to be tested that has a fault. After completing the channel test, the host computer generates a test report based on the result of the channel test performed by the channel module to be tested, and outputs it. In the process of power-off, power-on and channel testing, damage to the tested board and detection device is avoided step by step. During the test, the basic resistance value, reference voltage and fault location pop-up window are determined to greatly improve the efficiency and accuracy of testing and detection maintenance.
[0119] The above embodiments of the present invention Figure 3 The specific channel test involved in the disclosed step S305, if the channel modules to be tested include at least: a GPIO channel module, an SBP channel module, an RS422 channel module, an RS485 channel module and a CAN channel module; the host computer sequentially performs channel tests using the channel modules to be tested in the channel test module group, including:
[0120] The host computer sequentially tests 24 GPIO channels, 4 SBP channels, 2 RS485 channels, 2 RS422 channels, 4 CAN channels and 2 Ethernet channels based on the GPIO channel module, SBP channel module, RS422 channel module, RS485 channel module and CAN channel module.
[0121] refer to Figure 4 , an embodiment of the present invention discloses a flow chart of another method for testing a train onboard recording board, comprising the following steps:
[0122] Step S401: When the test module is not powered on, the host computer performs an open-short circuit test on the recording board to be tested. If a short circuit state occurs, step S413 is executed; if no short circuit state occurs, step S402 is executed.
[0123] Step S402: The host computer controls the test module to power on.
[0124] Step S403: Measure the reference voltage of each tested board on the record board to be tested through the connector. If the reference voltage of the tested board is qualified, execute step S404; if the reference voltage of the tested board is unqualified, execute step S413.
[0125] Step S404: the host computer sends Linux system update information to the recording board to be tested based on the connector.
[0126] The execution principle and process of the above steps S401 to S404 are the same as Figure 3 The execution principles and processes of steps S301 to S304 disclosed in are the same, which can be referred to and will not be repeated here.
[0127] Step S405: After the record board to be tested is updated, the host computer uses the GPIO channel module to perform a GPIO channel test. If the test passes, step S406 is executed; if the test fails, step S411 is executed.
[0128] In the specific implementation process of step S405, after the Linux system is updated on the record board to be tested, the host computer uses the GPIO channel module to test the 24 GPIO channels. If the test passes, step S406 is executed. If the test fails, step S411 is executed.
[0129] Step S406: After the record board to be tested is updated, the host computer uses the SBP channel module to perform an SBP channel test. If the test passes, step S407 is executed; if the test fails, step S411 is executed.
[0130] In the specific implementation process of step S406, after the Linux system is updated on the record board to be tested, the host computer performs channel testing on 4 SBP channels based on the SBP channel module. If the test passes, step S407 is executed; if the test fails, step S411 is executed.
[0131] Step S407: After the update of the record board to be tested is completed, the host computer uses the RS485 channel module to perform RS485 channel test. If the test passes, step S408 is executed. If the test fails, step S411 is executed.
[0132] In the specific implementation process of step S407, after the Linux system is updated on the recording board to be tested, the host computer uses the RS485 channel module to perform a 2-way RS485 channel test. If the test passes, step S408 is executed. If the test fails, step S411 is executed.
[0133] Step S408: After the record board to be tested is updated, the host computer uses the RS422 channel module to perform RS422 channel testing. If the test passes, step S409 is executed; if the test fails, step S411 is executed.
[0134] In the specific implementation process of step S408, after the Linux system is updated on the recording board to be tested, the host computer uses the RS485 channel module to perform a 2-way RS422 channel test. If the test passes, step S409 is executed. If the test fails, step S411 is executed.
[0135] Step S409: After the update of the record board to be tested is completed, the host computer uses the CAN channel module to perform a CAN channel test. If the test passes, step S410 is executed; if the test fails, step S411 is executed.
[0136] In the specific implementation process of step S409, after the Linux system is updated on the recording board to be tested, the host computer uses the RS485 channel module to test the 4-way CAN channel. If the test passes, step S410 is executed. If the test fails, step S411 is executed.
[0137] Step S410: After the Linux system of the recording board to be tested is updated, the host computer performs an Ethernet channel test. If the test passes, step S413 is executed. If the test fails, step S411 is executed.
[0138] In the specific implementation process of step S410, after the Linux system is updated on the recording board to be tested, the host computer performs a 2-way Ethernet channel test. If the test passes, step S413 is executed. If the test fails, step S411 is executed.
[0139] It should be noted that the sequence in which the host computer performs channel tests using the channel modules to be tested in the channel test module group is not limited to the sequence disclosed above in the present invention, and can also be set by technicians based on technical requirements.
[0140] Step S411: the host computer displays information about the tested board that has a fault.
[0141] In the specific implementation of step S411, according to the channel module to be tested that fails the channel test, the host computer software will pop up an error window, and the window will display the information of the tested board that has a fault.
[0142] For example, if the test of 24 GPIO channels fails, the host computer obtains an error channel among the 24 GPIO channels, and determines the device information on the tested board based on the error channel.
[0143] If the 4-way SBP channel module test fails, the information of the tested board with the fault is displayed, the host computer obtains the error channel in the 4-way SBP channel, and determines the device information on the tested board based on the error channel.
[0144] If the test of the two RS485 channels fails, the host computer obtains an error channel in the two RS485 channels, and determines the device information on the tested board based on the error channel.
[0145] If the test of the two RS422 channels fails, the host computer obtains an error channel in the two RS422 channels, and determines the device information on the tested board based on the error channel.
[0146] If the 4-way CAN channel test fails, the host computer obtains an error channel among the 4-way CAN channels, and determines the device information on the tested board based on the error channel.
[0147] If the test of the two Ethernet channels fails, the host computer obtains an error channel in the two Ethernet channels, and determines the device information on the tested board based on the error channel.
[0148] Step S412: After completing the channel test, the host computer performs the channel test result based on the channel module to be tested.
[0149] Step S413: Generate a test report and output it.
[0150] In the specific implementation of step S413, the host computer generates a test report based on the result of the channel test performed on the channel module to be tested, then outputs the test report, saves the test report, and finally ends the test.
[0151] In the embodiment of the present invention, the signal interference between each module and the single board under test is isolated by relays and optical coupling modules. After the update of the record board to be tested is completed, the host computer uses the modularly designed channel modules to be tested in the channel test module group to perform channel tests in sequence, reducing the tedious steps of repeatedly disassembling various devices, thereby facilitating large-scale testing and shortening the test time. Furthermore, if the channel test fails, the host computer pops up an error window, displays the information of the single board under test that has a fault, and prompts to locate the specific component channel, thereby achieving the purpose of facilitating the maintenance of the test device.
[0152] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A test device for a train-mounted recording board, characterized in that: The test device comprises a host computer and a test module, and a communication connection is established between the host computer and the test module; The test module is composed of a data processing module, a channel test module group, a relay, an optical coupling module and a connector arranged on a test fixture; One end of the data processing module is connected to the host computer, and the other end is connected to the channel test module group, and is used to forward the control information sent by the host computer to each channel module to be tested in the channel test module group, and to return the test information fed back by the channel module to be tested; The channel test module group is composed of channel modules to be tested, and the channel modules to be tested perform channel tests on the tested board based on the received data information; One end of the relay and the optical coupling module are respectively connected to the corresponding channel module to be tested, and the other end is respectively connected to the connector, for voltage isolation between the single board under test and the channel module to be tested, and signal transmission between the single board under test and the channel module to be tested; The connector is arranged on the test base, and is respectively connected to the host computer, the relay and the optical coupling module, and is used to insert and place the recording board to be tested and perform signal transmission. The recording board to be tested is used to record the information of each single board on the train. When performing a channel test, the single board to be tested is determined based on the information of the single board; The host computer is used to perform an open-short circuit test on the record board to be tested when the test module is not powered on, and after the measurement is passed, send update information to the record board to be tested through the connector, send control information to each channel module to be tested in the channel test module group through the data processing module, receive test information of the single board to be tested transmitted back by the channel module to be tested through the data processing module, and generate a test report based on the test information.
2. The device according to claim 1, characterized in that The host computer is connected to the data processing module via a USB interface to serial port data cable; The host computer is connected to the connector via a USB interface to serial port data cable and an Ethernet cable.
3. The device according to claim 1, characterized in that The channel modules to be tested at least include: a general purpose input and output GPIO channel module, a serial bus SBP channel module, a serial transmission RS422 channel module, a serial transmission RS485 channel module and a controller area network CAN channel module; The channel test module group is a combination of any channel modules among the GPIO channel module, the SBP channel module, the RS422 channel module, the RS485 channel module and the CAN channel module; One end of the GPIO channel module is connected to the host computer through the data processing module, and the other end is connected to the recording board to be tested through the relay, and is used to collect status information of non-tested boards, and to perform voltage isolation with the tested board through the relay, and send a control signal to the tested board; One end of the SBP channel module is connected to the host computer through the data processing module, and the other end is connected to the recording board to be tested through the optical coupling module, and is used to perform voltage isolation with the single board to be tested through the optical coupling module, and perform information transmission for SBP channel testing; One end of the RS422 channel module is connected to the host computer through the data processing module, and the other end is connected to the recording board to be tested through the optical coupling module, and is used for voltage isolation with the single board to be tested through the optical coupling module, and performing information transmission of RS422 channel test; One end of the RS485 channel module is connected to the host computer through the data processing module, and the other end is connected to the record board to be tested through the optical coupling module, and is used for performing voltage isolation with the single board to be tested through the optical coupling module, and performing information transmission of RS485 channel test; One end of the CAN channel module is connected to the host computer through the data processing module, and the other end is connected to the recording board to be tested through the optical coupling module, which is used to perform voltage isolation with the tested single board through the optical coupling module and perform information transmission for CAN channel testing.
4. The device according to claim 3, characterized in that The GPIO channel module includes 24 parallel DC24V voltage circuits. When the tested single board is online, the level of one DC24V voltage circuit corresponding to the tested single board is a DC24V high level, and the other 23 DC24V voltage circuits maintain a low level; The SBP channel module includes 4-way optical coupling isolation and common mode filtering and voltage stabilization circuits, and performs common mode filtering and voltage stabilization processing based on the 4-way SBP protocol specific data signals sent by the data processing module and the information returned by the tested single board through the optical coupling module to obtain the SBP channel test result; The RS422 channel module includes 2 RS422 communication protocol chips, and transmits specific data signals through the data processing module to perform train radar and TCR pulse information tests to obtain test results of train radar and TCR pulse information; The RS485 channel module includes 2 RS485 communication protocol chips, and transmits a specific data signal through the data processing module to perform a train MVB bus protocol reception test to obtain a test result of the train MVB bus protocol reception; The CAN channel module includes 4 CAN communication protocol chips, and transmits specific data signals through the data processing module to perform a train CAN bus protocol reception test to obtain the test result of the train CAN bus protocol reception.
5. The device according to claim 1, characterized in that The data processing module includes a 32-bit single-chip microcomputer and an FPGA chip.
6. The device according to claim 1, characterized in that The connector includes 2 PIN48-pin standard rectangular connectors.
7. The device according to claim 1, characterized in that The test fixture is also provided with a power supply module for supplying power to each module on the test fixture; The power module has a built-in AC220V to DC24V module and a DC24V to DC5V module.
8. A method for testing a train onboard recording board, characterized in that: A test device for a train onboard recording board according to any one of claims 1 to 7, wherein the test method comprises: When the test module is not powered on, the host computer performs an open-short circuit test on the recording board to be tested; If the short circuit state does not occur, the host computer controls the test module to be powered on, and measures the reference voltage of each tested board on the record board to be tested through the connector; If the reference voltage is qualified, the host computer sends Linux system update information to the record board to be tested based on the connector, so that the record board to be tested is updated; After the update is completed, the host computer uses the channel modules to be tested in the channel test module group to perform channel tests in sequence; When the channel test performed based on any of the channel modules to be tested fails, the host computer displays the information of the tested board that has a fault; After completing the channel test, the host computer generates a test report based on the result of the channel test performed by the channel module to be tested, and outputs the report.
9. The method according to claim 8, characterized in that If the channel modules to be tested include at least: a GPIO channel module, an SBP channel module, an RS422 channel module, an RS485 channel module and a CAN channel module; the host computer sequentially performs channel tests using the channel modules to be tested in the channel test module group, including: The host computer sequentially tests 24 GPIO channels, 4 SBP channels, 2 RS485 channels, 2 RS422 channels, 4 CAN channels and 2 Ethernet channels based on the GPIO channel module, SBP channel module, RS422 channel module, RS485 channel module and CAN channel module.
10. The method according to claim 9, characterized in that When the channel test performed based on any of the channel modules to be tested fails, the host computer displays the information of the tested board that has a fault, including: If the test of the 24 GPIO channels fails, the host computer obtains an error channel among the 24 GPIO channels, and determines the device information on the tested board based on the error channel; If the 4-way SBP channel module test fails, the information of the tested board with the fault is displayed, the host computer obtains the error channel in the 4-way SBP channel, and determines the device information on the tested board based on the error channel; If the test of the two RS485 channels fails, the host computer obtains the error channel in the two RS485 channels, and determines the device information on the tested board based on the error channel; If the test of the two RS422 channels fails, the host computer obtains the error channel in the two RS422 channels, and determines the device information on the tested board based on the error channel; If the 4-way CAN channel test fails, the host computer obtains the error channel in the 4-way CAN channel, and determines the device information on the tested board based on the error channel; If the test of the two Ethernet channels fails, the host computer obtains an error channel in the two Ethernet channels, and determines the device information on the tested board based on the error channel.
