Ultra-wideband ranging method, device and system
By segmentally processing the ranging frequencies of target and non-target devices in UWB ranging technology, high-precision ranging and low power consumption in real-time changing scenarios are achieved, solving the problem of poor ranging performance and power consumption in the existing technology. high problem.
Patent Information
- Application Number
- CN202211525711.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-30
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-11-30
AI Technical Summary
Existing UWB ranging technology has poor performance in real-time changing ranging scenarios, cannot meet the needs of dynamic distance changes, and fixed ranging intervals lead to increased power consumption.
An initial ranging is performed in the first ranging period, and target and non-target devices are divided according to the initial distance. In the second ranging period, target devices that are closer are measured multiple times, and non-target devices that are farther away are measured multiple times. Perform a ranging measurement, increase the ranging frequency and save power consumption.
It improves the accuracy and performance of UWB ranging, adapts to real-time distance changing scenarios, and reduces system power consumption.
Smart Images

Figure CN115835129B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and more specifically, to an ultra-wideband ranging method, device and system. Background Art
[0002] Ultra Wide Band (UWB) technology is a wireless carrier communication technology with the advantages of low system complexity, low power spectrum density of transmitted signals, insensitivity to channel fading, low interception capability, and high positioning accuracy. It is especially suitable for high-speed wireless access in dense multipath places such as indoors. Therefore, UWB technology has been applied and popularized in more and more communication scenarios.
[0003] When the UWB module communicates to perform ranging and other functions, it must meet certain industry specifications, such as the Fira specification. In the Fira specification, the ranging interval between multiple ranging operations performed by the UWB module is determined through parameter negotiation, and the entire ranging network uses a fixed ranging interval, that is, the entire ranging network uses a unified ranging frequency. However, in actual applications, this unified ranging frequency cannot meet the real-time changing ranging scenarios, resulting in poor UWB ranging performance.
[0004] In view of this, how to provide a ranging method with higher ranging performance is a technical problem that needs to be solved urgently. Summary of the invention
[0005] The embodiments of the present application provide an ultra-wideband ranging method, device and system, which can improve UWB ranging performance.
[0006] In a first aspect, an ultra-wideband ranging method is provided, which is applied to a first ultra-wideband UWB module in a first electronic device. The ultra-wideband ranging method includes: within a first ranging period, performing a ranging communication with multiple second electronic devices to obtain an initial distance between the multiple second electronic devices; within a second ranging period, when the initial distance between the target electronic device and the multiple second electronic devices is less than or equal to a preset threshold, performing multiple ranging communications with the target electronic device to obtain a real-time distance between the target electronic device and the target electronic device multiple times; wherein the first ranging period is equal to the second ranging period.
[0007] Through the technical solution of the embodiment of the present application, in the second ranging time period, the ranging frequency between the first electronic device and the target electronic device that is closer is higher, and the multiple real-time distances can be used to improve the ranging accuracy of the first electronic device and the target electronic device in the second ranging time period, so as to improve the UWB ranging performance. In addition, in the first ranging time period, the first electronic device and the multiple second electronic devices still perform one ranging communication, which can save the power consumption of the entire ranging system, so as to comprehensively improve the UWB ranging performance.
[0008] In some possible implementations, the ultra-wideband ranging method further includes: within the second ranging period, when the initial distance between the non-target electronic device and the plurality of second electronic devices is greater than a preset threshold, performing a ranging communication with the non-target electronic device to obtain a real-time distance between the non-target electronic device and the non-target electronic device.
[0009] Through the technical solution of this implementation, within the second ranging period, only one ranging communication is still performed between the first electronic device and a non-target electronic device that is farther away from the multiple second electronic devices, thereby reducing the ranging frequency between the non-target electronic device and the first electronic device, saving the power consumption of the non-target electronic device, and further improving the UWB ranging performance.
[0010] In some possible implementations, performing multiple ranging communications with a target electronic device to obtain a real-time distance with the target electronic device multiple times includes: sending ranging control information (RCM) to the target electronic device; performing multiple ranging communications with the target electronic device according to the RCM to obtain the real-time distance with the target electronic device multiple times; wherein the RCM is used to indicate a ranging message type for each ranging step in the multiple ranging communications.
[0011] Through the technical solution of this implementation, RCM can be used to achieve reliable control of one ranging communication in the first ranging period and multiple ranging communications in the second ranging period, and on the basis of being compatible with the Fira standard, it can facilitate the implementation of the entire UWB ranging method.
[0012] In some possible implementations, performing multiple ranging communications with a target electronic device to obtain a real-time distance with the target electronic device multiple times, and performing a ranging communication with a non-target electronic device to obtain a real-time distance with the non-target electronic device, includes: sending ranging control information RCM to the target electronic device and the non-target electronic device; performing multiple ranging communications with the target electronic device according to the RCM to obtain a real-time distance with the target electronic device multiple times; performing a ranging communication with the non-target electronic device according to the RCM to obtain a real-time distance with the non-target electronic device; wherein the RCM is used to indicate the ranging message type of each ranging step in the single ranging communication and the multiple ranging communications.
[0013] Through the technical solution of this implementation, different ranging controls for multiple second electronic devices can be achieved through the design of RCM, so that target electronic devices that are closer can perform multiple ranging communications with the first electronic device, while non-target electronic devices that are farther away can perform one ranging communication with the first electronic device. The overall solution is easy to implement and has high reliability.
[0014] In some possible implementations, the RCM is further used to indicate the ranging timing, initiator role, and initiator address of each ranging step in multiple ranging communications.
[0015] Through the technical solution of this implementation, multiple second electronic devices can determine whether to execute the current ranging step according to the initiator role and initiator address in the RCM, and can also accurately execute the current ranging step according to the ranging timing, thereby ensuring the reliable and orderly execution of the entire ranging communication.
[0016] In some possible implementations, performing a ranging communication with multiple second electronic devices within a first ranging period to obtain initial distances between the multiple second electronic devices includes: performing a ranging communication with multiple second electronic devices according to a unilateral two-way ranging method or a bilateral two-way ranging method within the first ranging period to obtain initial distances between the multiple second electronic devices.
[0017] Through the technical solution of this implementation, in the first ranging period, different ranging methods can be flexibly selected to perform initial ranging on the first electronic device and multiple second electronic devices, so as to improve the flexibility of use of the ranging method provided in the embodiment of the present application. In the first ranging period, if the unilateral two-way ranging (SS-TWR) method is used to perform ranging, the ranging capacity of the initial ranging stage can be increased, so that the first electronic device can perform initial ranging on a larger number of second electronic devices at the same time. If the bilateral two-way ranging (DS-TWR) method is used to perform ranging, the ranging accuracy is high, so that the ranging accuracy of the initial ranging can be improved.
[0018] In some possible implementations, during the second ranging period, when the initial distance between the target electronic device and the plurality of second electronic devices is less than or equal to a preset threshold, multiple ranging communications with the target electronic device are performed to obtain the real-time distance between the target electronic device and the plurality of second electronic devices for multiple times, including: during the second ranging period, when the initial distance between the target electronic device and the plurality of second electronic devices is less than or equal to the preset threshold, multiple ranging communications with the target electronic device are performed according to a bilateral two-way ranging method to obtain the real-time distance between the target electronic device and the plurality of second electronic devices for multiple times.
[0019] Through the technical solution of this implementation, for a target electronic device that is relatively close among multiple second electronic devices, a double-sided two-way ranging (DS-TWR) method with higher ranging accuracy can be used to perform multiple ranging operations, thereby further improving the ranging accuracy and comprehensively ensuring the UWB ranging performance.
[0020] In some possible implementations, performing multiple ranging communications with a target electronic device according to a bilateral two-way ranging method to obtain multiple real-time distances with the target electronic device, includes: performing multiple ranging communications with the target electronic device in sequence according to the bilateral two-way ranging method to obtain multiple real-time distances with the target electronic device in sequence.
[0021] Through the technical solution of this implementation, multiple ranging communications are executed in sequence, which is conducive to the reliable implementation of multiple ranging communications, thereby improving the accuracy and stability of UWB ranging.
[0022] In some possible implementations, within the second ranging period, when the initial distance between the non-target electronic device and the multiple second electronic devices is greater than a preset threshold, performing a ranging communication with the non-target electronic device to obtain the real-time distance between the non-target electronic device, including: within the second ranging period, when the initial distance between the non-target electronic device and the multiple second electronic devices is greater than a preset threshold, performing a ranging communication with the non-target electronic device according to a bilateral two-way ranging method to obtain the real-time distance between the non-target electronic device.
[0023] Through the technical solution of this implementation, for non-target electronic devices that are farther away among multiple second electronic devices, a DS-TWR method with higher ranging accuracy can also be used to perform ranging once, thereby ensuring its ranging accuracy. In addition, the target electronic device and the non-target electronic device among multiple second electronic devices use the same DS-TWR ranging method, which can simplify the entire ranging process, that is, in one ranging communication, a real-time distance between the first electronic device and the target electronic device and a real-time distance between the first electronic device and the non-target electronic device can be measured simultaneously.
[0024] In some possible embodiments, the multiple second electronic devices include N groups of second electronic devices, where N is a positive integer greater than 1; the ultra-wideband ranging method includes: in a first ranging period, sending a first RCM to each group of second electronic devices in the N groups of second electronic devices in turn, and performing a ranging communication with each group of second electronic devices in the N groups of second electronic devices based on the N first RCMs to obtain an initial distance between each group of second electronic devices; in a second ranging period, sending a second RCM to each group of second electronic devices in the N groups of second electronic devices in turn, and performing multiple ranging communications with target electronic devices in each group of second electronic devices based on the N second RCMs to obtain a real-time distance between the target electronic devices in each group of second electronic devices.
[0025] Through the technical solution of this implementation, when the number of multiple second electronic devices is large, the multiple second electronic devices are divided into N groups, and the number of second electronic devices in each group is small. Therefore, the length of RCM corresponding to each group of second electronic devices is also short, which can not only meet the requirements of relevant standards, but also facilitate the first electronic device to measure the distance with a large number of second electronic devices within a ranging period, thereby improving the real-time performance of UWB ranging and expanding the ranging capacity of the ranging system.
[0026] In some possible implementations, within a first ranging period, a first RCM is sent to each group of second electronic devices in N groups of second electronic devices in turn, and a ranging communication is performed with each group of second electronic devices in the N groups of second electronic devices based on the N first RCMs to obtain an initial distance between each group of second electronic devices, including: within an i-th sub-period of the first ranging period, an i-th first RCM is sent to the i-th group of second electronic devices in the N groups of second electronic devices; based on the i-th first RCM, a ranging communication is performed with the i-th group of second electronic devices to obtain an initial distance between the i-th group of second electronic devices, wherein i≤N, i is a positive integer; the i-th first RCM is used to indicate the ranging message type, ranging timing, initiator role and initiator address of each ranging step in the one ranging communication.
[0027] Through the technical solution of this implementation, the i-th group of second electronic devices in N groups of second electronic devices can use the i-th sub-period in the first ranging period to perform ranging, and the ranging process can be controlled by the i-th first RCM, which can ensure the orderliness and reliability of the ranging communication of the i-th group of second electronic devices.
[0028] In some possible embodiments, when i≤N-1, the i-th first RCM is also used to indicate the i+1-th first RCM, and the ultra-wideband ranging method also includes: in the i-th sub-period of the first ranging period, sending the i-th first RCM to other groups of second electronic devices in the N groups of second electronic devices except the i-th group of second electronic devices, and the other groups of second electronic devices enter a waiting state according to an identifier indicating the i+1-th first RCM in the i-th first RCM.
[0029] Through the technical solution of this implementation, it is possible to prevent the other groups of second electronic devices from entering a sleep state and being unable to establish a connection with the first electronic device during the process of performing ranging communication between the first electronic device and the i-th group of second electronic devices, thereby ensuring the continuous execution of UWB ranging between the first electronic device and multiple groups of second electronic devices.
[0030] In some possible implementations, the ultra-wideband ranging method further includes: within the i+1th sub-period of the first ranging period, based on an identifier indicating the i+1th first RCM in the i-th first RCM, sending the i+1th first RCM to the i+1th group of second electronic devices in N groups of second electronic devices; based on the i+1th first RCM, performing a ranging communication with the i+1th group of second electronic devices to obtain an initial distance between the i+1th group of second electronic devices.
[0031] Through the technical solution of this implementation, the first electronic device can continue to perform ranging communication with the i+1th group of second electronic devices according to the i+1th first RCM to ensure a continuous and reliable ranging process between the first electronic device and N groups of second electronic devices.
[0032] In some possible implementations, within the second ranging period, a second RCM is sent to each group of second electronic devices in N groups of second electronic devices in turn, and multiple ranging communications are performed with the target electronic devices in each group of second electronic devices based on the N second RCMs to obtain the real-time distance between the target electronic devices in each group of second electronic devices, including: within the i-th sub-period of the second ranging period, the i-th second RCM is sent to the i-th group of second electronic devices in the N groups of second electronic devices; based on the i-th second RCM, multiple ranging communications are performed with the target electronic devices in the i-th group of second electronic devices to obtain the real-time distance between the target electronic devices, wherein i+1≤N, and i is a positive integer.
[0033] In some possible embodiments, the i-th second RCM is also used to indicate the i+1-th second RCM, and the ultra-wideband ranging method also includes: in the i-th sub-period of the second ranging period, sending the i-th second RCM to other groups of second electronic devices in the N groups of second electronic devices except the i-th group of second electronic devices, and the other groups of second electronic devices enter a waiting state according to an identifier indicating the i+1-th second RCM in the i-th second RCM.
[0034] In some possible embodiments, the ultra-wideband ranging method further includes: within the i+1th sub-period of the second ranging period, based on an identifier indicating the i+1th second RCM in the i-th second RCM, sending the i+1th second RCM to the i+1th group of second electronic devices in the N groups of second electronic devices; based on the i+1th second RCM, performing multiple ranging communications with the target electronic device in the i+1th group of second electronic devices to obtain a real-time distance between the target electronic device and the target electronic device.
[0035] In some possible implementations, before the step of sequentially performing a ranging communication with each group of second electronic devices in N groups of second electronic devices within the first ranging period to obtain an initial distance between each group of second electronic devices, the ultra-wideband ranging method further includes: determining that the number of second electronic devices is greater than a preset number X; and dividing the plurality of second electronic devices into N groups, wherein the number of second electronic devices in each group of second electronic devices is less than or equal to X.
[0036] In some possible implementations, the first electronic device is a POS machine, and the second electronic device is a smart terminal.
[0037] In a second aspect, an ultra-wideband ranging method is provided, which is applied to a second ultra-wideband UWB module in a second electronic device. The ultra-wideband ranging method includes: within a first ranging period, performing a ranging communication with a first electronic device to obtain an initial distance between the first electronic device and the first electronic device; within a second ranging period, when the initial distance between the first electronic device and the first electronic device is less than or equal to a preset threshold, performing multiple ranging communications with the first electronic device to obtain a real-time distance between the first electronic device and the first electronic device multiple times; wherein the first ranging period and the second ranging period are equal in duration.
[0038] In some possible implementations, the ultra-wideband ranging method further includes: within the second ranging period, when the initial distance to the first electronic device is greater than a preset threshold, performing a ranging communication with the first electronic device to obtain a real-time distance to the first electronic device.
[0039] In some possible implementations, performing multiple ranging communications with a first electronic device to obtain a real-time distance with the first electronic device multiple times includes: receiving ranging control information RCM sent by the first electronic device; performing multiple ranging communications with the first electronic device according to the RCM to obtain the real-time distance with the first electronic device multiple times; wherein the RCM is used to indicate a ranging message type for each ranging step in the multiple ranging communications.
[0040] In some possible implementations, the RCM is further used to indicate the ranging timing, initiator role, and initiator address of each ranging step in multiple ranging communications.
[0041] In some possible implementations, performing a ranging communication with the first electronic device within the first ranging period to obtain an initial distance with the first electronic device includes: performing a ranging communication with the first electronic device within the first ranging period according to a unilateral two-way ranging method or a bilateral two-way ranging method to obtain an initial distance with the first electronic device.
[0042] In some possible implementations, during the second ranging period, when the initial distance between the first electronic device and the first electronic device is less than or equal to a preset threshold, multiple ranging communications with the first electronic device are performed to obtain the real-time distance between the first electronic device and the first electronic device multiple times, including: during the second ranging period, when the initial distance between the first electronic device and the first electronic device is less than or equal to the preset threshold, multiple ranging communications with the first electronic device are performed according to a bilateral two-way ranging method to obtain the real-time distance between the first electronic device and the first electronic device multiple times.
[0043] In some possible implementations, performing multiple ranging communications with the first electronic device according to the bilateral two-way ranging method to obtain the real-time distance between the first electronic device multiple times includes: performing multiple ranging communications with the first electronic device in sequence according to the bilateral two-way ranging method to obtain multiple real-time distances between the first electronic device in sequence.
[0044] In some possible implementations, the second electronic device is the i-th group of second electronic devices among N groups of second electronic devices, i≤N, i and N are positive integers; within a first ranging period, performing a ranging communication with the first electronic device to obtain an initial distance with the first electronic device, including: within an i-th sub-period of the first ranging period, receiving an i-th first RCM sent by the first electronic device; based on the i-th first RCM, performing a ranging communication with the first electronic device to obtain an initial distance with the first electronic device.
[0045] In some possible implementations, when i≤N-1, the i-th first RCM is also used to indicate the i+1-th first RCM, and the identifier indicating the i+1-th first RCM in the i-th first RCM is used to indicate that other groups of second electronic devices in the N groups of second electronic devices except the i-th group of second electronic devices enter a waiting state.
[0046] In some possible implementations, during the second ranging period, when the initial distance to the first electronic device is less than or equal to a preset threshold, multiple ranging communications with the first electronic device are performed to obtain the real-time distance to the first electronic device multiple times, including: during the i-th sub-period of the second ranging period, when the initial distance to the first electronic device is less than or equal to the preset threshold, receiving the i-th second RCM sent by the first electronic device; and performing multiple ranging communications with the first electronic device based on the i-th second RCM to obtain the real-time distance to the first electronic device.
[0047] In some possible implementations, when i≤N-1, the i-th second RCM is also used to indicate the i+1-th second RCM, and the identifier indicating the i+1-th second RCM in the i-th second RCM is used to indicate that other groups of second electronic devices in the N groups of second electronic devices except the i-th group of second electronic devices enter a waiting state.
[0048] In some possible implementations, the first electronic device is a POS machine, and the second electronic device is a smart terminal.
[0049] In a third aspect, an ultra-wideband ranging device is provided, wherein a memory is used to store a program, and a processor is used to execute the program stored in the memory. When the program stored in the memory is executed, the processor is used to execute the ultra-wideband ranging method in the first aspect or any possible implementation manner of the first aspect, or the processor is used to execute the ultra-wideband ranging method in the first aspect or any possible implementation manner of the first aspect.
[0050] In a fourth aspect, an ultra-wideband ranging system is provided, comprising: a first electronic device, comprising a first UWB module, the first UWB module being used to execute the ultra-wideband ranging method in the first aspect or any possible implementation manner of the first aspect; a plurality of second electronic devices, each of the plurality of second electronic devices comprising a second UWB module, the second UWB module being used to execute the ultra-wideband ranging method in the second aspect or any possible implementation manner of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 A schematic diagram of SS-TWR and DS-TWR ranging provided in an embodiment of the present application.
[0052] Figure 2A UWB ranging system architecture diagram provided in an embodiment of the present application.
[0053] Figure 3 A schematic flowchart of a UWB ranging method provided in an embodiment of the present application.
[0054] Figure 4 A data model defined for the Fira standard.
[0055] Figure 5 A schematic flowchart of another UWB ranging method provided in an embodiment of the present application.
[0056] Figure 6 A schematic flowchart of another UWB ranging method provided in an embodiment of the present application.
[0057] Figure 7 A schematic flowchart of another UWB ranging method for a first ranging period provided in an embodiment of the present application.
[0058] Figure 8 A schematic flowchart of another UWB ranging method for a second ranging period provided in an embodiment of the present application.
[0059] Fig. 9 A schematic flowchart of another UWB ranging method for a second ranging period provided in an embodiment of the present application.
[0060] Fig.10 A schematic flowchart of another UWB ranging method provided in an embodiment of the present application.
[0061] Fig.11 A schematic flowchart of another UWB ranging method provided in an embodiment of the present application.
[0062] Fig.12 A schematic structural block diagram of a UWB ranging device provided in an embodiment of the present application.
[0063] Fig.13 A schematic structural block diagram of a UWB ranging system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0064] The technical solution in this application will be described below in conjunction with the accompanying drawings.
[0065] The present application relates to UWB ranging technology. UWB ranging mainly adopts the two-way ranging (Two-way Ranging, TWR) method, in which two nodes are generally included: device A and device B, device A is the initiator (Initiator) of ranging, device B is the responder (Responder), and both are equipped with UWB modules. Two-way ranging is mainly divided into the following two methods: Single-sided Two-way Ranging (SS-TWR) method and Double-sided Two-way Ranging (DS-TWR) method.
[0066] Figure 1 The ranging schematic diagram of SS-TWR and DS-TWR is shown.
[0067] like Figure 1 As shown in Figure (a), in the SS-TWR method, device A actively sends data and records the sending timestamp. After receiving the data, device B records the receiving timestamp. The delay T reply Afterwards, device B sends data and records the sending timestamp, and device A receives data and records the receiving timestamp.
[0068] The time difference T of device A can be determined by the sending timestamp and receiving timestamp of device A. round Similarly, the time difference T of device B can be determined by the sending timestamp and receiving timestamp of device B. reply Furthermore, the signal flight time T can be finally obtained according to the following calculation formula: prop .
[0069]
[0070] According to the above flight time T prop , the distance between device A and device B can be calculated.
[0071] like Figure 1 As shown in Figure (b), in the DS-TWR method, device A actively initiates the first ranging data, and after device B receives the data, the interval T reply1 Send response data. After device A receives the response data from device B, it will send a response message at interval T. reply2 The second ranging data is sent again, and device B can receive the first ranging data.
[0072] The first time difference T of device A can be determined by the first sending timestamp and the first receiving timestamp of device A. round1 , through the first receiving timestamp and the second sending timestamp of device A, the second time difference T of device A can be determinedreply2 Similarly, the first time difference T of device B can be determined by the first receiving timestamp and the first sending timestamp of device B. reply1 , the second time difference T of device A can be determined through the first sending timestamp and the second receiving timestamp of device B. round2 .
[0073] Furthermore, the signal flight time T can be finally obtained according to the following calculation formula: prop .
[0074]
[0075] According to the above flight time T prop , the distance between device A and device B can be calculated.
[0076] Above Figure 1 Figure (a) shows a SS-TWR ranging communication, and the above Figure 1 Figure (b) shows a DS-TWR ranging communication. In actual applications, multiple ranging communications can be performed between device A and device B to continuously monitor the distance between the two.
[0077] In addition, it should be noted that, in addition to the above introduction, the specific implementation methods of the SS-TWR method and the DS-TWR method involved in the present application can also refer to the detailed schemes in the relevant technology, which will not be elaborated here.
[0078] Since UWB ranging technology can have a very stable connection, almost no interference, and can provide a high-precision ranging function, it can maintain excellent performance even in crowded multi-path environments. Therefore, UWB ranging technology can be applied to a variety of application scenarios in people's daily lives, such as transportation, medical treatment, home appliances, security, industrial control, etc.
[0079] Figure 2 A UWB ranging system architecture diagram provided in an embodiment of the present application is shown.
[0080] like Figure 2 As shown, the UWB ranging system 100 may include two or more electronic devices, each of which may be provided with a UWB module to implement UWB ranging communication between two electronic devices.
[0081] In some application scenarios, the UWB ranging system 100 may include a gate machine 101 (or an access control device) and a smart terminal 102. The gate machine 101 may be provided with at least one point of sales (POS) machine 1011 to facilitate data interaction with the smart terminal 102. The smart terminal 102 may have various forms, for example, Figure 1 In the illustrated embodiment, the smart terminal 102 may include: a mobile phone, a smart wearable device (such as a bracelet, a watch, etc.), a tag device, etc.
[0082] UWB modules are provided in both the POS machine 1011 and the smart terminal 102. When the smart terminal 102 enters the UWB communication range of the POS machine 1011, the UWB module in the POS machine 1011 can establish a communication connection with the UWB module in the smart terminal 102. The UWB module in the POS machine 1011 can be the initiator, and the UWB module in the smart terminal 102 can be the responder. Alternatively, the UWB module in the smart terminal 102 can be the initiator, and the UWB module in the POS machine 1011 can be the responder. The two can realize the distance measurement between the POS machine 1011 and the smart terminal 102. Furthermore, after determining the relative position relationship between the smart terminal 102 and the POS machine 1011, the smart terminal 102 can perform corresponding control on the gate 101 where the POS machine 1011 is located. For example, the smart terminal 102 can control the gate 101 to open or close.
[0083] In some relevant protocols or specifications, the communication ranging between the UWB module in the POS machine 1011 and the smart terminal 102 requires additional parameter configuration. For example, in the Fira specification, before the UWB modules in the POS machine 1011 and the smart terminal 102 are operated, the parameter configuration of the UWB module can be implemented through the Bluetooth Low Energy (BLE) module in the POS machine 1011 and the smart terminal 102. The parameter configuration is used to indicate the ranging parameters in the ranging process of the UWB module, such as ranging interval, ranging method, etc.
[0084] Therefore, in this technical solution, the ranging interval between two ranging communications of the UWB module is fixed and cannot be flexibly adjusted according to actual conditions. The fixed ranging interval cannot meet the ranging scenario where the distance changes in real time, resulting in poor UWB ranging performance.
[0085] Specifically, in the scenario of subway distance measurement, multiple users holding smart terminals 102 with UWB modules approach POS machines 1011 and dynamically join the UWB distance measurement network. During the process of walking from far to near or from near to far, the distance measurement results will be constantly updated and changed. Usually, due to the characteristics of the equipment and physical interference, there is a certain amount of drift or error in the single distance measurement results of UWB distance measurement. Therefore, the UWB distance measurement system usually uses the Kalman filter algorithm to achieve certain distance measurement result smoothing and filtering to improve the system distance measurement accuracy.
[0086] During the dynamic movement of the user, the filtering algorithm usually has a certain lag, and the lag of the distance measurement of the filtering algorithm is reflected as inaccurate distance measurement in practical applications. For example, when the user approaches the POS machine 1011 from far to near, the actual distance between the two is 2.5m, 2.0m, 1.5m, 1.0m and 0.5m respectively. The five results of UWB distance measurement are 2.5m, 2.1m, 1.6m, 0.9m, and 0.4m respectively. Through the filtering algorithm, the possible output distance result is 1.5m, but in fact the actual distance of the user at this time is 0.5m. The lag error caused by the historical value is quite obvious in this case. Considering that the actual scene may be more complicated, the distance measurement result obtained may have more errors or influences. In order to eliminate the distance measurement error and the error caused by lag, it is usually necessary to increase the distance measurement frequency, that is, reduce the distance measurement interval.
[0087] If the user is at 0.5m, the distance is measured quickly to obtain multiple distance measurement results, and the multiple distance measurement results are filtered, the distance measurement accuracy can be greatly improved. However, if the distance measurement frequency is increased, it will usually cause the system power consumption to increase. For example, when the user is outside the 3m range, the user's distance measurement accuracy does not need to be paid much attention to. When the distance measurement error range is between 30cm and 1m, it will not have a significant impact on the system. At this time, using a higher frequency to perform distance measurement will cause the overall power consumption of the system to be higher.
[0088] In view of this, the present application provides a new UWB ranging method, which can adapt to ranging scenarios where the distance changes in real time, while taking into account the system power consumption and improving the UWB ranging accuracy.
[0089] Figure 3 A schematic flow chart of a UWB ranging method 200 provided in an embodiment of the present application is shown. The UWB ranging method 200 can be applied between a first UWB module of a first electronic device and a second UWB module of a plurality of second electronic devices. As an example, Figure 3 Two second electronic devices are shown, which are respectively identified as second electronic device #1 and second electronic device #2.
[0090] Optionally, in some embodiments, the first electronic device and the second electronic device may be respectively Figure 1 The POS machine 1011 and the smart terminal 102 are shown in FIG.
[0091] like Figure 3 As shown, the UWB ranging method 200 may include the following steps.
[0092] S210: In a first ranging period, a first UWB module of a first electronic device and second UWB modules of a plurality of second electronic devices perform a ranging communication to obtain an initial distance between the first electronic device and the plurality of second electronic devices.
[0093] S220: Within the second ranging period, when the initial distance between the first electronic device and a target electronic device of a plurality of second electronic devices is less than or equal to a preset threshold, the first UWB module and the second UWB module of the target electronic device perform multiple ranging communications to obtain the real-time distance between the first electronic device and the target electronic device multiple times.
[0094] Specifically, in the embodiment of the present application, the first ranging period is equal to the second ranging period. In the first ranging period, the first UWB module can perform a ranging communication with the second UWB module of each second electronic device of the plurality of second electronic devices, and the ranging communication can be used to determine the initial distance between the first electronic device and each second electronic device. As an example, the ranging communication can be performed using the above Figure 1 The ranging communication of the SS-TWR method shown in (a) of FIG. 1 , or the ranging communication may also be the one using the above Figure 1 The ranging communication of the DS-TWR method shown in Figure (b)
[0095] In the second ranging period, the first UWB module can determine, based on the multiple initial distances, a target electronic device among the multiple second electronic devices that is closer to the initial distance of the first electronic device, that is, the initial distance between the target electronic device and the first electronic device is less than or equal to a preset threshold. The preset threshold can be flexibly set according to the actual ranging scenario. As an example, the preset threshold includes but is not limited to 2m.
[0096] When the initial distance between the target electronic device and the first electronic device is relatively close, during the second ranging period, the first UWB module may perform multiple ranging communications with the second UWB module of the target electronic device, thereby acquiring the real-time distance between the first electronic device and the target electronic device multiple times. Optionally, the ranging methods used in the multiple ranging communications are the same, for example, the multiple ranging communications all use the SS-TWR method, or the multiple ranging communications all use the DS-TWR method.
[0097] Through the technical solution of the embodiment of the present application, in the second ranging time period, the ranging frequency between the first electronic device and the target electronic device that is closer is higher, and the multiple real-time distances can be used to improve the ranging accuracy of the first electronic device and the target electronic device in the second ranging time period, so as to improve the UWB ranging performance. In addition, in the first ranging time period, the first electronic device and the multiple second electronic devices still perform one ranging communication, which can save the power consumption of the entire ranging system, so as to comprehensively improve the UWB ranging performance.
[0098] It is understandable that in Figure 3 In the illustrated embodiment, the number of target electronic devices may be one. For example, the target electronic device may be Figure 3 The second electronic device #1 in the illustrated embodiment. Alternatively, in other embodiments, the number of target electronic devices may also be multiple, in which case the first UWB module of the first electronic device may perform multiple ranging communications with the second UWB module of each target electronic device, thereby obtaining multiple real-time distances between the first electronic device and each target electronic device.
[0099] Optionally, in some embodiments, the duration of the first ranging period and the second ranging period may be equal to the Ranging Round Interval in the Fira standard. The first ranging period and the second ranging period may be two ranging rounds in the Fira standard. As an example, the duration of the first ranging period and the second ranging period may be 500ms or 1000ms.
[0100] For ease of understanding, Figure 4 A data model defined by the Fira standard is shown.
[0101] like Figure 4 As shown, in the Fira standard, the data model may include: a ranging block, a ranging round, and a ranging slot. Specifically, a ranging block may include X ranging rounds, and a ranging round may include Y ranging slots, where X and Y are both positive integers.
[0102] In the Y ranging time slots, the time slot length (Slot length) of each ranging time slot is equal. In addition, in the X ranging rounds, the duration of each ranging round, that is, the ranging round interval (Ranging Round Interval) between two adjacent ranging rounds is also equal.
[0103] In the Fira standard, two UWB modules perform only one ranging communication in one ranging round, and each ranging step in the ranging communication can be performed in one ranging time slot in the ranging round. In the current Fira standard, the ranging interval between ranging communications is the ranging round interval, which is fixed during the ranging process.
[0104] In the embodiment of the present application, in the first ranging round (i.e., the first ranging period), the first electronic device and the plurality of second electronic devices perform one ranging communication, and in the second ranging round (i.e., the second ranging period), the first electronic device and the target electronic device among the plurality of second electronic devices perform multiple ranging communications. That is, in the second ranging round interval, the ranging interval between the first electronic device and the target electronic device becomes smaller, and the ranging frequency becomes larger. The technical solution of this embodiment, on the basis of being compatible with the Fira standard, can meet the ranging scenario where the distance changes in real time and improve the ranging accuracy.
[0105] Figure 5 A schematic flowchart of another UWB ranging method 300 provided in an embodiment of the present application is shown.
[0106] like Figure 5 As shown, in addition to the above Figure 3 In addition to step S210 and step S220 shown in the illustrated embodiment, in the embodiment of the present application, the ranging method 300 may further include the following steps.
[0107] S330: In the second ranging period, when the initial distance between the first electronic device and a non-target electronic device among the plurality of second electronic devices is greater than a preset threshold, the first UWB module and the second UWB module of the non-target electronic device perform a ranging communication to obtain a real-time distance between the first electronic device and the non-target electronic device.
[0108] In an embodiment of the present application, within the second ranging period, the first UWB module can determine, based on the multiple initial distances measured in the first ranging period, a target electronic device that is closer to the initial distance of the first electronic device and a non-target electronic device that is farther from the initial distance of the first electronic device among the multiple second electronic devices, that is, the initial distance between the non-target electronic device and the first electronic device is greater than a preset threshold.
[0109] In the case where the initial distance between the non-target electronic device and the first electronic device is relatively far, in the second ranging period, the first UWB module can perform a ranging communication with the second UWB module of the non-target electronic device, thereby obtaining the real-time distance between the first electronic device and the non-target electronic device. In the second ranging period, the ranging frequency between the first electronic device and the non-target electronic device at a relatively far distance is relatively low.
[0110] Through the technical solution of the embodiment of the present application, within the second ranging period, only one ranging communication is still performed between the first electronic device and a non-target electronic device that is farther away from the multiple second electronic devices, thereby reducing the ranging frequency between the non-target electronic device and the first electronic device, saving power consumption of the non-target electronic device and the first electronic device, and further improving the UWB ranging performance.
[0111] It is understandable that in Figure 5 In the illustrated embodiment, the number of non-target electronic devices may be 1. For example, the target electronic device may be Figure 5 The second electronic device #2 in the illustrated embodiment. Alternatively, in other embodiments, the number of non-target electronic devices may also be multiple, in which case the first UWB module of the first electronic device may perform a distance measurement communication with the second UWB module of each non-target electronic device, thereby obtaining the real-time distance between the first electronic device and each non-target electronic device.
[0112] In the application scenario of the contactless payment gate, the preset threshold for distance judgment between the user's smart terminal (i.e., the second electronic device) and the POS machine (i.e., the first electronic device) can be 2m. In this case, when the user's smart terminal (i.e., the second electronic device) is outside the 2m range of the POS machine (i.e., the first electronic device), the ranging accuracy of the smart terminal does not need to be paid much attention to, and the error range of 30cm to 1m will not have a significant impact on the system. At this time, the POS machine can determine the smart terminal as a non-target electronic device and perform only one ranging communication on it within a ranging period.
[0113] When the user's smart terminal is within 2m of the POS machine, the POS machine will usually further determine whether the smart terminal has entered the gate transaction area. In this area, a higher ranging accuracy is usually required, such as a 10cm error requirement. At this time, the POS machine can determine the smart terminal as a target electronic device and perform multiple ranging communications on it within a ranging period.
[0114] Therefore, through the technical solution of the embodiment of the present application, in the application scenario of the contactless payment gate, the POS machine can use different ranging frequencies for smart terminals in different locations, and only use a higher ranging frequency in key areas to improve the ranging accuracy in key areas.
[0115] Figure 6 A schematic flowchart of another UWB ranging method 400 provided in an embodiment of the present application is shown.
[0116] like Figure 6 As shown, the ranging method 400 may include the following steps.
[0117] S411: In a first ranging period, a first UWB module of a first electronic device sends a first ranging control message (Ranging Control Message, RCM) to second UWB modules of a plurality of second electronic devices.
[0118] S412: The first UWB module and the second UWB modules of the plurality of second electronic devices perform a distance measurement communication according to the first RCM to obtain an initial distance between the first electronic device and the plurality of second electronic devices.
[0119] S421: In the second ranging period, the first UWB module of the first electronic device sends a signal to a target electronic device (eg, Figure 6 The second UWB module of the second electronic device #1) shown in sends a second RCM.
[0120] S422: The first UWB module and the second UWB module of the target electronic device perform multiple ranging communications according to the second RCM to obtain the real-time distance between the first electronic device and the target electronic device multiple times.
[0121] Optionally, in the embodiment of the present application, step S421 and step S422 may be an implementation of step S210 in the above embodiment. Step S421 and step S422 may be an implementation of step S220 in the above embodiment.
[0122] Optionally, the first RCM and the second RCM may be ranging control information defined in the Fira standard. In the case where the first ranging period and the second ranging period are two ranging rounds, the first RCM and the second RCM may be used to respectively design and configure each ranging time slot in the two ranging rounds, and each ranging time slot may correspond to a ranging step in the ranging communication.
[0123] Specifically, in step S411 and step S412, the first ranging period performs only one ranging communication between the first electronic device and the plurality of second electronic devices, that is, the first RCM is used to indicate the ranging message type of each ranging step in the one ranging communication.
[0124] In addition, in step S421 and step S422, the second ranging period may perform multiple ranging communications between the first electronic device and a target electronic device among multiple second electronic devices, the multiple ranging communications may be performed sequentially, and the second RCM may sequentially indicate the ranging message type of each ranging step in the multiple ranging communications.
[0125] Optionally, the ranging message of each ranging step in the above-mentioned ranging communication may be any one of the following: a ranging initiation message (Ranging Initiation Message, RIM), a ranging response message (Ranging Response Message, RRM), a ranging final message (Ranging Final Message, RFM), a ranging measurement report message (Ranging Measurement Report Message, RMRM) and a ranging result report message (Ranging Result Report Message, RRRM), etc.
[0126] Optionally, in the first RCM and the second RCM, different identifiers may be used to identify different types of ranging messages. As an example, the following Table 1 shows an example of using hexadecimal identifiers to identify different types of ranging messages.
[0127] Table 1
[0128]
[0129]
[0130] Optionally, in order to further improve the control accuracy of the first RCM and the second RCM over the ranging communication in the first ranging period and the second ranging period, the first RCM and the second RCM may further indicate the ranging timing, initiator role and initiator address of each ranging step in the first ranging period and the second ranging period.
[0131] For example, the first ranging period and the second ranging period can be understood as a ranging round, and the ranging timing of the ranging step can be the index of the ranging time slot where the ranging step is located in the ranging round. The initiator role indicates whether the ranging initiator belongs to the control end (Controller) or the controlled end (Controlee). In the embodiment of the present application, the control end is the first UWB module in the first electronic device, and the controlled end is the second UWB module in the second electronic device. The initiator address is the address of the ranging initiator.
[0132] Specifically, corresponding to the first ranging period and the second ranging period, the first RCM and the second RCM may include a control element for each ranging step. Each control element may include: an initiator role (Ranging Role), a ranging slot index (Ranging Slot Index), an initiator address (Address), and a predefined ranging message type. Among them, the predefined ranging message type may include any one of the ranging messages shown in Table 1 above, which can be identified by a hexadecimal identifier. Similarly, the initiator role (Ranging Role) can also be identified by an identifier, for example, "1" represents the first UWB module in the first electronic device, and "0" represents the second UWB module in the second electronic device.
[0133] In the first electronic device, the first UWB module can perform the ranging step as the initiator according to the control elements in the first RCM and the second RCM. The second UWB modules in the plurality of second electronic devices can also perform the ranging step as the initiator according to the control elements in the first RCM and the second RCM.
[0134] Through the technical solution of this implementation, RCM can be used to achieve reliable control of one ranging communication in the first ranging period and multiple ranging communications in the second ranging period, and on the basis of being compatible with the Fira standard, it can facilitate the implementation of the entire UWB ranging method.
[0135] Alternatively, if Figure 6 As shown, in step S421, within the second ranging period, the first UWB module of the first electronic device may also send a signal to a non-target electronic device (eg, Figure 6 The second UWB module of the second electronic device #2) shown in the figure sends a second RCM, which is used not only to indicate the ranging message type of each ranging step in multiple ranging communications between the first electronic device and the target electronic device, but also to indicate the ranging message type of each ranging step in one ranging communication between the first electronic device and the non-target electronic device.
[0136] Therefore, the ranging method 400 may further include step S423: within the second ranging period, the first UWB module and the second UWB module of the non-target electronic device perform a ranging communication according to the second RCM to obtain the real-time distance between the first electronic device and the non-target electronic device.
[0137] Through the technical solution of this implementation, different ranging controls for multiple second electronic devices can be achieved through the design of RCM, so that target electronic devices that are closer can perform multiple ranging communications with the first electronic device, while non-target electronic devices that are farther away can perform one ranging communication with the first electronic device. The overall solution is easy to implement and has high reliability.
[0138] Optionally, in some embodiments, during the first ranging period, the first UWB module of the first electronic device may perform a ranging communication with the second UWB modules of multiple second electronic devices according to a single-sided two-way ranging (SS-TWR) method or a double-sided two-way ranging (DS-TWR) method to obtain an initial distance between the first electronic device and the multiple second electronic devices.
[0139] Taking the DS-TWR method as an example, Figure 7 A schematic flowchart of another UWB ranging method 500 for a first ranging period provided in an embodiment of the present application is shown.
[0140] like Figure 7 As shown, the ranging method 500 may include the following steps.
[0141] S510: In a first ranging period, a first UWB module of a first electronic device sends a first RCM.
[0142] S520: The first UWB module of the first electronic device sends a RIM.
[0143] S530 and S540: The second UWB modules of the plurality of second electronic devices send RRMs.
[0144] S550: The first UWB module of the first electronic device sends an RFM.
[0145] S570 and S580: The second UWB modules of the plurality of second electronic devices send RRRM.
[0146] Specifically, in step S530 and step S540, the second UWB modules of the plurality of second electronic devices sequentially send RRM to the first UWB module of the first electronic device, and the RRM may be a response message based on RIM.
[0147] Similarly, in step S570 and step S580, the second UWB modules of the plurality of second electronic devices sequentially send RRRMs to the first UWB module of the first electronic device, and the RRRMs may be response messages based on RFM.
[0148] The set of RIM, RRM, RFM and RRRM may be equivalent to Figure 1The first UWB module and the second UWB module can calculate the flight time of the message data according to the timestamps of the RIM, RRM, RFM and RRRM, and then calculate the distance between the first electronic device and the second electronic device.
[0149] Optionally, in order to improve the accuracy of ranging, Figure 7 As shown, before steps S570 and S580, the ranging method 500 may further include step S560: the first UWB module of the first electronic device sends an RMRM. The RMRM may carry auxiliary information related to ranging, and the first UWB module and the second UWB module may further correct or optimize the calculated ranging result according to the auxiliary information carried in the RMRM.
[0150] In step S510, the first RCM sent by the first UWB module can be used to configure each subsequent ranging step, that is, to configure the information for sending subsequent RIM, RRM, RFM, RMRM and RRRM. Optionally, the first RCM can also configure its own related information.
[0151] Table 2 below shows a schematic table of a first RCM.
[0152] Table 2
[0153]
[0154] Specifically, in the above schematic Table 2, the first RCM may include 8 control elements. The 8 control elements may be used for Figure 7 8 ranging steps in the first ranging period in the DS-TWR. Corresponding to the first control element, in the first ranging step S510, the ranging initiator is the first UWB module, which can send ranging information identified as "0x3", that is, a ranging control message RCM. Similarly, corresponding to the subsequent control elements, the first UWB module and the second UWB module can perform corresponding steps according to the control element to achieve a ranging communication between the two based on DS-TWR.
[0155] It is understandable that, within the first ranging period, the first UWB module of the first electronic device and the second UWB modules of the plurality of second electronic devices may also perform a ranging communication based on SS-TWR. In this case, the ranging method 500 may not include steps S550 to S570, and a set of RIM and RRM may be equivalent to Figure 1 The ranging data sent in executing the SS-TWR method is shown in Figure (a).
[0156] Through the technical solution of the embodiment of the present application, in the first ranging period, different ranging methods can be flexibly selected to perform initial ranging on the first electronic device and multiple second electronic devices, so as to improve the flexibility of use of the ranging method provided by the embodiment of the present application. In the first ranging period, if the SS-TWR method is used to perform ranging, the ranging capacity of the initial ranging stage can be increased, so that the first electronic device can perform initial ranging on a larger number of second electronic devices at the same time. If the DS-TWR method is used to perform ranging, the ranging accuracy is high, so that the ranging accuracy of the initial ranging can be improved.
[0157] Optionally, in some embodiments, during the second ranging period, the first UWB module of the first electronic device may perform multiple ranging communications with the second UWB module of a target electronic device among multiple second electronic devices according to a bilateral two-way ranging (DS-TWR) method to obtain the real-time distance between the first electronic device and the target electronic device multiple times.
[0158] Figure 8 A schematic flowchart of another UWB ranging method 600 for the second ranging period provided in an embodiment of the present application is shown.
[0159] like Figure 8 As shown, the ranging method 600 may include the following steps.
[0160] S610: In a second ranging period, the first UWB module of the first electronic device sends a second RCM.
[0161] S621: The first UWB module of the first electronic device sends a first RIM.
[0162] S622: Target electronic device (e.g. Figure 8 The second UWB module of the second electronic device #1) shown in FIG. 1 sends a first RRM.
[0163] S623: The first UWB module of the first electronic device sends a first RFM.
[0164] S624: The first UWB module of the first electronic device sends a first RMRM.
[0165] S625: The second UWB module of the target electronic device sends a first RRRM.
[0166] S631: The first UWB module of the first electronic device sends a second RIM.
[0167] S632: The second UWB module of the target electronic device sends a second RRM.
[0168] S633: The first UWB module of the first electronic device sends a second RFM.
[0169] S634: The first UWB module of the first electronic device sends a second RMRM.
[0170] S635: The second UWB module of the target electronic device sends a second RRRM.
[0171] Alternatively, if Figure 8 As shown, steps S621 to S625 may be the first distance measurement communication between the first UWB module of the first electronic device and the second UWB module of the target electronic device based on DS-TWR. The first UWB module may obtain the first real-time distance with the target electronic device based on the timestamps of the first RIM, the first RRM, the first RFM, the first RMRM, and the first RRRM in the first distance measurement communication.
[0172] Steps S631 to S635 may be a second ranging communication between a first UWB module of a first electronic device and a second UWB module of a target electronic device based on DS-TWR. The first UWB module may acquire a second real-time distance to the target electronic device based on the timestamps of the second RIM, the second RRM, the second RFM, the second RMRM, and the second RRRM in the second ranging communication.
[0173] By analogy, in the second ranging period, the first UWB module of the first electronic device and the second UWB module of the target electronic device may further perform more ranging communications based on DS-TWR to obtain more real-time distances to the target electronic device.
[0174] That is, in the embodiment of the present application, the first UWB module of the first electronic device can sequentially perform multiple ranging communications with the target electronic device according to the DS-TWR method to sequentially obtain multiple real-time distances between the target electronic device and the first UWB module. Through the technical solution of this embodiment, multiple ranging communications are sequentially performed, which is conducive to the reliable implementation of multiple ranging communications, thereby improving the accuracy and stability of UWB ranging.
[0175] In step S610, the second RCM sent by the first UWB module can be used to configure each ranging step in subsequent multiple ranging communications, that is, to configure the sending of subsequent multiple RIMs, RRMs, RFMs, RMRMs and RRRMs. Optionally, the second RCM can also configure its own related information.
[0176] Table 3 below shows a schematic table of a second RCM.
[0177] Table 3
[0178]
[0179]
[0180] Specifically, in the above exemplary Table 3, the second RCM may include 11 control elements. The 11 control elements may be used for Figure 8 11 ranging steps in the first ranging period in the DS-TWR. Corresponding to the first control element, in the first ranging step S610, the ranging initiator is the first UWB module, which can send ranging information identified as "0x3", that is, a ranging control message RCM. Similarly, corresponding to the subsequent control elements, the first UWB module and the second UWB module can perform corresponding steps according to the control element to achieve multiple ranging communications between the two based on DS-TWR.
[0181] It can be understood that, when there are multiple target electronic devices, in each ranging communication, after the first UWB module sends RIM, the second UWB module of each target electronic device can send RRM to the first UWB module in turn. Similarly, after the first UWB module sends RFM, the second UWB module of each target electronic device can send RRRM to the first UWB module in turn. The second RCM can be used to configure each ranging step in multiple ranging communications between the first UWB module and the second UWB modules of multiple target electronic devices.
[0182] Through the technical solution of the embodiment of the present application, for a target electronic device that is closer to a plurality of second electronic devices, a DS-TWR method with higher ranging accuracy can be used to perform multiple ranging operations, thereby further improving the ranging accuracy and comprehensively ensuring the UWB ranging performance.
[0183] Optionally, in some embodiments, during the second ranging period, the first UWB module of the first electronic device may also perform a ranging communication with the second UWB module of a non-target electronic device among multiple second electronic devices according to a bilateral two-way ranging (DS-TWR) method to obtain a real-time distance between the first electronic device and the non-target electronic device.
[0184] Fig. 9 A schematic flowchart of another UWB ranging method 700 for the second ranging period provided in an embodiment of the present application is shown.
[0185] like Fig. 9 As shown, the ranging method 700 may include the following steps.
[0186] S710: In a second ranging period, the first UWB module of the first electronic device sends a second RCM.
[0187] S721: The first UWB module of the first electronic device sends a first RIM.
[0188] S722: Target electronic device (e.g. Fig. 9 The second UWB module of the second electronic device #1) shown in FIG. 1 sends a first RRM.
[0189] S723: Non-target electronic devices (e.g. Fig. 9 The second UWB module of the second electronic device #2) shown in sends the first RRM.
[0190] S724: The first UWB module of the first electronic device sends a first RFM.
[0191] S725: The first UWB module of the first electronic device sends a first RMRM.
[0192] S726: The second UWB module of the target electronic device sends a first RRRM.
[0193] S727: The second UWB module of the non-target electronic device sends a first RRRM.
[0194] S731: The first UWB module of the first electronic device sends a second RIM.
[0195] S732: The second UWB module of the target electronic device sends a second RRM.
[0196] S733: The first UWB module of the first electronic device sends a second RFM.
[0197] S734: The first UWB module of the first electronic device sends a second RMRM.
[0198] S735: The second UWB module of the target electronic device sends a second RRRM.
[0199] Alternatively, if Fig. 9 As shown, steps S721 to S727 may be a first distance measurement communication between a first UWB module of a first electronic device and a second UWB module of a target electronic device and a non-target electronic device based on DS-TWR. The first UWB module may obtain a first real-time distance with the target electronic device and a first real-time distance with the non-target electronic device based on the first distance measurement communication.
[0200] Steps S731 to S735 may be a second distance measurement communication between the first UWB module of the first electronic device and the second UWB module of the target electronic device based on DS-TWR. The first UWB module may acquire a second real-time distance to the target electronic device based on the second distance measurement communication.
[0201] By analogy, in the second ranging period, the first UWB module of the first electronic device and the second UWB module of the target electronic device can also perform more ranging communications based on DS-TWR to obtain more real-time distances to the target electronic device. Each ranging communication can refer to the above steps S731 to S735.
[0202] In step S710, the second RCM sent by the first UWB module can be received by the target electronic device and the non-target electronic device. The second RCM can be used to configure each ranging step in multiple ranging communications between the first UWB module and the target electronic device and each ranging step in one ranging communication with the non-target electronic device. Optionally, the second RCM can also configure its own related information.
[0203] Table 4 below shows a schematic table of another second RCM.
[0204] Table 4
[0205]
[0206] Specifically, in the above exemplary Table 4, the second RCM may include 13 control elements. The 13 control elements may be used for Fig. 9 There are 13 ranging steps in the first ranging period.
[0207] Through the technical solution of the embodiment of the present application, for non-target electronic devices that are farther away from multiple second electronic devices, a DS-TWR method with higher ranging accuracy can also be used to perform ranging once, thereby ensuring its ranging accuracy. In addition, the target electronic device and the non-target electronic device in the multiple second electronic devices use the same DS-TWR ranging method, which can simplify the entire ranging process, that is, in one ranging communication, a real-time distance between the first electronic device and the target electronic device and a real-time distance between the first electronic device and the non-target electronic device can be measured simultaneously.
[0208] In the above application embodiment, the first RCM can be used to indicate each ranging step in the first ranging period, and the second RCM can be used to indicate each ranging step in the second ranging period. The length of the first RCM and the second RCM depends on the number of ranging steps, and the number of ranging steps is related to the number of electronic devices in the ranging process. The more electronic devices in the ranging system, the more ranging steps, which will cause the RCM length to be longer.
[0209] In actual applications, the length of RCM has certain limitations. For example, in the Fira standard, the length of RCM is generally limited to 127 bytes. Therefore, the RCM will limit the number of electronic devices in the ranging system, thereby affecting the UWB ranging capacity.
[0210] In view of this, in some embodiments of the present application, when the number of the plurality of second electronic devices is greater than the preset number X, the plurality of second electronic devices may be divided into N groups, and the number of the second electronic devices in each group of second electronic devices may be less than the preset number X, where X and N are positive integers greater than 1. X may be designed according to the length limit of the RCM in the relevant specification, and as an example, X may be a positive integer less than or equal to 8.
[0211] In a ranging period, the first UWB module of the first electronic device can send RCM to each group of second electronic devices in N groups of second electronic devices, and can perform ranging communication with each group of second electronic devices in the N groups of second electronic devices in sequence based on the N RCMs to obtain the distance between each group of second electronic devices.
[0212] Through the technical solution of the embodiment of the present application, when the number of multiple second electronic devices is large, the multiple second electronic devices are divided into N groups, and the number of second electronic devices in each group is small. Therefore, the length of the RCM corresponding to each group of second electronic devices is also short, which can not only meet the requirements of relevant standards, but also facilitate the first electronic device to measure the distance with a large number of second electronic devices within a ranging period, thereby improving the real-time performance of UWB ranging.
[0213] In this case, during the first ranging period, the first UWB module of the first electronic device may sequentially perform a ranging communication with each of the N groups of second electronic devices to obtain an initial distance with each group of second electronic devices.
[0214] In the second ranging period, the first UWB module of the first electronic device sequentially performs multiple ranging communications with the target electronic device in each of the N groups of second electronic devices to obtain the real-time distance between the target electronic device in each group of second electronic devices.
[0215] Fig.10 FIG. 8 is a schematic flow chart of another UWB ranging method 800 provided in an embodiment of the present application. Fig.10 In the illustrated embodiment, the distance measurement system includes two groups of second electronic devices, wherein the second electronic device #1 and the second electronic device #2 are the first group of second electronic devices, and the second electronic device #3 and the second electronic device #4 are the second group of second electronic devices.
[0216] like Fig.10 As shown, the ranging method 800 may include the following steps.
[0217] S811: In a first ranging period, the first UWB module of the first electronic device performs a ranging communication with the first group of second electronic devices to obtain an initial distance between the first group of second electronic devices.
[0218] S812: In the first ranging period, the first UWB module of the first electronic device performs a ranging communication with the second electronic devices of the second group to obtain an initial distance between the first electronic device and the second electronic devices of the second group.
[0219] S821: In the second ranging period, the first UWB module of the first electronic device performs a communication with a target electronic device (eg, Fig.10 Multiple ranging communications are performed between the second electronic device #1) shown in the figure to obtain the real-time distance between the target electronic device in the first group of second electronic devices multiple times.
[0220] S822: In the second ranging period, the first UWB module of the first electronic device performs communication with a target electronic device (eg, Fig.10 Multiple ranging communications between the second electronic device #3) shown in the figure are performed to obtain the real-time distance between the target electronic device and the second group of second electronic devices multiple times.
[0221] Specifically, in Fig.10 In the illustrated embodiment, the first ranging period and the second ranging period each include two ranging sub-periods, and the two ranging sub-periods may correspond to two groups of second electronic devices, respectively. For example, in step S811, in the first sub-period of the first ranging period, the first UWB module of the first electronic device performs a ranging communication with the first group of second electronic devices. In step S812, in the second sub-period of the first ranging period, the first UWB module of the first electronic device performs a ranging communication with the second group of second electronic devices. Similarly, in step S821, in the first sub-period of the second ranging period, the first UWB module of the first electronic device performs multiple ranging communications with the target electronic device in the first group of second electronic devices. In step S822, in the second sub-period of the second ranging period, the first UWB module of the first electronic device performs multiple ranging communications with the target electronic device in the second group of second electronic devices.
[0222] Through the technical solution of the embodiment of the present application, for the first ranging period and the second ranging period, ranging can be performed for each second electronic device in the N groups of second electronic devices respectively. On the basis of balancing the ranging accuracy and system power consumption, the ranging capacity of the ranging system can be further expanded to optimize the UWB ranging performance as a whole.
[0223] Optionally, in some embodiments, during the second ranging period, the first UWB module of the first electronic device may sequentially perform one ranging communication with non-target electronic devices in each group of second electronic devices in addition to sequentially performing multiple ranging communications with target electronic devices in each group of second electronic devices. In other words, in an embodiment of the present application, during the second ranging period, when the first UWB module performs ranging communications with each group of second electronic devices, in addition to performing multiple ranging communications with the target electronic device, it may also perform one ranging communication with the non-target electronic device.
[0224] For example, Fig.10 As shown, the ranging method 800 may further include the following steps.
[0225] S823: In the second ranging period, the first UWB module of the first electronic device performs communication with a non-target electronic device (eg, Fig.10 A ranging communication is performed between the second electronic device #2) shown in the figure to obtain the real-time distance between the non-target electronic devices in the first group of second electronic devices.
[0226] S824: In the second ranging period, the first UWB module of the first electronic device performs communication with a non-target electronic device (eg, Fig.10 A ranging communication is performed between the second electronic device #4) shown in the figure to obtain the real-time distance between the non-target electronic devices in the second group of second electronic devices.
[0227] Fig.11 FIG. 9 is a schematic flow chart of another UWB ranging method 900 provided in an embodiment of the present application. As an example, Fig.11 The i-th group of second electronic devices among the N groups of second electronic devices is shown, wherein i≤N, i is a positive integer, that is, the i-th group of second electronic devices can be any group of second electronic devices among the N groups of second electronic devices.
[0228] like Fig.11 As shown, the ranging method 900 may include the following steps.
[0229] S911: In the i-th sub-period of the first ranging period, the first UWB module of the first electronic device sends the i-th first RCM to the i-th group of second electronic devices in the N groups of second electronic devices.
[0230] S912: The first UWB module and the second UWB module of the i-th group of second electronic devices perform a ranging communication according to the i-th first RCM to obtain an initial distance between the first electronic device and the i-th group of second electronic devices.
[0231] S921: In the i-th sub-period of the second ranging period, the first UWB module of the first electronic device sends a signal to a target electronic device (eg, Fig.11 The second UWB module of the second electronic device #i1) shown in sends the i-th second RCM.
[0232] S922: The first UWB module and the second UWB module of the target electronic device in the i-th group of second electronic devices perform multiple ranging communications according to the i-th second RCM to obtain the real-time distance between the first electronic device and the target electronic device multiple times.
[0233] Specifically, in the embodiment of the present application, within the first ranging period, the first UWB of the first electronic device may send a first RCM to each group of second electronic devices in N groups of second electronic devices, wherein the i-th first RCM corresponds to the i-th group of second electronic devices. The i-th first RCM may be used to indicate the ranging message type of each ranging step in a ranging communication between the first electronic device and the i-th group of second electronic devices.
[0234] Similarly, in the second ranging period, the first UWB of the first electronic device may send a second RCM to the target electronic device of each group of second electronic devices in the N groups of second electronic devices, wherein the i-th second RCM corresponds to the target electronic device in the i-th group of second electronic devices. The i-th second RCM may be used to indicate the ranging message type of each ranging step in multiple ranging communications between the first electronic device and the target electronic device in the i-th group of second electronic devices.
[0235] Optionally, the relevant technical features of the i-th first RCM and the i-th second RCM can be found in the above Figure 6 Relevant descriptions of the first RCM and the second RCM in the illustrated embodiment.
[0236] In the i-th sub-period of the first ranging period, for a ranging communication between the i-th group of second electronic devices and the first electronic device, the SS-TWR method or the DS-TWR method may be used. In the case of using the DS-TWR method, the relevant technical solution for a ranging communication between the first electronic device and the i-th group of second electronic devices may refer to the above Figure 7 The relevant description of the embodiment shown in the figure. Figure 7 The first ranging period in the embodiment of the present application is understood as the i-th sub-period in the first ranging period. Figure 7 The second electronic device #1 and the second electronic device #2 are understood to be the i-th group of second electronic devices in the embodiment of the present application.
[0237] In the i-th sub-period of the second ranging period, for multiple ranging communications between the target electronic device in the i-th group of second electronic devices and the first electronic device, the SS-TWR method can be used. In this case, the relevant technical solutions for multiple ranging communications between the first electronic device and the target electronic device in the i-th group of second electronic devices can be found in the above Figure 8 The relevant description of the embodiment shown in the figure. Figure 8 The second ranging period in is understood as the i-th sub-period in the second ranging period in the embodiment of the present application. Figure 8 The second electronic device #1 is understood to be the target electronic device in the i-th group of second electronic devices in the embodiment of the present application.
[0238] Alternatively, if Fig.11 As shown, in step S921, in the i-th sub-period of the second ranging period, the first UWB module of the first electronic device may also send a signal to a non-target electronic device (eg, Fig.11 The second UWB module of the second electronic device #i2) shown in the figure sends the i-th second RCM, which, in addition to being used to indicate the ranging message type of each ranging step in multiple ranging communications between the first electronic device and the target electronic device, is also used to indicate the ranging message type of each ranging step in a ranging communication between the first electronic device and a non-target electronic device.
[0239] Therefore, if Fig.11 As shown, the ranging method 900 may include S923: within the i-th sub-period of the second ranging period, the first UWB module and the second UWB module of the non-target electronic device in the i-th group of second electronic devices perform a ranging communication according to the second RCM to obtain the real-time distance between the first electronic device and the non-target electronic device.
[0240] In the i-th sub-period of the second ranging period, for a single ranging communication between a non-target electronic device in the i-th group of second electronic devices and the first electronic device, the SS-TWR method may also be used. In this case, the relevant technical solutions for the single ranging communication between the first electronic device and the non-target electronic device in the i-th group of second electronic devices and the multiple ranging communications between the first electronic device and the target electronic device in the i-th group of second electronic devices can be referred to above. Fig. 9 The relevant description of the embodiment shown in the figure. Fig. 9 The second ranging period in is understood as the i-th sub-period in the second ranging period in the embodiment of the present application. Fig. 9 The second electronic device #1 is understood to be the target electronic device in the i-th group of second electronic devices in the embodiment of the present application. Fig. 9 The second electronic device #2 is understood to be a non-target electronic device in the i-th group of second electronic devices in the embodiment of the present application.
[0241] Through the technical solution of the embodiment of the present application, RCM is used to indicate the ranging communication between the first electronic device and each group of second electronic devices in N groups of second electronic devices, which has high implementation reliability and is easy to implement.
[0242] In order to prevent the other groups of second electronic devices from entering a sleep state and being unable to establish a connection with the first electronic device during the process of performing ranging communication between the first electronic device and the i-th group of second electronic devices, in some embodiments, when i≤N-1, the i-th first RCM and the i-th second RCM, in addition to being used to indicate each ranging step in the ranging communication, may also be further used to indicate the next RCM, i.e., the i+1-th first RCM and the i+1-th second RCM, so that the other groups of second electronic devices may enter a waiting state instead of a sleep state according to the identifier for indicating the i+1-th RCM attached to the i-th RCM.
[0243] Table 5 below shows a schematic table of the i-th first RCM.
[0244] Table 5
[0245]
[0246]
[0247] Specifically, in the above-illustrated Table 5, the i-th first RCM may include 9 control elements. In the 1st control element, the ranging initiator is the first UWB module, which may send ranging information identified as "0x3", i.e., RCM. The first UWB module may send the i-th first RCM according to the 1st control element. In the 9th control element, the ranging initiator is the first UWB module, which may again send ranging information identified as "0x3", i.e., RCM. The first UWB module may send the i+1th first RCM according to the 9th control element.
[0248] Further, the first UWB module, the second UWB module of the second electronic device i2# and the second UWB module of the second electronic device i2# may perform ranging communication according to the 2nd to 8th control elements.
[0249] Similar to the above-mentioned i-th first RCM, in the i-th second RCM, based on its original control elements, a control element may be added at the end to indicate the (i+1)-th second RCM.
[0250] It can be understood that, when i=N, the Nth first RCM and the Nth second RCM do not include control elements for indicating the next RCM, and the Nth first RCM and the Nth second RCM only include control elements for indicating themselves.
[0251] In addition, on the basis that the i-th first RCM is also used to indicate the i+1-th second RCM, and the i-th second RCM is also used to indicate the i+1-th second RCM, the ultra-wideband ranging method provided in the embodiment of the present application further includes:
[0252] During the i+1th sub-period of the first ranging period, the first UWB module of the first electronic device sends the i+1th first RCM to the i+1th group of second electronic devices in the N groups of second electronic devices according to the identifier indicating the i+1th first RCM in the i-th first RCM; and the first UWB module of the first electronic device can perform a ranging communication with the i+1th group of second electronic devices according to the i+1th first RCM to obtain the initial distance between the i+1th group of second electronic devices.
[0253] During the i+1th sub-period of the second ranging period, the first UWB module of the first electronic device sends the i+1th second RCM to the i+1th group of second electronic devices in the N groups of second electronic devices according to the identifier indicating the i+1th second RCM in the i-th second RCM; and the first UWB module of the first electronic device can perform multiple ranging communications with the target electronic device in the i+1th group of second electronic devices according to the i+1th second RCM to obtain the real-time distance between the target electronic device and the target electronic device.
[0254] Through the technical solution of the embodiment of the present application, the first electronic device can continue to perform ranging communication with the i+1th group of second electronic devices based on the i+1th first RCM and the i+1th second RCM to ensure a continuous and reliable ranging process between the first electronic device and N groups of second electronic devices.
[0255] In addition to the above UWB ranging methods, such as Fig.12 As shown, an embodiment of the present application further provides a UWB ranging device 1000, including: a memory 1020 and a processor 1010, wherein the memory 1020 is used to store programs, and the processor 1010 is used to execute the programs stored in the memory 1020. When the programs stored in the memory 1020 are executed, the processor 1010 is used to execute the UWB ranging method in any of the above embodiments.
[0256] Optionally, the UWB ranging device 1000 may include the first UWB module in the first electronic device in the above embodiment, or the UWB ranging device may also be the second UWB module in the second electronic device in the above embodiment. Each UWB module in the first electronic device and the second electronic device may specifically be a UWB chip, which may include a processor and other related functional units.
[0257] Specifically, the processor in the UWB module may include a transceiver interface for implementing the reception and transmission of data in the UWB ranging method. In addition, the processor in the UWB ranging device may also include a data processing unit for implementing data processing in the UWB ranging method.
[0258] like Fig.13 As shown, the embodiment of the present application further provides a UWB ranging system 1100, including: a first electronic device 1110 and a plurality of second electronic devices 1120, wherein the first electronic device 1110 includes a first UWB module, and each of the plurality of second electronic devices 1120 includes a second UWB module. The first UWB module in the first electronic device 1110 and the second UWB modules in the plurality of second electronic devices 1120 can execute the ranging method in any of the above embodiments to implement UWB ranging communication between the first electronic device 1110 and the plurality of second electronic devices 1120.
[0259] In some implementations, the first electronic device 1110 may be a POS machine, which may be applied to a gate machine or an access control system. The second electronic device 1120 may be a smart terminal, such as a mobile phone, a wristband, or a tag device.
[0260] It should be understood that the specific examples in this article are only intended to help those skilled in the art better understand the embodiments of the present application, rather than to limit the scope of the embodiments of the present application.
[0261] It should also be understood that in the various embodiments of the present application, the size of the serial number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0262] It should also be understood that the various implementation methods described in this specification can be implemented individually or in combination, and the embodiments of the present application are not limited to this.
[0263] Unless otherwise stated, all technical and scientific terms used in the embodiments of the present application are the same as the meanings generally understood by those skilled in the art of the technical field of the present application. The terms used in the present application are only for the purpose of describing specific embodiments and are not intended to limit the scope of the present application. The term "and / or" used in the present application includes any and all combinations of one or more related listed items. The singular forms of "a kind of", "above" and "the" used in the embodiments of the present application and the appended claims are also intended to include majority forms, unless the context clearly indicates other meanings. In addition, the terms "first", "second", "third" etc. are only used for description purposes and cannot be understood as indicating or suggesting relative importance.
[0264] It should be understood that the processor or processing module of the embodiment of the present application can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware decoding processor to be executed, or a combination of hardware and software modules in the decoding processor to be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware.
[0265] The memory or storage module in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories.
[0266] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0267] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0268] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0269] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0270] 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 separately, or two or more units may be integrated into one unit.
[0271] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
[0272] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An ultra-wideband ranging method, characterized in that: A first ultra-wideband (UWB) module is applied to a first electronic device, and the ultra-wideband ranging method includes: In a first ranging period, performing a ranging communication with a plurality of second electronic devices to obtain initial distances between the plurality of second electronic devices; In a second ranging period, when the initial distance between the target electronic device and the plurality of second electronic devices is less than or equal to a preset threshold, performing multiple ranging communications with the target electronic device to obtain the real-time distance between the target electronic device and the plurality of second electronic devices multiple times; The first ranging period and the second ranging period are equal in length; The performing of multiple ranging communications with the target electronic device to obtain multiple real-time distances with the target electronic device includes: Sending ranging control information RCM to the target electronic device; performing the multiple ranging communications with the target electronic device according to the RCM to obtain the real-time distance between the target electronic device and the target electronic device multiple times; The RCM is used to indicate the ranging message type of each ranging step in the multiple ranging communications.
2. The ultra-wideband ranging method according to claim 1, characterized in that: The ultra-wideband ranging method further includes: In the second ranging period, when the initial distance to a non-target electronic device among the plurality of second electronic devices is greater than the preset threshold, a ranging communication is performed with the non-target electronic device to obtain a real-time distance to the non-target electronic device.
3. The ultra-wideband ranging method according to claim 2, characterized in that: The performing of multiple ranging communications with the target electronic device to obtain the real-time distance between the target electronic device and the non-target electronic device, and performing one ranging communication with the non-target electronic device to obtain the real-time distance between the non-target electronic device and the non-target electronic device, includes: Sending ranging control information RCM to the target electronic device and the non-target electronic device; performing multiple ranging communications with the target electronic device according to the RCM to obtain the real-time distance between the target electronic device and the target electronic device multiple times; Performing a distance measurement communication with the non-target electronic device according to the RCM to obtain a real-time distance between the non-target electronic device and the non-target electronic device; The RCM is used to indicate the ranging message type of each ranging step in the one ranging communication and the multiple ranging communications.
4. The ultra-wideband ranging method according to any one of claims 1 to 3, characterized in that: The RCM is also used to indicate the ranging timing, initiator role and initiator address of each ranging step in the multiple ranging communications.
5. The ultra-wideband ranging method according to any one of claims 1 to 3, characterized in that: The performing of a distance measurement communication with a plurality of second electronic devices within the first distance measurement period to obtain initial distances between the plurality of second electronic devices includes: In the first ranging period, a ranging communication is performed with a plurality of second electronic devices according to a unilateral two-way ranging method or a bilateral two-way ranging method to acquire initial distances with the plurality of second electronic devices.
6. The ultra-wideband ranging method according to any one of claims 1 to 3, characterized in that: The method further comprises: performing multiple ranging communications with a target electronic device in the plurality of second electronic devices within the second ranging period when the initial distance between the target electronic device and the target electronic device is less than or equal to a preset threshold value, so as to obtain the real-time distance between the target electronic device and the target electronic device multiple times, including: During the second ranging period, when the initial distance between the target electronic device and the plurality of second electronic devices is less than or equal to a preset threshold, multiple ranging communications are performed with the target electronic device according to the bilateral two-way ranging method to obtain the real-time distance between the target electronic device and the plurality of second electronic devices.
7. The ultra-wideband ranging method according to claim 6, characterized in that: The performing of multiple ranging communications with the target electronic device according to the bilateral two-way ranging method to obtain the real-time distance between the target electronic device and the target electronic device multiple times includes: Multiple distance measurement communications with the target electronic device are sequentially performed according to the bilateral two-way ranging method to sequentially obtain multiple real-time distances with the target electronic device.
8. The ultra-wideband ranging method according to claim 2 or 3, characterized in that: The method of performing a ranging communication with a non-target electronic device in the plurality of second electronic devices within the second ranging period when the initial distance between the non-target electronic device and the non-target electronic device is greater than the preset threshold value to obtain a real-time distance between the non-target electronic device and the non-target electronic device includes: During the second ranging period, when the initial distance between the non-target electronic device and the plurality of second electronic devices is greater than the preset threshold, a ranging communication is performed with the non-target electronic device according to the bilateral two-way ranging method to obtain the real-time distance between the non-target electronic device and the non-target electronic device.
9. The ultra-wideband ranging method according to any one of claims 1 to 3, characterized in that: The plurality of second electronic devices include N groups of second electronic devices, where N is a positive integer greater than 1; The ultra-wideband ranging method comprises: In the first ranging period, sequentially sending a first RCM to each group of second electronic devices in the N groups of second electronic devices, and performing a ranging communication with each group of second electronic devices in the N groups of second electronic devices according to the N first RCMs, so as to obtain an initial distance between each group of second electronic devices; During the second ranging period, a second RCM is sent to each group of second electronic devices in the N groups of second electronic devices in turn, and multiple ranging communications are performed with the target electronic devices in each group of second electronic devices according to the N second RCMs to obtain the real-time distance between the target electronic devices in each group of second electronic devices.
10. The ultra-wideband ranging method according to claim 9, characterized in that: The method of sending a second RCM to each group of second electronic devices in the N groups of second electronic devices in sequence during the second ranging period, and performing multiple ranging communications with the target electronic device in each group of second electronic devices according to the N second RCMs to obtain a real-time distance between the target electronic device in each group of second electronic devices, includes: In an i-th sub-period of the second ranging period, sending an i-th second RCM to an i-th group of second electronic devices in the N groups of second electronic devices; According to the i-th second RCM, perform multiple ranging communications with the target electronic device in the i-th group of second electronic devices to obtain a real-time distance between the target electronic device and the target electronic device, wherein i≤N, i is a positive integer; The i-th second RCM is used to indicate the ranging message type, ranging timing, initiator role and initiator address of each ranging step in the multiple ranging communications.
11. The ultra-wideband ranging method according to claim 10, characterized in that: In the case where i≤N-1, the i-th second RCM is also used to indicate the i+1-th second RCM, and the ultra-wideband ranging method further includes: In the i-th sub-period of the second ranging period, the i-th second RCM is sent to other groups of second electronic devices in the N groups of second electronic devices except the i-th group of second electronic devices, and the other groups of second electronic devices enter a waiting state according to an identifier indicating the (i+1)-th second RCM in the i-th second RCM.
12. The ultra-wideband ranging method according to claim 11, characterized in that: The ultra-wideband ranging method further includes: In an i+1th sub-period of the second ranging period, according to an identifier indicating the i+1th second RCM in the i-th second RCM, sending the i+1th second RCM to the i+1th group of second electronic devices in the N groups of second electronic devices; According to the (i+1)th second RCM, multiple distance measurement communications are performed with the target electronic device in the (i+1)th group of second electronic devices to obtain a real-time distance with the target electronic device.
13. The ultra-wideband ranging method according to claim 9, characterized in that: Before the step of sequentially performing a ranging communication with each group of the N groups of second electronic devices within the first ranging period to obtain an initial distance between each group of the second electronic devices, the ultra-wideband ranging method further includes: Determining that the plurality of second electronic devices is greater than a preset number X, where X is a positive integer greater than 1; The plurality of second electronic devices are divided into N groups, and the number of second electronic devices in each group of second electronic devices is less than or equal to X.
14. The ultra-wideband ranging method according to any one of claims 1 to 3, characterized in that: The first electronic device is a POS machine, and the second electronic device is a smart terminal.
15. An ultra-wideband ranging method, characterized in that: A second ultra-wideband (UWB) module is applied to a second electronic device, and the ultra-wideband ranging method includes: In a first ranging period, performing a ranging communication with a first electronic device to obtain an initial distance between the first electronic device and the first electronic device; In a second ranging period, when the initial distance between the first electronic device and the first electronic device is less than or equal to a preset threshold, performing multiple ranging communications with the first electronic device to obtain the real-time distance between the first electronic device and the first electronic device multiple times; The first ranging period and the second ranging period are equal in length; The performing multiple distance measurement communications with the first electronic device to obtain multiple real-time distances with the first electronic device includes: Receiving ranging control information RCM sent by the first electronic device; performing the multiple distance measurement communications with the first electronic device according to the RCM to obtain the real-time distance between the first electronic device and the first electronic device multiple times; The RCM is used to indicate the ranging message type of each ranging step in the multiple ranging communications.
16. The ultra-wideband ranging method according to claim 15, characterized in that: The ultra-wideband ranging method further includes: In the second ranging period, when the initial distance to the first electronic device is greater than the preset threshold, a ranging communication is performed with the first electronic device to obtain a real-time distance to the first electronic device.
17. The ultra-wideband ranging method according to claim 15, characterized in that: The RCM is also used to indicate the ranging timing, initiator role and initiator address of each ranging step in the multiple ranging communications.
18. The ultra-wideband ranging method according to any one of claims 15 to 17, characterized in that: The performing of a distance measurement communication with the first electronic device within the first distance measurement period to obtain an initial distance with the first electronic device includes: In the first ranging period, a ranging communication is performed with the first electronic device according to a unilateral two-way ranging method or a bilateral two-way ranging method to acquire an initial distance with the first electronic device.
19. The ultra-wideband ranging method according to any one of claims 15 to 17, characterized in that: The method further comprises: performing multiple ranging communications with the first electronic device in a case where the initial distance between the first electronic device and the first electronic device is less than or equal to a preset threshold value within the second ranging period to obtain the real-time distance between the first electronic device and the first electronic device multiple times, including: In the second ranging period, when the initial distance with the first electronic device is less than or equal to a preset threshold, multiple ranging communications with the first electronic device are performed according to the bilateral two-way ranging method to obtain the real-time distance with the first electronic device multiple times.
20. The ultra-wideband ranging method according to claim 19, characterized in that: The performing multiple ranging communications with the first electronic device according to the bilateral two-way ranging method to obtain the real-time distance between the first electronic device and the first electronic device multiple times includes: Multiple distance measurement communications with the first electronic device are sequentially performed according to the bilateral two-way ranging method to sequentially acquire multiple real-time distances with the first electronic device.
21. The ultra-wideband ranging method according to any one of claims 15 to 17, characterized in that: The second electronic device is an i-th group of second electronic devices in N groups of second electronic devices, i≤N, i and N are positive integers; and within the second ranging period, when the initial distance between the second electronic device and the first electronic device is less than or equal to a preset threshold, performing multiple ranging communications with the first electronic device to obtain the real-time distance between the first electronic device and the first electronic device multiple times, including: In an i-th sub-period of the second ranging period, when the initial distance between the first electronic device and the first electronic device is less than or equal to a preset threshold, receiving an i-th second RCM sent by the first electronic device; performing multiple distance measurement communications with the first electronic device according to the i-th second RCM to obtain a real-time distance with the first electronic device; The i-th second RCM is used to indicate the ranging message type, ranging timing, initiator role and initiator address of each ranging step in the multiple ranging communications.
22. The ultra-wideband ranging method according to claim 21, characterized in that: When i≤N-1, the i-th second RCM is also used to indicate the i+1-th second RCM, and the identifier indicating the i+1-th second RCM in the i-th second RCM is used to indicate that other groups of second electronic devices in the N groups of second electronic devices except the i-th group of second electronic devices enter a waiting state.
23. The ultra-wideband ranging method according to any one of claims 15 to 17, characterized in that: The first electronic device is a POS machine, and the second electronic device is a smart terminal.
24. An ultra-wideband ranging device, characterized in that: include: A memory for storing a program, a processor for executing the program stored in the memory, and when the program stored in the memory is executed, the processor is used to execute the ultra-wideband ranging method according to any one of claims 1 to 14, or the processor is used to execute the ultra-wideband ranging method according to any one of claims 15 to 23.
25. An ultra-wideband ranging system, characterized in that: include: A first electronic device, comprising a first UWB module, wherein the first UWB module is used to perform the ultra-wideband ranging method according to any one of claims 1 to 14; A plurality of second electronic devices, each of the plurality of second electronic devices comprises a second UWB module, and the second UWB module is used to execute the ultra-wideband ranging method according to any one of claims 15 to 23.
Citation Information
Patent Citations
Robot and movement control method and device thereof
CN111309012A
Framework of secure ranging without phy payload
CN113287033A
Data processing method and device, terminal and storage medium
CN114513749A
Scheduling method, device and system for ranging of UWB system and medium
CN114554582A
Method for improving terminal access quantity of beacon broadcast type UWB ranging system
CN115128587A
