Embodiment
With reference to accompanying drawing, specify embodiment of the present invention below.
The present invention relates to the program controlled switch technology of the communication technology, relate to the apparatus and method of the simulation Bulk Call test that is applied to the test of QBOX (HomeBox) business platform specifically.
Can see from Fig. 1 PHS cordless service platform simulation Bulk Call testing apparatus structural representation; Simulating test device is divided into test background and test foreground two parts; Test foreground and test background are used the ICP/IP protocol communication based on Ethernet; Test background has realized the man-machine interface that test parameter is provided with; Can select to register/nullify numbers of calling and called parties that generic operation or incoming call/exhalation generic operation type, setting need, set the duration of a call time, test operation is carried out start and stop, test result is sent to the backstage in real time and adds up and show from the test foreground.
The test foreground receives initiates test call according to the control logic that designs behind the test parameter that the backstage is provided with and detects, and obtains reporting after the test result.The test foreground is connected with digital junction with system under test (SUT), and digital junction is divided into I, II is used to simulate fixed switch and PHS network both direction for two groups respectively.Networking behind the employing testing apparatus is compared with the networking in the practical application of Fig. 2, has saved the PHS network equipment, fixed line stored-program control exchange and test terminal.
Bulk Call testing apparatus of the present invention is used to test PHS cordless service platform.This device comprises test foreground and test background two parts.Test background is used to provide the operation interface of test setting, receives and show to test the result data that the foreground is returned.The test foreground is used to receive the test parameter that the backstage is set, and the interface that is connected with equipment under test is provided, and accomplishes test process according to the control logic of setting.Adopt Ethernet to connect between test background and the test foreground, the test foreground adopts digital junction to be connected with tested PHS cordless service platform equipment room.
The test way can dispose arbitrarily according to testing requirement, and maximum works the repeat circuit number restriction of exhaling between several only tested person devices and system to be tested simultaneously.
Simulation Bulk Call test for PHS cordless service platform; Its basic skills is to utilize the testing apparatus pseudo-terminal and make a call with the network equipment of business platform interface; Follow rules specific according to test event direction, the numbers of calling and called parties that makes a call under the program control that do not coexist; And, specifically comprise the test of following seven kinds of operations respectively in follow-up detection or the operation of analog answer speech channel continuity test of carrying out response signal:
(1) QBOX base registration.
(2) the QBOX base is nullified.
(3) QBOX handset registration.
(4) the QBOX handset is nullified.
(5) QBOX handset shutdown.
(6) QBOX handset private network goes out to exhale.
(7) QBOX handset private network goes into to exhale.
Difference according to testing apparatus flow process when implementing test call mainly is divided into two big types:
At first be registration/cancellation type (power-off operation also is nullify a kind of for business platform reality) operation, 1,2,3,4,5 above operation all belongs to this type.The characteristic of this type of calling is; Make a call through the fixed network switch by the QBOX fixed phone terminal; Called number requires to meet specific form; Calling is sent to PHS cordless service platform, after the platform processes to the terminal return different double-audio signals (can infer platform device improve or be out of shape after also possibly return other signals such as FSK, testing apparatus only need increase corresponding collection of letters module can be handled) expression operates successfully or fails.If use test device pseudo-terminal and this type of test call of fixed line switch initiation can not form the analog call device and work the loop of exhaling to the termination of analog call device.
As shown in Figure 3, the Bulk Call testing apparatus mainly may further comprise the steps when such is called out in simulation:
S302, it is registration/cancellation class testing that test background is provided with type of call.
S304, the information that is provided with is loaded into the test foreground from test background when starting test.
S306; The test foreground makes a call according to the called number of setting (form is explained after a while); Fixed network switch in the replacement true environment will be called out through digital junction and deliver to tested business platform, begin to detect the double-audio signal that PHS cordless service platform returns simultaneously.
S308 if detect into function signal then report success, detects failure signal and then reports failure.Not detecting the expection signal in the certain hour then reports overtime.
S310 discharges this calling.
The called number that above S306 makes a call need meet specific forms, as follows:
The called number that QBOX base registration operation is corresponding: access code+base registration operation code+QBOX base sequence number (be HomeBoxID, form is 14 8 system numerals).
The QBOX base is nullified the corresponding called number of operation: access code+base is nullified command code+QBOX base sequence number.
The corresponding called number of QBOX handset registration operation: access code+handset registration command code+QBOX handset sequence number (being that the PSID form is the 10 systems numeral of 7-12 position).
The QBOX handset is nullified the corresponding called number of operation: access code+handset is nullified command code+QBOX handset sequence number.
The called number that QBOX handset power-off operation is corresponding: access code+handset power-off operation sign indicating number+QBOX handset sequence number.
Second type is incoming call/exhalation generic operation, comprises aforementioned 6,7 operations.The characteristic of this type of calling is to be risen by the PHS network equipment or fixed line switch to exhale, and called number is followed specific form, calls out and is sent to PHS cordless service platform, returns to the fixed line switch or the PHS network equipment to calling again after the platform processes.If use test device pseudo-terminal, the PHS network equipment and fixed line switch carry out test call, then can form by the analog call device and work the loop of exhaling to the termination of analog call device.
As shown in Figure 4, the Bulk Call testing apparatus mainly may further comprise the steps when the simulation private network is breathed out:
S402, it is incoming call/exhalation class testing that test background is provided with type of call.
S404, the information that is provided with is loaded into the test foreground from test background when starting test.
S406; The test foreground makes a call according to called number (form is explained after a while) simulation QBOX base and the fixed network switch set; Calling is after PHS cordless service platform is handled; Called number is the real called party number after deciphering, and calling number changes the number of well-informed handset into, returns to simultaneously also at the testing apparatus of simulating the PHS network equipment again.
S408, test foreground simulation off-hook, calling both sides detects loop, reported result.
S410 discharges this calling.
The called number that above S406 makes a call need meet specific forms, as follows:
The QBOX handset private network corresponding called number of operation of breathing out: access code+go out the to exhale called number of command code+extension number (2 ten's digits of 01-99)+encryption.
About encrypting the explanation of called number: handling for called number when handset uses PHS cordless service to go out to exhale through base has an end side to be encrypted to the process that business platform is decoded again---and the QBOX base uses and carries out computing as self uniquely identified base sequence number according to AES and real called party number and draw and encrypt called number and see off, and business platform is received behind the called number of encryption according to when base register, decoding real called number with regard to the base sequence number employing inverse algorithm of having noted.This just requires testing apparatus to simulate to exhale, and test sees off also is encrypted called number.Here; When we adopt simulation base registration operation the base sequence number of need registration is planned the method for using the specific number section; Use this specific sequence number section can make the called number encrypted result identical with actual called number; Directly get final product when testing apparatus is set called number so, simplify and also be convenient to test operation when handling according to called the filling in of reality.Certainly infer,, also can address this problem if increase serial number data storehouse and number encrypting module.
As shown in Figure 5, the Bulk Call testing apparatus mainly may further comprise the steps when the incoming call of simulation private network:
S502, it is incoming call/exhalation class testing that test background is provided with type of call.
S504, the information that is provided with is loaded into the test foreground from test background when starting test.
S506; The test foreground makes a call according to called number (form is explained after a while) the simulation QBOX handset and the PHS network equipment set; Calling is after PHS cordless service platform is handled; Called number changes the number of the well-informed base of handset ownership into, and calling number is the form of calling number+separator+extension number, returns to simultaneously at the testing apparatus of simulating the fixed network switch again.
S508, test foreground simulation off-hook, calling both sides detects loop, reported result.
S510 discharges this calling.
More than the 3rd called number that make a call of step need meet specific forms, as follows:
The called number that QBOX handset private network call-in operation is corresponding: access code+QBOX handset number.
Describe the flow process of Register Cancel test in detail below with reference to Fig. 6.Use analogue means to register/nullify the generic operation test and need on the test background man-machine interface, select the Register Cancel test-types, start test after the setting numbers of calling and called parties, the information of setting is loaded into the test foreground.Testing apparatus emulation terminal and fixed line switch one side are initiated test call from relaying group I, call out to deliver to and finish after tested business platform detects its response, describe like Fig. 6 registration/cancellation class testing call flows figure:
Step S6-100, testing apparatus are in initial idle condition;
Take relaying and connect appointment caller time slot circuit, step S6-101 after receiving the test sign on;
Called number according to setting makes a call, step S6-102, and the fixed network switch in the replacement true environment will be called out through digital junction and deliver to tested business platform;
The called number that makes a call is respectively according to the action type difference:
The called number that QBOX base registration operation is corresponding: 11844+1+ QBOX base sequence number; It (is HomeBoxID that this sequence number is got the xxxxxxxxxx0001-xxxxxxxxxxx0999 section; Form is 14 8 system numerals), xxxxxxxxxx is a string particular number string related with AES.After using the registration of this sequence number section simulation base, after when stating simulation handset private network and breathing out, the called number encrypted result below 10 bit digital is consistent with physical number, simplification flow process handled easily when satisfying testing requirement.
The QBOX base is nullified the corresponding called number of operation: 11844+6+ QBOX base sequence number.
The corresponding called number of QBOX handset registration operation: 11844+2+ QBOX handset sequence number (be PSID, form is the 10 systems numeral of 7-12 position).
The QBOX handset is nullified the corresponding called number of operation: 11844+3+ QBOX handset sequence number.
The called number that QBOX handset power-off operation is corresponding: 11844+8+ QBOX handset sequence number.
Step S6-103, the signalization sound detects timer;
The comfort tone of moving into detects attitude, step S6-200;
Then possibly have four kinds of situation:
Before step S6-201A, signal tone detect the timer end, receive successfully double-audio signal sound 88888888 (promptly judging successfully more than 8), then report success to count and reported result step S6-202 subsequently as long as reality detects three;
Before step S6-201B, signal tone detect the timer end, receive failure double-audio signal sound 11111111 (promptly judging failure more than 1), count also reported result, step S6-203 according to failure cause subsequently as long as reality detects three;
Step S6-201C, signal tone detect timer to be finished, and does not receive significant response, counts and reported result step S6-203 subsequently according to failure cause;
Before step S6-201D, signal tone detected the timer end, circuit was released, and counted and reported result step S6-203 subsequently according to failure cause;
More than all four kinds of situation all need execution in step S6-204 call release again;
Turn back to the Idle state of step S6-100 at last.
When using analogue means to carry out the test of private network outgoing call, need on the test background man-machine interface, select incoming call exhalation test-types, start test after the setting numbers of calling and called parties, the information that more than is provided with is loaded into the test foreground.Testing apparatus emulation terminal and fixed line switch one side are initiated test call from relaying group I; Called number is the actual called number that cries of dialling; Calling deliver to tested business platform after treatment calling number change the number of well-informed handset into, be recycled to testing apparatus from relaying group I once more, testing apparatus simulation off-hook; Calling both sides detects loop, reported result call release.From the concrete handling process of testing apparatus, this test process is divided into Calling Side and two parts of callee side are handled respectively.The processing of Calling Side, step such as Fig. 7:
Step S7-100, the testing apparatus Calling Side is in initial idle condition;
Step S7-101 receives that test takies relaying after the sign on and connects to specify caller time slot circuit;
Step S7-102 makes a call according to the called number of setting, and QBOX base in the replacement true environment and fixed network switch will be called out through digital junction and deliver to tested business platform;
The called number form that QBOX handset private network is breathed out is: the called number of 11844+0+ extension number (2 ten's digits of 01-99)+encryption.In aforementioned base registration operation explanation, speak of, because the base sequence number of registration operation has been done special processing, so the called number of encrypting is identical with actual called number here.Get final product by called the filling in of reality when testing apparatus is provided with called number like this, need not to consider again cryptography issue.
Step S7-103 is provided with and waits for the called party answer timer;
Step S7-200 moves into and waits for the called party answer attitude;
Then possibly have three kinds of situation:
Step S7-201A waits for that the called party answer timer finishes preceding called party answer, then continues and the called continuity test (step S7-202) that carries out, and test result is write down and report (step S7-203);
Step S7-201B waits for that the called party answer timer finishes called dont answer, counts and reported result (step S7-204) according to failure cause subsequently;
Step S7-201C, before wait called party answer timer finished, circuit was released, and counts and reported result (step S7-204) according to failure cause subsequently;
More than all three kinds of situation all need execution in step S7-205 call release again;
Turn back to the Idle state of step S7-100 at last.
The processing of callee side, step such as Fig. 8.
Step S8-100, the testing apparatus callee side is in initial idle condition;
The test call of being initiated by Calling Side returns after tested business platform is handled, and callee side is received ALERTING message simulation off-hook and taken time slot, step S8-101;
Step S8-102 carries out continuity test with caller;
Test result is write down and reports step S8-103;
Execution in step S8-104 call release again;
Turn back to the Idle state of step S8-100 at last.
When using analogue means to carry out the test of private network incoming call, need on the test background man-machine interface, select incoming call exhalation test-types, start test after the setting numbers of calling and called parties, the information that more than is provided with is loaded into the test foreground.Testing apparatus emulation PHS network one side is initiated test call from relaying group II; Called number is a 11848+ QBOX handset number, call out deliver to business platform after treatment called number change the number of the well-informed base of handset ownership into, calling number is the form of calling number+*+extension number; Be recycled to the testing apparatus of while emulation terminal and fixed line switch from relaying group I; Testing apparatus simulation off-hook, calling both sides detects loop, reported result call release.Concrete handling process from testing apparatus; This test process also is divided into Calling Side and two parts of callee side are handled respectively; Except that the numbers of calling and called parties of sending with call out the direction that takies relaying and breathe out with private network that the flow process state of difference is about the same to some extent, so still can combine Fig. 7 and Fig. 8 to explain.The processing of Calling Side, like Fig. 9:
Step S7-100, the testing apparatus Calling Side is in initial idle condition;
Step S7-101 receives that test takies relaying after the sign on and connects to specify caller time slot circuit;
Step S7-102 makes a call according to the called number of setting, and PHS network one side in the replacement true environment will be called out through digital junction and delivered to tested business platform;
The form of the called number of QBOX handset private network incoming call is: 11848+ QBOX handset number.
Step S7-103 is provided with and waits for the called party answer timer;
Step S7-200 moves into and waits for the called party answer attitude;
Then possibly have three kinds of situation:
Step S7-201A waits for that the called party answer timer finishes preceding called party answer, then continues and the called continuity test (step S7-202) that carries out, and test result is write down and report (step S7-203);
Step S7-201B waits for that the called party answer timer finishes called dont answer, counts and reported result (step S7-204) according to failure cause subsequently;
Step S7-201C, before wait called party answer timer finished, circuit was released, and counts and reported result (step S7-204) according to failure cause subsequently;
More than all three kinds of situation all need execution in step S7-205 call release again;
Turn back to the Idle state of step S7-100 at last.
The processed steps of callee side such as Fig. 8:
Step S8-100, the testing apparatus callee side is in initial idle condition;
Step S8-101, the test call of being initiated by Calling Side returns after tested business platform is handled, and callee side is received ALERTING message simulation off-hook and is taken time slot;
Step S8-102 carries out continuity test with caller;
Step S8-103 writes down and reports test result;
Execution in step S8-104 call release again;
Turn back to the Idle state of step S8-100 at last.
In calling out class testing, test foreground calling and called side is added up and is reported test background to the calling result respectively and shows that visual result is convenient to contrast.
Adopt this testing apparatus can save the real PHS network equipment, fixed line switch and great amount of terminals.
Bulk Call method of testing of the present invention adopts other like different collection of letters modules such as FSK with testing apparatus, and changes the transmitting-receiving rule definition, can be used for the test similar or that on its basis, improve equipment with PHS cordless service platform.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.