[summary of the invention]
Based on this, be necessary to provide the method for the affiliated area of the accurate localizing mobile communications terminals of a kind of energy and/or common carrier.
A kind of method of area and/or common carrier under localizing mobile communications terminals comprises the following steps:
Obtain the network connecting request of mobile communication terminal, described network connecting request comprises the base station information that described mobile communication terminal is corresponding;
Search corresponding area and/or the common carrier of base station information of described mobile communication terminal in the corresponding relation of pre-stored base station information and area and/or common carrier.
In embodiment, also comprise in described network connecting request that the network corresponding with described network connecting request of installing in described mobile communication terminal connects the client identification of client therein;
Described method also comprises:
If find the area corresponding with described base station information and/or common carrier, set up described client identification and the area found and/or the corresponding relation of common carrier.
In embodiment, described method also comprises therein:
If do not find the area corresponding with described base station information and/or common carrier, in the corresponding relation of pre-stored client identification and area and/or common carrier, search corresponding area and/or the common carrier of client identification that is connected client with described network.
In embodiment, also comprise gateway IP in described network connecting request therein;
Search the step of area that the base station information of described mobile communication terminal is corresponding and/or common carrier in the described corresponding relation at pre-stored base station information and area and/or common carrier before, described method also comprises:
Search corresponding area and/or the common carrier of gateway IP comprised with described network connecting request in the corresponding relation of pre-stored gateway IP and area and/or common carrier, if do not find the area corresponding with gateway IP and/or common carrier, carry out area that the described base station information of searching described mobile communication terminal in the corresponding relation of pre-stored base station information and area and/or common carrier is corresponding and/or the step of common carrier.
In embodiment, described method also comprises therein:
Return to corresponding information resources according to the area found and/or common carrier to mobile communication terminal.
Based on this, also be necessary to provide the system of the affiliated area of the accurate localizing mobile communications terminals of a kind of energy and/or common carrier.
The system of area and/or common carrier under a kind of localizing mobile communications terminals comprises:
The acquisition request module, for obtaining the network connecting request of mobile communication terminal, described network connecting request comprises the base station information that described mobile communication terminal is corresponding;
Area and/or operator's acquisition module, search corresponding area and/or the common carrier of base station information of described mobile communication terminal for the base station information pre-stored and the corresponding relation of area and/or common carrier.
In embodiment, also comprise in described network connecting request that the network corresponding with described network connecting request of installing in described mobile communication terminal connects the client identification of client therein;
Described system also comprises memory module, if for finding the area corresponding with described base station information and/or common carrier, sets up described client identification and the area found and/or the corresponding relation of common carrier.
Therein in embodiment, if described area and/or operator's acquisition module be not also for finding the area corresponding with described base station information and/or common carrier, in the corresponding relation of pre-stored client identification and area and/or common carrier, search corresponding area and/or the common carrier of client identification that is connected client with described network.
In embodiment, also comprise gateway IP in described network connecting request therein;
Corresponding area and/or the common carrier of gateway IP that described area and/or operator's acquisition module comprise for search described network connecting request at pre-stored gateway IP and the corresponding relation of area and/or common carrier, if do not find the area corresponding with gateway IP and/or common carrier, in the corresponding relation of pre-stored base station information and area and/or common carrier, search corresponding area and/or the common carrier of base station information of described mobile communication terminal.
In embodiment, described system also comprises the information resources pushing module therein, for area and/or common carrier according to finding, to mobile communication terminal, returns to corresponding information resources.
The method and system of area and/or common carrier under above-mentioned localizing mobile communications terminals, include the base station information that mobile communication terminal is corresponding in the network connecting request of mobile communication terminal, and the corresponding relation at pre-stored base station information and area and/or common carrier, according to mobile communication terminal, corresponding base station information is searched the area corresponding with base station information and/or common carrier, searches the area and/or the common carrier that obtain and is the affiliated area of mobile communication terminal and/or common carrier.Said method and system, according to mobile communication terminal, corresponding base station information can get area and/or common carrier under mobile communication terminal accurately, no longer need gateway IP according to the network access device that is connected with mobile communication terminal to obtain area and/or common carrier under mobile communication terminal, wrong area and/or common carrier have been avoided getting, in order to provide corresponding with area and/or common carrier accurately information service to the user.
[embodiment]
As shown in Figure 1, in one embodiment, a kind of method of area and/or common carrier under localizing mobile communications terminals comprises the following steps:
Step S102, obtain the network connecting request of mobile communication terminal, and network connecting request comprises the base station information that mobile communication terminal is corresponding.
Concrete, the base station information that mobile communication terminal is corresponding be and the communication card (as SIM card) of mobile communication terminal between the information of the public mobile communication base station (referred to as base station) that communicates to connect.For example, the common carrier under the communication card of mobile communication terminal is the A of operator, with the base station that is the A of operator nearest with communication card, the base station of communication card communication connection.
Base station information comprises the relevant information of the common carrier under base station, the positional information of base station.Concrete, in one embodiment, base station information comprises: network code, national code, region code and base station number.Wherein, network code is for identifying common carrier.
In one embodiment, before step S102, under above-mentioned localizing mobile communications terminals, the method for area and/or common carrier also comprises step: obtain the base station information that mobile communication terminal is corresponding, generate the network connecting request that comprises base station information.
Concrete, in one embodiment, can obtain the communication card of mobile communication terminal and the communication data packet between base station, parse base station information from communication data packet.
Step S104 searches corresponding area and/or the common carrier of base station information of described mobile communication terminal in the corresponding relation of pre-stored base station information and area and/or common carrier.
Concrete, in one embodiment, can search corresponding common carrier in the corresponding relation of network code and common carrier according to network code, and search corresponding area at national code, region code, base station number with regional corresponding relation according to national code, region code and base station number.Concrete, area can be province or city, county etc.
The area corresponding with base station information found and/or common carrier can be used as area and/or common carrier under mobile communication terminal.
In one embodiment, also comprise in above-mentioned network connecting request that network corresponding to request connected to the network of installing in mobile communication terminal connects the client identification of client.
Concrete, the network that mobile communication terminal is installed connects client (software of surfing the Net) for initiating network connecting request, and network connecting request comprises that network connects the client identification of client.Before step S102, mobile communication terminal connects client (software of surfing the Net) by network and initiates network connecting request.
The client identification that network connects client can generate when network connection client is installed, and each network connects client identification corresponding to client.
Concrete, in one embodiment, can from the file of appointment, get the client identification that network connects client, client identification is encapsulated in network connecting request.
In the present embodiment, under above-mentioned localizing mobile communications terminals, the method for area and/or common carrier also comprises step: if find the area corresponding with base station information and/or common carrier, store client identification and the area found and/or the corresponding relation of common carrier.
After the corresponding relation of storage client identification and the area found and/or common carrier, the client identification that this corresponding relation can be used for connecting client according to the network of mobile communication terminal is searched area and/or common carrier under mobile communication terminal, according to this corresponding relation area and/or common carrier under localizing mobile communications terminals fast and accurately.
In one embodiment, under above-mentioned localizing mobile communications terminals, the method for area and/or common carrier also comprises step:
If do not find the area corresponding with base station information and/or common carrier, in the corresponding relation of pre-stored client identification and area and/or common carrier, search corresponding area and/or the common carrier of client identification that is connected client with above-mentioned network.
As shown in Figure 2, in one embodiment, a kind of method of area and/or common carrier under localizing mobile communications terminals comprises the following steps:
Step S202, obtain the network connecting request of mobile communication terminal, and network connecting request comprises base station information and the gateway IP that mobile communication terminal is corresponding.
Concrete, the gateway IP that network connecting request comprises is for being connected to mobile communication terminal the gateway IP of network of network connection device.For example, if mobile communication terminal is connected to network by wireless router, the gateway IP that this gateway IP is wireless router; If mobile communication terminal adopts GPRS technical battery to receive network, mobile communication terminal sends to network connecting request the server of the common carrier that the communication card of mobile communication terminal is corresponding, server by common carrier is connected to network, the gateway IP of the server that above-mentioned gateway IP is common carrier.
In one embodiment, before step S202, can obtain the gateway IP that mobile communication terminal is connected to the network of network connection device, the gateway IP got is encapsulated in the network connecting request of mobile communication terminal.
Step S204 searches corresponding area and/or the common carrier of gateway IP that request connected to the network comprises in the corresponding relation of pre-stored gateway IP and area and/or common carrier.
The gateway IP of server that in one embodiment, can pre-stored common carrier and the corresponding relation of area and/or common carrier.If the gateway IP that the gateway IP comprised in network connecting request is the server of certain common carrier can find corresponding area and common carrier according to this gateway IP in the corresponding relation of the gateway IP of the server of above-mentioned common carrier and area and/or common carrier.If the network IP comprised in network connecting request is the gateway IP with irrelevant certain wireless router of common carrier, according to this gateway IP, in the corresponding relation of the gateway IP of the server of above-mentioned common carrier and area and/or common carrier, will search less than corresponding area and common carrier.
Step S206, if do not find the area corresponding with gateway IP and/or common carrier, in the corresponding relation of pre-stored base station information and area and/or common carrier, search area and/or the common carrier corresponding with the base station information of described mobile communication terminal.
Further, in one embodiment, also comprise in network connecting request that network corresponding to request connected to the network of installing in mobile communication terminal connects the client identification of client.If find the area corresponding with gateway IP and/or common carrier, can store client identification and the area that finds and/or the corresponding relation of common carrier, facilitate and follow-uply according to client identification, search corresponding area and/or common carrier.
In the present embodiment, first according to the gateway IP comprised in network connecting request, search corresponding area and/or common carrier, if search unsuccessfully, search corresponding area and/or common carrier according to the base station information comprised in network connecting request again, in this example, can adopt number of ways to get the affiliated area of mobile communication terminal and/or common carrier, guarantee finally to get the affiliated area of correct mobile communication terminal and/or common carrier.
In one embodiment, under above-mentioned localizing mobile communications terminals, the method for area and/or common carrier, also comprise step: according to the area found and/or common carrier, to mobile communication terminal, return to corresponding information resources.
The area found and/or common carrier can be used as the affiliated area of mobile communication terminal and/or common carrier.
Concrete, can to mobile communication terminal push with mobile communication terminal under area and/or the corresponding information service of common carrier.
In the present embodiment, after getting accurately under mobile communication terminal area and/or common carrier, to mobile communication terminal, push corresponding information service, can guarantee to push information service accurately to mobile completely terminal.
In one embodiment, under above-mentioned localizing mobile communications terminals, the method for area and/or common carrier can be carried out by Cloud Server.Concrete, the corresponding relation of pre-stored base station information and area and/or common carrier in Cloud Server.Can be obtained the network connecting request of mobile communication terminal by Cloud Server, search the area corresponding with the base station information of mobile communication terminal and/or common carrier in this corresponding relation.In the present embodiment, by area and/or common carrier under the Cloud Server localizing mobile communications terminals, because Cloud Server has powerful disposal ability, therefore can be more fast area and/or common carrier under localizing mobile communications terminals more accurately.
As shown in Figure 3, in one embodiment, under a kind of localizing mobile communications terminals, the system of area and/or common carrier, comprise acquisition request module 302, area and/or operator's acquisition module 306, wherein:
Acquisition request module 302 is for obtaining the network connecting request of mobile communication terminal, and network connecting request comprises the base station information that mobile communication terminal is corresponding.
Concrete, the base station information that mobile communication terminal is corresponding be and the communication card (as SIM card) of mobile communication terminal between the information of the public mobile communication base station (referred to as base station) that communicates to connect.For example, the common carrier under the communication card of mobile communication terminal is the A of operator, with the base station that is the A of operator nearest with communication card, the base station of communication card communication connection.
Base station information comprises the relevant information of the common carrier under base station, the positional information of base station.Concrete, in one embodiment, base station information comprises: network code, national code, region code and base station number.Wherein, network code is for identifying common carrier.
In one embodiment, under above-mentioned localizing mobile communications terminals, the system of area and/or common carrier also comprises request generation module (not shown), for obtaining the base station information that mobile communication terminal is corresponding, generate the network connecting request that comprises base station information.
Concrete, in one embodiment, the request generation module can obtain the communication card of mobile communication terminal and the communication data packet between base station, parses base station information from communication data packet.
Area and/or operator's acquisition module 306 are searched corresponding area and/or the common carrier of base station information of mobile communication terminal for the base station information pre-stored and the corresponding relation of area and/or common carrier.
Concrete, in one embodiment, area and/or operator's acquisition module 306 can be searched corresponding common carrier according to network code in the corresponding relation of network code and common carrier, and search corresponding area at national code, region code, base station number with regional corresponding relation according to national code, region code and base station number.Concrete, area can be province or city, county etc.
The area corresponding with base station information found and/or common carrier can be used as area and/or common carrier under mobile communication terminal.
In one embodiment, also comprise in above-mentioned network connecting request that network corresponding to request connected to the network of installing in mobile communication terminal connects the client identification of client.
Concrete, the network that mobile communication terminal is installed connects client (software of surfing the Net) for initiating network connecting request, and network connecting request comprises that network connects the client identification of client.
The client identification that network connects client can generate when network connection client is installed, and each network connects client identification corresponding to client.
Concrete, in one embodiment, the request generation module can get the client identification that network connects client from the file of appointment, and client identification is encapsulated in network connecting request.
In the present embodiment, as shown in Figure 4, under above-mentioned localizing mobile communications terminals, the system of area and/or common carrier also comprises memory module 304, if for finding the area corresponding with base station information and/or common carrier, set up client identification and the area found and/or the corresponding relation of common carrier.
After the corresponding relation of storage client identification and the area found and/or common carrier, the client identification that this corresponding relation can be used for connecting client according to the network of mobile communication terminal is searched area and/or common carrier under mobile communication terminal, according to this corresponding relation area and/or common carrier under localizing mobile communications terminals fast and accurately.
In one embodiment, if area and/or operator's acquisition module 306 be not also for finding the area corresponding with base station information and/or common carrier, in the corresponding relation of pre-stored client identification and area and/or common carrier, search corresponding area and/or the common carrier of client identification that is connected client with above-mentioned network.
In one embodiment, above-mentioned network connecting request also comprises gateway IP.In the present embodiment, area and/or operator's acquisition module 306 search for the gateway IP pre-stored and the corresponding relation of area and/or common carrier corresponding area and/or the common carrier of gateway IP that request connected to the network comprises, if do not find the area corresponding with gateway IP and/or common carrier, in the corresponding relation of pre-stored base station information and area and/or common carrier, search area and/or the common carrier corresponding with the base station information of mobile communication terminal.
Concrete, the gateway IP that network connecting request comprises is for being connected to mobile communication terminal the gateway IP of network of network connection device.For example, if mobile communication terminal is connected to network by wireless router, the gateway IP that this gateway IP is wireless router; If mobile communication terminal adopts GPRS technical battery to receive network, mobile communication terminal sends to network connecting request the server of the common carrier that the communication card of mobile communication terminal is corresponding, server by common carrier is connected to network, the gateway IP of the server that above-mentioned gateway IP is common carrier.
Concrete, the request generation module can obtain the gateway IP that mobile communication terminal is connected to the network of network connection device, and the gateway IP got is encapsulated in the network connecting request of mobile communication terminal.
The gateway IP of the server that in one embodiment, memory module 304 can pre-stored common carrier and the corresponding relation of area and/or common carrier.If the gateway IP that the gateway IP comprised in network connecting request is the server of certain common carrier can find corresponding area and common carrier according to this gateway IP in the corresponding relation of the gateway IP of the server of above-mentioned common carrier and area and/or common carrier.If the network IP comprised in network connecting request is the gateway IP with irrelevant certain wireless router of common carrier, according to this gateway IP, in the corresponding relation of the gateway IP of the server of above-mentioned common carrier and area and/or common carrier, will search less than corresponding area and common carrier.
Further, in one embodiment, also comprise in network connecting request that network corresponding to request connected to the network of installing in mobile communication terminal connects the client identification of client.If find the area corresponding with gateway IP and/or common carrier, memory module 304 can be stored client identification and the area that finds and/or the corresponding relation of common carrier, facilitates follow-uply according to client identification, to search corresponding area and/or common carrier.
In the present embodiment, first according to the gateway IP comprised in network connecting request, search corresponding area and/or common carrier, if search unsuccessfully, search corresponding area and/or common carrier according to the base station information comprised in network connecting request again, in this example, can adopt number of ways to get the affiliated area of mobile communication terminal and/or common carrier, guarantee finally to get the affiliated area of correct mobile communication terminal and/or common carrier.
In one embodiment, the system of area and/or common carrier also comprises information resources pushing module (not shown) under above-mentioned localizing mobile communications terminals, for area and/or the common carrier found according to area and/or operator's acquisition module 306, to mobile communication terminal, returns to corresponding information resources.
The area found and/or common carrier can be used as the affiliated area of mobile communication terminal and/or common carrier.
Concrete, the information resources pushing module can to mobile communication terminal push with mobile communication terminal under area and/or the corresponding information service of common carrier.
In the present embodiment, after getting accurately under mobile communication terminal area and/or common carrier, to mobile communication terminal, push corresponding information service, can guarantee to push information service accurately to mobile completely terminal.
In one embodiment, acquisition request module 302, memory module 304 and area and/or operator's acquisition module 306 can be distributed in Cloud Server, and the powerful disposal ability of Cloud Server contributes to more fast the affiliated area of localizing mobile communications terminals and/or common carrier more accurately.
The method and system of area and/or common carrier under above-mentioned localizing mobile communications terminals, include the base station information that mobile communication terminal is corresponding in the network connecting request of mobile communication terminal, and the corresponding relation at pre-stored base station information and area and/or common carrier, according to mobile communication terminal, corresponding base station information is searched the area corresponding with base station information and/or common carrier, searches the area and/or the common carrier that obtain and is the affiliated area of mobile communication terminal and/or common carrier.Said method and system, according to mobile communication terminal, corresponding base station information can get area and/or common carrier under mobile communication terminal accurately, no longer need gateway IP according to the network access device that is connected with mobile communication terminal to obtain area and/or common carrier under mobile communication terminal, wrong area and/or common carrier have been avoided getting, in order to provide corresponding with area and/or common carrier accurately information service to the user.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, to come the hardware that instruction is relevant to complete by computer program, described program can be stored in a computer read/write memory medium, this program, when carrying out, can comprise the flow process as the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
The above embodiment has only expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.