Network communication reliability testing method and testing system based on train display equipment

Through the collaborative work of PC, program-controlled power supply and accompanying test equipment, network instability scenarios are simulated and the network communication reliability of train display equipment is automatically tested, which solves the problems of low efficiency and high cost in the existing technology and achieves automated and continuous fault analysis capabilities.

CN115941524BActive Publication Date: 2024-10-29CRRC ZHUZHOU ELECTRIC LOCOMOTIVE RESEARCH INSTITUTE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111155424.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-29
Publication Date
2024-10-29
Estimated Expiration
2041-09-29

AI Technical Summary

Technical Problem

Existing technology makes it difficult to automatically test the network communication reliability of train display equipment, resulting in low efficiency, high cost, inability to perform manual operations for a long time, and inability to effectively analyze network faults.

Method used

Through the collaborative work of PC, program-controlled power supply and accompanying test equipment, the scenario of unstable network environment is simulated, and the startup and shutdown operations of the accompanying test equipment are used to poll the print information of the train display device and match the network interface information for automated testing. Network communication reliability.

Benefits of technology

Automated testing has been realized, which avoids the problems of low efficiency and high cost of manual operation. It can continue testing for a long time, stop it in time and retain the fault site to facilitate fault analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115941524B_ABST
    Figure CN115941524B_ABST
Patent Text Reader

Abstract

The present application provides a network communication reliability test method and test system based on a train display device. After the debugging of a PC, a programmable power supply, a train display device and a companion test device is completed, the PC controls the programmable power supply to power on, power off and power on the companion test device, so as to realize the startup, shutdown and startup of the companion test device. The unstable network environment is simulated by powering on and off the companion test device. In this simulated environment, the PC obtains the network interface status of the train display device by continuously polling the print information of the train display device. After the debugging is completed, the PC also sets and checks the network interface information of the train display device through instructions. The PC obtains the test result by matching the print information and the network interface information. The test result is recorded and analyzed to realize the automated test.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of network communication testing, and in particular to a network communication reliability testing method and testing system based on a train display device. Background Art

[0002] The train display device is mainly used to collect and display data sent by other devices on the train, so as to monitor the operation status of the entire train. The train display device transmits data with other devices via Ethernet. However, after the train has been running for a long time, the operating environment often fluctuates, which may cause the network interface connection to loosen, or the network cable to age over time. In this unstable situation, the train display device may change its working mode or connection method due to this instability, eventually leading to network abnormalities. As the display and control device of the train, it is particularly important to ensure the reliability of its network communication.

[0003] However, the manual testing method of plugging and unplugging network cables for a long time is time-consuming, labor-intensive, inefficient and costly. Therefore, how to automatically test the reliability of network communication of train display equipment to improve its reliability is an urgent problem to be solved. Summary of the invention

[0004] In view of this, the purpose of the present application is to propose a network communication reliability testing method and testing system based on a train display device that can solve or partially solve the above-mentioned technical problems.

[0005] Based on the above purpose, the first aspect of the present application provides a network communication reliability testing method based on a train display device, comprising:

[0006] In response to the completion of the debugging of the PC, the program-controlled power supply, the train display device and the accompanying test device, the PC configures the network interface of the train display device and checks the network interface information of the train display device;

[0007] In response to the program-controlled power supply receiving a power-on instruction sent by the PC, the program-controlled power supply executes the power-on instruction to power on the accompanying test device;

[0008] In response to the program-controlled power supply receiving a power-off instruction sent by the PC, the program-controlled power supply executes the power-off instruction to power off the accompanying test device;

[0009] In response to the program-controlled power supply receiving the power-on instruction sent by the PC again, the program-controlled power supply executes the power-on instruction again to power on the accompanying test device again;

[0010] In response to the accompanying test device being powered on, powered off, and powered on again, the PC continuously polls the print information of the train display device according to the network communication between the accompanying test device and the train display device;

[0011] The PC matches the printing information with the network interface information and obtains a test result based on the matching result.

[0012] The second aspect of the present application provides a network communication reliability test system based on a train display device, comprising: a PC, a programmable power supply, a train display device and a companion test device;

[0013] The PC is used to configure the network interface of the train display device and check the network interface information of the train display device after the PC, the program-controlled power supply, the train display device and the accompanying test device are debugged;

[0014] The program-controlled power supply is used to execute the power-on instruction after receiving the power-on instruction sent by the PC to power on the accompanying test device;

