Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
Embodiment 1
Referring to Fig. 1, the embodiment of the invention provides a kind of method of obtaining the network information, comprising:
101: when carrying out communication, obtain assigned address information, and determine the appointed area according to assigned address information by first wireless network.
102: second radio network information that from the second radio network information server, obtains the appointed area by first wireless network.
Wherein, from the second radio network information server, obtain second radio network information of appointed area, specifically can comprise by first wireless network:
Send objective network information inquiring request message by first wireless network to the second radio network information server, wherein, carry the information of appointed area in the objective network inquiry request message;
Receive the objective network information inquiry response message of the second radio network information server feedback, carry second radio network information in the objective network information inquiry response message; Wherein, second radio network information is after receiving objective network information inquiring request message by second network information server, according to the information of the appointed area of carrying in the objective network information inquiring request message, inquiry obtains in the radio network information data of storing in advance from the second radio network information server.
Further, from the second radio network information server, obtain after second radio network information of appointed area, also comprise by first wireless network:
From second wireless network of the second radio network information correspondence, choose candidate's switching target network, carry out pre-authentication with candidate's switching target network.
Further, the switching target network of choosing the candidate from second wireless network of the second radio network information correspondence is specially:
From all second wireless network networks of all second wireless network network information correspondences, select to meet the switching target network of second wireless network of preset standard as the candidate.
Wherein, second radio network information comprises: any one in the address of the access authentication device address designation of second wireless network identification, the second wireless network access point position, second wireless network, the second wireless network operator, the second wireless network tariff information, second wireless network access point and the basic service element identifier (element ID) of second wireless network access point or several.
The described method of obtaining the network information of the embodiment of the invention, by from the second radio network information server, obtaining second radio network information of appointed area, do not need to depend on the beacon frame that can receive second wireless network, can in time get access to second radio network information, reduced the time of obtaining second radio network information, avoided also not getting access to the generation of the second radio network information incident when the first wireless network network switches to second wireless network.
Embodiment 1 described method can be applied between any 2 wireless networks, and (the WiMAX network is first wireless network, and the WiFi network is second wireless network) further specifies for example between WiMAX network and the WiFi network to be applied to below.
Embodiment 2
Referring to Fig. 2, the embodiment of the invention provides a kind of method of obtaining the network information, comprising:
201: terminal is carried out communication by the WiMAX network.
Have WiMAX wireless module and WiFi wireless module on the acquiescence terminal in the embodiment of the invention, support WiMAX and WiFi communication function.And terminal specifically can be the equipment that mobile phone, computer etc. are supported WiMAX and WiFi communication function.
202: terminal is obtained assigned address information, and determines the appointed area according to assigned address information.
Wherein, assigned address information can comprise that the current present position of terminal, terminal are in information such as the coordinate of a certain moment present position and/or the terminal a certain moment present position after current time before the current time, affiliated areas.And assigned address information is not limited to comprise above-mentioned several.Wherein, for the information of a certain moment present position of terminal after current time, as terminal in the position that may be in after current 5 minutes, after 10 minutes.Can determine terminal a certain moment present position after current according to the movement tendency of current present position of terminal and terminal particularly.As: the current present position of terminal is A, and terminal is in the B position after 1 minute, and terminal is in the C position after 2 minutes, according to the movement tendency of terminal from A to C, can determine that terminal may be in the D position after 3 minutes.
Particularly, terminal can be obtained assigned address information by following method: first kind: terminal is obtained assigned address information by the WiMAX network at its current place.Need to prove that WiMAX network support positioning function is provided with positional information server in the WiMAX network now, terminal just can be obtained assigned address information by the inquiring position information server.Second kind: itself has positioning function terminal, and as being provided with GPS (Global Position System, global positioning system) navigation system in the terminal, then terminal just can be obtained assigned address information by the positioning function of self.Need to prove, be not limited to said method, can adopt any feasible method, this is not done concrete qualification according to the practical application situation.
Particularly, determine that according to assigned address information the appointed area can be: with current assigned address is the center of circle, is the circular coverage area of radius with 300 meters; Or be the center with current assigned address, long 100 meters, wide 50 meters rectangle overlay area; Or with current assigned address as appointed area etc.Can be provided with flexibly according to the practical application situation, this not done concrete qualification.
And, need to prove, starting terminal obtains the opportunity of assigned address information, can be that terminal is in any time of carrying out communication by the WiMAX network, or terminal is when carrying out communication by the WiMAX network, judge and start the assigned address information of obtaining when the WiMAX network signal intensity is lower than default signal strength signal intensity.Can any other feasible Initiated Mechanism be set according to practical situations, this not done concrete qualification.
203: terminal is obtained the WiFi network information of appointed area from the WiFi network information server by the WiMAX network.
Wherein, the WiFi network information comprise among the BSSID (Basic Service Set Identifier, basic service element identifier (element ID)) of the address of access authentication device address designation, WiFi network belonging operator, WiFi network tariff information, WiFi Network Access Point of WiFi network identity, WiFi Network Access Point position, WiFi network and WiFi Network Access Point any one or a plurality of.Can the particular content that comprise in the WiFi network information be set according to the practical application situation, and the WiFi network information is stored in the WiFi network information server in advance.And in order to guarantee the comprehensive and accuracy of the WiFi network information, can be according to the variation of network design situation, adopt any feasible method that the WiFi network information of storing in the WiFi network information server is upgraded in real time, as upgrading by manually-operated method.Need to prove that in addition the appointed area may be deployed with a plurality of WiFi networks, therefore can be more than one from the WiFi network information of the appointed area that the WiFi network information server gets access to.
Particularly, terminal can adopt following method, obtains the WiFi network information of appointed area from the WiFi network information server by the WiMAX network:
At first, terminal sends objective network information inquiring request message by the WiMAX network to the WiFi network information server, wherein, carries the information of appointed area in this objective network inquiry request message.
Secondly, the WiFi network information server receives the objective network information inquiring request message of self terminal, according to the information of the appointed area of carrying in the objective network information inquiring request message, from the WiFi network information server, inquire about the WiFi network information that obtains this appointed area in the WiFi network information data of storage in advance.
Then, the WiFi network information server is carried at the WiFi network information in the objective network information inquiry response message and feeds back to terminal.
Need to prove, be not limited to said method, can adopt any feasible method to obtain the WiFi network information of appointed area, this is not done concrete qualification from the WiFi network information server.
204: terminal is chosen candidate's switching target network from the WiFi network of WiFi network information correspondence, carries out pre-authentication with candidate's switching target network.
Particularly, terminal with all WiFi networks of all WiFi network information correspondences as candidate's switching target network or terminal movement tendency according to terminal itself, from all WiFi networks of all WiFi network information correspondences, select to meet the switching target network of the WiFi network of preset standard as the candidate, wherein, preset standard can be that the signal strength signal intensity of WiFi network is greater than default signal strength signal intensity, or the distance between the position at the position of WiFi Network Access Point and the current place of terminal is less than default distance etc., can other any feasible preset standard be set according to the practical application situation, this not done concrete qualification.
And terminal is after having chosen candidate's switching target network from the WiFi network of WiFi network information correspondence, and terminal is carried out pre-authentication by the WiMAX network at its current place and candidate's switching target network.
Can adopt in the prior art any feasible method to carry out pre-authentication particularly, as the method that can utilize virtual access point or pure signaling Delivery Function etc., concrete pre-authentication process is same as the prior art, does not repeat them here.
In addition, need to prove, also the method for the method of prior art and the embodiment of the invention can be combined and obtain the network information, promptly in execution in step 202 and 203, terminal also can receive or detect the beacon frame that the WiFi Network Access Point sends by the WiFi module, obtains the WiFi network information according to beacon frame.
The described method of obtaining the network information of the embodiment of the invention, terminal is by obtaining the WiFi network information of appointed area from the WiFi network information server, do not need to depend on the beacon frame that can receive the WiFi network, can in time get access to the WiFi network information, reduced the time of obtaining the WiFi network information, avoided also not getting access to the generation of WiFi network information incident when the WiMAX network switches to the WiFi network.And, method and the method for the present invention of obtaining the WiFi network information by beacon frame in the prior art can be combined use, increased chance and number that terminal is obtained the WiFi network information, further reduce the time of obtaining the WiFi network information.
Embodiment 3
Referring to Fig. 3, the embodiment of the invention provides a kind of device that obtains the network information, comprising:
Appointed area determination module 301 is used for obtaining assigned address information, and determining the appointed area according to assigned address information when carrying out communication by first wireless network.
Radio network information acquisition module 302 is used for obtaining second radio network information of appointed area by first wireless network from the second radio network information server after appointed area determination module 301 is determined the appointed area.
Further, radio network information acquisition module 302 specifically can comprise:
Transmitting element, be used for after appointed area determination module 301 is determined the appointed area, send objective network information inquiring request message by first wireless network to the second radio network information server, wherein, carry the information of appointed area in the objective network inquiry request message;
Receiving element is used to receive the objective network information inquiry response message of the second radio network information server feedback, carries second radio network information in the objective network information inquiry response message; Wherein, second radio network information is after receiving objective network information inquiring request message by second network information server, according to the information of the appointed area of carrying in the objective network information inquiring request message, inquiry obtains in the radio network information data of storing in advance from the second radio network information server.
Further, also comprise referring to this device of Fig. 4:
Objective network is chosen module 303, be used for after radio network information acquisition module 302 obtains second radio network information, from second wireless network of the second radio network information correspondence, choose candidate's switching target network, carry out pre-authentication with candidate's switching target network.
Further, objective network is chosen module 303, specifically be used for after radio network information acquisition module 302 obtains second radio network information, from all second wireless network networks of all second wireless network network information correspondences, select to meet the switching target network of second wireless network of preset standard, carry out pre-authentication with candidate's switching target network as the candidate.
Further, second radio network information comprises: any one in the address of the access authentication device address designation of second wireless network identification, the second wireless network access point position, second wireless network, the second wireless network operator, the second wireless network tariff information, second wireless network access point and the basic service element identifier (element ID) of second wireless network access point or several.
The described device that obtains the network information of the embodiment of the invention, terminal is by obtaining second radio network information of appointed area from the second radio network information server, do not need to depend on the beacon frame that can receive second wireless network, can in time get access to second radio network information, reduced the time of obtaining second radio network information, avoided also not getting access to the generation of the second radio network information incident when the first wireless network network switches to second wireless network.
All or part of content in the technical scheme that above embodiment provides can realize that its software program is stored in the storage medium that can read by software programming, storage medium for example: the hard disk in the computer, CD or floppy disk.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.