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, be used for according to each subsystem under the performance parameter of vehicle and communicating protocol parameter simulating vehicle running status, generate the simulation code corresponding with described each subsystem difference, 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, according to described each subsystem state information and each default subsystem state information, judge described TCMS device systems logic control function, and receive the hardware instruction information that described TCMS equipment returns, the hardware device that judges described TCMS equipment according to described hardware instruction information and default hardware instruction information is controlled function,
Described replicating machine, described each simulation code sending for receiving described industrial computer, according to described each simulation code, form the realistic model corresponding with described each subsystem, receive the described steering order that described industrial computer sends, according to described each realistic model of described steering order operation, 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 that described hardware simulation platform sends, described hardware instruction information is processed and returned to described electric signal and hard signal;
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, so that described replicating machine is processed described electric signal and hard signal, 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, to described hardware simulation platform, send described test instruction, 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 with described each subsystem difference, and 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, according to described each realistic model of described steering order operation, generates each subsystem state information, and 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 default subsystem state information;
The electric signal of vehicle and hard signal described in hardware simulation platform simulation, receive the test instruction that described TCMS equipment sends, and according to described test instruction, described electric signal and hard signal sent to described replicating machine;
Hardware instruction information is processed and returned to described replicating machine to described electric signal and hard signal;
Described hardware simulation platform receives described hardware instruction information, and described hardware instruction information is sent to described TCMS equipment;
Described TCMS equipment sends to described industrial computer by described hardware instruction information;
Described industrial computer judges the hardware device control function 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, by each subsystem of industrial computer and replicating machine emulation vehicle, form each subsystem realistic model, by electric signal and hard signal on hardware simulation platform simulation vehicle, TCMS equipment sending controling instruction is to industrial computer, control replicating machine moves 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, hardware instruction information is processed and returned to replicating machine to industrial computer to electric signal and hard signal, industrial computer is according to the analyzing logic control function of each subsystem state information judgement TCMS equipment, according to the hardware controls function of hardware instruction information judgement TCMS equipment.This TCMS test macro provided by the invention not only has the simulation capacity of each subsystem of vehicle, the fillip also with simulation entire automobile electric system equipment, thereby do not need TCMS equipment to be connected and to test with vehicle, can reduce the complexity of TCMS testing of equipment, improve testing efficiency.
Embodiment
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, 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, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
A kind of networked control system of the train that Fig. 1 provides for the embodiment of the present invention and the structural representation of 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 TCMS equipment 14 with replicating machine 12, 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, be used for according to each subsystem under the performance parameter of vehicle and communicating protocol parameter simulating vehicle running status, generate the simulation code corresponding with each subsystem difference, 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, according to each subsystem state information and each default subsystem state information, judge TCMS device systems logic control function, and receive the hardware instruction information to electric signal and hard signal that TCMS equipment 14 returns, the hardware device that judges described TCMS equipment 14 according to hardware instruction information and default hardware instruction information is controlled function.
Replicating machine 12, each simulation code sending for receiving industrial computer 11, according to each simulation code, form the subsystem realistic model corresponding with each subsystem difference, receive the steering order that industrial computer 13 sends, according to this steering order, move each subsystem realistic model, generate each subsystem state information, each subsystem state information is sent to industrial computer 11, and receive electric signal and the hard signal that hardware simulation platform 13 sends, hardware instruction information is processed and returned to electric signal and hard signal.
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, so that 12 pairs of electric signals of replicating machine and hard signal are processed, 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, by each subsystem of industrial computer and replicating machine emulation vehicle, form each subsystem realistic model, by electric signal and hard signal on hardware simulation platform simulation vehicle, TCMS equipment sending controling instruction is to industrial computer, control replicating machine moves 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, hardware instruction information is processed and returned to replicating machine to industrial computer to electric signal and hard signal, industrial computer is according to the analyzing logic control function of each subsystem state information judgement TCMS equipment, according to the hardware controls function of hardware instruction information judgement TCMS equipment.This TCMS test macro provided by the invention not only has the simulation capacity of each subsystem of vehicle, the fillip also with simulation entire automobile electric system equipment, thereby do not need TCMS equipment to be connected and to test with vehicle, can reduce the complexity of TCMS testing of equipment, improve testing efficiency.
Particularly, in the present embodiment, industrial computer 11 can connect replicating machine 12 by bus, also can realize mutual with replicating machine 12 by Ethernet, and industrial computer 11 is also connected by bus with TCMS equipment 14.The communication interface of TCMS equipment is various, for example, MVB (Multifunction Vehicle Bus, MVB) communication interface, controller local area network (Controller Area Network, CAN) communication interface, ethernet interface, RS485 communication interface etc.In the present embodiment, preferably, industrial computer 11 adopts the form of MVB (Multifunction Vehicle Bus, MVB) to be connected with TCMS equipment 14.
Industrial computer 11 is according to the performance parameter of vehicle and communicating protocol parameter, by modeling software, carry out each subsystem under simulating vehicle running status, wherein, each subsystem comprises all subsystems on the vehicles such as driving position system on vehicle, trailer system, brake system, backup system, accelerator control system, air-conditioning system, signal system, broadcast system, pyrotechnics system.The performance parameter of vehicle and communicating protocol parameter can obtain by the communication protocol of each subsystem, the technical descriptioon file of the functional requirement standard of each subsystem, each subsystem.The trailer system (Traction Control Unit, TCU) of take is example, and performance parameter, as the data transmission characteristics cycle of TCU, TCU logical process time delay etc.Communicating protocol parameter, presses signal, net stream signal, motor speed signal etc. as TCU sends to the net of TCMS.In the present embodiment, modeling software can adopt the Matlab/Simulink software with simulation and copying.In industrial computer 11, human-computer interaction interface can be set, train operator can be by 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 need to be tested each subsystem of simulation, generates the test result that each subsystem is corresponding.In order to detect each subsystem of industrial computer 11 simulations, whether simulated truly each subsystem under actual vehicle running status, the first expected result prestoring in industrial computer 11, this first expected result prestoring has comprised the expected result of each subsystem.This first expected result is according to the technical protocol of signing with main engine plants with by the repeatedly design liaison meeting with subsystems, and the relevant meeting summary of signing, communication protocol, functional requirement standard etc. are formulated.Industrial computer 11 compares the test result of each subsystem with corresponding expected result, when each subsystem testing result is consistent with corresponding expected result, industrial computer 11 generates with each subsystem distinguishes corresponding simulation code; And the test result of working as each subsystem is inconsistent with corresponding expected result, performance parameter and the communicating protocol parameter of adjustment and the inconsistent subsystem of desired structure, and again according to performance parameter and the communicating protocol parameter of the vehicle after adjusting, 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 by call parameters performance parameter and the communicating protocol parameter that option is adjusted vehicle.
In actual mechanical process, the language of the modeling software while simulating in the language of the simulation software using in replicating machine 12 and industrial computer 11 is not general, that is to say, language in modeling software directly can not be sent in replicating machine 12, need industrial computer 11 that the language in this modeling software is compiled as to the simulation code that replicating machine 12 can be identified.When industrial computer 11 generates corresponding simulation code by each subsystem by after test, described each simulation code of compiling, then sends to replicating machine 12 by each simulation code after compiling.When industrial computer 11 generates simulation code, by automatic script, control and carry out automatic error detection and error correction, to guarantee the accuracy of the simulation code of generation.
Replicating machine 12 has received after each simulation code of industrial computer 11 transmissions, moves each simulation code, and replicating machine 12 has moved after each simulation code, the simulation result that output is corresponding with each simulation code difference.Replicating machine 12 is sent to industrial computer 11 by this simulation result, and industrial computer 11 receives after simulation result, by simulation architecture and the second expected result comparison prestoring.This second expected result is according to the technical protocol of signing with main engine plants with by the repeatedly design liaison meeting with subsystems, and the relevant meeting summary of signing, communication protocol, functional requirement standard etc. are formulated.When simulation result is with described default the second expected result when consistent, industrial computer 11 sends instructions to replicating machine 12, controls replicating machine 12 and forms the realistic model corresponding with described each subsystem difference 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.The simulation parameter of adjusting in industrial computer 11 is performance parameter on vehicle and the partial parameters in communicating protocol parameter.Industrial computer 11, after having adjusted simulation parameter, is controlled described replicating machine and is reruned 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 option by call parameters and adjusts simulation parameter.
After replicating machine 12 completes emulation, TCMS equipment 14 sends described steering order to industrial computer 11, industrial computer 11 receives after this steering order, send it to replicating machine 12, replicating machine 12 moves each realistic model of replicating machine 12 according to this steering order, replicating machine 12 returns to each realistic model according to the status information of each subsystem of steering order feedback to industrial computer 11.Industrial computer 11 compares the status information of each subsystem receiving and the status information of each subsystem prestoring, 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 undesired.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.Take TCU as example, when the steering order of TCMS equipment 14 transmissions is advance command, TCU controls motor steering for forward according to advancement commands, and feed back to replicating machine 12, replicating machine 12 is sent to industrial computer 11 by this motor steering information forward, owing to having prestored under advancement commands in industrial computer 11, TCU controls motor steering information forward, thinks that the control function 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, can in replicating machine 12, simulate exactly the subsystem on the vehicle being connected with TCMS equipment 14, each realistic model can sending and receiving data message and failure message, thereby during to 14 test of TCMS equipment, TCMS equipment is directly connected with industrial computer 11, avoid TCMS equipment to be connected with each the actual subsystem on vehicle, can improve the speed of test, reduced the complexity of test.
On actual vehicle, not only comprise subsystems, comprise in addition electrical equipment and rigid line equipment, when to TCMS testing equipment, also need the electrical equipment on vehicle and rigid line equipment and TCMS equipment connection.In the present embodiment, the hardware simulation platform 13 providing, for simulating electric signal and the hard signal of described vehicle, as, driver's key signal, direction signal, traction braking command signal, traction braking power high low signal, mushroom head button signal etc.Hardware simulation platform 13 is connected with the electric interfaces of TCMS equipment 14 by electric interfaces, wherein, electric interfaces comprises: digital quantity input (Digital Input, DI), digital output (Digital Output, DO), analog input (Analog Input, AI), analog output (Analog Output, AO) and pulse-length modulation (Pulse Width Modulation, PWM) signal.TCMS equipment 14 is by DO, AO and PWM board in electric interfaces, it is DO, AO and PWM interface, to hardware simulation platform 13, the test instruction sending, for example, hardware simulation platform receives the test instruction that TCMS equipment sends, as: bow put in place pilot lamp, expansion contactor close command, air compressor machine open command etc. fall in put in place pilot lamp, pantograph of door district pilot lamp, pantograph rising bow.Hardware simulation platform 13 is according to this test instruction by electric signal and hard signal, and the parallel bus by being connected with replicating machine 12, sends to replicating machine 12.12 pairs of electric signals of replicating machine and hard signal are processed, and return to hardware instruction information to hardware simulation platform 13.Hardware simulation platform 13 sends to TCMS equipment 14 by self DO, AO and PWM board by hardware instruction information.
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 that is back to TCMS equipment need to be carried out to conversion process, the voltage matches of switching signal for example, the voltage of simulating signal or electric current linear modulation etc., generate first signal.Under actual travel condition of vehicle, electric signal and hard signal that electrical equipment and rigid line equipment send, can be subject to extraneous interference often, therefore, hardware simulation platform 13, after settling signal conversion, injects interference to first signal, generates secondary signal.Hardware simulation platform 13 sends this secondary signal to TCMS equipment 14, and TCMS equipment 14 is resolved this secondary signal, obtains hardware instruction status information.TCMS equipment 14 sends to industrial computer 11 by hardware instruction information, industrial computer 11 compares hardware instruction information and the hardware instruction information prestoring, when both are inconsistent, the hardware controls function that TCMS equipment 14 is described is undesired, when both are consistent, illustrate that the hardware controls function of TCMS equipment 14 is normal.By hardware simulation platform 13, can simulate exactly electric signal and the hard signal that on the vehicle being connected with TCMS equipment 14, electrical equipment and rigid line equipment send, thereby during to 14 test of TCMS equipment, TCMS equipment is connected with hardware simulation platform 13, actual electrical equipment and rigid line equipment connection on TCMS equipment and vehicle have been avoided, can improve the speed of test, reduce the complexity of test.
Industrial computer 11, after receiving the status information and hardware instruction information of each subsystem, also records the status information of each subsystem and hardware instruction information and preserve, so that follow-up, checks, thereby improve, checks efficiency.
A kind of networked control system of the train and supervisory system TCMS method of testing process flow diagram that Fig. 2 provides for the embodiment of the present invention.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, also can realize alternately by Ethernet, and industrial computer is also connected by bus with TCMS equipment.The communication interface of TCMS equipment is various, for example, 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, according to each subsystem under the performance parameter of vehicle and communicating protocol parameter simulating vehicle running status, generates the simulation code corresponding with described each subsystem difference, and described each simulation code is sent to replicating machine.
Particularly, industrial computer is according to the performance parameter of vehicle and communicating protocol parameter, by modeling software, carry out each subsystem under simulating vehicle running status, wherein, each subsystem comprises all subsystems on the vehicles such as driving position system on vehicle, trailer system, brake system, backup system, accelerator control system, air-conditioning system, signal system, broadcast system, pyrotechnics system.The performance parameter of vehicle and communicating protocol parameter can obtain by the communication protocol of each subsystem, the technical descriptioon file of the functional requirement standard of each subsystem, each subsystem.Take TCU system as example, and performance parameter, as the data transmission characteristics cycle of TCU, TCU logical process time delay etc.Communicating protocol parameter, presses signal, net stream signal, motor speed signal etc. as TCU sends to the net of TCMS.In the present embodiment, modeling software can adopt the Matlab/Simulink software with simulation and copying.In industrial computer, human-computer interaction interface can also be set, train operator can be by 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 need to be tested each subsystem of simulation, generates the test result that each subsystem is corresponding.In order to detect each subsystem of industrial computer simulation, whether simulated truly each subsystem under actual vehicle running status, the first expected result prestoring in industrial computer, this first expected result prestoring has comprised the expected result of each subsystem.This first expected result is according to the technical protocol of signing with main engine plants with by the repeatedly design liaison meeting with subsystems, and the relevant meeting summary of signing, communication protocol, functional requirement standard etc. are formulated.Industrial computer compares the test result of each subsystem with corresponding expected result, when each subsystem testing result is consistent with corresponding expected result, industrial computer generates with each subsystem distinguishes corresponding simulation code; And the test result of working as each subsystem is inconsistent with corresponding expected result, performance parameter and the communicating protocol parameter of adjustment and the inconsistent subsystem of desired structure, and again according to performance parameter and the communicating protocol parameter of the vehicle after adjusting, this subsystem is tested.Train operator or emulation personnel can, by the option of the human-computer interaction interface call parameters adjustment in industrial computer, adjust performance parameter and the communicating protocol parameter of vehicle by parameter adjustment option.
In actual mechanical process, the language of the modeling software while simulating in the language of the simulation software using in replicating machine and industrial computer is not general, that is to say, language in modeling software directly can not be sent in replicating machine, need industrial computer that the language in this modeling software is compiled as to the simulation code that replicating machine can be identified.When industrial computer generates corresponding simulation code by each subsystem by after test, described each simulation code of compiling, then sends to replicating machine by each simulation code after compiling.When industrial computer generates simulation code, by automatic script, control and carry out automatic error detection and error correction, to guarantee the accuracy of the simulation code of generation.
202, described replicating machine forms the realistic model corresponding with described each subsystem according to described each simulation code.
Replicating machine has received after each simulation code of industrial computer transmission, moves each simulation code, and replicating machine has moved after each simulation code, the simulation result that output is corresponding with each simulation code difference.Replicating machine is sent to industrial computer by this simulation result.Industrial computer receives after simulation result, by simulation architecture and the second expected result comparison prestoring, when simulation result is with described default the second expected result when consistent, industrial computer sends instruction to replicating machine, controls replicating machine and forms the realistic model corresponding with described each subsystem difference 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 of adjusting in industrial computer is performance parameter on vehicle and the partial parameters in communicating protocol parameter.Industrial computer, after having adjusted simulation parameter, is controlled described replicating machine and is reruned each simulation code.The option that train operator or emulation personnel can adjust by the human-computer interaction interface call parameters in industrial computer, adjusts 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, and industrial computer receives after this steering order, and this steering order is sent to replicating machine.
204, described replicating machine, according to described each realistic model of described steering order operation, generates described each subsystem state information, and 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 default subsystem state information.
Particularly, industrial computer compares the status information of each subsystem receiving and the status information of each subsystem prestoring, whether the state of each subsystem is consistent with the status information of each subsystem of expection, and when both are inconsistent, the analyzing logic control function of TCMS equipment is undesired.When both are consistent, 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.Take TCU as example, when the steering order of TCMS equipment transmission is advance command, TCU controls motor steering for forward according to advancement commands, and feed back to replicating machine, replicating machine is sent to industrial computer by this motor steering information forward, owing to having prestored in industrial computer under advancement commands, TCU controls motor steering information forward, thinks that the control function of this advancement commands of TCMS equipment is normal.
By the above-mentioned modeling and simulation process of industrial computer and replicating machine, can in replicating machine, simulate exactly the subsystem on the vehicle with TCMS equipment connection, each realistic model can sending and receiving data message and failure message, thereby during to TCMS testing of equipment, TCMS equipment is directly connected with industrial computer, avoid TCMS equipment to be connected with each the actual subsystem on vehicle, can improve the speed of test, reduced the complexity of test.
206, electric signal and the hard signal of vehicle described in hardware simulation platform simulation, receive the test instruction that described TCMS equipment sends, and according to described test instruction, described electric signal and hard signal sent to described replicating machine.
On actual vehicle, not only comprise subsystems, comprise in addition electrical equipment and rigid line equipment, when to TCMS testing equipment, also need the electrical equipment on vehicle and rigid line equipment and TCMS equipment connection.The hardware simulation platform providing in the present embodiment, can simulate electric signal and the hard signal of described vehicle, as, driver's key signal, direction signal, traction braking command signal, traction braking power high low signal, mushroom head button signal etc.Hardware simulation platform is connected with the electric interfaces of TCMS equipment by electric interfaces, 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, it is DO, AO and PWM interface, to hardware simulation platform, the test instruction sending, for example, hardware simulation platform receives the test instruction that TCMS equipment sends, as: bow put in place pilot lamp, expansion contactor close command, air compressor machine open command etc. fall in put in place pilot lamp, pantograph of door district pilot lamp, pantograph rising bow.Hardware simulation platform is according to this test instruction by electric signal and hard signal, and the parallel bus by being connected with replicating machine, sends to replicating machine.
207, hardware instruction information is processed and returned to described replicating machine to described electric signal and hard signal.
Replicating machine is processed electric signal and hard signal, returns to hardware instruction information to hardware simulation platform.Hardware simulation platform sends to TCMS equipment by self DO, AO and PWM board by hardware instruction information.
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 that is back to TCMS equipment need to be carried out to conversion process, the voltage matches of switching signal for example, the voltage of simulating signal or electric current linear modulation etc., generate first signal.Under actual travel condition of vehicle, electric signal and hard signal that electrical equipment and rigid line equipment send, can be subject to extraneous interference often, and therefore, hardware simulation platform, after settling signal conversion, injects interference to first signal, generates secondary signal.Hardware simulation platform sends this secondary signal to TCMS equipment, and this secondary signal of TCMS device parses obtains hardware instruction status information.
208, described hardware simulation platform sends to described TCMS equipment by described hardware instruction information.
209, described TCMS equipment sends to described industrial computer by described hardware instruction information.
210, described industrial computer judges the hardware device control function of described TCMS equipment according to described hardware instruction information and default hardware instruction information.
Industrial computer compares hardware instruction information and the hardware instruction information prestoring, and when both are inconsistent, the hardware controls function of TCMS equipment is undesired, and when both are consistent, the hardware controls function of TCMS equipment is normal.By hardware simulation platform, can simulate exactly electric signal and the hard signal that on the vehicle with TCMS equipment connection, electrical equipment and rigid line equipment send, thereby during to TCMS testing of equipment, TCMS equipment is connected with hardware simulation platform, actual electrical equipment and rigid line equipment connection on TCMS equipment and vehicle have been avoided, can improve the speed of test, reduce the complexity of test.
Industrial computer is after receiving the status information and hardware instruction information of each subsystem, also the status information of each subsystem and hardware instruction information are carried out to industrial computer 11 after receiving the status information and hardware instruction information of each subsystem, also the status information of each subsystem and hardware instruction information are recorded and preserved, so that follow-up, check, thereby improve, check efficiency.
A kind of networked control system of the train that the present embodiment provides and supervisory system TCMS method of testing, by each subsystem of industrial computer and replicating machine emulation vehicle, form each subsystem realistic model, by electric signal and hard signal on hardware simulation platform simulation vehicle, TCMS equipment sending controling instruction is to industrial computer, control replicating machine moves 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, hardware instruction information is processed and returned to replicating machine to industrial computer to electric signal and hard signal, industrial computer is according to the analyzing logic control function of each subsystem state information judgement TCMS equipment, according to the hardware controls function of hardware instruction information judgement TCMS equipment.This TCMS test macro provided by the invention not only has the simulation capacity of each subsystem of vehicle, the fillip also with simulation entire automobile electric system equipment, thereby do not need TCMS equipment to be connected and to test with vehicle, can reduce the complexity of TCMS testing of equipment, improve testing efficiency.
Finally it should be noted that: each embodiment, only in order to technical scheme of the present invention to be described, is not intended to limit above; Although the present invention is had been described in detail with reference to aforementioned each embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or some or all of technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.