[0015] The program-controlled power supply is also used to execute the power-off instruction after receiving the power-off instruction sent by the PC to power off the accompanying test equipment;

[0016] The program-controlled power supply is also used to execute the power-on instruction again after receiving the power-on instruction sent by the PC again, and power on the accompanying test device again;

[0017] The PC is also used to continuously poll the print information of the train display device according to the network communication between the accompanying test device and the train display device during the process of powering on, powering off and powering on the accompanying test device;

[0018] The PC is also used to match the printing information with the network interface information, and obtain a test result based on the matching result.

[0019] From the above, it can be seen that the network communication reliability testing method and testing system based on the train display device provided by the present application, after the debugging of the PC, the programmable power supply, the train display device and the accompanying test device is completed, the PC controls the programmable power supply to power on-off-on the accompanying test device, so as to realize the startup-shutdown-startup of the accompanying test device, and simulates the unstable network environment scenario by powering on and off the accompanying test device. In this simulated environment, the PC obtains the network interface status of the train display device by continuously polling the print information of the train display device. After the debugging is completed, the PC will also set and view the network interface information of the train display device through instructions. The PC obtains the test results by matching the print information and the network interface information, and records the test results. When the test results show that the network interface fails, the PC prompts an error message and stops the test in time, retains the fault site, so as to analyze the fault, and the automated testing process avoids the problem that manual operation cannot be tested for a long time. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 A flow chart of a network communication reliability testing method based on a train display device provided in an embodiment of the present application;

[0022] Figure 2 An expanded flowchart of a portion of the process of step 100 provided in an embodiment of the present application;

[0023] Figure 3 A flowchart of the debugging process of step 110 provided in an embodiment of the present application;

[0024] Figure 4 An expanded flowchart of step 120 of the network communication reliability testing method based on a train display device provided in an embodiment of the present application;

[0025] Figure 5 An expanded flow chart of step 100 provided in an embodiment of the present application;

[0026] Figure 6 Another expanded flow chart of step 100 provided in an embodiment of the present application;

[0027] Figure 7 Another expanded flow chart of step 100 provided in an embodiment of the present application;

[0028] Figure 8 An expanded flow chart of step 600 provided in an embodiment of the present application;

[0029] Fig. 9 A schematic diagram of a network communication reliability testing system based on a train display device provided in an embodiment of the present application;

[0030] Fig.10 A flowchart of another method of testing the network communication reliability of a train display device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0031] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0032] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.

[0033] The relevant test methods generally use the method of plugging and unplugging network cables to simulate the unstable network state, where the unstable network state includes loose network cables of train display equipment, poor contact, aging of connecting cables, etc. Whether using mechanical equipment to automatically plug and unplug network cables or manually plug and unplug network cables, the test efficiency is low, the labor cost is high, it cannot be operated for a long time, and the simulation effect is not ideal. It is impossible to retain the scene where the fault occurred, and it is difficult to analyze the corresponding existing problems.

[0034] The network communication reliability testing method based on the train display device provided in the present application simulates the scenario of unstable network environment by powering on and off the accompanying test equipment. In this simulated environment, the PC obtains the network interface status of the train display device by continuously polling the print information of the train display device. The PC also sets and views the network interface information of the train display device through instructions. The PC obtains the test result by matching the print information and the network interface information, and records the test result. When the test result shows that the network interface fails, the PC prompts an error message and stops the test in time, retaining the fault site for fault analysis. The automated testing process avoids the problem that manual operation cannot be tested for a long time.

[0035] In some embodiments, Figure 1 As shown, the network communication reliability test method based on the train display device includes:

[0036] Step 100, in response to the completion of the debugging of the PC, the programmable power supply, the train display device and the accompanying test device, the PC configures the network interface of the train display device and checks the network interface information of the train display device.

[0037] In this step, a power-off command is sent to the program-controlled power supply through the PC, and the program-controlled power supply is powered off after executing the power-off command, and it is determined that the PC and the program-controlled power supply are in a connected state; a login command is sent to the train display device through the PC, and the train display device logs in after executing the login command, and it is determined that the PC and the train display device are in a connected state; this debugging process can eliminate the impact of other interfaces on the test interface when there is no problem with the device itself, and improve the accuracy of the test interface test results. After confirming that there are no problems with the connection and communication process of each device, the PC configures the network interface of the train display device and checks the network interface information of the train display device and records it.

