Summary of the invention
In view of this, need provide a kind of roaming function test system, be used for the roaming function of automatic test mobile communications device, and testing efficiency be higher.
In addition, also need provide a kind of roaming function testing apparatus, be used for the roaming function of automatic test mobile communications device, and testing efficiency be higher.
In addition, also need provide a kind of roaming function method of testing, be used for the roaming function of automatic test mobile communications device, and testing efficiency be higher.
A kind of roaming function test system be used for the roaming function of test mobile communications device, but but it comprises the first program attenuator, the second program attenuator, first base station, second base station and roaming function testing apparatus.But first base station and second base station are used for communicating by letter with mobile communication equipment respectively with the first program attenuator and second but the program attenuator is corresponding links to each other.But but the roaming function testing apparatus links to each other with the first program attenuator, the second program attenuator, first base station and second base station, but be used to control the decay of the first program attenuator, but the second program attenuator increases, and judges whether the roaming function of mobile communication equipment is normal.
A kind of roaming function testing apparatus is used for roaming function test system.This roaming function testing apparatus comprises testing setup module, control module and judge module.The testing setup module is used to carry out test data to be set, and comprising: user interface is used to receive the test data of user's input, and described test data comprises configuration data, context data and test event data; Store submodule and link to each other, be used for the test data of stored user input with described user interface; The scanning submodule links to each other with described user interface and described storage submodule, and whether be used to scan described configuration data correct; And confirm that submodule links to each other with described user interface, described storage submodule and described scanning submodule, be used to confirm whether described test data is set finishes.Control module links to each other with the testing setup module, but is used for according to the decay of the test data control first program attenuator, but the second program attenuator increases.Judge module links to each other with testing setup module and control module, is used to judge whether the roaming function of mobile communication equipment is normal, and produces test report.
A kind of roaming function method of testing, whether the roaming function that is used for test mobile communications device is normal, and it comprises: receive and configurations shown data and context data, and described configuration data and described context data are stored to the storage submodule; Whether scan the stored configuration data of described storage submodule correct; If described configuration data is correct, then receive the test event data of user's input; Confirm whether described configuration data, context data and test event data are set and finish; Finish if set, but according to configuration data, context data and the decay of the test event Data Control first program attenuator, but the second program attenuator increases; And detect and in Preset Time, whether can communicate by letter with first base station or second base station, thereby whether the roaming function of judging mobile communication equipment is normal, and produce test report.
Utilize above-mentioned roaming function test system, device and method, not only can improve the testing efficiency of roaming function, more can save testing time and manpower.
Embodiment
See also Fig. 1, be depicted as the Organization Chart of roaming function test system 10 in an embodiment of the present invention.In the present embodiment, roaming function test system 10 is used for the roaming function of test mobile communications device 80, but but it comprises the first program attenuator 30, the second program attenuator 40, first base station 50 and second base station 60.In another embodiment of the present invention, roaming function test system 10 also can be used for testing a plurality of mobile communication equipments 80.
But the first program attenuator 30 comprises the first input end 32 and first output 34, but the second program attenuator 40 comprises second input 42 and second output 44.But first base station 50 links to each other with the first program attenuator 30, but second base station 60 link to each other with the second program attenuator 40, first base station 50 all is used for communicating by letter with mobile communication equipment 80 with second base station 60.In the present embodiment, first base station 50 comprises that first body 52 and first antenna, 54, the second base stations 60 comprise second body 62 and second antenna 64.But first body 52 connects the first input end 32 of the first program attenuator 30, but first antenna 54 connects first output 34 of the first program attenuator 30; But second body 62 connects second input 42 of the second program attenuator 40, but second antenna 64 connects second output 44 of the second program attenuator 40.Wherein, mobile communication equipment 80 is in the common coverage of first base station 50 and second base station 60.
But but roaming function testing apparatus 20 links to each other with the first program attenuator 30, the second program attenuator 40, first base station 50 and second base station 60, but but be used to control 30 decay of the first program attenuator and 40 increases of the second program attenuator, and judge whether the roaming function of mobile communication equipment 80 is normal.In the present embodiment, roaming function testing apparatus 20 is a computer, and it comprises general service interface bus (General PurposeInterface Bus, GPIB) control card 22 and network interface card 24.But but the first program attenuator 30 and the second program attenuator 40 are connected to the GPIB control card 22 of roaming function testing apparatus 20 respectively by the GPIB cable.
Roaming function test system 10 further comprises hub 70.Hub 70 links to each other with roaming function testing apparatus 20 by this network interface card 24, and is connected to first base station 50 and second base station 60 by netting twine respectively.
Figure 2 shows that the module map of roaming function testing apparatus 20 in an embodiment of the present invention.In the present embodiment, roaming function testing apparatus 20 comprises testing setup module 200, control module 210 and judge module 220.Roaming function testing apparatus 20 can be desktop PC, mobile computer or other electronic installation.Testing setup module 200 is used to carry out test data to be set, and wherein test data comprises configuration data, context data and test event data.Configuration data comprise roaming function testing apparatus 20 Internet Protocol (Internet Protocol, IP) address, but but the GPIB address of the first program attenuator 30 and the second program attenuator 40, and the IP address of first base station 50 and second base station 60.But but the test event data comprise the initial value and the end value of testing time, roaming time, the first program attenuator 30 and the second program attenuator 40.Context data is set and is meant the mobile communication equipment 80 that selection need be tested.In the present embodiment, roaming time can be set at 30 seconds.
Testing setup module 200 comprises user interface 202, stores submodule 204, scans submodule 206 and confirms submodule 208.User interface 202 is used to receive the test data of user's input, and test data is stored to storage submodule 204.In the present embodiment, user interface 202 is a graphical user interface, but the test data of its explicit user input.Scanning submodule 206 links to each other with user interface 202 and storage submodule 204, whether whether it is correct to be used to scan the configuration data that stores the stored test data of submodule 204, but but promptly scan the configuration data related first program attenuator 30, the second program attenuator 40, first base station 50 and second base station 60 and be communicated with roaming function testing apparatus 20.Confirm submodule 208 and user interface 202, store submodule 204 and scanning submodule 206 links to each other, be used to confirm whether test data is set finishes.
Control module 210 links to each other with testing setup module 200, but is used for according to the decay of this test event Data Control first program attenuator 30, but and controls the second program attenuator 40 and increase.In the present embodiment, but but but control module 210 is controlled 30 decay of the first program attenuator according to the roaming time of test event data and the initial value and the end value of the first program attenuator 30 and the second program attenuator 40, but the control second program attenuator 40 increases.In another embodiment of the present invention, but the also may command first program attenuator 30 increases of control module 210, but 40 decay of the control second program attenuator.
Judge module 220 links to each other with testing setup module 200 and control module 210, is used to judge whether the roaming function of mobile communication equipment 80 is normal, and produces test report.In the present embodiment, whether can communicate by letter in the judge module 220 detecting Preset Times with first base station 50 or second base station 60, thereby whether the roaming function of judging mobile communication equipment 80 is normal, and in the Preset Time if can communicate by letter with first base station 50 or second base station 60 time, obtain the MAC Address of mobile communication equipment 80 from first base station 50 or second base station 60.Test report comprises testing time, but but whether the initial value of the first program attenuator 30 and the second program attenuator 40 and end value, roaming time and each test be successful.Judge module 220 can be used for also judging whether roaming time finishes.
The MAC Address of the mobile communication equipment 80 that user interface 202 also can be used for showing that test report and judge module 220 are obtained.
Roaming function testing apparatus 20 also comprises testing time judge module 230, link to each other with judge module 220 and testing setup module 200, the testing time that is used for judging roaming function test system 10 is the testing time whether testing time of roaming function testing apparatus 20 equals the test event data.
After testing setup module 200 setting test datas are finished, but the control module 210 of roaming function testing apparatus 20 begins to decay to 0dB from 100dB by the GPIB cable control first program attenuator 30, but the second program attenuator 40 begins to increase to 100dB from 0dB.When roaming time begins, but the first program attenuator 30 begins decay, but when the second program attenuator 40 began to increase, judge module 220 began promptly to judge whether the roaming function of mobile communication equipment 80 is normal.After roaming time finished, judge module 220 promptly produced test report, and user interface 202 shows test report.Testing time judge module 230 judges whether the testing time of roaming function test system 10 equals the testing time in the test event data then.
In roaming time, judge module 220 sends detection signal to the first base station 50 and second base station 60, if in Preset Time, receive response signal from first base station 50 or second base station 60, then obtain the MAC Address of mobile communication equipment 80 from first base station 50 or second base station 60, this moment, the roaming function of mobile communication equipment 80 was normal.If judge module 220 does not receive response signal from first base station 50 and second base station 60 in Preset Time, illustrate that then the roaming function of mobile communication equipment 80 is undesired.In the present embodiment, this Preset Time is 3 seconds.In roaming time, judge module 220 only with first base station 50 and second base station 60 in one communicate by letter, but promptly for example decay to 50dB from 100dB when the first program attenuator 30, but the second program attenuator 40 increased to from 0dB in the period of 50dB, and judge module 220 only can receive response signal from first base station 50; But decay to 0dB from 50dB and work as the first program attenuator 30, but the second program attenuator 40 increases in the period of 100dB from 50dB, judge module 220 only can receive response signal from second base station 60, thereby can simulate mobile communication equipment 80 roams into second base station 60 from the coverage of first base station 50 coverage.
Figure 3 shows that the flow chart of roaming function method of testing in an embodiment of the present invention.At step S300, the testing setup module 200 of roaming function testing apparatus 20 is carried out test data and is set.At step S302, but control module 210 is controlled 30 decay of the first program attenuator according to test data, but the second program attenuator 40 increases.Vice versa.So, though mobile communication equipment 80 does not move, still can simulate mobile communication equipment 80 and roam into second base station 60 from first base station 50.At step S304, whether judge module 230 detectings can communicate by letter with first base station 50 or second base station 60 in Preset Time, thereby whether the roaming function of judging mobile communication equipment 80 is normal, and produce test report.At step S306, user interface 202 shows test report.
Figure 4 shows that the flow chart of roaming function method of testing in another execution mode of the present invention.At step S400, user interface 202 receives and configurations shown data and context data, and configuration data and context data are stored to storage submodule 204.But but configuration data comprises the GPIB address of IP address, the first program attenuator 30 and the second program attenuator 40 of roaming function testing apparatus 20 and the IP address of first base station 50 and second base station 60.
At step S402, whether whether the scanning of scanning submodule 206 stores the stored configuration data of submodule 204 correct, but but promptly scan the first program attenuator 30, the second program attenuator 40, first base station 50 and second base station 60 and be communicated with roaming function testing apparatus 20.If incorrect, then get back to step S400, so that the user re-enters configuration data.
If configuration data is correct, enter step S404, user interface 202 receives the test event data of user's input.But but the test event data comprise the initial value and the end value of testing time, roaming time, the first program attenuator 30 and the second program attenuator 40.
At step S406, whether affirmation submodule 208 affirmation test datas are set and are finished.Do not finish if set, then get back to step S400.
If set and to finish, enter step S408, but control module 210 according to 30 decay of the test event Data Control first program attenuator, but and control the second program attenuator 40 and increase.In the present embodiment, but the control module 210 controls first program attenuator 30 decays to 0dB from 100dB in roaming time, but the control second program attenuator is increased to 100dB from 0dB in roaming time.
At step S410, in roaming time, judge module 220 sends detection signal to the first base station 50 and second base station 60.At step S412, judge module 220 judges whether to receive response signal from first base station 50 or second base station 60 in Preset Time, thereby whether the roaming function of judging mobile communication equipment 80 is normal.
If judge module 230 receives response signal from first base station 50 or second base station 60 in Preset Time, then the roaming function of mobile communication equipment 80 is normal.If judge module 220 does not receive response signal from first base station 50 and second base station 60 in Preset Time, illustrate that then the roaming function of mobile communication equipment 80 is undesired.
If judge module 230 receives response signal from first base station 50 or second base station 60 in Preset Time, enter step S414, judge module 230 obtains the MAC Address of mobile communication equipment 80 from first base station 50 or second base station 60, and shows the MAC Address of mobile communication equipment 80 on user interface 202.
At step S416, judge module 230 judges whether roaming time finishes.If do not finish, then get back to step S410.
If roaming time finishes, then at step S418, judge module 230 produces test report.But but test report comprises whether success of the initial value of testing time, the first program attenuator 30 and the second program attenuator 40 and end value, roaming time and this time test.
At step S420, user interface 202 shows test report.
If judge module 230 does not receive response signal from first base station 50 or second base station 60 in Preset Time, then directly enter step S418, produce test report.
At step S422, test time is stated judge module 230 and is judged whether the testing time of roaming function test system 10 equals the testing time in the test event data.If equal, then whole testing process finishes.If be not equal to, then get back to step S406.
Utilize roaming function test system 10 of the present invention, not only can improve the testing efficiency of roaming function, more can save testing time and manpower.