[summary of the invention]
Based on this, be necessary the method that area and/or common carrier belonging to the accurate localizing mobile communications terminals of a kind of energy are provided.
A method for area and/or common carrier belonging to localizing mobile communications terminals, comprises the following steps:
Obtain the network connecting request of mobile communication terminal, described network connecting request comprises base station information corresponding to described mobile communication terminal;
Area corresponding to the base station information of described mobile communication terminal and/or common carrier is searched in the corresponding relation of the base station information prestored and area and/or common carrier.
Wherein in an embodiment, in described network connecting request, also comprise the client identification that the network corresponding with described network connecting request installed in described mobile communication terminal connects client;
Described method also comprises:
If find the area corresponding with described base station information and/or common carrier, then set up the corresponding relation of described client identification and the area found and/or common carrier.
Wherein in an embodiment, described method also comprises:
If do not find the area corresponding with described base station information and/or common carrier, then in the corresponding relation of the client identification prestored and area and/or common carrier, search area corresponding to be connected client with described network client identification and/or common carrier.
Wherein in an embodiment, in described network connecting request, also comprise gateway IP;
Search the step of area corresponding to the base station information of described mobile communication terminal and/or common carrier in the corresponding relation of the described base station information prestoring and area and/or common carrier before, described method also comprises:
The gateway IP prestored with area and/or common carrier corresponding relation in search the area corresponding with the gateway IP that described network connecting request comprises and/or common carrier, if do not find the area corresponding with gateway IP and/or common carrier, then perform the step of area corresponding to the described base station information searching described mobile communication terminal in the corresponding relation of the base station information prestored with regional and/or common carrier and/or common carrier.
Wherein in an embodiment, described method also comprises:
Corresponding information resources are returned to mobile communication terminal according to the area found and/or common carrier.
Based on this, there is a need to the system that area and/or common carrier belonging to the accurate localizing mobile communications terminals of a kind of energy are provided.
A system for area and/or common carrier belonging to localizing mobile communications terminals, comprising:
Acquisition request module, for obtaining the network connecting request of mobile communication terminal, described network connecting request comprises base station information corresponding to described mobile communication terminal;
Area and/or operator's acquisition module, the area that the base station information for searching described mobile communication terminal in the corresponding relation of the base station information prestored with regional and/or common carrier is corresponding and/or common carrier.
Wherein in an embodiment, in described network connecting request, also comprise the client identification that the network corresponding with described network connecting request installed in described mobile communication terminal connects client;
Described system also comprises memory module, if for finding the area corresponding with described base station information and/or common carrier, then sets up the corresponding relation of described client identification and the area found and/or common carrier.
Wherein in an 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, then in the corresponding relation of the client identification prestored and area and/or common carrier, search area corresponding to be connected client with described network client identification and/or common carrier.
Wherein in an embodiment, in described network connecting request, also comprise gateway IP;
Described area and/or operator's acquisition module are used for searching area corresponding to gateway IP that described network connecting request comprises and/or common carrier in the corresponding relation of the gateway IP prestored with regional and/or common carrier, if do not find the area corresponding with gateway IP and/or common carrier, then in the corresponding relation of the base station information prestored and area and/or common carrier, search area corresponding to the base station information of described mobile communication terminal and/or common carrier.
Wherein in an embodiment, described system also comprises information resources pushing module, for returning corresponding information resources according to the area found and/or common carrier to mobile communication terminal.
The method and system of area and/or common carrier belonging to above-mentioned localizing mobile communications terminals, the base station information that mobile communication terminal is corresponding is included in the network connecting request of mobile communication terminal, and prestoring base station information and corresponding relation that is regional and/or common carrier, the base station information corresponding according to mobile communication terminal searches the area corresponding with base station information and/or common carrier, searches the area that obtains and/or common carrier is area and/or common carrier belonging to mobile communication terminal.Said method and system, the base station information corresponding according to mobile communication terminal can get area and/or common carrier belonging to mobile communication terminal accurately, no longer need to obtain area and/or common carrier belonging to mobile communication terminal according to the gateway IP of the network access device be connected with mobile communication terminal, avoid and get mistake area and/or common carrier, to provide information service corresponding with area and/or common carrier accurately to user.
[embodiment]
As shown in Figure 1, in one embodiment, a kind of method of area and/or common carrier belonging to localizing mobile communications terminals, comprises the following steps:
Step S102, obtain the network connecting request of mobile communication terminal, network connecting request comprises base station information corresponding to mobile communication terminal.
Concrete, the base station information that mobile communication terminal is corresponding is the information of the public mobile communication base station (referred to as base station) communicated to connect between the communication card (as SIM card) of mobile communication terminal.Such as, the common carrier belonging to the communication card of mobile communication terminal is operator A, then the base station communicated to connect with communication card is the base station of the operator A nearest with communication card.
Base station information comprises the relevant information of the common carrier belonging to 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 used for identification communication operator.
In one embodiment, before step S102, belonging to 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, generates the network connecting request comprising base station information.
Concrete, in one embodiment, the communication data packet between the communication card of mobile communication terminal and base station can be obtained, from communication data packet, parse base station information.
Step S104, searches area corresponding to the base station information of described mobile communication terminal and/or common carrier in the corresponding relation of the base station information prestored and area and/or common carrier.
Concrete, in one embodiment, corresponding common carrier can be searched according to network code in the corresponding relation of network code with common carrier, and search corresponding area in national code, region code, base station number with the corresponding relation in area according to national code, region code and base station number.Concrete, area can be province or city, county etc.
Namely the area corresponding with base station information found and/or common carrier can be used as area and/or common carrier belonging to mobile communication terminal.
In one embodiment, the network also comprising the request correspondence connected to the network of installing in mobile communication terminal in above-mentioned network connecting request connects the client identification of client.
Concrete, the network that mobile communication terminal is installed connects client (software of namely surfing the Net) for initiating network connecting request, and network connecting request comprises the client identification that network connects client.Before step S102, mobile communication terminal connects client (software of namely surfing the Net) by network and initiates network connecting request.
The client identification that network connects client can generate when installing network and connecting client, and each network connects client identification corresponding to client.
Concrete, in one embodiment, the client identification that network connects client can be got from the file of specifying, client identification is encapsulated in network connecting request.
In the present embodiment, belonging to 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, then store the corresponding relation of client identification and the area found and/or common carrier.
After storing the corresponding relation of client identification and the area found and/or common carrier, the client identification that this corresponding relation can be used for connecting according to the network of mobile communication terminal client searches area and/or common carrier belonging to mobile communication terminal, can area and/or common carrier belonging to localizing mobile communications terminals fast and accurately according to this corresponding relation.
In one embodiment, belonging to 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, then in the corresponding relation of the client identification prestored and area and/or common carrier, search area corresponding to be connected client with above-mentioned network client identification and/or common carrier.
As shown in Figure 2, in one embodiment, a kind of method of area and/or common carrier belonging to localizing mobile communications terminals, comprises the following steps:
Step S202, obtain the network connecting request of mobile communication terminal, network connecting request comprises base station information corresponding to mobile communication terminal and gateway IP.
Concrete, the gateway IP that network connecting request comprises is gateway IP mobile communication terminal being connected to network of network connection device.Such as, if mobile communication terminal is connected to network by wireless router, then this gateway IP is the gateway IP of wireless router; If mobile communication terminal adopts GPRS technical battery to receive network, then network connecting request is sent to the server of common carrier corresponding to the communication card of mobile communication terminal by mobile communication terminal, be connected to network by the server of common carrier, then above-mentioned gateway IP is the gateway IP of the server of common carrier.
In one embodiment, before step S202, gateway IP mobile communication terminal being connected to network of network connection device can be obtained, the gateway IP got is encapsulated in the network connecting request of mobile communication terminal.
Step S204, searches area corresponding to gateway IP that request connected to the network comprises and/or common carrier in the corresponding relation of the gateway IP prestored and area and/or common carrier.
In one embodiment, the gateway IP of the server of common carrier and corresponding relation that is regional and/or common carrier can be prestored.If the gateway IP comprised in network connecting request is the gateway IP of the server of certain common carrier, then can according to this gateway IP the server of above-mentioned common carrier gateway IP with area and/or common carrier corresponding relation in find corresponding area and common carrier.If the network IP comprised in network connecting request is the gateway IP of certain wireless router had nothing to do with common carrier, then according to this gateway IP the server of above-mentioned common carrier gateway IP with area and/or common carrier corresponding relation in 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, then the base station information prestored with area and/or common carrier corresponding relation in search the area corresponding with the base station information of described mobile communication terminal and/or common carrier.
Further, in one embodiment, the network also comprising the request correspondence connected to the network of installing in mobile communication terminal in network connecting request connects the client identification of client.If find the area corresponding with gateway IP and/or common carrier, the corresponding relation of client identification and the area found and/or common carrier can be stored, facilitate follow-up area and/or the common carrier of searching correspondence according to client identification.
In the present embodiment, first search corresponding area and/or common carrier according to the gateway IP comprised in network connecting request, if search unsuccessfully, corresponding area and/or common carrier is searched again according to the base station information comprised in network connecting request, in this example, number of ways can be adopted to get area and/or common carrier belonging to mobile communication terminal, ensure that and finally get area and/or common carrier belonging to correct mobile communication terminal.
In one embodiment, belonging to above-mentioned localizing mobile communications terminals, the method for area and/or common carrier, also comprises step: return corresponding information resources according to the area found and/or common carrier to mobile communication terminal.
Namely the area found and/or common carrier can be used as area and/or common carrier belonging to mobile communication terminal.
Concrete, the information service corresponding with area belonging to mobile communication terminal and/or common carrier can be pushed to mobile communication terminal.
In the present embodiment, after getting the affiliated area of mobile communication terminal accurately and/or common carrier, push corresponding information service to mobile communication terminal, can guarantee to push information service accurately to mobile completely terminal.
In one embodiment, belonging to above-mentioned localizing mobile communications terminals, the method for area and/or common carrier can be performed by Cloud Server.Concrete, in Cloud Server, prestored base station information and corresponding relation that is regional and/or common carrier.The network connecting request of mobile communication terminal can be obtained by Cloud Server, in this corresponding relation, search the area corresponding with the base station information of mobile communication terminal and/or common carrier.In the present embodiment, by area and/or common carrier belonging to Cloud Server localizing mobile communications terminals, because Cloud Server has powerful disposal ability, therefore, it is possible to area and/or common carrier belonging to quicker localizing mobile communications terminals more accurately.
As shown in Figure 3, in one embodiment, the system of area and/or common carrier belonging to a kind of localizing mobile communications terminals, comprises 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 base station information corresponding to mobile communication terminal.
Concrete, the base station information that mobile communication terminal is corresponding is the information of the public mobile communication base station (referred to as base station) communicated to connect between the communication card (as SIM card) of mobile communication terminal.Such as, the common carrier belonging to the communication card of mobile communication terminal is operator A, then the base station communicated to connect with communication card is the base station of the operator A nearest with communication card.
Base station information comprises the relevant information of the common carrier belonging to 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 used for identification communication operator.
In one embodiment, the system of area and/or common carrier belonging to above-mentioned localizing mobile communications terminals also comprises request generation module (not shown), for obtaining base station information corresponding to mobile communication terminal, generate the network connecting request comprising base station information.
Concrete, in one embodiment, request generation module can obtain the communication data packet between the communication card of mobile communication terminal and base station, from communication data packet, parse base station information.
Area and/or operator's acquisition module 306 are for area corresponding to the base station information of searching mobile communication terminal in the corresponding relation of the base station information prestored with regional and/or common carrier and/or common carrier.
Concrete, in one embodiment, area and/or operator's acquisition module 306 can search corresponding common carrier according to network code in the corresponding relation of network code with common carrier, and search corresponding area in national code, region code, base station number with the corresponding relation in area according to national code, region code and base station number.Concrete, area can be province or city, county etc.
Namely the area corresponding with base station information found and/or common carrier can be used as area and/or common carrier belonging to mobile communication terminal.
In one embodiment, the network also comprising the request correspondence connected to the network of installing in mobile communication terminal in above-mentioned network connecting request connects the client identification of client.
Concrete, the network that mobile communication terminal is installed connects client (software of namely surfing the Net) for initiating network connecting request, and network connecting request comprises the client identification that network connects client.
The client identification that network connects client can generate when installing network and connecting client, and each network connects client identification corresponding to client.
Concrete, in one embodiment, request generation module can get the client identification that network connects client from the file of specifying, and is encapsulated in network connecting request by client identification.
In the present embodiment, as shown in Figure 4, belonging to 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, then set up the corresponding relation of client identification and the area found and/or common carrier.
After storing the corresponding relation of client identification and the area found and/or common carrier, the client identification that this corresponding relation can be used for connecting according to the network of mobile communication terminal client searches area and/or common carrier belonging to mobile communication terminal, can area and/or common carrier belonging to localizing mobile communications terminals fast and accurately according to this corresponding relation.
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, then in the corresponding relation of the client identification prestored with regional and/or common carrier, search area corresponding to the client identification that is connected client with above-mentioned network and/or common carrier.
In one embodiment, above-mentioned network connecting request also comprises gateway IP.In the present embodiment, area and/or operator's acquisition module 306 are for area corresponding to the gateway IP that searches request connected to the network comprise in the corresponding relation of the gateway IP prestored with regional and/or common carrier and/or common carrier, if do not find the area corresponding with gateway IP and/or common carrier, then the base station information prestored with area and/or common carrier corresponding relation in search the area corresponding with the base station information of mobile communication terminal and/or common carrier.
Concrete, the gateway IP that network connecting request comprises is gateway IP mobile communication terminal being connected to network of network connection device.Such as, if mobile communication terminal is connected to network by wireless router, then this gateway IP is the gateway IP of wireless router; If mobile communication terminal adopts GPRS technical battery to receive network, then network connecting request is sent to the server of common carrier corresponding to the communication card of mobile communication terminal by mobile communication terminal, be connected to network by the server of common carrier, then above-mentioned gateway IP is the gateway IP of the server of common carrier.
Concrete, request generation module can obtain gateway IP mobile communication terminal being connected to network of network connection device, is encapsulated in the network connecting request of mobile communication terminal by the gateway IP got.
In one embodiment, memory module 304 can prestore the gateway IP of the server of common carrier and corresponding relation that is regional and/or common carrier.If the gateway IP comprised in network connecting request is the gateway IP of the server of certain common carrier, then can according to this gateway IP the server of above-mentioned common carrier gateway IP with area and/or common carrier corresponding relation in find corresponding area and common carrier.If the network IP comprised in network connecting request is the gateway IP of certain wireless router had nothing to do with common carrier, then according to this gateway IP the server of above-mentioned common carrier gateway IP with area and/or common carrier corresponding relation in will search less than corresponding area and common carrier.
Further, in one embodiment, the network also comprising the request correspondence connected to the network of installing in mobile communication terminal in network connecting request connects the client identification of client.If find the area corresponding with gateway IP and/or common carrier, memory module 304 can store the corresponding relation of client identification and the area found and/or common carrier, facilitates follow-up area and/or the common carrier of searching correspondence according to client identification.
In the present embodiment, first search corresponding area and/or common carrier according to the gateway IP comprised in network connecting request, if search unsuccessfully, corresponding area and/or common carrier is searched again according to the base station information comprised in network connecting request, in this example, number of ways can be adopted to get area and/or common carrier belonging to mobile communication terminal, ensure that and finally get area and/or common carrier belonging to correct mobile communication terminal.
In one embodiment, the system of area and/or common carrier also comprises information resources pushing module (not shown) belonging to above-mentioned localizing mobile communications terminals, returns corresponding information resources for the area that finds according to area and/or operator's acquisition module 306 and/or common carrier to mobile communication terminal.
Namely the area found and/or common carrier can be used as area and/or common carrier belonging to mobile communication terminal.
Concrete, information resources pushing module can push the information service corresponding with area belonging to mobile communication terminal and/or common carrier to mobile communication terminal.
In the present embodiment, after getting the affiliated area of mobile communication terminal accurately and/or common carrier, push corresponding information service to mobile communication terminal, 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 area and/or common carrier belonging to localizing mobile communications terminals more accurately.
The method and system of area and/or common carrier belonging to above-mentioned localizing mobile communications terminals, the base station information that mobile communication terminal is corresponding is included in the network connecting request of mobile communication terminal, and prestoring base station information and corresponding relation that is regional and/or common carrier, the base station information corresponding according to mobile communication terminal searches the area corresponding with base station information and/or common carrier, searches the area that obtains and/or common carrier is area and/or common carrier belonging to mobile communication terminal.Said method and system, the base station information corresponding according to mobile communication terminal can get area and/or common carrier belonging to mobile communication terminal accurately, no longer need to obtain area and/or common carrier belonging to mobile communication terminal according to the gateway IP of the network access device be connected with mobile communication terminal, avoid and get mistake area and/or common carrier, to provide information service corresponding with area and/or common carrier accurately to user.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
The above embodiment only have expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but therefore can not 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.