[0038] Step 200, in response to the programmable power supply receiving the power-on instruction sent by the PC, the programmable power supply executes the power-on instruction to power on the test device.

[0039] In this step, the PC sends a power-on command to the programmable power supply, and the programmable power supply executes the power-on command to power on the companion test equipment. After the companion test equipment is powered on, it starts to communicate with the train display device, simulating the network connectivity status in an unstable network state. While communicating, the PC will continuously poll the print information of the train display device and record it for matching with the network interface information.

[0040] Step 300, in response to the programmable power supply receiving the power-off instruction sent by the PC, the programmable power supply executes the power-off instruction to power off the accompanying test device.

[0041] In this step, the PC sends a power-off command to the programmable power supply, and the programmable power supply executes the power-off command to power off the accompanying test equipment. After the accompanying equipment is powered off, it is shut down and stops communicating with the train display device, simulating the network disconnection state in an unstable network state. While stopping communication, the PC will continuously poll the print information of the train display device and record it for matching with the network interface information.

[0042] Step 400, in response to the program-controlled power supply receiving the power-on instruction sent by the PC again, the program-controlled power supply executes the power-on instruction again to power on the companion test device again.

[0043] In this step, the PC sends a power-on command to the programmable power supply again, and the programmable power supply executes the power-on command to power on the companion test device again. After the companion test device is powered on again, it starts again and communicates with the train display device again, simulating the state of the network being disconnected and then reconnected in an unstable network state. While communicating again, the PC will continuously poll the print information of the train display device and record it for matching with the network interface information.

[0044] Step 500, in response to the accompanying test device being powered on, powered off, and powered on again, the PC continuously polls the print information of the train display device according to the network communication between the accompanying test device and the train display device.

[0045] In this step, the programmable power supply receives at least one power-on instruction and power-off instruction from the PC, and powers on, off and then on the companion device according to at least one power-on instruction and power-off instruction, simulating a relatively complete network instability state. In the process of simulating a relatively complete network instability state, the PC will continuously poll the print information of the train display device, wherein the print information includes but is not limited to the IP address of the train display device at the network interface, the working mode of the train display device and the connection method of the train display device.

[0046] Step 600: The PC matches the printing information with the network interface information and obtains a test result based on the matching result.

[0047] In this step, the PC matches the network interface information with the printing information, and uses the network interface information as a reference. If the printing information is inconsistent with the network interface information, the PC prompts an error message and stays on the current test page to analyze the cause of the inconsistency. The inconsistency between the printing information and the network interface information indicates that the network connection is unstable and the network communication reliability is low. If the printing information is consistent with the network interface information, the PC controls the programmable power supply to cycle the test process multiple times, and the specific number of cycles is set independently according to needs. If the printing information is always consistent with the network interface information during the cycle, it indicates that the network connection is stable and the network communication reliability is high; during the cycle, when the printing information is inconsistent with the network interface information for the first time, the cycle stops, the PC prompts an error message, and stays on the current test page to analyze the cause of the inconsistency. The inconsistency between the printing information and the network interface information during the cycle indicates that the network connection is unstable and the network communication reliability is relatively low.

[0048] In some embodiments, Figure 2 As shown, in response to the completion of the commissioning of the PC, program-controlled power supply, train display equipment and accompanying test equipment, specifically including:

[0049] Step 110, the PC confirms that it is connected to the programmable power supply.

[0050] In this step, the PC will configure the programmable power supply and confirm that the PC and the programmable power supply are connected by sending instructions and receiving feedback. If the PC reads the feedback of the programmable power supply, it means that the connection between the PC and the programmable power supply is valid, eliminating the impact of the invalid connection between the PC and the programmable power supply on the test results, and ensuring that the test results are caused by the unstable network communication between the train display device and the accompanying test equipment. If the PC cannot read the feedback of the programmable power supply, it is considered that the connection between the PC and the programmable power supply has failed, and the confirmation process is cyclic until the PC reads the feedback of the programmable power supply and confirms that it is connected to the programmable power supply.

[0051] Step 120: The PC confirms that it is connected to the train display device.

