CN117969033A - Train operation state signal simulation-based train image acquisition device testing system and method - Google Patents

Train operation state signal simulation-based train image acquisition device testing system and method Download PDF

Info

Publication number
CN117969033A
CN117969033A CN202410002838.8A CN202410002838A CN117969033A CN 117969033 A CN117969033 A CN 117969033A CN 202410002838 A CN202410002838 A CN 202410002838A CN 117969033 A CN117969033 A CN 117969033A
Authority
CN
China
Prior art keywords
train
data
file
signal simulation
time
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.)
Pending
Application number
CN202410002838.8A
Other languages
Chinese (zh)
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.)
Harbin Kejia General Mechanical and Electrical Co Ltd
Original Assignee
Harbin Kejia General Mechanical and Electrical 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 Harbin Kejia General Mechanical and Electrical Co Ltd filed Critical Harbin Kejia General Mechanical and Electrical Co Ltd
Priority to CN202410002838.8A priority Critical patent/CN117969033A/en
Publication of CN117969033A publication Critical patent/CN117969033A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A train image acquisition device test system and method based on train running state signal simulation belong to the technical field of train detection equipment test. The method aims to solve the problem that the existing simulation technology for the train running state can not simulate the speed change state of a whole complex type train in the running process of different road sections. The system comprises upper computer software and a lower computer train signal simulation device; the upper computer software is used for generating various vehicle types, vehicle speeds and running mileage test data for simulating the sports scene, integrating the data and transmitting the data to the lower computer train signal simulation device in a sports task mode; the lower computer train signal simulation device is used for receiving the simulated sports car task distributed by the upper computer software, executing the target sports car task and sending the sports car signal to the target tested system. The invention is used for testing the train image acquisition device.

Description

