Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Fig. 1 is the flow chart of the conformance test method embodiment one of air-ground communications systems of the present invention, and as shown in the figure, this method comprises the steps:
Step 101 is according to the test command message generation test frame of user's input.
Particularly, test command message can show that this user will test or carry out manual test automatically, below will describe respectively by method embodiment two, three.
Step 102 sends to system under test (SUT) with described test frame.
Particularly, can earlier described test frame be sent to the transmission buffer queue; Consensus standard data according to VDL M2 are encapsulated as test packet with the test frame in the described transmission buffer queue then, guarantee that the test frame that generates meets the consensus standard requirement of VDL M2 fully; At last described test packet is sent to described system under test (SUT) through bottom communication equipment.
In addition, when the transmission of described test packet is failed, can before default timing is overtime, retransmit described test packet at interval repeatedly with certain hour, if still do not receive Echo Frame, then can after described timing is overtime, send error message, and described error message is added in the described test result, showing that system under test (SUT) do not receive or do not have the response test packet, thereby cause test crash.Wherein, can record information such as the number of times of repeating transmission and overtime situation in the described test result.
Step 103, reception comes from the Echo Frame of described system under test (SUT), and resolves described Echo Frame, obtains test result.
Particularly, can resolve described Echo Frame and obtain analysis result according to the consensus standard data of VDL M2, then according to described test frame, described analysis result and described VDL M2 consensus standard data, obtain test result.
Alternatively, can in the test process of above-mentioned each step, show the test process information in the test process in real time, as: intermediate object program, first floor system parameter and final test result, so that the system manager can in time understand the progress situation of test process, so that fault location reason.
Step 104 after test is finished, generates test report according to described test result.
In order to preserve test record as subsequent reference by the form of test report, also can carry out subsequent analysis and handle.
This implements described system by sending test frame to system under test (SUT), and the consistency of testing system under test (SUT) according to the Echo Frame situation of system under test (SUT), thereby realized the uniformity test of VDL M2 air-ground communications systems, can finish whole test functions, test is comprehensive, thus the truth that can test system under test (SUT); And do not need system under test (SUT) is transformed, therefore convenient feasible.
Fig. 2 is the flow chart of the conformance test method embodiment two of air-ground communications systems of the present invention, and as shown in the figure, this method comprises the steps:
Step 201, the test item of selecting according to the user generates the test command collection.
Particularly, can generate described test command collection according to the test item of user's selection and the consensus standard data of VDL M2, to guarantee that the test command energy collecting that generates enough meets the consensus standard requirement of VDL M2, thereby guarantee that tested VDL M2 air-ground communications systems meets the consensus standard requirement of VDL M2, thereby can communicate by letter normally between the VDL M2 air-ground communications systems that further guarantees to develop by the different developers after the test.And, in actual applications, can generate the full test set of described test command collection according to all accord normal data of described whole test items and described VDL M2; Perhaps, according to the part consensus standard data of described partial test item and described VDL M2, generate the branch test set of described test command collection.
Step 202 generates test frame according to described test command collection.
Particularly, can generate described test frame according to the consensus standard data of described test command collection and VDL M2.
Step 203 sends to system under test (SUT) with described test frame.
Particularly, can earlier described test frame be sent to the transmission buffer queue; Consensus standard data according to VDL M2 are encapsulated as test packet with the test frame in the described transmission buffer queue then; At last described test packet is sent to described system under test (SUT) through bottom communication equipment.
In addition, when the transmission of described test packet is failed, can before default timing is overtime, retransmit described test packet at interval repeatedly according to certain hour, if still do not receive Echo Frame, when after described timing is overtime, sends error message, and described error message is added in the described test result, showing that system under test (SUT) do not receive or do not have the response test packet, thereby cause test crash.Wherein, can record information such as the number of times of repeating transmission and overtime situation in the described test result.
Step 204, reception comes from the Echo Frame of described system under test (SUT), and resolves described Echo Frame, obtains test result.
Particularly, can resolve described Echo Frame and obtain analysis result according to the consensus standard data of VDL M2, then according to described test frame, described analysis result, timer then situation and described VDL M2 consensus standard data, obtain test result.
Alternatively, show intermediate object program, first floor system parameter and final test result in the test process in can the test process of above-mentioned each step in real time, so that the system manager can be timely the progress situation of angular measurement examination process so that the fault location reason.
Step 205 after test is finished, generates test report according to described test result.
In order to preserve test record as subsequent reference by the form of test report, also can carry out subsequent analysis and handle.
This is implemented described method and has realized user-selected test item is tested automatically, and test is comprehensive, and convenient feasible.
Fig. 3 is the flow chart of the conformance test method embodiment three of air-ground communications systems of the present invention, and as shown in the figure, this method comprises the steps:
Step 301, the test parameter of manually importing according to the user generates test frame.
Wherein, the described user manually test parameter of input be the user according to the manual content of the test frame of setting of specific demand, comprises information such as address field, control domain, information field and length.By this step, the user can import the test parameter that it is concerned about by user interface, thereby generates corresponding test frame, is used for testing at specific test parameter.
Step 302 sends to system under test (SUT) with described test frame.
Particularly, can earlier described test frame be sent to the transmission buffer queue; Consensus standard data according to VDL M2 are encapsulated as test packet with the test frame in the described transmission buffer queue then; At last described test packet is sent to described system under test (SUT) through bottom communication equipment.
In addition, when the transmission of described test packet is failed, can before default timing is overtime, retransmit described test packet at interval repeatedly by certain hour, if still do not receive Echo Frame, when after described timing is overtime, send error message, do not receive or do not have the response test packet to show system under test (SUT), thereby cause test crash.
Step 303, reception comes from the Echo Frame of described system under test (SUT), and resolves described Echo Frame, obtains test result.
Particularly, can resolve described Echo Frame and obtain analysis result according to the consensus standard data of VDL M2, then according to described test frame, described analysis result, timer then situation and described VDL M2 consensus standard data, obtain test result.
Alternatively, show intermediate object program, first floor system parameter and final test result in the test process in can the test process of above-mentioned each step in real time, so that the system manager can be timely the progress situation of angular measurement examination process so that the fault location reason.
Step 304 after test is finished, generates test report according to described test result.
In order to preserve test record as subsequent reference by the form of test report, also can carry out subsequent analysis and handle.
The described method of present embodiment generates test frame by the test parameter of manually input, realized the conforming manual test to the VDLM2 air-ground communications systems, what the user can revise test frame arbitrarily comprises test parameters such as control domain and information field, thereby can satisfy user's special testing requirement, therefore have favorable expansibility.
Fig. 4 is the structural representation of the conformance test method embodiment of air-ground communications systems of the present invention, and as shown in the figure, this system comprises at least: testing execution module 10 and data transmit-receive module 20, and its operation principle is as follows:
Testing execution module 10 generates test frame according to the test command message of user's input; Particularly, test command message can show that this user will test or carry out manual test automatically, below will describe respectively.After this, data transmit-receive module 20 sends to the described test frame of testing execution module 10 generations system under test (SUT) and receives the Echo Frame that comes from described system under test (SUT); Then, resolve described Echo Frame by described testing execution module 10, obtain test result.
Particularly, this system can further include: protocol core module 30, kernel control module 40 and bottom communication equipment 50.Wherein, the inside of protocol core module 30 is integrated with the consensus standard data of whole VDL M2; As shown in Figure 5, in the time will sending test frame, can be earlier will come from the test frame that testing execution module 10 generates by the data transmit-receive control unit 41 in the kernel control module 40 and send to the transmission buffer queue; According to the consensus standard data of described VDL M2 the test frame in the described transmission buffer queue is encapsulated as test packet by the data transmission unit 21 in the data transmit-receive module shown in Figure 6 20 then; At last described test packet is sent to described system under test (SUT) through bottom communication equipment 50.
After reception comes from the Echo Frame of described system under test (SUT), data receiving element 22 in the data transmit-receive module 20 shown in Figure 6 carries out deblocking according to the consensus standard data of the described VDL M2 in the protocol core module 30 to the response data in the reception buffer queue of described bottom communication equipment 50, to guarantee that the deblocking process can meet the consensus standard requirement of VDL M2, to obtain described Echo Frame; Echo Frame resolution unit 11 in the testing execution module 10 shown in Figure 7 is resolved described Echo Frame and is obtained analysis result according to the consensus standard data of described VDL M2; By the consensus standard data of test result generation unit 12 according to described test frame, described analysis result and described VDL M2, obtain test result then.And, can in system, set up test report generation module 70, generate test report according to described test result, in order to preserve test record as subsequent reference by the form of test report, also can carry out subsequent analysis and handle.
In addition, as shown in Figure 4, this system can further include timer module 60, when the transmission of described test packet is failed, described data transmission unit can be retransmitted described test packet by certain hour at interval repeatedly before the timing that timer module 60 is set is overtime, if still do not receive Echo Frame, then can be after the described timing that timer module 60 is set be overtime, send error message to described kernel control module, showing that system under test (SUT) do not receive or do not have the response test packet, thereby cause test crash.
This implements described system by sending test frame to system under test (SUT), and the consistency of testing system under test (SUT) according to the Echo Frame situation of system under test (SUT), thereby realized the uniformity test of VDL M2 air-ground communications systems, can finish whole test functions, test is comprehensive, thus the truth that can test system under test (SUT); And do not need system under test (SUT) is transformed, therefore convenient feasible.
In addition, at different test command message, this implements described system can test or carry out manual test automatically, and at different test modes, the generating mode of test frame also can be different, specifies as follows:
When described test command message shows will test automatically the time, described system also comprises subscriber interface module 80, test function selected cell 81 in this subscriber interface module 80 shown in Figure 8 shows alternative test item to the user, and the test item that described user is selected sends to described kernel control module 40; After this, the unit of testing and controlling 42 in the kernel control module 40 shown in Figure 5 is according to the consensus standard data of described VDL M2 and come from the test item of described test function selected cell 81, generates the test command collection; Generate described test frame by the test frame generation unit 13 in the testing execution module 10 shown in Figure 7 according to the normal data of described test command collection and described VDL M2 then; After this, will come from the test frame that test frame generation unit 13 generates by the data transmit-receive control unit 41 of kernel control module 40 shown in Figure 5 and send to the transmission buffer queue, to continue above-mentioned follow-up test process.Thereby realized user-selected test item is tested automatically, test is comprehensive, and convenient feasible.
When described test command message shows will carry out manual test the time, frame in the subscriber interface module 80 shown in Figure 8 arranges unit 82 and generates test frame according to the test parameter that the user manually imports, the wherein said user manually test parameter of input be the user according to the manual content of the test frame of setting of specific demand, comprises information such as address field, control domain, information field and length; After this, will come from frame by the data transmit-receive control unit 41 of kernel control module 40 shown in Figure 5 and the test frame that unit 82 generates is set sends to the transmission buffer queue, to continue above-mentioned follow-up test process.
The described system of present embodiment generates test frame by the test parameter of manually input, realized the conforming manual test to the VDLM2 air-ground communications systems, what the user can revise test frame arbitrarily comprises test parameters such as control domain and information field, thereby can satisfy user's special testing requirement, therefore have favorable expansibility.
In addition, the indicative control unit 43 in the kernel control module 40 shown in Figure 5 can send to described subscriber interface module 80 with the described test result that test result generation unit 12 obtains; And shown the described test result that comes from described kernel control module by the test display unit 83 in the subscriber interface module 80 shown in Figure 8.Particularly, can in the implementation of above-mentioned each module, show intermediate object program, first floor system parameter and final test result in the test process in real time, so that the system manager can be timely the progress situation of angular measurement examination process so that the fault location reason.
In addition, parameter setting and display unit 84 can also be set in this subscriber interface module 80, be used for the bottom parameter is set, obtain and show the bottom parameter; When the user arranges parameter command, with set parameter and order is set sends to kernel control module 40 and handle; When the display parameters order of receiving kernel control module 40 and parameter to be shown, show the bottom parameter in real time.
In addition, as shown in Figure 5, in the kernel control module 40 bottom dispensing unit 44 can also be set, be used for startup, the initialization of system, the startup of underlying device, parameter configuration and obtain, system closing, and underlying device is closed; After system started, each module of initialization system started underlying device, and the allocating default parameter; Receive the parameter configuration order that subscriber interface module 80 is sent, the relevant parameter of configuration bottom communication equipment 50; What receive that subscriber interface module 80 sends obtains the bottom parameter request, obtains relevant parameter from underlying device, transfers to subscriber interface module 80 and shows; When system closing, each module of shutdown system is closed bottom communication equipment.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment puts down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.