CN109005509A - A kind of method of locating terminal, device, terminal and storage medium - Google Patents

A kind of method of locating terminal, device, terminal and storage medium Download PDF

Info

Publication number
CN109005509A
CN109005509A CN201811183591.5A CN201811183591A CN109005509A CN 109005509 A CN109005509 A CN 109005509A CN 201811183591 A CN201811183591 A CN 201811183591A CN 109005509 A CN109005509 A CN 109005509A
Authority
CN
China
Prior art keywords
epo
file
terminal
module
locating module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811183591.5A
Other languages
Chinese (zh)
Other versions
CN109005509B (en
Inventor
寻果
周小强
刘开锋
廖燕良
黄琼铭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Boshijie Technology Co ltd
Original Assignee
Shenzhen Boshijie Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Boshijie Technology Co ltd filed Critical Shenzhen Boshijie Technology Co ltd
Priority to CN201811183591.5A priority Critical patent/CN109005509B/en
Publication of CN109005509A publication Critical patent/CN109005509A/en
Application granted granted Critical
Publication of CN109005509B publication Critical patent/CN109005509B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

The embodiment of the invention discloses a kind of method of locating terminal, device, terminal and storage mediums.This method includes obtaining EPO file by control module, sends locating module for the EPO file;The locating module is sent to by the reference position point that the control module will acquire;The location data of the terminal is determined according to the EPO file and the reference position point by the locating module.The technical solution of the embodiment of the present invention can be realized terminal and quickly position, and quickly determine that the location data of terminal improves terminal positioning efficiency so as to shorten the time that terminal positions for the first time according to EPO file and reference position point by using locating module.

Description

A kind of method of locating terminal, device, terminal and storage medium
Technical field
The present embodiments relate to field of locating technology more particularly to a kind of localization methods, device, terminal for terminal And storage medium.
Background technique
Currently, location technology has had been applied to the different field such as logistics, traffic, power grid, medical treatment, application prospect is wide Wealthy, closely bound up some terminal devices also all have positioning function with people's lives, for example, smart phone, tablet computer With car-mounted terminal etc..
It is long the time required to being positioned for the first time due to global positioning system (Global Positioning System, GPS), it is existing There is technology that assistant GPS (Assisted GPS, A-GPS) technology is used to position terminal in real time mostly, A-GPS technology utilizes Mobile network provides almanac data to GPS, so that assistant GPS shortens the time positioned for the first time to terminal.But restart in terminal Or in the case where powering on, A-GPS technology is also longer the time required to positioning for the first time, is not able to satisfy user to the need of terminal positioning speed It asks.
Summary of the invention
The present invention provides localization method, device, terminal and the storage medium of a kind of terminal, is fast and effeciently positioned with realizing Terminal location.
In a first aspect, the embodiment of the invention provides a kind of method of locating terminal, which comprises
Extension predicted orbit (Extended Prediction Orbit, EPO) file is obtained by control module, by institute State the locating module that EPO file is sent to the terminal;
The locating module is sent to by the reference position point that the control module will acquire;
The positioning number of the terminal is determined according to the EPO file and the reference position point by the locating module According to.
Optionally, before the acquisition EPO file by control module, further includes: detected by the control module The validity for the EPO file being stored therein;When file is invalid by the EPO, obtained by the control module from EPO server EPO file simultaneously detects validity.
Optionally, it before the validity of the EPO file being stored therein by control module detection, also wraps It includes:
When monitoring that the locating module powers on or the locating module restarts, net is carried out to the locating module When the school network time protocol (Network Time Protocol, NTP), and the locating module is updated according to the time of calibration Current time;
If the school NTP can not be carried out to the locating module, the real-time clock (Real-Time of the terminal is obtained Clock, RTC) current time of the time as the locating module;
If the RTC time of the terminal can not be obtained, the time of the EPO server is obtained from the EPO server Current time as the locating module.
Optionally, the validity that the EPO file is detected by the control module, comprising:
If the current time of the time of the EPO file got and the locating module, difference is less than or equal to pre- If time threshold, and (the Message Digest of Message Digest 55 corresponding to the EPO file got Algorithm 5, MD5) check value is consistent with the MD5 check value obtained from EPO server, then judge that the EPO file is effective;
Wherein, the MD5 check value obtained from the EPO server is added by the EPO server by using MD5 algorithm The close EPO file obtains.
Optionally, the reference position point that will acquire by the control module is sent to the locating module, packet It includes:
If the control module is stored with the anchor point that the locating module is sent before power-off, and the anchor point has Effect, then using the effective position point as the reference position point;
If the anchor point that the control module is powered on or sent before power-off without storing the locating module, will be current The base station information got is sent to EPO server, and the latitude and longitude information that the EPO server received is issued as Reference position point;
Wherein, the latitude and longitude information is obtained by the EPO server by parsing the base station information.
Optionally, EPO file is obtained by the control module, comprising:
Predetermined period is divided into multiple preset time periods;
To the preset termination time since the initial time of the preset time period, sends and obtain to the EPO server The instruction of EPO file;
If before reaching the preset termination time, obtain the EPO file number be less than preset times, then continue to The EPO server sends the instruction for obtaining EPO file;
If before reaching the preset termination time, the number for obtaining the EPO file is equal to preset times, then abandon EPO file is obtained in this described preset time period, and next preset time period is waited to obtain EPO file.
It is optionally, described to send locating module for the EPO file, comprising:
The EPO file is divided into the file packet of preset quantity;
The file packet of the preset quantity is successively handed down to the locating module;
Receive the locating module and be properly received the response returned after each file packet, if do not receive file packet receive at The response of function then retransmits the file packet;
If the number of responses that the locating module returns is equal to preset quantity, judge that the EPO file is sent completely.
Second aspect, the embodiment of the invention also provides a kind of terminal positioning device, the terminal positioning device includes:
EPO file acquisition and sending module send the EPO file to for obtaining EPO file by control module Locating module;
Reference position point sending module, the reference position point for will acquire by the control module are sent to described Locating module;
Execution module is positioned, for passing through the locating module, according to the EPO file and the reference position point, really The location data of the fixed terminal.
The third aspect, the embodiment of the invention also provides a kind of terminal, the terminal includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the method for locating terminal that any embodiment of that present invention provides.
Fourth aspect stores on the storage medium the embodiment of the invention also provides a kind of computer readable storage medium There is computer program, which is characterized in that realize that any embodiment of that present invention provides terminal positioning when the program is executed by processor Method.
The embodiment of the present invention obtains EPO file and reference position point by control module and is sent to locating module, positions Module quickly determines terminal positioning data according to EPO file and reference position point, thus when solving locating module and positioning for the first time Between longer problem, realize and shorten time for positioning for the first time, realize the effect quickly positioned to terminal.
Detailed description of the invention
Fig. 1 is the flow chart of one of the embodiment of the present invention one method of locating terminal;
Fig. 2 is the flow chart of one of the embodiment of the present invention two method of locating terminal;
Fig. 3 is the flow chart of one of the embodiment of the present invention three method of locating terminal;
Fig. 4 is the structural schematic diagram of one of embodiment of the present invention four terminal positioning device;
Fig. 5 is the structural schematic diagram of one of the embodiment of the present invention five terminal.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart for method of locating terminal that the embodiment of the present invention one provides, and the present embodiment is applicable to fixed The case where position module powers on or locating module restarts, this method can be executed by terminal positioning device, which can be with It is realized, and is can integrate in the terminal by hardware and/or software.As shown in Figure 1, this method comprises:
Step 110 obtains EPO file by control module, sends locating module for EPO file.
Control module can be single-chip microcontroller, be also possible to micro-control unit (Microcontroller Unit, MCU), also It can be other kinds of controller.
Optionally, control module obtains the EPO file having stored in control module, and is sent to locating module;Or Control module obtains EPO file from EPO server, and is sent to locating module;Or control module obtains EPO text from other approach Part, and it is sent to locating module.
Wherein, EPO file is obtained by control module, including
Predetermined period is divided into multiple preset time periods;
Predetermined period can be 24 hours, can be 48 hours, is also possible to other time cycles.Predetermined period is drawn Point, it can be random division, be also possible to fixed time period division.
For example, since the effective time of EPO file is 6 and a half hours, one day 24 hour was divided into 4 Period as preset time period, is respectively as follows: 0:00-6:30,6:00-12:30,12:00-18:30 and 18:00-0:30.
Wherein, the period of division is not unique, and those skilled in the art can should obtain it according to above-mentioned division result His period division result.
To the preset termination time since the initial time of preset time period, is sent to EPO server and obtain EPO file Instruction;
The preset termination time can be half an hour, be also possible to the other times less than half an hour.
For example, terminal is within the wherein half an hour of a period, in 20 minutes between 6:05-6:25, at random A time is generated, and sends the instruction for obtaining EPO file to EPO server in the random time.Setting is mainly to be in this way Different terminals are avoided to send the instruction for obtaining EPO file to EPO server simultaneously, to reduce EPO server blocks Probability.
If before reaching the preset termination time, the number for obtaining EPO file is less than preset times, then continue to service to EPO Device sends the instruction for obtaining EPO file;If before reaching the preset termination time, the number for obtaining EPO file is equal to preset times, It then abandons obtaining EPO file in this preset time period, next preset time period is waited to obtain EPO file.
Preset times can be 3 times, be also possible to 2 times and 4 other inferior numbers.
For example, if same EPO file times of acquisition within half an hour reach 3 times, 20 such as between 6:05-6:25 The number that the same EPO file is obtained in minute reaches 3 times, then temporarily ceases and obtain EPO file, wait next period again It reacquires.It is arranged in this way primarily to the consumption of the terminal data flow is reduced, if the terminal log is according to flow Using there is no limit can then continue to obtain EPO file.
Optionally, locating module is sent by EPO file, comprising:
EPO file is divided into the file packet of preset quantity;
Preset quantity can be 36, be also possible to other quantity.
For example, EPO file is divided into 36 file packets, is wrapped in each file packet since 36 satellites are used in positioning Include the almanac data of a satellite.36 satellites include GPS positioning satellite and some other high accuracy positioning satellites.Due to Memory shared by EPO file is larger, and setting can shorten the time for sending EPO file in this way, and then increasing terminal positions.
The file packet of preset quantity is successively handed down to locating module;
By the file packet of preset quantity one by one be handed down to locating module, when previous be sent completely is given down again One file packet.
For example, 36 file packets that EPO file is divided into successively are handed down to locating module.
It receives locating module and is properly received the response returned after each file packet, received successfully if not receiving file packet Response, then retransmit file packet;
Wherein, when file packet being successively handed down to locating module, whether locating module can respond each file packet and connect Harvest function can just issue next file packet after only receiving the currently transmitted successful response of file packet reception;If not yet Have and receive currently transmitted file packet reception successfully response, then retransmits file packet.
The number for retransmitting file packet has upper limit value then to abandon described in transmission after file packet transmission failure upper limit value is secondary File packet.
Upper limit value can be 4 times, can be 5 times, is also possible to other numbers.
For example, if not receiving this document packet still after the retransmission of file packet 4 times and receiving successfully response, then abandon Send this document packet.
If the number of responses that locating module returns is equal to preset quantity, judge that EPO file is sent completely.
For example, judge that EPO file is sent completely if the successful number of responses of reception that locating module returns is equal to 36, Otherwise judge the not sent completion of EPO file.
Step 120 is sent to locating module by the reference position point that control module will acquire;
Wherein, the main function of reference position point is a reference position of terminal to be provided to locating module, to improve The locating speed of terminal.
Step 130 determines the location data of terminal according to EPO file and reference position point by locating module.
Wherein, locating module almanac data according to included by EPO file and reference position point, determine needed for terminal positioning Almanac data.
Almanac data is a kind of celestial body orbit parameter table, i.e., illustrates the predetermined institute of certain celestial body at regular intervals with table data In position, or the predetermined position of certain artificial satellite at regular intervals.
The technical solution of the present embodiment obtains EPO file and reference position point by control module and is sent to positioning mould Block, locating module quickly determines terminal positioning data according to EPO file and reference position point, to solve locating module for the first time Positioning time longer problem realizes the time for shortening and positioning for the first time, realizes the effect quickly positioned to terminal, positioning time Within 5 seconds.
Embodiment two
Fig. 2 is a kind of flow chart of method of locating terminal provided by Embodiment 2 of the present invention.The technical solution of the present embodiment, Be further refine based on the above technical solution, as shown in Fig. 2, this method comprises:
Step 210, when monitoring that locating module is powered on or restarted, locating module is calibrated;
Wherein, since the available time of EPO file only has 6 and a half hours, if the time of locating module incorrect will lead It causes to obtain invalid EPO file, to extend the time of positioning.Therefore, needed before obtaining EPO file to locating module into When row school, to improve the accuracy of localization method, the quick positioning to terminal is realized.
Optionally, locating module is calibrated, comprising:
When carrying out the school NTP to locating module, and according to the current time of the time of calibration update locating module;
If the school NTP can not be carried out to locating module, obtain the RTC time of terminal as locating module it is current when Between;
If the RTC time of terminal can not be obtained, the time of EPO server is obtained as locating module from EPO server Current time.
Step 220 obtains EPO file by control module, sends locating module for EPO file;
Step 230 is sent to locating module by the reference position point that control module will acquire;
Step 240 determines the location data of terminal according to the EPO file and reference position point by locating module.
The technical solution of the present embodiment carries out school to locating module when monitoring that locating module is powered on or restarted When, EPO file and reference position point are obtained by control module, and EPO file and reference position are utilized using locating module Point determines the location data of terminal, is quickly positioned to terminal, within 5 seconds positioning times.
Embodiment three
It is a kind of flow chart for method of locating terminal that the embodiment of the present invention three provides referring to Fig. 3, Fig. 3.As shown in figure 3, This method comprises:
The validity of step 310, control module detection EPO file;
Optionally, the validity of control module detection EPO file, comprising:
If the time of the EPO file got and the current time of locating module, difference is less than or equal to preset time threshold Value, and MD5 check value corresponding to the EPO file got is consistent with the MD5 check value obtained from EPO server, then sentences Disconnected EPO file is effective;
Wherein, the MD5 check value obtained from EPO server, as EPO server by using EPO described in MD5 algorithm for encryption File obtains.
It is less than or equal to 6 and a half hours for example, the time of EPO file got differs with the current time of locating module, And MD5 check value corresponding to the EPO file got is consistent with the MD5 check value obtained from EPO server, then is sentenced The fixed EPO file is effective.
Step 320 obtains EPO file by control module, sends locating module for EPO file;
Optionally, if control module detects the EPO that is stored therein, file is invalid, control module and EPO server Connection is established, EPO file is reacquired from EPO server by control module, detects the validity of EPO file, and will be effective EPO file be sent to locating module.
Step 330 is sent to locating module by the reference position point that control module will acquire;
Optionally, control module obtains reference position point, comprising:
If control module is stored with the anchor point that locating module is sent before power-off, and anchor point is effective, then will effectively determine Site is as reference position point;
If control module powers on or without the anchor point that storage locating module is sent before power-off, by what is currently got Base station information is sent to EPO server, and the latitude and longitude information that EPO server is issued is as reference position point;
Wherein, latitude and longitude information is obtained by EPO server by parsing the base station information.
Wherein, when the distance between reference position point and base station difference be less than or equal to pre-determined distance, then judge the reference Location point is effective.
For example, then judging that reference position point has when the distance between reference position point and base station difference are less than or equal to 30km Effect.
Setting is because if the distance between reference position point and base station difference are greater than 30km, will lead to positioning in this way Module is to location determination mistake, to extend positioning time.
Step 340 determines the location data of terminal according to EPO file and reference position point by locating module.
The technical solution of the present embodiment obtains effective EPO file and reference position point by control module, and uses Locating module utilizes effective EPO file and effective reference position point, determines the location data of terminal, carries out to terminal quick Positioning, within 5 seconds positioning times.
Example IV
Fig. 4 is a kind of structural schematic diagram for terminal positioning device that the embodiment of the present invention four provides.As shown in figure 4, the end End positioning device includes:
EPO file acquisition and sending module 401 send EPO file to for obtaining EPO file by control module Locating module;
Reference position point sending module 402, the reference position point for will acquire by control module are sent to positioning Module;
Execution module 403 is positioned, for determining determining for terminal according to EPO file and reference position point by locating module Position data.
Optionally, the terminal positioning device further include:
Validation checking module, for being detected and being stored by control module before obtaining EPO file by control module In the validity of EPO file wherein;When file is invalid by EPO, EPO file is obtained from EPO server by control module and is examined Survey validity.
Monitoring and module when school, for the validity in the EPO file being stored therein by control module detection Before, when monitoring that locating module powers on or locating module restarts, locating module is calibrated;
Optionally, module and module when third school when module, the second school when module includes the first school when monitoring is with school:
Module when the first school, when for carrying out the school Network Time Protocol NTP to locating module, and more according to the time of calibration The current time of new definition module;
Module when the second school, if obtaining the real-time clock RTC of terminal when for the school NTP can not to be carried out to locating module Current time of the time as locating module;
Module when third school obtains EPO server from EPO server if the RTC time for that can not obtain terminal Current time of the time as locating module.
Optionally, validation checking module includes first detection unit and second detection unit:
First detection unit differs small if the current time of the time of the EPO file for getting and locating module In being equal to preset time threshold, then enters second detection unit and continue to judge, otherwise, judging EPO, file is invalid;
Second detection unit, if MD5 check value corresponding to EPO file for getting is obtained with from EPO server MD5 check value it is consistent, then judge that EPO file is effective, otherwise, judging EPO, file is invalid;
Wherein, the MD5 check value obtained from EPO server, by EPO server by using MD5 algorithm for encryption EPO file It obtains.
Optionally, in the terminal positioning device, reference position point sending module, including first acquisition unit and second are obtained Unit:
First acquisition unit if being stored with the anchor point that locating module is sent before power-off for control module, and positions Point is effective, then using effective position point as reference position point;
Second acquisition unit, if the positioning for powering on for control module or being sent before power-off without storage locating module The base station information currently got is then sent to EPO server, and the longitude and latitude that the EPO server received is issued by point Information is as reference position point;
Wherein, latitude and longitude information is obtained by EPO server by parsing base station information.
Optionally, EPO file acquisition and sending module include EPO file obtaining unit and EPO file transmission unit:
EPO file obtaining unit, for predetermined period to be divided into multiple preset time periods;
To the preset termination time since the initial time of the preset time period, sends and obtain to the EPO server The instruction of EPO file;
If before reaching the preset termination time, obtain the EPO file number be less than preset times, then continue to The EPO server sends the instruction for obtaining EPO file;
If before reaching the preset termination time, the number for obtaining the EPO file is equal to preset times, then abandon EPO file is obtained in this described preset time period, and next preset time period is waited to obtain EPO file.
EPO file transmission unit, for the EPO file to be divided into the file packet of preset quantity;
The file packet of the preset quantity is successively handed down to the locating module;
Receive the locating module and be properly received the response returned after each file packet, if do not receive file packet receive at The response of function then retransmits the file packet;
If the number of responses that the locating module returns is equal to preset quantity, judge that the EPO file is sent completely.
It is fixed that terminal provided by any embodiment of the invention can be performed in terminal positioning device provided by the embodiment of the present invention Position method, has the corresponding functional module of execution method and beneficial effect.
Embodiment five
It is a kind of structural schematic diagram for terminal that the embodiment of the present invention five provides referring to Fig. 5, Fig. 5, as shown in figure 5, the end End includes processor 501, memory 502, input unit 503 and output device 504;The quantity of processor 501 can be in terminal Be it is one or more, in Fig. 5 by taking a processor 501 as an example;Processor 501, memory 502, input unit 503 in terminal It can be connected by bus or other modes with output device 504, in Fig. 5 for being connected by bus.
Memory 502 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer Sequence and module, if the corresponding program instruction/module of the method for locating terminal in the embodiment of the present invention is (for example, terminal positioning fills EPO file acquisition and sending module 401, reference position point sending module 402 and positioning execution module 403 in setting).Processor 501 software program, instruction and the modules being stored in memory 502 by operation, are answered thereby executing the various functions of terminal With and data processing, that is, realize above-mentioned method of locating terminal.
Memory 502 can mainly include storing program area and storage data area, wherein storing program area can store operation system Application program needed for system, at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.This Outside, memory 502 may include high-speed random access memory, can also include nonvolatile memory, for example, at least one Disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 502 can be into one Step includes the memory remotely located relative to processor 501, these remote memories can pass through network connection to terminal.On The example for stating network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 503 can be used for receiving the number or character information of input, and generate with the user setting of terminal with And the related key signals input of function control.Output device 504 may include that display screen etc. shows equipment.
Embodiment six
The embodiment of the present invention six also provides a kind of computer readable storage medium, is stored thereon with computer program, the journey A kind of method of locating terminal is realized when sequence is executed by processor, this method comprises:
Extension predicted orbit EPO file is obtained by control module, sends locating module for the EPO file;
The locating module is sent to by the reference position point that the control module will acquire;
The positioning number of the terminal is determined according to the EPO file and the reference position point by the locating module According to.
Certainly, a kind of computer readable storage medium provided by the embodiment of the present invention, computer program are executable not It is limited to method operation as described above, the correlation in method of locating terminal provided by any embodiment of the invention can also be performed Operate
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art Part can be embodied in the form of software products, which can store in computer readable storage medium In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set Standby (can be personal computer, server or the network equipment etc.) executes method described in each embodiment of the present invention.
It is worth noting that, included each unit and module are only pressed in the embodiment of above-mentioned terminal positioning device It is divided, but is not limited to the above division according to function logic, as long as corresponding functions can be realized;In addition, The specific name of each functional unit is also only for convenience of distinguishing each other, the protection scope being not intended to restrict the invention.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of method of locating terminal, which is characterized in that the described method includes:
Extension predicted orbit EPO file is obtained by control module, sends locating module for the EPO file;
The locating module is sent to by the reference position point that the control module will acquire;
The location data of the terminal is determined according to the EPO file and the reference position point by the locating module.
2. the method according to claim 1, wherein being gone back before the acquisition EPO file by control module It include: the validity for the EPO file being stored therein by control module detection;When file is invalid by the EPO, pass through institute Control module is stated to obtain EPO file from EPO server and detect validity.
3. according to the method described in claim 2, it is characterized in that, being stored therein described by control module detection EPO file validity before, further includes:
When monitoring that the locating module powers on or the locating module restarts, when carrying out network to the locating module Between the agreement school NTP when, and update according to the time of calibration the current time of the locating module;
If the school NTP can not be carried out to the locating module, the real-time clock RTC time of the terminal is obtained as described fixed The current time of position module;
If the RTC time of the terminal can not be obtained, the time conduct of the EPO server is obtained from the EPO server The current time of the locating module.
4. according to the method described in claim 2, it is characterized in that, described detect the EPO file by the control module Validity, comprising:
If the current time of the time of the EPO file got and the locating module, when difference is less than or equal to default Between threshold value, and Message Digest 5 5MD5 check value corresponding to the EPO file got is obtained with from EPO server MD5 check value it is consistent, then judge that the EPO file is effective;
Wherein, the MD5 check value obtained from the EPO server, by the EPO server by using MD5 algorithm for encryption institute State the acquisition of EPO file.
5. the method according to claim 1, wherein the reference bit that will acquire by the control module It sets and is a little sent to the locating module, comprising:
If the control module is stored with the anchor point that the locating module is sent before power-off, and the anchor point is effective, then Using the effective position point as the reference position point;
If the anchor point that the control module is powered on or sent before power-off without storing the locating module, will currently obtain To base station information be sent to EPO server, and the latitude and longitude information that the EPO server received is issued is as reference Location point;
Wherein, the latitude and longitude information is obtained by the EPO server by parsing the base station information.
6. the method according to claim 1, wherein obtaining EPO file by the control module, comprising:
Predetermined period is divided into multiple preset time periods;
To the preset termination time since the initial time of the preset time period, is sent to the EPO server and obtain EPO text The instruction of part;
If before reaching the preset termination time, the number for obtaining the EPO file is less than preset times, then continue to described EPO server sends the instruction for obtaining EPO file;
If before reaching the preset termination time, the number for obtaining the EPO file is equal to preset times, then abandon in this institute It states and obtains EPO file in preset time period, next preset time period is waited to obtain EPO file.
7. being wrapped the method according to claim 1, wherein described send locating module for the EPO file It includes:
The EPO file is divided into the file packet of preset quantity;
The file packet of the preset quantity is successively handed down to the locating module;
It receives the locating module and is properly received the response returned after each file packet, received successfully if not receiving file packet Response, then retransmit the file packet;
If the number of responses that the locating module returns is equal to preset quantity, judge that the EPO file is sent completely.
8. a kind of terminal positioning device characterized by comprising
EPO file acquisition and sending module send positioning for the EPO file for obtaining EPO file by control module Module;
Reference position point sending module, the reference position point for will acquire by the control module are sent to the positioning Module;
Execution module is positioned, for determining institute according to the EPO file and the reference position point by the locating module State the location data of terminal.
9. a kind of terminal, which is characterized in that the terminal includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now method of locating terminal as described in any in claim 1-7.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The method of locating terminal as described in any in claim 1-7 is realized when execution.
CN201811183591.5A 2018-10-11 2018-10-11 Terminal positioning method, device, terminal and storage medium Active CN109005509B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811183591.5A CN109005509B (en) 2018-10-11 2018-10-11 Terminal positioning method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811183591.5A CN109005509B (en) 2018-10-11 2018-10-11 Terminal positioning method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109005509A true CN109005509A (en) 2018-12-14
CN109005509B CN109005509B (en) 2021-06-25

Family

ID=64590153

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811183591.5A Active CN109005509B (en) 2018-10-11 2018-10-11 Terminal positioning method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109005509B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111123309A (en) * 2019-12-31 2020-05-08 泰斗微电子科技有限公司 Method, device and equipment for testing receiver
CN111988742A (en) * 2020-08-12 2020-11-24 四川康佳智能终端科技有限公司 Positioning method based on narrowband Internet of things and NBIOT positioning equipment
CN112738887A (en) * 2020-12-31 2021-04-30 上海杉诺信息技术有限公司 Positioning method and system, communication terminal and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101887114A (en) * 2009-05-13 2010-11-17 中兴通讯股份有限公司 Mobile terminal and method for quickly searching positioning satellite
US20160323032A1 (en) * 2015-05-01 2016-11-03 Qualcomm Incorporated Handoff for non-geosynchronous satellite communication
CN106932800A (en) * 2017-04-28 2017-07-07 惠州市博实结科技有限公司 A kind of localization method and device for car-mounted terminal
CN207636777U (en) * 2017-05-04 2018-07-20 惠州市博实结科技有限公司 A kind of on-vehicle positioning terminal and positioning system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101887114A (en) * 2009-05-13 2010-11-17 中兴通讯股份有限公司 Mobile terminal and method for quickly searching positioning satellite
US20160323032A1 (en) * 2015-05-01 2016-11-03 Qualcomm Incorporated Handoff for non-geosynchronous satellite communication
CN106932800A (en) * 2017-04-28 2017-07-07 惠州市博实结科技有限公司 A kind of localization method and device for car-mounted terminal
CN207636777U (en) * 2017-05-04 2018-07-20 惠州市博实结科技有限公司 A kind of on-vehicle positioning terminal and positioning system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111123309A (en) * 2019-12-31 2020-05-08 泰斗微电子科技有限公司 Method, device and equipment for testing receiver
CN111123309B (en) * 2019-12-31 2022-04-22 泰斗微电子科技有限公司 Method, device and equipment for testing receiver
CN111988742A (en) * 2020-08-12 2020-11-24 四川康佳智能终端科技有限公司 Positioning method based on narrowband Internet of things and NBIOT positioning equipment
CN112738887A (en) * 2020-12-31 2021-04-30 上海杉诺信息技术有限公司 Positioning method and system, communication terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN109005509B (en) 2021-06-25

Similar Documents

Publication Publication Date Title
CN100409027C (en) GPS receiver and method for processing GPS signals
CN109005509A (en) A kind of method of locating terminal, device, terminal and storage medium
CN101360146B (en) Positioning method and system of mobile communication apparatus
US7348921B2 (en) GPS receiver using stored navigation data bits for a fast determination of GPS clock time
CN103210321B (en) Terminal equipment positioning method and apparatus
EP3958479A1 (en) Method and apparatus for determining satellite communication system parameter, terminal, and service device
KR20040054565A (en) System and method for providing time to satellite positioning system (sps) receiver from a networked time server
US20070063890A1 (en) GPS receiver having a prescribed time-of-entry into an operation mode
CN103946769A (en) Sensor API framework for cloud based applications
CN105491524A (en) Method and apparatus for determining position of object portable device
US20120268322A1 (en) Gps positioning system, gps positioning method, and gps positioning terminal
CN105513150A (en) Attendance registration method and device
US20160026675A1 (en) Data processing method, coordinator, and node device
RU2533310C2 (en) Auxiliary method and system of wireless signal detection by mobile devices
CN101742399A (en) Method for searching for lost mobilephone and mobilephone thereof
CN103197534A (en) Time calibration method and device
CN113075710B (en) Positioning difference information acquisition method, device, equipment and computer storage medium
WO2018177054A1 (en) Sign-in method and device
CN108876950A (en) Method, apparatus, terminal, server and the storage medium of attendance tracking
Prihodko Energy consumption in location sharing protocols for Android applications
CN101640839A (en) WebGIS system and method for updating terminal position on client of WebGIS system
CN101365179A (en) Method and communication terminal implementing automatic positioning based on short message
Khan et al. Hajji tracker: Development of web-based GPS tracking system for pilgrims
US8174438B2 (en) Positioning apparatus and method
CN111024955A (en) Method and hand-held glucose meter for transmitting glucose measurements

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 518131 2701, 2702 and 2703, building 1, Huide building, Beizhan community, Minzhi street, Longhua District, Shenzhen, Guangdong Province

Patentee after: Shenzhen BoShiJie Technology Co.,Ltd.

Address before: 20 / F, block a, Zhantao technology building, Minzhi Avenue, Xinniu community, Minzhi street, Bao'an District, Shenzhen, Guangdong 518000

Patentee before: SHENZHEN BOSHIJIE TECHNOLOGY Co.,Ltd.