Train operation state signal simulation-based train image acquisition device testing system and method
Technical Field
The invention belongs to the technical field of train detection equipment testing, and particularly relates to a testing system and method of a train image acquisition device
Background
The train image acquisition device calculates and judges train passing information according to electric signals generated when a train passes through 4 or 8 magnetic steels, and controls the image acquisition of the train track bed according to corresponding information, wherein the magnetic steel laying range is the image acquisition range. In the 4-magnet environment, the first two magnet steels are used for measuring the near-end vehicle speed, the second two magnet steels are used for measuring the far-end vehicle speed, and the 4-magnet can only perform unidirectional image acquisition control. In the 8 magnetic steel environment, 4 are a set of every group and the collection mode of 4 magnetic steel environment the same, and wherein a set of far and near end speed that obtains according to forward car is come control image acquisition signal, and a set of is according to the far and near end speed that reverse car was measured and is controlled acquisition signal, and 8 magnetic steel environment can carry out image acquisition control to two-way car that comes simultaneously. According to the frequency of actual collection of speed adjustment, because the camera that the train adopted is special, when actual collection frequency is inaccurate, the image of gathering just has the abnormal conditions such as tensile, dislocation, compression, in case take place this kind of situation, the image of gathering just is useless, can seriously influence driving safety because of unable discovery train trouble moreover. And a train actually running on a railway usually comprises several tens of carriages with different wheelbases, and an image acquisition device acquires images of various parts of each carriage. Therefore, the image acquisition control requirements of the train image acquisition device for a whole train comprising different wheelbases in different speed ranges are extremely high when different speeds change, and the most complex and comprehensive coverage is required for the test scenes of the products.
The way in which the actual train is tested is not practical. By adopting a mode of simulating train signals for testing, the accuracy and stability of the train image acquisition device in the actual complex and changeable use scene can be ensured only by simulating the image acquisition scene that the whole train carrying the carriages of different types passes through the acquisition area in different directions in different motion states under the real environment. Therefore, simulating different forward and reverse changing running states of the train passing through the 4-path magnetic steel and the 8-path magnetic steel becomes a key for testing the products.
The actual train type and the running distance in different road sections have great flexibility in running speed. For the testing of the products, the quality of the products and the reliability of the acquired pictures can be better ensured, the accuracy of the subsequent fault identification task is ensured, and the driving safety after the line is on the line is ensured. The existing simulation technology for train running states can only simulate single-motion type unidirectional motion of a single-section vehicle with a single wheelbase at a uniform speed in a section, only rough motion state simulation is performed, but speed change states of a whole train with a complex type (carrying dozens of different wheelbase types) in running processes of different sections cannot be simulated, self-defined running car simulation for switching operation of various types of vehicles for a long time cannot be performed, and meanwhile, a voltage adaptation module is not provided, so that the application environment with complex and variable adaptation cannot be met. Therefore, effective tests cannot be conducted on the train image acquisition device, and a test method for simulating the train image acquisition device based on signals generated by running of an entire train carrying multiple types of wheelbase carriages in different road sections in different motion states is urgently needed.
Disclosure of Invention
The invention aims to solve the problem that the existing simulation technology for the running state of the train can not simulate the speed change state of a whole train of complex type in the running process of different road sections.
The test system of the train image acquisition device based on train running state signal simulation comprises upper computer software and a lower computer train signal simulation device;
Upper computer software: the system comprises a train signal simulation device, a train signal simulation device and a train signal simulation device, wherein the train signal simulation device is used for simulating train running scenes of various vehicles;
the train signal simulation device of the lower computer comprises: receiving an analog sports car task distributed by the upper computer software, executing a target sports car task, and transmitting a sports car signal to a target tested system;
wherein, the host computer software includes:
Train data generation unit: the system is used for reading wheelbase information of different types of trains and generating train operation data files according to compartment spacing information, the number of magnetic steels, the distance between the magnetic steels and the train operation mode; the train data generation unit includes:
The wheelbase meter reading module: reading wheelbase table files of different types of trains from a wheelbase table library according to the types of the trains; each row of wheelbase table is the wheelbase information of a carriage;
Compartment distance setting module: receiving distance setting information between different carriages through an interface;
the magnetic steel number and magnetic steel interval setting module: receiving setting information of the magnetic steel spacing through an interface;
The running mode setting module of the train: receiving setting information of a train operation mode through an interface;
Train operation data file generation module: generating a train operation data file including a train operation time sheet page, a speed sheet page, and a configuration parameter sheet page; the train operation data file is a file in an excel table form, and one file represents an operation mode of a specified vehicle type;
Train data reading and issuing unit: acquiring the file paths and file names of the driving data of all tasks to be executed in a folder reading mode, and storing the file paths and file names into an array for standby; after the running task starts, reading the passing data files in the folder one by one according to the set cycle times and file sending intervals, and sending the passing data files to a train signal simulation device of a lower computer; each file is a train, when the train running task end signal of the current train of the lower computer is received, the timing is started again, and after the transmission interval is reached, the train passing data in the next file is transmitted;
The lower computer train signal simulation device comprises:
And the main control module: carrying out polling processing on the received train operation time data, and independently timing each path of magnetic steel; the control level output is carried out on the IO ports corresponding to the magnetic steels according to the time value in each column of unit cells in the train data at regular time; setting the IO port level corresponding to the magnetic steel to be high when the elapsed time is more than or equal to the odd line data of the column corresponding to the magnetic steel in the train data table, setting the IO port level corresponding to the magnetic steel to be low when the elapsed time is more than or equal to the 1 st line data in the odd line, and so on, setting the corresponding magnetic steel level to be high when the odd line time condition of the train data is met, and setting the corresponding magnetic steel level to be low when the even line time condition of the train data is met;
the received speed data and configuration information data are read, the process is carried out synchronously with the time data, and when the time condition reaches the time requirement, the IO port level is controlled, and the corresponding speed data and configuration information are synchronously transmitted for display;
voltage adaptation and signal output module: the multi-channel output signals corresponding to the number of the magnetic steels are converted into voltage values which are adapted to the tested image acquisition device and output to the magnetic steel signal processing part of the tested image acquisition device to analyze corresponding passing information, so that cameras at all parts are controlled to acquire images at a certain frequency, and the aim of testing is achieved.
Further, the train operation data file generated by the train operation data file generating module is as follows:
The generated train run time sheet is as follows:
The content of the time sheet page is train sports car time simulation data: the nth column represents the nth magnetic steel, and the total number of the lines is 2 times of the total number of the axles of the train; the odd lines sequentially correspond to each shaft of the train after the 1 st shaft starts, and represent the time interval from the previous shaft to the current shaft passing through the corresponding magnetic steel of the train; the even lines represent the total time from the beginning of pressing the magnetic steel to the departure of the corresponding shaft of the previous odd line;
The generated speed sheet for train operation is as follows:
the total number of lines of the speed data is the same as the total number of axles of the train; filling the initial time speed data from each shaft to each magnetic steel into the page 2 of the sheet page of the excel file according to the position corresponding to the sports car time, wherein the initial time speed data corresponds to the odd number row of the first page of the sheet page one by one;
the generated configuration parameter sheet page of train operation is as follows:
and filling the magnetic steel distance, the compartment distance and all wheelbase configuration parameter information into page 3 of the sheet page of the excel file.
Further, the distances between different carriages set in the carriage distance setting module are the same value for the whole train.
Further, when the train operation mode is set in the train operation mode setting module, setting is carried out by taking a section as a unit, and setting the section operation mode as uniform speed or variable speed; the running process setting of different running modes of all the intervals is completed in a mode of multi-interval continuous running;
The interval refers to: defining the total travel of the whole train as the sum of the total wheelbase and the compartment spacing of the current train from the beginning of the 1 st axle passing through the magnetic steel to the ending of the last axle leaving the magnetic steel; this schedule is divided into any number of intervals.
Further, when the operation mode is set in the operation mode setting module of the train, the following setting mode is implemented:
Firstly, setting an initial speed V, an acceleration a and a section length S of a current section; then according to The formula carries out reverse thrust to calculate the ending time and ending speed of the current section, and a=0 at a constant speed; the ending speed of the former interval is the starting speed of the latter interval; the operation mode can be changed after one section is changed to another section.
Further, the total time from the start of the pressing of the magnetic steel to the departure of the shaft corresponding to the previous odd line is 0.001s indicated in the even line in the time sheet page.
Further, the train data reading and issuing unit includes:
train data reading module: based on the folders in which all files of train data needed by the current task are located, batch file reading is carried out, all file paths and file names are displayed in a to-be-run file table, and the to-be-run file table is stored in an array for standby;
train data processing module: reading 3 sheet pages in an Excel file in a folder one by one, respectively converting train operation time data of the 1 st page, speed data of the 2 nd page and configuration data of the 3 rd page into continuous character strings according to a formulated private protocol, and preparing for issuing;
Train task setting module: the method comprises the steps of setting the circulation operation times of the whole folder of the train, the operation time interval between two sports car tasks and the circulation times, and defaulting to circulation for 1 time if the circulation times are not set;
Train data issuing module: the train data generating unit processes the train data and transmits the train data to the train signal simulator to simulate the train running; after the current train runs, the train signal simulation device of the lower computer receives a train running task ending signal of the train signal simulation device of the lower computer, then starts to count time again, reads data in a next file in a task form to be run after reaching an operation time interval, and starts to send data to the train signal simulation device of the lower computer to simulate the next train after the train data generation unit processes the data; if the number of the set circulating tasks is more than 1; and after all train data in the task list to be run are completely issued, the simulated train data in the list are circularly sent according to the set circulation task times.
Further, the lower computer train signal simulation device also comprises a serial communication module, wherein the serial communication module receives train data issued by the upper computer and analyzes and stores the data to the local for standby according to a private protocol.
Further, the lower computer train signal simulation device also comprises a state display screen, wherein the state display screen is used for displaying the train type, the current carriage wheelbase information, the running speed and the acceleration information in real time in the process of simulating the sports car.
According to the test task and the test environment, the compartment spacing, the number of magnetic steels, the magnetic steel spacing and the running mode of the train are set in the test system of the train image acquisition device based on the train running state signal simulation, and then the test is carried out by using the test system of the train image acquisition device based on the train running state signal simulation.
The beneficial effects are that:
(1) The invention can test the tested image acquisition device without using a real train, a track and a driver. The device is simple and easy, the cost is low, the test is more convenient, and a large amount of materials, manpower, space and time consumption are saved. The test efficiency is higher.
(2) The invention aims at the problem of simulating the speed change state of a whole train of complex type in the running process of different road sections, has reliable signal quality and more reliable functional logic test of products. The quality of the electric signal through the wired direct connection is very reliable, and errors in verification of correct logic of a tested system caused by the problem of poor signal quality can be avoided. The output mode of the upper computer and the lower computer is adopted, and the accuracy of signal simulation can be ensured due to the higher accuracy of the output time of the lower computer.
(3) The invention can simulate the scenes that trains with different wheelbases and different lengths (each carriage can be realized to be in different wheelbases) pass through the tested system in different running states in different road segment ranges when passing through different numbers of magnetic steels. The real train sports scene can be restored, and the functions of the tested system in various running states can be tested.
(4) The invention has strong expansion applicability, can be applied to the testing of various types of image acquisition devices such as railways, subways, motor cars and the like, and solves the conventional testing difficulty.
(5) The invention can provide an effective and convenient test method of the train image acquisition device, which is convenient to use, can utilize night to perform unattended long-time running test, can save manpower and shorten the test period.
Drawings
FIG. 1 is a schematic topology of a test system.
Fig. 2 is a schematic diagram of a test flow.
Fig. 3 is a diagram of a 4-magnet steel passing signal actually simulated.
Detailed Description
It should be noted that, in particular, the various embodiments of the present disclosure may be combined with each other without conflict.
The first embodiment is as follows:
The embodiment is a test system of a train image acquisition device based on train running state signal simulation, and comprises upper computer software and a lower computer train signal simulation device;
Upper computer software: the system comprises a train signal simulation device, a train signal simulation device and a train signal simulation device, wherein the train signal simulation device is used for simulating train running scenes of various vehicles;
the train signal simulation device of the lower computer comprises: receiving an analog sports car task distributed by the upper computer software, executing a target sports car task, and transmitting a sports car signal to a target tested system;
wherein, the host computer software includes:
Train data generation unit: the system is used for reading wheelbase information of different types of trains and generating train operation data files according to compartment spacing information, the number of magnetic steels, the distance between the magnetic steels and the train operation mode; the train data generation unit includes:
The wheelbase meter reading module: reading wheelbase table files of different types of trains from a wheelbase table library according to the types of the trains; each row of wheelbase table is the wheelbase information of a carriage;
Compartment distance setting module: receiving distance setting information between different carriages through an interface;
the magnetic steel number and magnetic steel interval setting module: receiving setting information of the magnetic steel spacing through an interface;
The running mode setting module of the train: receiving setting information of a train operation mode through an interface;
Train operation data file generation module: generating a train operation data file including a train operation time sheet page, a speed sheet page, and a configuration parameter sheet page; the train operation data file is a file in an excel table form, and one file represents an operation mode of a specified vehicle type;
Train data reading and issuing unit: acquiring the file paths and file names of the driving data of all tasks to be executed in a folder reading mode, and storing the file paths and file names into an array for standby; after the running task starts, reading the passing data files in the folder one by one according to the set cycle times and file sending intervals, and sending the passing data files to a train signal simulation device of a lower computer; each file is a train, when the train running task end signal of the current train of the lower computer is received, the timing is started again, and after the transmission interval is reached, the train passing data in the next file is transmitted;
The lower computer train signal simulation device comprises:
And the main control module: carrying out polling processing on the received train operation time data, and independently timing each path of magnetic steel; the control level output is carried out on the IO ports corresponding to the magnetic steels according to the time value in each column (1 st column corresponds to 1 st magnetic steel) cell in the train data at regular time; setting the IO port level corresponding to the magnetic steel to be high when the elapsed time is more than or equal to the odd line data of the column corresponding to the magnetic steel in the train data table, setting the IO port level corresponding to the magnetic steel to be low when the elapsed time is more than or equal to the 1 st line data in the odd line, and so on, setting the corresponding magnetic steel level to be high when the odd line time condition of the train data is met, and setting the corresponding magnetic steel level to be low when the even line time condition of the train data is met;
the received speed data and configuration information data are read, the process is carried out synchronously with the time data, and when the time condition reaches the time requirement, the IO port level is controlled, and the corresponding speed data and configuration information are synchronously transmitted for display;
voltage adaptation and signal output module: the multi-channel output signals corresponding to the number of the magnetic steels are converted into voltage values which are adapted to the tested image acquisition device and output to the magnetic steel signal processing part of the tested image acquisition device to analyze corresponding passing information, so that cameras at all parts are controlled to acquire images at a certain frequency, and the aim of testing is achieved.
The second embodiment is as follows:
The present embodiment is a test system for a train image acquisition device based on train operation status signal simulation, and the train operation data file generated by the train operation data file generation module is as follows:
The generated train run time sheet is as follows:
The content of the time sheet page is train sports car time simulation data: the nth column represents the nth magnetic steel, and the total number of the lines is 2 times of the total number of the axles of the train; the odd lines sequentially correspond to each shaft of the train after the 1 st shaft starts, and represent the time interval from the previous shaft to the current shaft passing through the corresponding magnetic steel of the train; the even lines represent the total time from the beginning of pressing the magnetic steel to the departure of the corresponding shaft of the previous odd line;
The generated speed sheet for train operation is as follows:
the total number of lines of the speed data is the same as the total number of axles of the train; filling the initial time speed data from each shaft to each magnetic steel into the page 2 of the sheet page of the excel file according to the position corresponding to the sports car time, wherein the initial time speed data corresponds to the odd number row of the first page of the sheet page one by one;
the generated configuration parameter sheet page of train operation is as follows:
and filling the magnetic steel distance, the compartment distance and all wheelbase configuration parameter information into page 3 of the sheet page of the excel file.
Other modules and processing manners are the same as those of the first embodiment.
And a third specific embodiment:
the embodiment is a test system of a train image acquisition device based on train running state signal simulation, wherein distances among different carriages set in a carriage distance setting module are the same value as the whole train.
Other modules and processing manners are the same as those of the first or second embodiments.
The specific embodiment IV is as follows:
The embodiment is a test system of a train image acquisition device based on train running state signal simulation, wherein when a train running mode is set in a train running mode setting module, the train running mode is set by taking a section as a unit, and the section running mode is set to be uniform or variable speed; the running process setting of different running modes of all the intervals is completed in a mode of multi-interval continuous running;
The interval refers to: defining the total travel of the whole train as the sum of the total wheelbase and the compartment spacing of the current train from the beginning of the 1 st axle passing through the magnetic steel to the ending of the last axle leaving the magnetic steel; this schedule is divided into any number of intervals.
Other modules and processing manners are the same as those of the first to third embodiments.
Fifth embodiment:
The embodiment is a test system of a train image acquisition device based on train running state signal simulation, and is realized by the following setting modes when the running mode is set in a running mode setting module of a train:
Firstly, setting an initial speed V, an acceleration a and a section length S of a current section; then according to The formula carries out reverse thrust to calculate the ending time and ending speed of the current section, and a=0 at a constant speed; the ending speed of the former interval is the starting speed of the latter interval; the operation mode can be changed after one section is changed to another section.
Other modules and processing manners are the same as those of the fourth embodiment.
Specific embodiment six:
In the present embodiment, the total time from the start of pressing the magnetic steel to the departure of the shaft corresponding to the previous odd line is 0.001s in the even line in the sheet page.
Other modules and processing manners are the same as those of the second to fifth embodiments.
Seventh embodiment:
The embodiment is a test system of a train image acquisition device based on train running state signal simulation, and the train data reading and issuing unit comprises:
train data reading module: based on the folders in which all files of train data needed by the current task are located, batch file reading is carried out, all file paths and file names are displayed in a to-be-run file table, and the to-be-run file table is stored in an array for standby;
train data processing module: reading 3 sheet pages in an Excel file in a folder one by one, respectively converting train operation time data of the 1 st page, speed data of the 2 nd page and configuration data of the 3 rd page into continuous character strings according to a formulated private protocol, and preparing for issuing;
Train task setting module: the method comprises the steps of setting the circulation operation times of the whole folder of the train, the operation time interval between two sports car tasks and the circulation times, and defaulting to circulation for 1 time if the circulation times are not set;
Train data issuing module: the train data generating unit processes the train data and transmits the train data to the train signal simulator to simulate the train running; after the current train runs, the train signal simulation device of the lower computer receives a train running task ending signal of the train signal simulation device of the lower computer, then starts to count time again, reads data in a next file in a task form to be run after reaching an operation time interval, and starts to send data to the train signal simulation device of the lower computer to simulate the next train after the train data generation unit processes the data; if the number of the set circulating tasks is more than 1; and after all train data in the task list to be run are completely issued, the simulated train data in the list are circularly sent according to the set circulation task times.
Other modules and processing manners are the same as those of the first to sixth embodiments.
Eighth embodiment:
The embodiment is a test system of a train image acquisition device based on train running state signal simulation, wherein the lower computer train signal simulation device further comprises a serial communication module, and the serial communication module receives train data issued by an upper computer and analyzes and stores the data to be used locally according to a private protocol.
Other modules and processing manners are the same as those of the first to seventh embodiments.
Detailed description nine:
The embodiment is a test system of the train image acquisition device based on train running state signal simulation, and the lower computer train signal simulation device further comprises a state display screen for displaying the train type, the current carriage wheelbase information, the running speed and the acceleration information in real time in the process of simulating the running of the train.
Other modules and processing manners are the same as those of the first to eighth embodiments.
Detailed description ten:
The present embodiment is a method for testing a train image acquisition device based on train operation status signal simulation, which includes setting a car spacing, a magnetic steel number, a magnetic steel spacing and a train operation mode in the test system of the train image acquisition device based on train operation status signal simulation according to any one of the first to ninth embodiments according to a test task and a test environment, and then testing by using the test system of the train image acquisition device based on train operation status signal simulation.
Examples
The embodiment is described with reference to fig. 1 and 2, and the embodiment is a method for testing a train image acquisition device based on train operation state signal simulation, which completes testing by using a test system of the train image acquisition device based on train operation state signal simulation, wherein the test system of the train image acquisition device based on train operation state signal simulation comprises an upper computer software part and a lower computer train signal simulation device part.
The upper computer software can flexibly generate various necessary test data for simulating the vehicle type, the vehicle speed, the running mileage and the like of the sports scene, and integrate the data to send the data to the lower computer in the mode of sports tasks.
The train signal simulator of the lower computer receives the simulated sports car task distributed by the upper computer software, executes the target sports car task at regular time according to a specific algorithm, and sends the sports car signal to the target tested system. Thereby performing flexible test activities.
1. Software function of upper computer
(1) Train data generation
The train data generating unit mainly has the functions of reading the wheelbase information of different types of trains (such as four-axle trucks, six-axle locomotives and the like), setting the compartment spacing information, setting the number of magnetic steels and the magnetic steel spacing, setting the train running mode and generating a train running data file.
A. Setting and reading of wheelbase meter
A train consists of multiple carriages with different wheelbases and different types. Setting the wheelbase table as the wheelbase information of each behavior of a car, for example: the format of the wheelbase information of a 4-axis car is: "wheelbase 1, wheelbase 2, wheelbase 3"; the format of the wheelbase information of a 6-axis car is: "wheelbase 1, wheelbase 2, wheelbase 3, wheelbase 4, wheelbase 5". If a train has n carriages, filling in n rows of wheelbase information. The wheelbase of a specific train can be obtained from the existing wheelbase data of an actual train, and the wheelbase data can be directly pasted to be manufactured into a wheelbase table file.
The wheelbase table file may be made from different types of trains. And then named using the specific train model. Such a file is a wheelbase table of a train. The wheelbase table file can be reused, and each wheelbase table file manufactured is put into the wheelbase table library. When the method is actually used, the file reading can be carried out by selecting the model of the train.
B. compartment spacing arrangement
The distances between different carriages are set, and the whole train is the same value.
C. Setting the number of magnetic steels and the distance between the magnetic steels
The format of the magnetic steel spacing and the format of the wheelbase, for example: the 8 magnetic steel environment information format is 'interval 1, interval 2, interval 3, interval 4, interval 5, interval 6 and interval 7'. The number of the actually used magnetic steels is 4 magnetic steels and 8 magnetic steels, the distances between different actual environments are different, and corresponding configuration is needed according to the actual environments.
D. Setting the running mode of the train
The total travel of the whole train is defined as the sum of the total wheelbase and the compartment spacing of the current train from the beginning of the 1 st axle passing through the magnetic steel to the ending of the last axle leaving the magnetic steel. The travel is divided into any number of sections, then the section operation state is set by taking the section as a unit, and the operation mode can be set to be uniform or variable. Then, the simulation of the running process of different running states in all the intervals can be completed in a mode of multi-interval continuous running.
First, the initial velocity V, acceleration a and section length S of the current section are set, and then according toThe formula is used for carrying out reverse calculation on the ending time and ending speed of the current section, and a=0 at a constant speed. The ending speed of the preceding section is the starting speed of the following section. Likewise, the time interval and ending speed of the train passing adjacent two axles are calculated in the above-described manner.
E. Time to generate train operation data file
The train operation data file is in an excel table form, and the content of page 1 of the sheet page is train running time simulation data: the nth column represents the nth magnetic steel, and if the environment is 8 magnetic steel, the file data is 8 columns in total. The total number of the trains is 2 times of the total number of the axles of the train. The odd lines sequentially correspond to each shaft of the train after the 1 st shaft starts, and represent the time interval from the previous shaft to the current shaft passing through the corresponding magnetic steel of the train; the even row indicates the total time from the start of pressing the magnetic steel to the departure of the corresponding axis of the previous odd row, and this value is defined as 0.001s. (the train axle is processed into pulse-like signal after magnetic steel, and the actual detection equipment is used for detecting the level change of magnetic steel signal, so that the time is not too long and too short)
Column 1 of row 1 represents the moment when the 1 st axle of the whole train passes through the 1 st magnetic steel for the first time, and the value is regulated to be 0, and the time from 0 moment to the first time when the 1 st axle of the current vehicle passes through the 1 st magnetic steel is simulated. By analogy, the 1 st row and 2 nd column data represent the time from the 0 moment to the first passing of the 2 nd magnetic steel by the 1 st axis of the train. Therefore, the 1 st line data is the time from the 0 moment to the time when the 1 st axis of the train passes through the first signal of each magnetic steel, and the time is defined as the 0 moment of the magnetic steel.
And (3) based on the moment 0 of each magnetic steel, respectively calculating the odd-numbered line data of each magnetic steel (each column) by using the calculation mode described in the running mode of the train described in the step d, and filling the time data into the corresponding odd-numbered line for each adjacent two shafts through the time difference and the speed of the current magnetic steel.
F. Speed of generating train operation data file
The total number of trains of the speed data is the same as the total number of axles of the train. And e, filling the initial time speed data from each shaft to each magnetic steel into the page 2 of the sheet page of the excel file according to the position corresponding to the running time, wherein the initial time speed data corresponds to the odd number row of the first sheet of the sheet page one by one. To check whether the speed and time value calculations are correct and to show the operating conditions.
G. generating configuration parameters for a train operation data file
And filling configuration parameter information such as magnetic steel spacing, carriage spacing, total wheelbase and the like into page 3 of the sheet page of the excel file. This step is mainly to preserve configuration parameters to distinguish the usefulness and differences of the individual files and the presentation of the running state.
One of the above documents represents one mode of operation for a given vehicle model. According to the train model of the actual use and the train running mode of different testing scenes in the testing cases, generating train data of various different using scenes, naming each file as a mode of 'model + running mode', and taking the files as the testing cases to be placed under different file clips according to actual needs for actual testing.
(2) Train data reading and issuing
The train data acquires the file paths and file names of the train passing data of all tasks to be executed in a folder reading mode, and stores the file paths and file names into an array for standby. After the running task starts, the passing data files in the folder are read one by one according to the set cycle times and file sending intervals and sent to a lower computer (train signal simulation device). Each file is a train, when the train running task ending signal of the next train of the lower computer is received, the timing is started again, and after the sending interval is reached, the passing data in the next file is sent.
A. train data reading
And placing all files of the train data required by the current task into a designated folder, reading the folder, reading batch files, displaying all file paths and file names into a to-be-run file form of a software graphical interface, and storing the file paths and file names into an array for standby.
B. Train data processing
3 Sheet pages in an Excel file in a folder are read one by one, train operation time data of the 1 st page, speed data of the 2 nd page and configuration data of the 3 rd page are respectively converted into continuous character strings according to a formulated private protocol, and the continuous character strings are prepared for issuing.
C. Train mission setting
Setting the circulation running times of the whole file of the train, the running time interval between two sports car tasks and the circulation times, and if the circulation times are not set, default circulation is carried out for 1 time.
D. Train data distribution
And connecting the software running end PC to a serial port communication module of a lower computer (train signal simulation device), and connecting the software to a serial port of the lower computer. Clicking a task start button of the software interface, and transmitting the processed data of the current train to a lower computer to start simulating the sports car. After the current train runs, the running task ending signal of the lower computer is received, then the timing is started again, after the running time interval is reached, the data in the next file in the task form to be run is read, and after the data is processed, the data is started to be issued to the lower computer to simulate the next train. If the number of the set circulation tasks is more than 1. And after all train data in the task list to be run are completely issued, the simulated train data in the list are circularly sent according to the set circulation task times.
2. Train signal simulator
(1) Serial port communication module
And the serial port communication module receives train data issued by the upper computer, and analyzes and stores the data to the local for standby according to a private protocol.
(2) Main control module
The main control module performs polling processing on the received train operation time data, and each path of magnetic steel is independently timed. And the control level output is carried out on the IO ports corresponding to the magnetic steels according to the time value in the unit cell in the train data. Taking the 1 st path of magnetic steel as an example: and when the passing time is more than or equal to the 1 st row and 1 st column data in the train data table, setting the IO port level corresponding to the 1 st magnetic steel to be high, when the passing time is more than or equal to the 2 nd row and 1 st column data, setting the IO port level corresponding to the 1 st magnetic steel to be low, and so on, setting the corresponding magnetic steel level to be high when the odd-numbered row time condition of the train data is met, and setting the corresponding magnetic steel level to be low when the even-numbered row time condition of the train data is met.
The main control module reads the received speed data and configuration information data, the process is synchronous with the time data, and when the time condition reaches the time requirement, the IO port level is controlled, and the corresponding speed data and configuration information are synchronously sent to the state display screen.
(3) Status display screen
Real-time information can be sent to a display screen in the process of simulating the sports car, and important information such as the type of the train, the current car wheelbase information, the running speed, the acceleration and the like can be displayed in real time.
(4) Voltage adaptation and signal output module
The multi-channel output signals (4 magnetic steel environments are 4 channels, 8 magnetic steel environments are 8 channels, 8 channels are physically connected, and a plurality of channels of signals are transmitted according to actual use conditions) are converted into voltage values (which can be adjusted randomly according to the voltage of a power supply of the module) adapted to the image acquisition device to be tested, the output ports of the voltage adaptation and signal output modules are connected to the magnetic steel signal processing module of the image acquisition device to be tested, and the magnetic steel signal processing module analyzes corresponding vehicle passing information after receiving the signals, so that cameras at all positions are controlled to acquire images at a certain frequency, and the aim of testing is achieved. The test results of the present invention are shown in fig. 3.
The above examples of the present invention are only for describing the calculation model and calculation flow of the present invention in detail, and are not limiting of the embodiments of the present invention. Other variations and modifications of the above description will be apparent to those of ordinary skill in the art, and it is not intended to be exhaustive of all embodiments, all of which are within the scope of the invention.

