Summary of the invention
Problems solved by the invention is to need the mobile terminal that positions there are hardware costs higher, the higher problem of power consumption.
To solve the above problems, technical solution of the present invention provides a kind of localization method of mobile terminal, comprising:
Mobile terminal is acquired parameter information and sends reception terminal, the parameter information for the parameter information
GPS coordinate data including the mobile terminal and at least one of access-in point information in a network environment;
The reception terminal positions the mobile terminal according to the parameter information.
Optionally, described access point information include the mobile terminal base station access point in a network environment identification
At least one of identification code of code, the media access control address of WIFI access point, service set and Bluetooth accessing point letter
Breath.
Optionally, the mobile terminal sends the reception terminal by short message mode for the parameter information.
Optionally, the reception terminal is the second mobile terminal or server.
Optionally, the mobile terminal sends the parameter information to the reception eventually after predetermined time or delay
End.
Optionally, the localization method of the mobile terminal further include:
The location information of the mobile terminal is sent the mobile terminal by the reception terminal;
The mobile terminal delay receives the location information.
Optionally, the parameter information further includes the temporal information for acquiring described access point information;The time of the delay
Length is associated with the temporal information of the acquisition described access point information.
Optionally, the reception terminal sends the movement by short message mode for the location information of the mobile terminal
Terminal.
Optionally, the localization method of the mobile terminal further include: the reception terminal is by the positioning of the mobile terminal
Information is sent to designated terminal.
Optionally, the localization method of the mobile terminal further include:
When the location information of the mobile terminal is unsatisfactory for preset locality condition, the reception terminal is to the movement
Terminal or designated terminal send a warning message.
Technical solution of the present invention also provides a kind of positioning system of mobile terminal, including mobile terminal, further includes receiving eventually
End;
The mobile terminal includes acquisition unit, and the acquisition unit is used for acquisition parameter information, the parameter information packet
The GPS coordinate data and the mobile terminal included at least one of access-in point information in a network environment;The movement
The collected parameter information of the acquisition unit institute is sent reception terminal by terminal;
The reception terminal is for positioning the mobile terminal according to the parameter information.
Optionally, the mobile terminal sends the reception terminal by short message mode for the parameter information.
Optionally, the positioning system of the mobile terminal further include: delay unit, for receiving to the mobile terminal
The time of time or the transmission parameter information from the location information for receiving terminal carry out delays time to control.
Optionally, the reception terminal sends the movement by short message mode for the location information of the mobile terminal
Terminal.
Optionally, the positioning system of the mobile terminal further include: designated terminal is sent out for receiving the reception terminal
The location information of the mobile terminal sent.
Optionally, the positioning system of the mobile terminal further include: Alarm Unit, for working as the positioning of the mobile terminal
When information is unsatisfactory for preset locality condition, Xiang Suoshu mobile terminal or designated terminal send a warning message.
Compared with prior art, technical solution of the present invention has the advantage that
Mobile terminal acquires the parameter information for being positioned, and sends reception terminal for the parameter information, connects
Positioning of the terminal according to parameter information realization to the mobile terminal is received, this method is positioned to the mobile terminal
When, the mobile terminal only needs to carry out simple data collection task, requires lower, nothing to the mobile terminal hardware configuration
Need to have the hardware that the localization methods such as GPS must have, and the mobile terminal does not need to carry out complicated location data yet
Processing, the data-handling capacity of mobile terminal is required it is lower, this method during being positioned to the mobile terminal,
The mobile terminal hardware cost is lower, and due to the mobile terminal acquisition parameter information data, without to data into
The operations such as row processing, so power consumption is lower.
It is compared with satellite positioning methods such as existing GPS, method provided by technical solution of the present invention can be to mobile whole
Indoor positioning is realized at end, and the satellite positioning methods such as GPS are generally only used for mobile terminal in the process of moving in outdoor
It is positioned.
Further, the mobile terminal can send reception terminal by short message mode for the parameter information, receive
Terminal can realize the positioning to the mobile terminal in turn based on the parameter information received, so that even if described mobile whole
In the case that data service is not supported in end, the parameter information can also be sent by way of short message, and then realization pair
The positioning of the mobile terminal.
It, can be by the location information after receiving terminal and completing positioning to the mobile terminal according to the parameter information
It is sent to the mobile terminal, the mobile terminal can be with location information transmitted by reception terminal described in real-time reception, can also
The location information is received to be delayed according to actual needs, so as to further decrease the power consumption of the mobile terminal.
After the reception terminal is completed to the positioning of mobile terminal, if judging the location information of the mobile terminal not
When meeting preset locality condition, the location information can be sent to the mobile terminal or by the location information
It is sent in other designated terminals, Xiang Suoshu mobile terminal, designated terminal send a warning message, to realize to described mobile whole
The real time monitoring of the location information at end.
Specific embodiment
As stated in the background art, in the prior art during positioning to mobile terminal, the mobile terminal is deposited
Hardware cost is higher, the higher problem of power consumption.
To solve the above problems, technical solution of the present invention provides a kind of localization method of mobile terminal.Fig. 1 is skill of the present invention
The flow diagram of the localization method for the mobile terminal that art scheme provides.
Step S1 is executed, mobile terminal is acquired parameter information and sends reception terminal for the parameter information,
The parameter information include the mobile terminal GPS coordinate data and in access-in point information in a network environment at least
It is a kind of.
In present specification, the mobile terminal refers to the mobile terminal for needing to be positioned.
The parameter information is for carrying out positioning required parameter to the mobile terminal, for example, to the shifting
During dynamic terminal is positioned, if the available GPS coordinate data to corresponding to it of mobile terminal, can be based on
GPS coordinate data realizes positioning.
Alternatively, it is also possible to based on mobile terminal access-in point information in a network environment realize to the mobile terminal
Positioning.
When the mobile terminal needs to position, access-in point information existing for its periphery may search for, and send it to
Receive terminal, described access point information include the mobile terminal the identification of base station access point in a network environment,
The media access control address (MAC Address) and/or service set (SSID) of WIFI access point, the identification code of Bluetooth accessing point
Deng for assisting the information positioned.The mobile terminal parameter information collected should include that the reception terminal carries out
Necessary information required for location Calculation.
The reception terminal can be the second mobile terminal or location-server etc., and second mobile terminal refers to separately
It is different from the terminal of the mobile terminal outside.The reception terminal can be responsible for the parameter transmitted based on mobile terminal letter specially
Breath realizes the positioning to the mobile terminal.The positioning that the reception terminal can respond one or more mobile terminal is asked
It asks.
After mobile terminal collects parameter information used for positioning, the parameter information can be sent to reception eventually
End.The parameter information can be sent to reception terminal in real time, can also be sent in sending time specified in advance,
It can be sent again after a suitable delay.
For example, can be acquired respectively to parameter information at multiple time points of setting, and by the multiple institute of mobile terminal
The parameter information of acquisition is sent in some preset sending time point, in this way can be to avoid equal after each acquisition parameter information
Immediately it is sent, system power dissipation can be effectively reduced.
Moreover, after mobile terminal collects parameter information, if mobile terminal does not have the condition of connection network at this time, i.e.,
Do not have the condition for sending parameter information, the parameter information can be stored, is restored in the network environment of mobile terminal
Afterwards, it is sent to the parameter information stored, that is, realizes that the delay to parameter information is sent.
Step S2 is executed, the reception terminal positions the mobile terminal according to the parameter information.
Terminal is received according to the parameter informations such as the access-in point information in a network environment realization of mobile terminal institute to institute
State the localization process of mobile terminal.For example, if in the parameter information including its periphery that the mobile terminal is searched
Existing WIFI hot spot information, then the reception terminal can be based on the WIFI hot spot information, using in the prior art logical
It crosses the method that WIFI hot spot information positions mobile terminal and realizes localization process;If including described in the parameter information
Its resident wireless base station id information, the adjacent cell list information, adjacent cell signal strength that mobile terminal is searched
Information etc., then the reception terminal can pass through the localization method of wireless base station based on the relevant information of above-mentioned base station access point
Realize the localization process to the mobile terminal.
Receive terminal can the auxiliary used for positioning such as information is included based on the parameter specific access-in point information believe
Breath realizes the localization process to the mobile terminal using corresponding location algorithm.
The localization method of mobile terminal provided by technical solution of the present invention, the mobile terminal is by system performance, hardware
The limitation such as configuration and electromagnetic capacity, so it is only completed simple parameter information collecting work, and based on parameter information realization pair
The localization process of the mobile terminal, which then passes through, receives terminal realization, can effectively reduce the hardware cost of the mobile terminal, drops
Low system power dissipation, and the indoor positioning operation to the mobile terminal may be implemented.
To make the above purposes, features and advantages of the invention more obvious and understandable, with reference to the accompanying drawing to the present invention
Specific embodiment be described in detail.
Fig. 2 is the flow diagram of the localization method of mobile terminal provided in an embodiment of the present invention, as shown in Fig. 2, moving
When dynamic terminal is positioned, step S201 is first carried out, mobile terminal initiates Location Request.
The Location Request can be initiated by user, can also be initiated by the specified application program in mobile terminal,
The time for initiating Location Request can be preset, Location Request is independently periodically initiated by the mobile terminal.
The corresponding positioning of mobile terminal initiation can be triggered according to user's actual need, different application scenarios etc. to ask
It asks.
For example, if can choose in different moments timing for being monitored to the position of the mobile terminal by institute
It states mobile terminal and independently initiates Location Request, to realize the demand monitored in real time to the position of mobile terminal.
Step S202 is executed, mobile terminal is acquired parameter information.
Mobile terminal may search for WIFI hot spot present in its periphery, the id information of currently resident wireless base station, phase
Adjacent cell list information, adjacent cell signal strength information, the information of identification code of Bluetooth accessing point and GPS coordinate etc., on
Reception terminal can be sent to by stating information, be positioned in order to receive terminal to the mobile terminal.
During mobile terminal is acquired parameter information, without being connected in searched network environment
In access point, it is only necessary to search access-in point information existing for periphery.
In the present embodiment, it can also include that acquisition is above-mentioned that the mobile terminal, which is sent in the parameter information for receiving terminal,
The time point of parameter information, so that can be with the time point of acquisition parameter information by receiving the obtained location information of terminal
It is corresponding.
In the present embodiment, the parameter information is sent to the reception terminal by the way of short message, so the ginseng
Number information, which can be converted into, can receive the format by the text formatting of SMS message transmission, the reception terminal accordingly
Short message, and it is handled.
In other embodiments, the parameter information can also be converted into the mobile terminal and receive terminal and set in advance
The communication format set, for the parameter information specific transformat it is not limited here.
Step S203 is executed, mobile terminal sends reception terminal for the parameter information by short message mode.
The reception terminal is the preset mobile terminal or server that can carry out localization process.Mobile whole
After end collects the parameter information by step S202, the end can be sent by short message by the parameter information automatically
End, this process are intervened without user.
Step S204 is executed, after mobile terminal sends the parameter information, the positioning related work of the mobile terminal
Into sleep state.
In order to save the power consumption of the mobile terminal, the reception is sent by the parameter information in the mobile terminal
After terminal, receive terminal can according to the parameter information to the mobile terminal carry out localization process, and at this time mobile terminal without
It needs to carry out information exchange, the calculating without the relevant position data of progress, place with the reception terminal or network side etc. again
The related works such as reason, the positioning related work of mobile terminal can enter sleep state at this time.
Step S205 is executed, terminal is received and judges whether it is location information.
After receiving terminal and receiving short message, need it is first determined whether for the location information from the mobile terminal.It can
To determine whether the short breath is fixed based on the information exchange rule between preset reception terminal and the mobile terminal
Position information, for example, whether being preset by the format for parsing the specified sign position in the message data for receiving short message
The mark of good location information receives whether the received short message of terminal institute is location information with this to determine.
If the judging result of step S205 is "No", S206 is thened follow the steps, it is no to then follow the steps S207.
Step S206 receives terminal and executes normal short message process flow.
By it is described reception terminal institute received short message be not the mobile terminal location information short message, so receive end
End is handled without carrying out localization process according to its conventional short message process flow.
Step S207 receives terminal and parses the short message containing location information, according to data obtained after parsing to described
Mobile terminal is positioned.
After receiving the short message containing parameter information used for positioning of the mobile terminal, first to the short message into
Row parsing receives terminal using relevant with the parameter information fixed to restore parameter information data contained in the short message
Position method carries out localization process to the mobile terminal, to obtain the location information of the mobile terminal.The location information can
To be specially geographic coordinate information where the mobile terminal locates.
After receiving terminal and obtaining the location information of the mobile terminal, the location information can be sent to the shifting
Dynamic terminal, can also the location information according to the demand of user to the mobile terminal judge, working as the location information
When being unsatisfactory for preset locality condition, send a warning message to the mobile terminal or other specified terminals, to prompt
Mobile terminal is stated currently to be in except pre-set region.
In the present embodiment, specifically to be carried out to the location information after the location information for obtaining the mobile terminal
It is illustrated for judgement.
Step S208 is executed, terminal is received and judges whether to meet locality condition.
The locality condition of corresponding mobile terminal is preset, in the present embodiment, the locality condition can be set as
The mobile terminal leaves some preset region, when judging the position of the mobile terminal with beyond preset institute
State mobile terminal can be with zone of action when, it can determine that the location information of the mobile terminal has met default position
Condition, executable step S209 provide warning information.
Step S209 is executed when step S208 judging result is "Yes", it is no to then follow the steps S210.
Step S209 receives terminal and sends a warning message to designated terminal or the mobile terminal.
The target of warning information transmission can be preassigned, the target can set user's phase of the mobile terminal
The care provider etc. of pass, if such as the user of the mobile terminal is minor, set when it leaves its artificial its of monitoring
Behind fixed zone of action, the reception terminal can send a warning message to its care provider, to ensure the minor
Security activity region.
The warning information can also be sent to the mobile terminal, to remind its activity of the user of the mobile terminal
Preset zone of action etc. is left in position.Specific sending object can be set accordingly according to the actual situation.The announcement
Being specifically as follows for alert information reminds the mobile terminal to leave preset zone of action etc..
After step S209, step S210 is executed.Terminal is being received to designated terminal or mobile terminal hair
After sending warning information, the mobile terminal can also be sent by the specific location information of the mobile terminal.
Step S210 receives terminal for the location information and is sent to the mobile terminal by way of short message.
In the case where the mobile terminal needs to obtain its location information, the reception terminal can be obtained by its
Location information is sent to the mobile terminal by way of short message.
It in other embodiments, can also be according to actual user's use demand, if the user of the mobile terminal is not necessarily to
Know the location information of its own, the mobile terminal can not also be sent by the location information.It can also be by institute's rheme
Confidence breath is sent to designated terminal, to help the designated terminal to understand the specific location situation of the mobile terminal.
Step S211 is executed, the mobile terminal receives short message and performs corresponding processing to it.
The mobile terminal also needs to judge it after receiving short message.It can be by pre-set
Communication, analysis protocol etc. parse received short message, to determine whether its received short message of institute is location information or announcement
Alert information.
It should be noted that the relevant positioning of the mobile terminal is related after the mobile terminal receives short message
Work can be switched to wake-up states from sleep state, to be parsed, be judged to short message received by the mobile terminal
Work.
In the present embodiment, the time that the mobile terminal receives short message can also be set in advance, can be set to
Timing receipt short message, such as it is set as certain several specific time points reception short message.The purpose for the arrangement is that further to drop
The system power dissipation of the low mobile terminal, if such as the mobile terminal at multiple time points trigger Location Request, it is described
Receiving terminal can accordingly handle to obtain the location information of multiple correspondences Location Request, if receive terminal is obtaining position every time
Be sent to the mobile terminal after information in real time, mobile terminal all real-time perfoming obtain, then location information more frequently when
It waits, can also enhance the system power dissipation of the mobile system.The mobile terminal can obtain the practical need of location information according to it
It asks by the way of timing receipt short message, only the short message containing location information is received at preset time point, to further decrease
The system power dissipation of the mobile terminal.
The time point of the default timing receipt short message of mobile terminal can carry out phase according to the actual demand of user
The setting answered can be set in specific setting in conjunction with the temporal information of mobile terminal parameter information collected,
For example, it can be set to starting to receive short message after a preset period after the time point of the parameter information of the acquisition.
In other embodiments, the mobile terminal can also be acquired parameter information and be passed through short using periodical
Letter sends parameter information collected in the reception terminal, to realize the position letter for periodically acquiring the mobile terminal
The function of breath realizes the continuous positioning function to the mobile terminal.
The localization method of mobile terminal provided by the present embodiment, the hardware of the mobile terminal is without supporting that GPS etc. is fixed
Hardware condition required for position is handled only needs acquisition parameter information, is passed through without complicated data processing work is carried out
Short message is sent to reception terminal, receive terminal according to received information realization to the positioning function of the mobile terminal, it is described
Mobile terminal hardware cost is lower.
Further, by using the transmission parameter information of short message, so that even if not supporting GPRS etc. in the mobile terminal
In the case where data service, the positioning operation to the mobile terminal also may be implemented, moreover, containing parameter information sending
After short message, the relevant positioning work of the mobile terminal can enter sleep state, and can be by periodically connecing after delay
System power dissipation can be effectively reduced in the method for receiving short message, effectively increases the stand-by time of mobile terminal.
The reception terminal, can be right according to preset locality condition after the location information for obtaining the mobile terminal
The mobile terminal or other designated terminals send a warning message or location information, allows to preferably to the movement
The location information of the user of terminal carries out effective monitoring.
Place that can be different in outdoor, interior etc. can obtain the location information of the mobile terminal, compared to GPS
Equal localization methods, localization method is simple, effective, solves what the localization methods such as GPS can not position indoor mobile terminal
Problem.
The localization method of corresponding above-mentioned mobile terminal, the embodiment of the present invention also provide a kind of positioning system of mobile terminal.
As shown in figure 3, the positioning system of the mobile terminal includes mobile terminal U11 and reception terminal U12.
The mobile terminal U11 includes acquisition unit U101.
The acquisition unit U101 is used for acquisition parameter information, and the parameter information includes that the GPS of the mobile terminal is sat
Mark data and at least one of access-in point information in a network environment.The mobile terminal is adopted the acquisition unit
The parameter information collected is sent to reception terminal.
The reception terminal U12 is for positioning the mobile terminal according to the parameter information.
The mobile terminal U11 can send the reception terminal U12 by short message mode for the parameter information, together
Sample, the reception terminal U12 send the mobile terminal U11 by short message mode for the location information of the mobile terminal.
The positioning system further includes delay unit U13, for receiving from the reception eventually to the mobile terminal U11
The time for holding the location information of U12 or the time for sending the parameter information carry out delays time to control.
The positioning system further includes designated terminal U14, for receiving the letter of positioning transmitted by the reception terminal U12
Breath.
The positioning system further includes Alarm Unit U15, is unsatisfactory for for the location information as the mobile terminal U11 pre-
If locality condition when, Xiang Suoshu mobile terminal U11, designated terminal U14 send a warning message.
Although present disclosure is as above, present invention is not limited to this.Anyone skilled in the art are not departing from this
It in the spirit and scope of invention, can make various changes or modifications, therefore protection scope of the present invention should be with claim institute
Subject to the range of restriction.