CN106211078B - Positioning method, device, equipment and system - Google Patents

Positioning method, device, equipment and system Download PDF

Info

Publication number
CN106211078B
CN106211078B CN201610833320.4A CN201610833320A CN106211078B CN 106211078 B CN106211078 B CN 106211078B CN 201610833320 A CN201610833320 A CN 201610833320A CN 106211078 B CN106211078 B CN 106211078B
Authority
CN
China
Prior art keywords
positioning
module
gps
preset
server
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.)
Active
Application number
CN201610833320.4A
Other languages
Chinese (zh)
Other versions
CN106211078A (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201610833320.4A priority Critical patent/CN106211078B/en
Publication of CN106211078A publication Critical patent/CN106211078A/en
Priority to PCT/CN2016/113571 priority patent/WO2018049765A1/en
Application granted granted Critical
Publication of CN106211078B publication Critical patent/CN106211078B/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/029Location-based management or tracking services
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • G01S19/34Power consumption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0264Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • H04W64/003Locating users or terminals or network equipment for network management purposes, e.g. mobility management locating network equipment
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a positioning method, a positioning device, positioning equipment and a positioning system, wherein the method comprises the following steps: when the positioning equipment needs to be positioned, judging whether the current position of the positioning equipment needs to be updated; when the current position of the positioning equipment needs to be updated, a GPS positioning module of the positioning equipment is started; acquiring WIFI hotspot data near the current positioning equipment; uploading the WIFI hotspot data to a positioning server, enabling the positioning server to acquire first position information according to the WIFI hotspot data, updating the current position of the positioning equipment according to the first position information when a preset condition is met, and returning a GPS positioning stopping command; when a GPS positioning stopping command returned by the positioning server is obtained, the GPS positioning module is closed; and when the second position information is acquired through the GPS positioning module, the GPS positioning module is closed, and the second position information is sent to the positioning server, so that the positioning server updates the current position of the positioning equipment according to the second position information. By adopting the embodiment of the invention, the positioning power consumption of the positioning equipment can be effectively reduced.

Description

positioning method, device, equipment and system
Technical Field
The present invention relates to the field of positioning technologies, and in particular, to a positioning method, apparatus, device, and system.
background
With the continuous development of the mobile internet industry, the positioning service has become a mainstream service, and various positioning devices provide great convenience for travel navigation, remote positioning and tracking, article loss prevention and the like.
At present, most positioning equipment adopts GPS positioning to acquire position information, the positioning precision of the GPS positioning is high, and accurate positioning can be realized for users. Specifically, when most positioning devices need to acquire current position information, an internal GPS positioning module is turned on, the GPS positioning module continuously receives satellite signals, and then the internal main control module analyzes information such as positions and distances of visible satellites, and combines with a corresponding algorithm to obtain the current position information.
however, in the process of implementing the present invention, the inventor finds that the following disadvantages exist in the prior art, after the positioning device opens the GPS positioning module, the GPS positioning module is operated until the GPS positioning module acquires the corresponding position information, however, the GPS positioning module has a working blind area, positioning is hardly successful in the working blind area, and the power consumption of the GPS positioning module is very large, so that the positioning power consumption of the prior art is very large, and the cruising ability of the positioning device is generally limited, which obviously means that the prior art is difficult to meet the long-time positioning requirement of the user.
Disclosure of Invention
the technical problem to be solved by the present invention is to provide a positioning method, apparatus, device and system, which can effectively reduce the positioning power consumption of the positioning device.
In order to solve the above technical problem, an embodiment of the present invention provides a positioning method, including:
when positioning equipment needs to be positioned, judging whether the current position of the positioning equipment needs to be updated or not;
When the current position of the positioning equipment needs to be updated, starting a GPS positioning module on the positioning equipment;
acquiring WIFI hotspot data near the current positioning equipment searched by a WIFI module in the positioning equipment;
Controlling a GSM module in the positioning equipment to upload the WIFI hotspot data to a positioning server so that the positioning server can acquire first position information according to the WIFI hotspot data, and when a preset condition is met, updating the current position of the positioning equipment according to the first position information and returning to a GPS positioning stopping command; the preset condition is that the positioning server can judge that the positioning equipment is located indoors according to the first position information, or the positioning server can judge that the positioning equipment is located outdoors according to the first position information and the positioning accuracy of the first position information is smaller than a preset accuracy threshold;
When a GPS positioning stopping command returned by the positioning server is obtained, the GPS positioning module is closed;
and when second position information is acquired through the GPS positioning module, the GPS positioning module is closed, and the second position information is sent to the positioning server, so that the positioning server updates the current position of the positioning equipment according to the second position information.
preferably, the positioning method further comprises:
Acquiring a position updating success message sent by the positioning server, and recording the acquired time; the location update success message is generated by the positioning server after updating the current location of the positioning device.
in a preferred embodiment, the determining whether the current location of the positioning device needs to be updated when the positioning device needs to be positioned specifically includes:
when positioning equipment needs to be positioned, acquiring the moving distance between the moment when the positioning equipment acquires the position updating success message for the last time and the current moment;
comparing the moving distance with a preset distance threshold; and the number of the first and second electrodes,
And when the moving distance does not exist or is larger than a preset distance threshold, judging that the current position of the positioning equipment needs to be updated.
In another preferred embodiment, the determining whether the current location of the positioning device needs to be updated when the positioning device needs to be positioned specifically includes:
When positioning equipment needs to be positioned, acquiring the moving distance between the moment when the positioning equipment acquires the position updating success message for the last time and the current moment;
sending the moving distance to a positioning server so that the positioning server compares the moving distance with a preset distance threshold value and returns a position updating command when judging that the moving distance does not exist or is larger than the preset distance threshold value;
And when the position command needing to be updated is acquired, judging that the current position of the positioning equipment needs to be updated.
preferably, the positioning method further comprises:
When a position information request sent by a positioning server is acquired or a timing trigger in the positioning equipment is detected to trigger, the positioning equipment is judged to be positioned.
in a preferred embodiment, the positioning method further comprises:
And when the starting time of the GPS positioning module reaches a preset first time threshold, closing the GPS positioning module and sending a GPS positioning failure message to the positioning server.
in another preferred embodiment, the positioning method further includes:
When the starting time of the GPS positioning module reaches a preset second time threshold, judging whether the positioning equipment is located indoors or not according to the maximum WIFI signal intensity in the WIFI hotspot data and the maximum GPS signal intensity of the GPS positioning module; wherein the second duration threshold is less than the first duration threshold;
and when the positioning equipment is judged to be positioned indoors, the GPS positioning module is closed, and the GPS positioning failure message is sent to the positioning server.
further, when the start duration of the GPS positioning module reaches a preset second duration threshold, it is determined whether the positioning device is located indoors according to the maximum WIFI signal strength in the WIFI hotspot data and the maximum GPS signal strength of the GPS positioning module, specifically:
when the starting time of the GPS positioning module reaches a preset second time threshold, judging whether the maximum WIFI signal intensity in the WIFI hotspot data is greater than a preset first signal intensity threshold and the maximum GPS signal intensity of the GPS positioning module is less than a preset second signal intensity threshold;
and if so, judging that the positioning equipment is positioned indoors.
In yet another preferred embodiment, the positioning method further comprises:
When the starting time of the GPS positioning module reaches a preset third time threshold, judging whether satellite searching fails or not according to the satellite searching number of the GPS positioning module and the maximum GPS signal intensity; wherein the third duration threshold is greater than the second duration threshold and less than the first duration threshold;
and when satellite searching failure is judged, the GPS positioning module is closed, and the GPS positioning failure message is sent to the positioning server.
Further, when the start time of the GPS positioning module reaches a preset third time threshold, determining whether satellite search fails according to the satellite search number and the maximum GPS signal strength of the GPS positioning module, specifically:
when the starting time of the GPS positioning module reaches a preset third time threshold, judging whether the satellite searching number of the GPS positioning module is less than a preset number threshold and the maximum GPS signal intensity of the GPS positioning module is less than a preset third signal intensity threshold;
And if so, judging that the satellite searching fails.
In a preferred embodiment, the positioning method further comprises:
When acquiring the WIFI hotspot data near the current positioning equipment searched by the WIFI module in the positioning equipment, acquiring the base station information data near the current positioning equipment searched by the GSM module in the positioning equipment;
when the GSM module in the positioning equipment is controlled to upload the WIFI hotspot data to a positioning server, the GSM module in the positioning equipment is controlled to upload the base station information data to the positioning server;
The GPS positioning failure message is used for informing the positioning server to update the current position of the positioning equipment according to the first position information, or when the first position information does not exist, third position information is obtained according to the base station information data, and the current position of the positioning equipment is updated according to the third position information.
correspondingly, an embodiment of the present invention further provides a positioning apparatus, including:
the updating position judging module is used for judging whether the current position of the positioning equipment needs to be updated or not when the positioning equipment needs to be positioned;
the GPS starting module is used for starting the GPS positioning module on the positioning equipment when the current position of the positioning equipment needs to be updated;
the WIFI data acquisition module is used for acquiring WIFI hotspot data near the current positioning equipment, which are searched by the WIFI module in the positioning equipment;
the WIFI data uploading module is used for controlling a GSM module in the positioning equipment to upload the WIFI hotspot data to a positioning server so that the positioning server can acquire first position information according to the WIFI hotspot data, update the current position of the positioning equipment according to the first position information when a preset condition is met, and return to a GPS positioning stopping command; the preset condition is that the positioning server can judge that the positioning equipment is located indoors according to the first position information, or the positioning server can judge that the positioning equipment is located outdoors according to the first position information and the positioning accuracy of the first position information is smaller than a preset accuracy threshold;
the GPS closing module is used for closing the GPS positioning module when a GPS positioning stopping command returned by the positioning server is obtained; and the number of the first and second groups,
and the position information acquisition module is used for closing the GPS positioning module and sending the second position information to the positioning server when the second position information is acquired by the GPS positioning module, so that the positioning server updates the current position of the positioning equipment according to the second position information.
Preferably, the positioning device further comprises:
a success message acquisition module, configured to acquire a location update success message sent by the location server, and record an acquisition time; the location update success message is generated by the positioning server after updating the current location of the positioning device.
in a preferred embodiment, the update position determining module specifically includes:
The first distance acquisition unit is used for acquiring the moving distance between the moment when the positioning equipment acquires the position updating success message last time and the current moment when the positioning equipment needs to be positioned;
A comparison unit for comparing the moving distance with a preset distance threshold; and the number of the first and second electrodes,
and when the moving distance does not exist or is larger than a preset distance threshold, judging that the current position of the positioning equipment needs to be updated.
In another preferred embodiment, the update position determining module specifically includes:
a second distance obtaining unit, configured to obtain, when the positioning device needs to be positioned, a moving distance between a time when the positioning device has last obtained the location update success message and a current time;
a moving distance sending unit, configured to send the moving distance to a positioning server, so that the positioning server compares the moving distance with a preset distance threshold, and returns a command to update the position when it is determined that the moving distance does not exist or is greater than the preset distance threshold;
And the judgment result acquisition unit is used for judging that the current position of the positioning equipment needs to be updated when the position command needing to be updated is acquired.
preferably, the positioning device further comprises:
And the positioning requirement judging module is used for judging that the positioning equipment needs to be positioned when the position information request sent by the positioning server is acquired or the triggering of a timing trigger in the positioning equipment is detected.
In a preferred embodiment, the positioning device further comprises:
and the first time length monitoring module is used for closing the GPS positioning module and sending a GPS positioning failure message to the positioning server when the starting time length of the GPS positioning module reaches a preset first time length threshold value.
In another preferred embodiment, the positioning device further comprises:
The second duration monitoring module is used for judging whether the positioning equipment is positioned indoors or not according to the maximum WIFI signal intensity in the WIFI hotspot data and the maximum GPS signal intensity of the GPS positioning module when the starting duration of the GPS positioning module reaches a preset second duration threshold value; wherein the second duration threshold is less than the first duration threshold; and when the positioning equipment is judged to be positioned indoors, the GPS positioning module is closed, and the GPS positioning failure message is sent to the positioning server.
further, the second duration monitoring module is specifically configured to:
when the starting time of the GPS positioning module reaches a preset second time threshold, judging whether the maximum WIFI signal intensity in the WIFI hotspot data is greater than a preset first signal intensity threshold and the maximum GPS signal intensity of the GPS positioning module is less than a preset second signal intensity threshold; and the number of the first and second electrodes,
when the maximum WIFI signal strength in the WIFI hotspot data is greater than a preset first signal strength threshold value and the maximum GPS signal strength of the GPS positioning module is less than a preset second signal strength threshold value, determining that the positioning device is located indoors; and the number of the first and second groups,
And when the positioning equipment is judged to be positioned indoors, the GPS positioning module is closed, and the GPS positioning failure message is sent to the positioning server.
in a further preferred embodiment, the positioning device further comprises:
the third time duration monitoring module is used for judging whether satellite search fails or not according to the satellite search number and the maximum GPS signal intensity of the GPS positioning module when the starting time duration of the GPS positioning module reaches a preset third time duration threshold; wherein the third duration threshold is greater than the second duration threshold and less than the first duration threshold; and when satellite searching failure is judged, the GPS positioning module is closed, and the GPS positioning failure message is sent to the positioning server.
further, the third duration monitoring module is specifically configured to:
when the starting time of the GPS positioning module reaches a preset third time threshold, judging whether the satellite searching number of the GPS positioning module is less than a preset number threshold and the maximum GPS signal intensity of the GPS positioning module is less than a preset third signal intensity threshold; and the number of the first and second electrodes,
judging that the satellite searching fails when the satellite searching number of the GPS positioning module is smaller than a preset number threshold and the maximum GPS signal intensity of the GPS positioning module is smaller than a preset third signal intensity threshold; and the number of the first and second groups,
And when satellite searching failure is judged, the GPS positioning module is closed, and the GPS positioning failure message is sent to the positioning server.
In a preferred embodiment, the positioning device further comprises:
the base station data acquisition module is used for acquiring the current base station information data near the positioning equipment searched by the GSM module in the positioning equipment when acquiring the current WIFI hotspot data near the positioning equipment searched by the WIFI module in the positioning equipment;
The base station data uploading module is used for controlling the GSM module in the positioning equipment to upload the WIFI hotspot data to the positioning server;
The GPS positioning failure message is used for informing the positioning server to update the current position of the positioning equipment according to the first position information, or when the first position information does not exist, third position information is obtained according to the base station information data, and the current position of the positioning equipment is updated according to the third position information.
Correspondingly, the embodiment of the invention also provides a positioning device, which comprises a GPS positioning module, a WIFI module and a GSM module; moreover, the positioning device is further configured with a positioning apparatus provided in an aspect of the above-mentioned embodiments.
Correspondingly, the embodiment of the invention also provides a positioning system, which comprises a positioning server and the positioning equipment provided by the embodiment.
Furthermore, the positioning system also comprises an intelligent terminal;
the intelligent terminal is used for receiving the current position information of the positioning equipment sent by the positioning server and displaying the current position of the positioning equipment.
The implementation of the invention has the following beneficial effects:
according to the positioning method, the positioning device, the positioning equipment and the positioning system provided by the embodiment of the invention, when the current position of the positioning equipment needs to be updated, the GPS positioning module is started, the WIFI hotspot data near the positioning equipment is acquired and uploaded to the positioning server, the positioning server acquires the first position information according to the WIFI hotspot data, and then the GPS positioning module in the positioning equipment is closed when the positioning equipment is judged to be located indoors or outdoors currently according to the first position information and the positioning accuracy of the first position information is smaller than a preset accuracy threshold. Generally, when the positioning device is currently located indoors, the GPS positioning module is unable to successfully perform positioning, so that an environment condition in which GPS positioning cannot be performed is identified at the first time, and the GPS positioning module is timely turned off, so that positioning power consumption can be effectively reduced.
drawings
FIG. 1 is a schematic flow chart diagram illustrating one embodiment of a positioning method provided by the present invention;
fig. 2 is a schematic structural diagram of an embodiment of the positioning device provided by the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
the embodiment of the invention provides a positioning method.
referring to fig. 1, a schematic flow chart of an embodiment of a positioning method according to the present invention is shown, where the positioning method includes the following steps:
s11, when the positioning device needs to be positioned, judging whether the current position of the positioning device needs to be updated;
S12, when the current position of the positioning device needs to be updated, starting a GPS positioning module on the positioning device;
S13, acquiring WIFI hotspot data near the current positioning equipment, which are searched by a WIFI module in the positioning equipment;
s14, controlling a GSM module in the positioning equipment to upload the WIFI hotspot data to a positioning server, so that the positioning server obtains first position information according to the WIFI hotspot data, updates the current position of the positioning equipment according to the first position information when preset conditions are met, and returns a GPS positioning stopping command; the preset condition is that the positioning server can judge that the positioning equipment is located indoors according to the first position information, or the positioning server can judge that the positioning equipment is located outdoors according to the first position information and the positioning accuracy of the first position information is smaller than a preset accuracy threshold;
S15, when a GPS positioning stopping command returned by the positioning server is acquired, the GPS positioning module is closed;
And S16, when second position information is acquired through the GPS positioning module, closing the GPS positioning module, and sending the second position information to the positioning server, so that the positioning server updates the current position of the positioning device according to the second position information.
The WIFI hotspot data comprise names SSID, MAC addresses and WIFI signal strength of the WIFI hotspots.
the positioning server comprises a positioning equipment server and a WIFI positioning server. The WIFI positioning server refers to a server provided by a WIFI positioning service provider, and a huge WIFI information database is recorded in the WIFI positioning server to complete WIFI positioning.
In step S14, the working process of the positioning server acquiring the first location information according to the WIFI hotspot data is specifically that the positioning device server receives the WIFI hotspot data and forwards the WIFI hotspot data to the WIFI positioning server, and the WIFI positioning server matches the received name SSID and MAC address of each WIFI hotspot with data stored in the WIFI information database, and performs related algorithm operation in combination with signal strength of each WIFI to generate WIFI positioning result data, and returns the positioning result data to the positioning device server. The WIFI positioning result data comprises information about whether WIFI positioning is successful or not, and longitude and latitude information and positioning accuracy of the current position of the positioning equipment under the condition that the WIFI positioning is successful, wherein the longitude and latitude information is first position information.
In step S14, when the positioning server meets the preset condition, the working process of updating the current position of the positioning device according to the first position information is specifically that the positioning device server receives WIFI positioning result data returned by the WIFI positioning server, and introduces latitude and longitude information in the result data into a map of the server, so as to obtain a position corresponding to the latitude and longitude, and further know whether the position is indoor or outdoor, and when it is determined that the position is indoor or outdoor and the positioning accuracy of the first position information is smaller than a preset accuracy threshold, the positioning device server takes the position corresponding to the first position information as the current position of the positioning device. The longitude and latitude information is led into a map to further judge whether a position is indoor or outdoor, for example, a position is obtained according to the longitude and latitude information, and if the position is the position of a building, the positioning equipment can be judged to be indoor. In addition, the preset accuracy threshold is generally 100 meters, and it is default that when the WIFI positioning accuracy is less than 100 meters, the positioning accuracy is considered to be sufficient, and so on, and no further description is given here. The mode of judging whether the current position is indoors or not through the WIFI positioning server improves the accuracy of judging whether the positioning equipment is positioned indoors or not, and correspondingly, the accuracy of issuing the GPS positioning stopping command by the positioning equipment server in the embodiment of the invention is effectively improved.
in step S16, it should be noted that, after the self-positioning device starts the GPS positioning module, no matter how the WIFI positioning condition is, once it is detected that the GPS positioning module obtains the current position information of the positioning device, that is, the second position information, the self-positioning device immediately turns off the GPS positioning module, updates the current position of the positioning device with the second position information, and ends the positioning. In addition, after the positioning device starts the GPS positioning module, if the positioning device does not receive the GPS positioning stop command issued by the positioning device server, the positioning device continues to perform GPS positioning until the current position information of the positioning device is acquired by the GPS positioning module, and then ends this positioning, or after receiving the control command issued by the positioning device server, and then performs the corresponding operation.
it should be noted that after the WIFI module is turned on, the WIFI hotspot data near the current positioning device can be acquired in a short time, so in the embodiment of the present invention, when the turn-on duration of the WIFI module reaches the preset time threshold, the WIFI module is automatically turned off. Preferably, the preset time threshold is 5 s. In addition, if the WIFI module does not complete the WIFI hotspot data acquisition task within the preset time due to surrounding environmental factors, the positioning device server controls the WIFI module of the positioning device to reset and re-work, or the positioning device self-checks to autonomously control the WIFI module to reset and re-work when abnormality is detected. And if the continuous preset times of failures occur, directly skipping the WIFI positioning process, preferably, the preset times are 2 times.
it should be noted that, the data transmission task between the positioning device and the positioning device server is completed by the GSM module in the positioning device.
According to the embodiment of the invention, when the current position of the positioning device needs to be updated, the GPS positioning module is started, WIFI hotspot data near the positioning device is acquired and uploaded to the positioning server, first position information is acquired by the positioning server according to the WIFI hotspot data, and then the GPS positioning module in the positioning device is closed when the positioning device is judged to be located indoors or outdoors according to the first position information and the positioning accuracy of the first position information is smaller than a preset accuracy threshold. Generally, when the positioning device is currently located indoors, the GPS positioning module is unable to successfully position, and therefore, the environmental condition that the GPS positioning cannot be performed is identified in the first time, and the GPS positioning module is timely turned off, so that the positioning power consumption can be effectively reduced.
preferably, the positioning method further comprises:
acquiring a position updating success message sent by the positioning server, and recording the acquired time; the location update success message is generated by the positioning server after updating the current location of the positioning device.
It should be noted that, after the current position of the positioning device is updated each time, the positioning server generates a corresponding successful position update message, and sends the successful position update message to the positioning device, and the positioning device receives the successful position update message and records the time of reception, so as to determine whether to update the current position of the positioning device when the positioning device is to be positioned next time.
In a preferred embodiment, the determining whether the current location of the positioning device needs to be updated when the positioning device needs to be positioned specifically includes:
when positioning equipment needs to be positioned, acquiring the moving distance between the moment when the positioning equipment acquires the position updating success message for the last time and the current moment;
Comparing the moving distance with a preset distance threshold; and the number of the first and second electrodes,
and when the moving distance does not exist or is larger than a preset distance threshold, judging that the current position of the positioning equipment needs to be updated.
It should be noted that the positioning device further includes an attitude sensor module, which is used for acquiring an attitude parameter of the positioning device. By combining the successful location update message and the attitude parameter, the moving distance between the time when the positioning device last acquired the successful location update message and the current time can be obtained. During the period from the last updated position to the current moment, if the moving distance of the positioning equipment is smaller than the preset distance threshold, the position information of the positioning equipment does not need to be updated, namely, the positioning is carried out again, and the position information updated last time is directly used as the position information of this time; and if the moving distance does not exist or is greater than a preset distance threshold, judging that the position information of the positioning equipment needs to be updated. The absence of the moving distance means that the location update success message is not obtained, for example, the positioning device is used for the first time, and the location server has not updated the location information of the positioning device before that, so the positioning server will not generate the corresponding location update success message. In addition, if the moving distance is greater than the preset distance threshold, it indicates that the position of the positioning device has changed greatly from the time of updating the position the last time, and the position information updated the last time is not suitable for this time, and a new position information needs to be obtained again. Therefore, the attitude sensor is used for detecting the attitude parameters of the positioning equipment, and then the positioning strategy is adjusted, so that the positioning interval can be optimized, namely the positioning power consumption can be effectively reduced by reducing the positioning times.
in another preferred embodiment, the determining whether the current location of the positioning device needs to be updated when the positioning device needs to be positioned specifically includes:
When positioning equipment needs to be positioned, acquiring the moving distance between the moment when the positioning equipment acquires the position updating success message for the last time and the current moment;
sending the moving distance to a positioning server so that the positioning server compares the moving distance with a preset distance threshold value and returns a position updating command when judging that the moving distance does not exist or is larger than the preset distance threshold value;
and when the position command needing to be updated is acquired, judging that the current position of the positioning equipment needs to be updated.
the present embodiment is different from the above-described embodiments in that the task of comparing the moving distance with the preset distance threshold is performed by the positioning server in the present embodiment. Specifically, after the positioning device obtains the moving distance, the moving distance is sent to a positioning server, and the positioning server executes a comparison task; in general, the data processing capability of the positioning server is better than that of the positioning device, so that the embodiment can improve the data processing speed and be applied to scenes with large data computation amount.
Preferably, the positioning method further comprises:
when a position information request sent by a positioning server is acquired or a timing trigger in the positioning equipment is detected to trigger, the positioning equipment is judged to be positioned.
it should be noted that the triggering condition for the positioning device to start positioning once may be any one or any combination of several conditions, where the positioning is triggered by acquiring a position information request of the positioning server, and the periodic positioning is triggered by detecting a timing trigger inside the positioning device, that is, positioning is triggered once each time the timing time is up, or the detected variation of the attitude data collected by the attitude sensor inside the positioning device exceeds a preset attitude threshold value, so as to trigger positioning.
In a preferred embodiment, the positioning method further comprises:
And when the starting time of the GPS positioning module reaches a preset first time threshold, closing the GPS positioning module and sending a GPS positioning failure message to the positioning server.
It should be noted that, in this embodiment, the timing is started while the GPS positioning module is turned on, and if the positioning server has not issued the instruction to stop the GPS positioning to the positioning device, the GPS positioning module is operated until the turn-on duration of the GPS positioning module reaches the preset first time threshold, and the GSP positioning module is turned off. Generally, if the GPS positioning module can successfully perform positioning in the current environment, the current location information of the positioning device can be acquired within a certain time, and therefore, even if the positioning is continued, the possibility of success is extremely low in the case that the positioning exceeds a certain time but the location information cannot be acquired, so that the GPS positioning module is timely turned off, and the positioning power consumption of the positioning device can be effectively reduced. Preferably, the preset first time threshold is 2 minutes.
in another preferred embodiment, the positioning method further includes:
when the starting time of the GPS positioning module reaches a preset second time threshold, judging whether the positioning equipment is located indoors or not according to the maximum WIFI signal intensity in the WIFI hotspot data and the maximum GPS signal intensity of the GPS positioning module; wherein the second duration threshold is less than the first duration threshold;
and when the positioning equipment is judged to be positioned indoors, the GPS positioning module is closed, and the GPS positioning failure message is sent to the positioning server.
It should be noted that, after the GPS positioning module is started, if the current location information of the positioning device is not obtained all the time and the command to stop GPS positioning issued by the positioning server is not obtained, the GPS positioning module will continue to operate until the first time threshold is reached, and if the location information is not obtained, the GPS positioning module is closed and a GPS positioning failure message is returned. In this process, there is still a large power consumption of the GPS positioning module. Therefore, a second time threshold is additionally arranged, when the starting time of the GPS positioning module reaches the preset second time threshold, whether the positioning equipment is located indoors or not is judged again according to the maximum WIFI signal intensity in the WIFI hotspot data and the maximum GPS signal intensity of the GPS positioning module, and if the positioning equipment is located indoors, the GPS positioning module is timely closed, so that the positioning power consumption can be effectively reduced. Preferably, the preset second duration threshold is 10 seconds.
further, when the start duration of the GPS positioning module reaches a preset second duration threshold, it is determined whether the positioning device is located indoors according to the maximum WIFI signal strength in the WIFI hotspot data and the maximum GPS signal strength of the GPS positioning module, specifically:
when the starting time of the GPS positioning module reaches a preset second time threshold, judging whether the maximum WIFI signal intensity in the WIFI hotspot data is greater than a preset first signal intensity threshold and the maximum GPS signal intensity of the GPS positioning module is less than a preset second signal intensity threshold;
and if so, judging that the positioning equipment is positioned indoors.
Preferably, the first signal strength threshold is preset to be-70 dbm, and the second signal strength threshold is preset to be 20.
In yet another preferred embodiment, the positioning method further comprises:
the positioning method further comprises the following steps:
when the starting time of the GPS positioning module reaches a preset third time threshold, judging whether satellite searching fails or not according to the satellite searching number of the GPS positioning module and the maximum GPS signal intensity; wherein the third duration threshold is greater than the second duration threshold and less than the first duration threshold;
And when satellite searching failure is judged, the GPS positioning module is closed, and the GPS positioning failure message is sent to the positioning server.
It should be noted that, after the GPS positioning module is started, if the current location information of the positioning device is not obtained all the time and the command to stop GPS positioning issued by the positioning server is not obtained, the GPS positioning module continues to operate until the second time threshold is reached, and then whether the current location information is indoors is determined again, if the current location information is still determined to be indoors, the GPS positioning module continues to operate until the first time threshold is reached, and if the location information is not obtained, the GPS positioning module is closed, and a GPS positioning failure message is returned. In this process, there is still a large power consumption of the GPS positioning module. Therefore, a third time length threshold value is additionally arranged, when the starting time length of the GPS positioning module reaches the third time length threshold value, whether satellite searching fails or not is judged according to the satellite searching number and the maximum GPS signal intensity of the GPS positioning module, so that whether the positioning equipment is located at an outdoor position or a window position with poor GPS positioning condition or not is judged, and under the condition, the GPS positioning module is timely closed, and the positioning power consumption can be effectively reduced. Preferably, the preset third duration threshold is 30 seconds.
further, when the start time of the GPS positioning module reaches a preset third time threshold, determining whether satellite search fails according to the satellite search number and the maximum GPS signal strength of the GPS positioning module, specifically:
when the starting time of the GPS positioning module reaches a preset third time threshold, judging whether the satellite searching number of the GPS positioning module is less than a preset number threshold and the maximum GPS signal intensity of the GPS positioning module is less than a preset third signal intensity threshold;
and if so, judging that the satellite searching fails.
preferably, the preset number threshold is 4, and the preset third signal strength threshold is 30.
It should be noted that, when the start time of the GPS positioning module is within the period from the second time threshold to the first time threshold, it may be determined, in a cyclic manner, whether the positioning device is located indoors according to the maximum WIFI signal strength in the WIFI hotspot data and the maximum GPS signal strength of the GPS positioning module, and when the start time is within the period from the third time threshold to the first time threshold, a task of determining, in a cyclic manner, whether a satellite search fails according to the number of satellite searches of the GPS positioning module and the maximum GPS signal strength is added. Or, the determination is performed once every preset period, preferably, the preset period is 1 second, that is, when the start time of the GPS positioning module is from the second time threshold to the first time threshold, it is determined once every second whether the positioning device is currently located indoors, and when the start time reaches the third time threshold until the first time threshold is reached, a task of determining whether the satellite search fails every second is added.
In a preferred embodiment, the positioning method further comprises:
when acquiring the WIFI hotspot data near the current positioning equipment searched by the WIFI module in the positioning equipment, acquiring the base station information data near the current positioning equipment searched by the GSM module in the positioning equipment;
when the GSM module in the positioning equipment is controlled to upload the WIFI hotspot data to a positioning server, the GSM module in the positioning equipment is controlled to upload the base station information data to the positioning server;
the GPS positioning failure message is used for informing the positioning server to update the current position of the positioning equipment according to the first position information, or when the first position information does not exist, third position information is obtained according to the base station information data, and the current position of the positioning equipment is updated according to the third position information.
The base station information data includes country code, operator code, cell number, base station code, base station signal strength, and the like.
It should be noted that, in this embodiment, base station positioning is added to assist in completing positioning, and when neither WIFI positioning nor GPS positioning obtains location information of the positioning device, the current location of the positioning device may be updated according to the location information of the positioning device obtained by the base station positioning.
it should be noted that, in the positioning process, if the current location information of the positioning device is not obtained by GPS positioning, WIFI positioning, and base station positioning, it is determined that the positioning is completely failed, and the positioning server notifies the positioning device to perform positioning again.
Correspondingly, the embodiment of the invention also provides a positioning device, which can realize all the processes in the positioning method provided by the embodiment of the invention.
please refer to fig. 2, which is a schematic structural diagram of an embodiment of a positioning apparatus provided in the present invention, the positioning apparatus includes:
An update position determining module 11, configured to determine whether a current position of a positioning device needs to be updated when the positioning device needs to be positioned;
The GPS starting module 12 is used for starting a GPS positioning module on the positioning equipment when the current position of the positioning equipment needs to be updated;
a WIFI data obtaining module 13, configured to obtain WIFI hotspot data near the current positioning device, which is searched by a WIFI module in the positioning device;
a WIFI data uploading module 14, configured to control a GSM module in the positioning device to upload WIFI hotspot data to a positioning server, so that the positioning server obtains first location information according to the WIFI hotspot data, updates a current location of the positioning device according to the first location information when a preset condition is met, and returns a stop GPS positioning command; the preset condition is that the positioning server can judge that the positioning equipment is located indoors according to the first position information, or the positioning server can judge that the positioning equipment is located outdoors according to the first position information and the positioning accuracy of the first position information is smaller than a preset accuracy threshold;
the GPS closing module 15 is used for closing the GPS positioning module when a GPS positioning stopping command returned by the positioning server is obtained; and the number of the first and second groups,
and the position information acquisition module 16 is configured to, when second position information is acquired by the GPS positioning module, turn off the GPS positioning module, and send the second position information to the positioning server, so that the positioning server updates the current position of the positioning device according to the second position information.
Preferably, the positioning device further comprises:
a success message acquisition module, configured to acquire a location update success message sent by the location server, and record an acquisition time; the location update success message is generated by the positioning server after updating the current location of the positioning device.
In a preferred embodiment, the update position determining module 11 specifically includes:
the first distance acquisition unit is used for acquiring the moving distance between the moment when the positioning equipment acquires the position updating success message last time and the current moment when the positioning equipment needs to be positioned;
a comparison unit for comparing the moving distance with a preset distance threshold; and the number of the first and second electrodes,
and when the moving distance does not exist or is larger than a preset distance threshold, judging that the current position of the positioning equipment needs to be updated.
in another preferred embodiment, the update position determining module 11 specifically includes:
a second distance obtaining unit, configured to obtain, when the positioning device needs to be positioned, a moving distance between a time when the positioning device has last obtained the location update success message and a current time;
a moving distance sending unit, configured to send the moving distance to a positioning server, so that the positioning server compares the moving distance with a preset distance threshold, and returns a command to update the position when it is determined that the moving distance does not exist or is greater than the preset distance threshold;
and the judgment result acquisition unit is used for judging that the current position of the positioning equipment needs to be updated when the position command needing to be updated is acquired.
Preferably, the positioning device further comprises:
and the positioning requirement judging module is used for judging that the positioning equipment needs to be positioned when the position information request sent by the positioning server is acquired or the triggering of a timing trigger in the positioning equipment is detected.
in a preferred embodiment, the positioning device further comprises:
and the first time length monitoring module is used for closing the GPS positioning module and sending a GPS positioning failure message to the positioning server when the starting time length of the GPS positioning module reaches a preset first time length threshold value.
In another preferred embodiment, the positioning device further comprises:
the second duration monitoring module is used for judging whether the positioning equipment is positioned indoors or not according to the maximum WIFI signal intensity in the WIFI hotspot data and the maximum GPS signal intensity of the GPS positioning module when the starting duration of the GPS positioning module reaches a preset second duration threshold value; wherein the second duration threshold is less than the first duration threshold; and when the positioning equipment is judged to be positioned indoors, the GPS positioning module is closed, and the GPS positioning failure message is sent to the positioning server.
further, the second duration monitoring module is specifically configured to:
When the starting time of the GPS positioning module reaches a preset second time threshold, judging whether the maximum WIFI signal intensity in the WIFI hotspot data is greater than a preset first signal intensity threshold and the maximum GPS signal intensity of the GPS positioning module is less than a preset second signal intensity threshold; and the number of the first and second electrodes,
when the maximum WIFI signal strength in the WIFI hotspot data is greater than a preset first signal strength threshold value and the maximum GPS signal strength of the GPS positioning module is less than a preset second signal strength threshold value, determining that the positioning device is located indoors; and the number of the first and second groups,
and when the positioning equipment is judged to be positioned indoors, the GPS positioning module is closed, and the GPS positioning failure message is sent to the positioning server.
In a further preferred embodiment, the positioning device further comprises:
the third time duration monitoring module is used for judging whether satellite search fails or not according to the satellite search number and the maximum GPS signal intensity of the GPS positioning module when the starting time duration of the GPS positioning module reaches a preset third time duration threshold; wherein the third duration threshold is greater than the second duration threshold and less than the first duration threshold; and when satellite searching failure is judged, the GPS positioning module is closed, and the GPS positioning failure message is sent to the positioning server.
Further, the third duration monitoring module is specifically configured to:
when the starting time of the GPS positioning module reaches a preset third time threshold, judging whether the satellite searching number of the GPS positioning module is less than a preset number threshold and the maximum GPS signal intensity of the GPS positioning module is less than a preset third signal intensity threshold; and the number of the first and second electrodes,
judging that the satellite searching fails when the satellite searching number of the GPS positioning module is smaller than a preset number threshold and the maximum GPS signal intensity of the GPS positioning module is smaller than a preset third signal intensity threshold; and the number of the first and second groups,
and when satellite searching failure is judged, the GPS positioning module is closed, and the GPS positioning failure message is sent to the positioning server.
in a preferred embodiment, the positioning device further comprises:
The base station data acquisition module is used for acquiring the current base station information data near the positioning equipment searched by the GSM module in the positioning equipment when acquiring the current WIFI hotspot data near the positioning equipment searched by the WIFI module in the positioning equipment;
the base station data uploading module is used for controlling the GSM module in the positioning equipment to upload the WIFI hotspot data to the positioning server;
the GPS positioning failure message is used for informing the positioning server to update the current position of the positioning equipment according to the first position information, or when the first position information does not exist, third position information is obtained according to the base station information data, and the current position of the positioning equipment is updated according to the third position information.
correspondingly, the invention also provides an embodiment of the positioning equipment.
The positioning equipment comprises a GPS positioning module, a WIFI module and a GSM module; moreover, the positioning device is further configured with a positioning apparatus provided in an aspect of the above-mentioned embodiments.
The GSM module is configured to acquire base station information data near the positioning device, and is configured to complete a data transmission task between the positioning device and the positioning server, where the positioning server refers to the aforementioned positioning device server.
it should be noted that, the embodiment of the present invention further includes an attitude sensor module, which is used for acquiring an attitude parameter of the positioning device. By combining the successful location update message and the attitude parameter, the moving distance between the time when the positioning device last acquired the successful location update message and the current time can be obtained.
correspondingly, the invention also provides an embodiment of the positioning system.
The positioning system comprises a positioning server and the positioning equipment provided by the embodiment.
furthermore, the positioning system also comprises an intelligent terminal;
the intelligent terminal is used for receiving the current position information of the positioning equipment sent by the positioning server and displaying the current position of the positioning equipment.
it should be noted that the current location information of the positioning device is longitude and latitude information corresponding to the current location of the positioning device acquired by the positioning server, and after receiving the longitude and latitude information, the intelligent terminal guides the longitude and latitude information into a map carried by the terminal, so that a location corresponding to the longitude and latitude information can be obtained in the map, where the location is the current location of the positioning device. Or, the current position information of the positioning device is the current position of the positioning device, that is, the positioning server has imported the latitude and longitude information into a map carried by the server to obtain the current position of the positioning device, the positioning server directly sends the current position of the positioning device to the intelligent terminal, and the intelligent terminal only needs to directly display the result of the current position of the positioning device, so that a terminal user can know the current position of the positioning device, for example, the positioning server sends a short message containing the current position of the positioning device to the intelligent terminal, and the intelligent terminal displays the short message.
according to the positioning method, the positioning device, the positioning equipment and the positioning system provided by the embodiment of the invention, when the current position of the positioning equipment needs to be updated, the GPS positioning module is started, the WIFI hotspot data near the positioning equipment is acquired and uploaded to the positioning server, the positioning server acquires the first position information according to the WIFI hotspot data, and then the GPS positioning module in the positioning equipment is closed when the positioning equipment is judged to be located indoors or outdoors currently according to the first position information and the positioning accuracy of the first position information is smaller than a preset accuracy threshold. Generally, when the positioning device is currently located indoors, the GPS positioning module is unable to successfully perform positioning, so that an environment condition in which GPS positioning cannot be performed is identified at the first time, and the GPS positioning module is timely turned off, so that positioning power consumption can be effectively reduced.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The foregoing is directed to the preferred embodiment of the present invention, and it is understood that various changes and modifications may be made by one skilled in the art without departing from the spirit of the invention, and it is intended that such changes and modifications be considered as within the scope of the invention.

Claims (25)

1. a method of positioning, comprising:
when positioning equipment needs to be positioned, judging whether the current position of the positioning equipment needs to be updated or not;
when the current position of the positioning equipment needs to be updated, starting a GPS positioning module on the positioning equipment;
acquiring WIFI hotspot data near the current positioning equipment searched by a WIFI module in the positioning equipment; if the WIFI module cannot acquire WIFI hotspot data within a preset time or the positioning equipment is abnormal, the WIFI module is controlled to reset and work again;
Controlling a GSM module in the positioning equipment to upload the WIFI hotspot data to a positioning server so as to enable the positioning server to determine
The positioning server acquires first position information according to the WIFI hotspot data, updates the current position of the positioning equipment according to the first position information and returns a GPS (global positioning system) stopping positioning command when a preset condition is met, wherein the preset condition is that the positioning server can judge that the positioning equipment is positioned indoors according to the first position information, or the positioning server can judge that the positioning equipment is positioned outdoors according to the first position information and the positioning precision of the first position information is less than a preset precision value;
when a GPS positioning stopping command returned by the positioning server is obtained, the GPS positioning module is closed;
and when second position information is acquired through the GPS positioning module, the GPS positioning module is closed, and the second position information is sent to the positioning server, so that the positioning server updates the current position of the positioning equipment according to the second position information.
2. the positioning method of claim 1, further comprising:
And acquiring a position updating success message sent by the positioning server, and recording the acquired moment, wherein the position updating success message is generated after the positioning server updates the current position of the positioning equipment.
3. the method according to claim 2, wherein the determining whether the current location of the positioning device needs to be updated when the positioning device needs to be positioned specifically includes:
When positioning equipment needs to be positioned, acquiring the moving distance between the moment when the positioning equipment acquires the position updating success message for the last time and the current moment;
Comparing the moving distance with a preset distance threshold value; and the number of the first and second electrodes,
and when the moving distance does not exist or is larger than a preset distance threshold, judging that the current position of the positioning equipment needs to be updated.
4. The method according to claim 2, wherein the determining whether the current location of the positioning device needs to be updated when the positioning device needs to be positioned specifically includes:
when positioning equipment needs to be positioned, acquiring the moving distance between the moment when the positioning equipment acquires the position updating success message for the last time and the current moment;
Sending the moving distance to a positioning server so that the positioning server compares the moving distance with a preset distance threshold value and returns a position updating command when judging that the moving distance does not exist or is larger than the preset distance threshold value;
and when the position command needing to be updated is acquired, judging that the current position of the positioning equipment needs to be updated.
5. The positioning method according to any one of claims 3 or 4, further comprising:
when a position information request sent by a positioning server is acquired or a positioning device is detected, an internal timing trigger is triggered, the positioning device is judged to be required to be positioned.
6. the positioning method of claim 1, further comprising:
and when the starting time of the GPS positioning module reaches a preset first time duration, closing the GPS positioning module and sending a GPS positioning failure message to the positioning server.
7. the positioning method of claim 6, further comprising:
when the starting time of the GPS positioning module reaches a preset second time width, judging whether the positioning equipment is positioned indoors or not according to the maximum WIFI signal intensity in the WIFI hotspot data and the maximum GPS signal intensity of the GPS positioning module; wherein the second duration is less than the first duration;
And when the positioning equipment is judged to be positioned indoors, the GPS positioning module is closed, and the GPS positioning failure message is sent to the positioning server.
8. the method as claimed in claim 7, wherein when the GPS positioning module is turned on for a second duration, the method determines whether the positioning device is located indoors according to the maximum WIFI signal strength in the WIFI hotspot data and the maximum GPS signal strength of the GPS positioning module, specifically:
when the starting time of the GPS positioning module reaches a preset second time threshold value, judging whether the maximum WIFI signal intensity in the WIFI hotspot data is greater than a preset first signal intensity value and the maximum GPS signal intensity of the GPS positioning module is smaller than a preset second signal intensity value;
and if so, judging that the positioning equipment is positioned indoors.
9. The positioning method of claim 7, further comprising:
When the starting time of the GPS positioning module reaches a preset third time duration value, judging whether satellite searching fails or not according to the satellite searching number of the GPS positioning module and the maximum GPS signal intensity, wherein the third time duration value is larger than the second time duration value and smaller than the first time duration value;
And when satellite searching failure is judged, the GPS positioning module is closed, and the GPS positioning failure message is sent to the positioning server.
10. The method according to claim 9, wherein when the start duration of the GPS positioning module reaches a preset third duration value, determining whether satellite search fails according to the number of satellites searched by the GPS positioning module and the maximum GPS signal strength includes:
when the starting time of the GPS positioning module reaches a preset third time duration value, judging whether the satellite searching number of the GPS positioning module is less than a preset number value and the maximum GPS signal intensity of the GPS positioning module is less than a preset third signal intensity value;
and if so, judging that the satellite searching fails.
11. The positioning method according to any one of claims 6 to 10, further comprising:
When acquiring the WIFI hotspot data near the current positioning equipment searched by the WIFI module in the positioning equipment, acquiring the base station information data near the current positioning equipment searched by the GSM module in the positioning equipment;
When the GSM module in the positioning equipment is controlled to upload the WIFI hotspot data to a positioning server, the GSM module in the positioning equipment is controlled to upload the base station information data to the positioning server;
The GPS positioning failure message is used for informing the positioning server to update the current position of the positioning equipment according to the first position information, or when the first position information does not exist, third position information is obtained according to the base station information data, and the current position of the positioning equipment is updated according to the third position information.
12. a positioning device, comprising:
The updating position judging module is used for judging whether the current position of the positioning equipment needs to be updated or not when the positioning equipment needs to be positioned;
the GPS starting module is used for starting the GPS positioning module on the positioning equipment when the current position of the positioning equipment needs to be updated;
The WIFI data acquisition module is used for acquiring WIFI hotspot data near the current positioning equipment, which are searched by the WIFI module in the positioning equipment; if the WIFI module cannot acquire WIFI hotspot data within a preset time or the positioning equipment is abnormal, the WIFI module is controlled to reset and work again;
A WIFI data uploading module, configured to control a GSM module in the positioning device to upload the WIFI hotspot data to a positioning server, so that the positioning server obtains first position information according to the WIFI hotspot data, updates a current position of the positioning device according to the first position information when a preset condition is met, and returns a stop GPS positioning command, where the preset condition is that the positioning server can determine that the positioning device is located indoors according to the first position information, or the positioning server can determine that the positioning device is located outdoors according to the first position information, and the positioning accuracy of the first position information is smaller than a preset accuracy value;
the GPS closing module is used for closing the GPS positioning module when a GPS positioning stopping command returned by the positioning server is obtained; and the number of the first and second groups,
And the position information acquisition module is used for closing the GPS positioning module and sending the second position information to the positioning server when the second position information is acquired by the GPS positioning module, so that the positioning server updates the current position of the positioning equipment according to the second position information.
13. The positioning device of claim 12, further comprising:
and the success message acquisition module is used for acquiring the position updating success message sent by the positioning server and recording the acquisition time, wherein the position updating success message is generated by the positioning server after the current position of the positioning device is updated.
14. the positioning apparatus according to claim 13, wherein the update position determining module specifically includes:
the first distance acquisition unit is used for acquiring the moving distance between the moment when the positioning equipment acquires the position updating success message last time and the current moment when the positioning equipment needs to be positioned;
The comparison unit is used for comparing the moving distance with a preset distance threshold value; and the number of the first and second electrodes,
And when the moving distance does not exist or is larger than a preset distance threshold, judging that the current position of the positioning equipment needs to be updated.
15. the positioning apparatus according to claim 13, wherein the update position determining module specifically includes:
a second distance obtaining unit, configured to obtain, when the positioning device needs to be positioned, a moving distance between a time when the positioning device has last obtained the location update success message and a current time;
a moving distance sending unit, configured to send the moving distance to a positioning server, so that the positioning server compares the moving distance with a preset distance threshold, and returns a position updating requirement command when it is determined that the moving distance does not exist or is greater than the preset distance threshold;
and the judgment result acquisition unit is used for judging that the current position of the positioning equipment needs to be updated when the position command needing to be updated is acquired.
16. the positioning device of claim 14 or 15, further comprising:
And the positioning requirement judging module is used for judging that the positioning equipment needs to be positioned when the position information request sent by the positioning server is acquired or the triggering of a timing trigger in the positioning equipment is detected.
17. The positioning device of claim 12, further comprising:
And the first time length monitoring module is used for closing the GPS positioning module and sending a GPS positioning failure message to the positioning server when the starting time length of the GPS positioning module reaches a preset first time length.
18. the positioning device of claim 17, further comprising:
the second duration monitoring module is used for judging whether the positioning equipment is positioned indoors or not according to the maximum WIFI signal intensity in the WIFI hotspot data and the maximum GPS signal intensity of the GPS positioning module when the starting duration of the GPS positioning module reaches a preset second duration value; wherein the second duration is less than the first duration; and the number of the first and second groups,
And when the positioning equipment is judged to be positioned indoors, the GPS positioning module is closed, and the GPS positioning failure message is sent to the positioning server.
19. The positioning apparatus of claim 18, wherein the second duration monitoring module is specifically configured to:
When the starting time of the GPS positioning module reaches a preset second time width, judging whether the maximum WIFI signal intensity in the WIFI hotspot data is greater than a preset first signal intensity width and the maximum GPS signal intensity of the GPS positioning module is less than a preset second signal intensity width; and the number of the first and second electrodes,
when the maximum WIFI signal intensity in the WIFI hotspot data is larger than a preset first signal intensity value and the maximum GPS signal intensity of the GPS positioning module is smaller than a preset second signal intensity threshold value, judging that the positioning equipment is located indoors; and the number of the first and second groups,
and when the positioning equipment is judged to be positioned indoors, the GPS positioning module is closed, and the GPS positioning failure message is sent to the positioning server.
20. the positioning device of claim 18, further comprising:
And the third time duration monitoring module is used for judging whether satellite search fails or not according to the satellite search number and the maximum GPS signal intensity of the GPS positioning module when the starting time duration of the GPS positioning module reaches a preset third time duration value, wherein the third time duration value is larger than the second time duration value and smaller than the first time duration value, and when satellite search fails, the GPS positioning module is closed and the GPS positioning failure message is sent to the positioning server.
21. The positioning apparatus of claim 20, wherein the third duration monitoring module is specifically configured to:
When the starting time of the GPS positioning module reaches a preset third time duration value, judging whether the satellite searching number of the GPS positioning module is less than a preset number value and the maximum GPS signal intensity of the GPS positioning module is less than a preset third signal intensity value; and the number of the first and second electrodes,
and when the satellite search is judged to fail, the GPS positioning module is closed, and a GPS positioning failure message is sent to the positioning server.
22. the positioning device according to any one of claims 17 to 21, further comprising:
The base station data acquisition module is used for acquiring the current base station information data near the positioning equipment searched by the GSM module in the positioning equipment when acquiring the current WIFI hotspot data near the positioning equipment searched by the WIFI module in the positioning equipment;
the base master data uploading module is used for controlling the GSM module in the positioning equipment to upload the WIFI hotspot data to the positioning server when controlling the GSM module in the positioning equipment to upload the WIFI hotspot data to the positioning server;
the GPS positioning failure message is used for informing the positioning server to update the current position of the positioning equipment according to the first position information, or when the first position information does not exist, third position information is obtained according to the base station information data, and the current position of the positioning equipment is updated according to the third position information.
23. the utility model provides a positioning device, its characterized in that, positioning device includes GPS orientation module, WIFI module and GSM module:
And the positioning device is further provided with a positioning apparatus according to any of claims 12-22.
24. A positioning system, characterized in that it comprises a positioning server and a positioning device according to claim 23.
25. The location system of claim 24, wherein the location system further comprises a smart terminal;
the intelligent terminal is used for receiving the current position information of the positioning equipment sent by the positioning server and displaying the current position of the positioning equipment.
CN201610833320.4A 2016-09-19 2016-09-19 Positioning method, device, equipment and system Active CN106211078B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610833320.4A CN106211078B (en) 2016-09-19 2016-09-19 Positioning method, device, equipment and system
PCT/CN2016/113571 WO2018049765A1 (en) 2016-09-19 2016-12-30 Positioning method, device, apparatus, and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610833320.4A CN106211078B (en) 2016-09-19 2016-09-19 Positioning method, device, equipment and system

Publications (2)

Publication Number Publication Date
CN106211078A CN106211078A (en) 2016-12-07
CN106211078B true CN106211078B (en) 2019-12-06

Family

ID=58067164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610833320.4A Active CN106211078B (en) 2016-09-19 2016-09-19 Positioning method, device, equipment and system

Country Status (2)

Country Link
CN (1) CN106211078B (en)
WO (1) WO2018049765A1 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106211078B (en) * 2016-09-19 2019-12-06 广州视源电子科技股份有限公司 Positioning method, device, equipment and system
CN106255188B (en) * 2016-09-19 2019-11-26 广州视源电子科技股份有限公司 Localization method, device, equipment and system
CN106597509B (en) * 2017-01-04 2019-05-07 广东小天才科技有限公司 A kind of localization method and device
CN107426715B (en) * 2017-06-29 2020-12-18 北京三快在线科技有限公司 Position data processing method, device, equipment and storage medium
CN108833678A (en) * 2018-05-23 2018-11-16 Oppo广东移动通信有限公司 Electronic device, indicating means and Related product
CN109782221A (en) * 2018-12-27 2019-05-21 深圳市宏电技术股份有限公司 A kind of equipment localization method and system
CN110972075B (en) * 2019-11-28 2021-04-09 Tcl移动通信科技(宁波)有限公司 Positioning control method, positioning control circuit, storage medium and terminal
CN111556435A (en) * 2020-05-08 2020-08-18 辽宁瑞华实业集团高新科技有限公司 Low-power-consumption positioning device
CN111836346B (en) * 2020-06-08 2022-08-02 浙江联控技术有限公司 Bluetooth key positioning method, device and equipment
CN111770439A (en) * 2020-06-24 2020-10-13 上海万位数字技术有限公司 Vehicle positioning method, device and system
CN113259851A (en) * 2021-05-17 2021-08-13 东莞市小精灵教育软件有限公司 Indoor and outdoor detection method and system based on mobile terminal
CN113824461B (en) * 2021-08-04 2023-04-07 惠州Tcl云创科技有限公司 Positioning method and system based on smart watch and mobile terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102884445A (en) * 2010-05-26 2013-01-16 株式会社Ntt都科摩 Position measuring device and method
CN105182385A (en) * 2015-09-17 2015-12-23 北京奇虎科技有限公司 Geographic position monitoring method and equipment
CN105629283A (en) * 2015-12-22 2016-06-01 北京奇虎科技有限公司 Mobile terminal positioning method and mobile terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009099773A2 (en) * 2008-02-01 2009-08-13 Walker Jonathan B Systems and methods for providing location based services (lbs) utilizing wlan and/or gps signals for seamless indoor and outdoor tracking
US10168161B2 (en) * 2012-10-22 2019-01-01 Qualcomm Incorporated Changing a position determination scheme used by a user equipment during a transition between indoor and outdoor spaces relative to an enclosed environment
CN103969665B (en) * 2014-05-30 2016-09-07 云朵网络有限公司 A kind of location equipment
CN105430608A (en) * 2015-10-08 2016-03-23 深圳市盛思达通讯技术有限公司 Tracking and positioning method and system
CN105929432B (en) * 2016-04-15 2018-04-06 浪潮集团有限公司 A kind of hybrid locating method, positioning terminal and hybrid location system
CN106211078B (en) * 2016-09-19 2019-12-06 广州视源电子科技股份有限公司 Positioning method, device, equipment and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102884445A (en) * 2010-05-26 2013-01-16 株式会社Ntt都科摩 Position measuring device and method
CN105182385A (en) * 2015-09-17 2015-12-23 北京奇虎科技有限公司 Geographic position monitoring method and equipment
CN105629283A (en) * 2015-12-22 2016-06-01 北京奇虎科技有限公司 Mobile terminal positioning method and mobile terminal

Also Published As

Publication number Publication date
CN106211078A (en) 2016-12-07
WO2018049765A1 (en) 2018-03-22

Similar Documents

Publication Publication Date Title
CN106211078B (en) Positioning method, device, equipment and system
WO2018049766A1 (en) Positioning method, device, apparatus, and system
EP3137921B1 (en) Indoor global positioning system
CN112622881B (en) Intelligent parking method, device, system, storage medium and vehicle
CN107390245A (en) A kind of localization method, device, equipment and storage medium
CN105139644A (en) Indoor parking space positioning method based on APP and GPS inertial guidance
CN107544085B (en) Positioning method and wearable device
CN102638875A (en) Power-saving wireless positioning method, device and system for mobile terminal
CN111522045B (en) GPS module cold start method and device of terminal, terminal and storage medium
CN108870753B (en) Control method of intelligent water heater and intelligent water heater
CN106842967B (en) Household appliance control method and device based on positioning information
US20200196268A1 (en) System and method for positioning a gateway of an architecture
US20220250488A1 (en) Method and system for charging electric vehicle, and storage medium
EP3550448A1 (en) Map display method and system, terminal and map server
CN104076379A (en) Transmissibility-adaptive intelligent electricity-saving 4G locating and tracking device and method
CN109959948A (en) Acquisition methods, terminal, storage medium, the electronic device of location information
CN106792520B (en) Position information recording method and apparatus
CN105644472A (en) Rapid positioning method and vehicle-mounted system
CN103108390A (en) Method and device capable of forecasting geographic position of mobile terminal
CN106597509B (en) A kind of localization method and device
CN107884795B (en) Method and system for judging entering and exiting areas based on GPS
CN103763731A (en) Positioning detection method and device
US20150276932A1 (en) Apparatus and method for determining location of mobile object
CN102610917A (en) Method for controlling antennas by high-precision data leading
CN112423231A (en) Positioning method, device and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant