WO2022057454A1 - Distance difference determination method, data frame transmission method, and related product - Google Patents

Distance difference determination method, data frame transmission method, and related product Download PDF

Info

Publication number
WO2022057454A1
WO2022057454A1 PCT/CN2021/108998 CN2021108998W WO2022057454A1 WO 2022057454 A1 WO2022057454 A1 WO 2022057454A1 CN 2021108998 W CN2021108998 W CN 2021108998W WO 2022057454 A1 WO2022057454 A1 WO 2022057454A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
data frame
distance
anchor point
indication field
Prior art date
Application number
PCT/CN2021/108998
Other languages
French (fr)
Chinese (zh)
Inventor
肖伟
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022057454A1 publication Critical patent/WO2022057454A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S5/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/02Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using radio waves
    • G01S5/14Determining absolute distances from a plurality of spaced points of known location
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • H04W64/006Locating users or terminals or network equipment for network management purposes, e.g. mobility management with additional information processing, e.g. for direction or speed determination
    • 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/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/33Services specially adapted for particular environments, situations or purposes for indoor environments, e.g. buildings
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the field of positioning technology, and in particular, to a distance difference determination method, a data frame transmission method and related products.
  • Ultra Wide Band is a technology that uses ultra-wide baseband pulses with extremely wide spectrum for communication. Because UWB has the advantages of low power consumption, accurate positioning, and high security in applications, UWB technology has been widely used in recent years. has developed rapidly. At present, UWB technology has been widely used in products such as labels.
  • the embodiments of the present application provide a distance difference determination method, a data frame transmission method, and related products, which are beneficial to increase the capacity of a label device in a positioning system and reduce the power consumption of the label device.
  • an embodiment of the present application provides a method for determining a distance difference, including:
  • the time t1 is the time when the data frame A1 from the anchor point A is detected
  • the time t2 is the time when the data frame B from the anchor point B is detected
  • the The time t3 is the time when the data frame A2 from the anchor point A is detected
  • the data frame B is the data frame broadcast by the anchor point B after listening to the data frame A1 and the delay time Td1
  • the data frame A2 carries the time t4 when the anchor point A sends the data frame A1, the time t5 when the anchor point A hears the data frame B, and the anchor point A sends the data frame A2 time t6;
  • the distance difference between the first distance and the second distance is determined according to the distance D AB between the anchor point A and the anchor point B, the time t2, the time t1, and the time length Td1, so
  • the first distance is the distance D TA between the end device and the anchor point A
  • the second distance is the distance D TB between the end device and the anchor point B.
  • an embodiment of the present application provides a data frame transmission method, including:
  • the data frame A2 includes a first indication field, a second indication field, and a third indication field
  • the first indication field is used to indicate the time t4 when the anchor point A sends the data frame A1
  • the The second indication field is used to indicate the time t5 when the anchor point A hears the data frame B
  • the third indication field is used to indicate the time t6 when the anchor point A sends the data frame A2
  • the data frame B is the data frame broadcast by the anchor point B after listening to the data frame A1 and the delay time Td1.
  • an embodiment of the present application provides a data frame transmission method, including:
  • the data frame A2 includes a first indication field, a second indication field, and a third indication field
  • the first indication field is used to indicate the time t4 when the anchor point A sends the data frame A1
  • the The second indication field is used to indicate the time t5 when the anchor point A hears the data frame B
  • the third indication field is used to indicate the time t6 when the anchor point A sends the data frame A2
  • the data frame B is the data frame broadcast by the anchor point B after listening to the data frame A1 and the delay time Td1.
  • an embodiment of the present application provides a device for determining a distance difference, including:
  • the first determining unit is used to determine time t1, time t2 and time t3, where the time t1 is the time when the data frame A1 from the anchor point A is detected, and the time t2 is the time when the data frame A1 from the anchor point B is detected
  • the time of frame B, the time t3 is the time when the data frame A2 from the anchor point A is detected, and the data frame B is the time when the anchor point B listens to the data frame A1 and the delay time
  • the data frame broadcast after Td1, the data frame A2 carries the time t4 when the anchor point A sends the data frame A1, the time t5 when the anchor point A hears the data frame B, and the anchor point A sends the time t6 of the data frame A2;
  • a second determining unit configured to determine the duration Td1 according to the time t1, the time t3, the time t4, the time t5, and the time t6;
  • a third determining unit configured to determine the distance between the first distance and the second distance according to the distance D AB between the anchor point A and the anchor point B, the time t2, the time t1, and the time duration Td1
  • the first distance is the distance D TA between the end device and the anchor point A
  • the second distance is the distance D TB between the end device and the anchor point B.
  • an embodiment of the present application provides a data frame transmission device, including:
  • a receiving unit configured to receive a data frame A2, wherein the data frame A2 includes a first indication field, a second indication field, and a third indication field, and the first indication field is used to instruct the anchor point A to send the data frame A1 Time t4, the second indication field is used to indicate the time t5 when the anchor point A hears the data frame B, and the third indication field is used to indicate the time t6 when the anchor point A sends the data frame A2 , the data frame B is a data frame broadcast by the anchor point B after listening to the data frame A1 and the delay time Td1.
  • an embodiment of the present application provides a data frame transmission device, including:
  • a sending unit configured to send a data frame A2, wherein the data frame A2 includes a first indication field, a second indication field, and a third indication field, and the first indication field is used to instruct the anchor point A to send the data frame A1 Time t4, the second indication field is used to indicate the time t5 when the anchor point A hears the data frame B, and the third indication field is used to indicate the time t6 when the anchor point A sends the data frame A2 , the data frame B is a data frame broadcast by the anchor point B after listening to the data frame A1 and the delay time Td1.
  • an embodiment of the present application provides a tag device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory, and are configured to be processed by the above
  • the above program includes instructions for executing steps in any method of the first aspect of the embodiments of the present application.
  • an embodiment of the present application provides a tag device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory, and are configured to be processed by the above
  • the above program includes instructions for executing steps in any method in the second aspect of the embodiments of the present application.
  • an embodiment of the present application provides an anchor device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory, and are configured by the above Executed by the processor, the above program includes instructions for executing steps in any method in the third aspect of the embodiments of the present application.
  • an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute the first embodiment of the present application.
  • the tag device first determines time t1, time t2 and time t3, the time t1 is the time when the data frame A1 from the anchor point A is detected, and the time t2 is the time when the data frame A1 from the anchor point B is detected.
  • the time of frame B, the time t3 is the time when the data frame A2 from the anchor point A is detected, and the data frame B is the data broadcast by the anchor point B after listening to the data frame A1 and the delay time Td1 frame
  • the data frame A2 carries the time t4 when the anchor point A sends the data frame A1, the time t5 when the anchor point A senses the data frame B, and the time t6 when the anchor point A sends the data frame A2, and then Determine the duration Td1 according to the time t1, the time t3, the time t4, the time t5, and the time t6, and finally according to the distance D AB between the anchor point A and the anchor point B, the time t2, and the time t1 , the duration Td1 determines the distance difference between the first distance and the second distance, the first distance is the distance D TA between the end device and the anchor point A, and the second distance is the end device and the anchor Distance D TB between points B. It can be seen that when determining the
  • FIG. 1A is an architecture diagram of a typical positioning service system using a TDOA algorithm provided by an embodiment of the present application
  • FIG. 1B is a schematic diagram of the architecture of a positioning service system provided by an embodiment of the present application.
  • FIG. 1C is an exemplary diagram of the composition of an electronic device provided by an embodiment of the present application.
  • 1D is a schematic diagram of an interrupt hardware architecture provided by an embodiment of the present application.
  • 2A is a schematic flowchart of a method for determining a distance difference provided by an embodiment of the present application
  • 2B is a schematic diagram of a data frame interaction time between devices according to an embodiment of the present application.
  • Fig. 2C is a schematic diagram of data frame interaction time between devices under the condition of ignoring the data frame propagation duration provided by the embodiment of the present application;
  • 2D is a schematic diagram of another data frame interaction time between devices provided by an embodiment of the present application.
  • 2E is an equivalent schematic diagram of a distance difference between devices in a coordinate system provided in an embodiment of the present application.
  • 3A is a schematic flowchart of a data frame transmission method provided by an embodiment of the present application.
  • 3B is a format of a data frame provided by an embodiment of the present application.
  • Fig. 3C is the format of another data frame provided by the embodiment of the present application.
  • FIG. 4 is a schematic flowchart of another data frame transmission method provided by an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of another method for determining a distance difference provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of the composition and structure of a distance difference determination device provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of the composition and structure of a data frame transmission device provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of another distance difference determination device provided by an embodiment of the present application.
  • a commonly used algorithm for indoor positioning or ranging algorithms includes the time difference of arrival TDOA algorithm.
  • the TDOA algorithm calculates the location of the tag by detecting the time difference of arrival of the signal to multiple strictly time-synchronized base stations.
  • FIG. 1A is an architecture diagram of a typical location service system using the TDOA algorithm. As shown in the figure,
  • a typical system using the Time Difference of Arrival (TDOA) algorithm consists of four parts: tag, anchor point, gateway and terminal processor. Its role and the implementation of the positioning scheme are as follows: the coordinates of each initial anchor point (four) are pre-determined, and then The coordinates of the added anchor point can be obtained by calculation; the anchor point and the anchor point are connected by wire, so that accurate clock synchronization can be performed to reduce the ranging error and improve the positioning accuracy; the tag periodically sends broadcast data, Four different anchors receive the same broadcast data. Due to different distances, the anchors will receive the data at different times. The anchors will time the data at the moment of receiving the data.
  • TDOA Time Difference of Arrival
  • the anchor points send their respective timestamps to the gateway by wire, and the gateway sends the data to the positioning engine on the terminal processor.
  • the terminal processor calculates the (x, y, z) spatial coordinates of the tag device, and The positioning results are presented on the terminal processor.
  • the embodiments of the present application provide a method for determining a distance difference, a method for transmitting a data frame, and related products.
  • the embodiments of the present application are described below with reference to the accompanying drawings.
  • FIG. 1B is a schematic structural diagram of a positioning service system provided by an embodiment of the present application.
  • the positioning service system 10 may include: a plurality of anchor point devices (anchor point A, anchor point B and anchor point C shown in FIG. 1B ) and at least one label device 100 , and the anchor point device is
  • the tag device 100 is a client device supporting UWB technology, such as but not limited to wireless communication devices, portal transponder devices, household devices, tethered tags, and the like.
  • Other UWB devices (which are not shown in Figure IB for simplicity) may include other computing devices, including but not limited to laptops, desktops, tablets, personal assistants, routers, monitors, televisions, printers and electrical appliances.
  • each anchor device and tag device can implement the corresponding data frame transmission method provided in the embodiment of the present application, and the tag device can implement the distance difference calculation method provided in the embodiment of the present application, for example, according to the anchor point A and the anchor point
  • the time difference between point B and the signal transmission with the label device 100 calculate the distance difference ⁇ L1 between the distance L1 from the label device 100 to the anchor point A and the distance L2 from the label device 100 to the anchor point B.
  • the label device is calculated. 100 to the distance between the anchor point C and the distance difference between L3 and L1 ⁇ L2, and further according to ⁇ L1, ⁇ L2 and the distance between the anchor point A and the anchor point B, the distance between the anchor point A and the anchor point C determine the label device coordinate of.
  • the label device itself is a terminal device such as a mobile phone and a tablet computer with a UWB chip, after determining its own coordinates through the above distance difference calculation method, it can be directly displayed on the graphical interface of the mobile phone in real time to realize the positioning function of its own position.
  • the system 10 may further include: a terminal device 200, the tag device can transmit data to the terminal device through UWB or Bluetooth, etc., through the graphical interface of the terminal device.
  • the IoT label device displays coordinates and realizes the positioning function of the IoT label device.
  • FIG. 1C is a diagram illustrating an example composition of an electronic device 300 provided by an embodiment of the present application.
  • the electronic device 300 can be any anchor device or tag device 100 in FIG. 1B .
  • the electronic device 300 can include a core processing unit 301, a UWB transceiver 302, a communication unit 303, a general interface unit 304, and a power supply unit 305.
  • the communication unit 303 may specifically include, but is not limited to, one or more of Bluetooth, Wi-Fi, and cellular communication modules, and the general interface unit 304 is used to access various sensors, including but not limited to indicator lights, vibration sensors, and other sensors, power
  • the supply unit 305 may include, but is not limited to, a battery, a direct current to direct current DC-DC module, a filter circuit, an undervoltage detection circuit, and the like.
  • the core processing unit 301 may include a processor and a memory, and the processor may include one or more processing cores.
  • the processor uses various interfaces and lines to connect various parts of the entire electronic device 300, and executes the electronic device 300 by running or executing instructions, programs, code sets or instruction sets stored in the memory, and calling data stored in the memory. various functions and processing data.
  • the processor may include one or more processing units, for example, the processor may include a central processing unit (Central Processing Unit, CPU), an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit) unit, GPU), image signal processor (image signal processor, ISP), controller, microcontroller unit (Microcontroller Unit, MCU), video codec, digital signal processor (digital signal processor, DSP), baseband processor , and/or a neural-network processing unit (NPU), etc.
  • the controller may be the nerve center and command center of the electronic device 300 .
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • the program stored in the memory is used to execute the steps in any of the distance difference determination methods described in the embodiments of the present application, or to execute the steps in any of the data frame transmission methods described in the embodiments of the present application.
  • the memory may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory).
  • RAM Random Access Memory
  • Read-Only Memory the memory includes a non-transitory computer-readable storage medium.
  • Memory may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), Instructions for implementing the following method embodiments, etc., the operating system can be an Android (Android) system (including a system based on the deep development of the Android system), an IOS system developed by Apple (including a system based on the deep development of the IOS system) or other systems.
  • the storage data area may also store data created by the electronic device 300 during use (such as calibrated location data) and the like.
  • FIG. 1D is a schematic diagram of an interrupt hardware architecture provided by an embodiment of the present application.
  • the core processing unit may include a micro Control unit MCU
  • UWB transceiver can include UWB chip and power amplifier (power amplifier, PA)
  • data transmission between MCU and UWB chip can be completed through serial peripheral interface (Serial Peripheral Interface, SPI)
  • SPI Serial Peripheral Interface
  • MCU can pass the general The input and output interface (General-purpose input/output, GPIO) configures the UWB chip.
  • the UWB chip is used to generate the UWB pulse signal used in positioning, and notify the MCU of various state changes during its own operation through interrupts.
  • the MCU completes the entire communication process. State transitions and logical interactions.
  • the electronic device is a terminal device, taking a mobile phone as an example, the core processing unit may include an AP, and the interaction between the mobile phone AP and the UWB is consistent with the above-mentioned interaction between the MCU and the UWB (the hardware framework is the same as that in Figure 1D, only the micro-control unit needs to be MCU is replaced with application processor AP).
  • FIG. 2A is a schematic flowchart of a method for determining a distance difference provided by an embodiment of the present application. As shown in the figure, the method for determining the distance difference includes the following steps.
  • 2B is a schematic diagram of a data frame interaction time between devices provided by an embodiment of the present application, and Td in the figure represents the delay time Td1.
  • the tag device determines time t1, time t2 and time t3.
  • the time t1 is the time when the data frame A1 from the anchor point A is detected
  • the time t2 is the time when the data frame B from the anchor point B is detected
  • the time t3 is the time when the data frame B from the anchor point B is detected.
  • the time of the data frame A2 of the anchor point A, the data frame B is the data frame broadcast by the anchor point B after listening to the data frame A1 and the delay time Td1, and the data frame A2 carries some
  • the time t5 when the anchor point A senses the data frame B
  • the time t6 when the anchor point A sends the data frame A2.
  • the labeling device may be the labeling device shown in FIG. 1B , and its specific structure may be as shown in FIG. 1C and FIG. 1D .
  • the tag device determines the duration Td1 according to the time t1, the time t3, the time t4, the time t5, and the time t6.
  • time t1 and time t3 are the time when the tag device itself senses the data frame from anchor point A
  • time t5 and time t6 are the information carried in the data frame from anchor point A sensed, that is That is to say, when the tag device determines the distance difference, it does not need to send data frames to other devices, but only needs to receive data frames from the anchor device. On the one hand, it reduces the power consumption of the tag device itself, on the other hand, Since the tag device does not need to send data frames, even if there are multiple tag devices in the system at the same time, there is no need to finely assign time slots to each tag device to avoid time slot conflicts, which increases the capacity of the tag devices in the system and makes the tag devices in the system. of unlimited capacity.
  • the tag device determines the distance between the first distance and the second distance according to the distance D AB between the anchor point A and the anchor point B, the time t2, the time t1, and the time length Td1 The distance is poor.
  • the first distance is the distance D TA between the end device and the anchor point A
  • the second distance is the distance D TB between the end device and the anchor point B.
  • the tag device first determines time t1, time t2 and time t3, the time t1 is the time when the data frame A1 from the anchor point A is detected, and the time t2 is the time when the data frame A1 from the anchor point B is detected.
  • the time of frame B is the time when the data frame A2 from the anchor point A is detected, and the data frame B is the data broadcast by the anchor point B after listening to the data frame A1 and the delay time Td1 frame
  • the data frame A2 carries the time t4 when the anchor point A sends the data frame A1, the time t5 when the anchor point A senses the data frame B and the time t6 when the anchor point A sends the data frame A2, and then Determine the duration Td1 according to the time t1, the time t3, the time t4, the time t5, and the time t6, and finally according to the distance D AB between the anchor point A and the anchor point B, the time t2, and the time t1 , the duration Td1 determines the distance difference between the first distance and the second distance, the first distance is the distance D TA between the end device and the anchor point A, and the second distance is the end device and the anchor Distance D TB between points B. It can be seen that when determining the distance difference,
  • the time difference between the time t1 and the time t3 is the time difference ⁇ t1
  • the time difference between the time t6 and the time t4 is the time difference ⁇ t2
  • the time difference between the time t5 and the time t4 The time difference is the time difference ⁇ t3
  • the ratio of the time difference ⁇ t1 to the time difference ⁇ t2 is the first ratio
  • the ratio of the duration Td1 to the time difference ⁇ t3 is the second ratio
  • the first ratio and the second ratio are the same.
  • the time actually indicated by t6 and time t4 corresponds to the time actually indicated by time t1 and time t3 when the tag device senses data frames A and A2 respectively, that is, the actual time indicated by time t1 and time t4 is the same time, time t3 and The time t6 actually indicates the same time; then the corresponding time difference ⁇ t1 based on the clock of the tag device, and the time difference ⁇ t2 based on the clock of the anchor A device, the actually indicated time interval is also the same; for the same reason, the clock based on anchor A is the same.
  • the time difference ⁇ t3 is the same as the time interval actually indicated based on the duration Td1 of anchor point B.
  • the slope of the connection between the time point when each data frame is sent and the time point when it is received due to the data propagation duration in Figure 2B can be ignored, and the time relationship of data interaction between devices can be as follows As shown in FIG. 2C , the ratio of the time difference ⁇ t1 to the time difference ⁇ t2 ie the first ratio and the ratio of the duration Td1 to the time difference ⁇ t3 ie the second ratio can be considered to be the same.
  • the time difference between time t1 and time t3 is time difference ⁇ t1
  • the time difference between time t6 and time t4 is time difference ⁇ t2
  • the time difference between time t5 and time t4 is time difference ⁇ t3
  • the ratio of time difference ⁇ t1 to time difference ⁇ t2 is the first ratio
  • the ratio of the duration Td1 to the time difference ⁇ t3 is the second ratio; under the condition of ignoring the influence of the flight duration of the data frame, the first ratio and the second ratio are the same.
  • the duration Td1 is calculated by the following formula:
  • the tag device calculates the system delay Td1 between when the anchor point B receives the data frame A1 from the anchor point A and sends the data frame B by itself, it cannot directly use the delay calculated according to the anchor point B's own clock.
  • the duration Td1 is calculated by the following formula: Since ⁇ t1, ⁇ t2, ⁇ t3 and Td1 are calculated by different devices based on their own clocks, the errors caused by the clock errors between different devices for determining the distance difference can be eliminated, and precise clock synchronization between devices is not required. , that is, there is no need for wired connection between devices, which is beneficial to saving costs.
  • T d represents the time interval between the anchor point B receiving the data frame A1 and sending the data frame B by itself. is t0, the time when the tag device receives the data frame A1 from anchor A
  • C is the propagation speed of light in space
  • the ratio of the distance between the two devices to the speed of light can represent the propagation time of the data frame between the two devices.
  • the label device calculates the distance difference through a formula, which is beneficial to ensure the accuracy of the distance difference determination.
  • the distance D AB uses the time t4, the time t5, and the time t7 when the anchor point B senses the data frame A1 according to the one-sided two-way ranging SS-TWR algorithm. , calculated by the time t8 at which the anchor point B broadcasts the data frame B.
  • FIG. 2D is a schematic diagram of another data frame interaction time between devices provided by an embodiment of the present application.
  • the figure shows two devices (anchor point A and anchor point B) , the anchor point A sends the data frame A1 to the anchor point B at time t4.
  • the anchor point device B listens to the data frame A1 at time t7. Due to the clocks of anchor point A and anchor point B It is independent. If the clocks between the two devices are not synchronized, it is obviously infeasible to directly pass t7-t4 as the time of data frame propagation, that is, ⁇ t5.
  • the anchor point A sends the data frame A1 at time t4. After a period of propagation, the anchor point device B hears the data frame A1 at time t7. After ⁇ t4, the anchor point B at time t8 Data frame B is sent, and after a period of propagation, anchor A receives the data frame B at time t5. Since the location of the anchor point in the positioning service system is fixed, that is, the distance between the anchor point A and the anchor point B remains unchanged during the two data frame transmissions, it can be considered that the two data frame propagation times are consistent, both at ⁇ t5. At this time, the propagation time of two data frames can be obtained by ⁇ t3- ⁇ t4, that is, Subsequently, the distance between anchor point A and anchor point B can be calculated according to the speed of data frame propagation and the time ⁇ t5.
  • the distance is D AB according to the single-sided two-way ranging SS-TWR algorithm, using time t4, time t5, time t7 when anchor point B senses data frame A1, and anchor point B broadcasts data frame B
  • time t8 calculated from the time t8
  • the data frame A2 also carries the distance D AB .
  • anchor point A can determine anchor point A and anchor point according to the interaction of data frame A1 and data frame A2 between itself and anchor point B, for example, using the aforementioned SS-TWR algorithm and according to the time of data frame propagation Distance D AB between B. And the calculated D AB is carried in the data frame A2 sent subsequently.
  • the tag device receives the data frame A2, it can obtain the distance D AB , and the tag device can directly use the data when determining the distance difference subsequently.
  • the data frame A2 also carries the distance D AB , and the tag device can directly calculate the subsequent distance difference according to the distance D AB , which is beneficial to improve the efficiency of the tag device in determining the distance difference.
  • the distance D AB is calculated by the local device.
  • the anchor point A can carry the relevant time data for determining the distance D AB in the data frame A2, and the tag device itself can calculate the distance D AB , for example According to the time t4, the time t5, the time t7 when the anchor point B senses the data frame A1, and the time t8 when the anchor point B broadcasts the data frame B, the distance D AB is calculated based on the SS-TWR algorithm.
  • the distance D AB is calculated by the local device, that is, when the tag device cannot directly obtain the distance D AB , the distance D AB can be obtained by calculating the distance D AB at the local end, which is beneficial to ensure that the local end can follow the distance D AB based on the distance D AB . Perform distance difference determination.
  • the determining the time t1, the time t2 and the time t3 includes: when the data frame A1 from the anchor point A is detected, recording the current time t1; when the data frame A1 from the anchor point A is detected; When the data frame B of point B is recorded, the current time t2 is recorded; when the data frame A2 from the anchor point A is detected, the current time t3 is recorded.
  • the label device when the label device receives each data frame, the label device will process it by itself, record the corresponding time stamps respectively, and then read them directly when needed.
  • the tag device records the current time t1 when it detects the data frame A1 from the anchor point A; records the current time t2 when it detects the data frame B from the anchor point B;
  • the current time t3 is recorded, and each time the tag device receives the data frame, the time is recorded, and it can be directly read at the subsequent required time, which is beneficial to improve the efficiency of distance difference determination.
  • the method further includes: when listening to the data frame C from the anchor point C, recording the current time t9, the data frame C is the data frame C that the anchor point C heard when listening The data frame A1 and the data frame broadcast after the delay time Td2; when listening to the data frame A3 from the anchor point A, record the current time t10, and the data frame A3 carries the data sent by the anchor point A.
  • the distance D AC between C; the duration Td2 is determined according to the time t1, the time t10, the time t4, the time t11, and the time t12; according to the distance D AC , the time t9 , the time t1 and the duration Td2 determine the distance difference between the first distance and the third distance, where the third distance is the distance DTC between the end device and the anchor point C ; According to the distance difference between the first distance and the second distance, the distance difference between the first distance and the third distance, the distance D AB , the distance D AC , to determine the coordinates of the local device.
  • the tag device can determine the distance difference between D TA and D TB based on the data frame interaction between anchor point A, anchor point B, and tag device. In the frame interaction, the distance difference between the D TA and the D TC is determined. The anchor point C and the anchor point B have the same roles in the data frame interaction, which will not be repeated here. Then, the coordinates of the local label device can be determined according to the distance difference between D TA and D TB , the distance difference between D TA and D TC , the distance D AB , and the distance D AC .
  • FIG. 2E is an equivalent schematic diagram of the distance difference between devices in a coordinate system provided in the embodiment of the present application. As shown in the figure, points A, B, and T in the coordinate system represent anchor point A, respectively.
  • the distance difference can be equivalent to a hyperbola
  • point T is a point on the hyperbola
  • point A and point B is the focus of the hyperbola
  • the formula corresponding to the hyperbola is Among them, according to the properties of the hyperbola, 2a is equal to the absolute value of the distance difference between D TA and D TB , and 2b is equal to D AB , since the absolute value of the distance difference between any point on the hyperbola and point A and point B is equal to the point The absolute value of the distance difference between T and point A and point B.
  • the point T can be determined according to the two hyperbolas.
  • point C used to characterize the position of anchor point C is determined in this coordinate system, and another hyperbola of the distance difference between the equivalent D TA and D TC can be obtained, and the point T is the hyperbola on the hyperbola.
  • 2a of the hyperbola is equal to the absolute value of the distance difference between D TA and D TC
  • 2b is equal to D AC .
  • the coordinates of the label device can be determined based on the above two hyperbolas.
  • the tag device can send its own coordinate data to a terminal device such as a mobile phone, and display the location of the tag device through the mobile phone.
  • the IoT tag device can be equipped with wireless transmission modules such as UWB, Bluetooth, WIFI, etc.
  • the tag device sends the time information of its coordinates or the calculated distance difference data to the mobile terminal, and the mobile terminal passes the running positioning engine (Local). Engine), determine the position of the label device and display it in the mobile phone interface.
  • the tag device itself is a terminal device such as a mobile phone
  • the data can be directly returned to the application in the mobile phone through the SPI interface, and the coordinates are calculated by the positioning engine running on the mobile phone and displayed on the mobile phone interface.
  • the tag device also determines the distance difference between the first distance and the third distance, where the third distance is the distance D TC between the end device and the anchor point C, and then according to the distance D TC between the end device and the anchor point C
  • the distance difference between the first distance and the second distance, the distance difference between the first distance and the third distance, the distance D AB , the distance D AC determine the coordinates of the local device, the label device It can calculate its own location according to various received data, without relying on other communication networks to obtain its own location information.
  • FIG. 3A is a schematic flowchart of a data frame transmission method provided by an embodiment of the present application. As shown in the figure, the data frame transmission method includes the following steps.
  • the tag device receives the data frame A2.
  • the data frame A2 includes a first indication field, a second indication field, and a third indication field.
  • the first indication field is used to indicate the time t4 when the anchor point A sends the data frame A1
  • the second indication field is used for
  • the third indication field is used to indicate the time t6 when the anchor point A sends the data frame A2
  • the data frame B is the anchor point.
  • Point B broadcasts the data frame after listening to the data frame A1 and the delay time Td1.
  • the labeling device may be the labeling device shown in FIG. 1B , and its specific structure may be as shown in FIG. 1C and FIG. 1D . Since each device needs to extract data when interacting with data frames, for example, the tag device needs to extract the time t4 from the data frame A1, etc., the data frame format can be defined to make the interaction between the devices relatively simple.
  • the definition of the data frame format can be determined based on the data that needs to be extracted for the interaction between devices. For example, three data frames during data interaction are defined as Poll frame (a kind of control frame), reply (Reply) frame and final (Final) frame, data frame A1 is Poll frame, data frame B is Reply frame, data frame A2 is Final frame, under 802.15.4z as the basic frame format, customize the data frame format shown in Figure 3B, as shown in the figure As shown, the anchor point A will fill in all the content according to the data frame format to obtain the data frame A2 at time t6, and send it to the tag device.
  • Poll frame a kind of control frame
  • reply Reply
  • Final frame final frame
  • data frame A1 is Poll frame
  • data frame B is Reply frame
  • data frame A2 is Final frame
  • the anchor point A will fill in all the content according to the data frame format to obtain the data frame A2 at time t6, and send it to the tag device.
  • the filled content is the time t4 when anchor A sends the poll frame, that is, the data frame A1
  • “res_rx_ts” is the second indication field
  • the filled content is that anchor A receives the Reply frame, that is, At the time t5 of the data frame B
  • "final_tx_ts” is the third indication field
  • the filled content is the time t6 when the anchor point A sends the Final frame, that is, the data frame A2.
  • the tag device receives the data frame A2, it can obtain the data it needs.
  • the data frame includes MAC header (MAC Header), frame check sequence FCS and MAC payload (MAC Paylod): type field (Type), length field (Length), identification (ID).
  • the tag device receives the data frame A2, where the data frame A2 includes a first indication field, a second indication field, and a third indication field, and the first indication field is used to indicate the time when the anchor point A sends the data frame A1 t4, the second indication field is used to indicate the time t5 when the anchor point A hears the data frame B, and the third indication field is used to indicate the time t6 when the anchor point A sends the data frame A2, the data frame B is The anchor point B broadcasts the data frame after listening to the data frame A1 and the delay time Td1. It can be seen that the format of the data frame is defined, and the data required by the tag device is filled into the corresponding area in the data frame. It is beneficial to improve the efficiency and flexibility of data transmission.
  • the method further includes: parsing the data frame A2 to obtain the time t4, the time t5, the time t6 and the distance D AB ;
  • the time t4, the time t5, and the time t6 determine the duration Td1, the time t1 is the time when the data frame A1 from the anchor point A is detected, and the time t3 is the time when the data frame A1 from the anchor point A is detected.
  • the time of the data frame A2 of point A; the distance between the first distance and the second distance is determined according to the distance D AB between the anchor point A and the anchor point B, the time t2, the time t1, and the time length Td1 the distance difference, the first distance is the distance D TA between the end device and the anchor point, the second distance is the distance D TB between the end device and the anchor point B, so The time t2 is the time t1 and the time t3 when the data frame B from the anchor point B is detected.
  • the tag device after receiving the data frame A2, parses the data frame A2, and can directly extract the corresponding data from different indication fields according to the content of the frame format, and then can read the data previously recorded by the local device.
  • the tag device after receiving the data frame A2, the tag device will parse the data frame A2 to obtain time t4, time t5, time t6 and distance D AB ; according to time t1, time t3, time t4, time t5, time t6 Determine the duration Td1, the time t1 is the time when the data frame A1 from the anchor point A is detected, and the time t3 is the time when the data frame A2 from the anchor point A is detected; according to the distance between the anchor point A and the anchor point B D AB , time t2, time t1, and duration Td1 determine the distance difference between the first distance and the second distance. Since different indication fields in the data frame A2 correspond to different data required by the label device, the label device parses the data frame A2 , the corresponding data can be obtained directly, which is beneficial to improve the efficiency and flexibility of data transmission.
  • the distance D AB uses the time t4, the time t5, and the anchor point B to sense the distance of the data frame A1 according to the single-sided two-way ranging SS-TWR algorithm.
  • the time t7 is calculated from the time t8 when the anchor point B broadcasts the data frame B.
  • the SS-TWR algorithm is used to calculate the distance between the anchor point A and the anchor point B, through which time the anchor point A sends the data frame A1 and receives the data frame B, and the anchor point B receives the data frame A1 and B.
  • the time of sending data frame B determines the duration of two data frame transmissions, and then determines the distance D AB between the two devices according to the duration of data transmission between the two devices.
  • the process does not require precise synchronization of the clocks of different devices, so there is no need to Synchronize the clocks of each anchor device.
  • the distance is the time when DAB uses time t4, time t5, time t7 when anchor point B senses data frame A1, and time when anchor point B broadcasts data frame B according to the one-sided two-way ranging SS-TWR algorithm.
  • t8 there is no need to perform precise clock synchronization between devices, which is beneficial to saving costs.
  • the data frame A2 further includes a fourth indication field, where the fourth indication field is used to indicate the distance D AB between the anchor point A and the anchor point B.
  • FIG. 3C is another data frame format provided by an embodiment of the present application.
  • the data frame further includes a fourth indication field (distance field), and the anchor point A is in the At time t6, the distance D AB will also be filled into the fourth indication field in the data frame, that is, the Distance part.
  • the tag device receives the data frame A2
  • the data frame A2 can be analyzed to obtain the distance D AB , and the tag device can directly use the data when determining the distance difference subsequently.
  • the data frame A2 further includes a fourth indication field for indicating the distance D AB between the anchor point A and the anchor point B, which is beneficial to improve the efficiency of the tag device in determining the distance difference.
  • the distance D AB is calculated by the local device.
  • the tag device itself can also calculate the distance D AB according to the relevant time data in the detected data frame.
  • the distance D AB is calculated based on the SS-TWR algorithm.
  • the distance D AB is calculated by the local device, that is, when the tag device cannot directly obtain the distance D AB , the distance D AB can be obtained by calculating the distance D AB at the local end, which is beneficial to ensure that the local end can follow the distance D AB based on the distance D AB . Perform distance difference determination.
  • the method further includes: when listening to the data frame C from the anchor point C, recording the current time t9, the data frame C is the data frame C that the anchor point C heard when listening The data frame A1 and the data frame broadcast after the delay time Td2; when listening to the data frame A3 from the anchor point A, record the current time t10, and the data frame A3 carries the data sent by the anchor point A.
  • the distance D AC between C; the duration Td2 is determined according to the time t1, the time t10, the time t4, the time t11, and the time t12; according to the distance D AC , the time t9 , the time t1 and the duration Td2 determine the distance difference between the first distance and the third distance, where the third distance is the distance DTC between the end device and the anchor point C ; According to the distance difference between the first distance and the second distance, the distance difference between the first distance and the third distance, the distance D AB , the distance D AC , to determine the coordinates of the local device.
  • the tag device first determines the distance D TA from the tag device to the anchor point A and the distance D TB from the tag device to the anchor point B based on the time difference between the anchor point A, the anchor point B and its own data frame transmission, and then The distance difference between D TA and D TB can be determined.
  • the distance D TC from the tag device to the anchor point C can also be calculated, and the distance difference between D TA and D TC can be further determined.
  • the distance difference between D TA and D TB determines the coordinates of the local device.
  • the tag device also determines the distance difference between the first distance and the third distance, where the third distance is the distance D TC between the end device and the anchor point C, and then according to the distance D TC between the end device and the anchor point C
  • the distance difference between the first distance and the second distance, the distance difference between the first distance and the third distance, the distance D AB , the distance D AC determine the coordinates of the local device, the label device It can calculate its own location according to various received data, without relying on other communication networks to obtain its own location information.
  • FIG. 4 is a schematic flowchart of another data frame transmission method provided by an embodiment of the present application. As shown in the figure, the data frame transmission method includes the following steps.
  • the anchor device sends a data frame A2.
  • the data frame A2 includes a first indication field, a second indication field, and a third indication field.
  • the first indication field is used to indicate the time t4 when the anchor point A sends the data frame A1
  • the second indication field is used for
  • the third indication field is used to indicate the time t6 when the anchor point A sends the data frame A2
  • the data frame B is the anchor point.
  • Point B broadcasts the data frame after listening to the data frame A1 and the delay time Td1.
  • the anchor point device may be the anchor point A shown in FIG. 1B , and its specific structure may be as shown in FIG. 1C and FIG. 1D .
  • the different indication fields in the data frame A2 sent by the anchor device are filled with corresponding data.
  • the format of the data frame is self-defined, and the different indication fields in the data frame correspond to different data required by the label device, so that the label device can receive the data. After the frame, the required data can be directly obtained by parsing the data frame, which makes the interaction between the devices relatively simple.
  • the anchor point device sends a data frame A2
  • the data frame A2 includes a first indication field, a second indication field, and a third indication field
  • the first indication field is used to instruct the anchor point A to send the data frame A1 Time t4
  • the second indication field is used to indicate the time t5 when the anchor point A hears the data frame B
  • the third indication field is used to indicate the time t6 when the anchor point A sends the data frame A2
  • the data frame B It is the data frame broadcasted by the anchor point B after listening to the data frame A1 and the delay time Td1. It can be seen that the format of the data frame is defined, and the data required by the label device is filled into the corresponding area in the data frame. It is beneficial to improve the efficiency and flexibility of data transmission.
  • the data frame A2 is used for the tag device to perform the following operations: parsing the data frame A2 to obtain the time t4, the time t5, the time t6 and the distance D AB ;
  • the time t1, time t3, the time t4, the time t5, and the time t6 determine the duration Td1
  • the time t1 is the time when the data frame A1 from the anchor point A is detected
  • the time t3 is The time when the data frame A2 from the anchor point A is heard
  • the first time is determined according to the distance D AB between the anchor point A and the anchor point B, the time t2, the time t1, and the time length Td1
  • the distance difference between the distance and the second distance the first distance is the distance D TA between the end device and the anchor point A
  • the second distance is the end device and the anchor point B
  • the distance D TB between them, the time t2 is the time when the data frame B from the anchor point B is detected.
  • the data frame A2 sent by the anchor device is used for the label device to parse the data frame A2 after receiving it, so as to extract the required data according to the content of the frame format, and further combine the data recorded by the label device itself.
  • the data is used to determine the distance difference.
  • the data frame A2 is used for the label device to parse the data frame A2 after receiving the data frame A2 to obtain the corresponding data, and according to the time t1 and time t3 recorded by the label device before, and the data frame
  • the time t4, time t5, and time t6 obtained by analysis in A2 determine the duration Td1, and then further determine the distance difference according to D AB , time t2, the time t1, and the duration Td1, because the different indication fields in the data frame A2 are respectively
  • the label device parses the data frame A2 and can directly obtain the corresponding data, which is beneficial to improve the efficiency and flexibility of data transmission.
  • the distance D AB uses the time t4, the time t5, and the time t7 when the anchor point B senses the data frame A1 according to the one-sided two-way ranging SS-TWR algorithm. , calculated by the time t8 at which the anchor point B broadcasts the data frame B.
  • the SS-TWR algorithm is used to calculate the distance between the anchor point A and the anchor point B, through which time the anchor point A sends the data frame A1 and receives the data frame B, and the anchor point B receives the data frame A1 and the time.
  • the time of sending data frame B determines the duration of two data frame transmissions, and then determines the distance D AB between the two devices according to the duration of data transmission between the two devices.
  • the process does not require precise synchronization of the clocks of different devices, so there is no need to Synchronize the clocks of each anchor device.
  • the distance is the time when DAB uses time t4, time t5, time t7 when anchor point B senses data frame A1, and time when anchor point B broadcasts data frame B according to the one-sided two-way ranging SS-TWR algorithm.
  • t8 there is no need to perform precise clock synchronization between devices, which is beneficial to saving costs.
  • the data frame A2 further includes a fourth indication field, where the fourth indication field is used to indicate the distance D AB between the anchor point A and the anchor point B.
  • the anchor device can also fill the distance D AB into the fourth indication field in the data frame. Yes, after the tag device receives the data frame A2, after parsing the data frame A2, the distance D AB can also be obtained. , the tag device can directly use the data when determining the distance difference later.
  • the data frame A2 further includes a fourth indication field for indicating the distance D AB between the anchor point A and the anchor point B, which is beneficial to improve the efficiency of the tag device in determining the distance difference.
  • the distance D AB is calculated by the tag device.
  • the tag device itself can also calculate the distance D AB according to the relevant time data in the detected data frame.
  • the distance D AB is calculated based on the SS-TWR algorithm.
  • the distance D AB is calculated by the label device, that is, when the label device cannot directly obtain the distance D AB , the distance D AB can be calculated by the label device itself, which is beneficial to ensure that the local end can follow the distance D AB based on the distance D AB .
  • AB performs distance difference determination.
  • FIG. 5 is a schematic flowchart of another method for determining a distance difference provided by an embodiment of the present application. As shown in the figure, the method for determining the distance difference includes the following steps.
  • the anchor point A sends a data frame A1.
  • the time when the anchor point A sends the data frame A1 is time t4.
  • the anchor point B broadcasts the data frame B after listening to the data frame A1 and the delay time Td1.
  • the time when the anchor point A senses the data frame B is time t5.
  • the time when the anchor point A sends the data frame A2 is time t6.
  • the label device determines the duration Td1 according to the time t1, the time t3, the time t4, the time t5, and the time t6.
  • the tag device determines the distance difference between the first distance and the second distance according to the distance DAB between the anchor point A and the anchor point B, the time t2 , the time t1 , and the time length Td1 .
  • the anchor point A sends the data frame A1 first, the time when the anchor point A sends the data frame A1 is time t4, and then the anchor point B listens to the data frame A1 and broadcasts the data frame B after the delay time Td1.
  • the device detects the data frame A1, it records the current time t1.
  • the anchor point A detects the data frame B, and the time when the anchor point A detects the data frame B is time t5, and the tag device detects the data.
  • the data frame is B, the current time t2 is recorded, and the anchor point A sends the data frame A2 again.
  • the time when the anchor point A sends the data frame A2 is time t6.
  • the tag device When the tag device detects the data frame A2, the current time t3 is recorded, and further tags The device determines the duration Td1 according to time t1, time t3, time t4, time t5, and time t6, and finally determines the first distance and the second distance according to the distance DAB between anchor point A and anchor point B, time t2, time t1, and duration Td1.
  • the distance difference between the distances It can be seen that in the whole process of distance difference determination, anchor point A sends two data frames, anchor point B sends one data frame, and the tag device only needs to receive data frames, and does not need to send data frames by itself, which is conducive to improving the labeling system in the positioning system.
  • the capacity of the device reduces the power consumption of the label device.
  • FIG. 6 is a schematic structural diagram of a distance difference determination device 60 provided by the implementation of the present application. As shown in the figure, the distance difference determination device 60 includes:
  • the first determination unit 601 is used to determine time t1, time t2 and time t3, where the time t1 is the time when the data frame A1 from the anchor point A is detected, and the time t2 is the time when the data frame A1 from the anchor point B is detected.
  • the time of data frame B, the time t3 is the time when the data frame A2 from the anchor point A is detected, and the data frame B is the time when the anchor point B listens to the data frame A1, delays
  • the data frame broadcast after the duration Td1 the data frame A2 carries the time t4 when the anchor point A sends the data frame A1, the time t5 when the anchor point A hears the data frame B, and the anchor point A.
  • a second determining unit 602 configured to determine the duration Td1 according to the time t1, the time t3, the time t4, the time t5, and the time t6;
  • the third determining unit 603 is configured to determine the difference between the first distance and the second distance according to the distance D AB between the anchor point A and the anchor point B, the time t2, the time t1, and the time length Td1
  • the distance difference between, the first distance is the distance D TA between the end device and the anchor point A
  • the second distance is the distance D TB between the end device and the anchor point B .
  • the time difference between the time t1 and the time t3 is the time difference ⁇ t1
  • the time difference between the time t6 and the time t4 is the time difference ⁇ t2
  • the time difference between the time t5 and the time t4 The time difference is the time difference ⁇ t3
  • the ratio of the time difference ⁇ t1 to the time difference ⁇ t2 is the first ratio
  • the ratio of the duration Td1 to the time difference ⁇ t3 is the second ratio
  • the first ratio and the second ratio are the same.
  • the duration Td1 is calculated by the following formula:
  • the distance D AB uses the time t4, the time t5, and the time t7 when the anchor point B senses the data frame A1 according to the one-sided two-way ranging SS-TWR algorithm. , calculated by the time t8 at which the anchor point B broadcasts the data frame B.
  • the data frame A2 also carries the distance D AB .
  • the distance D AB is calculated by the local device.
  • the first determining unit 601 is specifically configured to: record the current time t1 when the data frame A1 from the anchor point A is detected; When the data frame is B, the current time t2 is recorded; when the data frame A2 from the anchor point A is detected, the current time t3 is recorded.
  • the apparatus 60 further includes: a fourth determining unit 604, configured to record the current time t9 when the data frame C from the anchor point C is detected, and the data frame C is the The anchor point C listens to the data frame A1 and the data frame broadcast after the delay time Td2; when listening to the data frame A3 from the anchor point A, the current time t10 is recorded, and the data frame A3 It carries the time t4 when the anchor point A sends the data frame A1, the time t11 when the anchor point A hears the data frame C, the time t12 when the anchor point A sends the data frame A3, and the time t12 when the anchor point A sends the data frame A3.
  • a fourth determining unit 604 configured to record the current time t9 when the data frame C from the anchor point C is detected, and the data frame C is the The anchor point C listens to the data frame A1 and the data frame broadcast after the delay time Td2; when listening to the data frame A3 from the anchor point A, the current time t10 is
  • the distance D AC between the anchor point A and the anchor point C determines the duration Td2 according to the time t1, the time t10, the time t4, the time t11, and the time t12;
  • the distance D AC , the time t9, the time t1, and the duration Td2 determine the distance difference between the first distance and the third distance, where the third distance is the end device and the anchor distance D TC between points C; according to the distance difference between the first distance and the second distance, the distance difference between the first distance and the third distance, the The distance D AB and the distance D AC determine the coordinates of the local device.
  • FIG. 7 is a schematic structural diagram of a data frame transmission apparatus provided by an embodiment of the present application.
  • the data frame transmission apparatus 70 includes: a receiving unit 701, configured to receive a data frame A2, wherein the data frame A2 includes a first indication field, a second indication field, and a third indication field, the first indication field An indication field is used to indicate the time t4 when the anchor point A sends the data frame A1, the second indication field is used to indicate the time t5 when the anchor point A hears the data frame B, and the third indication field is used to indicate The time t6 when the anchor point A sends the data frame A2, the data frame B is the data frame broadcast by the anchor point B after listening to the data frame A1 and the delay time Td1.
  • the apparatus further includes: a first determining unit 702, configured to parse the data frame A2 to obtain the time t4, the time t5, the time t6 and the distance D AB ;
  • the duration Td1 is determined according to the time t1, the time t3, the time t4, the time t5, and the time t6.
  • the time t1 is the time when the data frame A1 from the anchor point A is detected
  • the time t3 is the time when the data frame A2 from the anchor point A is detected
  • the time t2 determines the first The distance difference between a distance and a second distance
  • the first distance is the distance D TA between the end device and the anchor point
  • the second distance is the end device and the anchor point B
  • the time t2 is the time when the data frame B from the anchor point B is detected.
  • the distance D AB uses the time t4, the time t5, and the time t7 when the anchor point B senses the data frame A1 according to the one-sided two-way ranging SS-TWR algorithm. , calculated by the time t8 at which the anchor point B broadcasts the data frame B.
  • the data frame A2 further includes a fourth indication field, where the fourth indication field is used to indicate the distance D AB between the anchor point A and the anchor point B.
  • the distance D AB is calculated by the local device.
  • the apparatus 70 further includes: a second determining unit 703, configured to record the current time t9 when the data frame C from the anchor point C is detected, and the data frame C is the The anchor point C listens to the data frame A1 and the data frame broadcast after the delay time Td2; when listening to the data frame A3 from the anchor point A, the current time t10 is recorded, and the data frame A3 It carries the time t4 when the anchor point A sends the data frame A1, the time t11 when the anchor point A hears the data frame C, the time t12 when the anchor point A sends the data frame A3, and the time t12 when the anchor point A sends the data frame A3.
  • a second determining unit 703 configured to record the current time t9 when the data frame C from the anchor point C is detected, and the data frame C is the The anchor point C listens to the data frame A1 and the data frame broadcast after the delay time Td2; when listening to the data frame A3 from the anchor point A, the current time t10 is
  • the distance D AC between the anchor point A and the anchor point C determines the duration Td2 according to the time t1, the time t10, the time t4, the time t11, and the time t12;
  • the distance D AC , the time t9, the time t1, and the duration Td2 determine the distance difference between the first distance and the third distance, where the third distance is the end device and the anchor distance D TC between points C; according to the distance difference between the first distance and the second distance, the distance difference between the first distance and the third distance, the The distance D AB and the distance D AC determine the coordinates of the local device.
  • FIG. 8 is a schematic structural diagram of another data frame transmission apparatus provided by an embodiment of the present application.
  • the data frame transmission apparatus 80 includes: a sending unit 801, configured to send a data frame A2, wherein the data frame A2 includes a first indication field, a second indication field, and a third indication field, and the first indication field
  • An indication field is used to indicate the time t4 when the anchor point A sends the data frame A1
  • the second indication field is used to indicate the time t5 when the anchor point A hears the data frame B
  • the third indication field is used to indicate The time t6 when the anchor point A sends the data frame A2
  • the data frame B is the data frame broadcast by the anchor point B after listening to the data frame A1 and the delay time Td1.
  • the data frame A2 is used for the tag device to perform the following operations: parsing the data frame A2 to obtain the time t4, the time t5, the time t6 and the distance D AB ;
  • the time t1, time t3, the time t4, the time t5, and the time t6 determine the duration Td1
  • the time t1 is the time when the data frame A1 from the anchor point A is detected
  • the time t3 is The time when the data frame A2 from the anchor point A is heard
  • the first time is determined according to the distance D AB between the anchor point A and the anchor point B, the time t2, the time t1, and the time length Td1
  • the distance difference between the distance and the second distance the first distance is the distance D TA between the end device and the anchor point A
  • the second distance is the end device and the anchor point B
  • the distance D TB between them, the time t2 is the time when the data frame B from the anchor point B is detected.
  • the distance D AB uses the time t4, the time t5, and the time t7 when the anchor point B senses the data frame A1 according to the one-sided two-way ranging SS-TWR algorithm. , calculated by the time t8 at which the anchor point B broadcasts the data frame B.
  • the data frame A2 further includes a fourth indication field, where the fourth indication field is used to indicate the distance D AB between the anchor point A and the anchor point B.
  • the distance D AB is calculated by the tag device.
  • An embodiment of the present application further provides a chip, wherein the chip includes a processor, configured to call and run a computer program from a memory, so that a device installed with the chip executes the electronic device described in the above method embodiments. some or all of the steps.
  • Embodiments of the present application further provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes the computer to execute part or all of the steps of any method described in the above method embodiments , the above computer includes a mobile terminal.
  • Embodiments of the present application further provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute any one of the method embodiments described above. some or all of the steps of the method.
  • the computer program product may be a software installation package, and the above-mentioned computer includes a mobile terminal.
  • the disclosed apparatus may be implemented in other manners.
  • the device embodiments described above are only illustrative.
  • the division of the above-mentioned units is only a logical function division.
  • multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical or other forms.
  • the units described above as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the above-mentioned integrated units if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable memory.
  • the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art, or all or part of the technical solution, and the computer software product is stored in a memory.
  • a computer device which may be a personal computer, a server, or a network device, etc.
  • the aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed are a distance difference determination method, a data frame transmission method, and a related product. The distance difference determination method comprises: determining a time t1, a time t2 and a time t3, wherein the time t1 is the time at which a data frame A1 from an anchor point A is detected, the time t2 is the time at which a data frame B from an anchor point B is detected, the time t3 is the time at which a data frame A2 from the anchor point A is detected, the data frame B is a data frame broadcast by the anchor point B after the data frame A1 and a delay duration Td1 are detected, and the data frame A2 carries a time t4 at which the anchor point A sends the data frame A1, a time t5 at which the anchor point A detects the data frame B, and a time t6 at which the anchor point A sends the data frame A2; determining the duration Td1 according to the time t1, the time t3, the time t4, the time t5 and the time t6; and determining the distance difference between a first distance and a second distance according to the distance DAB between the anchor point A and the anchor point B, the time t2, the time t1 and the duration Td1. The present application facilitates improvement of the capacity of a labeling device in a positioning system, and a reduction in the power consumption of the labeling device.

Description

距离差确定方法、数据帧传输方法及相关产品Distance difference determination method, data frame transmission method and related products 技术领域technical field
本申请涉及定位技术领域,尤其涉及一种距离差确定方法、数据帧传输方法及相关产品。The present application relates to the field of positioning technology, and in particular, to a distance difference determination method, a data frame transmission method and related products.
背景技术Background technique
超宽带技术(Ultra Wide Band,UWB)是一种利用频谱极宽的超宽基带脉冲进行通信的技术,由于UWB在应用中具有功耗低、定位精确、安全性高等优点,所以UWB技术在近年来得到了迅速发展。目前UWB技术在标签等产品上得到了广泛使用。Ultra Wide Band (UWB) is a technology that uses ultra-wide baseband pulses with extremely wide spectrum for communication. Because UWB has the advantages of low power consumption, accurate positioning, and high security in applications, UWB technology has been widely used in recent years. has developed rapidly. At present, UWB technology has been widely used in products such as labels.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种距离差确定方法、数据帧传输方法及相关产品,有利于提高定位系统中标签设备的容量,减少标签设备功耗。The embodiments of the present application provide a distance difference determination method, a data frame transmission method, and related products, which are beneficial to increase the capacity of a label device in a positioning system and reduce the power consumption of the label device.
第一方面,本申请实施例提供一种距离差确定方法,包括:In a first aspect, an embodiment of the present application provides a method for determining a distance difference, including:
确定时间t1、时间t2和时间t3,所述时间t1为侦听到来自锚点A的数据帧A1的时间,所述时间t2为侦听到来自锚点B的数据帧B的时间,所述时间t3为侦听到来自所述锚点A的数据帧A2的时间,所述数据帧B是所述锚点B在侦听到所述数据帧A1、延时时长Td1后广播的数据帧,所述数据帧A2携带有所述锚点A发送所述数据帧A1的时间t4、所述锚点A侦听到所述数据帧B的时间t5以及所述锚点A发送所述数据帧A2的时间t6;Determine time t1, time t2 and time t3, the time t1 is the time when the data frame A1 from the anchor point A is detected, the time t2 is the time when the data frame B from the anchor point B is detected, and the The time t3 is the time when the data frame A2 from the anchor point A is detected, and the data frame B is the data frame broadcast by the anchor point B after listening to the data frame A1 and the delay time Td1, The data frame A2 carries the time t4 when the anchor point A sends the data frame A1, the time t5 when the anchor point A hears the data frame B, and the anchor point A sends the data frame A2 time t6;
根据所述时间t1、所述时间t3、所述时间t4、所述时间t5、所述时间t6确定所述时长Td1;Determine the duration Td1 according to the time t1, the time t3, the time t4, the time t5, and the time t6;
根据所述锚点A与所述锚点B之间的距离D AB、所述时间t2、所述时间t1、所述时长Td1确定第一距离与第二距离之间的所述距离差,所述第一距离为本端设备与所述锚点A之间的距离D TA,所述第二距离为本端设备与所述锚点B之间的距离D TBThe distance difference between the first distance and the second distance is determined according to the distance D AB between the anchor point A and the anchor point B, the time t2, the time t1, and the time length Td1, so The first distance is the distance D TA between the end device and the anchor point A, and the second distance is the distance D TB between the end device and the anchor point B.
第二方面,本申请实施例提供一种数据帧传输方法,包括:In a second aspect, an embodiment of the present application provides a data frame transmission method, including:
接收数据帧A2,其中,所述数据帧A2包括第一指示域、第二指示域、第三指示域,所述第一指示域用于指示锚点A发送数据帧A1的时间t4,所述第二指示域用于指示所述锚点A侦听到数据帧B的时间t5,所述第三指示域用于指示所述锚点A发送所述数据帧A2的时间t6,所述数据帧B是所述锚点B在侦听到所述数据帧A1、延时时长Td1后广播的数据帧。Receive a data frame A2, wherein the data frame A2 includes a first indication field, a second indication field, and a third indication field, the first indication field is used to indicate the time t4 when the anchor point A sends the data frame A1, and the The second indication field is used to indicate the time t5 when the anchor point A hears the data frame B, and the third indication field is used to indicate the time t6 when the anchor point A sends the data frame A2, the data frame B is the data frame broadcast by the anchor point B after listening to the data frame A1 and the delay time Td1.
第三方面,本申请实施例提供一种数据帧传输方法,包括:In a third aspect, an embodiment of the present application provides a data frame transmission method, including:
发送数据帧A2,其中,所述数据帧A2包括第一指示域、第二指示域、第三指示域,所述第一指示域用于指示锚点A发送数据帧A1的时间t4,所述第二指示域用于指示所述锚点A侦听到数据帧B的时间t5,所述第三指示域用于指示所述锚点A发送所述数据帧A2的时间t6,所述数据帧B是所述锚点B在侦听到所述数据帧A1、延时时长Td1后广播的数据帧。Sending a data frame A2, wherein the data frame A2 includes a first indication field, a second indication field, and a third indication field, the first indication field is used to indicate the time t4 when the anchor point A sends the data frame A1, and the The second indication field is used to indicate the time t5 when the anchor point A hears the data frame B, and the third indication field is used to indicate the time t6 when the anchor point A sends the data frame A2, the data frame B is the data frame broadcast by the anchor point B after listening to the data frame A1 and the delay time Td1.
第四方面,本申请实施例提供一种距离差确定装置,包括:In a fourth aspect, an embodiment of the present application provides a device for determining a distance difference, including:
第一确定单元,用于确定时间t1、时间t2和时间t3,所述时间t1为侦听到来自锚点A的数据帧A1的时间,所述时间t2为侦听到来自锚点B的数据帧B的时间,所述时间t3为侦听到来自所述锚点A的数据帧A2的时间,所述数据帧B是所述锚点B在侦听到所述数据帧A1、延时时长Td1后广播的数据帧,所述数据帧A2携带有所述锚点A发送所述数据帧A1的时间t4、所述锚点A侦听到所述数据帧B的时间t5以及所述锚点A发送所述数据帧A2的时间t6;The first determining unit is used to determine time t1, time t2 and time t3, where the time t1 is the time when the data frame A1 from the anchor point A is detected, and the time t2 is the time when the data frame A1 from the anchor point B is detected The time of frame B, the time t3 is the time when the data frame A2 from the anchor point A is detected, and the data frame B is the time when the anchor point B listens to the data frame A1 and the delay time The data frame broadcast after Td1, the data frame A2 carries the time t4 when the anchor point A sends the data frame A1, the time t5 when the anchor point A hears the data frame B, and the anchor point A sends the time t6 of the data frame A2;
第二确定单元,用于根据所述时间t1、所述时间t3、所述时间t4、所述时间t5、所述时间t6确定所述时长Td1;a second determining unit, configured to determine the duration Td1 according to the time t1, the time t3, the time t4, the time t5, and the time t6;
第三确定单元,用于根据所述锚点A与所述锚点B之间的距离D AB、所述时间t2、所述时间t1、所述时长Td1确定第一距离与第二距离之间的所述距离差,所述第一距离为本端设 备与所述锚点A之间的距离D TA,所述第二距离为本端设备与所述锚点B之间的距离D TBA third determining unit, configured to determine the distance between the first distance and the second distance according to the distance D AB between the anchor point A and the anchor point B, the time t2, the time t1, and the time duration Td1 The first distance is the distance D TA between the end device and the anchor point A, and the second distance is the distance D TB between the end device and the anchor point B.
第五方面,本申请实施例提供一种数据帧传输装置,包括:In a fifth aspect, an embodiment of the present application provides a data frame transmission device, including:
接收单元,用于接收数据帧A2,其中,所述数据帧A2包括第一指示域、第二指示域、第三指示域,所述第一指示域用于指示锚点A发送数据帧A1的时间t4,所述第二指示域用于指示所述锚点A侦听到数据帧B的时间t5,所述第三指示域用于指示所述锚点A发送所述数据帧A2的时间t6,所述数据帧B是所述锚点B在侦听到所述数据帧A1、延时时长Td1后广播的数据帧。A receiving unit, configured to receive a data frame A2, wherein the data frame A2 includes a first indication field, a second indication field, and a third indication field, and the first indication field is used to instruct the anchor point A to send the data frame A1 Time t4, the second indication field is used to indicate the time t5 when the anchor point A hears the data frame B, and the third indication field is used to indicate the time t6 when the anchor point A sends the data frame A2 , the data frame B is a data frame broadcast by the anchor point B after listening to the data frame A1 and the delay time Td1.
第六方面,本申请实施例提供一种数据帧传输装置,包括:In a sixth aspect, an embodiment of the present application provides a data frame transmission device, including:
发送单元,用于发送数据帧A2,其中,所述数据帧A2包括第一指示域、第二指示域、第三指示域,所述第一指示域用于指示锚点A发送数据帧A1的时间t4,所述第二指示域用于指示所述锚点A侦听到数据帧B的时间t5,所述第三指示域用于指示所述锚点A发送所述数据帧A2的时间t6,所述数据帧B是所述锚点B在侦听到所述数据帧A1、延时时长Td1后广播的数据帧。A sending unit, configured to send a data frame A2, wherein the data frame A2 includes a first indication field, a second indication field, and a third indication field, and the first indication field is used to instruct the anchor point A to send the data frame A1 Time t4, the second indication field is used to indicate the time t5 when the anchor point A hears the data frame B, and the third indication field is used to indicate the time t6 when the anchor point A sends the data frame A2 , the data frame B is a data frame broadcast by the anchor point B after listening to the data frame A1 and the delay time Td1.
第七方面,本申请实施例提供一种标签设备,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行本申请实施例第一方面任一方法中的步骤的指令。In a seventh aspect, an embodiment of the present application provides a tag device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory, and are configured to be processed by the above The above program includes instructions for executing steps in any method of the first aspect of the embodiments of the present application.
第八方面,本申请实施例提供一种标签设备,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行本申请实施例第二方面任一方法中的步骤的指令。In an eighth aspect, an embodiment of the present application provides a tag device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory, and are configured to be processed by the above The above program includes instructions for executing steps in any method in the second aspect of the embodiments of the present application.
第九方面,本申请实施例提供一种锚点设备,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行本申请实施例第三方面任一方法中的步骤的指令。In a ninth aspect, an embodiment of the present application provides an anchor device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory, and are configured by the above Executed by the processor, the above program includes instructions for executing steps in any method in the third aspect of the embodiments of the present application.
第十方面,本申请实施例提供一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例第一方面或第二方面或第三方面任一方法中所描述的部分或全部步骤。In a tenth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute the first embodiment of the present application. Some or all of the steps described in any of the methods of aspect or the second aspect or the third aspect.
本申请实施例中,标签设备首先确定时间t1、时间t2和时间t3,该时间t1为侦听到来自锚点A的数据帧A1的时间,该时间t2为侦听到来自锚点B的数据帧B的时间,该时间t3为侦听到来自该锚点A的数据帧A2的时间,该数据帧B是该锚点B在侦听到该数据帧A1、延时时长Td1后广播的数据帧,该数据帧A2携带有该锚点A发送该数据帧A1的时间t4、该锚点A侦听到该数据帧B的时间t5以及该锚点A发送该数据帧A2的时间t6,然后根据该时间t1、该时间t3、该时间t4、该时间t5、该时间t6确定该时长Td1,最后根据该锚点A与该锚点B之间的距离D AB、该时间t2、该时间t1、该时长Td1确定第一距离与第二距离之间的该距离差,该第一距离为本端设备与该锚点A之间的距离D TA,该第二距离为本端设备与该锚点B之间的距离D TB。可见,在进行距离差确定时,标签设备只需接收来自锚点设备的数据帧,自身无需发送数据帧,有利于提高定位系统中标签设备的容量,减少标签设备功耗。 In the embodiment of the present application, the tag device first determines time t1, time t2 and time t3, the time t1 is the time when the data frame A1 from the anchor point A is detected, and the time t2 is the time when the data frame A1 from the anchor point B is detected. The time of frame B, the time t3 is the time when the data frame A2 from the anchor point A is detected, and the data frame B is the data broadcast by the anchor point B after listening to the data frame A1 and the delay time Td1 frame, the data frame A2 carries the time t4 when the anchor point A sends the data frame A1, the time t5 when the anchor point A senses the data frame B, and the time t6 when the anchor point A sends the data frame A2, and then Determine the duration Td1 according to the time t1, the time t3, the time t4, the time t5, and the time t6, and finally according to the distance D AB between the anchor point A and the anchor point B, the time t2, and the time t1 , the duration Td1 determines the distance difference between the first distance and the second distance, the first distance is the distance D TA between the end device and the anchor point A, and the second distance is the end device and the anchor Distance D TB between points B. It can be seen that when determining the distance difference, the tag device only needs to receive the data frame from the anchor device, and does not need to send the data frame itself, which is beneficial to increase the capacity of the tag device in the positioning system and reduce the power consumption of the tag device.
附图说明Description of drawings
为了更清楚地说明本申请实施例或背景技术中的技术方案,下面将对本申请实施例或背景技术中所需要使用的附图进行说明。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background technology, the accompanying drawings required in the embodiments or the background technology of the present application will be described below.
图1A是本申请实施例提供的一种典型的采用TDOA算法的定位服务系统的架构图;FIG. 1A is an architecture diagram of a typical positioning service system using a TDOA algorithm provided by an embodiment of the present application;
图1B是本申请实施例提供的一种定位服务系统的架构示意图;FIG. 1B is a schematic diagram of the architecture of a positioning service system provided by an embodiment of the present application;
图1C是本申请实施例提供的一种电子设备的组成示例图;FIG. 1C is an exemplary diagram of the composition of an electronic device provided by an embodiment of the present application;
图1D是本申请实施例提供的一种中断硬件架构示意图;1D is a schematic diagram of an interrupt hardware architecture provided by an embodiment of the present application;
图2A是本申请实施例提供的一种距离差确定方法的流程示意图;2A is a schematic flowchart of a method for determining a distance difference provided by an embodiment of the present application;
图2B是本申请实施例提供的一种设备间数据帧交互时间示意图;2B is a schematic diagram of a data frame interaction time between devices according to an embodiment of the present application;
图2C是本申请实施例提供的忽略数据帧传播时长情况下设备间数据帧交互时间示意 图;Fig. 2C is a schematic diagram of data frame interaction time between devices under the condition of ignoring the data frame propagation duration provided by the embodiment of the present application;
图2D是本申请实施例提供的另一种设备间数据帧交互时间示意图;2D is a schematic diagram of another data frame interaction time between devices provided by an embodiment of the present application;
图2E是本申请实施例中提供的一种坐标系中设备间距离差等效示意图;2E is an equivalent schematic diagram of a distance difference between devices in a coordinate system provided in an embodiment of the present application;
图3A是本申请实施例提供的一种数据帧传输方法的流程示意图;3A is a schematic flowchart of a data frame transmission method provided by an embodiment of the present application;
图3B是本申请实施例提供的一种数据帧的格式;3B is a format of a data frame provided by an embodiment of the present application;
图3C是本申请实施例提供的另一种数据帧的格式;Fig. 3C is the format of another data frame provided by the embodiment of the present application;
图4是本申请实施例提供的另一种数据帧传输方法的流程示意图;4 is a schematic flowchart of another data frame transmission method provided by an embodiment of the present application;
图5是本申请实施例提供的另一种距离差确定方法的流程示意图;5 is a schematic flowchart of another method for determining a distance difference provided by an embodiment of the present application;
图6是本申请实施例提供的一种距离差确定装置的组成结构示意图;6 is a schematic diagram of the composition and structure of a distance difference determination device provided by an embodiment of the present application;
图7是本申请实施例提供的一种数据帧传输装置的组成结构示意图;7 is a schematic diagram of the composition and structure of a data frame transmission device provided by an embodiment of the present application;
图8是本申请实施例提供的另一种距离差确定装置的组成结构示意图。FIG. 8 is a schematic structural diagram of another distance difference determination device provided by an embodiment of the present application.
具体实现方式specific implementation
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to make those skilled in the art better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only The embodiments are part of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the scope of protection of the present application.
本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third" and "fourth" in the description and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order . Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
目前,室内定位或者测距算法常用的一种算法包括到达时间差TDOA算法,TDOA算法通过检测信号到达多个严格时间同步的基站的到达时间差,来计算标签的位置。At present, a commonly used algorithm for indoor positioning or ranging algorithms includes the time difference of arrival TDOA algorithm. The TDOA algorithm calculates the location of the tag by detecting the time difference of arrival of the signal to multiple strictly time-synchronized base stations.
请参阅图1A,图1A是一种典型的采用TDOA算法的定位服务系统的架构图,如图所示,Please refer to FIG. 1A. FIG. 1A is an architecture diagram of a typical location service system using the TDOA algorithm. As shown in the figure,
典型的采用到达时间差(TDOA)算法的系统由标签,锚点,网关和终端处理器四部分组成,其作用和定位方案的实现如下:每个初始锚点(四个)的坐标预先确定,之后加入锚点的坐标可以通过计算的方式取得;锚点与锚点之间通过有线进行连接,从而可以进行精准的时钟同步,以减少测距误差,提高定位精度;标签周期性的发送广播数据,四个不同的锚点收到同一笔广播数据,由于距离的不同,锚点各自会在不同的时间收到该笔数据,锚点在收到该笔数据的瞬间,各自为该笔数据打上时间戳;锚点将各自的时间戳通过有线发送给网关,网关再将数据发送给终端处理器上的定位引擎,最后由终端处理器计算出标签设备的(x,y,z)空间坐标,并在终端处理器上呈现定位结果。A typical system using the Time Difference of Arrival (TDOA) algorithm consists of four parts: tag, anchor point, gateway and terminal processor. Its role and the implementation of the positioning scheme are as follows: the coordinates of each initial anchor point (four) are pre-determined, and then The coordinates of the added anchor point can be obtained by calculation; the anchor point and the anchor point are connected by wire, so that accurate clock synchronization can be performed to reduce the ranging error and improve the positioning accuracy; the tag periodically sends broadcast data, Four different anchors receive the same broadcast data. Due to different distances, the anchors will receive the data at different times. The anchors will time the data at the moment of receiving the data. The anchor points send their respective timestamps to the gateway by wire, and the gateway sends the data to the positioning engine on the terminal processor. Finally, the terminal processor calculates the (x, y, z) spatial coordinates of the tag device, and The positioning results are presented on the terminal processor.
TDOA实现的难点:TDOA锚点之间的时钟同步需要非常精确,否则,只是1ns的时间延迟,将会导致30cm的定位误差;CPU的算力要强大,8位的MCU基本无法胜任算法所需的开销,因为在三维坐标系求解过程中存在较多的矩阵和浮点运算。Difficulties in TDOA implementation: The clock synchronization between TDOA anchors needs to be very precise, otherwise, only a 1ns time delay will result in a positioning error of 30cm; the computing power of the CPU must be strong, and an 8-bit MCU is basically incapable of performing the algorithm. , because there are more matrix and floating-point operations in the process of solving the three-dimensional coordinate system.
典型TDOA系统的缺点:所有的基站都必须进行精确时间同步,使得硬件系统的复杂度和成本较高,而目前普遍使用的有线用同步方式对于锚点的布局很不友好;服务器端输出标签的定位结果,只有上位机才知道标签的位置,标签无法知道自己的位置,标签端获取定位结果必须借助于其他通信网络。;由于标签需要发送Blink的range帧,当测距系统中有多个标签同时存在时,需要精确的分配每一个标签的时隙,否则将会导致时隙冲突,因此无法做到标签的无限容量扩展。Disadvantages of a typical TDOA system: All base stations must be synchronized precisely, which makes the hardware system complex and costly, and the currently commonly used wired synchronization method is not friendly to the layout of anchor points; For the positioning result, only the host computer knows the position of the tag, and the tag cannot know its own position. The tag side must rely on other communication networks to obtain the positioning result. ;Because the tag needs to send Blink's range frame, when there are multiple tags in the ranging system at the same time, the time slot of each tag needs to be allocated accurately, otherwise it will lead to time slot conflict, so the infinite capacity of the tag cannot be achieved. extension.
从消费电子应用角度出发,目前TDOA的方法应用所带来的缺点在面向消费电子应用时,存在需要解决的问题:UWB在消费电子上的普及,锚点的铺设一定是大范围多场景的铺设,因此一定要摆脱对有线的束缚,锚点的铺设越简单,技术应用的普及才能越容易;消费电子的应用场景决定了消费者本身需要实时知道自己的位置,例如手机用户打开UWB定位服务之后,需要在手机上实时呈现自己的位置;消费电子在实际应用中,不能有容量的限制。From the perspective of consumer electronics applications, the shortcomings brought about by the application of the current TDOA method have problems that need to be solved when facing consumer electronics applications: the popularization of UWB in consumer electronics, the laying of anchor points must be a large-scale and multi-scene laying. Therefore, we must get rid of the shackles of the cable. The simpler the laying of anchor points, the easier the popularization of technology applications; the application scenarios of consumer electronics determine that consumers themselves need to know their location in real time. For example, after mobile phone users turn on UWB positioning services , you need to display your location in real time on the mobile phone; in practical applications of consumer electronics, there can be no capacity limit.
针对上述问题,本申请实施例提供一种距离差确定方法、数据帧传输方法及相关产品,下面结合附图对本申请的实施例进行描述。In response to the above problems, the embodiments of the present application provide a method for determining a distance difference, a method for transmitting a data frame, and related products. The embodiments of the present application are described below with reference to the accompanying drawings.
请参阅图1B,图1B是本申请实施例提供的一种定位服务系统的架构示意图。如图1B所示,本定位服务系统10可以包括:多个锚点设备(如图1B中示出的锚点A、锚点B和锚点C)和至少一个标签设备100,锚点设备为支持UWB技术的服务端设备,标签设备100为支持UWB技术的用户端设备,例如可以包括但不限于无线通信设备、入口应答器设备、家用设备、系带标签等。其他UWB设备(其为了简单起见而未在图1B中示出)可以包括其他计算设备,包括但不限于膝上型计算机、台式计算机、平板电脑、个人助理、路由器、监视器、电视机、打印机和电器。Please refer to FIG. 1B . FIG. 1B is a schematic structural diagram of a positioning service system provided by an embodiment of the present application. As shown in FIG. 1B , the positioning service system 10 may include: a plurality of anchor point devices (anchor point A, anchor point B and anchor point C shown in FIG. 1B ) and at least one label device 100 , and the anchor point device is For a server device supporting UWB technology, the tag device 100 is a client device supporting UWB technology, such as but not limited to wireless communication devices, portal transponder devices, household devices, tethered tags, and the like. Other UWB devices (which are not shown in Figure IB for simplicity) may include other computing devices, including but not limited to laptops, desktops, tablets, personal assistants, routers, monitors, televisions, printers and electrical appliances.
其中,每个锚点设备和标签设备均可实现本申请实施例中提供的相应的数据帧传输方法,标签设备可以实现本申请实施例中提供的距离差计算方法,例如根据锚点A和锚点B到与标签设备100间的信号传输的时间差,计算标签设备100到锚点A的距离L1和标签设备100到锚点B的距离L2之间的距离差ΔL1,同理,计算得到标签设备100到锚点C之间的距离L3与L1的距离差ΔL2,并进一步根据ΔL1、ΔL2以及锚点A与锚点B之间的距离,锚点A与锚点C之间的距离确定标签设备的坐标。Wherein, each anchor device and tag device can implement the corresponding data frame transmission method provided in the embodiment of the present application, and the tag device can implement the distance difference calculation method provided in the embodiment of the present application, for example, according to the anchor point A and the anchor point The time difference between point B and the signal transmission with the label device 100, calculate the distance difference ΔL1 between the distance L1 from the label device 100 to the anchor point A and the distance L2 from the label device 100 to the anchor point B. Similarly, the label device is calculated. 100 to the distance between the anchor point C and the distance difference between L3 and L1 ΔL2, and further according to ΔL1, ΔL2 and the distance between the anchor point A and the anchor point B, the distance between the anchor point A and the anchor point C determine the label device coordinate of.
若标签设备本身为带有UWB芯片的手机、平板电脑等终端设备,在通过上述距离差计算方法确定出自身坐标后,可直接实时显示在手机的图形界面上,实现对自身位置的定位功能。If the label device itself is a terminal device such as a mobile phone and a tablet computer with a UWB chip, after determining its own coordinates through the above distance difference calculation method, it can be directly displayed on the graphical interface of the mobile phone in real time to realize the positioning function of its own position.
若标签设备为物联网(The Internet of Things,IoT)标签设备,系统10中还可以包括:终端设备200,标签设备可以通过UWB或者蓝牙等将数据传送给终端设备,通过终端设备的图形界面对物联网标签设备进行坐标显示,实现对物联网标签设备的定位功能。If the tag device is an Internet of Things (The Internet of Things, IoT) tag device, the system 10 may further include: a terminal device 200, the tag device can transmit data to the terminal device through UWB or Bluetooth, etc., through the graphical interface of the terminal device. The IoT label device displays coordinates and realizes the positioning function of the IoT label device.
图1C是本申请实施例提供的一种电子设备300的组成示例图。该电子设备300可以是图1B中任一个锚点设备或标签设备100,电子设备300可以包括核心处理单元301、UWB收发器302、通信单元303、通用接口单元304以及电源供给单元305,通信单元303具体可以包括但不限于蓝牙、Wi-Fi、蜂窝通信模块中的一种或多种,通用接口单元304用于接入各类传感器,包括但不限于指示灯、振动传感器以及其他传感器,电源供给单元305例如可以包括但不限于电池、直流转直流DC-DC模块、滤波电路以及欠压检测电路等。FIG. 1C is a diagram illustrating an example composition of an electronic device 300 provided by an embodiment of the present application. The electronic device 300 can be any anchor device or tag device 100 in FIG. 1B . The electronic device 300 can include a core processing unit 301, a UWB transceiver 302, a communication unit 303, a general interface unit 304, and a power supply unit 305. The communication unit 303 may specifically include, but is not limited to, one or more of Bluetooth, Wi-Fi, and cellular communication modules, and the general interface unit 304 is used to access various sensors, including but not limited to indicator lights, vibration sensors, and other sensors, power For example, the supply unit 305 may include, but is not limited to, a battery, a direct current to direct current DC-DC module, a filter circuit, an undervoltage detection circuit, and the like.
其中,核心处理单元301可以包括处理器和存储器,处理器可以包括一个或者多个处理核心。处理器利用各种接口和线路连接整个电子设备300内的各个部分,通过运行或执行存储在存储器内的指令、程序、代码集或指令集,以及调用存储在存储器内的数据,执行电子设备300的各种功能和处理数据。处理器可以包括一个或多个处理单元,例如:处理器可以包括中央处理器(Central Processing Unit,CPU)、应用处理器(application processor,AP)、调制解调处理器、图形处理器(graphics processing unit,GPU)、图像信号处理器(image signal processor,ISP)、控制器、微控制单元(Microcontroller Unit,MCU)、视频编解码器、数字信号处理器(digital signal processor,DSP)、基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,控制器可以是电子设备300的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。存储器中存储的程序用于执行本申请实施例所描述的任一种距离差确定方法中的步骤,或者用于执行本申请实施例所描述的任一种数据帧传输方法中的步骤。The core processing unit 301 may include a processor and a memory, and the processor may include one or more processing cores. The processor uses various interfaces and lines to connect various parts of the entire electronic device 300, and executes the electronic device 300 by running or executing instructions, programs, code sets or instruction sets stored in the memory, and calling data stored in the memory. various functions and processing data. The processor may include one or more processing units, for example, the processor may include a central processing unit (Central Processing Unit, CPU), an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit) unit, GPU), image signal processor (image signal processor, ISP), controller, microcontroller unit (Microcontroller Unit, MCU), video codec, digital signal processor (digital signal processor, DSP), baseband processor , and/or a neural-network processing unit (NPU), etc. The controller may be the nerve center and command center of the electronic device 300 . The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions. The program stored in the memory is used to execute the steps in any of the distance difference determination methods described in the embodiments of the present application, or to execute the steps in any of the data frame transmission methods described in the embodiments of the present application.
存储器可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。可选地,该存储器包括非瞬时性计算机可读介质(non-transitory  computer-readable storage medium)。存储器可用于存储指令、程序、代码、代码集或指令集。存储器可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等,该操作系统可以是安卓(Android)系统(包括基于Android系统深度开发的系统)、苹果公司开发的IOS系统(包括基于IOS系统深度开发的系统)或其它系统。存储数据区还可以存储电子设备300在使用中所创建的数据(比如标定的位置数据)等。The memory may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory). Optionally, the memory includes a non-transitory computer-readable storage medium. Memory may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), Instructions for implementing the following method embodiments, etc., the operating system can be an Android (Android) system (including a system based on the deep development of the Android system), an IOS system developed by Apple (including a system based on the deep development of the IOS system) or other systems. The storage data area may also store data created by the electronic device 300 during use (such as calibrated location data) and the like.
具体的,请参见图1D,图1D是本申请实施例提供的一种中断硬件架构示意图,如图1D所示,电子设备300若为物联网标签设备或锚点设备,核心处理单元可以包括微控制单元MCU,UWB收发器可以包括UWB芯片和功率放大器(power amplifier,PA),MCU与UWB芯片之间的数据传输可以通过串行外设接口(Serial Peripheral Interface,SPI)完成,MCU可通过通用输入输出接口(General-purpose input/output,GPIO)配置该UWB芯片,UWB芯片用于产生定位时使用的UWB脉冲信号,通过中断通知MCU自身运行时的各种状态变化,MCU完成整个通信过程中状态转变和逻辑交互。若电子设备为终端设备,以手机为例,核心处理单元则可以包括AP,手机AP与UWB的交互与上述MCU和UWB之间的交互一致(硬件框架与图1D一致,仅需将微控制单元MCU替换为应用处理器AP)。Specifically, please refer to FIG. 1D , which is a schematic diagram of an interrupt hardware architecture provided by an embodiment of the present application. As shown in FIG. 1D , if the electronic device 300 is an IoT tag device or an anchor device, the core processing unit may include a micro Control unit MCU, UWB transceiver can include UWB chip and power amplifier (power amplifier, PA), data transmission between MCU and UWB chip can be completed through serial peripheral interface (Serial Peripheral Interface, SPI), MCU can pass the general The input and output interface (General-purpose input/output, GPIO) configures the UWB chip. The UWB chip is used to generate the UWB pulse signal used in positioning, and notify the MCU of various state changes during its own operation through interrupts. The MCU completes the entire communication process. State transitions and logical interactions. If the electronic device is a terminal device, taking a mobile phone as an example, the core processing unit may include an AP, and the interaction between the mobile phone AP and the UWB is consistent with the above-mentioned interaction between the MCU and the UWB (the hardware framework is the same as that in Figure 1D, only the micro-control unit needs to be MCU is replaced with application processor AP).
需要注意的是,上述电子设备300的结构示意图仅为示例,具体包含的器件可以更多或更少,此处不做唯一限定。It should be noted that the above-mentioned schematic structural diagram of the electronic device 300 is only an example, and the specific components may be more or less, which is not limited here.
请参阅图2A,图2A是本申请实施例提供的一种距离差确定方法的流程示意图。如图所示,本距离差确定方法包括以下步骤。其中,关于各设备间数据帧交互的时间,可参阅图2B,图2B是本申请实施例提供的一种设备间数据帧交互时间示意图,图中T d即表征延时时长Td1。 Please refer to FIG. 2A , which is a schematic flowchart of a method for determining a distance difference provided by an embodiment of the present application. As shown in the figure, the method for determining the distance difference includes the following steps. 2B is a schematic diagram of a data frame interaction time between devices provided by an embodiment of the present application, and Td in the figure represents the delay time Td1.
S201,标签设备确定时间t1、时间t2和时间t3。S201, the tag device determines time t1, time t2 and time t3.
其中,所述时间t1为侦听到来自锚点A的数据帧A1的时间,所述时间t2为侦听到来自锚点B的数据帧B的时间,所述时间t3为侦听到来自所述锚点A的数据帧A2的时间,所述数据帧B是所述锚点B在侦听到所述数据帧A1、延时时长Td1后广播的数据帧,所述数据帧A2携带有所述锚点A发送所述数据帧A1的时间t4、所述锚点A侦听到所述数据帧B的时间t5以及所述锚点A发送所述数据帧A2的时间t6。The time t1 is the time when the data frame A1 from the anchor point A is detected, the time t2 is the time when the data frame B from the anchor point B is detected, and the time t3 is the time when the data frame B from the anchor point B is detected. The time of the data frame A2 of the anchor point A, the data frame B is the data frame broadcast by the anchor point B after listening to the data frame A1 and the delay time Td1, and the data frame A2 carries some The time t4 when the anchor point A sends the data frame A1, the time t5 when the anchor point A senses the data frame B, and the time t6 when the anchor point A sends the data frame A2.
具体实现中,标签设备可以是图1B中所示的标签设备,其具体的结构可以为图1C和图1D所示。In a specific implementation, the labeling device may be the labeling device shown in FIG. 1B , and its specific structure may be as shown in FIG. 1C and FIG. 1D .
S202,标签设备根据所述时间t1、所述时间t3、所述时间t4、所述时间t5、所述时间t6确定所述时长Td1。S202, the tag device determines the duration Td1 according to the time t1, the time t3, the time t4, the time t5, and the time t6.
其中,时间t1、时间t3为标签设备自身侦听到来自锚点A的数据帧的时间,而时间t5、时间t6均为侦听到的来自锚点A的数据帧中携带的信息,也即是说,标签设备在进行距离差确定时,自身无需向其他设备发送数据帧,只需接收来自锚点设备的数据帧即可,一方面,减少了标签设备本身的功耗,另一方面,由于标签设备无需发送数据帧,即使系统中同时存在多个标签设备,也无需精细的为每个标签设备分配时隙以避免时隙冲突,提高了系统中标签设备的容量,使得系统中标签设备的容量无限。Among them, time t1 and time t3 are the time when the tag device itself senses the data frame from anchor point A, and time t5 and time t6 are the information carried in the data frame from anchor point A sensed, that is That is to say, when the tag device determines the distance difference, it does not need to send data frames to other devices, but only needs to receive data frames from the anchor device. On the one hand, it reduces the power consumption of the tag device itself, on the other hand, Since the tag device does not need to send data frames, even if there are multiple tag devices in the system at the same time, there is no need to finely assign time slots to each tag device to avoid time slot conflicts, which increases the capacity of the tag devices in the system and makes the tag devices in the system. of unlimited capacity.
S203,标签设备根据所述锚点A与所述锚点B之间的距离D AB、所述时间t2、所述时间t1、所述时长Td1确定第一距离与第二距离之间的所述距离差。 S203, the tag device determines the distance between the first distance and the second distance according to the distance D AB between the anchor point A and the anchor point B, the time t2, the time t1, and the time length Td1 The distance is poor.
其中,所述第一距离为本端设备与所述锚点A之间的距离D TA,所述第二距离为本端设备与所述锚点B之间的距离D TBThe first distance is the distance D TA between the end device and the anchor point A, and the second distance is the distance D TB between the end device and the anchor point B.
本申请实施例中,标签设备首先确定时间t1、时间t2和时间t3,该时间t1为侦听到来自锚点A的数据帧A1的时间,该时间t2为侦听到来自锚点B的数据帧B的时间,该时间t3为侦听到来自该锚点A的数据帧A2的时间,该数据帧B是该锚点B在侦听到该数据帧A1、延时时长Td1后广播的数据帧,该数据帧A2携带有该锚点A发送该数据帧A1的时间t4、 该锚点A侦听到该数据帧B的时间t5以及该锚点A发送该数据帧A2的时间t6,然后根据该时间t1、该时间t3、该时间t4、该时间t5、该时间t6确定该时长Td1,最后根据该锚点A与该锚点B之间的距离D AB、该时间t2、该时间t1、该时长Td1确定第一距离与第二距离之间的该距离差,该第一距离为本端设备与该锚点A之间的距离D TA,该第二距离为本端设备与该锚点B之间的距离D TB。可见,在进行距离差确定时,标签设备只需接收来自锚点设备的数据帧,自身无需发送数据帧,有利于提高定位系统中标签设备的容量,减少标签设备功耗。 In the embodiment of the present application, the tag device first determines time t1, time t2 and time t3, the time t1 is the time when the data frame A1 from the anchor point A is detected, and the time t2 is the time when the data frame A1 from the anchor point B is detected. The time of frame B, the time t3 is the time when the data frame A2 from the anchor point A is detected, and the data frame B is the data broadcast by the anchor point B after listening to the data frame A1 and the delay time Td1 frame, the data frame A2 carries the time t4 when the anchor point A sends the data frame A1, the time t5 when the anchor point A senses the data frame B and the time t6 when the anchor point A sends the data frame A2, and then Determine the duration Td1 according to the time t1, the time t3, the time t4, the time t5, and the time t6, and finally according to the distance D AB between the anchor point A and the anchor point B, the time t2, and the time t1 , the duration Td1 determines the distance difference between the first distance and the second distance, the first distance is the distance D TA between the end device and the anchor point A, and the second distance is the end device and the anchor Distance D TB between points B. It can be seen that when determining the distance difference, the tag device only needs to receive the data frame from the anchor device, and does not need to send the data frame itself, which is beneficial to increase the capacity of the tag device in the positioning system and reduce the power consumption of the tag device.
在一个可能的示例中,所述时间t1与所述时间t3之间的时间差为时间差Δt1,所述时间t6与所述时间t4的时间差为时间差Δt2,所述时间t5与所述时间t4之间的时间差为时间差Δt3;所述时间差Δt1与所述时间差Δt2的比值为第一比值;所述时长Td1与所述时间差Δt3的比值为第二比值;在忽略数据帧飞行时长的影响的情况下,所述第一比值和所述第二比值相同。In a possible example, the time difference between the time t1 and the time t3 is the time difference Δt1, the time difference between the time t6 and the time t4 is the time difference Δt2, and the time difference between the time t5 and the time t4 The time difference is the time difference Δt3; the ratio of the time difference Δt1 to the time difference Δt2 is the first ratio; the ratio of the duration Td1 to the time difference Δt3 is the second ratio; ignoring the influence of the data frame flight duration, The first ratio and the second ratio are the same.
具体实现中,延时时长Td1,是锚点B接收到锚点A发送的数据帧A1到广播数据帧B之间,锚点B中处理器运行导致的延时,由于飞行时间是皮秒(picosecond,ps)级别的,而电子设备中的处理器例如CPU的处理是微秒(microsecond,μs)级别的,1000000皮秒=1微秒,因此相对于处理器的处理延时Td1而言,数据帧的飞行时长可以忽略不计。不同设备间的时钟可能不是精准同步的,基于不同设备的时钟的用于指示同一时刻的时间可能也是有差异的,而在忽略飞行时长的情况下,锚点A发出数据帧A1、A2的时间t6和时间t4所实际指示的时刻,则分别对应标签设备侦听到数据帧A、A2的时间t1和时间t3所实际指示的时刻,即时间t1和时间t4实际指示是同一时间,时间t3和时间t6实际指示的是同一时间;则对应的基于标签设备的时钟的时间差Δt1,和基于锚点A设备时钟的时间差Δt2,实际指示的时间间隔也是相同的;同理,基于锚点A的时钟的时间差Δt3,和基于锚点B的时长Td1实际指示的时间间隔是相同的。因此,在忽略数据帧飞行时长的情况下,图2B中因数据传播时长导致的各数据帧发出时间点与其被接收时间点连线的斜率可以忽略,进而各设备间数据交互的时间关系可以如图2C所示,因此时间差Δt1与时间差Δt2的比值即第一比值,与时长Td1与时间差Δt3的比值即第二比值可认为是相同的。In the specific implementation, the delay time Td1 is the delay caused by the operation of the processor in the anchor point B between the anchor point B receiving the data frame A1 sent by the anchor point A and the broadcast data frame B. Since the flight time is picoseconds ( picosecond, ps) level, while the processing of processors in electronic devices such as CPU is microsecond (microsecond, μs) level, 1000000 picoseconds = 1 microsecond, so relative to the processing delay Td1 of the processor, The flight duration of the data frame is negligible. The clocks between different devices may not be precisely synchronized, and the time used to indicate the same moment based on the clocks of different devices may also be different. In the case of ignoring the flight duration, anchor A sends the time of data frames A1 and A2. The time actually indicated by t6 and time t4 corresponds to the time actually indicated by time t1 and time t3 when the tag device senses data frames A and A2 respectively, that is, the actual time indicated by time t1 and time t4 is the same time, time t3 and The time t6 actually indicates the same time; then the corresponding time difference Δt1 based on the clock of the tag device, and the time difference Δt2 based on the clock of the anchor A device, the actually indicated time interval is also the same; for the same reason, the clock based on anchor A is the same. The time difference Δt3 is the same as the time interval actually indicated based on the duration Td1 of anchor point B. Therefore, in the case of ignoring the flight duration of the data frame, the slope of the connection between the time point when each data frame is sent and the time point when it is received due to the data propagation duration in Figure 2B can be ignored, and the time relationship of data interaction between devices can be as follows As shown in FIG. 2C , the ratio of the time difference Δt1 to the time difference Δt2 ie the first ratio and the ratio of the duration Td1 to the time difference Δt3 ie the second ratio can be considered to be the same.
可见,本实例中,时间t1与时间t3之间的时间差为时间差Δt1,时间t6与时间t4的时间差为时间差Δt2,时间t5与时间t4之间的时间差为时间差Δt3;时间差Δt1与时间差Δt2的比值为第一比值;时长Td1与时间差Δt3的比值为第二比值;在忽略数据帧飞行时长的影响的情况下,第一比值和第二比值相同。由于所有的差值Δt1、Δt2、Δt3和Td1均为不同设备基于自身的时钟计算的,因此可以消除不同设备之间的时钟误差为距离差确定带来的误差,各设备之间无需进行精确的时钟同步,即各设备间无需有线连接,有利于节约成本。It can be seen that in this example, the time difference between time t1 and time t3 is time difference Δt1, the time difference between time t6 and time t4 is time difference Δt2, the time difference between time t5 and time t4 is time difference Δt3; the ratio of time difference Δt1 to time difference Δt2 is the first ratio; the ratio of the duration Td1 to the time difference Δt3 is the second ratio; under the condition of ignoring the influence of the flight duration of the data frame, the first ratio and the second ratio are the same. Since all the differences Δt1, Δt2, Δt3 and Td1 are calculated by different devices based on their own clocks, the errors caused by the clock errors between different devices for determining the distance difference can be eliminated. Clock synchronization, that is, no wired connection is required between devices, is beneficial to cost savings.
在一个可能的示例中,所述时长Td1通过如下公式计算得到:
Figure PCTCN2021108998-appb-000001
In a possible example, the duration Td1 is calculated by the following formula:
Figure PCTCN2021108998-appb-000001
具体实现中,考虑到不同设备间的时钟可能不是精准同步的情况,例如标签设备和锚点B之间的时钟是不同步的,由于标签设备和锚点B之间的时钟存在误差,此时标签设备在计算锚点B在接收到来自锚点A的数据帧A1到自身发送数据帧B之间的系统延时Td1时,则不能直接采用根据锚点B自身时钟计算得到的延时。在时间差Δt1与时间差Δt2的比值等于时长Td1与时间差Δt3的比值时,则可转换得到上述公式
Figure PCTCN2021108998-appb-000002
通过上述公式,由于Δt1、Δt2、Δt3和Td1均分别为不同设备基于自身的时钟计算的,因此,可以消除不同设备之间的时钟误差为距离差确定带来的误差。
In the specific implementation, considering that the clocks between different devices may not be precisely synchronized, for example, the clocks between the tag device and anchor point B are not synchronized, due to the clock error between the tag device and anchor point B, at this time When the tag device calculates the system delay Td1 between when the anchor point B receives the data frame A1 from the anchor point A and sends the data frame B by itself, it cannot directly use the delay calculated according to the anchor point B's own clock. When the ratio of the time difference Δt1 to the time difference Δt2 is equal to the ratio of the duration Td1 to the time difference Δt3, the above formula can be obtained by conversion
Figure PCTCN2021108998-appb-000002
Through the above formula, since Δt1, Δt2, Δt3 and Td1 are calculated by different devices based on their own clocks, the errors caused by the clock errors between different devices for determining the distance difference can be eliminated.
可见,本示例中,时长Td1通过如下公式计算得到:
Figure PCTCN2021108998-appb-000003
由于Δt1、Δt2、Δt3和Td1均分别为不同设备基于自身的时钟计算的,因此,可以消除不同设备之间的时钟误差为距离差确定带来的误差,各设备之间无需进行精确的时钟同步,即各设备间无需有线连接,有利于节约成本。
It can be seen that in this example, the duration Td1 is calculated by the following formula:
Figure PCTCN2021108998-appb-000003
Since Δt1, Δt2, Δt3 and Td1 are calculated by different devices based on their own clocks, the errors caused by the clock errors between different devices for determining the distance difference can be eliminated, and precise clock synchronization between devices is not required. , that is, there is no need for wired connection between devices, which is beneficial to saving costs.
在一个可能的示例中,所述第一距离与第二距离之间的所述距离差通过如下公式计算得到:D TA-D TB=D AB-C×(t2-t1-T d),其中,C为光速。 In a possible example, the distance difference between the first distance and the second distance is calculated by the following formula: D TA -D TB =D AB -C×(t2-t1-T d ), where , C is the speed of light.
具体实现中,请参见图2B,图中T d表示锚点B接收到数据帧A1和自身发出数据帧B的时间间隔,其具体可以为时长Td1,假设锚点A发送数据帧A1前Δt时间为t0,则标签设备接收到来自锚点A的数据帧A1的时间 In the specific implementation, please refer to FIG. 2B . In the figure, T d represents the time interval between the anchor point B receiving the data frame A1 and sending the data frame B by itself. is t0, the time when the tag device receives the data frame A1 from anchor A
Figure PCTCN2021108998-appb-000004
Figure PCTCN2021108998-appb-000004
标签设备接收到来自锚点B的数据帧B的时间The time when the tag device receives data frame B from anchor B
Figure PCTCN2021108998-appb-000005
Figure PCTCN2021108998-appb-000005
进而and then
Figure PCTCN2021108998-appb-000006
Figure PCTCN2021108998-appb-000006
进一步可以得出It can be further obtained
D TB-D TA=C×(t2-t1-T d)-D ABD TB -D TA =C×(t2-t1-T d )-D AB ;
D TA-D TB=D AB-C×(t2-t1-T d), D TA -D TB =D AB -C×(t2-t1-T d ),
其中C为光在空间中的传播速度,两设备间的距离与光速的比值则可表征数据帧在两设备间的传播时长。Among them, C is the propagation speed of light in space, and the ratio of the distance between the two devices to the speed of light can represent the propagation time of the data frame between the two devices.
可见,本示例中,第一距离与第二距离之间的距离差通过如下公式计算得到:D TA-D TB=D AB-C×(t2-t1-T d),其中,C为光速,标签设备通过公式计算距离差,有利于保证距离差确定的准确性。 It can be seen that in this example, the distance difference between the first distance and the second distance is calculated by the following formula: D TA -D TB =D AB -C×(t2-t1-T d ), where C is the speed of light, The label device calculates the distance difference through a formula, which is beneficial to ensure the accuracy of the distance difference determination.
在一个可能的示例中,所述距离D AB根据单面双向测距SS-TWR算法,利用所述时间t4、所述时间t5、所述锚点B侦听到所述数据帧A1的时间t7、所述锚点B广播所述数据帧B的时间t8计算得到的。 In a possible example, the distance D AB uses the time t4, the time t5, and the time t7 when the anchor point B senses the data frame A1 according to the one-sided two-way ranging SS-TWR algorithm. , calculated by the time t8 at which the anchor point B broadcasts the data frame B.
具体实现中,请参见图2D,图2D是本申请实施例提供的另一种设备间数据帧交互时间示意图,如图所示,图中示出两个设备(锚点A和锚点B),锚点A在时间t4向锚点B发送数据帧A1,经过一段时间(Δt5)的传播,锚点设备B在时间t7侦听到该数据帧A1,由于锚点A和锚点B的时钟是独立的,若两设备间的时钟不同步,若直接通过t7-t4认为是数据帧传播的时间即Δt5,显然是不可行的。而采用SS-TWR算法,锚点A在时间t4发送数据帧A1,经过一段时间的传播,锚点设备B在时间t7侦听到该数据帧A1,经过Δt4时间后,锚点B在时间t8发送数据帧B,经过一段时间的传播,锚点A在时间t5接收到该数据帧B。由于定位服务系统中锚点的位置固定,即两次数据帧传输时,锚点A和锚B之间的距离不变,则可认为两次数据帧传播的时间是一致的,均为Δt5。此时通过Δt3-Δt4即可得到两次数据帧传播的时间,即
Figure PCTCN2021108998-appb-000007
后续可根据数据帧传播的速度和该时间Δt5计算出锚点A和锚点B之间的距离。
For specific implementation, please refer to FIG. 2D . FIG. 2D is a schematic diagram of another data frame interaction time between devices provided by an embodiment of the present application. As shown in the figure, the figure shows two devices (anchor point A and anchor point B) , the anchor point A sends the data frame A1 to the anchor point B at time t4. After a period of time (Δt5), the anchor point device B listens to the data frame A1 at time t7. Due to the clocks of anchor point A and anchor point B It is independent. If the clocks between the two devices are not synchronized, it is obviously infeasible to directly pass t7-t4 as the time of data frame propagation, that is, Δt5. Using the SS-TWR algorithm, the anchor point A sends the data frame A1 at time t4. After a period of propagation, the anchor point device B hears the data frame A1 at time t7. After Δt4, the anchor point B at time t8 Data frame B is sent, and after a period of propagation, anchor A receives the data frame B at time t5. Since the location of the anchor point in the positioning service system is fixed, that is, the distance between the anchor point A and the anchor point B remains unchanged during the two data frame transmissions, it can be considered that the two data frame propagation times are consistent, both at Δt5. At this time, the propagation time of two data frames can be obtained by Δt3-Δt4, that is,
Figure PCTCN2021108998-appb-000007
Subsequently, the distance between anchor point A and anchor point B can be calculated according to the speed of data frame propagation and the time Δt5.
可见,本申请实施例中,距离是D AB根据单面双向测距SS-TWR算法,利用时间t4、时间t5、锚点B侦听到数据帧A1的时间t7、锚点B广播数据帧B的时间t8计算得到的,设备之间无需进行精确的时钟同步,即各设备间无需有线连接,有利于节约成本。 It can be seen that in the embodiment of the present application, the distance is D AB according to the single-sided two-way ranging SS-TWR algorithm, using time t4, time t5, time t7 when anchor point B senses data frame A1, and anchor point B broadcasts data frame B According to the time t8 calculated from the time t8, there is no need to perform precise clock synchronization between devices, that is, there is no need for wired connection between devices, which is beneficial to saving costs.
在一个可能的示例中,所述数据帧A2还携带有所述距离D ABIn a possible example, the data frame A2 also carries the distance D AB .
具体实现中,锚点A可以根据自身与锚点B之间的数据帧A1和数据帧A2的交互,例如采用前述SS-TWR算法,根据数据帧传播的时间,确定出锚点A和锚点B之间的距离D AB。并在后续发出的数据帧A2中携带计算出的D AB。标签设备接收到数据帧A2时,即可得到该距离D AB,后续确定距离差时标签设备可直接使用该数据。 In the specific implementation, anchor point A can determine anchor point A and anchor point according to the interaction of data frame A1 and data frame A2 between itself and anchor point B, for example, using the aforementioned SS-TWR algorithm and according to the time of data frame propagation Distance D AB between B. And the calculated D AB is carried in the data frame A2 sent subsequently. When the tag device receives the data frame A2, it can obtain the distance D AB , and the tag device can directly use the data when determining the distance difference subsequently.
可见,本示例中,数据帧A2还携带有距离D AB,标签设备可直接根据距离D AB进行后 续距离差的计算,有利于提高标签设备确定距离差的效率。 It can be seen that, in this example, the data frame A2 also carries the distance D AB , and the tag device can directly calculate the subsequent distance difference according to the distance D AB , which is beneficial to improve the efficiency of the tag device in determining the distance difference.
在一个可能的示例中,所述距离D AB由本端设备计算得到。 In a possible example, the distance D AB is calculated by the local device.
具体实现中,若锚点A本身未对距离D AB进行计算,锚点A可在数据帧A2中携带用于确定距离D AB的相关时间数据,标签设备自身可对距离D AB进行计算,例如根据时间t4、时间t5、锚点B侦听到数据帧A1的时间t7、锚点B广播数据帧B的时间t8,基于SS-TWR算法计算得到距离D ABIn the specific implementation, if the anchor point A itself does not calculate the distance D AB , the anchor point A can carry the relevant time data for determining the distance D AB in the data frame A2, and the tag device itself can calculate the distance D AB , for example According to the time t4, the time t5, the time t7 when the anchor point B senses the data frame A1, and the time t8 when the anchor point B broadcasts the data frame B, the distance D AB is calculated based on the SS-TWR algorithm.
可见,本示例中,距离D AB由本端设备计算得到,即标签设备在无法直接获取距离D AB时,可在本端进行计算得到距离D AB,有利于保证本端后续能基于该距离D AB进行距离差确定。 It can be seen that in this example, the distance D AB is calculated by the local device, that is, when the tag device cannot directly obtain the distance D AB , the distance D AB can be obtained by calculating the distance D AB at the local end, which is beneficial to ensure that the local end can follow the distance D AB based on the distance D AB . Perform distance difference determination.
在一个可能的示例中,所述确定时间t1、时间t2和时间t3,包括:在侦听到来自所述锚点A的数据帧A1时,记录当前时间t1;在侦听到来自所述锚点B的数据帧B时,记录当前时间t2;在侦听到来自所述锚点A的数据帧A2时,记录当前时间t3。In a possible example, the determining the time t1, the time t2 and the time t3 includes: when the data frame A1 from the anchor point A is detected, recording the current time t1; when the data frame A1 from the anchor point A is detected; When the data frame B of point B is recorded, the current time t2 is recorded; when the data frame A2 from the anchor point A is detected, the current time t3 is recorded.
具体实现中,标签设备在接收到各数据帧时,标签设备自身会进行处理,分别记录相应的时间戳,后续在需要时直接读取即可。In the specific implementation, when the label device receives each data frame, the label device will process it by itself, record the corresponding time stamps respectively, and then read them directly when needed.
可见,本示例中,标签设备在侦听到来自锚点A的数据帧A1时,记录当前时间t1;在侦听到来自锚点B的数据帧B时,记录当前时间t2;在侦听到来自锚点A的数据帧A2时,记录当前时间t3,标签设备每次在接收到数据帧时,则对时间进行记录,后续需要时刻可直接读取,有利于提高距离差确定的效率。It can be seen that in this example, the tag device records the current time t1 when it detects the data frame A1 from the anchor point A; records the current time t2 when it detects the data frame B from the anchor point B; When the data frame A2 comes from the anchor point A, the current time t3 is recorded, and each time the tag device receives the data frame, the time is recorded, and it can be directly read at the subsequent required time, which is beneficial to improve the efficiency of distance difference determination.
在一个可能的示例中,所述方法还包括:在侦听到来自所述锚点C的数据帧C时,记录当前时间t9,所述数据帧C是所述锚点C在侦听到所述数据帧A1、延时时长Td2后广播的数据帧;在侦听到来自所述锚点A的数据帧A3时,记录当前时间t10,所述数据帧A3携带有所述锚点A发送所述数据帧A1的时间t4、所述锚点A侦听到所述数据帧C的时间t11、所述锚点A发送所述数据帧A3的时间t12以及所述锚点A与所述锚点C之间的距离D AC;根据所述时间t1、所述时间t10、所述时间t4、所述时间t11、所述时间t12确定所述时长Td2;根据所述距离D AC、所述时间t9、所述时间t1、所述时长Td2确定所述第一距离与第三距离之间的所述距离差,所述第三距离为本端设备与所述锚点C之间的距离D TC;根据所述第一距离与所述第二距离之间的所述距离差、所述第一距离与所述第三距离之间的所述距离差、所述距离D AB、所述距离D AC,确定本端设备的坐标。 In a possible example, the method further includes: when listening to the data frame C from the anchor point C, recording the current time t9, the data frame C is the data frame C that the anchor point C heard when listening The data frame A1 and the data frame broadcast after the delay time Td2; when listening to the data frame A3 from the anchor point A, record the current time t10, and the data frame A3 carries the data sent by the anchor point A. The time t4 of the data frame A1, the time t11 when the anchor point A senses the data frame C, the time t12 when the anchor point A sends the data frame A3, and the time between the anchor point A and the anchor point The distance D AC between C; the duration Td2 is determined according to the time t1, the time t10, the time t4, the time t11, and the time t12; according to the distance D AC , the time t9 , the time t1 and the duration Td2 determine the distance difference between the first distance and the third distance, where the third distance is the distance DTC between the end device and the anchor point C ; According to the distance difference between the first distance and the second distance, the distance difference between the first distance and the third distance, the distance D AB , the distance D AC , to determine the coordinates of the local device.
具体实现中,标签设备可以基于与锚点A、锚点B、标签设备间数据帧交互确定D TA和D TB间距离差相同的方式,通过锚点A、锚点C和标签设备间的数据帧交互,确定出D TA与D TC间的距离差,锚点C与锚点B在数据帧交互中角色相同,此处不再赘述。然后可根据D TA和D TB间距离差、D TA与D TC间的距离差、距离D AB、距离D AC,确定本端标签设备的坐标。 In the specific implementation, the tag device can determine the distance difference between D TA and D TB based on the data frame interaction between anchor point A, anchor point B, and tag device. In the frame interaction, the distance difference between the D TA and the D TC is determined. The anchor point C and the anchor point B have the same roles in the data frame interaction, which will not be repeated here. Then, the coordinates of the local label device can be determined according to the distance difference between D TA and D TB , the distance difference between D TA and D TC , the distance D AB , and the distance D AC .
由于已经确定出了D TA和D TB间距离差,以及D TA与D TC间的距离差,即标签设备与锚点A和锚点B之间距离的差值是确定的,标签设备与锚点A和锚点C之间距离的差值也是确定的,则距离差在坐标系的意义上可以等效为双曲线,以坐标系中锚点A、锚点B和标签对应的坐标点为例,请参见图2E,图2E是本申请实施例中提供的一种坐标系中设备间距离差等效示意图,如图所示,坐标系中点A、B、T分别为表示锚点A、锚点B和标签设备位置的坐标,由于D T和D TB的距离差是确定的,可将该距离差等效到双曲线中,点T为双曲线上的一点,点A和点B为双曲线的焦点,该双曲线对应的公式为
Figure PCTCN2021108998-appb-000008
其中,根据双曲线的性质,则2a等于D TA和D TB间距离差的绝对值,2b等于D AB,由于双曲线上任意一点到点A和点B的距离差的绝对值,都等于点T到点A和点B的距离差的绝对值,想要求解出标签设备T的坐标(x,y),还需要另一个关于点T的双曲线,根据两个双曲线即可确定出点T的坐标。同理,再在该坐标系中确定出用于表征锚点C位置的点C,即可得到等效D TA与D TC间的距离差的另一个双曲线,点T为该双曲线上的一点,该双曲线的2a则等于D TA与D TC间的距离差的绝对值,2b等于D AC。由于D TA和D TB间距离差、D TA与D TC间的距离 差、距离D AB、距离D AC都是确定了的,基于上述两个双曲线则可确定出标签设备的坐标。
Since the distance difference between D TA and D TB and the distance difference between D TA and D TC have been determined, that is, the difference between the distance between the tag device and anchor point A and anchor point B is determined, the tag device and anchor point B The difference between the distance between point A and anchor point C is also determined, then the distance difference can be equivalent to a hyperbola in the sense of the coordinate system, and the coordinate points corresponding to anchor point A, anchor point B and label in the coordinate system are For example, please refer to FIG. 2E. FIG. 2E is an equivalent schematic diagram of the distance difference between devices in a coordinate system provided in the embodiment of the present application. As shown in the figure, points A, B, and T in the coordinate system represent anchor point A, respectively. , the coordinates of the anchor point B and the position of the label device, since the distance difference between D T and D TB is determined, the distance difference can be equivalent to a hyperbola, point T is a point on the hyperbola, point A and point B is the focus of the hyperbola, and the formula corresponding to the hyperbola is
Figure PCTCN2021108998-appb-000008
Among them, according to the properties of the hyperbola, 2a is equal to the absolute value of the distance difference between D TA and D TB , and 2b is equal to D AB , since the absolute value of the distance difference between any point on the hyperbola and point A and point B is equal to the point The absolute value of the distance difference between T and point A and point B. If you want to solve the coordinate (x, y) of the label device T, you need another hyperbola about the point T. The point can be determined according to the two hyperbolas. The coordinates of T. In the same way, point C used to characterize the position of anchor point C is determined in this coordinate system, and another hyperbola of the distance difference between the equivalent D TA and D TC can be obtained, and the point T is the hyperbola on the hyperbola. At one point, 2a of the hyperbola is equal to the absolute value of the distance difference between D TA and D TC , and 2b is equal to D AC . Since the distance difference between D TA and D TB , the distance difference between D TA and D TC , the distance D AB , and the distance D AC are all determined, the coordinates of the label device can be determined based on the above two hyperbolas.
此外,若标签设备为物联网标签设备,其可以将自身的坐标数据发送给终端设备例如手机,通过手机显示标签设备的位置。物联网标签设备中可以设置有UWB、蓝牙、WIFI等无线传输模块,标签设备将计算其坐标的各时间信息或者计算出的各距离差数据发送给手机终端,手机终端通过运行的定位引擎(Local Engine),确定出标签设备的位置并在手机界面中进行显示。若标签设备自身为手机等终端设备,则可直接将数据通过SPI接口返回给手机中的应用,通过运行在手机上的定位引擎计算出坐标并在手机界面中进行显示。In addition, if the tag device is an IoT tag device, it can send its own coordinate data to a terminal device such as a mobile phone, and display the location of the tag device through the mobile phone. The IoT tag device can be equipped with wireless transmission modules such as UWB, Bluetooth, WIFI, etc. The tag device sends the time information of its coordinates or the calculated distance difference data to the mobile terminal, and the mobile terminal passes the running positioning engine (Local). Engine), determine the position of the label device and display it in the mobile phone interface. If the tag device itself is a terminal device such as a mobile phone, the data can be directly returned to the application in the mobile phone through the SPI interface, and the coordinates are calculated by the positioning engine running on the mobile phone and displayed on the mobile phone interface.
可见,本示例中,标签设备还会确定出该第一距离与第三距离之间的该距离差,该第三距离为本端设备与该锚点C之间的距离D TC,然后根据该第一距离与该第二距离之间的该距离差、该第一距离与该第三距离之间的该距离差、该距离D AB、该距离D AC,确定本端设备的坐标,标签设备可以根据接收到的各种数据计算出自己的位置,无需依靠其他通信网络获取自身位置信息。 It can be seen that in this example, the tag device also determines the distance difference between the first distance and the third distance, where the third distance is the distance D TC between the end device and the anchor point C, and then according to the distance D TC between the end device and the anchor point C The distance difference between the first distance and the second distance, the distance difference between the first distance and the third distance, the distance D AB , the distance D AC , determine the coordinates of the local device, the label device It can calculate its own location according to various received data, without relying on other communication networks to obtain its own location information.
请参阅图3A,图3A是本申请实施例提供的一种数据帧传输方法的流程示意图。如图所示,本数据帧传输方法包括以下步骤。Please refer to FIG. 3A , which is a schematic flowchart of a data frame transmission method provided by an embodiment of the present application. As shown in the figure, the data frame transmission method includes the following steps.
S301,标签设备接收数据帧A2。S301, the tag device receives the data frame A2.
其中,所述数据帧A2包括第一指示域、第二指示域、第三指示域,所述第一指示域用于指示锚点A发送数据帧A1的时间t4,所述第二指示域用于指示所述锚点A侦听到数据帧B的时间t5,所述第三指示域用于指示所述锚点A发送所述数据帧A2的时间t6,所述数据帧B是所述锚点B在侦听到所述数据帧A1、延时时长Td1后广播的数据帧。The data frame A2 includes a first indication field, a second indication field, and a third indication field. The first indication field is used to indicate the time t4 when the anchor point A sends the data frame A1, and the second indication field is used for At the time t5 indicating that the anchor point A hears the data frame B, the third indication field is used to indicate the time t6 when the anchor point A sends the data frame A2, and the data frame B is the anchor point. Point B broadcasts the data frame after listening to the data frame A1 and the delay time Td1.
具体实现中,标签设备可以是图1B中所示的标签设备,其具体的结构可以为图1C和图1D所示。由于各设备数据帧交互时需要提取数据,例如标签设备需要从数据帧A1中提取出时间t4等,可以对数据帧格式进行定义,使得各设备间的交互比较简单。In a specific implementation, the labeling device may be the labeling device shown in FIG. 1B , and its specific structure may be as shown in FIG. 1C and FIG. 1D . Since each device needs to extract data when interacting with data frames, for example, the tag device needs to extract the time t4 from the data frame A1, etc., the data frame format can be defined to make the interaction between the devices relatively simple.
数据帧格式的定义可基于设备间交互需要提取的数据确定,举例来说,将数据交互时的三种数据帧定义为Poll帧(一种控制帧),回复(Reply)帧和最终(Final)帧,数据帧A1即为Poll帧,数据帧B即为Reply帧,数据帧A2即为Final帧,在802.15.4z为基础帧格式下,自定义如图3B所示的数据帧格式,如图所示,锚点A在t6时刻会按照数据帧格式将所有内容填充得到数据帧A2,并将其发送给标签设备。其中,“pll_tx_ts”即第一指示域,填充的内容为锚点A发出poll帧即数据帧A1的时间t4,“res_rx_ts”即第二指示域,填充的内容为锚点A接收到Reply帧即数据帧B的时间t5,“final_tx_ts”即第三指示域,填充的内容为锚点A发出Final帧即数据帧A2的时间t6。标签设备接收到数据帧A2时,即可获得自身需要的数据。此外,数据帧中包括MAC头(MAC Header)、帧校验序列FCS和MAC负载(MAC Paylod):类型域(Type)、长度域(Length)、标识(ID)。The definition of the data frame format can be determined based on the data that needs to be extracted for the interaction between devices. For example, three data frames during data interaction are defined as Poll frame (a kind of control frame), reply (Reply) frame and final (Final) frame, data frame A1 is Poll frame, data frame B is Reply frame, data frame A2 is Final frame, under 802.15.4z as the basic frame format, customize the data frame format shown in Figure 3B, as shown in the figure As shown, the anchor point A will fill in all the content according to the data frame format to obtain the data frame A2 at time t6, and send it to the tag device. Among them, "pll_tx_ts" is the first indication field, the filled content is the time t4 when anchor A sends the poll frame, that is, the data frame A1, and "res_rx_ts" is the second indication field, and the filled content is that anchor A receives the Reply frame, that is, At the time t5 of the data frame B, "final_tx_ts" is the third indication field, and the filled content is the time t6 when the anchor point A sends the Final frame, that is, the data frame A2. When the tag device receives the data frame A2, it can obtain the data it needs. In addition, the data frame includes MAC header (MAC Header), frame check sequence FCS and MAC payload (MAC Paylod): type field (Type), length field (Length), identification (ID).
本申请实施例中,标签设备接收数据帧A2,该数据帧A2包括第一指示域、第二指示域、第三指示域,该第一指示域用于指示锚点A发送数据帧A1的时间t4,该第二指示域用于指示该锚点A侦听到数据帧B的时间t5,该第三指示域用于指示该锚点A发送该数据帧A2的时间t6,该数据帧B是该锚点B在侦听到该数据帧A1、延时时长Td1后广播的数据帧,可见,对数据帧的格式进行了定义,将标签设备需要的数据填充到了数据帧中对应的区域,有利于提高数据传输的效率和灵活性。In the embodiment of this application, the tag device receives the data frame A2, where the data frame A2 includes a first indication field, a second indication field, and a third indication field, and the first indication field is used to indicate the time when the anchor point A sends the data frame A1 t4, the second indication field is used to indicate the time t5 when the anchor point A hears the data frame B, and the third indication field is used to indicate the time t6 when the anchor point A sends the data frame A2, the data frame B is The anchor point B broadcasts the data frame after listening to the data frame A1 and the delay time Td1. It can be seen that the format of the data frame is defined, and the data required by the tag device is filled into the corresponding area in the data frame. It is beneficial to improve the efficiency and flexibility of data transmission.
在一个可能的示例中,所述方法还包括:解析所述数据帧A2,得到所述时间t4、所述时间t5、所述时间t6和所述距离D AB;根据时间t1、时间t3、所述时间t4、所述时间t5、所述时间t6确定所述时长Td1,所述时间t1为侦听到来自锚点A的数据帧A1的时间,所述时间t3为侦听到来自所述锚点A的数据帧A2的时间;根据所述锚点A与所述锚点B之间的距离D AB、时间t2、所述时间t1、所述时长Td1确定第一距离与第二距离之间的所述距离差,所述第一距离为本端设备与所述锚点之间的距离D TA,所述第二距离为本端设备与所述锚点B之间的距离D TB,所述时间t2为侦听到来自锚点B的数据帧B的时间t1、时间t3。 In a possible example, the method further includes: parsing the data frame A2 to obtain the time t4, the time t5, the time t6 and the distance D AB ; The time t4, the time t5, and the time t6 determine the duration Td1, the time t1 is the time when the data frame A1 from the anchor point A is detected, and the time t3 is the time when the data frame A1 from the anchor point A is detected. The time of the data frame A2 of point A; the distance between the first distance and the second distance is determined according to the distance D AB between the anchor point A and the anchor point B, the time t2, the time t1, and the time length Td1 the distance difference, the first distance is the distance D TA between the end device and the anchor point, the second distance is the distance D TB between the end device and the anchor point B, so The time t2 is the time t1 and the time t3 when the data frame B from the anchor point B is detected.
具体实现中,标签设备在收到数据帧A2后,对数据帧A2进行解析,可以直接按照帧格 式的内容,分别从不同指示域中提取相应的数据,然后可以读取本端设备之前记录的时间时间t1、时间t3,再根据时间t1、时间t3,以及数据帧A2中解析得到的时间t4、时间t5、时间t6确定时长Td1,再进一步根据D AB、时间t2、所述时间t1、所述时长Td1进行距离差的确定。 In the specific implementation, after receiving the data frame A2, the tag device parses the data frame A2, and can directly extract the corresponding data from different indication fields according to the content of the frame format, and then can read the data previously recorded by the local device. Time time t1, time t3, and then determine the time length Td1 according to time t1, time t3, and time t4, time t5, and time t6 obtained by analysis in the data frame A2, and further according to D AB , time t2, the time t1, all The time length Td1 is used to determine the distance difference.
可见,本示例中,标签设备接收到数据帧A2后,会解析数据帧A2,得到时间t4、时间t5、时间t6和距离D AB;根据时间t1、时间t3、时间t4、时间t5、时间t6确定时长Td1,时间t1为侦听到来自锚点A的数据帧A1的时间,时间t3为侦听到来自锚点A的数据帧A2的时间;根据锚点A与锚点B之间的距离D AB、时间t2、时间t1、时长Td1确定第一距离与第二距离之间的距离差,由于数据帧A2中不同指示域分别对应标签设备所需要的不同的数据,标签设备解析数据帧A2,可直接获得相应数据,有利于提高数据传输的效率和灵活性。 It can be seen that in this example, after receiving the data frame A2, the tag device will parse the data frame A2 to obtain time t4, time t5, time t6 and distance D AB ; according to time t1, time t3, time t4, time t5, time t6 Determine the duration Td1, the time t1 is the time when the data frame A1 from the anchor point A is detected, and the time t3 is the time when the data frame A2 from the anchor point A is detected; according to the distance between the anchor point A and the anchor point B D AB , time t2, time t1, and duration Td1 determine the distance difference between the first distance and the second distance. Since different indication fields in the data frame A2 correspond to different data required by the label device, the label device parses the data frame A2 , the corresponding data can be obtained directly, which is beneficial to improve the efficiency and flexibility of data transmission.
在一个可能的示例的示例中,所述距离D AB根据单面双向测距SS-TWR算法,利用所述时间t4、所述时间t5、所述锚点B侦听到所述数据帧A1的时间t7、所述锚点B广播所述数据帧B的时间t8计算得到的。 In a possible example, the distance D AB uses the time t4, the time t5, and the anchor point B to sense the distance of the data frame A1 according to the single-sided two-way ranging SS-TWR algorithm. The time t7 is calculated from the time t8 when the anchor point B broadcasts the data frame B.
具体实现中,采用SS-TWR算法对锚点A和锚点B之间的距离进行计算,通过,锚点A发送数据帧A1和接收数据帧B的时间,以及锚点B接收数据帧A1和发送数据帧B的时间,确定出两次数据帧传输的时长,进而根据两设备间数据传输的时长确定出两设备间的距离D AB,过程中不要求不同设备的时钟精确同步,因而,无需对各锚点设备的时钟进行同步。 In the specific implementation, the SS-TWR algorithm is used to calculate the distance between the anchor point A and the anchor point B, through which time the anchor point A sends the data frame A1 and receives the data frame B, and the anchor point B receives the data frame A1 and B. The time of sending data frame B determines the duration of two data frame transmissions, and then determines the distance D AB between the two devices according to the duration of data transmission between the two devices. The process does not require precise synchronization of the clocks of different devices, so there is no need to Synchronize the clocks of each anchor device.
可见,本示例中,距离是D AB根据单面双向测距SS-TWR算法,利用时间t4、时间t5、锚点B侦听到数据帧A1的时间t7、锚点B广播数据帧B的时间t8计算得到的,设备之间无需进行精确的时钟同步,有利于节约成本。 It can be seen that in this example, the distance is the time when DAB uses time t4, time t5, time t7 when anchor point B senses data frame A1, and time when anchor point B broadcasts data frame B according to the one-sided two-way ranging SS-TWR algorithm. Calculated by t8, there is no need to perform precise clock synchronization between devices, which is beneficial to saving costs.
在一个可能的示例中,所述数据帧A2还包括第四指示域,所述第四指示域用于指示所述锚点A与所述锚点B之间的距离D ABIn a possible example, the data frame A2 further includes a fourth indication field, where the fourth indication field is used to indicate the distance D AB between the anchor point A and the anchor point B.
具体实现中,请参见图3C,图3C是本申请实施例提供的另一种数据帧的格式,如图所示,数据帧中还包括第四指示域(距离Distance域),锚点A在t6时刻还会将距离D AB填充到数据帧中第四指示域即Distance部分。标签设备接收到数据帧A2后,对该数据帧A2进行解析即可得到该距离D AB,后续确定距离差时标签设备可直接使用该数据。 For a specific implementation, please refer to FIG. 3C , which is another data frame format provided by an embodiment of the present application. As shown in the figure, the data frame further includes a fourth indication field (distance field), and the anchor point A is in the At time t6, the distance D AB will also be filled into the fourth indication field in the data frame, that is, the Distance part. After the tag device receives the data frame A2, the data frame A2 can be analyzed to obtain the distance D AB , and the tag device can directly use the data when determining the distance difference subsequently.
可见,本示例中,数据帧A2中还包括用于指示所述锚点A与所述锚点B之间的距离D AB的第四指示域,有利于提高标签设备确定距离差的效率。 It can be seen that, in this example, the data frame A2 further includes a fourth indication field for indicating the distance D AB between the anchor point A and the anchor point B, which is beneficial to improve the efficiency of the tag device in determining the distance difference.
在一个可能的示例中,所述距离D AB由本端设备计算得到。 In a possible example, the distance D AB is calculated by the local device.
具体实现中,标签设备自身还可根据侦听到的数据帧中的相关时间数据,对距离D AB进行计算,例如根据时间t4、时间t5、锚点B侦听到数据帧A1的时间t7、锚点B广播数据帧B的时间t8,基于SS-TWR算法计算得到距离D ABIn the specific implementation, the tag device itself can also calculate the distance D AB according to the relevant time data in the detected data frame. At the time t8 when the anchor point B broadcasts the data frame B, the distance D AB is calculated based on the SS-TWR algorithm.
可见,本示例中,距离D AB由本端设备计算得到,即标签设备在无法直接获取距离D AB时,可在本端进行计算得到距离D AB,有利于保证本端后续能基于该距离D AB进行距离差确定。 It can be seen that in this example, the distance D AB is calculated by the local device, that is, when the tag device cannot directly obtain the distance D AB , the distance D AB can be obtained by calculating the distance D AB at the local end, which is beneficial to ensure that the local end can follow the distance D AB based on the distance D AB . Perform distance difference determination.
在一个可能的示例中,所述方法还包括:在侦听到来自所述锚点C的数据帧C时,记录当前时间t9,所述数据帧C是所述锚点C在侦听到所述数据帧A1、延时时长Td2后广播的数据帧;在侦听到来自所述锚点A的数据帧A3时,记录当前时间t10,所述数据帧A3携带有所述锚点A发送所述数据帧A1的时间t4、所述锚点A侦听到所述数据帧C的时间t11、所述锚点A发送所述数据帧A3的时间t12以及所述锚点A与所述锚点C之间的距离D AC;根据所述时间t1、所述时间t10、所述时间t4、所述时间t11、所述时间t12确定所述时长Td2;根据所述距离D AC、所述时间t9、所述时间t1、所述时长Td2确定所述第一距离与第三距离之间的所述距离差,所述第三距离为本端设备与所述锚点C之间的距离D TC;根据所述第一距离与所述第二距离之间的所述距离差、所述第一距离与所述第三距离之间的所述距离差、所述距离D AB、所述距离D AC,确定本端设备的坐标。 In a possible example, the method further includes: when listening to the data frame C from the anchor point C, recording the current time t9, the data frame C is the data frame C that the anchor point C heard when listening The data frame A1 and the data frame broadcast after the delay time Td2; when listening to the data frame A3 from the anchor point A, record the current time t10, and the data frame A3 carries the data sent by the anchor point A. The time t4 of the data frame A1, the time t11 when the anchor point A senses the data frame C, the time t12 when the anchor point A sends the data frame A3, and the time between the anchor point A and the anchor point The distance D AC between C; the duration Td2 is determined according to the time t1, the time t10, the time t4, the time t11, and the time t12; according to the distance D AC , the time t9 , the time t1 and the duration Td2 determine the distance difference between the first distance and the third distance, where the third distance is the distance DTC between the end device and the anchor point C ; According to the distance difference between the first distance and the second distance, the distance difference between the first distance and the third distance, the distance D AB , the distance D AC , to determine the coordinates of the local device.
具体实现中,标签设备先基于锚点A、锚点B和自身的数据帧传输的时间差,确定出标 签设备到锚点A的距离D TA,以及标签设备到锚点B的距离D TB,进而可确定D TA和D TB之间的距离差,同理,还可计算出标签设备到锚点C的距离D TC,并进一步确定出D TA和D TC之间的距离差,最后则可根据确定出的D TA和D TB之间的距离差,D TA和D TC之间的距离差,以及距离D AB和距离D AC,确定出本端设备的坐标。 In the specific implementation, the tag device first determines the distance D TA from the tag device to the anchor point A and the distance D TB from the tag device to the anchor point B based on the time difference between the anchor point A, the anchor point B and its own data frame transmission, and then The distance difference between D TA and D TB can be determined. Similarly, the distance D TC from the tag device to the anchor point C can also be calculated, and the distance difference between D TA and D TC can be further determined. Finally, according to The determined distance difference between D TA and D TB , the distance difference between D TA and D TC , as well as the distance D AB and the distance D AC , determine the coordinates of the local device.
可见,本示例中,标签设备还会确定出该第一距离与第三距离之间的该距离差,该第三距离为本端设备与该锚点C之间的距离D TC,然后根据该第一距离与该第二距离之间的该距离差、该第一距离与该第三距离之间的该距离差、该距离D AB、该距离D AC,确定本端设备的坐标,标签设备可以根据接收到的各种数据计算出自己的位置,无需依靠其他通信网络获取自身位置信息。 It can be seen that in this example, the tag device also determines the distance difference between the first distance and the third distance, where the third distance is the distance D TC between the end device and the anchor point C, and then according to the distance D TC between the end device and the anchor point C The distance difference between the first distance and the second distance, the distance difference between the first distance and the third distance, the distance D AB , the distance D AC , determine the coordinates of the local device, the label device It can calculate its own location according to various received data, without relying on other communication networks to obtain its own location information.
请参见图4,图4是本申请实施例提供的另一种数据帧传输方法的流程示意图。如图所示,本数据帧传输方法包括如下步骤。Referring to FIG. 4 , FIG. 4 is a schematic flowchart of another data frame transmission method provided by an embodiment of the present application. As shown in the figure, the data frame transmission method includes the following steps.
S401,锚点设备发送数据帧A2。S401, the anchor device sends a data frame A2.
其中,所述数据帧A2包括第一指示域、第二指示域、第三指示域,所述第一指示域用于指示锚点A发送数据帧A1的时间t4,所述第二指示域用于指示所述锚点A侦听到数据帧B的时间t5,所述第三指示域用于指示所述锚点A发送所述数据帧A2的时间t6,所述数据帧B是所述锚点B在侦听到所述数据帧A1、延时时长Td1后广播的数据帧。The data frame A2 includes a first indication field, a second indication field, and a third indication field. The first indication field is used to indicate the time t4 when the anchor point A sends the data frame A1, and the second indication field is used for At the time t5 indicating that the anchor point A hears the data frame B, the third indication field is used to indicate the time t6 when the anchor point A sends the data frame A2, and the data frame B is the anchor point. Point B broadcasts the data frame after listening to the data frame A1 and the delay time Td1.
具体实现中,锚点设备可以是图1B中所示的锚点A,其具体的结构可以为图1C和图1D所示。锚点设备发送的数据帧A2中不同指示域填充有对应的数据,数据帧的格式为自行定义的,数据帧中的不同指示域分别对应标签设备所需要的不同数据,以便标签设备接收到数据帧后,对数据帧进行解析可直接获取到需要的数据,使得各设备间的交互比较简单。In a specific implementation, the anchor point device may be the anchor point A shown in FIG. 1B , and its specific structure may be as shown in FIG. 1C and FIG. 1D . The different indication fields in the data frame A2 sent by the anchor device are filled with corresponding data. The format of the data frame is self-defined, and the different indication fields in the data frame correspond to different data required by the label device, so that the label device can receive the data. After the frame, the required data can be directly obtained by parsing the data frame, which makes the interaction between the devices relatively simple.
本申请实施例中,锚点设备发送数据帧A2,该数据帧A2包括第一指示域、第二指示域、第三指示域,该第一指示域用于指示锚点A发送数据帧A1的时间t4,该第二指示域用于指示该锚点A侦听到数据帧B的时间t5,该第三指示域用于指示该锚点A发送该数据帧A2的时间t6,该数据帧B是该锚点B在侦听到该数据帧A1、延时时长Td1后广播的数据帧,可见,对数据帧的格式进行了定义,将标签设备需要的数据填充到了数据帧中对应的区域,有利于提高数据传输的效率和灵活性。In the embodiment of this application, the anchor point device sends a data frame A2, the data frame A2 includes a first indication field, a second indication field, and a third indication field, and the first indication field is used to instruct the anchor point A to send the data frame A1 Time t4, the second indication field is used to indicate the time t5 when the anchor point A hears the data frame B, and the third indication field is used to indicate the time t6 when the anchor point A sends the data frame A2, the data frame B It is the data frame broadcasted by the anchor point B after listening to the data frame A1 and the delay time Td1. It can be seen that the format of the data frame is defined, and the data required by the label device is filled into the corresponding area in the data frame. It is beneficial to improve the efficiency and flexibility of data transmission.
在一个可能的示例中,所述数据帧A2用于标签设备执行以下操作:解析所述数据帧A2,得到所述时间t4、所述时间t5、所述时间t6和所述距离D AB;根据时间t1、时间t3、所述时间t4、所述时间t5、所述时间t6确定所述时长Td1,所述时间t1为侦听到来自锚点A的数据帧A1的时间,所述时间t3为侦听到来自所述锚点A的数据帧A2的时间;根据所述锚点A与所述锚点B之间的距离D AB、时间t2、所述时间t1、所述时长Td1确定第一距离与第二距离之间的所述距离差,所述第一距离为本端设备与所述锚点A之间的距离D TA,所述第二距离为本端设备与所述锚点B之间的距离D TB,所述时间t2为侦听到来自锚点B的数据帧B的时间。 In a possible example, the data frame A2 is used for the tag device to perform the following operations: parsing the data frame A2 to obtain the time t4, the time t5, the time t6 and the distance D AB ; The time t1, time t3, the time t4, the time t5, and the time t6 determine the duration Td1, the time t1 is the time when the data frame A1 from the anchor point A is detected, and the time t3 is The time when the data frame A2 from the anchor point A is heard; the first time is determined according to the distance D AB between the anchor point A and the anchor point B, the time t2, the time t1, and the time length Td1 The distance difference between the distance and the second distance, the first distance is the distance D TA between the end device and the anchor point A, and the second distance is the end device and the anchor point B The distance D TB between them, the time t2 is the time when the data frame B from the anchor point B is detected.
具体实现中,锚点设备发出的数据帧A2,用于标签设备接收到数据帧A2后,对其进行解析,以按照帧格式的内容,提取出需要的数据,并进一步结合标签设备自身记录的数据进行距离差的确定。In the specific implementation, the data frame A2 sent by the anchor device is used for the label device to parse the data frame A2 after receiving it, so as to extract the required data according to the content of the frame format, and further combine the data recorded by the label device itself. The data is used to determine the distance difference.
可见,本示例中,数据帧A2用于标签设备在收到数据帧A2后,对数据帧A2进行解析,得到相应的数据,并根据标签设备之前记录的时间时间t1、时间t3,以及数据帧A2中解析得到的时间t4、时间t5、时间t6确定时长Td1,再进一步根据D AB、时间t2、所述时间t1、所述时长Td1进行距离差的确定,由于数据帧A2中不同指示域分别对应标签设备所需要的不同的数据,标签设备解析数据帧A2,可直接获得相应数据,有利于提高数据传输的效率和灵活性。 It can be seen that in this example, the data frame A2 is used for the label device to parse the data frame A2 after receiving the data frame A2 to obtain the corresponding data, and according to the time t1 and time t3 recorded by the label device before, and the data frame The time t4, time t5, and time t6 obtained by analysis in A2 determine the duration Td1, and then further determine the distance difference according to D AB , time t2, the time t1, and the duration Td1, because the different indication fields in the data frame A2 are respectively Corresponding to the different data required by the label device, the label device parses the data frame A2 and can directly obtain the corresponding data, which is beneficial to improve the efficiency and flexibility of data transmission.
在一个可能的示例中,所述距离D AB根据单面双向测距SS-TWR算法,利用所述时间t4、所述时间t5、所述锚点B侦听到所述数据帧A1的时间t7、所述锚点B广播所述数据帧B的时间t8计算得到的。 In a possible example, the distance D AB uses the time t4, the time t5, and the time t7 when the anchor point B senses the data frame A1 according to the one-sided two-way ranging SS-TWR algorithm. , calculated by the time t8 at which the anchor point B broadcasts the data frame B.
具体实现中,用SS-TWR算法对锚点A和锚点B之间的距离进行计算,通过,锚点A发送数据帧A1和接收数据帧B的时间,以及锚点B接收数据帧A1和发送数据帧B的时间,确定出两次数据帧传输的时长,进而根据两设备间数据传输的时长确定出两设备间的距离D AB,过程中不要求不同设备的时钟精确同步,因而,无需对各锚点设备的时钟进行同步。 In the specific implementation, the SS-TWR algorithm is used to calculate the distance between the anchor point A and the anchor point B, through which time the anchor point A sends the data frame A1 and receives the data frame B, and the anchor point B receives the data frame A1 and the time. The time of sending data frame B determines the duration of two data frame transmissions, and then determines the distance D AB between the two devices according to the duration of data transmission between the two devices. The process does not require precise synchronization of the clocks of different devices, so there is no need to Synchronize the clocks of each anchor device.
可见,本示例中,距离是D AB根据单面双向测距SS-TWR算法,利用时间t4、时间t5、锚点B侦听到数据帧A1的时间t7、锚点B广播数据帧B的时间t8计算得到的,设备之间无需进行精确的时钟同步,有利于节约成本。 It can be seen that in this example, the distance is the time when DAB uses time t4, time t5, time t7 when anchor point B senses data frame A1, and time when anchor point B broadcasts data frame B according to the one-sided two-way ranging SS-TWR algorithm. Calculated by t8, there is no need to perform precise clock synchronization between devices, which is beneficial to saving costs.
在一个可能的示例中,所述数据帧A2还包括第四指示域,所述第四指示域用于指示所述锚点A与所述锚点B之间的距离D ABIn a possible example, the data frame A2 further includes a fourth indication field, where the fourth indication field is used to indicate the distance D AB between the anchor point A and the anchor point B.
具体实现中,锚点设备还可以将距离D AB填充到数据帧中第四指示域中,是的标签设备接收到数据帧A2后,对该数据帧A2进行解析后,还能得到距离D AB,后续确定距离差时标签设备可直接使用该数据。 In the specific implementation, the anchor device can also fill the distance D AB into the fourth indication field in the data frame. Yes, after the tag device receives the data frame A2, after parsing the data frame A2, the distance D AB can also be obtained. , the tag device can directly use the data when determining the distance difference later.
可见,本示例中,数据帧A2中还包括用于指示所述锚点A与所述锚点B之间的距离D AB的第四指示域,有利于提高标签设备确定距离差的效率。 It can be seen that, in this example, the data frame A2 further includes a fourth indication field for indicating the distance D AB between the anchor point A and the anchor point B, which is beneficial to improve the efficiency of the tag device in determining the distance difference.
在一个可能的示例中,所述距离D AB由所述标签设备计算得到。 In a possible example, the distance D AB is calculated by the tag device.
具体实现中,标签设备自身还可根据侦听到的数据帧中的相关时间数据,对距离D AB进行计算,例如根据时间t4、时间t5、锚点B侦听到数据帧A1的时间t7、锚点B广播数据帧B的时间t8,基于SS-TWR算法计算得到距离D ABIn the specific implementation, the tag device itself can also calculate the distance D AB according to the relevant time data in the detected data frame. At the time t8 when the anchor point B broadcasts the data frame B, the distance D AB is calculated based on the SS-TWR algorithm.
可见,本示例中,距离D AB由标签设备计算得到,即标签设备在无法直接获取距离D AB时,可在标签设备自身进行计算得到距离D AB,有利于保证本端后续能基于该距离D AB进行距离差确定。 It can be seen that in this example, the distance D AB is calculated by the label device, that is, when the label device cannot directly obtain the distance D AB , the distance D AB can be calculated by the label device itself, which is beneficial to ensure that the local end can follow the distance D AB based on the distance D AB . AB performs distance difference determination.
请参见图5,图5是本申请实施例提供的另一种距离差确定方法的流程示意图。如图所示,本距离差确定方法包括如下步骤。Referring to FIG. 5 , FIG. 5 is a schematic flowchart of another method for determining a distance difference provided by an embodiment of the present application. As shown in the figure, the method for determining the distance difference includes the following steps.
S501,锚点A发送数据帧A1。S501, the anchor point A sends a data frame A1.
其中,锚点A发送数据帧A1的时间为时间t4。The time when the anchor point A sends the data frame A1 is time t4.
S502,锚点B侦听到数据帧A1、延时时长Td1后广播数据帧B。S502, the anchor point B broadcasts the data frame B after listening to the data frame A1 and the delay time Td1.
S503,标签设备侦听到数据帧A1时,记录当前时刻t1。S503, when the tag device detects the data frame A1, it records the current time t1.
S504,锚点A侦听到数据帧B。S504, the anchor point A hears the data frame B.
其中,锚点A侦听到数据帧B的时间为时间t5。The time when the anchor point A senses the data frame B is time t5.
S505,标签设备侦听到数据侦听到数据帧B时,记录当前时间t2。S505, when the tag device detects the data and detects the data frame B, it records the current time t2.
S506,锚点A发送数据帧A2。S506, the anchor point A sends the data frame A2.
其中,锚点A发送数据帧A2的时间为时间t6。The time when the anchor point A sends the data frame A2 is time t6.
S507,标签设备侦听到数据帧A2时,记录当前时间t3。S507, when the tag device detects the data frame A2, it records the current time t3.
S508,标签设备根据时间t1、时间t3、时间t4、时间t5、时间t6确定时长Td1。S508, the label device determines the duration Td1 according to the time t1, the time t3, the time t4, the time t5, and the time t6.
S509,标签设备根据锚点A与锚点B之间的距离DAB、时间t2、时间t1、时长Td1确定第一距离与第二距离之间的距离差。S509 , the tag device determines the distance difference between the first distance and the second distance according to the distance DAB between the anchor point A and the anchor point B, the time t2 , the time t1 , and the time length Td1 .
本申请实施例中,锚点A先发送数据帧A1,锚点A发送数据帧A1的时间为时间t4,然后锚点B侦听到数据帧A1、延时时长Td1后广播数据帧B,标签设备侦听到数据帧A1时,记录当前时刻t1,之后,锚点A侦听到数据帧B,锚点A侦听到数据帧B的时间为时间t5,标签设备侦听到数据侦听到数据帧B时,记录当前时间t2,锚点A再发送数据帧A2,锚点A发送数据帧A2的时间为时间t6,标签设备侦听到数据帧A2时,记录当前时间t3,进一步的标签设备根据时间t1、时间t3、时间t4、时间t5、时间t6确定时长Td1,最后根据锚点A与锚点B之间的距离DAB、时间t2、时间t1、时长Td1确定第一距离与第二距离之间的距离差。可见,整个距离差确定过程中,锚点A发送了两个数据帧,锚点B发送了一个数据帧,而标签设备只需要接收数据帧,自身无需发送数据帧,有利于提高定位系统中标签设备的容量,减少标签设备功耗。In the embodiment of the present application, the anchor point A sends the data frame A1 first, the time when the anchor point A sends the data frame A1 is time t4, and then the anchor point B listens to the data frame A1 and broadcasts the data frame B after the delay time Td1. When the device detects the data frame A1, it records the current time t1. After that, the anchor point A detects the data frame B, and the time when the anchor point A detects the data frame B is time t5, and the tag device detects the data. When the data frame is B, the current time t2 is recorded, and the anchor point A sends the data frame A2 again. The time when the anchor point A sends the data frame A2 is time t6. When the tag device detects the data frame A2, the current time t3 is recorded, and further tags The device determines the duration Td1 according to time t1, time t3, time t4, time t5, and time t6, and finally determines the first distance and the second distance according to the distance DAB between anchor point A and anchor point B, time t2, time t1, and duration Td1. The distance difference between the distances. It can be seen that in the whole process of distance difference determination, anchor point A sends two data frames, anchor point B sends one data frame, and the tag device only needs to receive data frames, and does not need to send data frames by itself, which is conducive to improving the labeling system in the positioning system. The capacity of the device reduces the power consumption of the label device.
与上述图2A所示的实施例一致的,请参见图6,图6是本申请实施提供的一种距离差确定装置60的组成结构示意图。如图所示,本距离差确定装置60包括:Consistent with the embodiment shown in FIG. 2A above, please refer to FIG. 6 . FIG. 6 is a schematic structural diagram of a distance difference determination device 60 provided by the implementation of the present application. As shown in the figure, the distance difference determination device 60 includes:
第一确定单元601,用于确定时间t1、时间t2和时间t3,所述时间t1为侦听到来自锚点A的数据帧A1的时间,所述时间t2为侦听到来自锚点B的数据帧B的时间,所述时间t3为侦听到来自所述锚点A的数据帧A2的时间,所述数据帧B是所述锚点B在侦听到所述数据帧A1、延时时长Td1后广播的数据帧,所述数据帧A2携带有所述锚点A发送所述数据帧A1的时间t4、所述锚点A侦听到所述数据帧B的时间t5以及所述锚点A发送所述数据帧A2的时间t6;The first determination unit 601 is used to determine time t1, time t2 and time t3, where the time t1 is the time when the data frame A1 from the anchor point A is detected, and the time t2 is the time when the data frame A1 from the anchor point B is detected. The time of data frame B, the time t3 is the time when the data frame A2 from the anchor point A is detected, and the data frame B is the time when the anchor point B listens to the data frame A1, delays The data frame broadcast after the duration Td1, the data frame A2 carries the time t4 when the anchor point A sends the data frame A1, the time t5 when the anchor point A hears the data frame B, and the anchor point A. Time t6 when point A sends the data frame A2;
第二确定单元602,用于根据所述时间t1、所述时间t3、所述时间t4、所述时间t5、所述时间t6确定所述时长Td1;a second determining unit 602, configured to determine the duration Td1 according to the time t1, the time t3, the time t4, the time t5, and the time t6;
第三确定单元603,用于根据所述锚点A与所述锚点B之间的距离D AB、所述时间t2、所述时间t1、所述时长Td1确定第一距离与第二距离之间的所述距离差,所述第一距离为本端设备与所述锚点A之间的距离D TA,所述第二距离为本端设备与所述锚点B之间的距离D TBThe third determining unit 603 is configured to determine the difference between the first distance and the second distance according to the distance D AB between the anchor point A and the anchor point B, the time t2, the time t1, and the time length Td1 The distance difference between, the first distance is the distance D TA between the end device and the anchor point A, and the second distance is the distance D TB between the end device and the anchor point B .
在一个可能的示例中,所述时间t1与所述时间t3之间的时间差为时间差Δt1,所述时间t6与所述时间t4的时间差为时间差Δt2,所述时间t5与所述时间t4之间的时间差为时间差Δt3;所述时间差Δt1与所述时间差Δt2的比值为第一比值;所述时长Td1与所述时间差Δt3的比值为第二比值;在忽略数据帧飞行时长的影响的情况下,所述第一比值和所述第二比值相同。In a possible example, the time difference between the time t1 and the time t3 is the time difference Δt1, the time difference between the time t6 and the time t4 is the time difference Δt2, and the time difference between the time t5 and the time t4 The time difference is the time difference Δt3; the ratio of the time difference Δt1 to the time difference Δt2 is the first ratio; the ratio of the duration Td1 to the time difference Δt3 is the second ratio; ignoring the influence of the data frame flight duration, The first ratio and the second ratio are the same.
在一个可能的示例中,所述时长Td1通过如下公式计算得到:
Figure PCTCN2021108998-appb-000009
In a possible example, the duration Td1 is calculated by the following formula:
Figure PCTCN2021108998-appb-000009
在一个可能的示例中,所述第一距离与第二距离之间的所述距离差通过如下公式计算得到:D TA-D TB=D AB-C×(t2-t1-T d),其中,C为光速。 In a possible example, the distance difference between the first distance and the second distance is calculated by the following formula: D TA -D TB =D AB -C×(t2-t1-T d ), where , C is the speed of light.
在一个可能的示例中,所述距离D AB根据单面双向测距SS-TWR算法,利用所述时间t4、所述时间t5、所述锚点B侦听到所述数据帧A1的时间t7、所述锚点B广播所述数据帧B的时间t8计算得到的。 In a possible example, the distance D AB uses the time t4, the time t5, and the time t7 when the anchor point B senses the data frame A1 according to the one-sided two-way ranging SS-TWR algorithm. , calculated by the time t8 at which the anchor point B broadcasts the data frame B.
在一个可能的示例中,所述数据帧A2还携带有所述距离D ABIn a possible example, the data frame A2 also carries the distance D AB .
在一个可能的示例中,所述距离D AB由本端设备计算得到。 In a possible example, the distance D AB is calculated by the local device.
在一个可能的示例中,所述第一确定单元601具体用于:在侦听到来自所述锚点A的数据帧A1时,记录当前时间t1;在侦听到来自所述锚点B的数据帧B时,记录当前时间t2;在侦听到来自所述锚点A的数据帧A2时,记录当前时间t3。In a possible example, the first determining unit 601 is specifically configured to: record the current time t1 when the data frame A1 from the anchor point A is detected; When the data frame is B, the current time t2 is recorded; when the data frame A2 from the anchor point A is detected, the current time t3 is recorded.
在一个可能的示例中,所述装置60还包括:第四确定单元604,用于在侦听到来自所述锚点C的数据帧C时,记录当前时间t9,所述数据帧C是所述锚点C在侦听到所述数据帧A1、延时时长Td2后广播的数据帧;在侦听到来自所述锚点A的数据帧A3时,记录当前时间t10,所述数据帧A3携带有所述锚点A发送所述数据帧A1的时间t4、所述锚点A侦听到所述数据帧C的时间t11、所述锚点A发送所述数据帧A3的时间t12以及所述锚点A与所述锚点C之间的距离D AC;根据所述时间t1、所述时间t10、所述时间t4、所述时间t11、所述时间t12确定所述时长Td2;根据所述距离D AC、所述时间t9、所述时间t1、所述时长Td2确定所述第一距离与第三距离之间的所述距离差,所述第三距离为本端设备与所述锚点C之间的距离D TC;根据所述第一距离与所述第二距离之间的所述距离差、所述第一距离与所述第三距离之间的所述距离差、所述距离D AB、所述距离D AC,确定本端设备的坐标。 In a possible example, the apparatus 60 further includes: a fourth determining unit 604, configured to record the current time t9 when the data frame C from the anchor point C is detected, and the data frame C is the The anchor point C listens to the data frame A1 and the data frame broadcast after the delay time Td2; when listening to the data frame A3 from the anchor point A, the current time t10 is recorded, and the data frame A3 It carries the time t4 when the anchor point A sends the data frame A1, the time t11 when the anchor point A hears the data frame C, the time t12 when the anchor point A sends the data frame A3, and the time t12 when the anchor point A sends the data frame A3. the distance D AC between the anchor point A and the anchor point C; determine the duration Td2 according to the time t1, the time t10, the time t4, the time t11, and the time t12; The distance D AC , the time t9, the time t1, and the duration Td2 determine the distance difference between the first distance and the third distance, where the third distance is the end device and the anchor distance D TC between points C; according to the distance difference between the first distance and the second distance, the distance difference between the first distance and the third distance, the The distance D AB and the distance D AC determine the coordinates of the local device.
与上述图3A所示的实施例一致的,请参见图7,图7是本申请实施例提供的一种数据帧传输装置的组成结构示意图。如图所示,本数据帧传输装置70包括:接收单元701,用于接收数据帧A2,其中,所述数据帧A2包括第一指示域、第二指示域、第三指示域,所述第一指示域用于指示锚点A发送数据帧A1的时间t4,所述第二指示域用于指示所述锚点A侦听到数据帧B的时间t5,所述第三指示域用于指示所述锚点A发送所述数据帧A2的时间t6, 所述数据帧B是所述锚点B在侦听到所述数据帧A1、延时时长Td1后广播的数据帧。Consistent with the embodiment shown in FIG. 3A above, please refer to FIG. 7 . FIG. 7 is a schematic structural diagram of a data frame transmission apparatus provided by an embodiment of the present application. As shown in the figure, the data frame transmission apparatus 70 includes: a receiving unit 701, configured to receive a data frame A2, wherein the data frame A2 includes a first indication field, a second indication field, and a third indication field, the first indication field An indication field is used to indicate the time t4 when the anchor point A sends the data frame A1, the second indication field is used to indicate the time t5 when the anchor point A hears the data frame B, and the third indication field is used to indicate The time t6 when the anchor point A sends the data frame A2, the data frame B is the data frame broadcast by the anchor point B after listening to the data frame A1 and the delay time Td1.
在一个可能的示例中,所述装置还包括:第一确定单元702,用于解析所述数据帧A2,得到所述时间t4、所述时间t5、所述时间t6和所述距离D AB;根据时间t1、时间t3、所述时间t4、所述时间t5、所述时间t6确定所述时长Td1,所述时间t1为侦听到来自锚点A的数据帧A1的时间,所述时间t3为侦听到来自所述锚点A的数据帧A2的时间;根据所述锚点A与所述锚点B之间的距离D AB、时间t2、所述时间t1、所述时长Td1确定第一距离与第二距离之间的所述距离差,所述第一距离为本端设备与所述锚点之间的距离D TA,所述第二距离为本端设备与所述锚点B之间的距离D TB,所述时间t2为侦听到来自锚点B的数据帧B的时间。 In a possible example, the apparatus further includes: a first determining unit 702, configured to parse the data frame A2 to obtain the time t4, the time t5, the time t6 and the distance D AB ; The duration Td1 is determined according to the time t1, the time t3, the time t4, the time t5, and the time t6. The time t1 is the time when the data frame A1 from the anchor point A is detected, and the time t3 is the time when the data frame A2 from the anchor point A is detected; according to the distance D AB between the anchor point A and the anchor point B, the time t2, the time t1, and the time length Td1 determine the first The distance difference between a distance and a second distance, the first distance is the distance D TA between the end device and the anchor point, and the second distance is the end device and the anchor point B The distance D TB between them, the time t2 is the time when the data frame B from the anchor point B is detected.
在一个可能的示例中,所述距离D AB根据单面双向测距SS-TWR算法,利用所述时间t4、所述时间t5、所述锚点B侦听到所述数据帧A1的时间t7、所述锚点B广播所述数据帧B的时间t8计算得到的。 In a possible example, the distance D AB uses the time t4, the time t5, and the time t7 when the anchor point B senses the data frame A1 according to the one-sided two-way ranging SS-TWR algorithm. , calculated by the time t8 at which the anchor point B broadcasts the data frame B.
在一个可能的示例中,所述数据帧A2还包括第四指示域,所述第四指示域用于指示所述锚点A与所述锚点B之间的距离D ABIn a possible example, the data frame A2 further includes a fourth indication field, where the fourth indication field is used to indicate the distance D AB between the anchor point A and the anchor point B.
在一个可能的示例中,所述距离D AB由本端设备计算得到。 In a possible example, the distance D AB is calculated by the local device.
在一个可能的示例中,所述装置70还包括:第二确定单元703,用于在侦听到来自所述锚点C的数据帧C时,记录当前时间t9,所述数据帧C是所述锚点C在侦听到所述数据帧A1、延时时长Td2后广播的数据帧;在侦听到来自所述锚点A的数据帧A3时,记录当前时间t10,所述数据帧A3携带有所述锚点A发送所述数据帧A1的时间t4、所述锚点A侦听到所述数据帧C的时间t11、所述锚点A发送所述数据帧A3的时间t12以及所述锚点A与所述锚点C之间的距离D AC;根据所述时间t1、所述时间t10、所述时间t4、所述时间t11、所述时间t12确定所述时长Td2;根据所述距离D AC、所述时间t9、所述时间t1、所述时长Td2确定所述第一距离与第三距离之间的所述距离差,所述第三距离为本端设备与所述锚点C之间的距离D TC;根据所述第一距离与所述第二距离之间的所述距离差、所述第一距离与所述第三距离之间的所述距离差、所述距离D AB、所述距离D AC,确定本端设备的坐标。 In a possible example, the apparatus 70 further includes: a second determining unit 703, configured to record the current time t9 when the data frame C from the anchor point C is detected, and the data frame C is the The anchor point C listens to the data frame A1 and the data frame broadcast after the delay time Td2; when listening to the data frame A3 from the anchor point A, the current time t10 is recorded, and the data frame A3 It carries the time t4 when the anchor point A sends the data frame A1, the time t11 when the anchor point A hears the data frame C, the time t12 when the anchor point A sends the data frame A3, and the time t12 when the anchor point A sends the data frame A3. the distance D AC between the anchor point A and the anchor point C; determine the duration Td2 according to the time t1, the time t10, the time t4, the time t11, and the time t12; The distance D AC , the time t9, the time t1, and the duration Td2 determine the distance difference between the first distance and the third distance, where the third distance is the end device and the anchor distance D TC between points C; according to the distance difference between the first distance and the second distance, the distance difference between the first distance and the third distance, the The distance D AB and the distance D AC determine the coordinates of the local device.
与上述图4所示的实施例一致的,请参见图8,图8是本申请实施例提供的另一种数据帧传输装置的组成结构示意图。如图所示,本数据帧传输装置80包括:发送单元801,用于发送数据帧A2,其中,所述数据帧A2包括第一指示域、第二指示域、第三指示域,所述第一指示域用于指示锚点A发送数据帧A1的时间t4,所述第二指示域用于指示所述锚点A侦听到数据帧B的时间t5,所述第三指示域用于指示所述锚点A发送所述数据帧A2的时间t6,所述数据帧B是所述锚点B在侦听到所述数据帧A1、延时时长Td1后广播的数据帧。Consistent with the embodiment shown in FIG. 4 above, please refer to FIG. 8 . FIG. 8 is a schematic structural diagram of another data frame transmission apparatus provided by an embodiment of the present application. As shown in the figure, the data frame transmission apparatus 80 includes: a sending unit 801, configured to send a data frame A2, wherein the data frame A2 includes a first indication field, a second indication field, and a third indication field, and the first indication field An indication field is used to indicate the time t4 when the anchor point A sends the data frame A1, the second indication field is used to indicate the time t5 when the anchor point A hears the data frame B, and the third indication field is used to indicate The time t6 when the anchor point A sends the data frame A2, the data frame B is the data frame broadcast by the anchor point B after listening to the data frame A1 and the delay time Td1.
在一个可能的示例中,所述数据帧A2用于标签设备执行以下操作:解析所述数据帧A2,得到所述时间t4、所述时间t5、所述时间t6和所述距离D AB;根据时间t1、时间t3、所述时间t4、所述时间t5、所述时间t6确定所述时长Td1,所述时间t1为侦听到来自锚点A的数据帧A1的时间,所述时间t3为侦听到来自所述锚点A的数据帧A2的时间;根据所述锚点A与所述锚点B之间的距离D AB、时间t2、所述时间t1、所述时长Td1确定第一距离与第二距离之间的所述距离差,所述第一距离为本端设备与所述锚点A之间的距离D TA,所述第二距离为本端设备与所述锚点B之间的距离D TB,所述时间t2为侦听到来自锚点B的数据帧B的时间。 In a possible example, the data frame A2 is used for the tag device to perform the following operations: parsing the data frame A2 to obtain the time t4, the time t5, the time t6 and the distance D AB ; The time t1, time t3, the time t4, the time t5, and the time t6 determine the duration Td1, the time t1 is the time when the data frame A1 from the anchor point A is detected, and the time t3 is The time when the data frame A2 from the anchor point A is heard; the first time is determined according to the distance D AB between the anchor point A and the anchor point B, the time t2, the time t1, and the time length Td1 The distance difference between the distance and the second distance, the first distance is the distance D TA between the end device and the anchor point A, and the second distance is the end device and the anchor point B The distance D TB between them, the time t2 is the time when the data frame B from the anchor point B is detected.
在一个可能的示例中,所述距离D AB根据单面双向测距SS-TWR算法,利用所述时间t4、所述时间t5、所述锚点B侦听到所述数据帧A1的时间t7、所述锚点B广播所述数据帧B的时间t8计算得到的。 In a possible example, the distance D AB uses the time t4, the time t5, and the time t7 when the anchor point B senses the data frame A1 according to the one-sided two-way ranging SS-TWR algorithm. , calculated by the time t8 at which the anchor point B broadcasts the data frame B.
在一个可能的示例中,所述数据帧A2还包括第四指示域,所述第四指示域用于指示所述锚点A与所述锚点B之间的距离D ABIn a possible example, the data frame A2 further includes a fourth indication field, where the fourth indication field is used to indicate the distance D AB between the anchor point A and the anchor point B.
在一个可能的示例中,所述距离D AB由所述标签设备计算得到。 In a possible example, the distance D AB is calculated by the tag device.
本申请实施例还提供了一种芯片,其中,该芯片包括处理器,用于从存储器中调用并运 行计算机程序,使得安装有所述芯片的设备执行如上述方法实施例中电子设备所描述的部分或全部步骤。An embodiment of the present application further provides a chip, wherein the chip includes a processor, configured to call and run a computer program from a memory, so that a device installed with the chip executes the electronic device described in the above method embodiments. some or all of the steps.
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,上述计算机包括移动终端。Embodiments of the present application further provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes the computer to execute part or all of the steps of any method described in the above method embodiments , the above computer includes a mobile terminal.
本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括移动终端。Embodiments of the present application further provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute any one of the method embodiments described above. some or all of the steps of the method. The computer program product may be a software installation package, and the above-mentioned computer includes a mobile terminal.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Because in accordance with the present application, certain steps may be performed in other orders or concurrently. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the device embodiments described above are only illustrative. For example, the division of the above-mentioned units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical or other forms.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例上述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art, or all or part of the technical solution, and the computer software product is stored in a memory, Several instructions are included to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the above-mentioned methods in the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash disk , Read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English: Random Access Memory, referred to as: RAM), magnetic disk or optical disk, etc.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been introduced in detail above, and the principles and implementations of the present application are described in this paper by using specific examples. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application; at the same time, for Persons of ordinary skill in the art, based on the idea of the present application, will have changes in the specific implementation manner and application scope. In summary, the contents of this specification should not be construed as limitations on the present application.

