CN110730424A - Positioning method, device and system - Google Patents

Positioning method, device and system Download PDF

Info

Publication number
CN110730424A
CN110730424A CN201910966625.6A CN201910966625A CN110730424A CN 110730424 A CN110730424 A CN 110730424A CN 201910966625 A CN201910966625 A CN 201910966625A CN 110730424 A CN110730424 A CN 110730424A
Authority
CN
China
Prior art keywords
terminal
tracker
positioning
bluetooth connection
location
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.)
Pending
Application number
CN201910966625.6A
Other languages
Chinese (zh)
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 Coolpad Technologies Co Ltd
Original Assignee
Shenzhen Coolpad Technologies 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 Coolpad Technologies Co Ltd filed Critical Shenzhen Coolpad Technologies Co Ltd
Priority to CN201910966625.6A priority Critical patent/CN110730424A/en
Publication of CN110730424A publication Critical patent/CN110730424A/en
Pending legal-status Critical Current

Links

Images

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/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • 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 provides a positioning method, a system and a device.A terminal acquires the position information of a positioning tracker through a cellular data network; the terminal determines the distance between the positioning tracker and the terminal according to the position information of the positioning tracker and the position information of the terminal; when the distance is smaller than a preset distance, the terminal sends a Bluetooth connection establishment request to the positioning tracker; after the terminal is successfully connected with the positioning tracker through Bluetooth, the cellular data network is disconnected, a position acquisition request for acquiring the position information of the positioning tracker is sent to the positioning tracker through the Bluetooth connection, and the position information of the positioning tracker is acquired through the Bluetooth connection. The invention can reduce the use power of the positioning tracker and prolong the endurance time of the positioning tracker.

Description

