Summary of the invention
The technical problem to be solved in the present invention is, for the above-mentioned defect of prior art, provides a kind of access point based on mobile terminal automatically to ask and configuration processing method and system.To solve in prior art: user may not understand for APN (access point), cannot correct configuration of APN; For the user of frequent roaming, regular configuration of APN may be needed, cumbersome following defect.
The technical scheme that technical solution problem of the present invention adopts is as follows:
Access point based on mobile terminal is asked and a configuration processing method automatically, wherein, comprising:
A, acquisition location information of mobile terminal, and saved as primary importance information;
B, obtain location information of mobile terminal every setting-up time, when obtained location information of mobile terminal and primary importance information exceed thresholding apart, comprise the first short message of current geographic position information to carrier server transmission;
The first short message comprising current geographic position information that C, carrier server mobile terminal receive send, searches the access point that this geographical location information is corresponding in a database, and described access point is sent to mobile terminal with the second short message;
D, mobile terminal receive the second short message comprising access point that carrier server sends, judge that whether the access point that the access point that comprises in described second short message is current configured with mobile terminal is identical, if difference, automatic is the access point comprised in described second short message to mobile terminal configuration.
The described access point based on mobile terminal is asked and configuration processing method automatically, and wherein, described positional information, comprises the longitude of mobile terminal present position, latitude and height.
The described access point based on mobile terminal is asked and configuration processing method automatically, and wherein, the first short message comprising current geographic position information to carrier server transmission in described step B, specifically comprises:
B1, obtain location information of mobile terminal every setting-up time, mobile terminal generates and comprises the first short message content of current geographic position information;
B2, when obtained location information of mobile terminal and primary importance information exceed thresholding apart, send to carrier server and comprise the first short message of current geographic position information;
Wherein, the first short message content that described mobile terminal generates, comprises identification code, the longitude of mobile terminal present position, latitude with highly.
The described access point based on mobile terminal is asked and configuration processing method automatically, and wherein, described step C specifically comprises:
C1, when carrier server mobile terminal receive send comprise the first short message of current geographic position information time, obtain the content of short message;
C2, judge whether the content of short message includes identification code, then obtain the longitude of the mobile terminal present position comprised in the content of short message, latitude and height if yes;
C3, carrier server search this longitude, latitude and highly corresponding access point in a database;
C4, carrier server generate the second short message content comprising described access point, and send to mobile terminal;
Wherein, the second short message content that the commercial device of described operation generates, comprises identification code, access point.
The described access point based on mobile terminal is asked and configuration processing method automatically, and wherein, described step D specifically comprises:
D1, when mobile terminal receive carrier server send comprise the second short message of access point time, obtain the content of described second short message;
D2, judge whether the content of described second short message includes identification code, then obtain the access point comprised in the content of described second short message if yes;
D3, judging that whether the access point that the access point that comprises in described second short message is current configured with mobile terminal is identical, if difference, is the access point comprised in short message to mobile terminal configuration.
Access point based on mobile terminal is asked and a configuration process system automatically, wherein, comprising:
Position acquisition module, for obtaining location information of mobile terminal, and saved as primary importance information;
Relatively with sending module, for obtaining location information of mobile terminal every setting-up time, when obtained location information of mobile terminal and primary importance information exceed thresholding apart, send the first short message comprising current geographic position information to carrier server;
Search and sending module, for controlling the first short message comprising current geographic position information that carrier server mobile terminal receive sends, search the access point that this geographical location information is corresponding in a database, and described access point is sent to mobile terminal with short message;
Receiving with configuration module, receiving for controlling mobile terminal the second short message comprising access point that carrier server sends, judge that whether the access point that the access point that comprises in short message is current configured with mobile terminal is identical, if difference, automatic is the access point comprised in short message to mobile terminal configuration.
The described access point based on mobile terminal is asked and configuration process system automatically, and wherein, described comparison comprises with sending module:
Timer, for obtaining location information of mobile terminal every setting-up time;
Comparing unit, for obtained location information of mobile terminal and primary importance information distance apart and a threshold value are compared:
Short message generation unit, for generating the first short message comprising current geographic position information, this short message comprises identification code, the longitude of mobile terminal present position, latitude and height;
Short message transmitting element, for when obtained location information of mobile terminal and primary importance information exceed thresholding apart, sends the first short message comprising current geographic position information to carrier server.
The described access point based on mobile terminal is asked and configuration process system automatically, wherein, described in search and specifically comprise with sending module:
First acquiring unit, for send when carrier server mobile terminal receive comprise the first short message of current geographic position information time, obtain the content of the first short message;
First judging unit, for judging whether the content of the first short message includes identification code, then obtains the longitude of the mobile terminal present position comprised in the content of short message, latitude and height if yes;
Searching control module, searching this longitude, latitude and highly corresponding access point in a database for controlling carrier server;
Note generates and sending controling unit, generates the second short message content comprising described access point, and send to mobile terminal for controlling carrier server;
Wherein, the second short message content that the commercial device of described operation generates, comprises identification code, access point.
The described access point based on mobile terminal is asked and configuration process system automatically, and wherein, described reception and configuration module specifically comprise:
Second acquisition unit, for receive when mobile terminal carrier server send comprise the second short message of access point time, obtain the content of described second short message;
Second judging unit, for judging whether the content of described second short message includes identification code, then obtains the access point comprised in the content of short message if yes;
Dispensing unit, whether identical for judging the access point that the access point that comprises in described second short message is current configured with mobile terminal, if difference, be the access point comprised in short message to mobile terminal configuration.
The described access point based on mobile terminal is asked and configuration process system automatically, and wherein, described positional information, comprises the longitude of mobile terminal present position, latitude and height.
Access point based on mobile terminal provided by the present invention is asked and configuration processing method and system automatically, by obtaining location information of mobile terminal, and is saved as primary importance information; Start timer, obtain location information of mobile terminal every setting-up time, when obtained location information of mobile terminal and primary importance information exceed thresholding apart, send the short message comprising geographical location information to carrier server; Carrier server receives the short message comprising geographical location information that mobile terminal sends, and searches APN corresponding to this geographical location information (access point) in a database, and described APN is sent to mobile terminal with short message; Mobile terminal receives the short message comprising APN that carrier server sends, and judging that whether the APN that the APN that comprises in short message is current configured with mobile terminal is identical, if difference, is the APN comprised in short message to mobile terminal configuration; Automatically can configure the APN of mobile terminal in real time according to the change in location of user, thus remove the operation of user's manual configuration of APN under roaming state from, be reduced to operation, provide users with the convenient.
Embodiment
For making object of the present invention, technical scheme and advantage clearly, clearly, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 is that the access point that the present invention is based on mobile terminal asks the flow chart with the preferred embodiment of configuration processing method automatically.A kind of access point based on mobile terminal shown in Fig. 1 is asked and configuration processing method automatically, comprising:
Step S100, acquisition location information of mobile terminal, and saved as primary importance information;
Wherein, described positional information, comprises the longitude of mobile terminal present position, latitude and height.
In the present embodiment, for convenience, primary importance information is represented with variables L OCAL1; That is, in step S100, first obtain the longitude of mobile terminal present position, latitude and height, then by described longitude, latitude and highly assignment to LOCAL1.
Step S200, obtain location information of mobile terminal every setting-up time, when obtained location information of mobile terminal and primary importance information exceed thresholding apart, comprise the first short message of current geographic position information to carrier server transmission.
In the present invention, timer can be started, obtain location information of mobile terminal every setting-up time (such as 10 seconds), when obtained location information of mobile terminal and primary importance information exceed thresholding apart, send the first short message comprising geographical location information to operator.
Particularly, mobile terminal starts timer, performs following steps every setting-up time (such as 10 seconds):
S201, obtains location information of mobile terminal every setting-up time, namely obtains the longitude of the present position of mobile terminal, latitude and height;
S202, when the longitude obtained in step S201, latitude and height, with the longitude preserved in LOCAL1, latitude and height at a distance of whether exceeding thresholding (such as 1 kilometer), then send to carrier server the first short message comprising the longitude, latitude and the height that obtain in step S201 if yes;
Wherein, described step S202, the content of described first short message comprises: identification code, and the longitude obtained in step S201, latitude and height;
Described identification code, for a string 16 system sequences, for identifying this note, mobile terminal may send various short message content to operator, and in order to distinguish with all the other short message contents, herein with the identification code being placed in short message content beginning show this short message content include the longitude of mobile terminal, latitude with highly; For example, identification code is 0x6965954abceffffeefcbb0212.
The first short message comprising current geographic position information that step S300, carrier server mobile terminal receive send, searches the access point that this geographical location information is corresponding in a database, and described access point is sent to mobile terminal with the second short message;
Wherein, described step S300 specifically comprises:
C1, when carrier server mobile terminal receive send comprise the first short message of current geographic position information time, obtain the content of short message;
C2, judge whether the content of short message includes identification code, then obtain the longitude of the mobile terminal present position comprised in the content of short message, latitude and height if yes;
C3, carrier server search this longitude, latitude and highly corresponding access point in a database;
C4, carrier server generate the second short message content comprising described access point, and send to mobile terminal;
Wherein, the second short message content that the commercial device of described operation generates, comprises identification code, access point.
Particularly, when operator connect server receive short message time, obtain the content of short message; Whether the content beginning judging short message is identification code (such as identification code is 0x6965954abceffffeefcbb0212), if yes then carrier server just think comprise middle mobile terminal present position in short message content longitude, latitude with highly;
Then, operator searches this longitude, latitude and highly corresponding APN in a database;
Then, operator generates short message content, and sends to mobile terminal;
Wherein, described operator generates short message content, with identification code (such as identification code is 0x6965954abceffffeefcbb0212) beginning, and heel APN.
Step S400, mobile terminal receive the second short message comprising access point that carrier server sends, judge that whether the access point that the access point that comprises in described second short message is current configured with mobile terminal is identical, if difference, automatic is the access point comprised in described second short message to mobile terminal configuration.
Wherein, described step S400 specifically comprises:
1), when mobile terminal receive carrier server send comprise the second short message of access point time, obtain the content of described second short message;
2), judge whether the content of described second short message includes identification code, then obtain the access point comprised in the content of described second short message if yes;
3), judging that whether the access point that the access point that comprises in described second short message is current configured with mobile terminal is identical, if difference, is the access point comprised in short message to mobile terminal configuration.
Particularly, when mobile terminal receives described second short message of carrier server transmission, the content of described second short message is obtained;
Judge that whether the content of described second short message is with identification code (such as identification code is 0x6965954abceffffeefcbb0212) beginning, then obtains the APN(access point comprised in the content of described second short message if yes) information;
Judge the APN(access point comprised in described second short message) the APN(access point current configured with mobile terminal) whether identical, if difference, be the APN comprised in short message to mobile terminal configuration.
Visible, the access point based on mobile terminal that the embodiment of the present invention provides is asked and configuration processing method automatically, can realize mobile terminal according to positional information, automatic configuration of APN (access point); Especially for the user of frequent roaming, do not need regular configuration of APN, greatly provide users with the convenient.
Based on said method embodiment, present invention also offers a kind of access point based on mobile terminal and automatically ask and configuration process system, as shown in Figure 2, described system comprises:
Position acquisition module 210, for obtaining location information of mobile terminal, and saved as primary importance information; As detailed above.
Relatively with sending module 220, for obtaining location information of mobile terminal every setting-up time, when obtained location information of mobile terminal and primary importance information exceed thresholding apart, send the first short message comprising current geographic position information to carrier server; As detailed above.
Search and sending module 230, for controlling the first short message comprising current geographic position information that carrier server mobile terminal receive sends, search the access point that this geographical location information is corresponding in a database, and described access point is sent to mobile terminal with short message; As detailed above.
Receiving with configuration module 240, receiving for controlling mobile terminal the second short message comprising access point that carrier server sends, judge that whether the access point that the access point that comprises in short message is current configured with mobile terminal is identical, if difference, automatic is the access point comprised in short message to mobile terminal configuration; As detailed above.
Further, the described access point based on mobile terminal is asked and configuration process system automatically, and wherein, described comparison comprises with sending module:
Timer, for obtaining location information of mobile terminal every setting-up time; As detailed above.
Comparing unit, for comparing obtained location information of mobile terminal and primary importance information distance apart and a threshold value; As detailed above.
Short message generation unit, for generating the first short message comprising current geographic position information, this short message comprises identification code, the longitude of mobile terminal present position, latitude and height; As detailed above.
Short message transmitting element, for when obtained location information of mobile terminal and primary importance information exceed thresholding apart, sends the first short message comprising current geographic position information to carrier server; As detailed above.
Preferably, the described access point based on mobile terminal is asked and configuration process system automatically, wherein, described in search and specifically comprise with sending module:
First acquiring unit, for send when carrier server mobile terminal receive comprise the first short message of current geographic position information time, obtain the content of the first short message; As detailed above.
First judging unit, for judging whether the content of the first short message includes identification code, then obtains the longitude of the mobile terminal present position comprised in the content of short message, latitude and height if yes; As detailed above.
Searching control module, searching this longitude, latitude and highly corresponding access point in a database for controlling carrier server; As detailed above.
Note generates and sending controling unit, generates the second short message content comprising described access point, and send to mobile terminal for controlling carrier server; As detailed above.
Wherein, the second short message content that the commercial device of described operation generates, comprises identification code, access point.
Preferably, the described access point based on mobile terminal is asked and configuration process system automatically, and wherein, described reception and configuration module specifically comprise:
Second acquisition unit, for receive when mobile terminal carrier server send comprise the second short message of access point time, obtain the content of described second short message; As detailed above.
Second judging unit, for judging whether the content of described second short message includes identification code, then obtains the access point comprised in the content of short message if yes; As detailed above.
Dispensing unit, whether identical for judging the access point that the access point that comprises in described second short message is current configured with mobile terminal, if difference, be the access point comprised in short message to mobile terminal configuration; As detailed above.
The described access point based on mobile terminal is asked and configuration process system automatically, and wherein, described positional information, comprises the longitude of mobile terminal present position, latitude and height.
In sum, the access point based on mobile terminal provided by the present invention is asked and configuration processing method and system automatically, by obtaining location information of mobile terminal, and is saved as primary importance information; Start timer, obtain location information of mobile terminal every setting-up time, when obtained location information of mobile terminal and primary importance information exceed thresholding apart, send the short message comprising geographical location information to carrier server; Carrier server receives the short message comprising geographical location information that mobile terminal sends, and searches APN corresponding to this geographical location information (access point) in a database, and described APN is sent to mobile terminal with short message; Mobile terminal receives the short message comprising APN that carrier server sends, and judging that whether the APN that the APN that comprises in short message is current configured with mobile terminal is identical, if difference, is the APN comprised in short message to mobile terminal configuration; Automatically can configure the APN of mobile terminal in real time according to the change in location of user, thus remove the operation of user's manual configuration of APN under roaming state from, be reduced to operation, provide users with the convenient.
Should be understood that, application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can be improved according to the above description or convert, and all these improve and convert the protection range that all should belong to claims of the present invention.