Claims (27)

  1. 一种距离差确定方法,其特征在于,包括:A method for determining distance difference, comprising:
    确定时间t1、时间t2和时间t3,所述时间t1为侦听到来自锚点A的数据帧A1的时间,所述时间t2为侦听到来自锚点B的数据帧B的时间,所述时间t3为侦听到来自所述锚点A的数据帧A2的时间,所述数据帧B是所述锚点B在侦听到所述数据帧A1、延时时长Td1后广播的数据帧,所述数据帧A2携带有所述锚点A发送所述数据帧A1的时间t4、所述锚点A侦听到所述数据帧B的时间t5以及所述锚点A发送所述数据帧A2的时间t6;Determine time t1, time t2 and time t3, the time t1 is the time when the data frame A1 from the anchor point A is detected, the time t2 is the time when the data frame B from the anchor point B is detected, and the The time t3 is the time when the data frame A2 from the anchor point A is detected, and the data frame B is the data frame broadcast by the anchor point B after listening to the data frame A1 and the delay time Td1, The data frame A2 carries the time t4 when the anchor point A sends the data frame A1, the time t5 when the anchor point A hears the data frame B, and the anchor point A sends the data frame A2 time t6;
    根据所述时间t1、所述时间t3、所述时间t4、所述时间t5、所述时间t6确定所述时长Td1;Determine the duration Td1 according to the time t1, the time t3, the time t4, the time t5, and the time t6;
    根据所述锚点A与所述锚点B之间的距离D AB、所述时间t2、所述时间t1、所述时长Td1确定第一距离与第二距离之间的所述距离差,所述第一距离为本端设备与所述锚点A之间的距离D TA,所述第二距离为本端设备与所述锚点B之间的距离D TBThe distance difference between the first distance and the second distance is determined according to the distance D AB between the anchor point A and the anchor point B, the time t2, the time t1, and the time length Td1, so The first distance is the distance D TA between the end device and the anchor point A, and the second distance is the distance D TB between the end device and the anchor point B.
  2. 根据权利要求1所述的方法,其特征在于,所述时间t1与所述时间t3之间的时间差为时间差Δt1,所述时间t6与所述时间t4的时间差为时间差Δt2,所述时间t5与所述时间t4之间的时间差为时间差Δt3;The method according to claim 1, wherein the time difference between the time t1 and the time t3 is a time difference Δt1, the time difference between the time t6 and the time t4 is a time difference Δt2, and the time t5 and The time difference between the times t4 is the time difference Δt3;
    所述时间差Δt1与所述时间差Δt2的比值为第一比值;The ratio of the time difference Δt1 to the time difference Δt2 is a first ratio;
    所述时长Td1与所述时间差Δt3的比值为第二比值;The ratio of the duration Td1 to the time difference Δt3 is a second ratio;
    在忽略数据帧飞行时长的影响的情况下,所述第一比值和所述第二比值相同。In the case of ignoring the influence of the flight duration of the data frame, the first ratio and the second ratio are the same.
  3. 根据权利要求1或2所述的方法,其特征在于,所述时长Td1通过如下公式计算得到:The method according to claim 1 or 2, wherein the duration Td1 is calculated by the following formula:
    Figure PCTCN2021108998-appb-100001
    Figure PCTCN2021108998-appb-100001
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述第一距离与第二距离之间的所述距离差通过如下公式计算得到:The method according to any one of claims 1-3, wherein the distance difference between the first distance and the second distance is calculated by the following formula:
    D TA-D TB=D AB-C×(t2-t1-T d) D TA -D TB =D AB -C×(t2-t1-T d )
    其中,C为光速。where C is the speed of light.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述距离D AB根据单面双向测距SS-TWR算法,利用所述时间t4、所述时间t5、所述锚点B侦听到所述数据帧A1的时间t7、所述锚点B广播所述数据帧B的时间t8计算得到的。 The method according to any one of claims 1-4, wherein the distance D AB is based on a single-sided two-way ranging SS-TWR algorithm, using the time t4, the time t5, and the anchor point B Calculated from the time t7 when the data frame A1 is detected and the time t8 when the anchor point B broadcasts the data frame B.
  6. 根据权利要求5所述的方法,其特征在于,所述数据帧A2还携带有所述距离D ABThe method according to claim 5, wherein the data frame A2 further carries the distance D AB .
  7. 根据权利要求5所述的方法,其特征在于,所述距离D AB由本端设备计算得到。 The method according to claim 5, wherein the distance D AB is calculated by the local device.
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述确定时间t1、时间t2和时间t3,包括:The method according to any one of claims 1-7, wherein the determining time t1, time t2 and time t3 comprises:
    在侦听到来自所述锚点A的数据帧A1时,记录当前时间t1;When listening to the data frame A1 from the anchor point A, record the current time t1;
    在侦听到来自所述锚点B的数据帧B时,记录当前时间t2;When the data frame B from the anchor point B is detected, record the current time t2;
    在侦听到来自所述锚点A的数据帧A2时,记录当前时间t3。When the data frame A2 from the anchor point A is detected, the current time t3 is recorded.
  9. 根据权利要求8所述的方法,其特征在于,所述方法还包括:The method according to claim 8, wherein the method further comprises:
    在侦听到来自所述锚点C的数据帧C时,记录当前时间t9,所述数据帧C是所述锚点C在侦听到所述数据帧A1、延时时长Td2后广播的数据帧;When listening to the data frame C from the anchor point C, record the current time t9, the data frame C is the data broadcast by the anchor point C after listening to the data frame A1 and the delay time Td2 frame;
    在侦听到来自所述锚点A的数据帧A3时,记录当前时间t10,所述数据帧A3携带有所述锚点A发送所述数据帧A1的时间t4、所述锚点A侦听到所述数据帧C的时间t11、所述锚点A发送所述数据帧A3的时间t12以及所述锚点A与所述锚点C之间的距离D ACWhen listening to the data frame A3 from the anchor point A, record the current time t10, the data frame A3 carries the time t4 when the anchor point A sends the data frame A1, and the anchor point A listens The time t11 to the data frame C, the time t12 when the anchor point A sends the data frame A3, and the distance D AC between the anchor point A and the anchor point C;
    根据所述时间t1、所述时间t10、所述时间t4、所述时间t11、所述时间t12确定所述时长Td2;Determine the duration Td2 according to the time t1, the time t10, the time t4, the time t11, and the time t12;
    根据所述距离D AC、所述时间t9、所述时间t1、所述时长Td2确定所述第一距离与第三距离之间的所述距离差,所述第三距离为本端设备与所述锚点C之间的距离D TCThe distance difference between the first distance and the third distance is determined according to the distance D AC , the time t9 , the time t1 , and the duration Td2 , where the third distance is the distance between the end device and the the distance D TC between the anchor points C;
    根据所述第一距离与所述第二距离之间的所述距离差、所述第一距离与所述第三距离之 间的所述距离差、所述距离D AB、所述距离D AC,确定本端设备的坐标。 According to the distance difference between the first distance and the second distance, the distance difference between the first distance and the third distance, the distance D AB , the distance D AC , to determine the coordinates of the local device.
  10. 一种数据帧传输方法,其特征在于,包括:A data frame transmission method, comprising:
    接收数据帧A2,其中,所述数据帧A2包括第一指示域、第二指示域、第三指示域,所述第一指示域用于指示锚点A发送数据帧A1的时间t4,所述第二指示域用于指示所述锚点A侦听到数据帧B的时间t5,所述第三指示域用于指示所述锚点A发送所述数据帧A2的时间t6,所述数据帧B是所述锚点B在侦听到所述数据帧A1、延时时长Td1后广播的数据帧。Receive a data frame A2, wherein the data frame A2 includes a first indication field, a second indication field, and a third indication field, the first indication field is used to indicate the time t4 when the anchor point A sends the data frame A1, and the The second indication field is used to indicate the time t5 when the anchor point A hears the data frame B, and the third indication field is used to indicate the time t6 when the anchor point A sends the data frame A2, the data frame B is the data frame broadcast by the anchor point B after listening to the data frame A1 and the delay time Td1.
  11. 根据权利要求10所述的方法,其特征在于,所述方法还包括:The method of claim 10, wherein the method further comprises:
    解析所述数据帧A2,得到所述时间t4、所述时间t5、所述时间t6和所述距离D ABParse the data frame A2 to obtain the time t4, the time t5, the time t6 and the distance D AB ;
    根据时间t1、时间t3、所述时间t4、所述时间t5、所述时间t6确定所述时长Td1,所述时间t1为侦听到来自锚点A的数据帧A1的时间,所述时间t3为侦听到来自所述锚点A的数据帧A2的时间;The duration Td1 is determined according to the time t1, the time t3, the time t4, the time t5, and the time t6. The time t1 is the time when the data frame A1 from the anchor point A is detected, and the time t3 is the time when the data frame A2 from the anchor point A is detected;
    根据所述锚点A与所述锚点B之间的距离D AB、时间t2、所述时间t1、所述时长Td1确定第一距离与第二距离之间的所述距离差,所述第一距离为本端设备与所述锚点之间的距离D TA,所述第二距离为本端设备与所述锚点B之间的距离D TB,所述时间t2为侦听到来自锚点B的数据帧B的时间。 The distance difference between the first distance and the second distance is determined according to the distance D AB between the anchor point A and the anchor point B, the time t2, the time t1, and the time duration Td1, and the first distance The first distance is the distance D TA between the end device and the anchor point, the second distance is the distance D TB between the end device and the anchor point B, and the time t2 is the distance D TB from the anchor point B is detected. Time of data frame B at point B.
  12. 根据权利要求11所述的方法,其特征在于,所述距离D AB根据单面双向测距SS-TWR算法,利用所述时间t4、所述时间t5、所述锚点B侦听到所述数据帧A1的时间t7、所述锚点B广播所述数据帧B的时间t8计算得到的。 The method according to claim 11, wherein the distance D AB uses the time t4, the time t5, and the anchor point B to detect the Calculated from the time t7 of the data frame A1 and the time t8 when the anchor point B broadcasts the data frame B.
  13. 根据权利要求12所述的方法,其特征在于,所述数据帧A2还包括第四指示域,所述第四指示域用于指示所述锚点A与所述锚点B之间的距离D ABThe method according to claim 12, wherein the data frame A2 further comprises a fourth indication field, and the fourth indication field is used to indicate the distance D between the anchor point A and the anchor point B AB .
  14. 根据权利要求12所述的方法,其特征在于,所述距离D AB由本端设备计算得到。 The method according to claim 12, wherein the distance D AB is calculated by the local device.
  15. 根据权利要求10-14任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 10-14, wherein the method further comprises:
    在侦听到来自所述锚点C的数据帧C时,记录当前时间t9,所述数据帧C是所述锚点C在侦听到所述数据帧A1、延时时长Td2后广播的数据帧;When listening to the data frame C from the anchor point C, record the current time t9, the data frame C is the data broadcast by the anchor point C after listening to the data frame A1 and the delay time Td2 frame;
    在侦听到来自所述锚点A的数据帧A3时,记录当前时间t10,所述数据帧A3携带有所述锚点A发送所述数据帧A1的时间t4、所述锚点A侦听到所述数据帧C的时间t11、所述锚点A发送所述数据帧A3的时间t12以及所述锚点A与所述锚点C之间的距离D ACWhen listening to the data frame A3 from the anchor point A, record the current time t10, the data frame A3 carries the time t4 when the anchor point A sends the data frame A1, and the anchor point A listens The time t11 to the data frame C, the time t12 when the anchor point A sends the data frame A3, and the distance D AC between the anchor point A and the anchor point C;
    根据所述时间t1、所述时间t10、所述时间t4、所述时间t11、所述时间t12确定所述时长Td2;Determine the duration Td2 according to the time t1, the time t10, the time t4, the time t11, and the time t12;
    根据所述距离D AC、所述时间t9、所述时间t1、所述时长Td2确定所述第一距离与第三距离之间的所述距离差,所述第三距离为本端设备与所述锚点C之间的距离D TCThe distance difference between the first distance and the third distance is determined according to the distance D AC , the time t9 , the time t1 , and the duration Td2 , where the third distance is the distance between the end device and the the distance D TC between the anchor points C;
    根据所述第一距离与所述第二距离之间的所述距离差、所述第一距离与所述第三距离之间的所述距离差、所述距离D AB、所述距离D AC,确定本端设备的坐标。 According to the distance difference between the first distance and the second distance, the distance difference between the first distance and the third distance, the distance D AB , the distance D AC , to determine the coordinates of the local device.
  16. 一种数据帧传输方法,其特征在于,包括:A data frame transmission method, comprising:
    发送数据帧A2,其中,所述数据帧A2包括第一指示域、第二指示域、第三指示域,所述第一指示域用于指示锚点A发送数据帧A1的时间t4,所述第二指示域用于指示所述锚点A侦听到数据帧B的时间t5,所述第三指示域用于指示所述锚点A发送所述数据帧A2的时间t6,所述数据帧B是所述锚点B在侦听到所述数据帧A1、延时时长Td1后广播的数据帧。Sending a data frame A2, wherein the data frame A2 includes a first indication field, a second indication field, and a third indication field, the first indication field is used to indicate the time t4 when the anchor point A sends the data frame A1, and the The second indication field is used to indicate the time t5 when the anchor point A hears the data frame B, and the third indication field is used to indicate the time t6 when the anchor point A sends the data frame A2, the data frame B is the data frame broadcast by the anchor point B after listening to the data frame A1 and the delay time Td1.
  17. 根据权利要求16所述的方法,其特征在于,所述数据帧A2用于标签设备执行以下操作:The method according to claim 16, wherein the data frame A2 is used for the tag device to perform the following operations:
    解析所述数据帧A2,得到所述时间t4、所述时间t5、所述时间t6和所述距离D ABParse the data frame A2 to obtain the time t4, the time t5, the time t6 and the distance D AB ;
    根据时间t1、时间t3、所述时间t4、所述时间t5、所述时间t6确定所述时长Td1,所述时间t1为侦听到来自锚点A的数据帧A1的时间,所述时间t3为侦听到来自所述锚点A的数据帧A2的时间;The duration Td1 is determined according to the time t1, the time t3, the time t4, the time t5, and the time t6. The time t1 is the time when the data frame A1 from the anchor point A is detected, and the time t3 is the time when the data frame A2 from the anchor point A is detected;
    根据所述锚点A与所述锚点B之间的距离D AB、时间t2、所述时间t1、所述时长Td1确定第一距离与第二距离之间的所述距离差,所述第一距离为本端设备与所述锚点A之间的距 离D TA,所述第二距离为本端设备与所述锚点B之间的距离D TB,所述时间t2为侦听到来自锚点B的数据帧B的时间。 The distance difference between the first distance and the second distance is determined according to the distance D AB between the anchor point A and the anchor point B, the time t2, the time t1, and the time length Td1, and the first distance The first distance is the distance D TA between the end device and the anchor point A, the second distance is the distance D TB between the end device and the anchor point B, and the time t2 is the distance between the end device and the anchor point B. The time of data frame B for anchor B.
  18. 根据权利要求17所述的方法,其特征在于,所述距离D AB根据单面双向测距SS-TWR算法,利用所述时间t4、所述时间t5、所述锚点B侦听到所述数据帧A1的时间t7、所述锚点B广播所述数据帧B的时间t8计算得到的。 The method according to claim 17, wherein the distance D AB uses the time t4, the time t5, and the anchor point B to detect the Calculated from the time t7 of the data frame A1 and the time t8 when the anchor point B broadcasts the data frame B.
  19. 根据权利要求18所述的方法,其特征在于,所述数据帧A2还包括第四指示域,所述第四指示域用于指示所述锚点A与所述锚点B之间的距离D ABThe method according to claim 18, wherein the data frame A2 further comprises a fourth indication field, and the fourth indication field is used to indicate the distance D between the anchor point A and the anchor point B AB .
  20. 根据权利要求18所述的方法,其特征在于,所述距离D AB由所述标签设备计算得到。 The method of claim 18, wherein the distance D AB is calculated by the tag device.
  21. 一种距离差确定装置,其特征在于,包括:A device for determining distance difference, comprising:
    第一确定单元,用于确定时间t1、时间t2和时间t3,所述时间t1为侦听到来自锚点A的数据帧A1的时间,所述时间t2为侦听到来自锚点B的数据帧B的时间,所述时间t3为侦听到来自所述锚点A的数据帧A2的时间,所述数据帧B是所述锚点B在侦听到所述数据帧A1、延时时长Td1后广播的数据帧,所述数据帧A2携带有所述锚点A发送所述数据帧A1的时间t4、所述锚点A侦听到所述数据帧B的时间t5以及所述锚点A发送所述数据帧A2的时间t6;The first determining unit is used to determine time t1, time t2 and time t3, where the time t1 is the time when the data frame A1 from the anchor point A is detected, and the time t2 is the time when the data frame A1 from the anchor point B is detected The time of frame B, the time t3 is the time when the data frame A2 from the anchor point A is detected, and the data frame B is the time when the anchor point B listens to the data frame A1 and the delay time The data frame broadcast after Td1, the data frame A2 carries the time t4 when the anchor point A sends the data frame A1, the time t5 when the anchor point A hears the data frame B, and the anchor point A sends the time t6 of the data frame A2;
    第二确定单元,用于根据所述时间t1、所述时间t3、所述时间t4、所述时间t5、所述时间t6确定所述时长Td1;a second determining unit, configured to determine the duration Td1 according to the time t1, the time t3, the time t4, the time t5, and the time t6;
    第三确定单元,用于根据所述锚点A与所述锚点B之间的距离D AB、所述时间t2、所述时间t1、所述时长Td1确定第一距离与第二距离之间的所述距离差,所述第一距离为本端设备与所述锚点A之间的距离D TA,所述第二距离为本端设备与所述锚点B之间的距离D TBA third determining unit, configured to determine the distance between the first distance and the second distance according to the distance D AB between the anchor point A and the anchor point B, the time t2, the time t1, and the time duration Td1 The first distance is the distance D TA between the end device and the anchor point A, and the second distance is the distance D TB between the end device and the anchor point B.
  22. 一种数据帧传输装置,其特征在于,包括:A data frame transmission device, comprising:
    接收单元,用于接收数据帧A2,其中,所述数据帧A2包括第一指示域、第二指示域、第三指示域,所述第一指示域用于指示锚点A发送数据帧A1的时间t4,所述第二指示域用于指示所述锚点A侦听到数据帧B的时间t5,所述第三指示域用于指示所述锚点A发送所述数据帧A2的时间t6,所述数据帧B是所述锚点B在侦听到所述数据帧A1、延时时长Td1后广播的数据帧。A receiving unit, configured to receive a data frame A2, wherein the data frame A2 includes a first indication field, a second indication field, and a third indication field, and the first indication field is used to instruct the anchor point A to send the data frame A1 Time t4, the second indication field is used to indicate the time t5 when the anchor point A hears the data frame B, and the third indication field is used to indicate the time t6 when the anchor point A sends the data frame A2 , the data frame B is a data frame broadcast by the anchor point B after listening to the data frame A1 and the delay time Td1.
  23. 一种数据帧传输装置,其特征在于,包括:A data frame transmission device, comprising:
    发送单元,用于发送数据帧A2,其中,所述数据帧A2包括第一指示域、第二指示域、第三指示域,所述第一指示域用于指示锚点A发送数据帧A1的时间t4,所述第二指示域用于指示所述锚点A侦听到数据帧B的时间t5,所述第三指示域用于指示所述锚点A发送所述数据帧A2的时间t6,所述数据帧B是所述锚点B在侦听到所述数据帧A1、延时时长Td1后广播的数据帧。A sending unit, configured to send a data frame A2, wherein the data frame A2 includes a first indication field, a second indication field, and a third indication field, and the first indication field is used to instruct the anchor point A to send the data frame A1 Time t4, the second indication field is used to indicate the time t5 when the anchor point A hears the data frame B, and the third indication field is used to indicate the time t6 when the anchor point A sends the data frame A2 , the data frame B is a data frame broadcast by the anchor point B after listening to the data frame A1 and the delay time Td1.
  24. 一种标签设备,其特征在于,包括处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行如权利要求1-9任一项所述的方法中的步骤的指令。A tag device comprising a processor, a memory, a communication interface, and one or more programs, the one or more programs being stored in the memory and configured to be executed by the processor, The program includes instructions for performing the steps in the method of any of claims 1-9.
  25. 一种标签设备,其特征在于,包括处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行如权利要求10-15任一项所述的方法中的步骤的指令。A tag device comprising a processor, a memory, a communication interface, and one or more programs, the one or more programs being stored in the memory and configured to be executed by the processor, The program includes instructions for performing the steps in the method of any of claims 10-15.
  26. 一种锚点设备,其特征在于,包括处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行如权利要求16-20任一项所述的方法中的步骤的指令。An anchor device comprising a processor, a memory, a communication interface, and one or more programs, the one or more programs being stored in the memory and configured to be executed by the processor , the program comprising instructions for performing the steps in the method of any of claims 16-20.
  27. 一种计算机可读存储介质,其特征在于,存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-20任一项所述的方法。A computer-readable storage medium, characterized by storing a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method according to any one of claims 1-20.