Positioning method, device and system
Technical Field
The invention relates to the field of geographic positioning, in particular to a positioning method, a positioning device and a positioning system.
Background
When the terminal is located by the location tracker, the terminal and the location tracker transmit information through a mobile network. The positioning tracker has high power consumption for transmitting data through a mobile network, and is relatively power-consuming. The positioning tracker is limited by the size of the positioning tracker, and the battery capacity is small, so that the endurance time of the positioning tracker is short, and the normal use of a user is influenced.
Disclosure of Invention
In order to solve the above problem, embodiments of the present invention provide a positioning method, apparatus, and system.
In a first aspect, an embodiment of the present invention provides a positioning method, including the following steps:
the terminal acquires the position information of the positioning tracker through a cellular data network;
the terminal determines the distance between the positioning tracker and the terminal according to the position information of the positioning tracker and the position information of the terminal;
when the distance is smaller than a preset distance, the terminal sends a Bluetooth connection establishment request to the positioning tracker;
after the terminal is successfully connected with the positioning tracker through Bluetooth, the cellular data network is disconnected, a position acquisition request for acquiring the position information of the positioning tracker is sent to the positioning tracker through the Bluetooth connection, and the position information of the positioning tracker is acquired through the Bluetooth connection.
Optionally, the method further comprises:
if the distance is greater than or equal to the preset distance, continuously acquiring the position information of the positioning tracker through the cellular data network; or
And when the Bluetooth connection is not successfully established between the terminal and the positioning tracker, continuously acquiring the position information of the positioning tracker through the cellular data network.
Optionally, the acquiring, by the terminal, the location information of the location tracker through the cellular data network includes:
the terminal sends a position acquisition request to a positioning server through a cellular data network;
the terminal receives a position acquisition response sent by the positioning server in response to the position acquisition request; wherein the location acquisition response carries location information of the location tracker.
Optionally, after the terminal successfully establishes a bluetooth connection with the location tracker, disconnecting the cellular data network, and sending a location acquisition request for acquiring location information of the location tracker to the location tracker through the bluetooth connection, the method further includes:
when detecting that the communication quality parameter of the Bluetooth connection does not meet the preset condition, disconnecting the Bluetooth connection;
obtaining location information for the location tracker over the cellular data network.
Optionally, the communication quality parameter includes one or more of a time delay and a packet loss rate.
In a second aspect, an embodiment of the present invention provides a positioning method, including the following steps:
receiving a Bluetooth connection request from a terminal;
after the Bluetooth connection request is verified to pass, establishing Bluetooth connection with the terminal;
receiving a position acquisition request sent by the terminal through the Bluetooth connection request;
sending a position acquisition response to the terminal in response to the position acquisition request; wherein the location acquisition response carries location information of the location tracker.
Optionally, the bluetooth connection request carries a device identifier of the terminal;
after the bluetooth connection request is verified, before the bluetooth connection is established with the terminal, the method further includes:
judging whether the equipment identifier is the same as a pre-stored equipment identifier or not;
if so, verifying that the Bluetooth connection request passes;
if not, verifying that the Bluetooth connection request does not pass.
In a third aspect, an embodiment of the present invention provides a positioning system, including:
a terminal capable of implementing the terminal-side positioning method;
a positioning tracker capable of realizing the positioning method on the positioning tracker side;
and the server is used for controlling data forwarding between the terminal and the positioning tracker.
In a fourth aspect, an embodiment of the present invention provides a positioning apparatus, including:
the acquisition unit is used for acquiring the position information of the positioning tracker by the terminal through a cellular data network;
the determining unit is used for determining the distance between the positioning tracker and the terminal according to the position information of the positioning tracker and the position information of the terminal;
the first sending unit is used for sending a Bluetooth connection establishment request to the positioning tracker by the terminal when the distance is smaller than a preset distance;
and the second sending unit is used for disconnecting the cellular data network after the terminal is successfully connected with the positioning tracker through Bluetooth, sending a position acquisition request for acquiring the position information of the positioning tracker to the positioning tracker through the Bluetooth connection, and acquiring the position information of the positioning tracker through the Bluetooth connection.
In a fifth aspect, an embodiment of the present invention provides a positioning apparatus, including:
a first receiving unit for receiving a bluetooth connection request from a terminal;
the establishing unit is used for establishing Bluetooth connection with the terminal after the Bluetooth connection request is verified to pass;
the second receiving unit is used for receiving a position acquisition request sent by the terminal through the Bluetooth connection request;
a sending unit, configured to send a location acquisition response to the terminal in response to the location acquisition request; wherein the location acquisition response carries location information of the location tracker.
According to the positioning method, the positioning device and the positioning system, when the distance between the terminal equipment and the positioning tracker is smaller than the preset distance, the terminal equipment acquires the position information of the positioning tracker through Bluetooth connection. When the positioning tracker sends data through the cellular data network, the consumption power of the positioning tracker is higher and is more power-consuming, and the power consumption of the positioning tracker is smaller when the positioning tracker sends data through the Bluetooth mode. Therefore, compared with the method that the positioning tracker always sends data through the cellular data network, the method and the device can reduce the use power of the positioning tracker, prolong the endurance time of the positioning tracker and improve the use experience of users.
Drawings
Fig. 1A is a schematic diagram of a system architecture to which a positioning method or apparatus according to an embodiment of the present invention can be applied;
fig. 1B is a schematic diagram of another system architecture to which the positioning method or apparatus of the embodiment of the invention can be applied;
fig. 2 is a schematic flowchart of a positioning method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of another positioning method according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of another positioning method according to an embodiment of the present invention;
FIG. 5 is a block diagram of an overall system architecture provided by an embodiment of the present invention;
fig. 6 is a schematic flowchart of another positioning method according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a positioning system provided by an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of a positioning device according to an embodiment of the present invention;
FIG. 9 is a schematic structural diagram of another positioning apparatus provided in the embodiments of the present invention;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present application is further described with reference to the following figures and examples.
In the following description, the terms "first" and "second" are used for descriptive purposes only and are not intended to indicate or imply relative importance. The following description provides embodiments of the invention, which may be combined or substituted for various embodiments, and this application is therefore intended to cover all possible combinations of the same and/or different embodiments described. Thus, if one embodiment includes feature A, B, C and another embodiment includes feature B, D, then this application should also be considered to include an embodiment that includes one or more of all other possible combinations of A, B, C, D, even though this embodiment may not be explicitly recited in text below.
The following description provides examples, and does not limit the scope, applicability, or examples set forth in the claims. Changes may be made in the function and arrangement of elements described without departing from the scope of the disclosure. Various examples may omit, substitute, or add various procedures or components as appropriate. For example, the described methods may be performed in an order different than the order described, and various steps may be added, omitted, or combined. Furthermore, features described with respect to some examples may be combined into other examples.
Fig. 1A is a schematic diagram of a system architecture to which a positioning method or apparatus according to an embodiment of the present invention can be applied. As shown in fig. 1A, the system architecture 100 may include a terminal device 101, networks 102, 104, a server 103, and a location tracker 105. The network 102 or 104 is the medium used to provide the communication link between the terminal device 101, the server 103 and the location tracker 105. Networks 102 or 104 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few. It should be understood that the number of terminal devices, networks, and servers in FIG. 1A are merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation. For example, the server 102 may be a server cluster composed of a plurality of servers, and the like.
The terminal device 101 receives the positioning information of the positioning tracker 105 through the server 103. The terminal device 101 may be various electronic devices having a display screen, including but not limited to a smart phone, a tablet computer, a portable computer, a desktop computer, and the like.
Fig. 1B is a schematic diagram of another system architecture to which the positioning method or apparatus of the embodiment of the invention can be applied. As shown in fig. 1B, in the case where the distance between the terminal device 101 and the location tracker 105 is smaller than the preset distance, the terminal device 101 and the location tracker 105 can directly communicate with each other without passing through the network 102, the network 104, and the server 103. Compared to the positioning method shown in fig. 1A, the method shown in fig. 1B is simpler and the power consumption of the positioning tracker 105 for transmitting data is smaller.
Referring to fig. 2, fig. 2 is a schematic flowchart of a positioning method according to an embodiment of the present invention, where the method includes:
s201, the terminal acquires the position information of the positioning tracker through a cellular data network.
The positioning method provided by the embodiment of the invention is applied to the terminal. The terminal sends a location acquisition request to a location server through a cellular data network. And the terminal receives a position acquisition response sent by the positioning server in response to the position acquisition request. Wherein the location acquisition response carries location information of the location tracker. Specifically, the terminal sends a location acquisition request to the location server through the cellular data network, wherein the location acquisition request includes an identifier of the terminal and an identifier of the location tracker. The server can judge whether the terminal has the corresponding position request authority or not based on the identifier of the terminal and the identifier of the positioning tracker contained in the request. And if the terminal has the corresponding position request authority, the server forwards the position acquisition request to the corresponding positioning tracker. The positioning tracker forwards the position information of the positioning tracker to the server. The server sends a location acquisition response to the terminal. And if the terminal does not have the corresponding position request authority, the server returns prompt information to the terminal.
The terminal may also send a location acquisition request directly to the location tracker over the cellular data network. The positioning tracker can verify the authority of the terminal and send the position acquisition response carrying the position information of the positioning tracker to the terminal with the access authority.
The location information may be represented in longitude and latitude coordinates. A known position may be used as a reference point, and the position information may be expressed by a distance from the reference point and a position at the reference point, for example: the position information may be expressed in 100 meters and true west with a flagpole on a certain playground as a reference point. The position information indicates a position of the position exactly 100 meters west from the reference point. Those skilled in the art may also use other ways to represent location information and the application is not so limited.
S202, the terminal determines the distance between the positioning tracker and the terminal according to the position information of the positioning tracker and the position information of the terminal.
The terminal can obtain the position information of the terminal through a positioning device of the terminal. The terminal can also obtain the position information of the terminal through some positioning software, such as Beidou navigation and the like. Those skilled in the art may also adopt other manners as long as the position information of the terminal can be obtained, which is not described herein again.
The distance between the positioning tracker and the terminal can be directly calculated according to the position information of the positioning tracker and the position information of the terminal. The distance between the positioning tracker and the terminal can also be determined by software such as an electronic map. In short, the distance between the location tracker and the terminal may be determined according to the location information of the location tracker and the location information of the terminal, and the present application is not limited to this.
S203, when the distance is smaller than the preset distance, the terminal sends a Bluetooth connection establishment request to the positioning tracker.
The preset distance may be set according to bluetooth performance characteristics of the terminal and bluetooth performance characteristics of the location tracker. For example, in the case where the terminal and the location tracker both support bluetooth 5.0 communication, the terminal can perform high-quality communication within a range of 500 meters by using bluetooth 5.0 communication. The positioning tracker can communicate with high quality in a communication mode of Bluetooth 5.0 within the range of 300 meters. Then, the preset distance may be set to 300 meters to ensure that the terminal and the location tracker may communicate with each other in a bluetooth manner with higher quality within the preset distance range.
Optionally, the terminal sends a bluetooth connection establishment request to the location tracker at a predetermined time period. The terminal sends a bluetooth connection request only once and may not be able to successfully establish a bluetooth connection with the location tracker. And the terminal sends a Bluetooth connection establishment request to the positioning tracker in a period of preset time, so that the probability of successfully establishing the Bluetooth connection between the terminal and the positioning tracker can be increased.
S204, after the terminal is successfully connected with the positioning tracker through Bluetooth, the cellular data network is disconnected, a position acquisition request for acquiring the position information of the positioning tracker is sent to the positioning tracker through the Bluetooth connection, and the position information of the positioning tracker is acquired through the Bluetooth connection.
Optionally, after step S204, the method further includes:
and when detecting that the communication quality parameters of the Bluetooth connection do not meet the preset conditions, disconnecting the Bluetooth connection.
Obtaining location information for the location tracker over the cellular data network.
Optionally, the communication quality parameter includes one or more of a time delay and a packet loss rate.
The preset conditions can be set according to actual requirements. If the communication quality parameter of the Bluetooth connection does not meet the preset condition, the communication quality between the terminal and the positioning tracker is poor. If the two continue to communicate in a bluetooth connection, there is a risk of data loss or poor communication quality. Thus, the bluetooth connection is disconnected. Obtaining location information for the location tracker over the cellular data network. To ensure a higher quality of communication between the terminal and the position tracker.
According to the positioning method provided by the embodiment of the invention, when the distance between the terminal equipment and the positioning tracker is smaller than the preset distance, the terminal equipment acquires the position information of the positioning tracker through Bluetooth connection. The prior art location tracker has been sending data over the cellular data network. When the positioning tracker transmits data through the cellular data network, the positioning tracker consumes a relatively high power and is relatively power-consuming. Therefore, the invention can solve the problems of higher use power and shorter endurance time of the positioning tracker in the prior art.
Referring to fig. 3, fig. 3 is a schematic flow chart of another positioning method provided in an embodiment of the present invention, where the method includes:
s301, the terminal acquires the position information of the positioning tracker through a cellular data network.
The specific process of S301 may refer to the description of S201 in fig. 2, and is not described herein again.
S302, the terminal acquires the position information of the terminal.
S303, the terminal determines the distance between the positioning tracker and the terminal according to the position information of the positioning tracker and the position information of the terminal.
S304, when the distance is smaller than the preset distance, the terminal sends a Bluetooth connection establishment request to the positioning tracker.
The specific process of S304 may refer to the description of S203 in fig. 2, and is not described herein again.
S305, after the terminal and the positioning tracker successfully establish Bluetooth connection, disconnecting the cellular data network, and sending a position acquisition request to the positioning tracker through the Bluetooth connection. Wherein the position acquisition request is used for acquiring the position information of the positioning tracker.
The specific process of S305 may refer to the description of S204 in fig. 2, and is not described herein again.
S306, if the distance is larger than or equal to the preset distance, continuously acquiring the position information of the positioning tracker through the cellular data network.
S307, when the Bluetooth connection between the terminal and the positioning tracker is not successfully established, the position information of the positioning tracker is continuously acquired through the cellular data network.
According to the positioning method provided by the embodiment of the invention, communication is continuously carried out through a cellular data network under the condition that the distance between the terminal and the positioning tracker is greater than or equal to the preset distance or the Bluetooth connection is not successfully established between the terminal and the positioning tracker. The positioning method provided by the embodiment of the invention can still keep a high-quality communication state between the terminal and the positioning tracker when the distance between the terminal and the positioning tracker changes or the Bluetooth connection is not successfully established.
Referring to fig. 4, fig. 4 is a schematic flowchart of another positioning method provided in an embodiment of the present invention, where the method includes:
s401, receiving a Bluetooth connection request from a terminal.
The positioning method provided by the embodiment of the invention is applied to a positioning tracker end.
Optionally, the bluetooth connection request carries a device identifier of the terminal.
After the bluetooth connection request is verified, before the bluetooth connection is established with the terminal, the method further includes:
and judging whether the equipment identifier is the same as a pre-stored equipment identifier.
If so, verifying that the Bluetooth connection request passes.
If not, verifying that the Bluetooth connection request does not pass.
The device identification that can securely communicate with the location tracker may be pre-stored in the location tracker. Before the positioning tracker and the terminal establish a Bluetooth request, the positioning tracker judges the authority of the terminal through the equipment identification so as to ensure the safety of both communication parties.
S402, after the Bluetooth connection request is verified to pass, Bluetooth connection is established with the terminal.
S403, receiving a position acquisition request sent by the terminal through the Bluetooth connection request.
S404, responding to the position acquisition request, and sending a position acquisition response to the terminal. Wherein the location acquisition response carries location information of the location tracker.
According to the positioning method provided by the embodiment of the invention, when the distance between the terminal equipment and the positioning tracker is smaller than the preset distance, the positioning tracker is obtained and the position information of the positioning tracker is sent to the terminal equipment through Bluetooth connection. The prior art location tracker has been sending data over the cellular data network. When the positioning tracker transmits data through the cellular data network, the positioning tracker consumes a relatively high power and is relatively power-consuming. Therefore, the invention can effectively reduce the use power of the positioning tracker and prolong the endurance time of the positioning tracker.
To better illustrate the technical solution of the present invention, a specific embodiment is explained below. The embodiment of the invention provides a method for determining the distance between a GPS (Global Positioning System) tracker and a smart phone app (mobile phone software) by combining a digital cellular network (2G/3G/4G/5G) communication and a low-power Bluetooth 5.0 communication mode, when the distance is less than 300 meters (the maximum communication distance of the Bluetooth 5.0 can reach 300 meters, the distance of the version below the Bluetooth 5.0 is set as 100 meters), the communication mode of acquiring the real-time position information from the GPS tracker is switched from a digital cellular network (2G/3G/4G/5G) communication module to a Bluetooth 5.0 communication module, the communication power consumption is greatly reduced (the power consumption current of the Bluetooth 5.0 communication module is less than 10mA), therefore, the service life of the GPS tracker in a short-distance tracking and positioning scene is greatly prolonged;
fig. 5 is a general framework diagram of a system according to an embodiment of the present invention. As shown in fig. 5, the embodiment of the present invention is composed of a GPS tracker module (supporting bluetooth 5.0 and lower versions, 2G/3G/4G/5G digital cellular network communication), a server module, and a smart phone app module; the GPS tracker module is mainly responsible for acquiring real-time longitude and latitude position information, forwarding the real-time longitude and latitude position information to the smart phone app module through a 2G/3G/4G/5G digital cellular network via the server, or directly sending the real-time longitude and latitude position information to the smart phone app module which is well paired and connected through Bluetooth 5.0; the server module is mainly responsible for forwarding control information and address position information between the GPS tracker module and the smart phone app module; the smart phone app module supports versions of 5.0 and below of Bluetooth, is responsible for interacting with a user, and acquires and presents longitude and latitude position information of the GPS tracker module.
Fig. 6 is a schematic flowchart of another positioning method according to an embodiment of the present invention. As shown in fig. 6, the method comprises the steps of:
after the GPS tracker module is powered on, the ID of the GPS tracker module is registered to a server and is connected with the server, and then Bluetooth pairing is carried out on the GPS tracker module and a smart phone provided with a smart phone app module.
After the smart phone app module is opened, the smart phone app module is connected to a server through a 2G/3G/4G/5G or wifi network, after entering a registration interface, a user registers a new account to the server, logs in the server through the new account, and binds the ID of the GPS tracker module to the account. A request to obtain the location of the GPS tracker is sent to a server.
The server module is used for processing the registration request of the GPS tracker and storing registration information; processing a new account registration request of the smart phone app, and storing registration information; processing a binding request of an app module of the smart phone, establishing and storing a corresponding relation between a GPS tracker ID and an account; and receiving a position request for acquiring the GPS tracker sent by the app module of the smart phone, and forwarding the position request to the GPS tracker corresponding to the ID.
And the GPS tracker module starts a GPS to acquire longitude and latitude information of the current position after receiving the position acquisition request forwarded by the server, uploads the longitude and latitude information to the server, and forwards the longitude and latitude information to the smart phone app module of the corresponding account through the server.
After receiving longitude and latitude position information of the GPS tracker module forwarded by the server, the app module of the smart phone presents the information to a user in a map form through a UI (user interface), then obtains GPS positioning position information of the smart phone, calculates the distance between two positions, tries to establish Bluetooth connection with the GPS tracker module once every 5 seconds when the distance is less than 300 meters (the maximum transmission distance of Bluetooth 5.0 is 300 meters, and the distance value is set to be 100 meters for versions below Bluetooth 5.0), still regularly obtains the position information of the GPS tracker module through a 2G/3G/4G/5G digital cellular network during the connection trying to establish, and stops trying to establish Bluetooth connection if the newly obtained position distance of the GPS tracker module is more than 300 meters, and continues to forward a position obtaining request through the server; after the Bluetooth connection is successfully established, the smart phone app module is switched to directly send a position acquisition request to the GPS tracker module through Bluetooth, after longitude and latitude position information of the GPS tracker module is acquired, the position acquisition request is presented to a user in a map form through a UI, if the reply of the GPS tracker module is not acquired within 5 seconds, the Bluetooth connection is considered to be abnormal or disconnected, and then the position acquisition request is switched back to send the position acquisition request to the GPS tracker module through a 2G/3G/4G/5G digital cellular network via a server.
The positioning system provided by the embodiment of the invention can comprise the following modules:
a GPS tracker module: the module is mainly responsible for GPS positioning and has the communication capability of a 2G/3G/4G/5G digital cellular network and the communication capability of Bluetooth 5.0 and the following versions; the method comprises the steps that a position acquisition request forwarded by a server is processed, and position information is returned to an app module of the smart phone through the server; the smart phone app module is used for processing a position information acquisition request directly sent by the smart phone app module through Bluetooth and directly returning position information to the smart phone app module through the Bluetooth.
A server module: the GPS tracker is responsible for processing a registration request of the GPS tracker and storing registration information; processing a new account registration request of the smart phone app, storing registration information, processing a binding request of a smart phone app module, and establishing and storing a corresponding relation between a GPS tracker ID and an account; receiving a position request for acquiring the GPS tracker sent by the app module of the smart phone, and forwarding the position request to the GPS tracker corresponding to the ID; and after receiving the position information returned by the GPS tracker, forwarding the position information to the corresponding smartphone app module.
The smart phone app module is mainly responsible for processing work of the user side:
(1) presenting the position information of the GPS tracker module in a map form through a UI (User Interface);
(2) acquiring the position information of a GPS of the smart phone;
(3) calculating the distance between the terminal and the positioning tracker, and starting a Bluetooth 5.0 module and a GPS tracker module to try to establish Bluetooth connection if the distance is less than 300 m; during the connection establishment, still periodically acquiring the position information of the GPS tracker module through a 2G/3G/4G/5G digital cellular network, if the newly acquired position distance of the GPS tracker module is more than 300 meters, stopping trying to establish Bluetooth connection, and continuously forwarding a position acquisition request through a server; if the smartphone only supports below the bluetooth version 5.0, then the 300 meter distance above is set to 100 meters.
After the Bluetooth connection is successfully established, the smart phone app module is switched to directly send a position acquisition request to the GPS tracker module through Bluetooth, after longitude and latitude position information of the GPS tracker module is acquired, the position acquisition request is presented to a user in a map form through a UI, if the reply of the GPS tracker module is not acquired within 5 seconds, the Bluetooth connection is considered to be abnormal or disconnected, and then the position acquisition request is switched back to send the position acquisition request to the GPS tracker module through a 2G/3G/4G/5G digital cellular network via a server.
The embodiment of the invention provides a communication mode which can be used by combining digital cellular network (2G/3G/4G/5G) communication and low-power-consumption Bluetooth 5.0 communication, and an app end of a smart phone judges the distance between a GPS tracker and the app end, and when the distance is less than 300 meters (the maximum communication distance of the Bluetooth 5.0 can reach 300 meters, and the distance of the version below the Bluetooth 5.0 is set as 100 meters), the communication mode for acquiring real-time position information from the GPS tracker is switched from a digital cellular network (2G/3G/4G/5G) communication module to a Bluetooth 5.0 communication module, so that the communication power consumption is greatly reduced (the power consumption current of the Bluetooth 5.0 communication module is less than 10mA), and the use duration of the GPS tracker under a short-distance tracking and positioning scene is greatly improved.
Fig. 2 to fig. 6 describe the positioning method in detail in the embodiment of the present application. Fig. 7 is a schematic diagram of a positioning system according to an embodiment of the present invention, and as shown in fig. 7, the positioning system includes:
a terminal 701 capable of implementing the terminal-side positioning method;
a positioning tracker 702 capable of realizing the positioning method on the positioning tracker side;
a server 703 for controlling data forwarding between the terminal and the location tracker.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a positioning device according to an embodiment of the present invention, and as shown in fig. 8, the positioning device includes:
an obtaining unit 801, configured to obtain, by a terminal, location information of a location tracker through a cellular data network;
a determining unit 802, configured to determine, by the terminal, a distance between the location tracker and the terminal according to the location information of the location tracker and the location information of the terminal;
a first sending unit 803, configured to send a bluetooth connection establishment request to the location tracker when the distance is smaller than a preset distance;
a second sending unit 804, configured to disconnect the cellular data network after the terminal and the location tracker successfully establish a bluetooth connection, send a location obtaining request for obtaining location information of the location tracker to the location tracker through the bluetooth connection, and obtain the location information of the location tracker through the bluetooth connection.
Optionally, the obtaining unit 801 is further configured to: if the distance is greater than or equal to the preset distance, continuously acquiring the position information of the positioning tracker through the cellular data network; or the like, or, alternatively,
and when the Bluetooth connection is not successfully established between the terminal and the positioning tracker, continuously acquiring the position information of the positioning tracker through the cellular data network.
Optionally, the obtaining unit 801 is specifically configured to:
the terminal sends a position acquisition request to a positioning server through a cellular data network;
the terminal receives a position acquisition response sent by the positioning server in response to the position acquisition request; wherein the location acquisition response carries location information of the location tracker.
Optionally, the obtaining unit 801 is further configured to:
when detecting that the communication quality parameter of the Bluetooth connection does not meet the preset condition, disconnecting the Bluetooth connection;
obtaining location information for the location tracker over the cellular data network.
Optionally, the communication quality parameter includes one or more of a time delay and a packet loss rate.
Referring to fig. 9, fig. 9 is a schematic structural diagram of another positioning device according to an embodiment of the present invention, and as shown in fig. 9, the positioning device includes:
a first receiving unit 901, configured to receive a bluetooth connection request from a terminal;
an establishing unit 902, configured to establish a bluetooth connection with the terminal after verifying that the bluetooth connection request passes;
a second receiving unit 903, configured to receive a location obtaining request sent by the terminal through the bluetooth connection request;
a sending unit 904, configured to send a location acquisition response to the terminal in response to the location acquisition request; wherein the location acquisition response carries location information of the location tracker.
Optionally, the bluetooth connection request carries a device identifier of the terminal;
the device further comprises:
a judging unit 905, configured to judge whether the device identifier is the same as a pre-stored device identifier;
if so, verifying that the Bluetooth connection request passes;
if not, verifying that the Bluetooth connection request does not pass.
It is clear to a person skilled in the art that the solution according to the embodiments of the invention can be implemented by means of software and/or hardware. The "unit" and "module" in this specification refer to software and/or hardware that can perform a specific function independently or in cooperation with other components, where the hardware may be, for example, an FPGA (Field-Programmable Gate Array), an IC (Integrated Circuit), or the like.
Each processing unit and/or module according to the embodiments of the present invention may be implemented by an analog circuit that implements the functions described in the embodiments of the present invention, or may be implemented by software that executes the functions described in the embodiments of the present invention.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the above positioning method. The computer-readable storage medium may include, but is not limited to, any type of disk including floppy disks, optical disks, DVD, CD-ROMs, microdrive, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.
Referring to fig. 10, a schematic structural diagram of an electronic device according to an embodiment of the present invention is shown, where the electronic device may be used to implement the positioning method in the foregoing embodiment. Specifically, the method comprises the following steps:
the memory 1020 may be used to store software programs and modules, and the processor 1090 performs various functional applications and data processing by operating the software programs and modules stored in the memory 1020. The memory 1020 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal device, and the like. Further, the memory 1020 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 1020 may also include a memory controller to provide the processor 1090 and the input unit 1030 with access to the memory 1020.
The input unit 1030 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 1030 may include a touch-sensitive surface 1031 (e.g., a touch screen, a touchpad, or a touch frame). The touch-sensitive surface 1031, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (such as operations by a user on or near the touch-sensitive surface 1031 using any suitable object or attachment, such as a finger, a stylus, etc.) on or near the touch-sensitive surface 1031 and drive the corresponding connection device according to a preset program. Optionally, the touch sensitive surface 1031 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1090, and receives and executes commands sent from the processor 1090. In addition, the touch-sensitive surface 1031 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves.
The display unit 1040 may be used to display information input by or provided to a user and various graphical user interfaces of the terminal device, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 1040 may include a Display panel 1041, and optionally, the Display panel 1041 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 1031 may overlay the display panel 1041, and when a touch operation is detected on or near the touch-sensitive surface 1031, the touch operation is passed to the processor 1090 to determine the type of touch event, and the processor 1090 then provides a corresponding visual output on the display panel 1041 in accordance with the type of touch event. Although in fig. 10 touch-sensitive surface 1031 and display panel 1041 are implemented as two separate components for input and output functions, in some embodiments touch-sensitive surface 1031 may be integrated with display panel 1041 for input and output functions.
The processor 1090 is a control center of the terminal device, connects various parts of the whole terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 1020 and calling data stored in the memory 1020, thereby performing overall monitoring of the terminal device. Optionally, processor 1090 may include one or more processing cores; processor 1090 may, among other things, integrate an application processor that handles primarily operating systems, user interfaces, applications, etc., and a modem processor that handles primarily wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 1090.
Specifically, in this embodiment, the display unit of the terminal device is a touch screen display, the terminal device further includes a memory and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include steps for implementing the positioning method.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
All functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A positioning method is applied to a terminal, and is characterized in that the method comprises the following steps:
the terminal acquires the position information of the positioning tracker through a cellular data network;
the terminal determines the distance between the positioning tracker and the terminal according to the position information of the positioning tracker and the position information of the terminal;
when the distance is smaller than a preset distance, the terminal sends a Bluetooth connection establishment request to the positioning tracker;
after the terminal is successfully connected with the positioning tracker through Bluetooth, the cellular data network is disconnected, a position acquisition request for acquiring the position information of the positioning tracker is sent to the positioning tracker through the Bluetooth connection, and the position information of the positioning tracker is acquired through the Bluetooth connection.
2. The method of claim 1, further comprising:
if the distance is greater than or equal to the preset distance, continuously acquiring the position information of the positioning tracker through the cellular data network; or the like, or, alternatively,
and when the Bluetooth connection is not successfully established between the terminal and the positioning tracker, continuously acquiring the position information of the positioning tracker through the cellular data network.
3. The method according to claim 1 or 2, wherein the terminal obtains the location information of the location tracker through a cellular data network, comprising:
the terminal sends a position acquisition request to a positioning server through a cellular data network;
the terminal receives a position acquisition response sent by the positioning server in response to the position acquisition request; wherein the location acquisition response carries location information of the location tracker.
4. The method of claim 3, further comprising, after the terminal successfully establishes a Bluetooth connection with the location tracker, disconnecting the cellular data network and sending a location acquisition request for acquiring location information of the location tracker to the location tracker via the Bluetooth connection:
when detecting that the communication quality parameter of the Bluetooth connection does not meet the preset condition, disconnecting the Bluetooth connection;
obtaining location information for the location tracker over the cellular data network.
5. The method of claim 4, wherein the communication quality parameter comprises one or more of a delay and a packet loss rate.
6. A positioning method applied to a positioning tracker, the method comprising:
receiving a Bluetooth connection request from a terminal;
after the Bluetooth connection request is verified to pass, establishing Bluetooth connection with the terminal;
receiving a position acquisition request sent by the terminal through the Bluetooth connection request;
sending a position acquisition response to the terminal in response to the position acquisition request; wherein the location acquisition response carries location information of the location tracker.
7. The method of claim 6, wherein the Bluetooth connection request carries a device identifier of the terminal;
after the bluetooth connection request is verified, before the bluetooth connection is established with the terminal, the method further includes:
judging whether the equipment identifier is the same as a pre-stored equipment identifier or not;
if so, verifying that the Bluetooth connection request passes;
if not, verifying that the Bluetooth connection request does not pass.
8. A positioning system, characterized in that the system comprises:
a terminal capable of implementing the method of any one of claims 1-5;
a localization tracker capable of implementing the method of claim 6 or 7;
and the server is used for controlling data forwarding between the terminal and the positioning tracker.
9. A positioning device, which is applied to a terminal, and is characterized in that the device comprises:
the acquisition unit is used for acquiring the position information of the positioning tracker by the terminal through a cellular data network;
the determining unit is used for determining the distance between the positioning tracker and the terminal according to the position information of the positioning tracker and the position information of the terminal;
the first sending unit is used for sending a Bluetooth connection establishment request to the positioning tracker by the terminal when the distance is smaller than a preset distance;
and the second sending unit is used for disconnecting the cellular data network after the terminal is successfully connected with the positioning tracker through Bluetooth, sending a position acquisition request for acquiring the position information of the positioning tracker to the positioning tracker through the Bluetooth connection, and acquiring the position information of the positioning tracker through the Bluetooth connection.
10. A positioning device, which is applied to a positioning tracker, and which comprises:
a first receiving unit for receiving a bluetooth connection request from a terminal;
the establishing unit is used for establishing Bluetooth connection with the terminal after the Bluetooth connection request is verified to pass;
the second receiving unit is used for receiving a position acquisition request sent by the terminal through the Bluetooth connection request;
a sending unit, configured to send a location acquisition response to the terminal in response to the location acquisition request; wherein the location acquisition response carries location information of the location tracker.
CN201910966625.6A 2019-10-12 2019-10-12 Positioning method, device and system Pending CN110730424A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910966625.6A CN110730424A (en) 2019-10-12 2019-10-12 Positioning method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910966625.6A CN110730424A (en) 2019-10-12 2019-10-12 Positioning method, device and system