[0052] In this step, the PC will configure the train display device and confirm that the PC and the train display device are connected by sending instructions and receiving feedback. If the PC reads the feedback from the train display device, it indicates that the connection between the PC and the train display device is valid, eliminating the impact of the invalid connection between the PC and the train display device on the test results, and ensuring that the test results are caused by the unstable network communication between the train display device and the accompanying test equipment. If the PC cannot read the feedback from the train display device, it is considered that the connection between the PC and the train display device has failed, and the confirmation process is repeated until the PC reads the feedback from the train display device and confirms that the connection with the train display device is valid.

[0053] Step 130, in response to the train display device receiving the restart instruction sent by the PC, the train display device restarts according to the restart instruction.

[0054] In this step, after the PC confirms that it is connected to the programmable power supply and the train display device, the PC sends a restart command to the programmable power supply. The programmable power supply receives and executes the restart command to restart, thereby eliminating the influence of the instructions in the process of PC debugging the programmable power supply on the test results.

[0055] Step 140, in response to the train display device receiving the login instruction sent by the PC, the train display device logs in according to the login instruction.

[0056] In this step, after the PC confirms that it is connected to the programmable power supply and the train display device, the PC will restart the programmable power supply, and then the PC will send a login instruction to the programmable power supply. The programmable power supply receives and executes the login instruction to log in, confirming that the train display device can log in and run normally, and eliminating the impact of the fault in the programmable power supply itself on the test results.

[0057] In some embodiments, Figure 3As shown, the PC confirms that it is connected to the programmable power supply, including:

[0058] Step 111, in response to the programmable power supply receiving the first serial port parameter configured by the PC, the PC sends a power-off instruction.

[0059] In this step, the PC will configure the first serial port parameters required for the test for the programmable power supply and send the first serial port parameters to the programmable power supply. After the programmable power supply receives the first serial port parameters, the PC will send a power-off instruction to the programmable power supply.

[0060] Step 112: In response to the programmable power supply receiving the power-off instruction, the programmable power supply sends a first feedback message.

[0061] In this step, after receiving the power-off instruction, the program-controlled power supply powers off the accompanying test device, and then sends the first feedback information to the PC to determine whether the power-off is successful.

[0062] Step 113, in response to determining that the PC has read the first feedback information and the program-controlled power supply has been powered off successfully, the PC confirms that it is connected to the program-controlled power supply.

[0063] In this step, the PC can read the first feedback information sent by the programmable power supply, indicating that the programmable power supply is successfully powered off, and the programmable power supply and the PC are connected, and there is no problem in information transmission, indicating that the connection between the PC and the programmable power supply is effective, eliminating the influence of the invalid connection between the PC and the programmable power supply on the test results, and ensuring that the test results are caused by unstable network communication between the train display device and the accompanying test equipment.

[0064] Step 114, in response to determining that the PC cannot read the first feedback information and the program-controlled power supply fails to be powered off, the PC resends the power-off instruction until the power-off is successful.

[0065] In this step, the PC cannot read the first feedback information sent by the programmable power supply, indicating that the programmable power supply has failed to power off, and the programmable power supply and the PC are disconnected, and the information transmission is interrupted. At this time, the PC resends the power-off command until the first feedback information can be read, confirming that the PC and the programmable power supply are connected.

[0066] In some embodiments, Figure 4 As shown, the PC confirms that it is connected to the train display device, including:

[0067] Step 121, in response to the train display device receiving the second serial port parameters configured by the PC, the PC sends a login instruction.

[0068] In this step, the PC will configure the second serial port parameters required for the test for the train display device and send the second serial port parameters to the train display device. After the train display device receives the second serial port parameters, the PC will send a login instruction to the train display device.

[0069] Step 122: In response to the train display device receiving the login instruction, the train display device sends a second feedback message.

[0070] In this step, after receiving the login instruction, the train display device will log in to the train display device, and then send the second feedback information to the PC to determine whether the login is successful.

[0071] Step 123, in response to determining that the PC has read the second feedback information and the train display device has logged in successfully, the PC confirms that it is connected to the train display device.

[0072] In this step, the PC can read the second feedback information sent by the train display device, indicating that the train display device has logged in successfully, and the train display device and the PC are connected, and there is no problem in information transmission, indicating that the connection between the PC and the train display device is effective, eliminating the influence of the invalid connection between the PC and the train display device on the test results, and ensuring that the test results are caused by unstable network communication between the train display device and the accompanying test equipment.

[0073] Step 124, in response to determining that the PC cannot read the second feedback information, the login to the train display device fails, and the PC resends the login instruction until the login succeeds.

