Summary of the invention
The technical problem to be solved in the present invention is that in view of the above drawbacks of the prior art, providing a kind of based on mobile whole
The access point at end is requested and configuration processing method and system automatically.To solve in the prior art: user may be for APN (access
Point) it does not know about, it can not correct configuration of APN;For the user frequently roamed, it may be necessary to regular configuration of APN, it is more troublesome
Following defect.
The technical proposal for solving the technical problem of the invention is as follows:
A kind of access point based on mobile terminal is requested automatically and configuration processing method, wherein includes:
A, location information of mobile terminal is obtained, and is saved as first location information;
B, location information of mobile terminal is obtained every setting time, when acquired location information of mobile terminal and first position
When information is apart more than thresholding, the first short message comprising current geographic position information is sent to carrier server;
C, carrier server receives the first short message comprising current geographic position information that mobile terminal is sent, in number
According to searching the corresponding access point of the geographical location information in library, and by described access point with the second short message be sent to it is mobile eventually
End;
D, mobile terminal receives the second short message comprising access point of carrier server transmission, judges described second
Whether the access point for including in short message and the presently configured access point of mobile terminal are identical, automatically to mobile whole if different
End is configured to the access point for including in second short message.
The access point based on mobile terminal is requested automatically and configuration processing method, wherein the location information, packet
Longitude, latitude and the height of the present position containing mobile terminal.
The access point based on mobile terminal is requested automatically and configuration processing method, wherein in the step B to
Carrier server sends the first short message comprising current geographic position information, specifically includes:
B1, location information of mobile terminal is obtained every setting time, it includes current geographic position information that mobile terminal, which generates,
The first short message content;
B2, when acquired location information of mobile terminal and first location information are more than apart thresholding, to carrier service
Device sends the first short message comprising current geographic position information;
Wherein, the first short message content that the mobile terminal generates, including identification code, the warp of mobile terminal present position
Degree, latitude and height.
The access point based on mobile terminal is requested automatically and configuration processing method, wherein the step C is specifically wrapped
It includes:
C1, when carrier server receive mobile terminal send the first short message comprising current geographic position information
When, obtain the content of short message;
Whether C2, the content for judging short message include identification code, if YES then including in the content of acquisition short message
Longitude, latitude and the height of mobile terminal present position;
C3, carrier server search the longitude, latitude access point corresponding with height in the database;
C4, carrier server generate the second short message content including described access point, and are sent to mobile terminal;
Wherein, second short message content runing commercial device and generating, including identification code, access point.
The access point based on mobile terminal is requested automatically and configuration processing method, wherein the step D is specifically wrapped
It includes:
D1, when mobile terminal receive carrier server transmission the second short message comprising access point when, acquisition institute
State the content of the second short message;
Whether D2, the content for judging second short message include identification code, if YES then obtaining second short message
The access point for including in the content of breath;
D3, judge the access point for including in second short message access point presently configured with mobile terminal whether phase
It together, is the access point for including in short message to mobile terminal configuration if different.
A kind of access point based on mobile terminal is requested and configuration processing system automatically, wherein includes:
Position acquisition module, for obtaining location information of mobile terminal, and be saved as first location information;
Compare with sending module, for obtaining location information of mobile terminal every setting time, when acquired mobile terminal
When location information and first location information are apart more than thresholding, send to carrier server comprising current geographic position information
First short message;
Lookup and sending module include current geographic position for control carrier server reception mobile terminal transmission
First short message of information searches the corresponding access point of the geographical location information in the database, and by described access point with short
Information is sent to mobile terminal;
Receive the comprising access point that carrier server transmission is received with configuration module, for controlling mobile terminal
Two short messages judge whether the access point for including in short message and the presently configured access point of mobile terminal are identical, if different
It is automatically then the access point for including in short message to mobile terminal configuration.
The access point based on mobile terminal is requested and configuration processing system automatically, wherein the comparison and transmission mould
Block includes:
Timer, for obtaining location information of mobile terminal every setting time;
Comparing unit is used for acquired location information of mobile terminal and first location information distance and a thresholding
Value is compared:
Short message generation unit, for generating the first short message comprising current geographic position information, which includes
Identification code, longitude, latitude and the height of mobile terminal present position;
Short message transmission unit, for being apart more than thresholding when acquired location information of mobile terminal and first location information
When, the first short message comprising current geographic position information is sent to carrier server.
The access point based on mobile terminal is requested and configuration processing system automatically, wherein the lookup and transmission mould
Block specifically includes:
First acquisition unit, for including current geographic position information when carrier server reception mobile terminal transmission
The first short message when, obtain the first short message content;
First judging unit, for judging whether the content of the first short message includes identification code, if YES then obtaining short
Longitude, latitude and the height for the mobile terminal present position for including in the content of information;
Control module is searched, to search the longitude, latitude in the database corresponding with height for controlling carrier server
Access point;
Short message generates and sends control unit, short for controlling carrier server generation second including described access point
Believe content, and is sent to mobile terminal;
Wherein, second short message content runing commercial device and generating, including identification code, access point.
The access point based on mobile terminal is requested and configuration processing system automatically, wherein the reception and configuration mould
Block specifically includes:
Second acquisition unit, second comprising access point for receiving carrier server transmission when mobile terminal are short
When information, the content of second short message is obtained;
Second judgment unit, for judging whether the content of second short message includes identification code, if YES then obtaining
Take the access point for including in the content of short message;
Configuration unit connects for judging that the access point for including in second short message and mobile terminal are presently configured
Whether access point is identical, is the access point for including in short message to mobile terminal configuration if different.
The access point based on mobile terminal is requested and configuration processing system automatically, wherein the location information includes
Longitude, latitude and the height of mobile terminal present position.
Access point provided by the present invention based on mobile terminal is requested automatically and configuration processing method and system, by obtaining
Location information of mobile terminal is taken, and is saved as first location information;Start timer, is obtained every setting time mobile whole
End position information, when acquired location information of mobile terminal and first location information are more than apart thresholding, to carrier service
Device sends the short message comprising geographical location information;Carrier server receives believing comprising geographical location for mobile terminal transmission
The short message of breath searches the corresponding APN of the geographical location information (access point) in the database, and by the APN with short message
It is sent to mobile terminal;Mobile terminal receives the short message comprising APN of carrier server transmission, judges to wrap in short message
Whether the APN contained and the presently configured APN of mobile terminal are identical, and being in short message to mobile terminal configuration if different includes
APN;The APN of mobile terminal can be automatically configured according to the change in location of user in real time, to remove user from roaming state
Under manual configuration of APN operation, be reduced to operate, provide users with the convenient.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer and more explicit, right as follows in conjunction with drawings and embodiments
The present invention is further described.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and do not have to
It is of the invention in limiting.
Referring to Figure 1, Fig. 1 be requested automatically the present invention is based on the access point of mobile terminal it is preferable with configuration processing method
The flow chart of embodiment.A kind of access point based on mobile terminal shown in FIG. 1 is requested automatically and configuration processing method, comprising:
Step S100, location information of mobile terminal is obtained, and is saved as first location information;
Wherein, the location information, longitude, latitude comprising mobile terminal present position and height.
In the present embodiment, for convenience, first location information is indicated with variables L OCAL1;That is step
In S100, the longitude, latitude and height of mobile terminal present position are first obtained, then by the longitude, latitude and height assignment
To LOCAL1.
Step S200, every setting time obtain location information of mobile terminal, when acquired location information of mobile terminal with
When first location information is apart more than thresholding, the first short message comprising current geographic position information is sent to carrier server
Breath.
In the present invention, timer can star, obtain location information of mobile terminal every setting time (such as 10 seconds), when
When acquired location information of mobile terminal and first location information are apart more than thresholding, send to operator and believe comprising geographical location
First short message of breath.
Specifically, mobile terminal starts timer, executes following steps every setting time (for example 10 seconds):
S201, every setting time obtain location information of mobile terminal, i.e., acquisition mobile terminal present position longitude,
Latitude and height;
S202, when longitude acquired in step S201, latitude and height, with saved in LOCAL1 longitude, latitude with
Whether height is at a distance of being more than thresholding (for example 1 kilometer), if YES then sending to carrier server comprising being obtained in step S201
First short message of the longitude, latitude and the height that take;
Wherein, the step S202, the content of first short message include: acquired in identification code and step S201
Longitude, latitude and height;
The identification code is a string of 16 system sequences, and the short message, mobile terminal may be sent to operator for identification
Various short message contents, and in order to be distinguished with remaining short message content, herein with the identification for being placed in short message content beginning
Code shows to include the longitude of mobile terminal, latitude and height in the short message content;For example, identification code is
0x6965954abceffffeefcbb0212。
Step S300, carrier server receives the first short message comprising current geographic position information that mobile terminal is sent
Breath, searches the corresponding access point of the geographical location information, and described access point is sent to the second short message in the database
Mobile terminal;
Wherein, the step S300 is specifically included:
C1, when carrier server receive mobile terminal send the first short message comprising current geographic position information
When, obtain the content of short message;
Whether C2, the content for judging short message include identification code, if YES then including in the content of acquisition short message
Longitude, latitude and the height of mobile terminal present position;
C3, carrier server search the longitude, latitude access point corresponding with height in the database;
C4, carrier server generate the second short message content including described access point, and are sent to mobile terminal;
Wherein, second short message content runing commercial device and generating, including identification code, access point.
Specifically, when operator, which connects server, receives short message, the content of short message is obtained;Judge the content of short message
Whether beginning is identification code (for example, identification code 0x6965954abceffffeefcbb0212), if YES then carrier service
Device just thinks longitude, latitude and height in short message content comprising middle mobile terminal present position;
Then, the longitude, latitude APN corresponding with height search in the database in operator;
Then, operator generates short message content, and is sent to mobile terminal;
Wherein, the operator generates short message content, and with identification code, (for example, identification code is
0x6965954abceffffeefcbb0212) beginning followed by APN.
Step S400, mobile terminal receives the second short message comprising access point of carrier server transmission, judgement
Whether the access point for including in second short message and the presently configured access point of mobile terminal are identical, automatic if different
It is the access point for including in second short message to mobile terminal configuration.
Wherein, the step S400 is specifically included:
1), when mobile terminal receives the second short message comprising access point of carrier server transmission, institute is obtained
State the content of the second short message;
2) whether the content for, judging second short message includes identification code, if YES then obtaining second short message
The access point for including in the content of breath;
3), judge the access point for including in second short message access point presently configured with mobile terminal whether phase
It together, is the access point for including in short message to mobile terminal configuration if different.
Specifically, when mobile terminal, which receives carrier server, sends second short message, described second is obtained
The content of short message;
Judge second short message content whether with identification code (for example, identification code is
0x6965954abceffffeefcbb0212) start, if YES then the APN for including in the content of acquisition second short message
(access point) information;
Judge the APN(access point for including in second short message) it is accessed with the presently configured APN(of mobile terminal
Point) it is whether identical, it is the APN for including in short message to mobile terminal configuration if different.
As it can be seen that the access point provided in an embodiment of the present invention based on mobile terminal is requested automatically and configuration processing method, it can
To realize that mobile terminal according to location information, automatically configures APN(access point);Especially for the user frequently roamed, do not need
Regular configuration of APN, provides users with the convenient significantly.
Based on above method embodiment, the present invention also provides a kind of access points based on mobile terminal to request and match automatically
Processing system is set, as shown in Fig. 2, the system comprises:
Position acquisition module 210, for obtaining location information of mobile terminal, and be saved as first location information;Tool
Body is as described above.
Compare with sending module 220, for obtaining location information of mobile terminal every setting time, when acquired mobile whole
When end position information and first location information are apart more than thresholding, sending to carrier server includes current geographic position information
The first short message;As detailed above.
Lookup and sending module 230 include current geographic for control carrier server reception mobile terminal transmission
First short message of location information, searches the corresponding access point of the geographical location information in the database, and by described access point
Mobile terminal is sent to short message;As detailed above.
Receive with configuration module 240, for control mobile terminal receive carrier server transmission comprising access point
The second short message, judge whether the access point for including in short message and the presently configured access point of mobile terminal identical, if
It is different then automatically to mobile terminal configuration be short message in include access point;As detailed above.
Further, the access point based on mobile terminal is requested and configuration processing system automatically, wherein the comparison
Include: with sending module
Timer, for obtaining location information of mobile terminal every setting time;As detailed above.
Comparing unit is used for acquired location information of mobile terminal and first location information distance and a thresholding
Value is compared;As detailed above.
Short message generation unit, for generating the first short message comprising current geographic position information, which includes
Identification code, longitude, latitude and the height of mobile terminal present position;As detailed above.
Short message transmission unit, for being apart more than thresholding when acquired location information of mobile terminal and first location information
When, the first short message comprising current geographic position information is sent to carrier server;As detailed above.
Preferably, the access point based on mobile terminal request automatically with configuration processing system, wherein it is described lookup with
Sending module specifically includes:
First acquisition unit, for including current geographic position information when carrier server reception mobile terminal transmission
The first short message when, obtain the first short message content;As detailed above.
First judging unit, for judging whether the content of the first short message includes identification code, if YES then obtaining short
Longitude, latitude and the height for the mobile terminal present position for including in the content of information;As detailed above.
Control module is searched, to search the longitude, latitude in the database corresponding with height for controlling carrier server
Access point;As detailed above.
Short message generates and sends control unit, short for controlling carrier server generation second including described access point
Believe content, and is sent to mobile terminal;As detailed above.
Wherein, second short message content runing commercial device and generating, including identification code, access point.
Preferably, the access point based on mobile terminal request automatically with configuration processing system, wherein it is described reception with
Configuration module specifically includes:
Second acquisition unit, second comprising access point for receiving carrier server transmission when mobile terminal are short
When information, the content of second short message is obtained;As detailed above.
Second judgment unit, for judging whether the content of second short message includes identification code, if YES then obtaining
Take the access point for including in the content of short message;As detailed above.
Configuration unit connects for judging that the access point for including in second short message and mobile terminal are presently configured
Whether access point is identical, is the access point for including in short message to mobile terminal configuration if different;As detailed above.
The access point based on mobile terminal is requested and configuration processing system automatically, wherein the location information includes
Longitude, latitude and the height of mobile terminal present position.
In conclusion the access point provided by the present invention based on mobile terminal requests automatically and configuration processing method and is
System by obtaining location information of mobile terminal, and is saved as first location information;Start timer, every setting time
Location information of mobile terminal is obtained, when acquired location information of mobile terminal and first location information are more than apart thresholding, to
Carrier server sends the short message comprising geographical location information;Carrier server receive mobile terminal transmission include
The short message of geographical location information searches the corresponding APN of the geographical location information (access point) in the database, and will be described
APN is sent to mobile terminal with short message;Mobile terminal receives the short message comprising APN of carrier server transmission, sentences
Whether the APN and the presently configured APN of mobile terminal for including in disconnected short message are identical, are to mobile terminal configuration if different
The APN for including in short message;The APN that mobile terminal can be automatically configured according to the change in location of user in real time, to remove use from
The operation of family manual configuration of APN under roaming state, is reduced to operate, provide users with the convenient.
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can
With improvement or transformation based on the above description, all these modifications and variations all should belong to the guarantor of appended claims of the present invention
Protect range.