WO2022252837A1 - Positioning method and system, electronic device, and computer readable storage medium - Google Patents

Positioning method and system, electronic device, and computer readable storage medium Download PDF

Info

Publication number
WO2022252837A1
WO2022252837A1 PCT/CN2022/086674 CN2022086674W WO2022252837A1 WO 2022252837 A1 WO2022252837 A1 WO 2022252837A1 CN 2022086674 W CN2022086674 W CN 2022086674W WO 2022252837 A1 WO2022252837 A1 WO 2022252837A1
Authority
WO
WIPO (PCT)
Prior art keywords
tracker
communication device
bound
location information
server
Prior art date
Application number
PCT/CN2022/086674
Other languages
French (fr)
Chinese (zh)
Inventor
张景瑞
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2022252837A1 publication Critical patent/WO2022252837A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/40Security arrangements using identity modules
    • H04W12/48Security arrangements using identity modules using secure binding, e.g. securely binding identity modules to devices, services or applications
    • 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
    • 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
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Definitions

  • the embodiments of the present application relate to the technical field of communications, and in particular to a positioning method, system, electronic equipment, and computer-readable storage medium.
  • the tracker is small in size and light in weight, and can be worn and carried on pets, children and the elderly.
  • the tracker regularly reports location information to the IoT server. )'s real-time location and travel trajectory, which is convenient for users to grasp the real-time activity status information of the wearer.
  • Most trackers have a built-in Subscriber Identity Module (SIM card for short) or a virtual smart card (Embedded Subscriber Identity Module, ESIM card for short).
  • SIM card Subscriber Identity Module
  • ESIM card embedded Subscriber Identity Module
  • the entire process of the tracker searching for satellite positioning and reporting location information through the base station consumes a lot of power. If the tracker reports its location to the server at high frequency, it will generate a very large power consumption and greatly reduce the battery life of the tracker; if the tracker The tracker reports its own location to the server at low frequency, but the tracker cannot report the location information in time, resulting in greatly reduced real-time location information and causing a bad user experience for users.
  • Embodiments of the present application provide a positioning method, system, electronic equipment, and computer-readable storage medium.
  • an embodiment of the present application provides a positioning method, which is applied to a tracker, and the method includes: if a communication device that supports connection with the tracker is detected, sending a binding request to the communication device, and the communication device with the tracker binding of the communication device; sending the location information of the tracker to the bound communication device for the bound communication device to periodically report the location information to the server; if no support and tracker is detected The connected communication device periodically reports the location information to the server.
  • the embodiment of the present application also provides a positioning method, which is applied to a communication device.
  • the method includes: if a binding request sent by a tracker is received, bind with the tracker; receive the bound The location information of the tracker sent by the tracker; periodically report the location information to the server.
  • an embodiment of the present application also provides a positioning system, including a tracker, a communication device, and a server.
  • the tracker is configured to send a A binding request, sending the location information of the tracker to the bound communication device;
  • the communication device is set to bind with the tracker after receiving the binding request sent by the tracker , receiving the location information sent by the bound tracker, and periodically reporting the location information to the server;
  • the tracker is also configured to, after no communication device supporting connection with the tracker is detected, Periodically report the location information to the server.
  • an embodiment of the present application further provides a server, including: at least one processor; and a memory connected to the at least one processor in communication; wherein, the memory stores information that can be processed by the at least one processor.
  • Instructions executed by a device the instructions are executed by the at least one processor, so that the at least one processor can execute the above positioning method applied to a tracker, or execute the above positioning method applied to a communication device.
  • the embodiment of the present application also provides a computer-readable storage medium, which stores a computer program.
  • the computer program is executed by a processor, the above positioning method applied to the tracker is implemented, or the above positioning method applied to the communication device is implemented. positioning method.
  • FIG. 1 is a flowchart 1 of a positioning method according to an embodiment of the present application.
  • FIG. 2 is a flow chart of a tracker detecting a communication device that supports connection with the tracker according to an embodiment of the present application
  • Fig. 3 is a flow chart of the tracker sending a heartbeat packet to a bound communication device with a preset heartbeat cycle according to an embodiment of the present application
  • FIG. 4 is a flowchart 1 of a relocation method provided in an embodiment of the present application.
  • FIG. 5 is a second flowchart of a positioning method according to another embodiment of the present application.
  • FIG. 6 is a flowchart of a communication device receiving a heartbeat packet sent by a bound tracker according to another embodiment of the present application
  • FIG. 7 is a second flowchart of a relocation method provided in another embodiment of the present application.
  • Fig. 8 is a schematic diagram of a positioning system according to another embodiment of the present application.
  • Fig. 9 is a schematic structural diagram of an electronic device according to another embodiment of the present application.
  • the tracker is a portable positioning device, the tracker is small in size and light in weight.
  • Trackers can be worn, such as locating watches or bracelets worn on children, locating collars and locating anklets worn on pets, etc.
  • Trackers can also be attached and installed on other items, such as crutches installed on the carrier , on a wheelchair, sewn into the pocket of the wearer's clothes, etc.
  • the tracker is inserted with a SIM card or has a built-in ESIM card. It can communicate with the IoT server through the base station to realize the connection with the tracker client.
  • the tracker searches the satellite to obtain its own position information during positioning, and reports the position information to the IoT server through the base station.
  • the networked server reacquires its own location information at regular intervals, and reports it to the IoT server through the base station. Users can view the client corresponding to the tracker in real time, and view the tracker, that is, the real-time location and travel trajectory information of the tracker carrier.
  • An embodiment of the present application relates to a positioning method applied to a tracker.
  • the implementation details of the positioning method in this embodiment are described in detail below, and the following content is only implementation details provided for easy understanding, and is not necessary for implementing this solution.
  • step 101 The specific flow of the positioning method in this embodiment may be shown in FIG. 1 , including step 101 , step 102 , step 103 and step 104 .
  • Step 101 check whether there is a communication device supporting connection with the tracker, if yes, execute step 102 , otherwise, execute step 104 .
  • the tracker when the tracker reports its own location information to the server, it may first detect whether there is a communication device that supports connection with the tracker.
  • the communication device that supports the connection with the tracker can be connected with the tracker to assist the tracker to report its own location information.
  • the communication device may be a Wi-Fi device, and the Wi-Fi device may cover Wi-Fi signals to the surroundings for the surrounding devices to connect and communicate with the base station in a wired or wireless manner.
  • Wi-Fi equipment can be indoor or outdoor fixed customer premise equipment (Customer Premise Equipment, referred to as: CPE), CPE can be connected to an external power supply, the power is very large, the Wi-Fi signal strength is strong, high stability, good quality, The Wi-Fi signal coverage is also great.
  • CPE Customer Premise Equipment
  • the Wi-Fi device can be a portable Wi-Fi device (User Wi-Fi, referred to as: UFi), and the UFi can have a built-in large-capacity battery, which can be carried around, has higher flexibility, and is more convenient to use.
  • UFi User Wi-Fi
  • the communication device may be a Bluetooth device
  • the Bluetooth device may cover a Bluetooth local area network to the surroundings for connection of surrounding devices and communicate with the base station through wired or wireless Bluetooth.
  • the tracker can first determine whether it has a bound communication device. If the tracker is not bound to any communication device or cannot find the bound communication device, then check whether there is support for connecting with the tracker. If the bound communication device can be found, continue to use the bound communication device to prevent the tracker from occupying and using multiple communication devices at the same time, and save the communication resources of the communication device.
  • the tracker detects a communication device that supports connection with the tracker may be implemented through the steps shown in FIG. 2 , specifically including step 201 and step 202 .
  • Step 201 scan the communication devices around the tracker to obtain the unique identifier of each communication device.
  • the tracker when it detects whether there is a communication device that supports connection with the tracker, it can scan the communication devices around the tracker, for example, scan the wireless network information around the tracker to obtain the unique identifier of each communication device.
  • the unique identifier may indicate information such as the identity of the communication device.
  • the tracker can obtain the Basic Service Set Identifier (BSSID for short) of each communication device, and use the BSSID as the unique identifier of the communication device.
  • BSSID Basic Service Set Identifier
  • Step 202 according to the unique identifier of each communication device, determine the communication device that supports binding with the tracker.
  • the tracker after the tracker obtains the unique identifier of each communication device, it can send the unique identifier of each communication device to the server, and the server will query whether these communication devices support binding with the tracker, and inform the tracker of support A communication device bound to the tracker.
  • the communication device supporting the connection with the tracker can be detected more quickly and accurately according to the unique identifier of each communication device.
  • Step 102 sending a binding request to the communication device to bind with the communication device.
  • the tracker After the tracker detects a communication device that supports connection with the tracker, it can establish communication with the communication device and bind with the communication device. Establishing a binding relationship can make the communication between the tracker and the communication device more accurate, reliable and secure.
  • the tracker detects that there are several communication devices supporting connection with the tracker, and may select the communication device with the strongest signal among the communication devices supporting connection with the tracker for binding.
  • the tracker can establish a communication connection with a communication device that supports connection with the tracker through Wi-Fi direct connection, Bluetooth, Zifeng protocol, infrared and other communication methods, and bind to the communication device.
  • the communication device that supports the connection with the tracker is a CPE
  • the tracker can establish a communication connection with the CPE through Wi-Fi direct connection and bind with the CPE.
  • the communication device that supports connection with the tracker is a Bluetooth device, and the tracker can access the Bluetooth local area network of the Bluetooth device, establish a communication connection with the Bluetooth device, and bind with the Bluetooth device.
  • the tracker can store the unique identifier (such as BSSID) of the communication device, and send its own identity document (ID for short) to the communication device for storage, thereby realizing the communication between the tracker and the communication device. binding.
  • unique identifier such as BSSID
  • ID for short the unique identifier
  • Step 103 sending the location information of the tracker to the bound communication device, so that the bound communication device periodically reports the location information to the server.
  • the tracker after the tracker is bound to a communication device that supports connection with the tracker, it can send the tracker's location information to the bound communication device, so that the bound communication device can periodically report the location information to the server.
  • the process of the tracker locating itself to obtain location information and reporting location information to the server consumes a lot of power, if the tracker reports location information frequently, the power consumption will be very large, resulting in a relatively short battery life of the tracker. If the location information is not available, the location information cannot be reported in time, and the real-time performance is not good.
  • the tracker in the embodiment of the present application can report location information by supporting communication devices connected to the tracker, reduce the power consumption of the tracker itself, and support high-frequency reporting of location information while greatly increasing the battery life of the tracker, thereby improving the location.
  • the real-time reporting of information improves the user experience.
  • the tracker can send the ID of the tracker, the location information of the tracker, the address of the server, and the frequency of reporting to the server to the bound communication device, so that the bound communication device can address and the frequency of reporting to the server, and periodically report the location information of the tracker to the server.
  • the frequency of reporting to the server is once every 15 minutes
  • the tracker sends the ID of the tracker, the location information of the tracker, the address of the server, and the frequency of the reporting server to the bound communication device for the
  • the bound communication device reports the location information of the tracker to the server every 15 minutes.
  • the tracker after the tracker sends its own location information to the bound communication device, it can enter a dormant state, and send a heartbeat packet to the bound communication device at a preset heartbeat cycle.
  • the tracker sends a heartbeat packet to the bound communication device with a preset heartbeat period, which can be implemented through the steps shown in FIG. 3 , including step 301, step 302, step 303 and step 304.
  • Step 301 if the preset heartbeat period is reached, check whether the bound communication device can be scanned, if so, execute step 304 , otherwise, execute step 302 .
  • the tracker After the tracker sends location information to the bound communication device, it immediately enters a dormant state. When the preset heartbeat period is reached, it can detect whether the bound communication device can be scanned to judge the tracker itself. The relative position to the bound communication device.
  • the preset heartbeat cycle can be set by those skilled in the art according to actual needs, which is not specifically limited in this embodiment of the present application.
  • the preset heartbeat period can be longer than the reporting frequency to the server. For example, if the reporting frequency is 20 minutes, the preset heartbeat period is 30 minutes, that is, the tracker detects whether the bound designated communication equipment.
  • Step 302 reacquiring location information.
  • the tracker cannot scan the bound communication device, it means that the tracker has left the signal coverage of the bound communication device, that is, the position of the tracker has changed greatly, and the tracker can reacquire its own location information.
  • Step 303 periodically report the reacquired location information to the server.
  • the tracker after the tracker reacquires its own location information, it can directly and periodically report the reacquired location information to the server, so as to ensure that the server can receive the location information of the tracker.
  • the tracker after the tracker cannot scan the bound communication device, it can re-detect whether there is a communication device around the tracker that supports connection with the tracker. If it is detected that there is a communication device around the tracker that supports connection with the tracker , can be bound to the communication device, and periodically send the reacquired location information of the tracker to the server through the communication device.
  • Step 304 sending a heartbeat packet to the bound communication device.
  • the tracker can scan the bound communication device, it means that the tracker has not left the signal coverage of the bound communication device, that is, the position of the tracker has not changed, or the change is very small, and the tracker does not need to To re-obtain its own location information, it only needs to send a heartbeat packet to the bound communication device to inform the bound communication device that it is still within the signal coverage of the bound communication device.
  • the tracker after the tracker sends the tracker's location information to the bound communication device, it can receive the relocation instruction sent by the server in real time and enter the relocation process.
  • the tracker relocation can be performed through the steps shown in Figure 4
  • the implementation specifically includes step 401 and step 402.
  • Step 401 if the relocation instruction sent by the server is obtained, reacquire location information according to the relocation instruction.
  • the server can obtain the user's operation information on the client corresponding to the tracker in real time, generate a relocation instruction according to the user's operation information on the client corresponding to the tracker, and send the relocation instruction to the tracker.
  • the client corresponding to the tracker includes the option "obtain real-time information of the tracker". Send to tracker.
  • Step 402 sending the reacquired location information to the bound communication device, so that the bound communication device periodically reports the reacquired location information to the server.
  • the tracker after the tracker reacquires the location information according to the relocation instruction, it can send the reacquired location information to the bound communication device, so that the bound communication device periodically reports the reacquired location information to the server.
  • the embodiment of the present application allows the server to forcibly start the relocation process, which allows the user to obtain the real-time location of the tracker in a more timely manner, and further improves the user experience.
  • Step 104 periodically report the location information to the server.
  • the tracker detects that there is no communication device supporting connection with the tracker, it can directly report the location information of the tracker to the server periodically to ensure that the server can receive the location information of the tracker.
  • the tracker if it detects a communication device that supports connection with the tracker, it will send a binding request to the communication device to bind with the communication device. Establishing a binding relationship can make the communication device between the tracker and the communication device Communication is more accurate, reliable and secure.
  • the above server reports the location information, considering that the process of the tracker itself locating and obtaining the location information and reporting the location information to the server consumes a lot of power. Short, if the tracker reports location information at a low frequency, it cannot report location information in time, and the real-time performance is not good.
  • the tracker in the embodiment of the present application can report location information by supporting communication devices connected to the tracker, reduce the power consumption of the tracker itself, and support high-frequency reporting of location information while greatly increasing the battery life of the tracker, thereby improving the location.
  • the real-time reporting of information improves the user experience.
  • FIG. 5 is a flow chart of the positioning method described in this embodiment, including steps 501, step 502 and step 503.
  • Step 501 if a binding request sent by the tracker is received, bind with the tracker.
  • the communication device can receive a binding request from the tracker in real time, and if the communication device receives the binding request sent by the tracker, it can bind with the tracker. Establishing a binding relationship can make the communication between the communication device and the tracker more accurate, reliable and secure.
  • the communication device can establish a communication connection with the tracker through Wi-Fi direct connection, Bluetooth, Zifeng protocol, infrared and other communication methods, and bind with the tracker.
  • the communication device after the communication device receives the binding request sent by the tracker, it can send the unique identifier (such as BSSID) of the communication device itself to the tracker that sent the binding request, and save the tracking of sending the binding request. ID of the tracker, so as to realize the binding of the communication device and the tracker.
  • BSSID unique identifier
  • the communication device after the communication device obtains the ID of the tracker that sent the binding request, it can judge whether the tracker is a legal device according to the ID of the tracker, and if the tracker is a legal device, it will conduct a communication with the tracker. bound.
  • Step 502 receiving the location information of the tracker sent by the bound tracker.
  • the communication device after the communication device is bound to the tracker sending the binding request, it can receive the location information of the tracker sent by the bound tracker in real time.
  • Step 503 periodically report the location information to the server.
  • the server may periodically report the location information to the server after receiving the location information of the tracker sent by the bound tracker.
  • the process of the tracker locating itself to obtain location information and reporting location information to the server consumes a lot of power, if the tracker reports location information frequently, the power consumption will be very large, resulting in a relatively short battery life of the tracker. If the location information is not available, the location information cannot be reported in time, and the real-time performance is not good.
  • the communication device of the embodiment of the present application can be used as a bridge to receive the location information of the tracker sent by the tracker and report the location information, reduce the power consumption of the tracker itself, and support high frequency while greatly increasing the battery life of the tracker. Report location information to improve the real-time performance of location information reporting, thereby improving user experience.
  • the communication device can also receive the ID of the tracker, the address of the server and the frequency of reporting to the server sent by the bound tracker in real time, and according to the ID of the tracker, the address of the server and the frequency of reporting to the server, the periodic Report the location information of the tracker to the server.
  • the frequency of reporting to the server is once every 15 minutes
  • the communication device receives the ID of the tracker, the address of the server and the frequency of the reporting server sent by the bound tracker, and reports to the server every 15 minutes Tracker location information.
  • the communication device receives the location information of the tracker sent by the tracker and reports the location information, reduces the power consumption of the tracker itself, and supports high-frequency reporting of location information while greatly increasing the battery life of the tracker, improving location information Real-time reporting, thereby improving user experience.
  • the communication device after the communication device receives the tracker's location information sent by the bound tracker, it can receive the heartbeat packet sent by the bound tracker in real time, and the communication device receives the heartbeat packet sent by the bound tracker.
  • the flow of the heartbeat packet can be realized through the steps shown in FIG. 6 , specifically as follows.
  • Step 601 judge whether the heartbeat packet sent by the bound tracker is received within the preset time, if yes, execute step 602, otherwise, execute step 603.
  • the communication device while the communication device periodically reports the location information of the bound tracker to the server, it can also determine whether it has received the heartbeat packet sent by the bound tracker within the preset time, that is, to determine whether the communication device itself Also keeps a heartbeat with the bound tracker.
  • the preset time may be consistent with the preset heartbeat cycle of the tracker, or the preset time may be slightly longer than the preset heartbeat cycle of the tracker, which is not specifically limited in this embodiment of the present application.
  • Step 602 continue to periodically report the location information to the server.
  • the communication device receives the heartbeat packet sent by the bound tracker within the preset time, that is, the heartbeat between the communication device and the bound tracker is still maintained, and the position of the bound tracker does not occur. If the change or change is small, no relocation is required, and the communication device can continue to periodically report the location information of the bound tracker to the server.
  • the preset time is 30 minutes. If the communication device receives the heartbeat packet sent by the bound tracker again 30 minutes after receiving the heartbeat packet sent by the bound tracker, continue Periodically report location information to the server.
  • Step 603 unbind from the bound tracker.
  • the communication device does not receive the heartbeat packet sent by the bound tracker within the preset time, that is, there is no heartbeat between the communication device and the bound tracker, the position of the bound tracker will If there is a big change, or the battery of the bound tracker is exhausted, if the communication device still periodically reports the location information of the bound tracker to the server, it will cause a report error, and the communication device will be disconnected from the bound tracker Binding avoids error reporting and prevents waste of communication equipment resources.
  • the preset time is 30 minutes. If the communication device does not receive the heartbeat packet sent by the bound tracker after 30 minutes after receiving the heartbeat packet sent by the bound tracker, then Unbind from a bound tracker.
  • the tracker after receiving the location information of the tracker sent by the tracker, it also includes: if the heartbeat packet sent by the bound tracker is received within a preset time, continue the cycle Report the location information to the server; if the heartbeat packet sent by the bound tracker is not received within the preset time, the bound tracker will be unbound to avoid error reporting , to prevent the waste of communication equipment resources.
  • the communication device after the communication device is bound to the tracker that sent the binding request, it can receive the initial signal strength between the tracker and the communication device sent by the bound tracker, and the bound signal strength received by the communication device
  • the heartbeat packet sent by a given tracker includes the signal strength of the latest communication between the tracker and the communication device.
  • the communication device can judge whether relocation is required according to the initial signal strength between the tracker and the communication device, and the signal strength of the latest communication between the tracker and the communication device.
  • the relocation method of this embodiment can be shown in Figure 7 The steps shown are implemented, specifically including step 701 , step 702 and step 703 .
  • Step 701 if the difference between the initial signal strength and the signal strength of the latest communication is greater than a preset difference, instruct the bound tracker to reacquire location information.
  • each time the communication device receives the heartbeat packet sent by the bound tracker it can obtain the signal strength of the latest communication between the tracker and the communication device in the heartbeat packet, and calculate the initial signal strength and The difference between the signal strengths of the last communication, if the difference is greater than the preset difference, the communication device instructs the bound tracker to reacquire the location information.
  • the preset difference can be set by those skilled in the art according to actual needs, which is not specifically limited in this embodiment of the present application.
  • the signal coverage of some communication devices is very wide, and the tracker may also have a relatively large position change in this coverage, such as moving from the center of the signal coverage of the communication device to the edge of the coverage, while in the In the case of the center position and the case of the edge position, the signal strength between the tracker and the communication device is different.
  • each time the communication device receives a heartbeat packet it will judge the change of the signal strength The way of judging whether the bound tracker needs to be relocated can effectively improve the accuracy of the location information reported by the communication device.
  • the difference between the initial signal strength and the signal strength of the latest communication is less than or equal to a preset difference, it means that the position of the tracker has changed little, and no relocation is required.
  • the preset difference is 10dBm
  • the communication device receives an initial signal strength of -120dBm between the tracker and the communication device.
  • the communication device receives the heartbeat packet sent by the tracker, it obtains that the signal strength of the latest communication between the tracker and the communication device is -85dBm, and the communication device determines the difference between the initial signal strength and the signal strength of the latest communication If the value is 35dBm, which is greater than the preset difference, it means that the position of the tracker changes greatly and needs to be relocated, and the communication device sends a relocation instruction to the tracker.
  • Step 702 receiving the reacquired location information sent by the bound tracker.
  • the communication device may receive the reacquired location information sent by the bound tracker.
  • Step 703 periodically report the reacquired location information to the server.
  • the communication device may periodically report the reacquired location information to the server.
  • the binding with the tracker after the binding with the tracker, it further includes: acquiring the initial signal strength between the tracker and the communication device sent by the bound tracker; the heartbeat packet includes the signal strength of the latest communication between the bound tracker and the communication device; after receiving the heartbeat packet sent by the bound tracker, it also includes: if the If the difference between the initial signal strength and the signal strength of the latest communication is greater than a preset difference, it indicates that the bound tracker reacquires the location information; and receives the reacquired location information sent by the bound tracker Location information: Periodically report the reacquired location information to the server.
  • the method after the binding with the tracker, it further includes: acquiring the initial signal strength between the tracker and the communication device sent by the bound tracker; the heartbeat packet includes the signal strength of the latest communication between the bound tracker and the communication device; after receiving the heartbeat packet sent by the bound tracker, it also includes: if the If the difference between the initial signal strength and the signal strength of the latest communication is
  • FIG. 8 is the implementation of this embodiment.
  • a schematic diagram of the positioning system described in the example including: a tracker 801 , a communication device 802 and a server 803 .
  • the tracker 801 is configured to send a binding request to the communication device 802 after detecting the communication device 802 that supports connection with the tracker, and send the location information of the tracker 801 to the bound communication device 802 .
  • the communication device 802 is configured to bind with the tracker 801 after receiving the binding request sent by the tracker 801 , receive the location information sent by the bound tracker 801 , and periodically report the location information to the server 803 .
  • the tracker 801 is also configured to periodically report location information to the server 803 after no communication device supporting connection with the tracker is detected.
  • this embodiment is a system embodiment corresponding to the above method embodiment, and this embodiment can be implemented in cooperation with the above method embodiment.
  • the relevant technical details and technical effects mentioned in the foregoing embodiments are still valid in this embodiment, and will not be repeated here to reduce repetition.
  • the relevant technical details mentioned in this embodiment can also be applied in the above embodiments.
  • modules involved in this embodiment are logical modules.
  • a logical unit can be a physical unit, or a part of a physical unit, or multiple physical units. Combination of units.
  • units that are not closely related to solving the technical problem proposed in the present application are not introduced in this embodiment, but this does not mean that there are no other units in this embodiment.
  • FIG. 9 Another embodiment of the present application relates to an electronic device, as shown in FIG. 9 , including: at least one processor 901; and a memory 902 communicatively connected to the at least one processor 901; wherein, the memory 902 stores Instructions that can be executed by the at least one processor 901, the instructions are executed by the at least one processor 901, so that the at least one processor 901 can execute the positioning methods in the foregoing embodiments.
  • the memory and the processor are connected by a bus
  • the bus may include any number of interconnected buses and bridges, and the bus connects one or more processors and various circuits of the memory together.
  • the bus may also connect together various other circuits such as peripherals, voltage regulators, and power management circuits, all of which are well known in the art and therefore will not be further described herein.
  • the bus interface provides an interface between the bus and the transceivers.
  • a transceiver may be a single element or multiple elements, such as multiple receivers and transmitters, providing means for communicating with various other devices over a transmission medium.
  • Data processed by the processor is transmitted over the wireless medium by the antenna, which in some embodiments also receives the data and transmits the data to the processor.
  • the processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interface, voltage regulation, power management, and other control functions. Instead, memory can be used to store data that the processor uses when performing operations.
  • Another embodiment of the present application relates to a computer-readable storage medium storing a computer program.
  • the above method embodiments are implemented when the computer program is executed by the processor.
  • a storage medium includes several instructions to make a device ( It may be a single-chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .
  • the tracker detects a communication device that supports connection with the tracker, it sends a binding request to the communication device and binds to the communication device , establishing a binding relationship can make the communication between the tracker and the communication device more accurate, reliable and secure.
  • the above server reports the location information, considering that the process of the tracker itself locating and obtaining the location information and reporting the location information to the server consumes a lot of power.
  • the tracker in the embodiment of the present application can report location information by supporting communication devices connected to the tracker, reduce the power consumption of the tracker itself, and support high-frequency reporting of location information while greatly increasing the battery life of the tracker, thereby improving the location.
  • the real-time reporting of information improves the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A positioning method and system, an electronic device, and a computer readable storage medium. The positioning method comprises: if a communication device that supports connection to a tracker is detected, sending a binding request to the communication device, and binding to the communication device (S102); sending position information of the tracker to the bound communication device for the bound communication device to periodically report the position information to a server (S103); and if the communication device that supports connection to the tracker is not detected, periodically reporting the position information to the server (S104).

Description

定位方法、系统、电子设备和计算机可读存储介质Positioning method, system, electronic device and computer readable storage medium
相关申请的交叉引用Cross References to Related Applications
本申请基于申请号为202110626183.8,申请日为2021年06月04日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on a Chinese patent application with application number 202110626183.8 and a filing date of June 4, 2021, and claims the priority of this Chinese patent application. The entire content of this Chinese patent application is hereby incorporated by reference into this application.
技术领域technical field
本申请实施例涉及通信技术领域,特别涉及一种定位方法、系统、电子设备和计算机可读存储介质。The embodiments of the present application relate to the technical field of communications, and in particular to a positioning method, system, electronic equipment, and computer-readable storage medium.
背景技术Background technique
随着卫星技术、物联网技术的飞速发展和民众安全意识的普遍提升,追踪器在人类生产生活中的应用变得越来越普遍。追踪器体积小,重量轻,可以佩戴、携带在宠物、小孩和老人身上,追踪器向物联网服务器定期上报位置信息,用户可以使用手机登录追踪器对应的客户端,查看追踪器(即携带者)的实时位置和出行轨迹,方便用户掌握佩戴者的实时活动状态信息。追踪器大多内置用户识别卡(Subscriber Identity Module,简称:SIM卡)或虚拟智能卡(Embedded Subscriber Identity Module,简称:ESIM卡),在定位时先通过卫星定位等方式确定自身位置,再通过基站与服务器连接,向服务器上报自身位置。With the rapid development of satellite technology and Internet of Things technology and the general improvement of people's safety awareness, the application of trackers in human production and life has become more and more common. The tracker is small in size and light in weight, and can be worn and carried on pets, children and the elderly. The tracker regularly reports location information to the IoT server. )'s real-time location and travel trajectory, which is convenient for users to grasp the real-time activity status information of the wearer. Most trackers have a built-in Subscriber Identity Module (SIM card for short) or a virtual smart card (Embedded Subscriber Identity Module, ESIM card for short). When positioning, first determine its own position through satellite positioning and other methods, and then pass through the base station and server. Connect and report your location to the server.
然而,追踪器搜索卫星定位、通过基站上报位置信息的整个过程非常耗电,若追踪器高频率向服务器上报自身位置,会产生非常大的功耗,大大减少了追踪器的续航时间;若追踪器低频率向服务器上报自身位置,追踪器则无法及时上报位置信息,导致位置信息的实时性大打折扣,给用户造成了不好的使用体验。However, the entire process of the tracker searching for satellite positioning and reporting location information through the base station consumes a lot of power. If the tracker reports its location to the server at high frequency, it will generate a very large power consumption and greatly reduce the battery life of the tracker; if the tracker The tracker reports its own location to the server at low frequency, but the tracker cannot report the location information in time, resulting in greatly reduced real-time location information and causing a bad user experience for users.
发明内容Contents of the invention
本申请实施例提出一种定位方法、系统、电子设备和计算机可读存储介质。Embodiments of the present application provide a positioning method, system, electronic equipment, and computer-readable storage medium.
有鉴于此,本申请实施例提供了一种定位方法,应用于追踪器,所述方法包括:若检测到支持与追踪器连接的通信设备,则向所述通信设备发送绑定请求,与所述通信设备绑定;向已绑定的所述通信设备发送所述追踪器的位置信息,供已绑定的所述通信设备周期性向服务器上报所述位置信息;若未检测到支持与追踪器连接的通信设备,则周期性向所述服务器上报所述位置信息。In view of this, an embodiment of the present application provides a positioning method, which is applied to a tracker, and the method includes: if a communication device that supports connection with the tracker is detected, sending a binding request to the communication device, and the communication device with the tracker binding of the communication device; sending the location information of the tracker to the bound communication device for the bound communication device to periodically report the location information to the server; if no support and tracker is detected The connected communication device periodically reports the location information to the server.
有鉴于此,本申请实施例还提供一种定位方法,应用于通信设备,所述方法包括:若收到追踪器发送的绑定请求,则与所述追踪器绑定;接收已绑定的所述追踪器发送的所述追踪器的位置信息;周期性向服务器上报所述位置信息。In view of this, the embodiment of the present application also provides a positioning method, which is applied to a communication device. The method includes: if a binding request sent by a tracker is received, bind with the tracker; receive the bound The location information of the tracker sent by the tracker; periodically report the location information to the server.
有鉴于此,本申请实施例还提供一种定位系统,包括追踪器、通信设备和服务器,所述追踪器被设置为在检测到支持与追踪器连接的通信设备后,向所述通信设备发送绑定请求,向已绑定的所述通信设备发送所述追踪器的位置信息;所述通信设备被设置为在收到所述追踪器发送的绑定请求后,与所述追踪器绑定,接收已绑定的所述追踪器发送的所述位置信息,周期性向所述服务器上报所述位置信息;所述追踪器还被设置为在未检测到支持与追踪器连 接的通信设备后,周期性向所述服务器上报所述位置信息。In view of this, an embodiment of the present application also provides a positioning system, including a tracker, a communication device, and a server. The tracker is configured to send a A binding request, sending the location information of the tracker to the bound communication device; the communication device is set to bind with the tracker after receiving the binding request sent by the tracker , receiving the location information sent by the bound tracker, and periodically reporting the location information to the server; the tracker is also configured to, after no communication device supporting connection with the tracker is detected, Periodically report the location information to the server.
有鉴于此,本申请实施例还提供了一种服务器,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述应用于追踪器的定位方法,或者执行上述应用于通信设备的定位方法。In view of this, an embodiment of the present application further provides a server, including: at least one processor; and a memory connected to the at least one processor in communication; wherein, the memory stores information that can be processed by the at least one processor. Instructions executed by a device, the instructions are executed by the at least one processor, so that the at least one processor can execute the above positioning method applied to a tracker, or execute the above positioning method applied to a communication device.
有鉴于此,本申请实施例还提供了一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现上述应用于追踪器的定位方法,或者实现上述应用于通信设备的定位方法。In view of this, the embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above positioning method applied to the tracker is implemented, or the above positioning method applied to the communication device is implemented. positioning method.
附图说明Description of drawings
图1是根据本申请一个实施例的定位方法的流程图一;FIG. 1 is a flowchart 1 of a positioning method according to an embodiment of the present application;
图2是根据本申请一个实施例中,追踪器检测支持与追踪器连接的通信设备的流程图;FIG. 2 is a flow chart of a tracker detecting a communication device that supports connection with the tracker according to an embodiment of the present application;
图3是根据本申请一个实施例中,追踪器以预设的心跳周期,向已绑定的通信设备发送心跳包的流程图;Fig. 3 is a flow chart of the tracker sending a heartbeat packet to a bound communication device with a preset heartbeat cycle according to an embodiment of the present application;
图4是根据本申请一个实施例中提供的一种重定位方法的流程图一;FIG. 4 is a flowchart 1 of a relocation method provided in an embodiment of the present application;
图5是根据本申请另一个实施例的定位方法的流程图二;FIG. 5 is a second flowchart of a positioning method according to another embodiment of the present application;
图6是根据本申请另一个实施例中,通信设备接收已绑定的追踪器发送的心跳包的流程图;FIG. 6 is a flowchart of a communication device receiving a heartbeat packet sent by a bound tracker according to another embodiment of the present application;
图7是根据本申请另一个实施例中提供的一种重定位方法的流程图二;FIG. 7 is a second flowchart of a relocation method provided in another embodiment of the present application;
图8是根据本申请另一个实施例的定位系统的示意图;Fig. 8 is a schematic diagram of a positioning system according to another embodiment of the present application;
图9是根据本申请另一个实施例的电子设备的结构示意图。Fig. 9 is a schematic structural diagram of an electronic device according to another embodiment of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请的各实施例进行详细的阐述。然而,本领域的普通技术人员可以理解,在本申请各实施例中,为了使读者更好地理解本申请而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施例的种种变化和修改,也可以实现本申请所要求保护的技术方案。以下各个实施例的划分是为了描述方便,不应对本申请的具体实现方式构成任何限定,各个实施例在不矛盾的前提下可以相互结合相互引用。In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. However, those of ordinary skill in the art can understand that in each embodiment of the application, many technical details are provided for readers to better understand the application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in this application can also be realized. The division of the following embodiments is for the convenience of description, and should not constitute any limitation to the specific implementation of the present application, and the embodiments can be combined and referred to each other on the premise of no contradiction.
为了方便理解本申请的实施例,首先在此介绍追踪器的相关信息。In order to facilitate the understanding of the embodiments of the present application, firstly, relevant information of the tracker is introduced here.
追踪器是一种便携式定位装设备,追踪器体积小、重量轻。追踪器可以佩戴,比如佩戴在儿童身上的定位手表或定位手环、佩戴在宠物身上的定位项圈和定位脚环等;追踪器也可以附着、安装在其他物品上,比如安装在携带者的拐杖、轮椅上,缝制在携带者的衣服口袋中等。The tracker is a portable positioning device, the tracker is small in size and light in weight. Trackers can be worn, such as locating watches or bracelets worn on children, locating collars and locating anklets worn on pets, etc. Trackers can also be attached and installed on other items, such as crutches installed on the carrier , on a wheelchair, sewn into the pocket of the wearer's clothes, etc.
追踪器插入有SIM卡或内置有ESIM卡,可以通过基站与物联网服务器通信,实现与追踪器客户端的连接,追踪器在定位时搜索卫星获得自身的位置信息,将位置信息通过基站上报给物联网服务器,之后每隔一段时间重新获取自身的位置信息,并通过基站上报给物联网服务器。用户可以实时查看追踪器对应的客户端,查看追踪器,即追踪器携带者的实时位置和出行轨迹信息。The tracker is inserted with a SIM card or has a built-in ESIM card. It can communicate with the IoT server through the base station to realize the connection with the tracker client. The tracker searches the satellite to obtain its own position information during positioning, and reports the position information to the IoT server through the base station. After that, the networked server reacquires its own location information at regular intervals, and reports it to the IoT server through the base station. Users can view the client corresponding to the tracker in real time, and view the tracker, that is, the real-time location and travel trajectory information of the tracker carrier.
本申请的一个实施例涉及一种定位方法,应用于追踪器。下面对本实施例的定位方法的实现细节进行具体的说明,以下内容仅为方便理解提供的实现细节,并非实施本方案的必须。An embodiment of the present application relates to a positioning method applied to a tracker. The implementation details of the positioning method in this embodiment are described in detail below, and the following content is only implementation details provided for easy understanding, and is not necessary for implementing this solution.
本实施例的定位方法的具体流程可以如图1所示,包括步骤101、步骤102、步骤103和步骤104。The specific flow of the positioning method in this embodiment may be shown in FIG. 1 , including step 101 , step 102 , step 103 and step 104 .
步骤101,检测是否有支持与追踪器连接的通信设备,如果是,执行步骤102,否则,执行步骤104。 Step 101 , check whether there is a communication device supporting connection with the tracker, if yes, execute step 102 , otherwise, execute step 104 .
具体而言,追踪器在向服务器上报自身的位置信息时,可以先检测是否有支持与追踪器连接的通信设备。支持与追踪器连接的通信设备可以与追踪器连接,辅助追踪器上报自身的位置信息。Specifically, when the tracker reports its own location information to the server, it may first detect whether there is a communication device that supports connection with the tracker. The communication device that supports the connection with the tracker can be connected with the tracker to assist the tracker to report its own location information.
在一个例子中,通信设备可以为Wi-Fi设备,Wi-Fi设备可以向周围覆盖Wi-Fi信号,供周围的设备连接,并通过有线或无线的方式与基站进行通信。In an example, the communication device may be a Wi-Fi device, and the Wi-Fi device may cover Wi-Fi signals to the surroundings for the surrounding devices to connect and communicate with the base station in a wired or wireless manner.
比如:Wi-Fi设备可以为室内或室外的固定客户前置设备(Customer Premise Equipment,简称:CPE),CPE可以外接电源,功率非常大,Wi-Fi信号强度大,稳定性高,质量好,Wi-Fi信号覆盖范围也很大。For example: Wi-Fi equipment can be indoor or outdoor fixed customer premise equipment (Customer Premise Equipment, referred to as: CPE), CPE can be connected to an external power supply, the power is very large, the Wi-Fi signal strength is strong, high stability, good quality, The Wi-Fi signal coverage is also great.
再比如:Wi-Fi设备可以为随身Wi-Fi设备(User Wi-Fi,简称:UFi),UFi可以内置大容量电池,能够随身携带,灵活性更高,使用更便捷。Another example: the Wi-Fi device can be a portable Wi-Fi device (User Wi-Fi, referred to as: UFi), and the UFi can have a built-in large-capacity battery, which can be carried around, has higher flexibility, and is more convenient to use.
在一个例子中,通信设备可以为蓝牙设备,蓝牙设备可以向周围覆盖蓝牙局域网,供周围的设备连接,并通过有线或无线蓝牙等方式与基站进行通信。In an example, the communication device may be a Bluetooth device, and the Bluetooth device may cover a Bluetooth local area network to the surroundings for connection of surrounding devices and communicate with the base station through wired or wireless Bluetooth.
在一个例子中,追踪器可以先确定自身是否有已绑定的通信设备,若追踪器未与任何通信设备绑定或者找不到已绑定的通信设备,再检测是否有支持与追踪器连接的通信设备,若能找到已绑定的通信设备,继续使用已绑定的通信设备,防止追踪器同时占用、使用多个通信设备,节约通信设备的通信资源。In an example, the tracker can first determine whether it has a bound communication device. If the tracker is not bound to any communication device or cannot find the bound communication device, then check whether there is support for connecting with the tracker. If the bound communication device can be found, continue to use the bound communication device to prevent the tracker from occupying and using multiple communication devices at the same time, and save the communication resources of the communication device.
在一个例子中,追踪器检测支持与追踪器连接的通信设备可以由如图2所示的各步骤实现,具体包括步骤201和步骤202。In an example, the tracker detects a communication device that supports connection with the tracker may be implemented through the steps shown in FIG. 2 , specifically including step 201 and step 202 .
步骤201,扫描追踪器周围的通信设备,获取各通信设备的唯一标识符。 Step 201, scan the communication devices around the tracker to obtain the unique identifier of each communication device.
在具体实现中,追踪器在检测是否有支持与追踪器连接的通信设备时,可以扫描追踪器周围的通信设备,比如扫描追踪器周围的无线网络信息,获取各通信设备的唯一标识符。唯一标识符可以指示通信设备的身份等信息。In a specific implementation, when the tracker detects whether there is a communication device that supports connection with the tracker, it can scan the communication devices around the tracker, for example, scan the wireless network information around the tracker to obtain the unique identifier of each communication device. The unique identifier may indicate information such as the identity of the communication device.
在一个例子中,追踪器可以获取各通信设备的基本服务集标识符(Basic Service Set Identifier,简称:BSSID),将BSSID作为通信设备的唯一标识符。In an example, the tracker can obtain the Basic Service Set Identifier (BSSID for short) of each communication device, and use the BSSID as the unique identifier of the communication device.
步骤202,根据各通信设备的唯一标识符,确定支持与追踪器绑定的通信设备。 Step 202, according to the unique identifier of each communication device, determine the communication device that supports binding with the tracker.
在具体实现中,追踪器获取到各通信设备的唯一标识符后,可以将各通信设备的唯一标识符发送给服务器,由服务器查询这些通信设备是否支持与追踪器绑定,并告知追踪器支持与追踪器绑定的通信设备。根据各通信设备的唯一标识符可以更加快速、准确地检测到支持与追踪器连接的通信设备。In a specific implementation, after the tracker obtains the unique identifier of each communication device, it can send the unique identifier of each communication device to the server, and the server will query whether these communication devices support binding with the tracker, and inform the tracker of support A communication device bound to the tracker. The communication device supporting the connection with the tracker can be detected more quickly and accurately according to the unique identifier of each communication device.
步骤102,向通信设备发送绑定请求,与通信设备绑定。 Step 102, sending a binding request to the communication device to bind with the communication device.
具体而言,追踪器在检测到支持与追踪器连接的通信设备后,可以与该通信设备建立通信,与该通信设备绑定。建立绑定关系可以使追踪器与通信设备之间的通信更准确、可靠、安全。Specifically, after the tracker detects a communication device that supports connection with the tracker, it can establish communication with the communication device and bind with the communication device. Establishing a binding relationship can make the communication between the tracker and the communication device more accurate, reliable and secure.
在一个例子中,追踪器检测到周围有若干个支持与追踪器连接的通信设备,可以选择若干个支持与追踪器连接的通信设备中信号最强的通信设备进行绑定。In an example, the tracker detects that there are several communication devices supporting connection with the tracker, and may select the communication device with the strongest signal among the communication devices supporting connection with the tracker for binding.
在一个例子中,追踪器可以通过Wi-Fi直连、蓝牙、紫峰协议、红外等通信方式与支持与追踪器连接的通信设备建立通信连接,并与该通信设备绑定。In an example, the tracker can establish a communication connection with a communication device that supports connection with the tracker through Wi-Fi direct connection, Bluetooth, Zifeng protocol, infrared and other communication methods, and bind to the communication device.
比如:支持与追踪器连接的通信设备为CPE,追踪器可以通过Wi-Fi直连的方式,与该CPE建立通信连接,并与该CPE绑定。For example: the communication device that supports the connection with the tracker is a CPE, and the tracker can establish a communication connection with the CPE through Wi-Fi direct connection and bind with the CPE.
再比如:支持与追踪器连接的通信设备为蓝牙设备,追踪器可以接入该蓝牙设备的蓝牙局域网,与该蓝牙设备建立通信连接,并与该蓝牙设备绑定。Another example: the communication device that supports connection with the tracker is a Bluetooth device, and the tracker can access the Bluetooth local area network of the Bluetooth device, establish a communication connection with the Bluetooth device, and bind with the Bluetooth device.
在具体实现中,追踪器可以保存通信设备的唯一标识符(如:BSSID),并将自身的身份标识码(Identity document,简称:ID)发送给通信设备保存,从而实现追踪器与通信设备的的绑定。In a specific implementation, the tracker can store the unique identifier (such as BSSID) of the communication device, and send its own identity document (ID for short) to the communication device for storage, thereby realizing the communication between the tracker and the communication device. binding.
步骤103,向已绑定的通信设备发送追踪器的位置信息,供已绑定的通信设备周期性向服务器上报位置信息。 Step 103, sending the location information of the tracker to the bound communication device, so that the bound communication device periodically reports the location information to the server.
具体而言,追踪器在与支持与追踪器连接的的通信设备绑定后,可以向已绑定的通信设备发送追踪器的位置信息,供已绑定的通信设备周期性向服务器上报位置信息。考虑到追踪器自身定位获取位置信息、向服务器上报位置信息的过程非常耗电,若追踪器高频率上报位置信息,功耗非常大,导致追踪器的续航时间比较短,若追踪器低频率上报位置信息,则无法及时上报位置信息,实时性不好。本申请的实施例的追踪器可以通过支持与追踪器连接的通信设备上报位置信息,降低追踪器本身的功耗,在大幅度增加追踪器的续航时间的同时支持高频率上报位置信息,提升位置信息上报的实时性,从而提升用户的使用体验。Specifically, after the tracker is bound to a communication device that supports connection with the tracker, it can send the tracker's location information to the bound communication device, so that the bound communication device can periodically report the location information to the server. Considering that the process of the tracker locating itself to obtain location information and reporting location information to the server consumes a lot of power, if the tracker reports location information frequently, the power consumption will be very large, resulting in a relatively short battery life of the tracker. If the location information is not available, the location information cannot be reported in time, and the real-time performance is not good. The tracker in the embodiment of the present application can report location information by supporting communication devices connected to the tracker, reduce the power consumption of the tracker itself, and support high-frequency reporting of location information while greatly increasing the battery life of the tracker, thereby improving the location. The real-time reporting of information improves the user experience.
在具体实现中,追踪器可以向已绑定的通信设备发送追踪器的ID、追踪器的位置信息、服务器的地址和上报服务器的频率,供已绑定的通信设备根据追踪器的ID、服务器的地址和上报服务器的频率,周期性向服务器上报追踪器的位置信息。In a specific implementation, the tracker can send the ID of the tracker, the location information of the tracker, the address of the server, and the frequency of reporting to the server to the bound communication device, so that the bound communication device can address and the frequency of reporting to the server, and periodically report the location information of the tracker to the server.
在一个例子中,上报服务器的频率为每隔15分钟上报一次,追踪器将追踪器的ID、追踪器的位置信息、服务器的地址和上报服务器的频率发送至已绑定的通信设备,供已绑定的通信设备每15分钟向服务器上报一次追踪器的位置信息。In one example, the frequency of reporting to the server is once every 15 minutes, and the tracker sends the ID of the tracker, the location information of the tracker, the address of the server, and the frequency of the reporting server to the bound communication device for the The bound communication device reports the location information of the tracker to the server every 15 minutes.
在一个例子中,追踪器在向已绑定的通信设备发送自身的位置信息后,可以进入休眠状态,并以预设的心跳周期,向已绑定的通信设备发送心跳包。In one example, after the tracker sends its own location information to the bound communication device, it can enter a dormant state, and send a heartbeat packet to the bound communication device at a preset heartbeat cycle.
比如:追踪器以预设的心跳周期,向已绑定的通信设备发送心跳包可以如图3所示的各步骤实现,具体包括步骤301、步骤302、步骤303和步骤304。For example, the tracker sends a heartbeat packet to the bound communication device with a preset heartbeat period, which can be implemented through the steps shown in FIG. 3 , including step 301, step 302, step 303 and step 304.
步骤301,若达到预设的心跳周期,检测是否能扫描到已绑定的通信设备,如果是执行步骤304,否则,执行步骤302。 Step 301 , if the preset heartbeat period is reached, check whether the bound communication device can be scanned, if so, execute step 304 , otherwise, execute step 302 .
具体而言,追踪器向已绑定的通信设备发送位置信息后,随即进入休眠状态,待达到预设的心跳周期时,可以检测是否能扫描到已绑定的通信设备,以判断追踪器自身与已绑定的通信设备的相对位置。其中,预设的心跳周期可以由本领域的技术人员根据实际需要进行设定,本申请的实施例对此不做具体限定。Specifically, after the tracker sends location information to the bound communication device, it immediately enters a dormant state. When the preset heartbeat period is reached, it can detect whether the bound communication device can be scanned to judge the tracker itself. The relative position to the bound communication device. Wherein, the preset heartbeat cycle can be set by those skilled in the art according to actual needs, which is not specifically limited in this embodiment of the present application.
在一个例子中,预设的心跳周期可以比向服务器的上报频率长,如上报频率为20分钟,预设的心跳周期为30分钟,即追踪器每隔30分钟,检测是否能扫描到已绑定的通信设备。In an example, the preset heartbeat period can be longer than the reporting frequency to the server. For example, if the reporting frequency is 20 minutes, the preset heartbeat period is 30 minutes, that is, the tracker detects whether the bound designated communication equipment.
步骤302,重新获取位置信息。 Step 302, reacquiring location information.
具体而言,若追踪器不能扫描到已绑定的通信设备,说明追踪器已离开已绑定的通信设备的信号覆盖范围,即追踪器的位置发生较大的变化,追踪器可以重新获取自身的位置信息。Specifically, if the tracker cannot scan the bound communication device, it means that the tracker has left the signal coverage of the bound communication device, that is, the position of the tracker has changed greatly, and the tracker can reacquire its own location information.
步骤303,周期性向服务器上报重新获取的位置信息。 Step 303, periodically report the reacquired location information to the server.
具体而言,追踪器重新获取自身的位置信息后,可以直接周期性向服务器上报重新获取的位置信息,保证服务器能够收到追踪器的位置信息。Specifically, after the tracker reacquires its own location information, it can directly and periodically report the reacquired location information to the server, so as to ensure that the server can receive the location information of the tracker.
在一个例子中,追踪器不能扫描到已绑定的通信设备后,可以重新检测追踪器周围是否有支持与追踪器连接的通信设备,若检测到追踪器周围有支持与追踪器连接的通信设备,可以与该通信设备绑定,并通过该通信设备周期性向服务器发送重新获取的追踪器的位置信息。In an example, after the tracker cannot scan the bound communication device, it can re-detect whether there is a communication device around the tracker that supports connection with the tracker. If it is detected that there is a communication device around the tracker that supports connection with the tracker , can be bound to the communication device, and periodically send the reacquired location information of the tracker to the server through the communication device.
步骤304,向已绑定的通信设备发送心跳包。 Step 304, sending a heartbeat packet to the bound communication device.
具体而言,若追踪器能扫描到已绑定的通信设备,说明追踪器没有离开已绑定的通信设备的信号覆盖范围,即追踪器的位置没有发生变化,或者变化很小,追踪器无需重新获取自身的位置信息,只需向已绑定的通信设备发送心跳包,告知已绑定的通信设备自己仍在已绑定的通信设备的信号覆盖范围内。Specifically, if the tracker can scan the bound communication device, it means that the tracker has not left the signal coverage of the bound communication device, that is, the position of the tracker has not changed, or the change is very small, and the tracker does not need to To re-obtain its own location information, it only needs to send a heartbeat packet to the bound communication device to inform the bound communication device that it is still within the signal coverage of the bound communication device.
在一个例子中,追踪器在向已绑定的通信设备发送追踪器的位置信息之后,可以实时接收服务器发送的重新定位指示,进入重定位流程,追踪器重定位可以如图4所示的各步骤实现,具体包括步骤401和步骤402。In one example, after the tracker sends the tracker's location information to the bound communication device, it can receive the relocation instruction sent by the server in real time and enter the relocation process. The tracker relocation can be performed through the steps shown in Figure 4 The implementation specifically includes step 401 and step 402.
步骤401,若获取到服务器发送的重新定位指示,则根据重新定位指示,重新获取位置信息。 Step 401, if the relocation instruction sent by the server is obtained, reacquire location information according to the relocation instruction.
在具体实现中,服务器可以实时获取用户对追踪器对应的客户端的操作信息,根据用户对追踪器对应的客户端的操作信息,生成重新定位指示,并将重新定位指示发送给追踪器。In a specific implementation, the server can obtain the user's operation information on the client corresponding to the tracker in real time, generate a relocation instruction according to the user's operation information on the client corresponding to the tracker, and send the relocation instruction to the tracker.
在一个例子中,追踪器对应的客户端包含“获取追踪器实时信息”选项,若用户选中该选项,可以向服务器发送用户对该选项的选中信息,服务器根据该选中信息生成重新定位指示,并发送给追踪器。In one example, the client corresponding to the tracker includes the option "obtain real-time information of the tracker". Send to tracker.
步骤402,向已绑定的通信设备发送重新获取的位置信息,供已绑定的通信设备周期性向服务器上报重新获取的位置信息。 Step 402, sending the reacquired location information to the bound communication device, so that the bound communication device periodically reports the reacquired location information to the server.
具体而言,追踪器根据重新定位指示,重新获取位置信息后,可以向已绑定的通信设备发送重新获取的位置信息,供已绑定的通信设备周期性向服务器上报重新获取的位置信息。本申请的实施例允许服务器强制开启重定位流程,可以让用户更及时地获取追踪器的实时位置,进一步提升用户的使用体验。Specifically, after the tracker reacquires the location information according to the relocation instruction, it can send the reacquired location information to the bound communication device, so that the bound communication device periodically reports the reacquired location information to the server. The embodiment of the present application allows the server to forcibly start the relocation process, which allows the user to obtain the real-time location of the tracker in a more timely manner, and further improves the user experience.
步骤104,周期性向服务器上报位置信息。 Step 104, periodically report the location information to the server.
具体而言,若追踪器检测到周围没有支持与追踪器连接的通信设备,可以直接周期性向服务器上报追踪器的位置信息,保证服务器能够收到追踪器的位置信息。Specifically, if the tracker detects that there is no communication device supporting connection with the tracker, it can directly report the location information of the tracker to the server periodically to ensure that the server can receive the location information of the tracker.
本实施例,追踪器若检测到支持与追踪器连接的通信设备,则向所述通信设备发送绑定请求,与所述通信设备绑定,建立绑定关系可以使追踪器与通信设备之间的通信更准确、可靠、安全。向已绑定的通信设备发送所述追踪器的位置信息,供已绑定的所述通信周期性向服务器上报所述位置信息;若未检测到支持与追踪器连接的通信设备,则周期性向所述服务器上报所述位置信息,考虑到追踪器自身定位获取位置信息、向服务器上报位置信息的过程非常耗电,若追踪器高频率上报位置信息,功耗非常大,导致追踪器的续航时间比较短,若追踪器低频率上报位置信息,则无法及时上报位置信息,实时性不好。本申请的实施例的追 踪器可以通过支持与追踪器连接的通信设备上报位置信息,降低追踪器本身的功耗,在大幅度增加追踪器的续航时间的同时支持高频率上报位置信息,提升位置信息上报的实时性,从而提升用户的使用体验。In this embodiment, if the tracker detects a communication device that supports connection with the tracker, it will send a binding request to the communication device to bind with the communication device. Establishing a binding relationship can make the communication device between the tracker and the communication device Communication is more accurate, reliable and secure. Send the location information of the tracker to the bound communication device for the bound communication to periodically report the location information to the server; if no communication device supporting connection with the tracker is detected, periodically report to the tracker The above server reports the location information, considering that the process of the tracker itself locating and obtaining the location information and reporting the location information to the server consumes a lot of power. Short, if the tracker reports location information at a low frequency, it cannot report location information in time, and the real-time performance is not good. The tracker in the embodiment of the present application can report location information by supporting communication devices connected to the tracker, reduce the power consumption of the tracker itself, and support high-frequency reporting of location information while greatly increasing the battery life of the tracker, thereby improving the location. The real-time reporting of information improves the user experience.
本申请的另一个实施例涉及一种定位方法,应用于通信设备,通信设备可以为Wi-Fi设备,如:CPE、UFi等,也可以为蓝牙设备。下面对本实施例的定位方法的实现细节进行具体的说明,以下内容仅为方便理解提供的实现细节,并非实施本方案的必须,图5是本实施例所述的定位方法的流程图,包括步骤501、步骤502和步骤503。Another embodiment of the present application relates to a positioning method, which is applied to a communication device. The communication device may be a Wi-Fi device, such as a CPE, UFi, etc., or a Bluetooth device. The implementation details of the positioning method of this embodiment are described in detail below. The following content is only the implementation details provided for the convenience of understanding, and is not necessary for the implementation of this solution. Figure 5 is a flow chart of the positioning method described in this embodiment, including steps 501, step 502 and step 503.
步骤501,若收到追踪器发送的绑定请求,则与追踪器绑定。 Step 501, if a binding request sent by the tracker is received, bind with the tracker.
具体而言,通信设备可以实时接收来自追踪器的绑定请求,若通信设备收到追踪器发送的绑定请求,则可以与该追踪器绑定。建立绑定关系可以使通信设备与追踪器之间的通信更准确、可靠、安全。Specifically, the communication device can receive a binding request from the tracker in real time, and if the communication device receives the binding request sent by the tracker, it can bind with the tracker. Establishing a binding relationship can make the communication between the communication device and the tracker more accurate, reliable and secure.
在一个例子中,通信设备可以通过Wi-Fi直连、蓝牙、紫峰协议、红外等通信方式与追踪器建立通信连接,并与该追踪器绑定。In an example, the communication device can establish a communication connection with the tracker through Wi-Fi direct connection, Bluetooth, Zifeng protocol, infrared and other communication methods, and bind with the tracker.
在一个例子中,通信设备收到追踪器发送的绑定请求后,可以将通信设备自身的唯一标识符(如:BSSID)发送给发送绑定请求的追踪器,并保存发送绑定请求的追踪器的ID,从而实现通信设备与追踪器的绑定。In one example, after the communication device receives the binding request sent by the tracker, it can send the unique identifier (such as BSSID) of the communication device itself to the tracker that sent the binding request, and save the tracking of sending the binding request. ID of the tracker, so as to realize the binding of the communication device and the tracker.
在一个例子中,通信设备获取到发送绑定请求的追踪器的ID后,可以根据该追踪器的ID判断该追踪器是否为合法设备,若该追踪器为合法设备,则与该追踪器进行绑定。In one example, after the communication device obtains the ID of the tracker that sent the binding request, it can judge whether the tracker is a legal device according to the ID of the tracker, and if the tracker is a legal device, it will conduct a communication with the tracker. bound.
步骤502,接收已绑定的追踪器发送的追踪器的位置信息。 Step 502, receiving the location information of the tracker sent by the bound tracker.
具体而言,通信设备与发送绑定请求的追踪器绑定后,可以实时接收已绑定的追踪器发送的追踪器的位置信息。Specifically, after the communication device is bound to the tracker sending the binding request, it can receive the location information of the tracker sent by the bound tracker in real time.
步骤503,周期性向服务器上报位置信息。 Step 503, periodically report the location information to the server.
具体而言,服务器在收到已绑定的追踪器发送的追踪器的位置信息后,可以周期性向服务器上报位置信息。考虑到追踪器自身定位获取位置信息、向服务器上报位置信息的过程非常耗电,若追踪器高频率上报位置信息,功耗非常大,导致追踪器的续航时间比较短,若追踪器低频率上报位置信息,则无法及时上报位置信息,实时性不好。本申请的实施例的通信设备可以作为桥梁,接收追踪器发送来的追踪器的位置信息并上报位置信息,降低追踪器本身的功耗,在大幅度增加追踪器的续航时间的同时支持高频率上报位置信息,提升位置信息上报的实时性,从而提升用户的使用体验。Specifically, the server may periodically report the location information to the server after receiving the location information of the tracker sent by the bound tracker. Considering that the process of the tracker locating itself to obtain location information and reporting location information to the server consumes a lot of power, if the tracker reports location information frequently, the power consumption will be very large, resulting in a relatively short battery life of the tracker. If the location information is not available, the location information cannot be reported in time, and the real-time performance is not good. The communication device of the embodiment of the present application can be used as a bridge to receive the location information of the tracker sent by the tracker and report the location information, reduce the power consumption of the tracker itself, and support high frequency while greatly increasing the battery life of the tracker. Report location information to improve the real-time performance of location information reporting, thereby improving user experience.
在一个例子中,通信设备还可以实时接收已绑定的追踪器发送的该追踪器的ID、服务器的地址和上报服务器的频率,根据追踪器的ID、服务器的地址和上报服务器的频率,周期性向服务器上报追踪器的位置信息。In one example, the communication device can also receive the ID of the tracker, the address of the server and the frequency of reporting to the server sent by the bound tracker in real time, and according to the ID of the tracker, the address of the server and the frequency of reporting to the server, the periodic Report the location information of the tracker to the server.
在一个例子中,上报服务器的频率为每隔15分钟上报一次,通信设备接收已绑定的追踪器发送的该追踪器的ID、服务器的地址和上报服务器的频率,每15分钟向服务器上报一次追踪器的位置信息。In an example, the frequency of reporting to the server is once every 15 minutes, and the communication device receives the ID of the tracker, the address of the server and the frequency of the reporting server sent by the bound tracker, and reports to the server every 15 minutes Tracker location information.
本实施例,若收到追踪器发送的绑定请求,则与所述追踪器绑定;接收已绑定的所述追踪器发送的所述追踪器的位置信息;周期性向服务器上报所述位置信息。通信设备作为桥梁,接收追踪器发送来的追踪器的位置信息并上报位置信息,降低追踪器本身的功耗,在大幅度增加追踪器的续航时间的同时支持高频率上报位置信息,提升位置信息上报的实时性,从而 提升用户的使用体验。In this embodiment, if the binding request sent by the tracker is received, bind with the tracker; receive the location information of the tracker sent by the bound tracker; periodically report the location to the server information. As a bridge, the communication device receives the location information of the tracker sent by the tracker and reports the location information, reduces the power consumption of the tracker itself, and supports high-frequency reporting of location information while greatly increasing the battery life of the tracker, improving location information Real-time reporting, thereby improving user experience.
在一个实施例中,通信设备在接收已绑定的追踪器发送的追踪器的位置信息后,可以实时接收已绑定的追踪器发送的心跳包,通信设备接收已绑定的追踪器发送的心跳包的流程可以如图6所示的各步骤实现,具体如下。In one embodiment, after the communication device receives the tracker's location information sent by the bound tracker, it can receive the heartbeat packet sent by the bound tracker in real time, and the communication device receives the heartbeat packet sent by the bound tracker. The flow of the heartbeat packet can be realized through the steps shown in FIG. 6 , specifically as follows.
步骤601,判断在预设时间内是否收到已绑定的追踪器发送的心跳包,如果是,执行步骤602,否则,执行步骤603。 Step 601, judge whether the heartbeat packet sent by the bound tracker is received within the preset time, if yes, execute step 602, otherwise, execute step 603.
具体而言,通信设备在周期性向服务器上报已绑定的追踪器的位置信息的同时,还可以判断预设时间内是否收到已绑定的追踪器发送的心跳包,即判断通信设备自身是否还与已绑定的追踪器保持心跳。其中,预设时间可以与追踪器的预设心跳周期保持一致,或预设时间略长于追踪器的预设心跳周期,本申请的实施例对此不做具体限定。Specifically, while the communication device periodically reports the location information of the bound tracker to the server, it can also determine whether it has received the heartbeat packet sent by the bound tracker within the preset time, that is, to determine whether the communication device itself Also keeps a heartbeat with the bound tracker. Wherein, the preset time may be consistent with the preset heartbeat cycle of the tracker, or the preset time may be slightly longer than the preset heartbeat cycle of the tracker, which is not specifically limited in this embodiment of the present application.
步骤602,继续周期性向服务器上报位置信息。 Step 602, continue to periodically report the location information to the server.
具体而言,若通信设备在预设时间内收到已绑定的追踪器发送的心跳包,即通信设备与已绑定的追踪器之间仍保持心跳,已绑定的追踪器位置未发生改变或改变很小,无需重新定位,通信设备可以继续周期性向服务器上报已绑定的追踪器的位置信息。Specifically, if the communication device receives the heartbeat packet sent by the bound tracker within the preset time, that is, the heartbeat between the communication device and the bound tracker is still maintained, and the position of the bound tracker does not occur. If the change or change is small, no relocation is required, and the communication device can continue to periodically report the location information of the bound tracker to the server.
在一个例子中,预设时间为30分钟,若通信设备在收到已绑定的追踪器发送的心跳包后的30分钟后,再次收到已绑定的追踪器发送的心跳包,则继续周期性向服务器上报位置信息。In one example, the preset time is 30 minutes. If the communication device receives the heartbeat packet sent by the bound tracker again 30 minutes after receiving the heartbeat packet sent by the bound tracker, continue Periodically report location information to the server.
步骤603,与已绑定的追踪器解除绑定。 Step 603, unbind from the bound tracker.
具体而言,若通信设备在预设时间内没有收到已绑定的追踪器发送的心跳包,即通信设备与已绑定的追踪器之间不存在心跳,已绑定的追踪器位置发生很大变化,或已绑定的追踪器电量耗尽,通信设备若仍周期性向服务器上报已绑定的追踪器的位置信息,会导致上报错误,此时通信设备与已绑定的追踪器解除绑定,避免出现错误上报,也可以防止造成通信设备资源的浪费。Specifically, if the communication device does not receive the heartbeat packet sent by the bound tracker within the preset time, that is, there is no heartbeat between the communication device and the bound tracker, the position of the bound tracker will If there is a big change, or the battery of the bound tracker is exhausted, if the communication device still periodically reports the location information of the bound tracker to the server, it will cause a report error, and the communication device will be disconnected from the bound tracker Binding avoids error reporting and prevents waste of communication equipment resources.
在一个例子中,预设时间为30分钟,若通信设备在收到已绑定的追踪器发送的心跳包后的30分钟后,没有再收到已绑定的追踪器发送的心跳包,则与已绑定的追踪器解除绑定。In one example, the preset time is 30 minutes. If the communication device does not receive the heartbeat packet sent by the bound tracker after 30 minutes after receiving the heartbeat packet sent by the bound tracker, then Unbind from a bound tracker.
本实施例,在所述接收所述追踪器发送的所述追踪器的位置信息之后,还包括:若在预设时间内收到已绑定的所述追踪器发送的心跳包,则继续周期性向所述服务器上报所述位置信息;若在预设时间内未收到已绑定的所述追踪器发送的心跳包,则与已绑定的所述追踪器解除绑定,避免出现错误上报,防止造成通信设备资源的浪费。In this embodiment, after receiving the location information of the tracker sent by the tracker, it also includes: if the heartbeat packet sent by the bound tracker is received within a preset time, continue the cycle Report the location information to the server; if the heartbeat packet sent by the bound tracker is not received within the preset time, the bound tracker will be unbound to avoid error reporting , to prevent the waste of communication equipment resources.
在一个实施例中,通信设备与发送绑定请求的追踪器绑定之后,可以接收已绑定的追踪器发送的该追踪器与通信设备之间的初始信号强度,通信设备收到的已绑定的追踪器发送的心跳包中包括该追踪器与通信设备之间的最近一次通信的信号强度。通信设备可以根据追踪器与通信设备之间的初始信号强度,和追踪器与通信设备之间的最近一次通信的信号强度,判断是否需要进行重定位,本实施例的重定位方法可以由图7所示的各步骤实现,具体包括步骤701、步骤702和步骤703。In one embodiment, after the communication device is bound to the tracker that sent the binding request, it can receive the initial signal strength between the tracker and the communication device sent by the bound tracker, and the bound signal strength received by the communication device The heartbeat packet sent by a given tracker includes the signal strength of the latest communication between the tracker and the communication device. The communication device can judge whether relocation is required according to the initial signal strength between the tracker and the communication device, and the signal strength of the latest communication between the tracker and the communication device. The relocation method of this embodiment can be shown in Figure 7 The steps shown are implemented, specifically including step 701 , step 702 and step 703 .
步骤701,若初始信号强度与最近一次通信的信号强度的差值大于预设差值,则指示已绑定的追踪器重新获取位置信息。 Step 701, if the difference between the initial signal strength and the signal strength of the latest communication is greater than a preset difference, instruct the bound tracker to reacquire location information.
具体而言,通信设备在每次收到已绑定的追踪器发送的心跳包后,可以获取心跳包中的,该追踪器与通信设备的最近一次通信的信号强度,并计算初始信号强度与该最近一次通信的信号强度之间的差值,若该差值大于预设差值,则通信设备指示已绑定的追踪器重新获取位 置信息。其中,预设差值可以由本领域的技术人员根据实际需要进行设置,本申请的实施例对此不做具体限定。Specifically, each time the communication device receives the heartbeat packet sent by the bound tracker, it can obtain the signal strength of the latest communication between the tracker and the communication device in the heartbeat packet, and calculate the initial signal strength and The difference between the signal strengths of the last communication, if the difference is greater than the preset difference, the communication device instructs the bound tracker to reacquire the location information. Wherein, the preset difference can be set by those skilled in the art according to actual needs, which is not specifically limited in this embodiment of the present application.
在具体实现中,某些通信设备的信号覆盖范围很广,追踪器在该覆盖范围也可能存在比较大的位置变化,比如从通信设备的信号覆盖范围的中心移动到覆盖范围的边缘,而在中心位置的情况下和在边缘位置的情况下,追踪器与通信设备之间的信号强度是不同的,本申请的实施例,通信设备每次收到心跳包后,都会通过判断信号强度的变化的方式,判断已绑定的追踪器是否需要重定位,可以有效提升通信设备上报的位置信息的准确性。In a specific implementation, the signal coverage of some communication devices is very wide, and the tracker may also have a relatively large position change in this coverage, such as moving from the center of the signal coverage of the communication device to the edge of the coverage, while in the In the case of the center position and the case of the edge position, the signal strength between the tracker and the communication device is different. In the embodiment of this application, each time the communication device receives a heartbeat packet, it will judge the change of the signal strength The way of judging whether the bound tracker needs to be relocated can effectively improve the accuracy of the location information reported by the communication device.
在一个例子中,若初始信号强度与最近一次通信的信号强度的差值小于或等于预设差值,说明追踪器位置变化很小,不需要进行重定位。In one example, if the difference between the initial signal strength and the signal strength of the latest communication is less than or equal to a preset difference, it means that the position of the tracker has changed little, and no relocation is required.
在一个例子中,预设差值为10dBm,通信设备在与发送绑定请求的追踪器绑定后,收到该追踪器与通信设备之间的初始信号强度为-120dBm。通信设备在收到该追踪器发送的心跳包后,获取到该追踪器与通信设备之间的最近一次通信的信号强度为-85dBm,通信设备确定初始信号强度与最近一次通信的信号强度的差值为35dBm,大于预设差值,说明该追踪器位置变化很大,需要进行重定位,通信设备向该追踪器发送重新定位指示。In one example, the preset difference is 10dBm, and after the communication device is bound to the tracker that sent the binding request, it receives an initial signal strength of -120dBm between the tracker and the communication device. After the communication device receives the heartbeat packet sent by the tracker, it obtains that the signal strength of the latest communication between the tracker and the communication device is -85dBm, and the communication device determines the difference between the initial signal strength and the signal strength of the latest communication If the value is 35dBm, which is greater than the preset difference, it means that the position of the tracker changes greatly and needs to be relocated, and the communication device sends a relocation instruction to the tracker.
步骤702,接收已绑定的追踪器发送的重新获取的位置信息。 Step 702, receiving the reacquired location information sent by the bound tracker.
具体而言,通信设备在指示已绑定的追踪器重新获取位置信息后,可以接收已绑定的追踪器发送的重新获取的位置信息。Specifically, after instructing the bound tracker to reacquire the location information, the communication device may receive the reacquired location information sent by the bound tracker.
步骤703,周期性向服务器上报重新获取的位置信息。 Step 703, periodically report the reacquired location information to the server.
具体而言,通信设备在收到已绑定的追踪器发送的重新获取的位置信息后,可以周期性向服务器上报重新获取的位置信息。Specifically, after receiving the reacquired location information sent by the bound tracker, the communication device may periodically report the reacquired location information to the server.
本实施例,在所述与所述追踪器绑定之后,还包括:获取已绑定的所述追踪器发送的所述追踪器与所述通信设备之间的初始信号强度;所述心跳包中包括已绑定的所述追踪器与所述通信设备之间的最近一次通信的信号强度;在所述收到已绑定的所述追踪器发送的心跳包之后,还包括:若所述初始信号强度与所述最近一次通信的信号强度的差值大于预设差值,则指示已绑定的所述追踪器重新获取位置信息;接收已绑定的所述追踪器发送的重新获取的位置信息;周期性向所述服务器上报所述重新获取的位置信息。本申请的实施例,通过判断信号强度的变化的方式,判断已绑定的追踪器是否需要重定位,大幅提升通信设备上报的位置信息的准确性。In this embodiment, after the binding with the tracker, it further includes: acquiring the initial signal strength between the tracker and the communication device sent by the bound tracker; the heartbeat packet includes the signal strength of the latest communication between the bound tracker and the communication device; after receiving the heartbeat packet sent by the bound tracker, it also includes: if the If the difference between the initial signal strength and the signal strength of the latest communication is greater than a preset difference, it indicates that the bound tracker reacquires the location information; and receives the reacquired location information sent by the bound tracker Location information: Periodically report the reacquired location information to the server. In the embodiment of the present application, by judging the change of the signal strength, it is judged whether the bound tracker needs to be relocated, and the accuracy of the location information reported by the communication device is greatly improved.
本申请的另一个实施例涉及一种定位系统,下面对本实施例的定位系统的细节进行具体的说明,以下内容仅为方便理解提供的实现细节,并非实施本例的必须,图8是本实施例所述的定位系统的示意图,包括:追踪器801、通信设备802和服务器803。Another embodiment of the present application relates to a positioning system. The details of the positioning system of this embodiment are described in detail below. The following content is only the implementation details provided for the convenience of understanding, and is not necessary for the implementation of this embodiment. Figure 8 is the implementation of this embodiment. A schematic diagram of the positioning system described in the example, including: a tracker 801 , a communication device 802 and a server 803 .
追踪器801被设置为在检测到支持与追踪器连接的通信设备802后,向通信设备802发送绑定请求,向已绑定的通信设备802发送追踪器801的位置信息。The tracker 801 is configured to send a binding request to the communication device 802 after detecting the communication device 802 that supports connection with the tracker, and send the location information of the tracker 801 to the bound communication device 802 .
通信设备802被设置为在收到追踪器801发送的绑定请求后,与追踪器801绑定,接收已绑定的追踪器801发送的位置信息,周期性向服务器803上报位置信息。The communication device 802 is configured to bind with the tracker 801 after receiving the binding request sent by the tracker 801 , receive the location information sent by the bound tracker 801 , and periodically report the location information to the server 803 .
追踪器801还被设置为在未检测到支持与追踪器连接的通信设备后,周期性向服务器803上报位置信息。The tracker 801 is also configured to periodically report location information to the server 803 after no communication device supporting connection with the tracker is detected.
不难发现,本实施例为与上述方法实施例对应的系统实施例,本实施例可以与上述方法实施例互相配合实施。上述实施例中提到的相关技术细节和技术效果在本实施例中依然有效, 为了减少重复,这里不再赘述。相应地,本实施例中提到的相关技术细节也可应用在上述实施例中。It is not difficult to find that this embodiment is a system embodiment corresponding to the above method embodiment, and this embodiment can be implemented in cooperation with the above method embodiment. The relevant technical details and technical effects mentioned in the foregoing embodiments are still valid in this embodiment, and will not be repeated here to reduce repetition. Correspondingly, the relevant technical details mentioned in this embodiment can also be applied in the above embodiments.
值得一提的是,本实施例中所涉及到的各模块均为逻辑模块,在实际应用中,一个逻辑单元可以是一个物理单元,也可以是一个物理单元的一部分,还可以以多个物理单元的组合实现。此外,为了突出本申请的创新部分,本实施例中并没有将与解决本申请所提出的技术问题关系不太密切的单元引入,但这并不表明本实施例中不存在其它的单元。It is worth mentioning that all the modules involved in this embodiment are logical modules. In practical applications, a logical unit can be a physical unit, or a part of a physical unit, or multiple physical units. Combination of units. In addition, in order to highlight the innovative part of the present application, units that are not closely related to solving the technical problem proposed in the present application are not introduced in this embodiment, but this does not mean that there are no other units in this embodiment.
本申请另一个实施例涉及一种电子设备,如图9所示,包括:至少一个处理器901;以及,与所述至少一个处理器901通信连接的存储器902;其中,所述存储器902存储有可被所述至少一个处理器901执行的指令,所述指令被所述至少一个处理器901执行,以使所述至少一个处理器901能够执行上述各实施例中的定位方法。Another embodiment of the present application relates to an electronic device, as shown in FIG. 9 , including: at least one processor 901; and a memory 902 communicatively connected to the at least one processor 901; wherein, the memory 902 stores Instructions that can be executed by the at least one processor 901, the instructions are executed by the at least one processor 901, so that the at least one processor 901 can execute the positioning methods in the foregoing embodiments.
其中,存储器和处理器采用总线方式连接,总线可以包括任意数量的互联的总线和桥,总线将一个或多个处理器和存储器的各种电路连接在一起。总线还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路连接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口在总线和收发机之间提供接口。收发机可以是一个元件,也可以是多个元件,比如多个接收器和发送器,提供用于在传输介质上与各种其他装置通信的单元。经处理器处理的数据通过天线在无线介质上进行传输,在一些实施例中,天线还接收数据并将数据传送给处理器。Wherein, the memory and the processor are connected by a bus, and the bus may include any number of interconnected buses and bridges, and the bus connects one or more processors and various circuits of the memory together. The bus may also connect together various other circuits such as peripherals, voltage regulators, and power management circuits, all of which are well known in the art and therefore will not be further described herein. The bus interface provides an interface between the bus and the transceivers. A transceiver may be a single element or multiple elements, such as multiple receivers and transmitters, providing means for communicating with various other devices over a transmission medium. Data processed by the processor is transmitted over the wireless medium by the antenna, which in some embodiments also receives the data and transmits the data to the processor.
处理器负责管理总线和通常的处理,还可以提供各种功能,包括定时,外围接口,电压调节、电源管理以及其他控制功能。而存储器可以被用于存储处理器在执行操作时所使用的数据。The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interface, voltage regulation, power management, and other control functions. Instead, memory can be used to store data that the processor uses when performing operations.
本申请另一个实施例涉及一种计算机可读存储介质,存储有计算机程序。计算机程序被处理器执行时实现上述方法实施例。Another embodiment of the present application relates to a computer-readable storage medium storing a computer program. The above method embodiments are implemented when the computer program is executed by the processor.
即,本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。That is, those skilled in the art can understand that all or part of the steps in the method of the above-mentioned embodiments can be completed by instructing related hardware through a program, the program is stored in a storage medium, and includes several instructions to make a device ( It may be a single-chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .
本申请提出的定位方法、系统、电子设备和计算机可读存储介质,追踪器若检测到支持与追踪器连接的通信设备,则向所述通信设备发送绑定请求,与所述通信设备绑定,建立绑定关系可以使追踪器与通信设备之间的通信更准确、可靠、安全。向已绑定的通信设备发送所述追踪器的位置信息,供已绑定的所述通信周期性向服务器上报所述位置信息;若未检测到支持与追踪器连接的通信设备,则周期性向所述服务器上报所述位置信息,考虑到追踪器自身定位获取位置信息、向服务器上报位置信息的过程非常耗电,若追踪器高频率上报位置信息,功耗非常大,导致追踪器的续航时间比较短,若追踪器低频率上报位置信息,则无法及时上报位置信息,实时性不好。本申请的实施例的追踪器可以通过支持与追踪器连接的通信设备上报位置信息,降低追踪器本身的功耗,在大幅度增加追踪器的续航时间的同时支持高频率上报位置信息,提升位置信息上报的实时性,从而提升用户的使用体验。In the positioning method, system, electronic device and computer-readable storage medium proposed by the present application, if the tracker detects a communication device that supports connection with the tracker, it sends a binding request to the communication device and binds to the communication device , establishing a binding relationship can make the communication between the tracker and the communication device more accurate, reliable and secure. Send the location information of the tracker to the bound communication device for the bound communication to periodically report the location information to the server; if no communication device supporting connection with the tracker is detected, periodically report to the tracker The above server reports the location information, considering that the process of the tracker itself locating and obtaining the location information and reporting the location information to the server consumes a lot of power. Short, if the tracker reports location information at a low frequency, it cannot report location information in time, and the real-time performance is not good. The tracker in the embodiment of the present application can report location information by supporting communication devices connected to the tracker, reduce the power consumption of the tracker itself, and support high-frequency reporting of location information while greatly increasing the battery life of the tracker, thereby improving the location. The real-time reporting of information improves the user experience.
本领域的普通技术人员可以理解,上述各实施方式是实现本申请的具体实施例,而在实 际应用中,可以在形式上和细节上对其作各种改变,而不偏离本申请的精神和范围。Those of ordinary skill in the art can understand that the above-mentioned implementation modes are specific examples for realizing the present application, and in practical applications, various changes can be made to it in form and details without departing from the spirit and spirit of the present application. scope.

Claims (11)

  1. 一种定位方法,应用于追踪器,包括:A positioning method, applied to a tracker, comprising:
    若检测到支持与追踪器连接的通信设备,则向所述通信设备发送绑定请求,与所述通信设备绑定;If a communication device supporting connection with the tracker is detected, a binding request is sent to the communication device to bind with the communication device;
    向已绑定的所述通信设备发送所述追踪器的位置信息,供已绑定的所述通信设备周期性向服务器上报所述位置信息;sending the location information of the tracker to the bound communication device, so that the bound communication device periodically reports the location information to the server;
    若未检测到支持与追踪器连接的通信设备,则周期性向所述服务器上报所述位置信息。If no communication device supporting connection with the tracker is detected, the location information is periodically reported to the server.
  2. 根据权利要求1所述的定位方法,其中,在所述向已绑定的所述通信设备发送所述追踪器的位置信息之后,还包括:The positioning method according to claim 1, wherein, after sending the position information of the tracker to the bound communication device, further comprising:
    以预设的心跳周期,向已绑定的所述通信设备发送心跳包;其中,所述追踪器在未达到所述预设的心跳周期时,处于休眠状态。A heartbeat packet is sent to the bound communication device at a preset heartbeat period; wherein, the tracker is in a dormant state when the preset heartbeat period is not reached.
  3. 根据权利要求2所述的定位方法,其中,在所述向已绑定的所述通信设备发送心跳包之前,还包括:The positioning method according to claim 2, wherein, before sending a heartbeat packet to the bound communication device, further comprising:
    若达到所述预设的心跳周期,检测是否能扫描到已绑定的所述通信设备;If the preset heartbeat cycle is reached, check whether the bound communication device can be scanned;
    若能扫描到已绑定的所述通信设备,则向已绑定的所述通信设备发送心跳包;If the bound communication device can be scanned, then send a heartbeat packet to the bound communication device;
    若不能扫描到已绑定的所述通信设备,则重新获取位置信息;If the bound communication device cannot be scanned, re-acquire the location information;
    周期性向所述服务器上报重新获取的位置信息。Periodically report the reacquired location information to the server.
  4. 根据权利要求1所述的定位方法,其中,所述追踪器通过以下步骤检测支持与追踪器连接的通信设备:The positioning method according to claim 1, wherein the tracker detects a communication device that supports connection with the tracker through the following steps:
    扫描所述追踪器周围的通信设备,获取各通信设备的唯一标识符;scanning the communication devices around the tracker to obtain the unique identifier of each communication device;
    根据所述各通信设备的唯一标识符,确定支持与追踪器连接的通信设备。According to the unique identifiers of the communication devices, the communication devices supporting the connection with the tracker are determined.
  5. 根据权利要求1所述的定位方法,其中,在所述向已绑定的所述通信设备发送所述追踪器的位置信息之后,还包括:The positioning method according to claim 1, wherein, after sending the position information of the tracker to the bound communication device, further comprising:
    若获取到服务器发送的重新定位指示,则根据所述重新定位指示,重新获取位置信息;If the relocation instruction sent by the server is obtained, reacquire the location information according to the relocation instruction;
    向已绑定的所述通信设备发送重新获取的位置信息,供已绑定的所述通信设备周期性向所述服务器上报所述重新获取的位置信息。Sending the reacquired location information to the bound communication device, so that the bound communication device periodically reports the reacquired location information to the server.
  6. 一种定位方法,应用于通信设备,包括:A positioning method applied to communication equipment, comprising:
    若收到追踪器发送的绑定请求,则与所述追踪器绑定;If the binding request sent by the tracker is received, bind with the tracker;
    接收已绑定的所述追踪器发送的所述追踪器的位置信息;receiving the location information of the tracker sent by the bound tracker;
    周期性向服务器上报所述位置信息。Periodically report the location information to the server.
  7. 根据权利要求6所述的定位方法,其中,在所述接收所述追踪器发送的所述追踪器的位置信息之后,还包括:The positioning method according to claim 6, wherein, after receiving the location information of the tracker sent by the tracker, further comprising:
    若在预设时间内收到已绑定的所述追踪器发送的心跳包,则继续周期性向所述服务器上报所述位置信息;If the heartbeat packet sent by the bound tracker is received within the preset time, continue to periodically report the location information to the server;
    若在预设时间内未收到已绑定的所述追踪器发送的心跳包,则与已绑定的所述追踪器解除绑定。If the heartbeat packet sent by the bound tracker is not received within the preset time, the bound tracker is unbound.
  8. 根据权利要求7所述的定位方法,其中,在所述与所述追踪器绑定之后,还包括:The positioning method according to claim 7, wherein, after the binding with the tracker, further comprising:
    获取已绑定的所述追踪器发送的所述追踪器与所述通信设备之间的初始信号强度;Acquiring the initial signal strength between the tracker and the communication device sent by the bound tracker;
    所述心跳包中包括已绑定的所述追踪器与所述通信设备之间的最近一次通信的信号强度;The heartbeat packet includes the signal strength of the latest communication between the bound tracker and the communication device;
    在所述收到已绑定的所述追踪器发送的心跳包之后,还包括:After receiving the heartbeat packet sent by the bound tracker, it also includes:
    若所述初始信号强度与所述最近一次通信的信号强度的差值大于预设差值,则指示已绑定的所述追踪器重新获取位置信息;If the difference between the initial signal strength and the signal strength of the latest communication is greater than a preset difference, instruct the bound tracker to reacquire location information;
    接收已绑定的所述追踪器发送的重新获取的位置信息;receiving the reacquired location information sent by the bound tracker;
    周期性向所述服务器上报所述重新获取的位置信息。Periodically report the reacquired location information to the server.
  9. 一种定位系统,包括:追踪器、通信设备和服务器,其中,A positioning system, comprising: a tracker, a communication device and a server, wherein,
    所述追踪器被设置为在检测到支持与追踪器连接的通信设备后,向所述通信设备发送绑定请求,向已绑定的所述通信设备发送所述追踪器的位置信息;The tracker is configured to send a binding request to the communication device after detecting a communication device that supports connection with the tracker, and send location information of the tracker to the bound communication device;
    所述通信设备被设置为在收到所述追踪器发送的绑定请求后,与所述追踪器绑定,接收已绑定的所述追踪器发送的所述位置信息,周期性向所述服务器上报所述位置信息;The communication device is configured to bind with the tracker after receiving the binding request sent by the tracker, receive the location information sent by the bound tracker, and periodically report to the server Report the location information;
    所述追踪器还被设置为在未检测到支持与追踪器连接的通信设备后,周期性向所述服务器上报所述位置信息。The tracker is further configured to periodically report the location information to the server after no communication device supporting connection with the tracker is detected.
  10. 一种电子设备,包括:An electronic device comprising:
    至少一个处理器;以及,at least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求1至5中任一项所述的定位方法,或者执行如权利要求6至8中任一项所述的定位方法。The memory stores instructions executable by the at least one processor, the instructions are executed by the at least one processor, so that the at least one processor can perform the operation described in any one of claims 1 to 5 The above positioning method, or execute the positioning method according to any one of claims 6 to 8.
  11. 一种计算机可读存储介质,存储有计算机程序,其中,所述计算机程序被处理器执行时实现权利要求1至5中任一项所述的定位方法,或者实现权利要求6至8中任一项所述的定位方法。A computer-readable storage medium storing a computer program, wherein, when the computer program is executed by a processor, the positioning method according to any one of claims 1 to 5 is realized, or any one of claims 6 to 8 is realized The positioning method described in the item.
PCT/CN2022/086674 2021-06-04 2022-04-13 Positioning method and system, electronic device, and computer readable storage medium WO2022252837A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110626183.8A CN115442747A (en) 2021-06-04 2021-06-04 Positioning method, system, electronic device and computer readable storage medium
CN202110626183.8 2021-06-04

Publications (1)

Publication Number Publication Date
WO2022252837A1 true WO2022252837A1 (en) 2022-12-08

Family

ID=84271420

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/086674 WO2022252837A1 (en) 2021-06-04 2022-04-13 Positioning method and system, electronic device, and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN115442747A (en)
WO (1) WO2022252837A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205356694U (en) * 2016-01-29 2016-06-29 西安科技大学 Wireless tracker based on basic station location
CN108810813A (en) * 2017-05-02 2018-11-13 中国移动通信有限公司研究院 Method, location server and the system that cargo is monitored in logistics progress
CN112135260A (en) * 2020-08-26 2020-12-25 宇龙计算机通信科技(深圳)有限公司 Control method of main control unit, reporting method of position information and tracker
WO2021012792A1 (en) * 2019-07-23 2021-01-28 西安中兴新软件有限责任公司 Device positioning method, terminal, server, and storage medium
CN112637763A (en) * 2020-12-15 2021-04-09 深圳市有方科技股份有限公司 Wireless tracker and tracking method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205356694U (en) * 2016-01-29 2016-06-29 西安科技大学 Wireless tracker based on basic station location
CN108810813A (en) * 2017-05-02 2018-11-13 中国移动通信有限公司研究院 Method, location server and the system that cargo is monitored in logistics progress
WO2021012792A1 (en) * 2019-07-23 2021-01-28 西安中兴新软件有限责任公司 Device positioning method, terminal, server, and storage medium
CN112135260A (en) * 2020-08-26 2020-12-25 宇龙计算机通信科技(深圳)有限公司 Control method of main control unit, reporting method of position information and tracker
CN112637763A (en) * 2020-12-15 2021-04-09 深圳市有方科技股份有限公司 Wireless tracker and tracking method

Also Published As

Publication number Publication date
CN115442747A (en) 2022-12-06

Similar Documents

Publication Publication Date Title
US11039333B2 (en) Mobile WLAN gateway
WO2020228831A1 (en) Network connection control method, terminal, and storage medium
KR100678522B1 (en) Multi-mode communication system and method thereof
JP5748772B2 (en) Method and apparatus for automatic connection of short-range wireless network with portable terminal
US8874167B2 (en) Method and system for multi-standby operation for a multi-SIM multi-standby communication device
CN105165070B (en) System, program and the method for wireless terminal discovery access point
US20110195743A1 (en) Method and apparatus for power management
CN104584641A (en) Wireless local area network discovery using non-WLAN timing reference
JP2017503447A (en) Method and apparatus for neighbor area network detection
JP2016536950A (en) Signal transmission control method, apparatus, electronic device, program, and recording medium
CN109151959B (en) Wireless communication method and wireless communication device
US20160100369A1 (en) Delegating wifi network discovery and traffic monitoring
EP3560245B1 (en) Method and device for connecting to access point in wireless network
US9526065B2 (en) Device and method for WiFi scan optimization
EP2993928B1 (en) Device selection to establish a wireless communication
KR102056119B1 (en) Assistant method and system for retrieving wireless signals for mobile devices
US20030195966A1 (en) Wireless communication control apparatus
CN103369562B (en) A kind of cell measurement system and method based on multi-standby mobile terminal
WO2022252837A1 (en) Positioning method and system, electronic device, and computer readable storage medium
CN104637147A (en) Method and device for searching network by triggering wireless communication module of fingerprint door lock
US20100246464A1 (en) Power conservation through bi-directional association of multiple devices
CN109640364A (en) A kind of local microcellulor signal coverage base station method for switching network, device and equipment
WO2024104150A1 (en) Positioning method and apparatus, and communication device
WO2023198068A1 (en) Mobility management method and apparatus, terminal, network side device and medium
WO2023109686A1 (en) Parameter configuration method and apparatus, and communication device, storage medium and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22814884

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE