Summary of the invention
The present invention mainly solves in the wireless communication system, and terminal equipment adapts to the best/needs network environment of selection automatically according to user's demand.
For addressing the above problem, the method for self-adapting selection network of the present invention comprises the steps:
1) determine the wireless device type that terminal equipment uses, described wireless device type is one or more;
2) described terminal equipment determines to adapt to which network type according to the wireless device type that obtains in the step 1);
3) described terminal equipment is according to step 2) in resulting network type, corresponding network is carried out real time scan, obtain the signal characteristic data that all can adapt to wireless network;
4) described terminal equipment compares the wireless network signal characteristic that obtains in the step 3) with predefined performance index, judge whether this network can start self adaptation, carry out record according to the priority of set adaptive network mode thereby can start adaptive network;
5) start self adaptation, then terminal equipment will pass through the priority that write down, and the override wireless network the selected network type with current use is compared, if identical, then not switch, otherwise automatically switch to prepreerence wireless network;
6), then finish if do not start self adaptation.
The invention has the advantages that:
(1) accurately determines the wireless network type that terminal equipment can adapt to;
(2) can obtain the signal strength signal intensity of wireless network in real time;
(3) terminal equipment adapts to the wireless network situation of change automatically.
Embodiment
In order to make can the self adaptation current wireless network of terminal equipment and to meet consumers' demand, the present invention allows to be provided with multiple adaptive network mode, and the user can select.
The adaptive network mode that the user selects will in the present invention, be provided with in modes such as tabulation or databases as the basis for estimation of determining current optimum wireless network.And the present invention can be solidified multiple adaptive network mode in advance and be selected for the user, also can allow user oneself that the adaptive network mode is set.
The adaptive network mode can be but be not limited to following several:
(1) adapts to the high priority wireless network; (be applicable to from low priority area of wireless network coverage territory and move to high priority area of wireless network coverage territory)
(2) adapt to the low priority wireless network; (be applicable to from high priority area of wireless network coverage territory and move to low priority area of wireless network coverage territory)
(3) only when the wireless network signal of current use does not exist, adapt to other wireless networks;
(4) according to priority order adapts to other wireless networks;
(5) any other wireless network of incompatibility.
The user can define the priority level of wireless network as required voluntarily, for example: expense, transmission rate, expense/transmission rate etc.
When expense is preferential, need compare by local networks service supplier's expenses standard; When transmission rate is preferential, need the relatively transmission rate of each wireless network.
Please refer to shown in Figure 2ly, realize that the method for terminal equipment adaptive network may further comprise the steps:
1) execution in step 20, determine the wireless device type that terminal equipment uses, as: mobile phone, PDA, notebook computer and corresponding network formats;
2) execution in step 21, determine to adapt to which network type according to the wireless device type that obtains in the step 20, as: GSM, GPRS, CDMA, WLAN;
3) execution in step 22, according to resulting network type in the step 21, according to the priority of the adaptive network mode that sets in advance, corresponding network is carried out real time scan, the signal characteristic data of obtaining all adaptable wireless networks are as intensity, frequency etc.; Really, also can other scan in proper order, for example random scan;
4) execution in step 23, the wireless network signal characteristic that obtains in the step 22 is compared with predefined performance index, judge whether this network can start self adaptation, carry out record according to the priority of set adaptive network mode thereby can start adaptive network.For example, with the signal strength signal intensity is example, the wireless network signal strength that obtains compares with predefined access threshold value, when signal strength signal intensity when inserting threshold value, then this network is listed in and can be started adaptive network list, thereby carries out record according to set network priority in the mode of tabulation or database; Otherwise this network can not start self adaptation;
5) if start adaptive process, then execution in step 24, and terminal equipment will pass through the network priority sequence table set up, the override wireless network the selected network type with current use is compared, if identical, then do not switch, otherwise switch to the override wireless network;
6) if successfully insert the override wireless network of selecting, then interrupt the legacy network connection and preserve the network type of current use, otherwise switch to suboptimum wireless network in the priority sequence table, the rest may be inferred, not identical and do not switch until the network priority of its priority level of network of selecting and current use;
7), then finish if do not start adaptive process.
Please refer to shown in Figure 3ly, will be explained in further detail the preferred embodiments of the present invention below.
The wireless device that uses in this preferred embodiment can adapt to GSM, GPRS and wlan network.
1) execution in step 31, determine the wireless device (GSM mobile handset, GPRS card, WLAN card etc.) of the current use of user;
2) execution in step 32, the wireless network type of determining to adapt to according to the wireless device that uses is (as using the GPRS card, then can adapt to GSM and GPRS network, as use the WLAN card, then can adapt to wlan network, as using GPRS and WLAN card simultaneously, then can adapt to three kinds of networks of GSM, GPRS and WLAN);
3) execution in step 33, and scanning can adapt to the WLAN wireless network that transmission rate is the highest in the wireless network, obtain its network signal intensity;
4) execution in step 34, and scanning can adapt to transmission rate time high GPRS wireless network in the wireless network, obtains its network signal intensity;
5) execution in step 35, and scanning can adapt to the gsm wireless network that transmission rate is minimum in the wireless network, obtains its network signal intensity;
6) execution in step 36, just set up by transmission rate to adapt to network list;
7) execution in step 37, and judgement can adapt to whether the network that transmission rate is the highest in the network list is the network of current use, if, then forward step 33 to, otherwise execution in step 38;
8) execution in step 38, switch to the network of selection;
9) execution in step 39, judge whether switching is successful;
10) if handover success, execution in step 310 is interrupted legacy network and is connected, and preserves the current network type, execution in step 33;
11) if switching is unsuccessful, execution in step 311, deletion can adapt to the highest network of transmission rate in the network list, execution in step 37;
Above-mentioned steps can be used in wireless network repeatedly in real time, and each all is in the optimum network constantly to make the network equipment.