[0074] In this step, the PC cannot read the second feedback information sent by the train display device, indicating that the login to the train display device has failed, and the train display device and the PC are disconnected, and the information transmission is interrupted. At this time, the PC resends the login instruction until the second feedback information can be read, confirming that the PC and the train display device are connected.

[0075] In some embodiments, Figure 5 As shown, the PC configures the network interface of the train display device and reads the network interface information of the train display device, including:

[0076] Step S01, in response to the train display device receiving an IP address setting instruction sent by a PC, the train display device sets an IP address according to the IP address setting instruction.

[0077] In this step, the PC controls the train display device to set the IP address by sending an IP address setting instruction. Setting the IP address required for the test can make the analysis of the test results more convenient and clear.

[0078] Step S02, in response to the PC sending an IP address checking instruction, the PC checks the IP address of the train display device.

[0079] In this step, the PC checks the IP address of the train display device through the IP address viewing instruction and records the IP address. This IP address is a type of network interface information and is used for comparison and analysis with the printed information.

[0080] In some embodiments, Figure 6 As shown, the PC configures the network interface of the train display device and reads the network interface information of the train display device, and also includes:

[0081] Step S11, in response to the train display device receiving the working mode setting instruction sent by the PC, the train display device sets the working mode according to the working mode setting instruction.

[0082] In this step, the PC controls the train display device to set the working mode by sending working mode setting instructions. Setting the working mode required for the test can make the analysis of the test results more convenient and clear.

[0083] Step S12, in response to the PC sending the working mode checking instruction, the PC checks the working mode of the train display device.

[0084] In this step, the PC checks the working mode of the train display device through the working mode viewing instruction and records the working mode. This working mode is a type of network interface information and is used for comparison and analysis with the printed information.

[0085] In some embodiments, Figure 7 As shown, the PC configures the network interface of the train display device and reads the network interface information of the train display device, and also includes:

[0086] Step S21, in response to the train display device receiving the connection mode setting instruction sent by the PC, the train display device sets the connection mode according to the connection mode setting instruction.

[0087] In this step, the PC controls the train display device to set the connection mode by sending a connection mode setting instruction. Setting the connection mode required for the test can make the analysis of the test results more convenient and clear.

[0088] Step S22, in response to the PC sending a connection mode checking instruction, the PC checks the connection mode of the train display device.

[0089] In this step, the PC checks the connection mode of the train display device through the connection mode view instruction and records the connection mode, which is a type of network interface information and is used for comparison and analysis with the printed information.

[0090] In some embodiments, before the PC sends a power-on instruction, a power-off instruction, an IP address setting instruction, a working mode setting instruction, and a connection method setting instruction, the PC first sends a delay instruction, and the delay instruction is used to provide execution time for the execution of the instruction.

[0091] In this step, the information transmission between the PC, the programmable power supply, the train display device and the accompanying test device is extremely fast. However, it takes a certain amount of time for the programmable power supply to execute the power-on command to power on and execute the power-off command to power off, for the accompanying test device to start and shut down, and for the train display device to set the IP address, working mode and connection mode. Therefore, before the PC sends the power-on command, the power-off command, the IP address setting command, the working mode setting command and the connection mode setting command, the PC first sends a delay command. The delay command can provide execution time for the execution of the command to avoid the simultaneous execution of two or more commands, which will cause disorder in the PC system itself.

[0092] In some embodiments, Figure 8 As shown, the PC matches the print information with the network interface information and obtains the test results based on the matching results, including:

[0093] Step 601, in response to determining that the printing information matches the network interface information, performing multiple cycle tests according to test requirements.

[0094] In this step, the printing information is consistent with the network interface information, and the PC controls the programmable power supply to cycle the test process multiple times. The specific number of cycles can be set independently according to needs. If the printing information is always consistent with the network interface information during the cycle, it indicates that the network connection is stable and the network communication reliability is high. During the cycle, when the printing information is inconsistent with the network interface information for the first time, the cycle stops, the PC prompts an error message, and stays on the current test page to analyze the cause of the inconsistency. If the printing information is inconsistent with the network interface information during the cycle, it indicates that the network connection is unstable and the network communication reliability is relatively low.

[0095] Step 602, in response to determining that the printing information does not match the network interface information, the PC prompts an error message, stops testing, and stays on the current test interface.

