Summary of the invention
The invention provides a kind of method of testing and testing apparatus, make the test of Vehicle Controller more flexible, and more horn of plenty of the test event that can provide.
The invention provides a kind of method of testing, for Vehicle Controller is carried out to fault test, the method comprises:
Step S1, receives the test instruction of user's input;
Step S2, generates corresponding simulating signal according to described test instruction;
Step S3, is input to described simulating signal according to the type of described test instruction the corresponding interface of Vehicle Controller.
Preferably, when described test instruction is Train Control instruction,
Described step S2 is specially:
According to described Train Control instruction, generate corresponding Train Control signal;
Described step S3 is specially:
Described Train Control signal is input to the bridge interface of described Vehicle Controller.
Preferably, when described test instruction is train status parameter,
Described step S2 is specially:
According to described train status parameter, generate corresponding state simulation signal;
Described step S3 is specially:
Described state simulation signal is input in described Vehicle Controller for gathering the state acquisition interface of described train status parameter.
Preferably, when described test instruction is fault simulation instruction,
Described step S2 is specially:
According to described fault simulation instruction, generate corresponding Trouble Report information;
Described step S3 is specially:
By described Trouble Report input information in described Vehicle Controller for gathering the interface of described Trouble Report information.
The present invention also provides a kind of testing apparatus, it is characterized in that, for Vehicle Controller is carried out to fault test, described equipment comprises:
Human-computer interaction module, for receiving the test instruction of user's input;
Emulation module, generates corresponding simulating signal for the test instruction receiving according to described human-computer interaction module;
Sending module, for being input to described simulating signal according to the type of described test instruction the corresponding interface of Vehicle Controller.
Preferably, described emulation module, while being Train Control instruction for the test instruction receiving at described human-computer interaction module, generates corresponding Train Control signal according to described Train Control instruction;
Sending module, while being Train Control signal for the simulating signal generating at described emulation module, is input to described Train Control signal the bridge interface of described Vehicle Controller.
Preferably, when described emulation module is train status parameter for the test instruction receiving at described human-computer interaction module, according to described train status parameter, generate corresponding state simulation signal;
Described sending module, while being train status parameter for the test instruction receiving at described human-computer interaction module, is input in described Vehicle Controller described state simulation signal for gathering the state acquisition interface of described train status parameter.
Preferably, described emulation module, while being fault simulation instruction for the test instruction receiving at described human-computer interaction module, generates corresponding Trouble Report information according to described fault simulation instruction;
Sending module, while being Trouble Report information for the simulating signal generating at described emulation module, by described Trouble Report input information in described Vehicle Controller for gathering the interface of described Trouble Report information.
In the method for testing providing in the present invention, according to the test instruction of user's input, simulate corresponding simulating signal, and be input in Vehicle Controller on corresponding interface according to the type of test instruction, like this when testing, just, without actual bridge is linked on Vehicle Controller, increased the dirigibility of test.On the other hand, user also can edit suitable test instruction, inputs other simulating signals except Train Control instruction, thereby can realize the multiple test to Vehicle Controller in Vehicle Controller.
Embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is further described.Following examples are only for technical scheme of the present invention is more clearly described, and can not limit the scope of the invention with this.
The invention provides a kind of wire examination method, for the driving ability to driver, examine, as shown in Figure 1, the method comprises:
Step S1, receives the test instruction of user's input;
Step S2, generates corresponding simulating signal according to described test instruction;
Step S3, is input to described simulating signal according to the type of described test instruction the corresponding interface of Vehicle Controller.
In practical application, after step S3, described method can also comprise: step S4, receives the feedback signal of Vehicle Controller and export to user.In practical application, with regard to realizing test, generally all can be by gathering the feedback result of Vehicle Controller and exporting to user, this process is not the content that the present invention will pay close attention to, and at this, is not described further.
Preferably, when described test instruction is Train Control instruction,
Described step S2 is specially:
According to described Train Control instruction, generate corresponding Train Control signal;
Described step S3 is specially:
Described Train Control signal is input to the bridge interface of described Vehicle Controller.
In this way, the various signals of output that can drive simulating platform, judge whether Vehicle Controller can make correct response to the signal of bridge output.
Preferably, when described test instruction is train status parameter,
Described step S2 is specially:
According to described train status parameter, generate corresponding state simulation signal;
Described step S3 is specially:
Described state simulation signal is input in described Vehicle Controller for gathering the state acquisition interface of described train status parameter.
In this way, can judge whether Vehicle Controller can make correct response to the status information of vehicle.The status information here can comprise: vehicle-mounted whether close etc.
Preferably, when described test instruction is fault simulation instruction,
Described step S2 is specially:
According to described fault simulation instruction, generate corresponding Trouble Report information;
Described step S3 is specially:
By described Trouble Report input information in described Vehicle Controller for gathering the interface of described Trouble Report information.
In this way, can judge whether Vehicle Controller can make correct reflection when certain fault occurs vehicle.Due in actual applications, can not be by making the form of certain equipment or plant failure go inspection vehicle set controller to make correct feedback to fault, therefore in the embodiment of the present invention, mode by simulation is to Vehicle Controller input fault, and then inspection vehicle set controller can be made correct feedback to fault and has great realistic meaning.
In practical application, each signals collecting interface of Vehicle Controller is connected in testing apparatus by different control lines respectively (comprising the interface of bridge interface, state acquisition interface, collection failure message), if this signals collecting interface is for often opening node, control line can be parallel to so to the switch both sides of signals collecting interface, if signals collecting interface is normally closed node, control line can be connected with the switch of signals collecting interface so, thus input simulating signal.
In above-mentioned arbitrary embodiment, also can make the bridge interface of Vehicle Controller directly be connected with actual bridge, and in testing apparatus, input train status information simultaneously, like this can the reflection of test carriage set controller under two paths of signals, can certainly in testing apparatus, input two paths of signals simultaneously.
The test instruction that is input to testing apparatus can comprise: the value that drainage pattern selects lifting/lowering level, AR button, the instruction of left/right door switch button, mode switch also to want the fault arranging on acquisition software interface to inject in EUM position, ATO start button etc., this sample value has: pilothouse activations, vehicle integrality, vehicle door status, ACK button, traction are excised, vehicle is implemented brake hard, car door license button, maintenance are braked and implemented, controller state etc.
Based on identical design, it is a kind of for Vehicle Controller is carried out to fault test that the embodiment of the present invention two also provides, and as shown in Figure 2, described equipment comprises:
Human-computer interaction module 201, for receiving the test instruction of user's input;
Emulation module 202, generates corresponding simulating signal for the test instruction receiving according to described human-computer interaction module 202;
Sending module 203, for being input to described simulating signal according to the type of described test instruction the corresponding interface of Vehicle Controller.
The sending module 203 here, can be PCI board, and this PCI board comprises digital data acquisition card, digital quantity driver card, analog acquisition card three parts.The digital quantity that the collection of digital data acquisition card is transmitted from Vehicle Controller, the analog quantity that the collection of analog acquisition card is transmitted from Vehicle Controller, digital quantity driver card is used for realizing to Vehicle Controller and drives digital quantity signal.
Preferably, emulation module 202, while being Train Control instruction for the test instruction receiving at human-computer interaction module 201, generates corresponding Train Control signal according to described Train Control instruction;
Sending module, while being Train Control signal for the simulating signal generating at described emulation module, is input to described Train Control signal the bridge interface of described Vehicle Controller.
Preferably, emulation module 202, while being train status parameter for the test instruction receiving at human-computer interaction module 201, generates corresponding state simulation signal according to described train status parameter;
Sending module 203, while being Train Control signal for the simulating signal generating at emulation module 202, is input in described Vehicle Controller described state simulation signal for gathering the state acquisition interface of described train status parameter.
Preferably, emulation module 202, while being fault simulation instruction for the test instruction receiving at described human-computer interaction module 201, generates corresponding Trouble Report information according to described fault simulation instruction;
Sending module, while being Trouble Report information for the simulating signal generating at emulation module 202, by described Trouble Report input information in described Vehicle Controller for gathering the interface of described Trouble Report information.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, do not departing under the prerequisite of the technology of the present invention principle; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.