Claims (10)

1. The test system of the train image acquisition device based on train running state signal simulation is characterized by comprising upper computer software and a lower computer train signal simulation device;
Upper computer software: the system comprises a train signal simulation device, a train signal simulation device and a train signal simulation device, wherein the train signal simulation device is used for simulating train running scenes of various vehicles;
the train signal simulation device of the lower computer comprises: receiving an analog sports car task distributed by the upper computer software, executing a target sports car task, and transmitting a sports car signal to a target tested system;
wherein, the host computer software includes:
Train data generation unit: the system is used for reading wheelbase information of different types of trains and generating train operation data files according to compartment spacing information, the number of magnetic steels, the distance between the magnetic steels and the train operation mode; the train data generation unit includes:
The wheelbase meter reading module: reading wheelbase table files of different types of trains from a wheelbase table library according to the types of the trains; each row of wheelbase table is the wheelbase information of a carriage;
Compartment distance setting module: receiving distance setting information between different carriages through an interface;
the magnetic steel number and magnetic steel interval setting module: receiving setting information of the magnetic steel spacing through an interface;
The running mode setting module of the train: receiving setting information of a train operation mode through an interface;
Train operation data file generation module: generating a train operation data file including a train operation time sheet page, a speed sheet page, and a configuration parameter sheet page; the train operation data file is a file in an excel table form, and one file represents an operation mode of a specified vehicle type;
Train data reading and issuing unit: acquiring the file paths and file names of the driving data of all tasks to be executed in a folder reading mode, and storing the file paths and file names into an array for standby; after the running task starts, reading the passing data files in the folder one by one according to the set cycle times and file sending intervals, and sending the passing data files to a train signal simulation device of a lower computer; each file is a train, when the train running task end signal of the current train of the lower computer is received, the timing is started again, and after the transmission interval is reached, the train passing data in the next file is transmitted;
The lower computer train signal simulation device comprises:
And the main control module: carrying out polling processing on the received train operation time data, and independently timing each path of magnetic steel; the control level output is carried out on the IO ports corresponding to the magnetic steels according to the time value in each column of unit cells in the train data at regular time; setting the IO port level corresponding to the magnetic steel to be high when the elapsed time is more than or equal to the odd line data of the column corresponding to the magnetic steel in the train data table, setting the IO port level corresponding to the magnetic steel to be low when the elapsed time is more than or equal to the 1 st line data in the odd line, and so on, setting the corresponding magnetic steel level to be high when the odd line time condition of the train data is met, and setting the corresponding magnetic steel level to be low when the even line time condition of the train data is met;
the received speed data and configuration information data are read, the process is carried out synchronously with the time data, and when the time condition reaches the time requirement, the IO port level is controlled, and the corresponding speed data and configuration information are synchronously transmitted for display;
voltage adaptation and signal output module: the multi-channel output signals corresponding to the number of the magnetic steels are converted into voltage values which are adapted to the tested image acquisition device and output to the magnetic steel signal processing part of the tested image acquisition device to analyze corresponding passing information, so that cameras at all parts are controlled to acquire images at a certain frequency, and the aim of testing is achieved.
2. The system for testing a train image acquisition device based on train operation state signal simulation according to claim 1, wherein the train operation data file generated by the train operation data file generation module is as follows:
The generated train run time sheet is as follows:
The content of the time sheet page is train sports car time simulation data: the nth column represents the nth magnetic steel, and the total number of the lines is 2 times of the total number of the axles of the train; the odd lines sequentially correspond to each shaft of the train after the 1 st shaft starts, and represent the time interval from the previous shaft to the current shaft passing through the corresponding magnetic steel of the train; the even lines represent the total time from the beginning of pressing the magnetic steel to the departure of the corresponding shaft of the previous odd line;
The generated speed sheet for train operation is as follows:
the total number of lines of the speed data is the same as the total number of axles of the train; filling the initial time speed data from each shaft to each magnetic steel into the page 2 of the sheet page of the excel file according to the position corresponding to the sports car time, wherein the initial time speed data corresponds to the odd number row of the first page of the sheet page one by one;
the generated configuration parameter sheet page of train operation is as follows:
and filling the magnetic steel distance, the compartment distance and all wheelbase configuration parameter information into page 3 of the sheet page of the excel file.
3. The system for testing a train image acquisition device based on train operation state signal simulation according to claim 2, wherein the distances between different cars set in the inter-car distance setting module are the same value for the whole train.
4. The test system of the train image acquisition device based on the train operation state signal simulation according to claim 3, wherein the train operation mode setting module sets the train operation mode in units of intervals, and sets the interval operation mode to be constant speed or variable speed; the running process setting of different running modes of all the intervals is completed in a mode of multi-interval continuous running;
The interval refers to: defining the total travel of the whole train as the sum of the total wheelbase and the compartment spacing of the current train from the beginning of the 1 st axle passing through the magnetic steel to the ending of the last axle leaving the magnetic steel; this schedule is divided into any number of intervals.
5. The test system of a train image acquisition device based on train operation state signal simulation according to claim 4, wherein when an operation mode is set in the operation mode setting module of the train, the following setting mode is implemented:
Firstly, setting an initial speed V, an acceleration a and a section length S of a current section; then according to The formula carries out reverse thrust to calculate the ending time and ending speed of the current section, and a=0 at a constant speed; the ending speed of the former interval is the starting speed of the latter interval; the operation mode can be changed after one section is changed to another section.
6. The system for testing a train image acquisition device based on train operation state signal simulation according to claim 5, wherein the total time from the start of pressing the magnetic steel to the departure of the shaft corresponding to the previous odd line is 0.001s.
7. The test system of a train image acquisition device based on train operation state signal simulation according to any one of claims 1 to 6, wherein the train data reading and issuing unit comprises:
train data reading module: based on the folders in which all files of train data needed by the current task are located, batch file reading is carried out, all file paths and file names are displayed in a to-be-run file table, and the to-be-run file table is stored in an array for standby;
train data processing module: reading 3 sheet pages in an Excel file in a folder one by one, respectively converting train operation time data of the 1 st page, speed data of the 2 nd page and configuration data of the 3 rd page into continuous character strings according to a formulated private protocol, and preparing for issuing;
Train task setting module: the method comprises the steps of setting the circulation operation times of the whole folder of the train, the operation time interval between two sports car tasks and the circulation times, and defaulting to circulation for 1 time if the circulation times are not set;
Train data issuing module: the train data generating unit processes the train data and transmits the train data to the train signal simulator to simulate the train running; after the current train runs, the train signal simulation device of the lower computer receives a train running task ending signal of the train signal simulation device of the lower computer, then starts to count time again, reads data in a next file in a task form to be run after reaching an operation time interval, and starts to send data to the train signal simulation device of the lower computer to simulate the next train after the train data generation unit processes the data; if the number of the set circulating tasks is more than 1; and after all train data in the task list to be run are completely issued, the simulated train data in the list are circularly sent according to the set circulation task times.
8. The system for testing the train image acquisition device based on train running state signal simulation of claim 7, wherein the lower computer train signal simulation device further comprises a serial communication module, and the serial communication module receives train data issued by the upper computer and analyzes and stores the data to be used locally according to a private protocol.
9. The system for testing the train image acquisition device based on train operation state signal simulation according to claim 8, wherein the lower computer train signal simulation device further comprises a state display screen for displaying the train type, the current car wheelbase information, the operation speed and the acceleration information in real time in the process of simulating the running of the train.
10. The method for testing the train image acquisition device based on train operation state signal simulation is characterized in that firstly, according to a test task and a test environment, the compartment spacing, the number of magnetic steels, the magnetic steel spacing and the running mode of a train are set in the test system of the train image acquisition device based on train operation state signal simulation according to any one of claims 1 to 9, and then the test is carried out by using the test system of the train image acquisition device based on train operation state signal simulation.
CN202410002838.8A 2024-01-02 2024-01-02 Train operation state signal simulation-based train image acquisition device testing system and method Pending CN117969033A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410002838.8A CN117969033A (en) 2024-01-02 2024-01-02 Train operation state signal simulation-based train image acquisition device testing system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410002838.8A CN117969033A (en) 2024-01-02 2024-01-02 Train operation state signal simulation-based train image acquisition device testing system and method