[0096] In this step, the PC matches the network interface information with the printing information, using the network interface information as a reference. If the printing information is inconsistent with the network interface information, the PC prompts an error message and stays on the current test page to analyze the cause of the inconsistency. The inconsistency between the printing information and the network interface information indicates that the network connection is unstable and the network communication reliability is low.

[0097] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.

[0098] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0099] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a network communication reliability testing system based on a train display device.

[0100] refer to Fig. 9 , the network communication reliability test system based on train display equipment includes: a PC, a programmable power supply, a train display equipment and a companion test equipment;

[0101] The PC is used to configure the network interface of the train display device and view the network interface information of the train display device after the PC, programmable power supply, train display device and accompanying test equipment are debugged.

[0102] The programmable power supply is used to execute the power-on command after receiving the power-on command sent by the PC to power on the test equipment.

[0103] The programmable power supply is also used to execute the power-off instruction after receiving the power-off instruction sent by the PC, so as to power off the accompanying test equipment.

[0104] The program-controlled power supply is also used to execute the power-on instruction again after receiving the power-on instruction sent by the PC again, so as to power on the accompanying test equipment again.

[0105] The PC is also used to continuously poll the print information of the train display device according to the network communication between the accompanying test device and the train display device during the process of powering on, powering off and powering on the accompanying test device.

[0106] The PC is also used to match the printing information with the network interface information and obtain a test result based on the matching result.

[0107] Among them, the train display equipment is powered by a separately set DC power supply to maintain the operation of the train display equipment.

[0108] The device of the above embodiment is used to implement the corresponding network communication reliability automated testing method based on the train display device in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0109] It should be noted that the reference Fig.10 , the embodiments of the present application can be further described in the following manner:

[0110] 1. The PC configures the first serial port parameters of the programmable power supply and sends them to the programmable power supply. Then the PC sends a power-off command to the programmable power supply. The programmable power supply receives the command and sends the first feedback information. The PC cannot read the first feedback information, indicating that the power-off fails. The PC resends the power-off command until the power-off is successful.

[0111] 2. The PC configures the second serial port parameters of the train display device and sends them to the train display device. Then the PC sends a login command to the train display device. The train display device receives the command and sends a second feedback message. If the login fails, the login command is resent until the login is successful.

[0112] 3. The PC sends a restart command to the train display device to restart. The train display device receives the restart command, restarts and gives feedback.

[0113] 4. The PC sends the login command to the train display device again, and the train display device receives the command, logs in and gives feedback.

[0114] 5. After the PC sends the delay command, it sends the IP address setting command, the working mode setting command and the connection mode setting command to set the IP address, working mode and connection mode of the train display device.

[0115] 6. The PC sends the IP address check command, the working mode check command and the connection method check command to check the IP address, working mode and connection method and provide feedback.

[0116] 7. The PC sends a power-on command to the programmable power supply. The programmable power supply receives the power-on command and powers on the test equipment.

[0117] 8. After the PC sends the delay command, it sends a power-off command to the programmable power supply. The programmable power supply receives the power-off command and the test equipment is powered off.

[0118] 9. After the PC sends the delay command, it sends the power-on command to the programmable power supply. The programmable power supply receives the power-on command and powers on the test equipment.

[0119] 10. During steps 7 to 9, the PC continuously polls the printed information of the train display device to see if it is consistent with the network interface information of the train display device in steps 5 to 6. If not, an error message is prompted and the current test page is stayed. If consistent, steps 1 to 9 are repeated, and the number of cycles is set according to the needs.

[0120] It should be noted that, according to the test requirements, steps 1 to 10 can be looped to perform a long-term test.

[0121] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0122] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.

[0123] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.

[0124] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.

Claims

1. A network communication reliability testing method based on a train display device, characterized in that: include: In response to the completion of the debugging of the PC, the program-controlled power supply, the train display device and the accompanying test device, the PC configures the network interface of the train display device and checks the network interface information of the train display device; In response to the program-controlled power supply receiving a power-on instruction sent by the PC, the program-controlled power supply executes the power-on instruction to power on the accompanying test device; In response to the program-controlled power supply receiving a power-off instruction sent by the PC, the program-controlled power supply executes the power-off instruction to power off the accompanying test device; In response to the program-controlled power supply receiving the power-on instruction sent by the PC again, the program-controlled power supply executes the power-on instruction again to power on the accompanying test device again; In response to the accompanying test device being powered on, powered off, and powered on again, the PC continuously polls the print information of the train display device according to the network communication between the accompanying test device and the train display device; The PC matches the printing information with the network interface information and obtains a test result based on the matching result.

