Summary of the invention
The invention provides a kind of networked control system of the train and supervisory system TCMS test macro and method, in order to reduce the complexity of test TCMS system, improve testing efficiency.
To achieve these goals, the invention provides a kind of networked control system of the train and supervisory system TCMS test macro, comprise: industrial computer, replicating machine, hardware simulation platform and TCMS equipment, described industrial computer and described replicating machine and described TCMS equipment connection, described replicating machine is also connected with described hardware simulation platform, described hardware simulation platform also with described TCMS equipment connection;
Described industrial computer, for according to each subsystem under the performance parameter of vehicle and communicating protocol parameter simulating vehicle running status, generate the simulation code corresponding respectively with described each subsystem, described each simulation code is sent to described replicating machine, receive the steering order that described TCMS equipment sends, described steering order is sent to described replicating machine, receive each subsystem state information that described replicating machine returns, described TCMS device systems logic control function is judged according to described each subsystem state information and each subsystem state information preset, and receive the hardware instruction information that described TCMS equipment returns, the hardware device controlling functions of described TCMS equipment is judged according to described hardware instruction information and default hardware instruction information,
Described replicating machine, for receiving described each simulation code that described industrial computer sends, the realistic model corresponding with described each subsystem is formed according to described each simulation code, receive the described steering order that described industrial computer sends, described each realistic model is run according to described steering order, generate described each subsystem state information, described each subsystem state information is sent to described industrial computer, and receive electric signal and the hard signal of the transmission of described hardware simulation platform, described electric signal and hard signal are processed and returns described hardware instruction information;
Described hardware simulation platform, for simulating electric signal and the hard signal of described vehicle, receive the test instruction that described TCMS equipment sends, according to described test instruction, described electric signal and hard signal are sent to described replicating machine, to make described replicating machine, described electric signal and hard signal are processed, and receive the described hardware instruction information that described replicating machine returns, described hardware instruction information is sent to described TCMS equipment;
Described TCMS equipment, for sending described steering order to described industrial computer, send described test instruction to described hardware simulation platform, and receive the described hardware instruction information that described hardware simulation platform returns, described hardware instruction information is sent to described industrial computer.
To achieve these goals, the invention provides a kind of networked control system of the train and supervisory system TCMS method of testing, comprising:
Industrial computer, according to each subsystem under the performance parameter of vehicle and communicating protocol parameter simulating vehicle running status, generates the simulation code corresponding respectively with described each subsystem, described each simulation code is sent to replicating machine;
Described replicating machine forms the realistic model corresponding with described each subsystem according to described each simulation code;
Described industrial computer receives the steering order that TCMS equipment sends, and described steering order is sent to described replicating machine;
Described replicating machine runs described each realistic model according to described steering order, generates each subsystem state information, described each subsystem state information is sent to described industrial computer;
Described industrial computer judges described TCMS device systems logic control function according to described each subsystem state information and each subsystem state information preset;
The electric signal of vehicle described in hardware simulation platform simulation and hard signal, receive the test instruction that described TCMS equipment sends, according to described test instruction, described electric signal and hard signal sent to described replicating machine;
Described replicating machine processes described electric signal and hard signal and returns hardware instruction information;
Described hardware simulation platform receives described hardware instruction information, and described hardware instruction information is sent to described TCMS equipment;
Described hardware instruction information is sent to described industrial computer by described TCMS equipment;
Described industrial computer judges the hardware device controlling functions of described TCMS equipment according to described hardware instruction information and default hardware instruction information.
Networked control system of the train provided by the invention and supervisory system TCMS test macro and method, each subsystem of vehicle is emulated by industrial computer and replicating machine, form each subsystem realistic model, by the electric signal on hardware simulation platform simulation vehicle and hard signal, TCMS equipment sending controling instruction is to industrial computer, control imitation machine runs each realistic model and generates each subsystem state information, TCMS equipment sends test instruction to hardware simulation platform, hardware simulation platform sends electric signal and hard signal to replicating machine according to test instruction, replicating machine processes electric signal and hard signal and returns hardware instruction information to industrial computer, industrial computer judges the analyzing logic control function of TCMS equipment according to each subsystem state information, the hardware controls function of TCMS equipment is judged according to hardware instruction information.This TCMS test macro provided by the invention not only has the simulation capacity of each subsystem of vehicle, also there is the fillip of simulation entire automobile electric system equipment, thus do not need TCMS equipment to be connected with vehicle to test, the complexity of TCMS testing of equipment can be reduced, improve testing efficiency.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The structural representation of a kind of networked control system of the train that Fig. 1 provides for the embodiment of the present invention and supervisory system TCMS test macro.As shown in Figure 1, the TCMS test macro that the present embodiment provides comprises: industrial computer 11, replicating machine 12, hardware simulation platform 13 and TCMS equipment 14, industrial computer 11 is connected with replicating machine 12 and TCMS equipment 14, replicating machine 12 is also connected with hardware simulation platform 13, and hardware simulation platform 13 is also connected with TCMS equipment 14.
Industrial computer 11, for according to each subsystem under the performance parameter of vehicle and communicating protocol parameter simulating vehicle running status, generate the simulation code corresponding respectively with each subsystem, each simulation code is sent to replicating machine 12, receive the steering order that TCMS equipment 14 sends, steering order is sent to replicating machine 12, receive each subsystem state information that replicating machine 12 returns, TCMS device systems logic control function is judged according to each subsystem state information and each subsystem state information preset, and the hardware instruction information to electric signal and hard signal receiving that TCMS equipment 14 returns, the hardware device controlling functions of described TCMS equipment 14 is judged according to hardware instruction information and default hardware instruction information.
Replicating machine 12, for receiving each simulation code that industrial computer 11 sends, the subsystem realistic model corresponding respectively with each subsystem is formed according to each simulation code, receive the steering order that industrial computer 13 sends, each subsystem realistic model is run according to this steering order, generate each subsystem state information, each subsystem state information is sent to industrial computer 11, and receive electric signal and the hard signal of the transmission of hardware simulation platform 13, electric signal and hard signal are processed and returns hardware instruction information.
Hardware simulation platform 13, for simulating electric signal and the hard signal of described vehicle, receive the test instruction that TCMS equipment 14 sends, according to test instruction, electric signal and hard signal are sent to replicating machine 12, process to make replicating machine 12 pairs of electric signals and hard signal, and receive the hardware instruction information that replicating machine 12 returns, hardware instruction information is sent to TCMS equipment 14.
TCMS equipment 14, for sending described steering order to industrial computer 11, sends test instruction to hardware simulation platform 13, and receives the hardware instruction information that hardware simulation platform 13 returns, and hardware instruction information is sent to industrial computer 13.
A kind of networked control system of the train that the present embodiment provides and supervisory system TCMS test macro, each subsystem of vehicle is emulated by industrial computer and replicating machine, form each subsystem realistic model, by the electric signal on hardware simulation platform simulation vehicle and hard signal, TCMS equipment sending controling instruction is to industrial computer, control imitation machine runs each realistic model and generates each subsystem state information, TCMS equipment sends test instruction to hardware simulation platform, hardware simulation platform sends electric signal and hard signal to replicating machine according to test instruction, replicating machine processes electric signal and hard signal and returns hardware instruction information to industrial computer, industrial computer judges the analyzing logic control function of TCMS equipment according to each subsystem state information, the hardware controls function of TCMS equipment is judged according to hardware instruction information.This TCMS test macro provided by the invention not only has the simulation capacity of each subsystem of vehicle, also there is the fillip of simulation entire automobile electric system equipment, thus do not need TCMS equipment to be connected with vehicle to test, the complexity of TCMS testing of equipment can be reduced, improve testing efficiency.
Particularly, in the present embodiment, industrial computer 11 can connect replicating machine 12 by bus, and also can realize with replicating machine 12 by Ethernet mutual, industrial computer 11 is also connected by bus with TCMS equipment 14.The communication interface of TCMS equipment is various, such as, MVB (MultifunctionVehicleBus, MVB) communication interface, controller local area network (ControllerAreaNetwork, CAN) communication interface, ethernet interface, RS485 communication interface etc.In the present embodiment, preferably, industrial computer 11 adopts the form of MVB (MultifunctionVehicleBus, MVB) to be connected with TCMS equipment 14.
Industrial computer 11 is according to the performance parameter of vehicle and communicating protocol parameter, the each subsystem under simulating vehicle running status is carried out by modeling software, wherein, each subsystem comprise on vehicle the vehicle such as driving position system, trailer system, brake system, backup system, accelerator control system, air-conditioning system, signal system, broadcast system, pyrotechnic system on all subsystems.The performance parameter of vehicle and communicating protocol parameter can be obtained by the technology supporting paper of the functional requirement specification of the communication protocol of each subsystem, each subsystem, each subsystem.For trailer system (TractionControlUnit, TCU), performance parameter, as the data transmission characteristics cycle, TCU logical process time delay etc. of TCU.Communicating protocol parameter, as TCU sends to net pressure signal, net stream signal, the motor speed signal etc. of TCMS.In the present embodiment, modeling software can adopt the Matlab/Simulink software with simulation and copying.Can arrange human-computer interaction interface in industrial computer 11, train operator can pass through the running status of the real-time supervision train of this human-computer interaction interface.
Industrial computer 11, after having simulated each subsystem, does not directly generate simulation code, and industrial computer 11 needs to test each subsystem of simulation, generates the test result that each subsystem is corresponding.Whether each subsystem of simulating to detect industrial computer 11 simulates each subsystem under actual vehicle running status truly, and the first expected result prestored in industrial computer 11, includes the expected result of each subsystem in this first expected result prestored.This first expected result is according to the technical protocol signed with main engine plants with by the repeatedly design liaison meeting with subsystems, and the relevant meeting summary, communication protocol, functional requirement specification etc. of signing are formulated.The test result of each subsystem compares with corresponding expected result by industrial computer 11, and when each subsystem testing result is consistent with corresponding expected result, industrial computer 11 generates the simulation code corresponding respectively with each subsystem; And when the test result of each subsystem is inconsistent with corresponding expected result, the performance parameter of adjustment and the inconsistent subsystem of desired structure and communicating protocol parameter, and again according to the performance parameter of the vehicle after adjustment and communicating protocol parameter, this subsystem is tested.Human-computer interaction interface in industrial computer 11 can be provided with the option of parameter adjustment, allows train operator or emulation personnel to adjust performance parameter and the communicating protocol parameter of vehicle by call parameters adjustment option.
In actual mechanical process, the language of modeling software when simulating in the language of the simulation software used in replicating machine 12 and industrial computer 11 is not general, that is, language in modeling software directly can not be sent in replicating machine 12, need industrial computer 11 to be the simulation code that replicating machine 12 can identify by the language compilation in this modeling software.Industrial computer 11, by when generating corresponding simulation code by each subsystem after test, compiles described each simulation code, then each simulation code after compiling is sent to replicating machine 12.When industrial computer 11 generates simulation code, control to carry out automatic error detection and error correction by automatic script, to ensure the accuracy of the simulation code generated.
Replicating machine 12 runs each simulation code after have received each simulation code of industrial computer 11 transmission, after replicating machine 12 has run each simulation code, exports the simulation result corresponding respectively with each simulation code.This simulation result is sent to industrial computer 11 by replicating machine 12, after industrial computer 11 receives simulation result, simulation architecture and prestore second is expected results contrast.This second expected result is according to the technical protocol signed with main engine plants with by the repeatedly design liaison meeting with subsystems, and the relevant meeting summary, communication protocol, functional requirement specification etc. of signing are formulated.When simulation result is consistent with described default second expected result, industrial computer 11 sends instruction to replicating machine 12, and control imitation machine 12 forms the realistic model corresponding respectively with described each subsystem according to described each simulation code; When each simulation result and described the second default expected result inconsistent, in industrial computer 11, adjust the simulation parameter in each simulation code.In industrial computer 11, the simulation parameter of adjustment is the performance parameter on vehicle and the partial parameters in communicating protocol parameter.Industrial computer 11, after having adjusted simulation parameter, controls described replicating machine and reruns each simulation code.Human-computer interaction interface in industrial computer 11 can be provided with the option of parameter adjustment, allows train operator or emulation personnel to adjust simulation parameter by call parameters adjustment option.
After replicating machine 12 completes emulation, TCMS equipment 14 sends described steering order to industrial computer 11, after industrial computer 11 receives this steering order, send it to replicating machine 12, replicating machine 12 carrys out each realistic model of Dynamic simulation machine 12 according to this steering order, and replicating machine 12 returns the status information of each realistic model according to each subsystem of steering order feedback to industrial computer 11.The status information of the status information of each subsystem received with each subsystem prestored compares by industrial computer 11, whether the state of each subsystem is consistent with the status information of each subsystem of expection, when both are inconsistent, illustrate that the analyzing logic control function of TCMS equipment 14 is abnormal.When both are consistent, illustrate that the analyzing logic control function of TCMS equipment 14 is normal.Industrial computer 11 also has the function of man-machine interaction, by human-computer interaction interface, can observe the running status of each realistic model in the replicating machine 12 of vehicle.For TCU, when the steering order that TCMS equipment 14 sends is advance command, it is forward that TCU controls motor steering according to advancement commands, and feed back to replicating machine 12, this motor steering information is forward sent to industrial computer 11 by replicating machine 12, due under the advancement commands that prestored in industrial computer 11, TCU controls motor steering information forward, then think that the controlling functions of this advancement commands of TCMS equipment 14 is normal.
By the above-mentioned modeling and simulation process of industrial computer 11 and replicating machine 12, the subsystem on the vehicle that is connected with TCMS equipment 14 can be simulated exactly in replicating machine 12, the data message that each realistic model can send and receive and failure message, thus when TCMS equipment 14 is tested, TCMS equipment is directly connected with industrial computer 11, avoid TCMS equipment to be connected with each subsystem of the reality on vehicle, the speed of test can be improved, reduce the complexity of test.
Actual vehicle not only comprises subsystems, comprises electrical equipment and hardwired devices in addition, when to TCMS testing equipment, also need the electrical equipment on vehicle and hardwired devices and TCMS equipment connection.In the present embodiment, the hardware simulation platform 13 provided, for simulating electric signal and the hard signal of described vehicle, e.g., driver's key signal, direction signal, traction braking command signal, tractive-braking efforts high low signal, mushroom head button signal etc.Hardware simulation platform 13 is connected by the electric interfaces of electric interfaces with TCMS equipment 14, wherein, electric interfaces comprises: digital quantity input (DigitalInput, DI), digital output (DigitalOutput, DO), analog input (AnalogInput, AI), analog output (AnalogOutput, AO) and pulse-length modulation (PulseWidthModulation, PWM) signal.TCMS equipment 14 is by DO, AO and PWM board in electric interfaces, i.e. DO, AO and PWM interface, to hardware simulation platform 13, the test instruction sent, such as, hardware simulation platform receives the test instruction that TCMS equipment sends, as: put in place pilot lamp, pantograph of door district pilot lamp, pantograph rising bow is fallen bow and to be put in place pilot lamp, expansion contactor close command, air compressor machine open command etc.Hardware simulation platform 13 by electric signal and hard signal, by the parallel bus be connected with replicating machine 12, sends to replicating machine 12 according to this test instruction.Replicating machine 12 pairs of electric signals and hard signal process, and return hardware instruction information to hardware simulation platform 13.Hardware instruction information is sent to TCMS equipment 14 by DO, AO and PWM board of self by hardware simulation platform 13.
Further, due to the electric characteristic of hardware simulation platform 13 electric interfaces and the electrical specification of TCMS equipment 14 electric interfaces inconsistent, the hardware instruction status information being back to TCMS equipment is needed to carry out conversion process, the voltage matches of such as switching signal, the voltage of simulating signal or electric current linear modulation etc., generate the first signal.Under the travel condition of vehicle of reality, the electric signal that electrical equipment and hardwired devices send and hard signal, can be subject to extraneous interference often, therefore, hardware simulation platform 13, after settling signal conversion, carries out injection interference to the first signal, generates secondary signal.Hardware simulation platform 13 sends this secondary signal and resolves this secondary signal to TCMS equipment 14, TCMS equipment 14, obtains hardware instruction status information.Hardware instruction information is sent to industrial computer 11 by TCMS equipment 14, hardware instruction information and the hardware instruction information prestored compare by industrial computer 11, when both are inconsistent, illustrate that the hardware controls function of TCMS equipment 14 is abnormal, when both are consistent, illustrate that the hardware controls function of TCMS equipment 14 is normal.The electric signal that on the vehicle be connected with TCMS equipment 14, electrical equipment and hardwired devices send and hard signal can be simulated exactly by hardware simulation platform 13, thus when TCMS equipment 14 is tested, TCMS equipment is connected with hardware simulation platform 13, the electrical equipment and the hardwired devices that avoid TCMS equipment and the reality on vehicle are connected, the speed of test can be improved, reduce the complexity of test.
The status information of each subsystem and hardware instruction information, after the status information receiving each subsystem and hardware instruction information, are also carried out recording and preserving, are checked so that follow-up by industrial computer 11, thus efficiency is checked in raising.
A kind of networked control system of the train that Fig. 2 provides for the embodiment of the present invention and supervisory system TCMS method of testing process flow diagram.The method that the present embodiment provides is applicable to the TCMS test macro that above-described embodiment provides.In the present embodiment, industrial computer can connect replicating machine by bus, and also can be realized mutual by Ethernet, industrial computer is also connected by bus with TCMS equipment.The communication interface of TCMS equipment is various, such as, and MVB communication interface, CAN communication interface, ethernet interface, RS485 communication interface etc.In the present embodiment, preferably, industrial computer adopts form and the TCMS equipment connection of MVB.
As shown in Figure 2, the TCMS method of testing that the present embodiment provides comprises:
201, industrial computer is according to each subsystem under the performance parameter of vehicle and communicating protocol parameter simulating vehicle running status, generates the simulation code corresponding respectively with described each subsystem, described each simulation code is sent to replicating machine.
Particularly, industrial computer is according to the performance parameter of vehicle and communicating protocol parameter, the each subsystem under simulating vehicle running status is carried out by modeling software, wherein, each subsystem comprise on vehicle the vehicle such as driving position system, trailer system, brake system, backup system, accelerator control system, air-conditioning system, signal system, broadcast system, pyrotechnic system on all subsystems.The performance parameter of vehicle and communicating protocol parameter can be obtained by the technology supporting paper of the functional requirement specification of the communication protocol of each subsystem, each subsystem, each subsystem.For TCU system, performance parameter, as the data transmission characteristics cycle, TCU logical process time delay etc. of TCU.Communicating protocol parameter, as TCU sends to net pressure signal, net stream signal, the motor speed signal etc. of TCMS.In the present embodiment, modeling software can adopt the Matlab/Simulink software with simulation and copying.Can also arrange human-computer interaction interface in industrial computer, train operator can pass through the running status of the real-time supervision train of this human-computer interaction interface.
Industrial computer, after having simulated each subsystem, does not directly generate simulation code, and industrial computer needs to test each subsystem of simulation, generates the test result that each subsystem is corresponding.Whether simulate each subsystem under actual vehicle running status truly in order to each subsystem detecting industrial computer simulation, the first expected result prestored in industrial computer, includes the expected result of each subsystem in this first expected result prestored.This first expected result is according to the technical protocol signed with main engine plants with by the repeatedly design liaison meeting with subsystems, and the relevant meeting summary, communication protocol, functional requirement specification etc. of signing are formulated.The test result of each subsystem compares with corresponding expected result by industrial computer, and when each subsystem testing result is consistent with corresponding expected result, industrial computer generates the simulation code corresponding respectively with each subsystem; And when the test result of each subsystem is inconsistent with corresponding expected result, the performance parameter of adjustment and the inconsistent subsystem of desired structure and communicating protocol parameter, and again according to the performance parameter of the vehicle after adjustment and communicating protocol parameter, this subsystem is tested.Train operator or emulation personnel by the option of the human-computer interaction interface call parameters adjustment in industrial computer, can adjust performance parameter and the communicating protocol parameter of vehicle by parameter adjustment option.
In actual mechanical process, the language of modeling software when simulating in the language of the simulation software used in replicating machine and industrial computer is not general, that is, language in modeling software directly can not be sent in replicating machine, need the simulation code that the language compilation in this modeling software can identify for replicating machine by industrial computer.Industrial computer, by when generating corresponding simulation code by each subsystem after test, compiles described each simulation code, then each simulation code after compiling is sent to replicating machine.When industrial computer generates simulation code, control to carry out automatic error detection and error correction by automatic script, to ensure the accuracy of the simulation code generated.
202, described replicating machine forms the realistic model corresponding with described each subsystem according to described each simulation code.
Replicating machine runs each simulation code after have received each simulation code of industrial computer transmission, after replicating machine has run each simulation code, exports the simulation result corresponding respectively with each simulation code.This simulation result is sent to industrial computer by replicating machine.After industrial computer receives simulation result, simulation architecture and prestore second are expected results contrast, when simulation result is consistent with described default second expected result, industrial computer sends instruction to replicating machine, and control imitation machine forms the realistic model corresponding respectively with described each subsystem according to described each simulation code; When each simulation result and described the second default expected result inconsistent, in industrial computer, adjust the simulation parameter in each simulation code, the simulation parameter adjusted in industrial computer is the performance parameter on vehicle and the partial parameters in communicating protocol parameter.Industrial computer, after having adjusted simulation parameter, controls described replicating machine and reruns each simulation code.Train operator or emulation personnel by the option of the human-computer interaction interface call parameters adjustment in industrial computer, can adjust simulation parameter by parameter adjustment option.
203, described industrial computer receives the steering order that TCMS equipment sends, and described steering order is sent to described replicating machine.
After replicating machine completes emulation, TCMS equipment sends described steering order to industrial computer, after industrial computer receives this steering order, this steering order is sent to replicating machine.
204, described replicating machine runs described each realistic model according to described steering order, generates described each subsystem state information, described each subsystem state information is sent to described industrial computer.
205, described industrial computer judges described TCMS device systems logic control function according to described each subsystem state information and each subsystem state information preset.
Particularly, the status information of the status information of each subsystem received with each subsystem prestored compares by industrial computer, whether the state of each subsystem is consistent with the status information of each subsystem of expection, and when both are inconsistent, then the analyzing logic control function of TCMS equipment is abnormal.When both are consistent, then the analyzing logic control function of TCMS equipment is normal.
Further, industrial computer also has the function of man-machine interaction, by human-computer interaction interface, can observe the running status of each realistic model in the replicating machine of vehicle.For TCU, when the steering order that TCMS equipment sends is advance command, it is forward that TCU controls motor steering according to advancement commands, and feed back to replicating machine, this motor steering information is forward sent to industrial computer by replicating machine, due under the advancement commands that prestored in industrial computer, TCU controls motor steering information forward, then think that the controlling functions of this advancement commands of TCMS equipment is normal.
By the above-mentioned modeling and simulation process of industrial computer and replicating machine, can simulate in replicating machine exactly and the subsystem on the vehicle of TCMS equipment connection, the data message that each realistic model can send and receive and failure message, thus during to TCMS testing of equipment, TCMS equipment is directly connected with industrial computer, avoid TCMS equipment to be connected with each subsystem of the reality on vehicle, the speed of test can be improved, reduce the complexity of test.
206, the electric signal of vehicle described in hardware simulation platform simulation and hard signal, receives the test instruction that described TCMS equipment sends, according to described test instruction, described electric signal and hard signal is sent to described replicating machine.
Actual vehicle not only comprises subsystems, comprises electrical equipment and hardwired devices in addition, when to TCMS testing equipment, also need the electrical equipment on vehicle and hardwired devices and TCMS equipment connection.The hardware simulation platform provided in the present embodiment, can simulate electric signal and the hard signal of described vehicle, e.g., and driver's key signal, direction signal, traction braking command signal, tractive-braking efforts high low signal, mushroom head button signal etc.Hardware simulation platform is connected by the electric interfaces of electric interfaces with TCMS equipment, and wherein, electric interfaces comprises: digital quantity input DI, digital output DO, analog input AI, analog output AO and pulse width modulating signal PWM.TCMS equipment is by DO, AO and PWM board in electric interfaces, i.e. DO, AO and PWM interface, to hardware simulation platform, the test instruction sent, such as, hardware simulation platform receives the test instruction that TCMS equipment sends, as: put in place pilot lamp, pantograph of door district pilot lamp, pantograph rising bow is fallen bow and to be put in place pilot lamp, expansion contactor close command, air compressor machine open command etc.Hardware simulation platform by electric signal and hard signal, by the parallel bus be connected with replicating machine, sends to replicating machine according to this test instruction.
207, described replicating machine processes described electric signal and hard signal and returns hardware instruction information.
Replicating machine processes electric signal and hard signal, returns hardware instruction information to hardware simulation platform.Hardware instruction information is sent to TCMS equipment by DO, AO and PWM board of self by hardware simulation platform.
Further, due to the electric characteristic of hardware simulation platform electric interfaces and the electrical specification of TCMS equipment electric interfaces inconsistent, the hardware instruction status information being back to TCMS equipment is needed to carry out conversion process, the voltage matches of such as switching signal, the voltage of simulating signal or electric current linear modulation etc., generate the first signal.Under the travel condition of vehicle of reality, the electric signal that electrical equipment and hardwired devices send and hard signal, can be subject to extraneous interference often, and therefore, hardware simulation platform, after settling signal conversion, carries out injection interference to the first signal, generates secondary signal.Hardware simulation platform sends this secondary signal to TCMS equipment, this secondary signal of TCMS device parses, obtains hardware instruction status information.
208, described hardware instruction information is sent to described TCMS equipment by described hardware simulation platform.
209, described hardware instruction information is sent to described industrial computer by described TCMS equipment.
210, described industrial computer judges the hardware device controlling functions of described TCMS equipment according to described hardware instruction information and default hardware instruction information.
Hardware instruction information and the hardware instruction information prestored compare by industrial computer, and when both are inconsistent, then the hardware controls function of TCMS equipment is abnormal, and when both are consistent, then the hardware controls function of TCMS equipment is normal.The electric signal and hard signal that send with electrical equipment on the vehicle of TCMS equipment connection and hardwired devices can be simulated exactly by hardware simulation platform, thus during to TCMS testing of equipment, TCMS equipment is connected with hardware simulation platform, the electrical equipment and the hardwired devices that avoid TCMS equipment and the reality on vehicle are connected, the speed of test can be improved, reduce the complexity of test.
Industrial computer is after the status information receiving each subsystem and hardware instruction information, also the status information of each subsystem and hardware instruction information are carried out industrial computer 11 after the status information receiving each subsystem and hardware instruction information, also the status information of each subsystem and hardware instruction information are carried out recording and preserving, check so that follow-up, thus efficiency is checked in raising.
A kind of networked control system of the train that the present embodiment provides and supervisory system TCMS method of testing, each subsystem of vehicle is emulated by industrial computer and replicating machine, form each subsystem realistic model, by the electric signal on hardware simulation platform simulation vehicle and hard signal, TCMS equipment sending controling instruction is to industrial computer, control imitation machine runs each realistic model and generates each subsystem state information, TCMS equipment sends test instruction to hardware simulation platform, hardware simulation platform sends electric signal and hard signal to replicating machine according to test instruction, replicating machine processes electric signal and hard signal and returns hardware instruction information to industrial computer, industrial computer judges the analyzing logic control function of TCMS equipment according to each subsystem state information, the hardware controls function of TCMS equipment is judged according to hardware instruction information.This TCMS test macro provided by the invention not only has the simulation capacity of each subsystem of vehicle, also there is the fillip of simulation entire automobile electric system equipment, thus do not need TCMS equipment to be connected with vehicle to test, the complexity of TCMS testing of equipment can be reduced, improve testing efficiency.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.