PCT/CN2021/108998 2020-09-15 2021-07-28 Distance difference determination method, data frame transmission method, and related product WO2022057454A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010969354.2A CN112073905B (en) 2020-09-15 2020-09-15 Distance difference determining method, data frame transmission method and related product
CN202010969354.2 2020-09-15

Publications (1)

Publication Number Publication Date
WO2022057454A1 true WO2022057454A1 (en) 2022-03-24

Family

ID=73696794

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/108998 WO2022057454A1 (en) 2020-09-15 2021-07-28 Distance difference determination method, data frame transmission method, and related product

Country Status (2)

Country Link
CN (1) CN112073905B (en)
WO (1) WO2022057454A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112073905B (en) * 2020-09-15 2022-10-28 Oppo广东移动通信有限公司 Distance difference determining method, data frame transmission method and related product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104039011A (en) * 2014-07-02 2014-09-10 保定市天河电子技术有限公司 Positioning method and device
CN104159291A (en) * 2013-05-15 2014-11-19 北京云谷信息技术有限公司 Passive type TDOA positioning method
CN109040964A (en) * 2018-09-20 2018-12-18 宁波极位智能科技有限公司 A kind of efficient passive type time-division TDOA localization method for eliminating clock frequency difference
WO2020146838A1 (en) * 2019-01-11 2020-07-16 Qualcomm Incorporated Round-trip-time (rtt)-based positioning with listening nodes
CN112073905A (en) * 2020-09-15 2020-12-11 Oppo广东移动通信有限公司 Distance difference determining method, data frame transmission method and related product

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102595593B (en) * 2012-01-11 2014-11-19 哈尔滨工业大学深圳研究生院 Ultra-wide band signal based multi-node asynchronous arrival time difference positioning method and system
US10048352B2 (en) * 2014-01-24 2018-08-14 Avago Technologies General Ip (Singapore) Pte. Ltd. Determination of location of a mobile device having time-stamping capability
CN104635205A (en) * 2015-01-18 2015-05-20 林伟 Passive positioning method of label
US10581870B2 (en) * 2016-09-13 2020-03-03 Samsung Electronics Co., Ltd. Proximity-based device authentication
CN107450049A (en) * 2017-07-10 2017-12-08 武汉米风通信技术有限公司 Reach the accurate calculation method of Positioning System time difference
CN109889978B (en) * 2019-02-20 2021-01-08 清华珠三角研究院 Base station positioning method and device
CN110798886B (en) * 2019-11-04 2021-01-01 北京邮电大学 Positioning method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104159291A (en) * 2013-05-15 2014-11-19 北京云谷信息技术有限公司 Passive type TDOA positioning method
CN104039011A (en) * 2014-07-02 2014-09-10 保定市天河电子技术有限公司 Positioning method and device
CN109040964A (en) * 2018-09-20 2018-12-18 宁波极位智能科技有限公司 A kind of efficient passive type time-division TDOA localization method for eliminating clock frequency difference
WO2020146838A1 (en) * 2019-01-11 2020-07-16 Qualcomm Incorporated Round-trip-time (rtt)-based positioning with listening nodes
CN112073905A (en) * 2020-09-15 2020-12-11 Oppo广东移动通信有限公司 Distance difference determining method, data frame transmission method and related product

Also Published As

Publication number Publication date
CN112073905B (en) 2022-10-28
CN112073905A (en) 2020-12-11

Similar Documents

Publication Publication Date Title
JP5703416B2 (en) Systems and methods for implementing multicast using personal area network (PAN) wireless technology
DeCuir Introducing Bluetooth Smart: Part 1: A look at both classic and new technologies
US20220082676A1 (en) Electronic device for performing ranging through ultra-wide band (uwb), and method for operating electronic device
US8935411B2 (en) Method and apparatus for utilizing advertisements to provide information regarding connection setup
EP2948788B1 (en) Polled time-of-flight response
US20170238126A1 (en) Sensor for acquiring sensing data in disconnected state, intelligent device, and method
TWI550300B (en) Fine timing measurement burst management
US20230141919A1 (en) Electronic device for performing ranging through uwb, and operation method of electronic device
CN109996325B (en) Clock synchronization system and method of wireless sensor network
US9781566B1 (en) Apparatus, system and method of estimating a distance between a first station and a second station
US20140057564A1 (en) Method and apparatus for utilizing advertisements in conjunction with device discovery
WO2022057454A1 (en) Distance difference determination method, data frame transmission method, and related product
WO2023151081A1 (en) Communication method and communication apparatus
WO2022057472A1 (en) Clock synchronization method and related device
WO2023273048A1 (en) Communication delay determination method and electronic device
WO2019191996A1 (en) Data transmission method and device
WO2024103928A1 (en) Ultra-wideband ranging method, apparatus and system
WO2022078183A1 (en) Method for determining transmission delay and electronic device
WO2022057416A1 (en) Location service method and related apparatus
CN112050803B (en) Indoor escape method and related device
WO2022042193A1 (en) Cooperative positioning method and apparatus
WO2023193439A1 (en) Time-frequency synchronization-based positioning method and apparatus
WO2024032372A1 (en) Positioning method and related apparatus
WO2023071919A1 (en) Communication method and related apparatus
WO2023125051A1 (en) Measurement establishment identifier determination method and related device

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: 21868283

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21868283

Country of ref document: EP

Kind code of ref document: A1