CN115174430B - Method and device for testing starting time of track traffic vehicle-mounted equipment - Google Patents

Method and device for testing starting time of track traffic vehicle-mounted equipment Download PDF

Info

Publication number
CN115174430B
CN115174430B CN202210756033.3A CN202210756033A CN115174430B CN 115174430 B CN115174430 B CN 115174430B CN 202210756033 A CN202210756033 A CN 202210756033A CN 115174430 B CN115174430 B CN 115174430B
Authority
CN
China
Prior art keywords
time
test
instruction
tool unit
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210756033.3A
Other languages
Chinese (zh)
Other versions
CN115174430A (en
Inventor
左登超
李德祥
贾涛
祝宁
刘永康
阎士奇
王晋伟
王福才
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CRRC Qingdao Sifang Rolling Stock Research Institute Co Ltd
Original Assignee
CRRC Qingdao Sifang Rolling Stock Research Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CRRC Qingdao Sifang Rolling Stock Research Institute Co Ltd filed Critical CRRC Qingdao Sifang Rolling Stock Research Institute Co Ltd
Priority to CN202210756033.3A priority Critical patent/CN115174430B/en
Publication of CN115174430A publication Critical patent/CN115174430A/en
Application granted granted Critical
Publication of CN115174430B publication Critical patent/CN115174430B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/005Testing of electric installations on transport means
    • G01R31/008Testing of electric installations on transport means on air- or spacecraft, railway rolling stock or sea-going vessels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/303Terminal profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Environmental & Geological Engineering (AREA)
  • Cardiology (AREA)
  • Computing Systems (AREA)
  • Medical Informatics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses a method and a device for testing the starting time of rail transit vehicle-mounted equipment, wherein the testing device comprises the following steps: the testing method comprises the following steps of: writing a configuration file, importing the configuration file into a time statistics device, and guiding the time statistics device to conduct data communication with the tested equipment according to the configuration file; the power supply control unit is used for receiving the test instruction sent by the tool unit, sending a voltage setting instruction to the power supply output device according to the test instruction, and providing power supply for the tested equipment through the power supply output device; and receiving and executing the test instruction sent by the tool unit through the time counting device, and returning a corresponding test result. The test method can accurately count the starting time of the equipment and provide guarantee for the stable operation of the equipment.

Description

Method and device for testing starting time of track traffic vehicle-mounted equipment
Technical Field
The invention relates to the technical field of rail transit systems, in particular to a method and a device for testing the starting time of rail transit vehicle-mounted equipment.
Background
Rail transit vehicle control systems generally include network systems, traction systems, braking systems, auxiliary systems, air conditioning systems, passenger information systems, pyrotechnic shaft temperature systems, and the like. At present, the main current vehicle control communication modes in the rail traffic industry are MVB and TRDP, and vehicle-mounted equipment of each system sends life signal data to a network system through the communication protocol, so that the equipment works normally, and the management of the whole vehicle equipment is facilitated.
The rail transit vehicle is frequently reset, powered off and powered on again, and the vehicle-mounted equipment is powered off and restarted under the condition of local power off and powered on again. After multiple power-off and power-up, the equipment can not be started, the offline state of the equipment is shown, and the fault is reported.
Because the research and development production period of various control devices is short, in order to ensure the stability of various control devices in the running process, the stability test work of restarting the devices after power failure is needed before the products are loaded and run. Some vehicle-mounted devices have requirements on starting time, and the starting time of the devices needs to be tested for multiple times before products are loaded and run.
At present, the rail transit field has fewer testing methods aiming at the power-off restarting and starting time of control equipment, and the traditional testing method is as follows:
1. Manually switching on a power supply of the equipment to electrify the equipment, and starting manual timing; at this time, the life signal data sent by the equipment is grabbed through the corresponding communication protocol, so that the time for grabbing the life signal is compared with the time for starting timing, or a human-computer interaction interface is arranged on the system, and the starting time of the system is obtained by comparing the time of the appearance of the interface with the time for starting timing; the above process is repeated repeatedly.
The test process is completely dependent on manual test, and needs to be powered on and powered off manually, observe data or interfaces manually, and calculate time manually; the manual observation and calculation time is inevitably large in error, low in rate and easy to make mistakes; when the equipment needs a long-time test, the manual test cannot be performed; the power-off and power-on can be manually performed for a long time, and the equipment start-up fault is not repeated.
And, after the software and hardware of the system are changed, a tester needs to execute a large number of repeated tests, but the manual test has poor regression, and cannot adapt to the system modification, so that defects may still exist.
Disclosure of Invention
Aiming at the limitations of the traditional test method for the power-off restarting and starting time of the rail transit vehicle control equipment, the invention provides a test method and a device for the starting time of the rail transit vehicle-mounted equipment, which are used for testing the starting time of various control equipment and improving the flexibility and the universality of the test.
In a first aspect, an embodiment of the present application provides a method for testing start-up time of a track traffic vehicle-mounted device, which is used for a device for testing start-up time of a track traffic vehicle-mounted device, where the device includes: the testing method comprises the following steps of:
and a communication management step: writing a configuration file, importing the configuration file into the time statistics device, and guiding the time statistics device to perform data communication with tested equipment according to the configuration file;
a voltage setting step: receiving a test instruction sent by the tool unit through the power supply control unit, sending a voltage setting instruction to the power supply output device according to the test instruction, and providing power supply for the tested equipment through the power supply output device;
the testing steps are as follows: and receiving and executing the test instruction sent by the tool unit through the time counting device, and returning a corresponding test result.
The above test method, wherein the communication management step includes:
a first initialization step: initializing MVB communication or TRDP communication between the time counting device and the tested equipment according to the configuration file;
Communication data distribution: and distributing communication data between the time counting device and the tested equipment in a data storage memory according to the configuration file.
The testing method comprises the following steps:
a second initialization step: initializing TCP communication between the time statistics device and the tool unit;
the instruction execution step: receiving a test instruction sent by the tool unit through the time counting device, executing the test instruction according to the communication data in the data storage memory, obtaining a test result, and returning the test result to the tool unit;
judging a test result: and judging whether the test is passed or not according to the test result by the tool unit.
The test method comprises the following steps of: forced instructions, heartbeat acquisition instructions, observation instructions, and time statistics instructions.
The test method, wherein the instruction execution step comprises the following steps:
when the test instruction is the forced instruction, updating corresponding communication data in the data storage memory through the time statistics device and sending the communication data to the tested equipment;
When the test instruction is the heartbeat acquisition instruction, the corresponding communication data in the data storage memory are acquired at a set sampling frequency and sampling times through the time counting device, a sampling result is obtained, and the sampling result is sent to the tool unit through TCP communication;
when the test instruction is the observation instruction, acquiring real-time communication data from the data storage memory through the time statistics device, and sending the real-time communication data to the tool unit through TCP communication;
when the test instruction is the time statistics instruction, recording the moment when the time statistics instruction is received as first time by the time statistics device, recording the moment when the tested equipment sends variable change or expected data appointed by the test instruction as second time, and sending the difference value between the second time and the first time to the tool unit through TCP communication.
The test method, wherein the test result judging step comprises the following steps: and when the test instruction is the heartbeat acquisition instruction, if each sampling value in the sampling result is changed from the previous sampling value, judging that the test is passed.
The test method, wherein the test result judging step further comprises: and when the test instruction is the time statistics instruction, comparing the difference value between the second time and the first time with an expected starting time range, and judging that the test is passed if the difference value is within the expected starting time range.
In a second aspect, an embodiment of the present application provides a test device for a start time of a vehicle-mounted device for rail transit, where the test method is implemented, including:
the testing host machine is internally provided with an operation tool unit and a power supply control unit;
the time counting device is connected with the test host through an Ethernet cable and is used for receiving the test instruction of the tool unit and returning a corresponding test result, and the time counting device comprises an MVB time counting device and a TRDP time counting device;
the power supply output device is connected with the test host through an RS232 interface and is used for receiving the voltage setting instruction sent by the power supply control unit and providing power supply for tested equipment according to the voltage setting instruction.
The MVB time statistics device comprises a first power panel and a first CPU board card, wherein the first CPU board card and the tested equipment transmit and receive data in an MVB communication mode, meanwhile, test instructions of the tool unit are received, the starting time of the tested equipment is counted or data appointed by the test instructions are collected in real time, and the starting time or the data are returned to the tool unit according to the test instructions.
The test device comprises a first power panel, a first CPU board card and a first TRDP board card, wherein the first CPU board card controls the first TRDP board card and the tested equipment to transmit and receive data in a TRDP communication mode, meanwhile, a test instruction of the tool unit is received, the starting time of the tested equipment is counted or data appointed by the test instruction is collected in real time, and the starting time or the data is returned to the tool unit according to the test instruction.
Compared with the prior art, the invention has the advantages and positive effects that:
1. the invention can test the starting time of the tested equipment by taking MVB and TRDP as communication modes, and can meet the test of most vehicle-mounted equipment;
2. the power supply output device can adjust the voltage output of 0-150V and can meet the power supply requirements of different vehicle-mounted equipment;
3. according to the invention, the data receiving and transmitting behaviors of the time statistics device can be guided through the configuration file of a specific project, so that codes do not need to be modified when different projects are tested;
4. the invention can accurately count the starting time of the equipment and provide guarantee for the stable operation of the equipment.
Drawings
Fig. 1 is a schematic step diagram of a method for testing the start-up time of a track traffic vehicle-mounted device;
FIG. 2 is a frame diagram of a test device for the start time of rail transit vehicle-mounted equipment provided by the invention;
FIG. 3 is a schematic diagram of a power control unit according to the present invention;
FIG. 4 is a schematic diagram of a time counting apparatus according to the present invention;
FIG. 5 is a schematic diagram of an embodiment of a connection method between a testing device and a device under test according to the present invention;
fig. 6 is a schematic diagram of another embodiment of a connection method between a test device and a device under test provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described and illustrated below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden on the person of ordinary skill in the art based on the embodiments provided herein, are intended to be within the scope of the present application.
It is apparent that the drawings in the following description are only some examples or embodiments of the present application, and it is possible for those of ordinary skill in the art to apply the present application to other similar situations according to these drawings without inventive effort. Moreover, it should be appreciated that while such a development effort might be complex and lengthy, it would nevertheless be a routine undertaking of design, fabrication, or manufacture for those of ordinary skill having the benefit of this disclosure, and thus should not be construed as having the benefit of this disclosure.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is to be expressly and implicitly understood by those of ordinary skill in the art that the embodiments described herein can be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar terms herein do not denote a limitation of quantity, but rather denote the singular or plural. The terms "comprising," "including," "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to only those steps or elements but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. The terms "connected," "coupled," and the like in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as used herein refers to two or more. "and/or" describes an association relationship of an association object, meaning that there may be three relationships, e.g., "a and/or B" may mean: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. The terms "first," "second," "third," and the like, as used herein, are merely distinguishing between similar objects and not representing a particular ordering of objects.
The present invention will be described in detail below with reference to the embodiments shown in the drawings, but it should be understood that the embodiments are not limited to the present invention, and functional, method, or structural equivalents and alternatives according to the embodiments are within the scope of protection of the present invention by those skilled in the art.
Embodiment one:
fig. 1 is a schematic step diagram of a method for testing the start-up time of a track traffic vehicle-mounted device; as shown in fig. 1, the present embodiment discloses a specific implementation of a method for testing the start-up time of a vehicle-mounted device for rail transit (hereinafter referred to as "method").
Specifically, the method disclosed in this embodiment is used for a test device for the start time of a track traffic vehicle-mounted device, where the test device includes: the testing method mainly comprises the following steps of:
step S1: writing a configuration file, importing the configuration file into the time statistics device, and guiding the time statistics device to perform data communication with tested equipment according to the configuration file;
specifically, step S1 includes the following:
Step S11: initializing MVB communication or TRDP communication between the time counting device and the tested equipment according to the configuration file;
step S12: and distributing communication data between the time counting device and the tested equipment in a data storage memory according to the configuration file.
Step S2: receiving a test instruction sent by the tool unit through the power supply control unit, sending a voltage setting instruction to the power supply output device according to the test instruction, and providing power supply for the tested equipment through the power supply output device;
step S3: receiving and executing the test instruction sent by the tool unit through the time counting device, and returning a corresponding test result;
specifically, step S3 includes the following:
step S31: initializing TCP communication between the time statistics device and the tool unit;
step S32: receiving a test instruction sent by the tool unit through the time counting device, executing the test instruction according to communication data in a data storage memory, obtaining a test result, and returning the test result to the tool unit;
wherein the test instruction comprises: a forced instruction, a heartbeat acquisition instruction, an observation instruction and a time statistics instruction;
When the test instruction is the forced instruction, updating corresponding communication data in a data storage memory through the time statistics device and sending the communication data to the tested equipment;
when the test instruction is the heartbeat acquisition instruction, the corresponding communication data in the data storage memory is acquired at a set sampling frequency and sampling times through the time counting device, a sampling result is obtained, and the sampling result is sent to the tool unit through TCP communication;
when the test instruction is the observation instruction, acquiring real-time communication data from a data storage memory through the time statistics device, and sending the real-time communication data to the tool unit through TCP communication;
when the test instruction is the time statistics instruction, recording the moment when the time statistics instruction is received as first time by the time statistics device, recording the moment when the tested equipment sends variable change or expected data appointed by the test instruction as second time, and sending the difference value between the second time and the first time to the tool unit through TCP communication.
Step S33: and judging whether the test is passed or not according to the test result by the tool unit.
Specifically, step S33 includes the following:
and when the test instruction is the heartbeat acquisition instruction, if each sampling value in the sampling result is changed from the previous sampling value, judging that the test is passed.
And when the test instruction is the time statistics instruction, comparing the difference value between the second time and the first time with an expected starting time range, and judging that the test is passed if the difference value is within the expected starting time range.
In some embodiments, as shown in fig. 2, the above-mentioned test device for the start-up time of the track traffic vehicle-mounted device (hereinafter referred to as "device") includes:
the testing host machine is internally provided with an operation tool unit and a power supply control unit;
the time counting device is connected with the test host through an Ethernet cable and is used for receiving the test instruction of the tool unit and returning a corresponding test result, and the time counting device comprises an MVB time counting device and a TRDP time counting device;
the MVB time statistics device comprises a first power panel and a first CPU board, wherein the first CPU board and the tested equipment receive and dispatch data in an MVB communication mode, meanwhile, test instructions of the tool unit are received, the starting time of the tested equipment is counted or data appointed by the test instructions are collected in real time, and the starting time or the data are returned to the tool unit according to the test instructions.
The TRDP time counting device comprises a second power panel, a second CPU board card and a TRDP board card, wherein the second CPU board card controls the TRDP board card and tested equipment to transmit and receive data in a TRDP communication mode, meanwhile, a test instruction of the tool unit is received, the starting time of the tested equipment is counted or data appointed by the test instruction is collected in real time, and the starting time or the data is returned to the tool unit according to the test instruction.
The power supply output device is connected with the power supply control unit and is used for receiving the voltage setting instruction sent by the power supply control unit and providing power supply for the tested equipment according to the voltage setting instruction.
In the above embodiment, the device provides the MVB interface, the TRDP type ethernet interface, and the power (0 to 150 v) interface. Because the vehicle control mode in the rail traffic field is mainly MVB or TRDP communication, the invention can test the starting time of the tested equipment by using the MVB or TRDP as the communication mode, and can meet the test of most of vehicle-mounted equipment;
the test host adopts an X86 architecture, a Win10 operating system, an external interface comprises a gigabit Ethernet port and a USB interface, and the test host is connected with the power output device through a USB-to-RS 232 cable.
The power supply control unit sends an RS232 instruction to enable the power supply output device to provide a direct current power supply of 0-150V for the tested equipment, and sends a 0V voltage instruction to the power supply output device to enable the external tested equipment to be powered off and sends voltage instructions of 110V, 24V and the like to enable the external tested equipment to be powered on. The power output device can adjust the voltage output of 0-150V and can meet the power supply requirements of different vehicle-mounted devices.
The MVB time statistics device consists of a power panel and a CPU board card. The CPU board card adopts ARM architecture, QNX operating system, two MVB interfaces and one M12-4 core Ethernet interface. Running time statistical software in the CPU, carrying out data receiving and transmitting with the tested equipment in an MVB communication mode, receiving an instruction of the tool unit, counting the starting time of the tested equipment, and returning to the tool unit; or receiving the data of the tested equipment and returning to the tool unit.
The TRDP time counting device consists of a power panel, a CPU board card and a TRDP board card. The CPU board card adopts an ARM architecture, a QNX operating system and one path of M12-4 core Ethernet ports; the TRDP board card is provided with two paths of M12-4 core Ethernet ports and is connected with the CPU board card through a backboard PCI bus; running time statistical software in the CPU, on one hand, the TRDP board card and the tested equipment can be scheduled to carry out data receiving and transmitting in a TRDP communication mode, on the other hand, the instruction of the tool unit is received, the starting time of the tested equipment is counted, and the starting time is returned to the tool unit; or receiving the data of the tested equipment and returning to the tool unit.
The device supports the following test conditions:
(1) Operating a power output device to enable the tested equipment to be powered on, and setting acceptable maximum delay waiting time; after the delay time is up, collecting heartbeat data replied by the tested equipment through MVB or TRDP; if the equipment is received, the equipment is started successfully, the next test is carried out after power failure, and the repeated execution is carried out; if not, stopping execution;
(2) The tested equipment is powered on through the power output device, at the moment, the tool unit sends a time counting instruction to the MVB or TRDP time counting device, and after the time counting device detects that the tested equipment is successfully started, the accurate time of the tested starting is returned to the tool unit; if the returned accurate time is within the specified range, the equipment is started successfully, the next test is carried out after power failure, and the repeated execution is carried out; if the received time result is not in accordance with the requirement or is overtime, stopping execution;
the mode (1) is suitable for relatively roughly counting whether the starting time of the equipment meets the requirement or not, or verifying whether the tested equipment has a power-off restarting fault or not;
the mode (2) can accurately count the starting time of the equipment, and has a reference meaning for the stability of the equipment.
The two test cases can be selected according to the test requirements of the tested device.
The implementation of the power control unit is specifically described below with reference to fig. 3, as follows:
(1) The power supply control unit operates, initializes TCP communication with the tool unit and receives an Ethernet voltage value protocol set in the tool unit by a tester; because both operate on the same device, the loop address 127.0.0.1 is used for communication;
(2) Initializing RS232 communication with a power output device;
(3) When receiving the instruction of the tool unit, firstly judging the correctness of the instruction, if the instruction is correct, converting the voltage protocol set by the tool unit through the TCP into an RS232 communication protocol for power supply identification, and sending the RS232 communication protocol to a power supply output device; if not, recording a log;
the following describes the implementation manner of the MVB and TRDP time statistics device in detail with reference to fig. 4, as follows:
(1) The device is powered on, reads a port file of the MVB or a COMID file of the TRDP, and is used for initializing communication;
wherein the port configuration file of the MVB is ate-mvbpd.csv, and the content format of the file is as follows:
Type Port Size Cycle
output 0x115 16 1024
input 0x116 32 64
the first file represents the direction information of the port, output represents the port data actively sent by the device, and input represents the port data received by the device;
the second column represents the address information of the port;
The third column represents size information of the port;
the fourth column represents the refresh cycle information of the port in milliseconds;
the COMID profile of TRDP is ate-trdppd.csv, the file content format is as follows:
ComID Host Mode Size Type Cycle DestIP SrcIP
10030 10.1.1.200 Multicast 100 output 50 239.255.1.14 /
21020 10.1.1.200 Multicast 120 input 200 239.255.1.50 10.1.1.7
the first column of the file represents ComID information;
the second column represents the IP address of the host;
the third column represents communication modes, UDP multicast or UDP unicast;
the fourth column indicates the packet size of the ComID, unit bytes;
the fifth column indicates the direction of the ComID, output indicates data actively sent by the device, and input indicates data received by the device;
the sixth column represents refresh cycle information of ComID in milliseconds;
seventh column indicates destination address information of the ComID;
the eighth column is valid only when the data direction is in input mode, and indicates the IP address information of the ComID sender;
(2) Distributing a data storage memory according to the port of the MVB in the read configuration file and the ComID size information of the TRDP, and storing data transmitted and received between the data storage memory and the tested equipment;
(3) Starting MVB or TRDP receiving and transmitting thread, and transmitting the data in the step (2) or storing the received data;
(4) Initializing TCP communication for receiving a test instruction of the tool unit;
(5) Judging the type of the received test instruction, the device can receive four types of test instructions, which are respectively:
Forcing instructions: the tool unit sends the information of the appointed byte and bit offset under the specific port or the comID to the time counting device, after the device receives the data information, the device updates the data in the corresponding memory, the background thread automatically acquires the memory data and sends the memory data, and the forced instruction can only set the direction as the data of output;
a heartbeat acquisition instruction: the tool unit sends the information of the appointed byte, bit offset, sampling frequency f and sampling number n under the specific port or ComID to the time counting device, after the device receives the data information, the device collects the data information from the corresponding memory at the sampling frequency f, totally collects n times of real-time data, and then sends the result to the tool unit through TCP communication;
observing an instruction: the tool unit sends the information of the appointed byte and bit offset under the specific port or the ComID to the time statistics device, the device takes out real-time data once from the corresponding memory after receiving the data information, then sends the result to the tool unit through TCP communication, and the observation instruction can only set the data with the direction of input;
time statistics instruction: the tool unit sends a time counting instruction to a time counting device, and the time counting device records that the time is T1 at the moment; the device records the time T2 at the moment and sends the calculation result T2-T1 to the tool unit through TCP communication; the tool unit checks whether the value is within the required time range, and judges whether the starting time of the tested equipment passes the test.
The program running in the time counting device is a general program, and the data receiving and transmitting behaviors of the time counting device can be guided through the protocol configuration file of a specific project, so that codes do not need to be modified when different projects are tested.
The implementation of the tool unit is described in detail below as follows:
the tool unit is used as a unified interface of equipment in the operation device provided for the tester, receives instructions input by the tester, and sends the instructions to the time counting device and the power supply control unit.
The tester controls the voltage output command of the power supply, and the writing method in the tool unit is as follows:
setvoltage=110; (note: power supply output 110v, so that the device under test is powered on)
setvoltage=0; (note: power supply output 0v, so that the device under test is powered off)
When the tool unit executes the test instruction, the following information is sent to the power control unit:
action name, control type value;
set setvoltage 110/n or set setvoltage 0\n
The tester wants to count whether the device start-up time is within the specified maximum time or verify whether the tested device has a power-off restarting fault, and does not care about the accurate start-up time of the device, and the writing method in the tool unit is as follows:
delay=50000;
life signal (port number/ComID, byte offset, bit offset, sampling frequency, total number of acquisitions);
the tool unit judgment standard is designed as follows:
when the tool unit executes the test instruction, the time is delayed for 50000 milliseconds, then the heartbeat signal acquisition instruction is sent to the time statistics device, the device starts to acquire at the sampling frequency, the total acquisition is carried out for a plurality of times, and all acquired results are packed and returned to the tool unit, as follows:
lifetime value 1, value 2, value 3 … \n
After the tool unit receives the result, judging that the numerical value of each time is changed more than the previous time, and considering that the equipment is started successfully in the specified time, and if the numerical value is not changed, considering that the execution fails.
The tester needs to count the accurate time of the device start-up, judge whether the start-up time is within the appointed range, and want to test whether the device power-off restarting has a fault or not, the writing method in the tool unit is as follows:
boottime (port number/ComID, byte offset, bit offset, expected minimum power on time, expected maximum power on time, detection timeout time, comparison value, sampling frequency);
when the tool unit executes this test instruction, the following information should be sent to the time counting means:
Action name, port number/ComID, byte offset, bit offset, sampling frequency, detection timeout time, protocol type (mvbpd, trdp), equal or unequal, default value/comparison value;
boottime 116 5 0 1000 50mvbpd 1 0\n
note that: when part of fields are absent in the instruction input by the tester, the tool unit can fill default data into the transmission data; when the instruction fills in the comparison value, the tool unit fills in the comparison value in the instruction with the last field, wherein the comparison value is filled in by the tool unit with the equal or unequal value as 0; when the instruction does not fill out the comparison value, the tool unit fills out "equal or unequal" as 1, the last field fills out the default value.
The tool unit judgment standard is designed as follows:
after the time is acquired by the time counting device, if the judgment condition (refer to the meaning of a field of a comparison value) is met, the time counting device returns a difference value (in seconds) between the moment when the time counting instruction is received and the moment when the condition is met to the tool unit, and if the judgment condition is not met at the moment, the lower computer stops detecting overtime and returns to 65535;
boottime port number/ComID byte offset bit offset by actual time value \n
boottime port number/ComID byte offset bit offset 65535/n
When the tool unit receives the data returned by the time counting device, the tool unit records boottime (port number/comID, byte offset, bit offset, receiving value) and provides the boottime to the tester;
The judgment basis is that when 65535 is received (overtime), the judgment result is failed; when data of non 65535 is received, it is judged whether the data is within the range (closed interval) of the instruction action (expected start-up minimum time, expected start-up maximum time), if yes, the data is passed, and if not, the data is not passed.
The method can accurately count the starting time of the equipment and provide guarantee for the stable operation of the equipment.
The following is an instruction shorthand design in the tool unit:
instruction shorthand 1:
boottime (port number/ComID, byte offset, bit offset, expected power-on maximum time);
when the starting time of the equipment is only required to be smaller than or equal to the given time, the test instruction can be written according to the shorthand mode;
the transmission format of the tool unit is still as described above, in which case the instruction omits "sampling frequency", "detection timeout", "expected start-up minimum time"; the tool unit sets a default "sampling frequency" of 500ms and a default "detection timeout" of the expected power-on maximum time.
Instruction shorthand 2:
boottime (port number/ComID, byte offset, bit offset, expected minimum power-on time, expected maximum power-on time);
When the starting time of the equipment is within a certain interval range, writing a test instruction according to the shorthand mode;
the transmission format of the tool unit is still as described above, in which case the instruction omits the "sampling frequency", "detection timeout"; the tool unit processes the sampling frequency and the detection timeout time, see instruction shorthand 1;
instruction shorthand 3:
boottime (port number/ComID, byte offset, bit offset, expected minimum power on time, expected maximum power on time, detection timeout time);
when the starting time of the equipment is within a certain interval range and the detection timeout time is required to be specified, a test instruction can be written according to the shorthand mode;
the transmission format of the tool unit is still as described above, in which case the instruction omits the "sampling frequency"; the tool unit processes the sampling frequency see instruction shorthand 1;
instruction shorthand 4:
boottime (port number/ComID, byte offset, bit offset, expected minimum power on time, expected maximum power on time, detection timeout time, sampling frequency);
when the starting time of the equipment is within a certain interval range and the detection timeout time and the sampling frequency need to be specified, a test instruction can be written according to the shorthand mode;
The method for writing the instruction needs less test instructions written by a tester, and has various writing methods, so that different test requirements can be met.
Referring to fig. 5 to 6, the following application flow of the test method is specifically described:
as shown in fig. 5, when the tested device is MVB communication, the connection manner of the system is as follows:
externally connecting a power board of the time counting device with a 110v power supply, wherein the power supply is continuously powered off in the test process; connecting an MVB interface of the CPU board card to an MVB interface of the tested equipment; and connecting the positive electrode and the negative electrode of the power supply of the tested equipment to a power supply output device. The test method is as follows:
step one: generating a configuration file used by the MVB time counting device, wherein the configuration file sets port information of an input direction, the port number is 118, the byte size is 32 bytes, and the refresh period is 64ms;
Type Port Size Cycle
input 0x118 32 64
issuing the configuration file to an MVB time statistics device;
step two: inputting a test instruction in the tool unit:
(1) When the starting time of the tested device needs to be counted to be less than a certain time:
the method I is written without counting the exact starting time of the tested equipment:
setvoltage=110;
delay=50000;
lifesignal(118,1,0,500,10);
setvoltage=0;
the tool unit controls the power supply to output 110v voltage so that the tested equipment is electrified; then delay for 50 seconds, wait for the apparatus to work normally; after the delay time is up, sending a heartbeat acquisition instruction to the MVB time counting device, and storing the port 118 at a frequency of 500ms by the device, wherein the byte offset is 1, and the data value with the bit offset of 0 is stored for 10 times; after the number of times is saved, returning the result to the tool unit, and judging whether the test is passed or not by the tool unit;
Writing a second mode, wherein the exact starting time of the tested equipment needs to be counted:
setvoltage=110;
boottime(118,1,0,50);
setvoltage=0;
the tool unit controls the power supply to output 110v voltage so that the tested equipment is electrified; then sending a time acquisition instruction to the MVB time statistics device; after receiving the instruction, the device records the time T1 at first, then detects the port 118 with the default frequency of 500ms, the byte offset is 1, and the bit offset is 0; if the detected data is changed from the default value, recording the time T2; transmitting the value of T2-T1 to the tool unit, and after the timeout period is detected, transmitting 65535 to the tool unit if no change is detected; judging whether to perform passing or not by the tool unit;
(2) When testing whether the starting time of the tested device is satisfied within a certain time range and counting the exact starting time:
setvoltage=110;
boottime(118,1,0,30,50,60);
setvoltage=0;
the tool unit controls the power supply to output 110v voltage so that the tested equipment is electrified; then sending a time acquisition instruction to the MVB time statistics device; after receiving the instruction, the device records the time T1 at first, then detects the port 118 with the default frequency of 500ms, the byte offset is 1, and the bit offset is 0; if the detected data is changed from the default value, recording the time T2; transmitting the value of T2-T1 to the tool unit, and after the detection timeout time is 60s, transmitting 65535 to the tool unit if no change is detected; judging whether to perform passing or not by the tool unit;
Step three: triggering the tool unit to circularly execute the test instruction, and setting the time of continuously and repeatedly executing for one week (the specific execution time depends on the test requirement) so as to fully verify the stability of the equipment; when the execution fails, the tool unit automatically stops the execution;
step four: the tool unit can store the result of each execution, and store the result after the execution is finished;
as shown in fig. 6, when the device under test is TRDP communication, the system is connected as follows:
externally connecting a power board of the TRDP time counting device with a 110v power supply, wherein the power supply is continuously powered off in the test process; and connecting the network port of the TRDP board card with the network port of the tested equipment, and connecting the positive and negative poles of the power supply of the tested equipment to the power supply output device. The test method is as follows:
step one: generating a configuration file used by the TRDP time counting device, wherein the configuration file is provided with input direction information, comID is 21020, the IP address of a TRDP network port of the device is 10.1.1.200, a UDP multicast mode is adopted, the byte size is 100 bytes, the refresh period is 200ms, and the device receives data sent from 10.1.1.7 equipment at a multicast address 239.255.1.50;
ComID Host Mode Size Type Cycle DestIP SrcIP
21020 10.1.1.200 Multicast 100 input 200 239.255.1.50 10.1.1.7
the configuration file is issued to a TRDP time counting device;
Step two: inputting a test instruction in the tool unit:
(1) When the starting time of the tested device needs to be counted to be less than a certain time:
the method I is written without counting the exact starting time of the tested equipment:
setvoltage=24;
delay=50000;
lifesigna l(21020,1,0,500,10);
setvo ltage=0;
the tool unit controls the power supply to output 110v voltage so that the tested equipment is electrified; then delay for 50 seconds, wait for the apparatus to work normally; after the delay time is up, sending a heartbeat acquisition instruction to a TRDP time counting device, wherein the device stores the data value of which the ComID is 21020, the byte offset is 1 and the bit offset is 0 for 10 times at the frequency of 500 ms; after the number of times is saved, returning the result to the tool unit, and judging whether the test is passed or not by the tool unit;
writing a second mode, wherein the exact starting time of the tested equipment needs to be counted:
setvoltage=24;
boottime(21020,1,0,50);
setvoltage=0;
the tool unit controls the power supply to output 110v voltage so that the tested equipment is electrified; then sending a time acquisition instruction to the TRDP time counting device; after receiving the instruction, the device firstly records the moment time T1, and then detects the value of data with the ComID of 21020, the byte offset of 1 and the bit offset of 0 at the default frequency of 500 ms; if the detected data is changed from the default value, recording the time T2; transmitting the value of T2-T1 to the tool unit, and after the timeout period is detected, transmitting 65535 to the tool unit if no change is detected; judging whether to perform passing or not by the tool unit;
(2) When testing whether the starting time of the tested device meets a certain time range and counting the exact starting time
setvoltage=24;
boottime(21020,1,0,30,50,60);
setvoltage=0;
The tool unit controls the power supply to output 110v voltage so that the tested equipment is electrified; then sending a time acquisition instruction to the TRDP time counting device; after receiving the instruction, the device firstly records the moment time T1, and then detects the value of data with the ComID of 21020, the byte offset of 1 and the bit offset of 0 at the default frequency of 500 ms; if the detected data is changed from the default value, recording the time T2; transmitting the value of T2-T1 to the tool unit, and after the detection timeout time is 60s, transmitting 65535 to the tool unit if no change is detected; judging whether to perform passing or not by the tool unit;
step three: triggering the tool unit to circularly execute the test instruction, and setting the time of continuously and repeatedly executing for one week (the specific execution time depends on the test requirement) so as to fully verify the stability of the equipment; when the execution fails, the tool unit automatically stops the execution;
step four: the tool unit can store the result of each execution, and store the result after the execution is finished.
The test method adopting the embodiment can be used for carrying out the test in a circulating way, and has the advantages of large test strength and strong regression test capability.
In summary, the beneficial effects based on the invention are as follows:
1. the vehicle control mode in the rail traffic field is mainly MVB or TRDP communication, the method can test the starting time of the tested equipment by using the MVB or TRDP as the communication mode, and can meet the test of most of vehicle-mounted equipment;
2. the device can adjust the voltage output of 0-150V and can meet the power supply requirements of different vehicle-mounted equipment;
3. the device can be used for carrying out the test in a circulating way, and has large test strength and strong regression test capability;
4. the invention needs less test instructions written by the testers, has various writing methods and meets different test requirements;
5. the invention does not depend on the specific protocol of a certain project, and can test equipment of different projects only by specifying specific detection information;
6. the invention can accurately count the starting time of the equipment and provide guarantee for the stable operation of the equipment.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (8)

1. A method for testing the start-up time of a rail transit vehicle-mounted device, characterized by comprising a testing device for testing the start-up time of the rail transit vehicle-mounted device, the testing device comprising: the testing method comprises the following steps of:
and a communication management step: writing a configuration file, importing the configuration file into the time statistics device, and guiding the time statistics device to perform data communication with tested equipment according to the configuration file;
a voltage setting step: receiving a test instruction sent by the tool unit through the power supply control unit, sending a voltage setting instruction to the power supply output device according to the test instruction, and providing power supply for the tested equipment through the power supply output device;
The testing steps are as follows: receiving and executing the test instruction sent by the tool unit through the time counting device, and returning a corresponding test result;
wherein, the communication management step includes:
a first initialization step: initializing MVB communication or TRDP communication between the time counting device and the tested equipment according to the configuration file;
communication data distribution: distributing communication data between the time counting device and the tested equipment in a data storage memory according to the configuration file;
the testing step comprises the following steps:
a second initialization step: initializing TCP communication between the time statistics device and the tool unit;
the instruction execution step: receiving a test instruction sent by the tool unit through the time counting device, executing the test instruction according to the communication data in the data storage memory, obtaining a test result, and returning the test result to the tool unit;
judging a test result: judging whether the test is passed or not according to the test result by the tool unit;
the test instruction includes: a heartbeat acquisition instruction and a time statistics instruction;
the instruction execution step includes:
When the test instruction is the heartbeat acquisition instruction, the corresponding communication data in the data storage memory are acquired at a set sampling frequency and sampling times through the time counting device, a sampling result is obtained, and the sampling result is sent to the tool unit through TCP communication;
when the test instruction is the time statistics instruction, recording the moment when the time statistics instruction is received as first time by the time statistics device, recording the moment when the tested equipment sends variable change or expected data appointed by the test instruction as second time, and sending the difference value between the second time and the first time to the tool unit through TCP communication.
2. The test method of claim 1, wherein the test instructions further comprise: forced instructions and observed instructions.
3. The method of testing according to claim 2, wherein the instruction execution step comprises:
when the test instruction is the forced instruction, updating corresponding communication data in the data storage memory through the time statistics device and sending the communication data to the tested equipment;
and when the test instruction is the observation instruction, acquiring real-time communication data from the data storage memory through the time counting device, and sending the real-time communication data to the tool unit through TCP communication.
4. The test method according to claim 1, wherein the test result judging step includes: and when the test instruction is the heartbeat acquisition instruction, if each sampling value in the sampling result is changed from the previous sampling value, judging that the test is passed.
5. The test method according to claim 1, wherein the test result judging step further comprises: and when the test instruction is the time statistics instruction, comparing the difference value between the second time and the first time with an expected starting time range, and judging that the test is passed if the difference value is within the expected starting time range.
6. A test device for the start-up time of a rail transit vehicle-mounted device, for implementing the test method according to any one of claims 1 to 5, comprising:
the testing host machine is internally provided with an operation tool unit and a power supply control unit;
the time counting device is connected with the test host through an Ethernet cable and is used for receiving the test instruction of the tool unit and returning a corresponding test result, and the time counting device comprises an MVB time counting device and a TRDP time counting device;
The power supply output device is connected with the test host through an RS232 interface and is used for receiving the voltage setting instruction sent by the power supply control unit and providing power supply for tested equipment according to the voltage setting instruction.
7. The test device according to claim 6, wherein the MVB time statistics device comprises a first power board and a first CPU board, the first CPU board and the tested device receive and send data in an MVB communication manner, and receive a test instruction of the tool unit, count a start-up time of the tested device or collect data specified by the test instruction in real time, and return the start-up time or the data to the tool unit according to the test instruction.
8. The test device according to claim 6, wherein the TRDP time statistics device comprises a second power board, a second CPU board and a TRDP board, the second CPU board controls the TRDP board and the device under test to transmit and receive data in a TRDP communication manner, and receives a test instruction of the tool unit, counts a start-up time of the device under test or collects data specified by the test instruction in real time, and returns the start-up time or the data to the tool unit according to the test instruction.
CN202210756033.3A 2022-06-30 2022-06-30 Method and device for testing starting time of track traffic vehicle-mounted equipment Active CN115174430B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210756033.3A CN115174430B (en) 2022-06-30 2022-06-30 Method and device for testing starting time of track traffic vehicle-mounted equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210756033.3A CN115174430B (en) 2022-06-30 2022-06-30 Method and device for testing starting time of track traffic vehicle-mounted equipment

Publications (2)

Publication Number Publication Date
CN115174430A CN115174430A (en) 2022-10-11
CN115174430B true CN115174430B (en) 2024-01-26

Family

ID=83489035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210756033.3A Active CN115174430B (en) 2022-06-30 2022-06-30 Method and device for testing starting time of track traffic vehicle-mounted equipment

Country Status (1)

Country Link
CN (1) CN115174430B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102087625A (en) * 2009-12-04 2011-06-08 鸿富锦精密工业(深圳)有限公司 Boot test system and test method
CN102479120A (en) * 2010-11-22 2012-05-30 鸿富锦精密工业(深圳)有限公司 Startup/shutdown test system and startup/shutdown test method
CN104866418A (en) * 2014-02-26 2015-08-26 研祥智能科技股份有限公司 Automatic testing method and system
CN105138455A (en) * 2015-08-27 2015-12-09 株洲南车时代电气股份有限公司 Testing system and testing method of train control on-board device
WO2016119398A1 (en) * 2015-01-26 2016-08-04 中兴通讯股份有限公司 Method, apparatus and system for detecting suspension and runaway faults of tested device
WO2017162210A1 (en) * 2016-03-25 2017-09-28 中兴通讯股份有限公司 Test configuration method and device
CN110673023A (en) * 2019-12-06 2020-01-10 广州天嵌计算机科技有限公司 Testing device and testing method for detecting stability of core board
CN113590498A (en) * 2021-09-29 2021-11-02 麒麟软件有限公司 Method and system for testing application starting time of desktop operating system
CN113900875A (en) * 2021-11-23 2022-01-07 深圳市康冠商用科技有限公司 Startup test method and device, computer equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102087625A (en) * 2009-12-04 2011-06-08 鸿富锦精密工业(深圳)有限公司 Boot test system and test method
CN102479120A (en) * 2010-11-22 2012-05-30 鸿富锦精密工业(深圳)有限公司 Startup/shutdown test system and startup/shutdown test method
CN104866418A (en) * 2014-02-26 2015-08-26 研祥智能科技股份有限公司 Automatic testing method and system
WO2016119398A1 (en) * 2015-01-26 2016-08-04 中兴通讯股份有限公司 Method, apparatus and system for detecting suspension and runaway faults of tested device
CN105138455A (en) * 2015-08-27 2015-12-09 株洲南车时代电气股份有限公司 Testing system and testing method of train control on-board device
WO2017162210A1 (en) * 2016-03-25 2017-09-28 中兴通讯股份有限公司 Test configuration method and device
CN110673023A (en) * 2019-12-06 2020-01-10 广州天嵌计算机科技有限公司 Testing device and testing method for detecting stability of core board
CN113590498A (en) * 2021-09-29 2021-11-02 麒麟软件有限公司 Method and system for testing application starting time of desktop operating system
CN113900875A (en) * 2021-11-23 2022-01-07 深圳市康冠商用科技有限公司 Startup test method and device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
指控系统网络设备离线测试系统设计;曹文斌;牛刚;陈国顺;李贵雄;;计算机测量与控制(第02期);全文 *

Also Published As

Publication number Publication date
CN115174430A (en) 2022-10-11

Similar Documents

Publication Publication Date Title
CN108803564B (en) Automatic testing system and method for communication control equipment
CN112148515B (en) Fault positioning method, system, device, medium and equipment
CN107070762B (en) Fault detection and switching method considering 1553B double-bus network performance monitoring
CN102799504A (en) Power supply testing system and method
CN111563014A (en) Interface service performance test method, device, equipment and storage medium
CN101399715A (en) Network test platform and test method for optical fiber channel
CN114124656B (en) Ground integrated measurement and control system for carrier rocket
CN111132060A (en) Internet of things-based hardware automatic test tool and test method
CN115174430B (en) Method and device for testing starting time of track traffic vehicle-mounted equipment
CN110968070A (en) Intelligent ECU fault diagnosis system
CN112379251A (en) Relay circuit fault testing system and method
CN112073263A (en) Method, system, equipment and medium for testing and monitoring reliability of white box switch
CN112925705B (en) Unmanned-duty-based carrier rocket flight software acceptance method and system
CN114265384A (en) Vehicle fault information processing method and system
WO2022116264A1 (en) Tank fire control system state evaluation and fault diagnosis system
CN203405731U (en) An off-line service life testing system of an electric vehicle controller
CN109412880B (en) Method for testing abnormal starting of train network communication equipment
CN108680870A (en) A kind of removable automation calibration system and method for forming and capacity dividing test power supply
CN110708217B (en) Python language-based bypass switching time intelligent test system and method
CN111142497A (en) Test system and method for vehicle-mounted application software
CN112711502B (en) Gao Wenkao machine testing method, control end, tooling end and system for iMS-CPU board
CN106372687A (en) Distribution network automatic detection method and system
CN109669438A (en) Aircraft servo flexibility test analysis system and medium
CN114756008A (en) Fault injection system, automatic test system and method for automobile hybrid bus integrated rack
CN110780138B (en) BMS acquisition module performance test method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant