GGP three mould portable terminal incoming call automatically switching methods
Technical field
The present invention relates to mobile communication; Particularly a kind of GGP three mould portable terminal incoming call automatically switching methods; Described GGP three moulds promptly have the incoming call automatically switching in the PHS/GSM/GSM three mould portable terminals, to control the automatic switching how GGP three mould portable terminals send a telegram here.
Background technology
Development along with the personal mobile communication technology; The portable terminal of PHS (personal handyphone system) standard and GSM (global system for mobile communications) standard is more and more universal; The portable terminal of two kinds of standards respectively has pluses and minuses: adopt the portable terminal telephone expenses of PHS standard cheap, but a little less than the signal penetration power of PHS network, it is undesirable communication effect to occur in the bad place of the network coverage; Even can not find the situation of network, and the portable terminal of PHS standard can't be roamed between different regions; And the signal of GSM network covers, and the portable terminal of GSM standard can be roamed at interzone.In order to combine the advantage of two kinds of standard networks, more and more users has the terminal of PHS standard and the terminal of GSM standard simultaneously, and this has also brought the inconvenience of carrying bringing to the user under the situation of communicating by letter easily.
PHS/GSM/GSM (being designated hereinafter simply as GGP) three mould portable terminals are gathered the function of PHS and two kinds of mode mobile terminals of GSM on the terminal, can on a portable terminal, realize the function of PHS and GSM.Local preferably at the PHS network signal, can converse with PHS, during more weak local of PHS signal or not in the local service area, can converse with GSM.For three mould GGP, three mould portable terminals, how effectively to save user's expense and how to carry out the problem that incoming call automatically switching just becomes needs solution.
Summary of the invention
The technical problem that the present invention will solve is to provide a kind of GGP three mould portable terminals incoming call method of transfer automatically; For having GGP three mould mobile terminal user incoming call automatically switching is provided; Can guarantee that the user has higher incoming call call completing rate, saves communication cost for the user again effectively.
Technical solution of the present invention is following:
A kind of GGP (being PHS/GSM/GSM) three mould portable terminal incoming call automatically switching methods are characterized in: incoming call automatically switching software is preserved in certain zone in the fixed memory device of described GGP three mould portable terminals, and this incoming call automatically switching method comprises the following steps:
When one, starting shooting, at first obtain the data that preserve in the described zone of fixed memory device, and present mode is saved in the global variable in the buffer memory, whether the user opens incoming call automatically switching through the menu setting in the GGP three mould portable terminals;
Two, under the GGP three mould mobile terminal-opening states, detect and opened incoming call automatically switching, detecting earlier has the standby of several cards on the GGP three mould portable terminals;
Three, incoming call automatically switching method:
1. described GGP three mould portable terminals have two SIM cards and the standby of a PIM card; Here the PIM card is corresponding to the PHS standard; SIM when PIM is stuck in service area, detects to carry out the calls transfer business when whether the PIM card has opened " out of reach " corresponding to the GSM standard; If no, just open calls transfer to SIM function on the PIM card:
● when two SIM cards all are local card or other places card, with the calls transfer on the PIM card to any SIM card;
● when only there being one to be local SIM, another is nonlocal SIM, with the calls transfer on the PIM card to local SIM; The other places SIM is not opened calls transfer, with the calls transfer on the nonlocal SIM to local SIM;
2. described GGP three mould portable terminals have two cards:
● a PIM card and a SIM card, then open the calls transfer of PIM card, when PIM card out of reach, will be to this SIM from the calls transfer on the PIM card;
● two SIM cards, anticipatory remark ground SIM and a nonlocal SIM then arrive local SIM with the calls transfer on the nonlocal SIM;
● two SIM cards all are local cards or all are the other places cards, then do not transfer;
3. a card is only arranged,, do not transfer no matter be PIM card or SIM.
The another kind of incoming call automatically switching method of GGP three mould portable terminals is characterized in: incoming call automatically switching software is preserved in certain zone in the fixed memory device of described GGP three mould portable terminals, and this incoming call automatically switching method comprises the following steps:
When one, starting shooting, at first obtain the data that preserve in the described zone of fixed memory device, and present mode is saved in the global variable in the buffer memory, whether the user opens incoming call automatically switching through the menu setting in the GGP three mould portable terminals;
Two, under the GGP three mould mobile terminal-opening states, detect and opened incoming call automatically switching, detecting earlier has the standby of several cards on the GGP three mould portable terminals;
Three, incoming call automatically switching method:
1. described GGP three mould portable terminals have two SIM cards and the standby of a PIM card,
When PIM is stuck in service area, with the calls transfer on the SIM to the PIM card;
In the PIM card out of reach,, then close this business if SIM has been opened calls transfer to the PIM card;
Two SIM cards, one is local SIM, one is nonlocal SIM, then with nonlocal SIM calls transfer to local SIM;
2. described GGP three mould portable terminals have two cards, i.e. with method 1. two SIM cards, an or SIM card and a PIM card are then handled;
3. described GGP three mould portable terminals only have a card, no matter be SIM or PIM card, do not transfer.
Behind GGP three mould mobile terminal-openings; This portable terminal will detect SIM calls transfer in a period of time T and open and the frequency n of cancelling, if n >=N threshold value is then cancelled the SIM calling transfer to the PIM card; Go again to detect at a distance from a period of time t1 then and whether detect the number of times opened with cancellation in a period of time T greater than N; If still greater than N, just remove unlatching and the number of times of cancellation in section T detection time again at a distance from t2, t2 is the random number greater than t1; If still greater than N; Then remove to detect T again and open the number of times with cancellation in the time period, if when in time period T, opening number of times with cancellation, then by the switching of sending a telegram here normally less than threshold value N at a distance from a longer time.
Described time T and threshold value N set in automatic incoming call switching software, are saved in the global variable of buffer memory.
Technique effect of the present invention is following:
Known that by above the GGP three mould portable terminals of the present invention automatic transfer method of sending a telegram here according to the PIM card and the SIM that insert are comprehensively judged, realizes that the automatic incoming call of three mould GGP, three mould portable terminals is transferred, conclusion is got up, and this method has two kinds:
Method one can effectively promote the call completing rate of incoming call; And second method can save communication cost for the user.These two kinds of methods three mould GGP all convenient for users three mould portable terminals.
Description of drawings
Fig. 1 controls the automatic switching that three mould GGP, three mould portable terminals are sent a telegram here for the first method flow chart of GGP three mould portable terminal incoming call automatically switching methods of the present invention through this flow chart, has effectively guaranteed the call completing rate of incoming call.
Fig. 2 controls the automatic switching that three mould GGP, three mould portable terminals are sent a telegram here for the second method flow chart of GGP three mould portable terminal incoming call automatically switching methods of the present invention through this flow chart, can effectively save the telex network expense.
Embodiment
Below in conjunction with accompanying drawing and embodiment the present invention is described further, but should limit protection scope of the present invention with this.
Explain that with the embodiment of mobile phone the present invention is realized by the software that is stored in the GGP three mould mobile phones at present as portable terminal of the present invention.Automatic interconnecting module in the mobile phone and judging module provide several public interface functions, supply other module invokes.Mainly whether incoming call is transferred by certain rule judgement and be transferred to any Zhang Ka etc.
During each the start, at first read the data that are provided with of whether having opened automatic switching that preserve in the memory device zone in the GGP three mould mobile phones, be saved in after reading out in certain global variable in the buffer area, in order to next judging whether to open incoming call automatically switching.Behind opening initialization Hardware configuration and the startup inter-related task, wait for the testing result of whether having opened incoming call automatically switching and whether card being arranged, get into the switching flow process according to court verdict again.
The switching of how to send a telegram here has proposed two kinds of methods here, and first method has effectively ensured the call completing rate of conversation, sees also Fig. 1, and method is following:
When GGP three mould mobile phone power-ons, detect and whether opened incoming call automatically switching, detecting has the standby of several cards again.
First kind of situation is when GGP three mould mobile phones two SIM cards and the standby of a PIM card to be arranged; When PIM is stuck in service area; Detect when whether the PIM card has opened " out of reach " and carry out the calls transfer business,, just go to judge between SIM and how to transfer if open; If do not have; Just open calling transfer on the PIM card to SIM; When two SIM cards all are local card or other places card, just with the calls transfer on the PIM card (also can be on the SIM2 card) to the SIM1 card by software control; If wherein only there is one to be local SIM, just with the PHS calls transfer to this SIM.In this case; After accomplishing above differentiation, again to whether transferring between two SIM cards and how transferring and handle, when two SIM cards all are local cards or all are the other places cards; Handle with regard to not carrying out calls transfer; If only there is one to be local card in two SIM cards, another is nonlocal SIM and does not open calls transfer, on the calls transfer on the nonlocal SIM to local SIM.
Second kind of situation is that two cards (combination in twos in the SIM1/SIM2/PIM card) standby is arranged, and when being two SIM card standbies, anticipatory remark ground SIM only arranged, then with the calls transfer on the nonlocal SIM to local SIM, other situation is next does not transfer; If having one in two cards is the PIM card, then open the calls transfer of PIM card, during with realization PIM card out of reach, ability will be from the calls transfer on the PIM card to this SIM card;
The third situation is to have only the standby of a card, the switching of then not sending a telegram here.Above process is as shown in Figure 1.
Second method mainly is to consider the saving communication cost, sees also Fig. 2, and it is the same with first method one that this method begins, judge whether to have opened automatic incoming call switching and whether the card standby is arranged, the number according to the card of standby, carry out next step judgement:
As three cards during standby, the PIM card of judging standby whether in service area, if, then the incoming call on the SIM of standby is transferred on the PIM card.
When in the standby PIM card out of reach, if two SIM cards have been opened calling transfer to the PIM card, just cancellation should business;
If two SIM cards have no the business of calling transfer to the PIM card that opened of opening; Just directly getting into next stage judges: if a SIM card is only arranged in two SIM cards is local card; Then on the SIM with the calls transfer on another standby SIM to this anticipatory remark ground; Under other situation, do not carry out the calls transfer between SIM, see also shown in Fig. 2.
If the standby card has only two: two SIM cards, or a PIM card and a SIM card, for having only two SIM card standbies, processing procedure is with the situation that standby of three cards and PIM card out of reach are arranged; Whether if having one in two cards is the PIM card, judge at service area according to the PIM card: PIM is stuck in service area, and the switching SIM is sent a telegram here to the PIM card; PIM card out of reach, no matter whether SIM has opened calling transfer to the PIM card, all incoming calls of not transferring, as shown in Figure 2.
For the situation of having only the standby of a card, if PIM card standby or when not opening the SIM standby of calling transfer to PIM card does not then further process; If one open the SIM standby of having opened calling transfer to PIM card, only need the calling transfer of this SIM of cancellation.Above process signal is as shown in Figure 2.
In method two, because a little less than the penetration power of PHS signal, very possible SIM can constantly carry out the unlatching and the cancellation of calls transfer, these repeated operation can have influence on the performance of GGP three mould portable terminals.So in method two, be necessary to add following algorithm: in a period of time T; If when detecting the number of times opened with cancellation greater than a threshold value N; Then cancel the SIM calling transfer to the PIM card, go again to detect at a distance from t1 then and whether detect the number of times opened with cancellation in a period of time T greater than N.If still greater than N, just remove unlatching and the number of times (t2 is the random number greater than t1) of cancellation in section T detection time again at a distance from t2.If still greater than N, then remove to detect T again and opens the number of times with cancellation the time period in, if when unlatching and the number of times cancelled are less than threshold value N in time period T, then by the switching of sending a telegram here normally at a distance from a longer time.
Experiment of the present invention shows that the present invention goes to SIM with incoming call when PIM card out of reach, has effectively ensured the call completing rate of incoming call, and method two is to the PIM card, with effective saving telex network expense with the SIM calls transfer.No matter being method one or method two, all is that the user has brought the facility of using.