2. The method according to claim 1, characterized in that: In response to the completion of the commissioning of the PC, programmable power supply, train display equipment and accompanying test equipment, specifically including: The PC confirms that it is connected to the program-controlled power supply; The PC confirms that it is connected to the train display device; In response to the train display device receiving the restart instruction sent by the PC, the train display device restarts according to the restart instruction; In response to the train display device receiving the login instruction sent by the PC, the train display device logs in according to the login instruction.

3. The method according to claim 2, characterized in that The PC confirms that it is connected to the programmable power supply, specifically including: In response to the programmable power supply receiving the first serial port parameter configured by the PC, the PC sends a power-off instruction; In response to the programmable power supply receiving the power-off instruction, the programmable power supply sends first feedback information; In response to determining that the PC has read the first feedback information and the program-controlled power supply has been powered off successfully, the PC confirms that it is connected to the program-controlled power supply; In response to determining that the PC cannot read the first feedback information and the power-off of the programmable power supply fails, the PC resends the power-off instruction until the power-off succeeds.

4. The method according to claim 2, characterized in that The PC confirms that it is connected to the train display device, specifically including: In response to the train display device receiving the second serial port parameter configured by the PC, the PC sends a login instruction; In response to the train display device receiving the login instruction, the train display device issues second feedback information; In response to determining that the PC has read the second feedback information and the train display device has successfully logged in, the PC confirms that it is connected to the train display device; In response to determining that the PC cannot read the second feedback information, the login to the train display device fails, and the PC resends the login instruction until the login is successful.

5. The method according to claim 1, characterized in that The PC configures the network interface of the train display device and reads the network interface information of the train display device, specifically including: In response to the train display device receiving the IP address setting instruction sent by the PC, the train display device sets the IP address according to the IP address setting instruction; In response to the PC sending an IP address checking instruction, the PC checks the IP address of the train display device.

6. The method according to claim 5, characterized in that The PC configures the network interface of the train display device and reads the network interface information of the train display device, and also includes: In response to the train display device receiving the operating mode setting instruction sent by the PC, the train display device sets the operating mode according to the operating mode setting instruction; In response to the PC sending a working mode viewing instruction, the PC views the working mode of the train display device.

7. The method according to claim 6, characterized in that The PC configures the network interface of the train display device and reads the network interface information of the train display device, and also includes: In response to the train display device receiving the connection mode setting instruction sent by the PC, the train display device sets the connection mode according to the connection mode setting instruction; In response to the PC sending a connection mode viewing instruction, the PC views the connection mode of the train display device.

8. The method according to claim 7, characterized in that Before the PC sends the power-on instruction, the power-off instruction, the IP address setting instruction, the working mode setting instruction and the connection mode setting instruction, the PC first sends a delay instruction, and the delay instruction is used to provide execution time for the execution of the instruction.

9. The method according to claim 1, characterized in that: The PC matches the printing information with the network interface information, and obtains a test result according to the matching result, specifically including: In response to determining that the printing information matches the network interface information, performing multiple cycle tests according to test requirements; In response to determining that the printing information does not match the network interface information, the PC prompts an error message, stops testing, and stays on the current test interface.

10. A network communication reliability test system based on train display equipment, characterized in that: include: PC, program-controlled power supply, train display equipment and accompanying test equipment; The PC is used to configure the network interface of the train display device and check the network interface information of the train display device after the PC, the program-controlled power supply, the train display device and the accompanying test device are debugged; The program-controlled power supply is used to execute the power-on instruction after receiving the power-on instruction sent by the PC to power on the accompanying test device; The program-controlled power supply is also used to execute the power-off instruction after receiving the power-off instruction sent by the PC to power off the accompanying test equipment; The program-controlled power supply is also used to execute the power-on instruction again after receiving the power-on instruction sent by the PC again, and power on the accompanying test device again; The PC is also used to continuously poll the print information of the train display device according to the network communication between the accompanying test device and the train display device during the process of powering on, powering off and powering on the accompanying test device; The PC is also used to match the printing information with the network interface information, and obtain a test result based on the matching result.

Citation Information

Patent Citations

  • Automatic closed loop test method for frequent startup and shutdown of vehicle-mounted display

    CN104268041A

  • Method and device for testing serial ports of servers

    CN105468486A