A kind of network selection method and device
Technical field
The present invention relates to the network selection technology, relate in particular to network selection method and the device of a kind of mobile communication terminal when production test.
Background technology
In order to produce large quantities of high-quality mobile communication terminals, in the mobile communication terminal production process, need to carry out a large amount of production tests.And when production test, require tested mobile communication terminal to reside in the production test network all the time, so that well actual mobile communications network is simulated, test mobile communication terminal correlation technique index is such as the signal receiving quality at registered network.But, in production test environment, there is multiple factor, it is resident to desired production test network to make tested mobile communication terminal not have.
Fig. 1 is the composition structural representation of mobile communication terminal place production test environment.As shown in Figure 1, this production test environment comprises production test control appliance 1, tested mobile communication terminal 2 and production test network 3.Wherein, production test control appliance 1 is connected by communication lines such as serial ports/USB (USB) interfaces with tested mobile communication terminal 2.Tested mobile communication terminal 2 is connected with production test network 3 by radio frequency cable.
Here, production test control appliance 1 is generally the computer of operation production test software.Production test control appliance 1 is assigned the production test dependent instruction to tested mobile communication terminal 2 by operation production test software thereon, and finishes the production test function according to the response instruction that receives from tested mobile communication terminal 2.Production test network 3 adopts comprehensive tester to simulate realization usually.At tested mobile communication terminal 2, production test network 3 has the air interface protocol function that mobile communication terminal is supported as a mobile communications network.In addition, also relate to the SIM card that Subscriber Identity Module is commonly called as during production test.Store the relevant information that is used for the production test mobile subscriber in the SIM card.And this SIM card meets the related mobile communication consensus standard, is inserted in when production test in the tested mobile communication terminal 2.
At the factor that exists in the production test environment, for instance, have carrier network in the current production test environment, and this carrier network is to support mobile communication technology that tested mobile communication terminal will be tested.Tested mobile communication terminal internal memory contains operator's desired equivalence ownership mobile communications network (EHPLMN) data, and this tested mobile communication terminal custom terminal that is operator.The factor that exists under the current production environment is: the signal strength signal intensity of this carrier network is bigger, and used SIM card does not have the resident production test network of crossing during production test; Perhaps, because production test personnel's misoperation has forgotten to give tested mobile communication terminal to plug the radio frequency cable that links to each other with the production test network.
Because according to the network selection strategy of stipulating in the relevant mobile communication protocol, if do not store mobile communications network (RPLMN) data of registration in the mobile communication terminal, when requiring the relevant log-on data of production test network when being production test, mobile communication terminal can remove preferentially to select EHPLMN.Therefore, above-mentioned factor can cause tested mobile communication terminal removal search carrier network, when waiting production test personnel to plug radio frequency cable, has lost the relevant log-on data of production test network on the SIM card, so, tested mobile communication terminal may be resident to carrier network.Thereby the resident problem of the production test network that requires during to production test appears not having.
A solution of prior art is: when production test, if tested mobile communication terminal does not have resident problem to requirement production test network, then need the extra production test of adopting a kind of equipment to be used for mobile communication terminal.The purpose that adopts this equipment is that the SIM card that test is used is registered to desired production test network.Another kind of solution is: when production test, the shielding environment is provided for tested mobile communication terminal, eliminates the interference of other radio signal, make the signal that only has the production test network in the production test environment.
Although the employing prior art, can solve tested mobile communication terminal does not have resident problem to requirement production test network, and all there is shortcoming in various degree in existing these two kinds of solutions.The shortcoming of first kind of solution is: according to the feedback of practical condition, the about 100 cover mobile communication terminals of every production just need extra once this equipment that adopts, and make SIM card be registered to desired production test network.Like this, will certainly increase mobile communication terminal production test personnel's workload, thereby reduce production efficiency, be unfavorable for the production in enormous quantities of mobile communication terminal.The shortcoming of second kind of solution is: the shielding environment is provided for tested mobile communication terminal, will certainly improve the requirement of mobile communication terminal production test environment, thereby increased production cost, also reduced production efficiency simultaneously, be unfavorable for the production in enormous quantities of mobile communication terminal.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of network selection method, makes mobile communication terminal can in time, automatically select the desired network of production test.Thereby guarantee that tested mobile communication terminal resides in the production test network all the time.
Another object of the present invention is to provide a kind of network selection device, make mobile communication terminal can in time, automatically select the desired network of production test.Thereby, guarantee that tested mobile communication terminal resides in the production test network all the time.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of network selection method, this method may further comprise the steps:
A, set up production test environment after, tested mobile communication terminal is powered on;
B, when the production test control appliance by issuing query statement, inquire tested mobile communication terminal when being not registered to the production test network, described production test control appliance makes described tested mobile communication terminal search described production test network and registration by issuing search instruction.
Wherein, also comprise between steps A and the step B:
X, described production test control appliance issue and detect instruction, and receive the response instruction of described tested mobile communication terminal; When detecting described tested mobile communication terminal at the response instruction that detects instruction and be in the state of network registry success, execution in step B.
Wherein, step X is specially:
X1, described production test control appliance operation production test software will detect instruction by described production test software and be handed down to described tested mobile communication terminal;
X2, production test control appliance receive described at the response instruction that detects instruction by production test software; If it is described at the information that is packaged with the network registry success in the response instruction that detects instruction, then execution in step B; Otherwise, finish current network selection flow process.
Wherein, step B is specially:
B1, described production test control appliance are handed down to described tested mobile communication terminal by described production test software with query statement;
B2, production test control appliance receive the response instruction of tested mobile communication terminal by production test software; If be packaged with the information that tested mobile communication terminal is registered to the production test network in the response instruction at query statement, then finish current network selection flow process; Otherwise, execution in step B3;
B3, production test control appliance are handed down to tested mobile communication terminal by production test software with search instruction, and tested mobile communication terminal searches production test network and registration according to described search instruction, finishes current network selection flow process.
A kind of network selection device, this device comprises: query statement issues the unit, search instruction issues unit, receiving element; Wherein,
Query statement issues the unit, is used for query statement is handed down to described receiving element, inquires about the information of the network that tested mobile communication terminal registers;
Search instruction issues the unit, is used for search instruction is handed down to described receiving element, informs described tested mobile communication terminal search production test network;
Receiving element, be used to receive described query statement and described search instruction after, described query statement is responded, and will return described query statement at the response instruction of described query statement and issue the unit.
Wherein, described query statement issues the unit, is further used for the network information according to the described tested mobile communication terminal registration that encapsulates in the response instruction at query statement, points out described search instruction to issue the unit and carries out the operation that issues search instruction;
And the described network information is not for being packaged with the information that tested mobile communication terminal is registered to the production test network.
Wherein, this device also comprises: detect instruction and issue the unit, be used for the detection instruction is handed down to described receiving element;
Described receiving element is further used for receiving described detection instruction, and will return to described detection instruction at the response instruction of described detection instruction and issue the unit.
Wherein, described detection instruction issues the unit, be further used for according to described at the response instruction that detects instruction, after detecting described tested mobile communication terminal and being in the state of network registry success, point out described query statement to issue the unit and carry out the operation that issues query statement.
Wherein, described receiving element is further used for according to described search instruction, makes described tested mobile communication terminal search production test network and registration.
The present invention makes mobile communication terminal can in time, automatically select the desired network of production test by the various control commands that the production test control appliance issues.Specifically, when the production test control appliance issues query statement, inquire tested mobile communication terminal when being not registered to the production test network, the production test control appliance issues search instruction so, makes tested mobile communication terminal search production test network and registration.
Adopt the present invention to improve the automaticity of mobile communication terminal production test, under the situation that does not increase production cost, reduced production test personnel's workload, improved production efficiency, be convenient to the production in enormous quantities of mobile communication terminal.
Description of drawings
Fig. 1 is the composition structural representation of mobile communication terminal place production test environment;
Fig. 2 is the realization flow figure of the inventive method principle.
Embodiment
Core concept of the present invention is: the present invention makes mobile communication terminal can in time, automatically select the desired network of production test by the various control commands that the production test control appliance issues.
For making the purpose, technical solutions and advantages of the present invention clearer, by the following examples and with reference to accompanying drawing, the present invention is described in more detail.
As shown in Figure 2, a kind of network selection method may further comprise the steps:
Step 101, set up production test environment after, tested mobile communication terminal is powered on.
Here, the process of setting up of production test environment is: the SIM card that production test is used is inserted the SIM card pedestal of tested mobile communication terminal, tested mobile communication terminal is connected to the production test control appliance by the corresponding interface and communication line, tested mobile communication terminal is connected to the production test network by radio frequency cable.
Wherein, it is to be noted: on this production test control appliance, set in advance production test software.This production test control appliance is handed down to tested mobile communication terminal by this production test software of operation with the relevant control command of production test, and finishes the production test function according to the response instruction that receives from tested mobile communication terminal.Tested mobile communication terminal has complete mobile communication terminal agreement, and supports the relevant control command that production test software issues.The production test network has the air interface protocol function that mobile communication terminal is supported.
Step 102, production test control appliance issue and detect instruction, and receive the response instruction of tested mobile communication terminal; When detecting tested mobile communication terminal according to response instruction and be in the state of network registry success, execution in step 103.
Wherein, the processing procedure of step 102 is specially:
The production test software that step 1021, the operation of production test control appliance set in advance, the production test control appliance will detect instruction by production test software and be handed down to tested mobile communication terminal.And this detection instruction is used to detect the network registry state of tested mobile communication terminal.
Step 1022, production test control appliance receive the response instruction of tested mobile communication terminal by production test software.If be packaged with the information of network registry success in this response instruction, then execution in step 103; Otherwise, be packaged with the information that network registry is failed in this response instruction, then finish current network selection flow process.
Here, it is pointed out that this response instruction is the response instruction at the detection instruction.The form of this response instruction can be+CREG:<STAT 〉.
Step 103, when the production test control appliance by issuing query statement, inquire tested mobile communication terminal when being not registered to the production test network, the production test control appliance makes tested mobile communication terminal search production test network and registration by issuing search instruction.
Wherein, the processing procedure of step 103 is specially:
Step 1031, production test control appliance are handed down to described tested mobile communication terminal by production test software with query statement.And this query statement is used to inquire about the network information of tested mobile communication terminal registration.
Here, the network information of tested mobile communication terminal registration comprises: tested mobile communication terminal is registered to the information of production test network.Can the form of query statement be AT+COPS?
Step 1032, production test control appliance receive the response instruction of tested mobile communication terminal by production test software.If be packaged with the information that tested mobile communication terminal is registered to the production test network in this response instruction, then finish current network selection flow process, the relevant production test of tested mobile communication terminal is normally carried out in beginning; Otherwise, be not packaged with the information that tested mobile communication terminal is registered to the production test network in this response instruction, then execution in step 1033.
Here, it is pointed out that this response instruction is the response instruction at query statement.
Step 1033, production test control appliance are handed down to tested mobile communication terminal by production test software with search instruction.And this search instruction is used to inform tested mobile communication terminal search production test network.
The form of this search instruction can for:
AT+COPS=[<mode>[,<format>[,<oper>[,<AcT>]]]]。
Step 1034, tested mobile communication terminal search production test network and registration according to this search instruction, finish current network selection flow process.
A kind of network selection device, this device comprises: production test environment sets up that unit, power subsystem, query statement issue the unit, search instruction issues unit, receiving element.Here, production test environment sets up that unit, power subsystem, query statement issue the unit, search instruction issues the unit and is positioned at production test control appliance side; Receiving element is positioned at tested mobile communication terminal side.
Wherein, production test environment is set up the unit, and after being used to set up production test environment, the instruction that will power on sends to power subsystem.Power subsystem is used for receiving and powers on after the instruction, to described network selection device power supply.Query statement issues the unit, is used for query statement is handed down to described receiving element, inquires about the network information of tested mobile communication terminal registration.Search instruction issues the unit, is used for search instruction is handed down to described receiving element, informs described tested mobile communication terminal search production test network.Receiving element, be used to receive described query statement and described search instruction after, described query statement is responded, and will return to described query statement at the response instruction of described query statement and issue the unit and carry out subsequent treatment.
Here, described query statement issues the unit, is further used for the network information according to the described tested mobile communication terminal registration that encapsulates in the response instruction at query statement, points out described search instruction to issue the unit and carries out the operation that issues search instruction.And the described network information is not for being packaged with the information that tested mobile communication terminal is registered to the production test network.
A kind of network selection device, this device also comprises: detect instruction and issue the unit, be used for the detection instruction is handed down to described receiving element.So described receiving element is further used for receiving described detection instruction, and will return described detection instruction at the response instruction of described detection instruction and issue the unit.
Here, described detection instruction issues the unit, be further used for according to described at the response instruction that detects instruction, after detecting described tested mobile communication terminal and being in the state of network registry success, point out described query statement to issue the unit and carry out the operation that issues query statement.Described receiving element is further used for according to described search instruction, makes described tested mobile communication terminal search production test network and registration.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.