Publications (1)

Publication Number Publication Date
CN117969033A true CN117969033A (en) 2024-05-03

Family

ID=90848871

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410002838.8A Pending CN117969033A (en) 2024-01-02 2024-01-02 Train operation state signal simulation-based train image acquisition device testing system and method

Country Status (1)

Country Link
CN (1) CN117969033A (en)

Similar Documents

Publication Publication Date Title
CN104184758B (en) A kind of test platform and method of testing of airborne vehicle message triggering logic
CN104181908B (en) A kind of DFDAU test platform and method of testing
CN201191455Y (en) Multimedia network training educating system for electric spraying engine
CN102323813A (en) Simulation test system and method based on CTCS (China Train Control System) 2-level train control system
CN103035147A (en) Scene lead-in type method and device of high-skill practical training scene of automotive application and maintenance
WO2022148360A1 (en) Method and device for testing positioning and speed measuring system main unit
CN104184525B (en) Digital-flight-data-acquisition-unit-based test platform and test method of signal transmission device
CN104835102B (en) Train speed measurement scheme evaluation method and device
CN104787009A (en) Locomotive vehicle intelligent maintenance system and method based on video identification
CN103196674A (en) Vehicle test environment information collection system in altitude environment
CN112722010A (en) Rail corrugation acoustic diagnosis system for rail transit
CN202995451U (en) A vehicle-mounted controller automatic testing device
CN103389216A (en) System and method for testing aerodynamic characteristics of movable train on basis of wind pressure integral
CN117969033A (en) Train operation state signal simulation-based train image acquisition device testing system and method
CN103852273A (en) Device and method for testing train wheel-rail resistance
CN102200777A (en) Performance monitoring method for new energy vehicle controller verification test
CN211718894U (en) Analog simulation device for rail transit coding odometer and beacon
CN110553864A (en) tramcar simulation operation monitoring system
CN109656231A (en) The communication test system of magnetic floating traffic vehicle-mounted running control
CN110672340B (en) Tramcar simulation operation monitoring method
CN213123464U (en) Vehicle examination and training integrated system
CN114394137A (en) Simulation integration test platform and test method for vehicle-mounted signal system
CN113504734A (en) Image display-based lane line simulation test method and system
CN103412266A (en) Device for testing performance of automotive power supply
CN202150039U (en) Information acquisition and control device used for training vehicle

Legal Events

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