Publications (1)

Publication Number Publication Date
CN110730424A true CN110730424A (en) 2020-01-24

Family

ID=69219952

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910966625.6A Pending CN110730424A (en) 2019-10-12 2019-10-12 Positioning method, device and system

Country Status (1)

Country Link
CN (1) CN110730424A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111599040A (en) * 2020-03-30 2020-08-28 宁波吉利汽车研究开发有限公司 Vehicle unlocking method and device, electronic equipment and storage medium
CN113543013A (en) * 2020-03-31 2021-10-22 宇龙计算机通信科技(深圳)有限公司 Position information reporting method and device, storage medium and electronic equipment
CN113794981A (en) * 2021-08-10 2021-12-14 荣耀终端有限公司 Terminal positioning method, electronic device and storage medium
CN114125718A (en) * 2020-08-26 2022-03-01 宇龙计算机通信科技(深圳)有限公司 Method and device for reporting tracking information, storage medium and electronic equipment
CN116782123A (en) * 2022-03-11 2023-09-19 广州星际悦动股份有限公司 Positioning method, positioning device, electronic equipment, terminal and storage medium
CN114125718B (en) * 2020-08-26 2024-04-12 宇龙计算机通信科技(深圳)有限公司 Method and device for reporting tracking information, storage medium and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103237292A (en) * 2013-05-13 2013-08-07 钟国峰 Locator-based locating method
CN104780502A (en) * 2014-08-25 2015-07-15 李杨 Portable equipment and anti-lost and positioning method and system thereof
CN205881139U (en) * 2016-06-08 2017-01-11 深圳找哪科技有限公司 Positioner is tracked to bluetooth low energy vehicle
CN108683996A (en) * 2018-03-30 2018-10-19 努比亚技术有限公司 A kind of equipment finding method, terminal and computer readable storage medium
CN108882209A (en) * 2018-06-04 2018-11-23 上海康斐信息技术有限公司 Wearable device and its anti-lost processing method, device
CN108900976A (en) * 2018-07-10 2018-11-27 宇龙计算机通信科技(深圳)有限公司 A kind of location information report method and device
US20180376312A1 (en) * 2012-08-31 2018-12-27 Apple Inc. Proximity and tap detection using a wireless system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180376312A1 (en) * 2012-08-31 2018-12-27 Apple Inc. Proximity and tap detection using a wireless system
CN103237292A (en) * 2013-05-13 2013-08-07 钟国峰 Locator-based locating method
CN104780502A (en) * 2014-08-25 2015-07-15 李杨 Portable equipment and anti-lost and positioning method and system thereof
CN205881139U (en) * 2016-06-08 2017-01-11 深圳找哪科技有限公司 Positioner is tracked to bluetooth low energy vehicle
CN108683996A (en) * 2018-03-30 2018-10-19 努比亚技术有限公司 A kind of equipment finding method, terminal and computer readable storage medium
CN108882209A (en) * 2018-06-04 2018-11-23 上海康斐信息技术有限公司 Wearable device and its anti-lost processing method, device
CN108900976A (en) * 2018-07-10 2018-11-27 宇龙计算机通信科技(深圳)有限公司 A kind of location information report method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111599040A (en) * 2020-03-30 2020-08-28 宁波吉利汽车研究开发有限公司 Vehicle unlocking method and device, electronic equipment and storage medium
CN113543013A (en) * 2020-03-31 2021-10-22 宇龙计算机通信科技(深圳)有限公司 Position information reporting method and device, storage medium and electronic equipment
CN114125718A (en) * 2020-08-26 2022-03-01 宇龙计算机通信科技(深圳)有限公司 Method and device for reporting tracking information, storage medium and electronic equipment
CN114125718B (en) * 2020-08-26 2024-04-12 宇龙计算机通信科技(深圳)有限公司 Method and device for reporting tracking information, storage medium and electronic equipment
CN113794981A (en) * 2021-08-10 2021-12-14 荣耀终端有限公司 Terminal positioning method, electronic device and storage medium
CN116782123A (en) * 2022-03-11 2023-09-19 广州星际悦动股份有限公司 Positioning method, positioning device, electronic equipment, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN110730424A (en) Positioning method, device and system
US11928312B2 (en) Method for displaying different application shortcuts on different screens
WO2019080065A1 (en) Display method and apparatus
US10652287B2 (en) Method, device, and system for managing information recommendation
US10009838B2 (en) Access point connection method and electronic device thereof
CN106776124B (en) Data backup method and device
WO2019184016A1 (en) Sim card authentication method and terminal
US10636228B2 (en) Method, device, and system for processing vehicle diagnosis and information
CN111478849B (en) Service access method, device and storage medium
CN108668328B (en) Network switching method and mobile terminal
KR20120039123A (en) Mobile terminal and method of controlling the same
CN109257793B (en) Network connection method, device, equipment and storage medium
CN105704712B (en) Network resource sharing method, mobile terminal and server
CN104618854A (en) Method, terminal and server for sharing location information
CN108235237B (en) Data reporting method and device, mobile terminal and computer readable medium
CN110913455B (en) Method for forbidding abnormal cell, electronic equipment and server
CN109801136B (en) Food ordering method, system, terminal, server and medium for preventing malicious ordering
US20140155099A1 (en) Method and apparatus for displaying location information of call service area in mobile terminal
CN108200546B (en) Data reporting method and device, mobile terminal and computer readable medium
EP2658304A1 (en) Setting an Optimal Ping Interval
US20190340601A1 (en) Method And Mobile Device For Transmitting Data By Using Barcode
CN107995150B (en) Identity verification method and device
CN106817370B (en) Method and device for transmitting network data
US10917842B2 (en) Access point connection method and terminal
CN108668335B (en) Communication connection method, device, mobile terminal and computer readable storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200124

RJ01 Rejection of invention patent application after publication