Distancing method and communication device
By encrypting each ranging frame with unique parameters, the UWB ranging technology addresses security risks in UWB ranging, enhancing security and reducing power consumption and operating time.
Patent Information
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2024-05-22
- Publication Date
- 2026-07-07
AI Technical Summary
The existing UWB ranging technology faces security risks due to the use of identical scrambled timestamp sequences (STS) in each ranging round, which can be exploited, compromising the security of distance measurements.
Implementing a method where each ranging frame in a ranging round is encrypted with unique encryption parameters, ensuring that the first and second devices independently derive the same encryption parameters based on the same configuration information and key derivation algorithm without establishing a communication link, reducing operating time and system power consumption.
This approach enhances secure ranging performance by ensuring each ranging frame has unique encryption, thereby improving security and reducing system power consumption and operating time.
Smart Images

Figure 2026522236000001_ABST
Abstract
Description
[Technical Field]
[0001] This application relates to the field of communications, and more specifically to a distance measuring method and a communications device.
[0002] This application claims priority to Chinese Patent Application No. 202310644978.0, filed with the State Intellectual Property Administration of China on 1 June 2023 and titled "RANGING METHOD AND COMMUNICATION APPARATUS," which is incorporated herein by reference in its entirety. [Background technology]
[0003] Ultra-wideband (UWB) technology is a wireless carrier communication technology that uses nanosecond-level non-sinusoidal narrow pulses for data transmission. UWB technology occupies extremely large bandwidths and features high transmission rates and large system capacities, allowing it to coexist with existing communication systems. Based on these characteristics, UWB can achieve higher ranging and positioning accuracy than existing wireless positioning technologies, reaching centimeter-level accuracy. In addition, UWB's high temporal resolution enables it to exhibit excellent multipath resistance, allowing ranging and positioning even in complex multipath environments. Therefore, UWB is currently a hot spot in research.
[0004] With the ongoing updates to the UWB standard, new standards introduce scrambled timestamp sequences (STS) into the ranging process, enhancing ranging security. However, in a single UWB ranging round between two devices, each transmitted STS ranging frame is identical, posing a security risk. [Overview of the project]
[0005] This application provides a distance measuring method for performing distance measurement between a first device and a second device in a safer manner.
[0006] According to a first embodiment, a distance measurement method is provided, the method is applied to a first device, the first device includes a first broadband system and a first narrowband system, the channel bandwidth corresponding to the first broadband system is greater than the channel bandwidth corresponding to the first narrowband system, the method is that the first broadband system generates a first distance measurement encryption parameter, the first distance measurement encryption parameter includes a first distance measurement sequence value, the first distance measurement encryption parameter is the same as a second distance measurement encryption parameter, and the first distance measurement encryption parameter and the second distance measurement encryption parameter are respectively required to be used by the first device and the second device to perform distance measurement. The method includes: a cryptographic parameter; a first broadband system transmitting a first ranging frame to a second broadband system of a second device, wherein the first ranging frame is generated based on the first ranging cryptographic parameter; and a first broadband system receiving a second ranging frame from the second broadband system based on a third ranging cryptographic parameter, wherein the third ranging cryptographic parameter is a corresponding parameter obtained by updating a first ranging sequence value in the first ranging cryptographic parameter to a second ranging sequence value, and the second ranging frame is generated based on the third ranging cryptographic parameter.
[0007] For example, a broadband system is a UWB communication system, while a narrowband system is a communication system such as Wi-Fi, Bluetooth, or Zigbee (Zigbee protocol).
[0008] In the aforementioned technical solution, each ranging frame in a ranging round is determined based on different ranging encryption parameters. Therefore, the generated ranging frames are different from each other. Specifically, the first and second devices encrypt and decrypt different ranging frames using different encryption parameters. This ensures that each ranging frame has unique encryption parameters within the ranging process, effectively improving secure ranging performance.
[0009] In some implementations of the first embodiment, the first ranging encryption parameter further includes a first ranging sequence key.
[0010] In some implementations of the first embodiment, the method includes a first broadband system generating a first ranging sequence based on a first ranging encryption parameter, and the first broadband system generating a first ranging frame based on the first ranging sequence.
[0011] In some implementations of the first embodiment, the reception of a second ranging frame from a second broadband system based on a third ranging encryption parameter by a first broadband system includes the first broadband system generating a second ranging sequence based on the third ranging encryption parameter and the first broadband system receiving a second ranging frame from a second broadband system based on the second ranging sequence.
[0012] In some implementations of the first embodiment, the first ranging sequence is a channel impulse response training sequence.
[0013] In some implementations of the first embodiment, the second distance measurement sequence value is obtained by adding the first value and the value of the first distance measurement sequence value at the corresponding first position.
[0014] Alternatively, the first distance measurement sequence value may be continuously updated by another means, provided that the update method used by the first broadband system is consistent with the update method used by the second broadband system, i.e., that the updated distance measurement sequence value of the first broadband system is the same as the updated distance measurement sequence value of the second broadband system. The method for updating the distance measurement sequence value is not particularly limited in this application.
[0015] In some implementations of the first embodiment, a first distance measurement encryption parameter is generated by a first broadband system based on distance measurement setting information and a first key derivation algorithm, and a second distance measurement encryption parameter is generated by a second broadband system based on distance measurement setting information and a first key derivation algorithm.
[0016] In the aforementioned technical solution, the first and second devices independently derive the same ranging encryption parameters based on the same ranging configuration information and the same key derivation algorithm, without establishing a communication link between the broadband systems, and perform communication negotiations regarding the relevant parameters. This effectively reduces the operating time of the broadband systems and lowers system power consumption.
[0017] In some implementations of the first embodiment, the method further includes the first narrowband system transmitting ranging setting information to a second narrowband system of a second device.
[0018] In the aforementioned technical solution, the first and second devices negotiate ranging setting information within the narrowband system so that the operating time of the broadband system can be effectively reduced and system power consumption can be reduced.
[0019] In some implementations of the first embodiment, the distance measurement setting information includes session keys and distance measurement parameters for the first and second devices.
[0020] In some implementations of the first aspect, the method comprises the first wideband system transmitting a third ranging frame to the second wideband system, the third ranging frame being generated based on a fourth ranging encryption parameter, the fourth ranging encryption parameter being a corresponding parameter obtained by updating a second ranging sequence value in the third ranging encryption parameter with a third ranging sequence value.
[0021] In some implementations of the first aspect, the method further comprises the first wideband system transmitting a first ranging frame to the third wideband system of a third device, and the first wideband system receiving a fourth ranging frame from the third wideband system based on a third ranging encryption parameter, the fourth ranging frame being generated based on the third ranging encryption parameter.
[0022] For example, when the ranging method is two-sided bidirectional ranging, the first ranging frame is a ranging start frame, the second ranging frame is a ranging response frame, the third ranging frame is a ranging end frame, and the first ranging frame, the second ranging frame, and the third ranging frame are the ranging frames that need to be transmitted in one ranging round.
[0023] For example, when the ranging method is one-sided bidirectional ranging, the method does not include the third ranging frame. The first ranging frame is a ranging start frame, the second ranging frame is a ranging response frame, and the first ranging frame and the second ranging frame are the ranging frames that need to be transmitted in one ranging round.
[0024] In some implementations of the first embodiment, the method further includes the first broadband system generating a fifth ranging encryption parameter when the number of ranging rounds between a first device and a second device is equal to a first threshold, wherein the fifth ranging encryption parameter is the same as the sixth ranging encryption parameter, and is different from the first ranging encryption parameter, the sixth ranging encryption parameter is a ranging encryption parameter generated by the second broadband system when the number of ranging rounds is equal to a first threshold, and the fifth ranging encryption parameter and the sixth ranging encryption parameter are encryption parameters that the first device and the second device must use to perform ranging after the number of ranging rounds corresponding to the first threshold.
[0025] It can be understood that, after multiple ranging rounds, the first ranging sequence value is continuously updated, and the updated ranging sequence value may be repeated. Therefore, in this method, when the number of ranging rounds between the first and second devices is equal to a first threshold, the first and second broadband systems can continue ranging based on the newly acquired ranging encryption parameters, further ensuring that in the ranging process corresponding to multiple ranging rounds, each ranging frame has unique encryption parameters.
[0026] According to a second embodiment, a distance measurement method is provided, the method being applied to a second device, the second device comprising a second broadband system and a second narrowband system, wherein the channel bandwidth corresponding to the second broadband system is greater than the channel bandwidth corresponding to the second narrowband system, and the method is that the second broadband system acquires a second distance measurement encryption parameter, the second distance measurement encryption parameter comprising a first distance measurement sequence value, the second distance measurement encryption parameter being the same as the first distance measurement encryption parameter, and the first distance measurement encryption parameter and the second distance measurement encryption parameter being used by the first device and the second device, respectively, to perform distance measurement. The present invention includes: a certain encryption parameter; a second broadband system receiving a first distance frame from the first broadband system of the first device based on the second distance encryption parameter, wherein the first distance frame is generated based on the first distance encryption parameter; and the second broadband system transmitting a second distance frame to the first broadband system, wherein the second distance frame is generated based on a third distance encryption parameter, the third distance encryption parameter being a corresponding parameter obtained by updating the first distance sequence value in the first distance encryption parameter to the second distance sequence value.
[0027] For the beneficial effects of the second embodiment, please refer to the explanation in the first embodiment. Further details will not be explained again here.
[0028] In some implementations of the second embodiment, the first ranging encryption parameter further includes a first ranging sequence key.
[0029] In some implementations of the second embodiment, the reception of a first ranging frame from the first broadband system of the first device based on a first ranging encryption parameter by the second broadband system includes the second broadband system generating a first ranging sequence based on the first ranging encryption parameter and the second broadband system receiving a first ranging frame from the first broadband system based on the first ranging sequence.
[0030] In some implementations of the second embodiment, the method further includes a second broadband system generating a second ranging sequence based on a third ranging encryption parameter, and the second broadband system generating a second ranging frame based on the second ranging sequence.
[0031] In some implementations of the second embodiment, the second ranging sequence is a channel impulse response training sequence.
[0032] In some implementations of the second embodiment, the second distance measurement sequence value is obtained by adding the first value to the value of the first distance measurement sequence value at the corresponding first position.
[0033] In some implementations of the second embodiment, the first distance measurement encryption parameter is generated by a first broadband system based on distance measurement setting information and a first key derivation algorithm, and the second distance measurement encryption parameter is generated by a second broadband system based on distance measurement setting information and a first key derivation algorithm.
[0034] In some implementations of the second embodiment, the method further includes the second narrowband system receiving ranging setting information from the first narrowband system of the first device.
[0035] In some implementations of the second embodiment, the distance measurement setting information includes session keys and distance measurement parameters for the first and second devices.
[0036] In some implementations of the second embodiment, the method further includes a second broadband system receiving a third ranging frame from a first broadband system based on a fourth ranging encryption parameter, the fourth ranging encryption parameter being a corresponding parameter obtained by updating a second ranging sequence value in the third ranging encryption parameter to a third ranging sequence value, and the third ranging frame being generated based on the fourth ranging encryption parameter.
[0037] In some implementations of the second embodiment, the method further includes the second broadband system generating a sixth ranging encryption parameter when the number of ranging rounds between a first device and a second device is equal to a first threshold, wherein the sixth ranging encryption parameter is the same as the fifth ranging encryption parameter, and is different from the second ranging encryption parameter, the fifth ranging encryption parameter is a ranging encryption parameter generated by the second broadband system when the number of ranging rounds is equal to a first threshold, and the fifth ranging encryption parameter and the sixth ranging encryption parameter are encryption parameters that the first device and the second device must use to perform ranging after the number of ranging rounds corresponding to the first threshold.
[0038] According to a third aspect, the present application provides a communication device. The communication device has a function that implements a method according to the first aspect or any one of the possible implementations of the first aspect. The function may be implemented by hardware or by hardware running corresponding software. The hardware or software includes one or more units corresponding to the aforementioned function, for example, a processing unit and / or a communication unit.
[0039] In one implementation, the device is the first device. When the device is the first device, the communication unit may be a transceiver or an input / output interface, and the processing unit may be at least one processor. For example, a transceiver may be a transceiver circuit. For example, an input / output interface may be an input / output circuit.
[0040] In another implementation, the device is a chip, a chip system, or a circuit used within a first device. If the device is a chip, a chip system, or a circuit used within a first device, the communication unit may be an input / output interface, interface circuit, output circuit, input circuit, pin, associated circuit, etc., on the chip, chip system, or circuit, and the processing unit may be at least one processor, processing circuit, logic circuit, etc.
[0041] According to a fourth aspect, the present application provides a communication device. The communication device has a function that implements a method according to the second aspect or any one of the possible implementations of the second aspect. The function may be implemented by hardware or by hardware running corresponding software. The hardware or software includes one or more units corresponding to the aforementioned function, for example, a processing unit, a receiving unit, or a transmitting unit.
[0042] In one implementation, the device is a second device. When the device is a second device, the communication unit may be a transceiver or an input / output interface, and the processing unit may be at least one processor. For example, a transceiver may be a transceiver circuit. For example, an input / output interface may be an input / output circuit.
[0043] In another implementation, the device is a chip, a chip system, or a circuit used within a first device. If the device is a chip, a chip system, or a circuit used within a second device, the communication unit may be an input / output interface, interface circuit, output circuit, input circuit, pin, associated circuit, etc., on the chip, chip system, or circuit, and the processing unit may be at least one processor, processing circuit, logic circuit, etc.
[0044] According to a fifth aspect, the application provides a communication device comprising at least one processor, the at least one processor coupled to at least one memory, the at least one memory configured to store a computer program or instruction, the at least one processor configured to call a computer program or instruction from the at least one memory, execute the computer program or instruction, and enable the communication device to perform the method according to the first aspect or any one of the possible implementations of the first aspect.
[0045] In one implementation, the device is the first device.
[0046] In another implementation, the device is a chip, a chip system, or a circuit used within a first device.
[0047] According to a sixth aspect, the present application provides a communication device comprising at least one processor, the at least one processor coupled to at least one memory, the at least one memory configured to store a computer program or instruction, the at least one processor configured to call a computer program or instruction from the at least one memory, execute the computer program or instruction, and enable the communication device to perform a method according to the second aspect or any one of the possible implementations of the second aspect.
[0048] In one implementation, the device is the second device.
[0049] In another implementation, the device is a circuit used within a chip, a chip system, or a second device.
[0050] According to a seventh aspect, the present application provides a processor, which is configured to perform the method provided in the preceding aspects.
[0051] Unless otherwise specified, or provided that the operation does not contradict the actual function or internal logic of the operation in the relevant description, the operation of the processor, such as the output and reception or input, may be understood as the operation of the processor, such as the output and reception or input, or the operation of the radio frequency circuit and antenna, such as the output and reception or input, performed by the radio frequency circuit and antenna. This is not limited to the present application.
[0052] According to the eighth aspect, the present application provides a computer-readable storage medium that stores computer instructions. When the computer instructions are executed on a computer, a method according to the first aspect or any one of the possible implementations thereof is performed.
[0053] According to the ninth aspect, the present application provides a computer-readable storage medium. The computer-readable storage medium stores computer instructions. When the computer instructions are executed on a computer, a method according to the second aspect or one of the possible implementations of the second aspect is executed.
[0054] According to the tenth aspect, the present application provides a computer program product, the computer program product including computer program code, when the computer program code is executed on a computer, a method according to the first aspect or one of any possible implementations thereof is performed.
[0055] According to the eleventh aspect, the present application provides a computer program product, the computer program product including computer program code, when the computer program code is executed on a computer, a method according to the second aspect or one of a possible implementation of the second aspect is performed.
[0056] According to the twelfth aspect, a communication system is provided. The communication system includes communication devices as shown in the fifth and sixth aspects. [Brief explanation of the drawing]
[0057] [Figure 1] This is a diagram illustrating two application scenarios based on this application. [Figure 2] This is a diagram of a distance measurement and positioning system to which UWB distance measurement technology applicable to the embodiments of this application is applied. [Figure 3] This is a diagram of the UWB distance measurement method according to this application. [Figure 4] This is a schematic flowchart of a distance measurement method according to one embodiment of this application. [Figure 5] This figure shows that when one device performs distance measurement on another device according to this application, each distance measurement frame has a unique encryption parameter. [Figure 6] This figure shows that when one device performs distance measurement on multiple devices according to this application, each distance measurement frame has a unique encryption parameter. [Figure 7] This figure shows that when multiple devices perform distance measurement on multiple devices in accordance with this application, each distance measurement frame has a unique encryption parameter. [Figure 8] This is a block diagram of a communication device 200 according to one embodiment of the present application. [Figure 9] This is a block diagram of a communication device 300 according to one embodiment of the present application. [Modes for carrying out the invention]
[0058] The technical solutions of the embodiments described herein will be explained below with reference to the attached drawings.
[0059] The embodiments of this application, based on UWB technology, may be applied to wireless personal area networks (WPANs). The standards currently used by WPANs are the Institute of Electrical and Electronics Engineers (IEEE) 802.15 series. WPANs can be used for communication between small-range digital auxiliary devices, such as telephones, computers, and other auxiliary devices, with a typical operating range of 10 meters or less. Technologies supporting wireless personal area networks include Bluetooth, ZigBee, ultra-wideband, IrDA infrared connectivity, and HomeRF. Those skilled in the art will readily understand that the various embodiments of this application may be extended to other networks using various standards or protocols, such as Wireless Local Area Networks (WLANs), High Performance Radio LANs (HIPERLANs) (wireless standards similar to the IEEE 802.11 standard, primarily used in Europe), Wide Area Networks (WANs), or other networks currently known or to be developed in the future. From a network configuration perspective, WPAN sits at the lowest layer of the overall network architecture and is intended for wireless connections between devices over a small range, i.e., point-to-point short-range connections; it can be considered a short-range wireless communication network. Based on different application scenarios, WPAN is further classified into high-rate (HR)-WPAN and low-rate (L)-WPAN. HR-WPAN can be used to support various high-rate multimedia applications, including high-quality voice and video distribution, and multi-megabyte music and image document transmission. LR-WPAN can be used for common services in daily life.
[0060] In WPAN, devices can be classified into full-function devices (FFDs) and reduced-function devices (RFDs) based on their communication capabilities. FFD devices can communicate with each other, and FFD devices and RFD devices can communicate with each other. RFD devices cannot communicate directly with each other, but can communicate only with FFD devices, or can transfer data externally through one FFD device. An FFD device associated with an RFD is called the RFD coordinator. RFD devices are primarily for simple control applications such as light switches and passive infrared sensors, transmitting small amounts of data and occupying small amounts of transmission and communication resources. Therefore, the cost of RFD devices is low. A coordinator may also be called a personal area network (PAN) coordinator, central control node, etc. The PAN coordinator is the main control node for the entire network, and each ad-hoc network can have only one PAN coordinator, which has the functions of member identification management, link information management, and packet forwarding. Optionally, the device in the embodiments of this application may be a device that supports multiple WPAN standards, such as 802.15.4a, 802.15.4z, and the currently discussed version or later versions.
[0061] In the embodiments of this application, the device may be a communication server, router, switch, bridge, computer, mobile phone, home smart device, vehicle-mounted communication device, etc.
[0062] In embodiments of this application, the device includes a hardware layer, an operating system layer operating on top of the hardware layer, and an application layer operating on top of the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and memory (also referred to as main memory). The operating system may be any one or more types of computer operating systems that perform service processing via processes, such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a Windows operating system. The application layer includes applications such as a browser, an address book, word processing software, and instant messaging software. In addition, the particular structure of the execution body of the method provided in embodiments of this application is not particularly limited in embodiments of this application, provided that a program that records the code of the method provided in embodiments of this application can be executed to perform communication according to the method provided in embodiments of this application. For example, the execution body of the method provided in embodiments of this application may be an FFD or RFD, or a functional module located within an FFD or RFD that can call and execute a program.
[0063] Alternatively, embodiments of this application are further applicable to wireless local area network systems such as Internet of Things (IoT) networks or Vehicle to X (V2X). Indeed, embodiments of this application are applicable to other possible communication systems, such as long-term evolution (LTE) systems, LTE frequency division duplex (FDD) systems, LTE time division duplex (TDD) systems, universal mobile telecommunications systems (UMTS), worldwide interoperability for microwave access (WiMAX) communication systems, 5th generation (5G) communication systems, and future 6th generation (6G) communication systems.
[0064] The aforementioned communication systems applicable to this application are merely illustrative examples and are not limited thereto. This is explained uniformly here and will not be explained again below.
[0065] Figure 1 illustrates two application scenarios according to this application. In system 101 shown in Figure 1(A), multiple FFD devices and multiple RFD devices form a star topology communication system, with one FFD acting as the PAN controller. In a star topology communication system, the PAN controller performs data transmission with one or more other devices. In other words, a one-to-many or many-to-one data transmission architecture can be established between multiple devices. In system 102 shown in Figure 1(B), multiple FFD devices and one RFD device form a peer-to-peer topology communication system, with one FFD acting as the PAN controller. In a peer-to-peer topology communication system, a many-to-many data transmission architecture can be established between multiple different devices.
[0066] Figures 1(A) and 1(B) are simplified diagrams for ease of understanding and should be understood as not constituting limitations on the application scenarios of this application. For example, system 101 and / or system 102 may further include another FFD and / or another RFD.
[0067] To facilitate understanding of the technical solutions in the embodiments of this application, some terms or concepts used in the embodiments of this application will first be briefly explained.
[0068] 1. UWB technology is a wireless carrier communication technology. In UWB, pulses with a pulse width at the nanosecond level are used as the fundamental signal. UWB is characterized by high transmission speed, large system capacity, large spectral bandwidth, and low power spectral density, allowing it to coexist with existing short-range communication systems. Due to the characteristics of UWB, it has high temporal resolution, strong multipath immunity, and high distance measurement and positioning accuracy at the centimeter level. It has become a hot spot for research on performing distance measurement and positioning in complex multipath environments.
[0069] Since the Federal Communications Commission (FCC) approved the entry of UWB technology into the consumer sector in 2002, ultra-wideband (UWB) wireless communication has become one of the common physical layer technologies for short-range and high-speed wireless networks. Many globally renowned companies, research institutions, and standardization bodies are actively engaged in the research, development, and standardization of UWB wireless communication technology. The Institute of Electrical and Electronics Engineers (IEEE) has incorporated UWB technology into its IEEE 802 series wireless standards and released the UWB-based WPAN standard IEEE 802.15.4a and its evolution, IEEE 802.15.4z. Currently, the next-generation UWB-based WPAN standard 802.15.4ab is on the agenda.
[0070] 2. Time Division Multiple Access (TDMA) is a communication technology used to share a transmission medium or network. Multiple users are allowed to use the same frequency in different time slices (e.g., slots, symbols, and frames). Users use their respective time slices to perform transmissions rapidly and continuously. TDMA technology enables multiple users to share the same transmission medium (e.g., radio frequency).
[0071] 3. TDMA Slot Allocation: A condition for a network to access channels using the TDMA method is that all nodes in the network maintain slot synchronization. After slot synchronization is achieved across the network, it is necessary to consider how to effectively allocate slots so that the system can achieve better performance. Specifically, in the TDMA frame structure, one TDMA frame contains several subframes, and one subframe contains several slots. All or some of the slots in the TDMA frame structure can be allocated to multiple users based on the data traffic required by each user, so that each user has a different slot. This ensures that user signals do not interfere with each other.
[0072] In addition, in the TDMA system, uplink and downlink transmissions may be performed simultaneously within each user's slot.
[0073] It should be understood that the TDMA slot allocation method is not limited to the embodiments of this application. For further details, please refer to current allocation algorithms or TDMA slot allocation methods proposed in future communication technologies.
[0074] 4. WPAN is an emerging wireless communication network technology proposed to achieve wireless seamless connectivity with a small activity radius and rich service types originating from a specific group. From a network configuration standpoint, WPAN is located at the end of the entire network chain and is used to implement connections between terminals in the same location, such as the connection between a mobile phone and a Bluetooth headset. The coverage area of WPAN is typically within a radius of 10m, and WPAN devices must operate in a licensed radio frequency band. WPAN devices have advantages such as low cost, small size, ease of operation, and low power consumption.
[0075] The following briefly describes a ranging and positioning system to which UWB ranging technology is applied, with reference to Figure 2. Figure 2 is a diagram of the architecture of a ranging and positioning system according to one embodiment of the present application. As shown in Figure 2, the ranging and positioning system comprises a plurality of devices (e.g., device 1 and device 2 in Figure 2), each device comprising at least a UWB module and a narrowband module. Devices 1 and 2 may communicate with each other using UWB technology or using narrowband (NB) technology. Specifically, positioning and / or ranging may be performed between the UWB modules of device 1 and device 2, and data transmission may be performed between the narrowband modules of device 1 and device 2 by using a wireless link.
[0076] In this application, a UWB module may be understood as a device, chip, system, etc., that implements UWB wireless communication technology. Correspondingly, a narrowband module may be understood as a device, chip, system, etc., that implements narrowband communication technology (such as Wi-Fi, Bluetooth, or ZigBee protocol). In a single device, the UWB module and the narrowband module may be different devices or chips. Indeed, the UWB module and the narrowband module may be integrated into a single device or chip. Embodiments of this application do not limit the implementation of UWB modules and narrowband modules within a device. UWB technology enables communication devices to have high data throughput and enables devices to have high accuracy in positioning.
[0077] The devices in this application may be wireless communication chips, wireless sensors, or wireless communication terminals, such as user terminals, user equipment, access devices, subscriber stations, subscriber units, mobile stations, user agents, or user devices that support Wi-Fi communication functionality. User terminals may include various handheld devices, in-vehicle devices, wearable devices, Internet of Things (IoT) devices, or computing devices with wireless communication capabilities, or other processing devices connected to wireless modems, various forms of user equipment (UE), mobile stations (MS), terminals, terminal equipment, portable communication devices, handheld devices, portable computing devices, entertainment devices, game devices or systems, global positioning system devices, or any other suitable devices configured to perform network communication over a wireless medium. Furthermore, devices may support the 802.15.4ab standard or the next-generation standard of 802.15.4ab. The device further supports multiple standards such as 802.15.4a, 802.15.4-2011, 802.15.4-2015, and 802.15.4z. The device may further support next-generation wireless local area network (WLAN) standards in the 802.11 family, such as 802.11ax, 802.11ac, 802.11n, 802.11g, 802.11b, 802.11a, and 802.11be.
[0078] The UWB ranging method will be briefly described below with reference to Figure 3. Figure 3 is a diagram of a UWB ranging method according to one embodiment of the present application. Typically, UWB requires the use of a narrowband signal such as near-field communication (NFC), Bluetooth low energy (BLE), or wireless fidelity (Wi-Fi) as a driver. The UWB is activated in the scenario required by the user. After activation, the UWB establishes a personal area network, performs time division multiple access (TDMA) slot allocation, and completes the necessary ranging and positioning functions. For example, a one-device-to-one ranging procedure is used as an example. The procedure includes the following steps:
[0079] Step 1: A BLE connection is established between device 1 and device 2, and a session key is generated through negotiation via the BLE system.
[0080] Please understand that the BLE connection established between device 1 and device 2 will be used to activate the respective UWB systems on device 1 and device 2.
[0081] Step 2: The first UWB system is started, and then the second UWB system is started.
[0082] The first UWB system of device 1 is activated by a BLE connection between device 1 and device 2, and the second UWB system of device 2 is also activated by a BLE connection between device 2 and device 1. After activation, the first and second UWB systems are initialized separately. For example, both the first and second UWB systems may have default parameters applied. For example, default parameters may include the number of channels, preamble code, and rate defined during initialization. After the UWB systems of device 1 and device 2 are activated, the first and second UWB systems can perform networking and ranging operations.
[0083] Please understand that after the UWB system is started, steps 3 through 9 will all be completed within the UWB system.
[0084] Step 3: After the UWB system is started, Device 1 and Device 2 establish a secure link within the UWB system based on the session key. Then, distance measurement is started within the UWB system.
[0085] Generally, the ranging process involves four roles: the ranging controller, the ranging controller, the ranging initiator, and the ranging responder. The controller is responsible for sending ranging control message (RCM) frames. The RCM frame includes security parameters, role definitions, and slot allocation control, i.e., which device is used as the ranging initiator and which device is used as the ranging responder. In the ranging process, each time slice is allocated using a TDMA-based RCM frame. For example, in this explanation, we will use an example where device 1 is used as both the ranging controller and ranging initiator, and device 2 is used as both the ranging controller and ranging responder. Device 1 performs ranging with device 2.
[0086] Step 4: Device 1 sends an RCM frame to Device 2. In response, Device 2 receives the RCM frame sent by Device 1.
[0087] Specifically, the RCM frame may contain the following information:
[0088] (1) Slot allocation information: Device 1 may allocate time based on TDMA and define four roles in the ranging process. Specifically, the ranging process between Device 1 and Device 2 is performed by Device 1 and Device 2 based on the ranging phase allocated by TDMA.
[0089] (2) Distance measurement information: Device 1 derives a 128-bit STS value (stsValue) and a 128-bit STS key (stsKey) used to generate the STS based on the session key, and combines stsValue and stsKey to form a ranging STS key data information element (RSKD IE). stsKey is carried by the STS key in the RSKD IE, and stsValue is carried by the V3 / V2 / V1 / V counters in the RSKD IE. The STS key occupies 128 bits, and V1, V2, V3, and V counters each occupy 4 bytes and each occupy 32 bits.
[0090] Step 5: Device 2 obtains stsKey and stsValue from the RSKD IE of the RCM frame through analysis.
[0091] Step 6: Device 1 generates an STS distance measurement sequence based on stsKey and stsValue and sends the STS distance measurement sequence to Device 2 as a distance measurement start frame. Correspondingly, Device 2 generates an STS based on stsKey and stsValue, receives a distance measurement start frame from Device 1 based on the STS, and measures the received distance measurement start frame.
[0092] Step 7: Device 2 generates an STS distance measurement sequence based on stsKey and stsValue and sends the STS distance measurement sequence to Device 2 as a distance measurement response frame. Correspondingly, Device 1 generates an STS distance measurement sequence based on stsKey and stsValue, receives a distance measurement response frame from Device 2 based on STS, and measures the received distance measurement response frame.
[0093] Step 8: Device 1 generates an STS distance measurement sequence based on stsKey and stsValue and sends the STS distance measurement sequence to Device 2 as the final distance measurement frame. Correspondingly, Device 2 generates an STS distance measurement sequence based on stsKey and stsValue, receives the final distance measurement frame from Device 1 based on STS, and measures the received final distance measurement frame.
[0094] Please understand that steps 6 through 8 are explained using double-sided two-way ranging (DS-TWR) as an example. If one-sided two-way ranging is used as an example, only steps 6 and 7 in steps 6 through 8 need to be performed.
[0095] Step 9: The measurement information is broadcast between device 1 and device 2 to calculate the flight time of the ranging frames and complete the ranging between the devices.
[0096] Specifically, the first UWB system may broadcast the distance measurement results determined by the first UWB system to the second UWB system. The second UWB system may also broadcast the distance measurement results determined by the second UWB system to the first UWB system.
[0097] Steps 4 through 8 can be considered a single distance measurement round. After a distance measurement round, a new distance measurement round can be repeated according to steps 4 through 8.
[0098] Currently, negotiation of stsKey and stsValue is not supported in a single UWB ranging round. As a result, all ranging frames in a single ranging round (i.e., ranging start frame, ranging response frame, and ranging final frame) are the same, which presents a security risk.
[0099] With this in mind, this application provides a distance measuring method to effectively solve the aforementioned technical problems.
[0100] The specific structure of the execution body of the method provided in the embodiments of this application is not particularly limited in the following embodiments, provided that a program for recording the code of the method provided in the embodiments of this application can be executed to perform communication in accordance with the method provided in the embodiments of this application. For example, the execution body of the method provided in the embodiments of this application may be a transceiver device, or a functional module located within a transceiver device that can call and execute a program.
[0101] To facilitate understanding of the embodiments of this application, the following points will be explained.
[0102] Firstly, in this application, "to indicate" may include "to indicate directly" and "to indicate indirectly." When a certain indication information indicates A, the indication information may indicate A directly or indirectly, but it does not necessarily indicate that the indication information communicates A.
[0103] The information indicated by the indication information is referred to as the indicated information. In a particular implementation process, there are several ways to indicate the indicated information. For example, the indicated information may be indicated directly. For example, the indicated information or an index of the indicated information may be indicated. Alternatively, the indicated information may be indicated indirectly by indicating other information, and there may be a relationship between the other information and the indicated information. Or, only a part of the indicated information may be indicated, and the other part of the indicated information may be known or pre-agreed upon. For example, some indication overhead may be reduced by indicating certain information by using a sequence of pre-agreed (e.g., specified in a protocol) information. In addition, the indication overhead that would result from indicating the same information separately may be reduced by identifying and indicating the common parts of all the information together.
[0104] Secondly, “at least one” as used in this application means one or more, and “multiple” means two or more. In addition, in the embodiments of this application, “first,” “second,” and various numbers (e.g., “#1” and “#2”) are used simply to facilitate explanation and distinction, and are not used to limit the scope of the embodiments of this application. Sequence numbers in the following processes do not imply execution order. The execution order of the processes should be determined according to the function and internal logic of the processes and should not be interpreted as any limitation on the implementation process of the embodiments of this application. It should be understood that the components described in this manner may be interchangeable where appropriate, and as a result, solutions other than the embodiments of this application may be described. In addition, in the embodiments of this application, codes such as “1010,” “1020,” and “1110” are merely identifiers for facilitating explanation and do not limit the set of execution steps.
[0105] Thirdly, in the embodiments of this application, terms such as “example” or “for example” are used to provide examples, illustrations, or explanations. Any embodiment or design scheme described as “example” or “for example” in this application should not be described as being preferable or having more advantages than another embodiment or design scheme. More precisely, the use of terms such as “example” or “for example” is intended to present a relative concept in a particular way.
[0106] Fourth, in the embodiments of this application, “stored” may mean “stored in one or more memories.” One or more memories may be located separately or may be integrated into an encoder, decoder, processor, or communication device. Alternatively, some of the one or more memories may be located separately and some may be integrated into a decoder, processor, or communication device. The type of memory may be any form of storage medium; this is not limited to this application.
[0107] Fifth, the “protocol” in the embodiments of this application may be a standard protocol in the field of communications, and may include, for example, the Wi-Fi protocol and related protocols applicable to future communications systems. This is not limited to this application.
[0108] Sixth, in the embodiments of this application, “of,” “corresponding / relevant,” “corresponding,” and “associated” may sometimes be used interchangeably. Note that unless the differences between the terms are emphasized, the expressed meanings are consistent.
[0109] Seventh, the term “and / or” in this application describes only the relationship between the related objects, indicating that three relationships may exist. For example, A and / or B may mean that only A exists, both A and B exist, and only B exists. In addition, the symbol “ / ” in this specification generally indicates an “or” relationship between the related objects.
[0110] Without loss of generality, the distance measuring method provided in the embodiments of this application will be described in detail below by using the interaction between a first device and a second device as an example.
[0111] For example, rather than being an limitation, the first device may be a device having communication capabilities within the WPAN, such as an FFD or RFD. Similarly, the second device may also be a device having communication capabilities within the WPAN, such as an FFD or RFD. It should be understood that the specific types of the first and second devices are not limited to the following embodiments of this application, provided that the steps performed by the first and second devices in the following embodiments can be carried out.
[0112] Figure 4 is a schematic flowchart of a distance measurement method according to one embodiment of this application. The method may include the following steps.
[0113] S410: The first broadband system generates a first distance measurement encryption parameter, and the second broadband system obtains a second distance measurement encryption parameter. The first distance measurement encryption parameter includes a first distance measurement sequence value, and the first distance measurement encryption parameter is the same as the second distance measurement encryption parameter, and the first and second distance measurement encryption parameters are encryption parameters that need to be used by the first and second devices, respectively, to perform distance measurement.
[0114] Specifically, in this embodiment, the first device includes a first broadband system and a first narrowband system, and the second device includes a second broadband system and a second narrowband system. The first and second devices may communicate with each other on a first channel by using the first and second broadband systems, or they may communicate with each other on a second channel by using the first and second narrowband systems. The bandwidth of the first channel is greater than the bandwidth of the second channel. For example, the first device may be device 1 in Figure 2, the first broadband system is the UWB module of device 1, and the first narrowband system is the narrowband module of device 1; the second device may be device 2 in Figure 2, the second broadband system is the UWB module of device 2, and the second narrowband system is the narrowband module of device 2.
[0115] For example, the first distance measurement encryption parameter may further include a first distance measurement sequence key. For example, the bit length of the distance measurement sequence value may be 128 bits, and the bit length of the distance measurement sequence key may be 128 bits or 256 bits. This is not limited to the present application.
[0116] For example, the acquisition of the second ranging encryption parameter by the second broadband system includes the first broadband system transmitting the first ranging encryption parameter to the second broadband system, or the second broadband system generating the second ranging encryption parameter. The specific process by which the second broadband system generates the second ranging encryption parameter is not described here but is specifically described in S470.
[0117] S420: The first broadband system transmits a first ranging frame to the second broadband system, which is generated based on first ranging encryption parameters. Correspondingly, the second broadband system receives a first ranging frame from the first broadband system of the first device based on second ranging encryption parameters.
[0118] Specifically, the first broadband system generates a first ranging sequence based on first ranging encryption parameters, generates a first ranging frame based on the first ranging sequence, and then transmits the first ranging frame to the second broadband system.
[0119] Specifically, the second broadband system generates a first ranging sequence based on the first ranging encryption parameters, receives a first ranging frame based on the first ranging sequence, and measures the first ranging frame.
[0120] For example, if the first distance measurement sequence is CTS, then the first distance measurement sequence value in the first distance measurement encryption parameter is ctsValue, and the first distance measurement sequence key is ctsKey. Alternatively, the first distance measurement sequence may be any other sequence applicable to the present method. The first distance measurement sequence is not particularly limited in this application.
[0121] S430: The second broadband system transmits a second ranging frame to the first broadband system, which is generated based on a third ranging encryption parameter, the third ranging encryption parameter being a corresponding parameter obtained by updating the first ranging sequence value in the first ranging encryption parameter to the second ranging sequence value. Correspondingly, the first broadband system receives a second ranging frame from the second broadband system based on the third ranging encryption parameter.
[0122] Specifically, the second broadband system updates the first distance measurement sequence value in the third distance measurement encryption parameter to the second distance measurement sequence value to obtain the third distance measurement encryption parameter. The second broadband system generates a second distance measurement sequence based on the third distance measurement encryption parameter, generates a second distance measurement frame based on the second distance measurement sequence, and then transmits the first distance measurement frame to the first broadband system.
[0123] Similarly, the first broadband system updates the first distance measurement sequence value in the third distance measurement encryption parameter to the second distance measurement sequence value to obtain the third distance measurement encryption parameter. The first broadband system generates a second distance measurement sequence based on the third distance measurement encryption parameter, receives a second distance measurement frame based on the second distance measurement sequence, and measures the second distance measurement frame.
[0124] Optionally, the method further includes the following steps.
[0125] S440: The first broadband system transmits a third ranging frame to the second broadband system, which is generated based on a fourth ranging encryption parameter, the fourth ranging encryption parameter being a corresponding parameter obtained by updating the second ranging sequence value in the third ranging encryption parameter to the third ranging sequence value. Correspondingly, the second broadband system receives the third ranging frame from the first broadband system based on the fourth ranging encryption parameter.
[0126] The specific implementation procedure for S440 is the same as that for S430, and the details will not be explained again here.
[0127] For example, if the distance measurement method is for bidirectional distance measurement, all steps corresponding to S420 to S440 may be performed. The first distance measurement frame is the distance measurement start frame, the second distance measurement frame is the distance measurement response frame, and the third distance measurement frame is the distance measurement final frame. The first, second, and third distance measurement frames are the distance measurement frames that need to be transmitted in a single distance measurement round.
[0128] For example, if the distance measurement method is one-sided bidirectional distance measurement, only steps S420 and S430 of S420 to S440 may be executed. The first distance measurement frame is the distance measurement start frame, the second distance measurement frame is the distance measurement response frame, and the first and second distance measurement frames are the distance measurement frames that need to be transmitted in one distance measurement round.
[0129] Based on the method described above, each ranging frame in a single ranging round is determined based on different ranging encryption parameters so that the generated ranging frames are distinct from each other. This ensures that each ranging frame has unique encryption parameters within the ranging process, effectively improving secure ranging performance.
[0130] From the above explanation, it can be seen that in S420, both the first and second broadband systems need to update the first ranging encryption parameter to the third ranging encryption parameter, and in S430, both the first and second broadband systems need to update the third ranging encryption parameter to the fourth ranging encryption parameter. Therefore, it can be considered that the first and second broadband systems need to update their current encryption parameters based on the same method.
[0131] In one implementation, the second distance measurement sequence value is obtained by adding the first value to the value at the corresponding first position of the first distance measurement sequence value. For example, in the Nth distance measurement round, the first distance measurement encryption parameter includes ctsValue#1 (i.e., an example of the first distance measurement sequence value) and ctsKey (i.e., an example of the first distance measurement sequence key). For ease of explanation, the example used here assumes that the bit length of ctsValue and the bit length of ctsKey are 128 bits, the first value is n, and the least significant 32 bits of ctsValue are the first position. As shown in Figure 5, the most significant 96 bits of ctsValue#1 are shown as ctsVUpper, the least significant 32 bits of ctsValue#1 are shown as ctsVCounter, and the initial value of ctsVCounter is shown as V0. In this case, the third distance measurement encryption parameter in S420 includes ctsValue#2 and ctsKey, and the fourth distance measurement encryption parameter in S430 includes ctsValue#3 and ctsKey. The most significant 96 bits of ctsValue#2 and the most significant 96 bits of ctsValue#3 are the same as those of ctsValue#1. The least significant 32 bits of ctsValue#2 are the value obtained by adding V0 and n, and V n It is shown as follows. The least significant 32 bits of ctsValue#3 are the value obtained by adding V1 and n, and V 2n It is shown as follows.
[0132] Alternatively, the first distance measurement sequence value may be continuously updated by another means, provided that the update method used by the first broadband system is consistent with the update method used by the second broadband system, i.e., that the updated distance measurement sequence value of the first broadband system is the same as the updated distance measurement sequence value of the second broadband system. The method for updating the distance measurement sequence value is not particularly limited in this application.
[0133] Optionally, the method further includes the following steps.
[0134] S450: The measurement information is broadcast between the first narrowband system and the second narrowband system to calculate the flight time of the ranging frame and complete the ranging between the first device and the second device.
[0135] It should be understood that when the first narrowband system transmits measurement information to the second narrowband system, the first broadband system must first transmit the measurement to the first narrowband system. Similarly, when the second narrowband system transmits measurement information to the first narrowband system, the second broadband system must first transmit the measurement to the second narrowband system. The procedures for information exchange between narrowband and broadband systems of the same device are not detailed below.
[0136] After one round of ranging is completed, the method described above may be repeated in a new ranging round. For example, the ranging method is for bidirectional ranging, and in the (N+1)th ranging round, there are corresponding new ranging start frames, corresponding new ranging response frames, and corresponding new ranging final frames. Based on the method shown in Figure 5, the ranging start frames, ranging response frames, and ranging final frames in the (N+1)th ranging round are generated based on ranging encryption parameter #1, ranging encryption parameter #2, and ranging encryption parameter #3, respectively. ranging encryption parameter #1 includes ctsValue#4 and ctsKey, ranging encryption parameter #2 includes ctsValue#5 and ctsKey, and ranging encryption parameter #3 includes ctsValue#6 and ctsKey. The most significant 96 bits of ctsValue#4, the most significant 96 bits of ctsValue#5, and the most significant 96 bits of ctsValue#6 are the same as those of ctsValue#1. The least significant 32 bits of ctsValue#4 are the value obtained by adding V2 and n, and V 3n It is shown as follows: The least significant 32 bits of ctsValue#5 are the value obtained by adding V3 and n, and V 4nIt is shown as follows. The least significant 32 bits of ctsValue#6 are the value obtained by adding V4 and n, and V 5n It is shown as follows.
[0137] It should be noted that, after multiple ranging rounds, the first ranging sequence value is continuously updated, and the updated ranging sequence value may be repeated. Therefore, optionally, when the number of ranging rounds between the first and second devices equals a first threshold (for example, the first threshold may be a preset value), the first broadband system regenerates the fifth ranging encryption parameter, and the second broadband system reacquires the sixth ranging encryption parameter. The fifth ranging encryption parameter is the same as the sixth ranging encryption parameter, and unlike the first ranging encryption parameter, the fifth and sixth ranging encryption parameters are encryption parameters that the first and second devices must use to perform ranging after a number of ranging rounds corresponding to the first threshold. This further ensures that each ranging frame has a unique encryption parameter in the ranging process corresponding to multiple ranging rounds.
[0138] The above description details the ranging process based on the method provided in this application, where each ranging frame has unique encryption parameters. The following describes the steps that may need to be performed before S410, with reference to Figure 6.
[0139] S460: The first narrowband system transmits the distance measurement setting information to the second narrowband system.
[0140] Optionally, the distance measurement setting information includes session keys and distance measurement parameters belonging to the first and second devices.
[0141] Optionally, the ranging parameters may include content such as ranging method (rangingMethod), ranging role, frame parameters, channel identifier (channelId), preamble code length (preambleCodeLength), preamble code index (preambleCodeIndex), and session index (sessionId).
[0142] In a specific possible implementation, the transmission of ranging setting information from the first narrowband system to the second narrowband system includes S4601 and S4602.
[0143] S4601: A communication link is established between the first narrowband system and the second narrowband system, and a session key is generated through negotiation via the communication link.
[0144] S4602: The first narrowband system transmits an RCM frame to the second narrowband system, the RCM frame containing ranging parameters. Correspondingly, the second narrowband system receives the RCM frame transmitted by the first narrowband system.
[0145] In this step, the first and second devices do not need to negotiate distance measurement setting information within the broadband system, thus effectively reducing the operating time of the broadband system and lowering system power consumption.
[0146] S470: The first broadband system starts up, and the second broadband system starts up.
[0147] The first broadband system of the first device is activated by a narrowband connection between the first device and the second device, and the second broadband system of the second device is also activated by a narrowband connection between the second device and the first device.
[0148] Based on S460 and S470, in certain possible implementations, the first broadband system generating a first distance measurement encryption parameter and the second broadband system obtaining a second distance measurement encryption parameter in S410 may include the first broadband system generating a first encryption parameter based on distance measurement setting information and a first key derivation algorithm, and the second broadband system generating a second encryption parameter based on distance measurement setting information and a first key derivation algorithm.
[0149] For example, the first key derivation algorithm may be agreed upon by the first broadband system and the second broadband system. The acquisition of the first key derivation algorithm is not particularly limited in this application.
[0150] For example, a first broadband system may use distance measurement parameters to form a first input context having a bit length of 128 bits, and use a session key to form a second input context having a bit length of 128 bits or 256 bits. The first broadband system then uses a first key derivation algorithm to generate a first distance measurement sequence value and a first distance measurement sequence key (i.e., a first distance measurement encryption parameter) based on the first and second input contexts. Similarly, a second broadband system uses a first key derivation algorithm to generate the same first distance measurement sequence value and the same first distance measurement sequence key (i.e., a second distance measurement encryption parameter) based on the first and second input contexts.
[0151] Compared to conventional technologies, this application shows that a communication link is established using a narrowband system, and ranging configuration information is negotiated between the narrowband systems. In addition, the first and second devices separately derive the same ranging encryption parameters based on the session key and the same key derivation algorithm provided by the narrowband system, without establishing a communication link between the broadband systems to perform communication negotiation for the relevant parameters. This effectively reduces the operating time of the broadband system and lowers system power consumption.
[0152] It can be understood that Figure 5 can be considered a diagram in which each ranging frame has unique encryption parameters when one device performs ranging on another device. Referring to Figures 6 and 7, the following provides diagrams in which each ranging frame has unique encryption parameters when one device performs ranging on multiple devices, and when multiple devices perform ranging on multiple devices. For example, in Figures 6 and 7, the ranging method is still for bidirectional ranging, and the example used for illustration is still that the first ranging encryption parameter includes ctsValue#1 and ctsKey, where the least significant 32 bits of ctsValue#1 are the first position and the first value is equal to n.
[0153] Figure 6 shows a diagram in which each ranging frame has unique encryption parameters when one device performs ranging on multiple devices according to the present application. In the diagram, the first device may be considered a ranging initiator, and the second and third devices may be considered ranging responders. Specifically, updating the ctsVCounter in a one-to-many ranging procedure may be carried out through the following steps.
[0154] Step 1: In the Nth distance measurement round, the first device sends a distance measurement start frame determined based on ctsValue#1 and ctsKey to the second and third devices respectively, and the second and third devices each receive the corresponding distance measurement start frame based on ctsValue#1 and ctsKey, where the least significant 32 bits of ctsValue#1 are V0.
[0155] Furthermore, it can be understood that in the ranging initiation phase (ranging initiation phase, RIP) (in the case of the ranging initiation frame), the ctsVCounter used by the first device, the ctsVCounter used by the second device, and the ctsVCounter used by the third device are all V0.
[0156] Step 2: The second and third devices each send a distance measurement response frame to the first device determined based on ctsValue#2 and ctsKey, and the first device receives the corresponding distance measurement response frames from the second and third devices respectively based on ctsValue#2 and ctsKey, where the least significant 32 bits of ctsValue#2 are the value obtained by adding V0 and n, and V n It is shown as follows.
[0157] Furthermore, when the ranging phase changes from RIP to ranging response phase (ranging responder phase, RRP) (in the case of ranging response frames), or when the task status switches (for example, when the first device switches from transmitting to receiving, and the second and third devices switch from receiving to transmitting), the ctsVCounter used by the first device, the ctsVCounter used by the second device, and the ctsVCounter used by the third device all become V n It can be understood that this is the case.
[0158] Step 3: The first device transmits a ranging final frame determined based on ctsValue#3 and ctsKey to each of the second device and the third device, and the second device and the third device each receive the corresponding ranging final frame based on ctsValue#3 and ctsKey, where the least significant 32 bits of ctsValue#3 are the value obtained by adding V n and n, and is denoted as V 2n .
[0159] Also, when the ranging phase changes from RRP to the ranging final phase (ranging final phase, RFP) (in the case of the ranging final frame), or when the task status switches (for example, when the first device switches from reception to transmission and the second device and the third device switch from transmission to reception), the ctsVCounter used by the first device, the ctsVCounter used by the second device, and the ctsVCounter used by the third device are all V 2n . It can be understood that this is the case.
[0160] Note that when the ranging phase is the measurement report phase (measurement report phase, MRP), the ctsVCounter used by the first device, the ctsVCounter used by the second device, and the ctsVCounter used by the third device remain unchanged.
[0161] Step 4: The ranging round is updated to the (N + 1)-th ranging round. Here, similarly, in RIP, the ctsVCounter used by the first device, the ctsVCounter used by the second device, and the ctsVCounter used by the third device are all the value obtained by adding V 2n and n, and is V 3nIn RRP, the ctsVCounter used by the first device, the ctsVCounter used by the second device, and the ctsVCounter used by the third device are all V 3n This is the value obtained by adding n, and V 4n In the RFP, the ctsVCounter used by the first device, the ctsVCounter used by the second device, and the ctsVCounter used by the third device are all V 4n This is the value obtained by adding n, and V 5n It is shown as follows.
[0162] Step 4 is then repeated in the (N+2)th distance measurement round. The details will not be explained again here.
[0163] Figure 7 shows that when multiple devices perform ranging on multiple devices according to this application, each ranging frame has a unique encryption parameter. In the figure, in the Nth ranging round, the first device may be considered the ranging initiator, and the second and third devices may be considered ranging responders. In the (N+1)th ranging round, the second device may be considered the ranging initiator, and the first and third devices may be considered ranging responders. In a ranging procedure from one device to another, updating the ctsVCounter may be performed via the following steps.
[0164] For the steps performed in the Nth distance measurement round, please refer to the explanations of Steps 1 through 3. Further details will not be explained again here.
[0165] Step 4: The ranging round is updated to the (N+1)th ranging round, and the difference from the (N+1)th ranging round in Figure 6 is that in this method, in the (N+1)th ranging round, the second device changes from a ranging responder to a ranging initiator, and the first device changes from a ranging initiator to a ranging responder. Similarly, in RIP, the ctsVCounter used by the first device, the ctsVCounter used by the second device, and the ctsVCounter used by the third device are all V 2n It is the value obtained by adding n, and V 3n In RRP, the ctsVCounter used by the first device, the ctsVCounter used by the second device, and the ctsVCounter used by the third device are all V 3n It is the value obtained by adding n, and V 4n In the RFP, the ctsVCounter used by the first device, the ctsVCounter used by the second device, and the ctsVCounter used by the third device are all V 4n It is the value obtained by adding n, and V 5n It is shown as follows.
[0166] Next, Step 4 is repeated in the new ranging round. Further details will not be explained here.
[0167] The above description explains the embodiment of the method in the embodiment of this application, and below, an embodiment of the corresponding apparatus will be described.
[0168] It should be understood that the sequence numbers of the processes described above do not indicate the order of execution. The order of execution of the processes should be determined based on the function and internal logic of the processes and should not be construed as any limitation on the implementation processes of the embodiments of this application.
[0169] In the embodiments of this application, unless otherwise specified or there is a logical conflict, terms and / or descriptions in different embodiments are consistent and can be referenced to one another, and technical features in different embodiments can be combined based on their internal logical relationships to form new embodiments.
[0170] Furthermore, it should be understood that in some of the embodiments described above, devices within existing network architectures are used primarily as illustrative examples. It should be understood that the specific form of the device is not limited to the embodiments of this application. For example, all devices that may implement the same functionality in the future are applicable to the embodiments of this application.
[0171] In the embodiments of the methods described above, it can be understood that the methods and operations performed by a device (such as a terminal device or a network device) may also be performed by components of the device (such as a chip or circuit).
[0172] The above description relates in detail to the methods provided in the embodiments of this application with reference to Figures 1 and 7. The above description is primarily described in terms of the interaction between a terminal device and a network device. To implement the above functions, it can be understood that the terminal device and the network device include corresponding hardware structures and / or software modules for performing the functions.
[0173] Those skilled in the art should recognize, in combination with the examples described in the embodiments disclosed herein, that the units and algorithmic steps may be implemented by the hardware or a combination of hardware and computer software as described in this application. Whether the functions are performed by hardware or by hardware driven by computer software depends on the design constraints of the particular application and technical solution. Those skilled in the art may use different methods to implement the described functions for each particular application, but such implementations should not be considered to exceed the scope of this application.
[0174] The communication device provided in the embodiments of this application will be described in detail below with reference to Figures 8 and 9. It should be understood that the description of the device embodiments corresponds to the description of the method embodiments. Therefore, for details not described in detail, please refer to the method embodiments described above. For brevity, some details will not be described again here. In the embodiments of this application, the first or second device may be divided into functional modules based on the examples of the methods described above. For example, functional modules may be obtained through division based on corresponding functions, or two or more functions may be integrated into a single processing module. The integrated module may be implemented in hardware form or in the form of a software functional module. Note that in the embodiments of this application, module division is an example and merely a logical functional division. In actual implementations, other division schemes may be used. An example in which each functional module is obtained through division based on each corresponding function will be used below for illustrative purposes.
[0175] The foregoing describes in detail the data transmission method provided in this application, and below describes the communication device provided in this application. In possible implementations, the device is configured to perform steps or procedures corresponding to the second device in the embodiments of the aforementioned method. In other possible implementations, the device is configured to perform steps or procedures corresponding to the first device in the embodiments of the aforementioned method.
[0176] Figure 8 is a block diagram of a communication device 200 according to one embodiment of the present application. As shown in Figure 8, the device 200 may include a communication unit 210 and a processing unit 220. The communication unit 210 may communicate with an external device, and the processing unit 220 may be configured to process data. The communication unit 210 may also be called a communication interface or transceiver unit.
[0177] In a possible design, the apparatus 200 may perform steps or procedures performed by the first device in the embodiments of the method described above. The processing unit 220 is configured to perform processing-related operations of the first device in the embodiments of the method described above, and the communication unit 210 is configured to perform transmission-related operations of the first device in the embodiments of the method described above.
[0178] In another possible design, the device 200 may perform steps or procedures performed by the second device in the embodiment of the method described above. The communication unit 210 is configured to perform the receive-related operations of the second device in the embodiment of the method described above, and the processing unit 220 is configured to perform the processing-related operations of the second device in the embodiment of the method described above.
[0179] It should be understood that the apparatus 200 herein is embodied in the form of a functional unit. The term “unit” herein can be an application-specific integrated circuit (ASIC), an electronic circuit, a processor configured to run one or more software or firmware programs (e.g., a shared processor, a dedicated processor, or a group processor), memory, an integrated logic circuit, and / or another suitable component supporting the described function. In an optional example, those skilled in the art will understand that the apparatus 200 may be the first device in particular the embodiments described above and configured to perform the procedures and / or steps corresponding to the first device in the embodiments of the method described above, or that the apparatus 200 may be the second device in particular the embodiments described above and configured to perform the procedures and / or steps corresponding to the second device in the embodiments of the method described above. To avoid repetition, further details are not described herein.
[0180] The device 200 in the aforementioned solution has the function of performing the corresponding steps performed by the first device in the aforementioned method, or the device 200 in the aforementioned solution has the function of performing the corresponding steps performed by the second device in the aforementioned method. The function may be performed by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the aforementioned function. For example, the communication unit may be replaced by a transceiver (for example, the transmitting unit of the communication unit may be replaced by a transmitter, and the receiving unit of the communication unit may be replaced by a receiver), and another unit, such as a processing unit, may be replaced by a processor in an embodiment of the method to perform the transmit / receive operation and the processing-related operation separately.
[0181] In addition, alternatively, the communication unit may be a transceiver circuit (for example, including a receiving circuit and a transmitting circuit), and the processing unit may be a processing circuit. In this embodiment of the present application, the device in Figure 8 may be an AP or STA in the embodiments described above, or it may be a chip or a chip system, for example, a system-on-chip (SoC). The communication unit may be an input / output circuit or a communication interface. The processing unit may be a processor, a microprocessor, or an integrated circuit on a chip, but is not limited thereto.
[0182] Figure 9 is a block diagram of a communication device 300 according to one embodiment of the present application. The device 300 includes a processor 310 and a transceiver 320. The processor 310 and the transceiver 320 communicate with each other via an internal connection path, and the processor 310 is configured to execute instructions and control the transceiver 320 to transmit and / or receive signals.
[0183] Optionally, the device 300 may further include a memory 330. The memory 330 communicates with the processor 310 and the transceiver 320 via an internal connection path. The memory 330 is configured to store instructions, and the processor 310 can execute instructions stored in the memory 330. In a possible implementation, the device 300 is configured to perform the procedures and steps corresponding to the first device in the embodiment of the method described above. In another possible implementation, the device 300 is configured to perform the procedures and steps corresponding to the second device in the embodiment of the method described above.
[0184] It should be understood that the device 300 may specifically be the first or second device in the embodiments described above, or it may be a chip or a chip system. Correspondingly, the transceiver 320 may be a chip transceiver circuit, but this is not limited herein. Specifically, the device 300 may be configured to perform steps and / or procedures corresponding to the first or second device in the embodiments of the method described above. Optionally, the memory 330 may include read-only memory and random access memory and may provide instructions and data to the processor. Part of the memory may further include non-volatile random access memory. For example, the memory may further store device type information. The processor 310 may be configured to execute instructions stored in memory, and when the processor 310 executes instructions stored in memory, the processor 310 is configured to perform steps and / or procedures corresponding to the first or second device in the embodiments of the method.
[0185] In the implementation process, the steps of the method described above can be carried out by using hardware integrated logic circuits within the processor or by using instructions in the form of software. The steps of the method disclosed with reference to embodiments of this application may be carried out directly by a hardware processor or by using a combination of hardware and software modules within the processor. The software modules may be located in mature storage media in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. The storage medium is located in memory, and the processor reads information in memory and, in combination with the processor's hardware, completes the steps of the method described above. To avoid repetition, further details are not described again here.
[0186] It should be noted that the processor in the embodiments of this application may be an integrated circuit chip and has signal processing capabilities. In the implementation process, the steps in the embodiments of the method described above may be carried out by using hardware integrated logic circuits in the processor or by using instructions in the form of software. The processor may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or another programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The processor in the embodiments of this application may implement or carry out the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor, and the processor may be any conventional processor, etc. The steps of the methods disclosed with reference to embodiments of this application may be carried out directly by a hardware decode processor or by using a combination of hardware and software modules in the decode processor. The software modules may be located in mature storage media in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. The storage medium is placed in memory, and the processor reads the information in memory and combines it with the processor's hardware to complete the steps in the method described above.
[0187] It can be understood that the memory in this embodiment of the present application may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. Non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory may be random access memory (RAM) used as an external cache. Through a non-limiting but illustrative description, many forms of RAM may be used, such as static random access memory (static RAM, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchlink dynamic random access memory (synchlink DRAM, SLDRAM), and direct rambus dynamic random access memory (direct rambus RAM, DRAM). Note that the memories of the systems and methods described herein include, but are not limited to, these memories and any other suitable type of memory.
[0188] Note that when the processor is a general-purpose processor, DSP, ASIC, FPGA, or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, memory (storage module) may be integrated into the processor.
[0189] In addition, the present application further provides a computer-readable storage medium that stores computer instructions, and when the computer instructions are executed on a computer, the operations and / or procedures performed by the first or second device in the embodiment of the method of the present application are performed.
[0190] This application further provides a computer program product, which includes computer program code or instructions, and when the computer program code or instructions are executed on a computer, the operations and / or procedures performed by the first or second device in the embodiments of the method of this application are performed.
[0191] In addition, the present application further provides a chip which includes a processor. Memory configured to store a computer program is located independently of the chip. The processor is configured to execute the computer program stored in memory and to perform operations and / or processes performed by a first or second device in any embodiment of the present invention.
[0192] Furthermore, the chip may include a communication interface. This communication interface could be an input / output interface, an interface circuit, etc. Additionally, the chip may include memory.
[0193] Furthermore, this application further provides a communication system, which includes the first device and the second device in the embodiments of this application.
[0194] Furthermore, it should be noted that the memories described herein are intended to include, but are not limited to, these memories and any other suitable type of memory.
[0195] A person skilled in the art will recognize, in combination with the examples described in the embodiments disclosed herein, that the steps of the units and algorithms may be carried out by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are carried out by hardware or by software depends on the specific application and design constraints of the technical solution. A person skilled in the art may use different methods to implement the described functions for each specific application, but the implementation should not be considered to be beyond the scope of this application. A person skilled in the art will clearly understand that, for the sake of brevity and conciseness, the detailed operating processes of the aforementioned systems, apparatus, and units may be described by referring to the corresponding processes in the embodiments of the aforementioned methods. Details are not described again here. In some embodiments provided in this application, it should be understood that the disclosed systems, apparatus, and methods may be carried out in other ways. For example, the embodiments of the described apparatus are merely examples. For example, the division into units is merely a division of logical functions, and in actual implementation, other divisions may be possible. For example, multiple units or components may be combined or integrated into another system, or some functions may be ignored or not implemented. Furthermore, the mutual coupling, direct coupling, or communication connection described or displayed may be implemented using several interfaces. Indirect coupling or communication connection between devices or units may be implemented electronically, mechanically, or in other forms. Units described as separate parts may or may not be physically separated, and parts displayed as units may or may not be physical units, and may be located in one place or distributed across multiple network units. Some or all of the units may be selected based on the actual requirements for achieving the objectives of the solution of the embodiment. Furthermore, the functional units in the embodiments of this application may be integrated into a single processing unit, or each unit may exist physically independently, or two or more units may be integrated into a single unit.
[0196] When a function is implemented in the form of a software function unit and sold or used as an independent product, the function may be stored on a computer-readable storage medium. Based on this understanding, the essence of the technical solution of this application, its contribution to the prior art, or a part of the technical solution may be implemented in the form of a software product. A computer software product is stored on a storage medium and contains a number of instructions for instructing a computer device (which may be a personal computer, a server, a second device, etc.) to perform all or some of the steps of the method described in the embodiments of this application. The aforementioned storage medium includes any medium capable of storing program code, such as a USB flash drive, a removable hard disk, ROM, RAM, a magnetic disk, or an optical disk.
[0197] Throughout this specification, the term "embodiments" is used to mean that certain features, structures, or characteristics related to these embodiments are included in at least one embodiment of this application. Therefore, embodiments throughout this specification do not necessarily refer to the same embodiment. In addition, these particular features, structures, or characteristics may be combined in one or more embodiments in any suitable manner.
[0198] It should be further understood that the sequential numbers such as "first" and "second" in the embodiments of this application are used to distinguish between multiple objects and are not intended to limit the size, content, order, chronological order, priority, or importance of the multiple objects. For example, the first piece of information and the second piece of information do not indicate differences in the amount of information, content, priority, or importance.
[0199] In this application, both "when" and "if" mean that the network element performs the corresponding process in an objective situation, but do not constitute a time limit, nor do they require the network element to have a decisive action during implementation, nor do they imply any other limitations.
[0200] In this application, it should be further understood that "at least one" means one or more, and "multiple" means two or more. "At least one of the items(s)" or similar expressions mean one item(s) or more items(s), i.e., any combination of singular items(s) or multiple items(s). For example, at least one of a, b, or c may represent a, b, c, a and b, a and c, b and c, or a, b, and c.
[0201] Furthermore, unless otherwise specified, the meaning of "the item comprises one or more of the following A, B, and C" in this application usually means that the item may be any one of the following: A, B, C, A and B, A and C, B and C, A, B, and C, A and A, A and A, A and A, A and B, A, A and C, A, B and B, A, C, and C, B and B, B, B and B, B, B and C, C and C, C, C and C, and any other combination of A, C, and C. The foregoing uses the three elements A, B, and C as an example to illustrate the case of arbitrary selection of an item. If the expression is "the item comprises at least one of A, B, ..., and X," that is, if more elements are included in the expression, the cases in which the item is applicable may also be obtained according to the rules above.
[0202] In this specification, the term "and / or" describes only the relationship between the related objects, indicating that three relationships are possible. For example, A and / or B means that only A exists, both A and B exist, and only B exists, and A and B can be singular or plural. The letter " / " usually indicates an "or" relationship between the related objects. For example, A / B means A or B.
[0203] In the embodiments of this application, “B corresponding to A” indicates that B is associated with A, and it should be further understood that B may be determined based on A. However, it should be further understood that determining B based on A does not mean that B is determined solely based on A. B may, alternatively, be determined based on A and / or other information.
Claims
1. A ranging method applied to a first device, wherein the first device includes a first broadband system and a first narrowband system, the channel bandwidth corresponding to the first broadband system being greater than the channel bandwidth corresponding to the first narrowband system, and the method is The first broadband system generates a first distance measurement encryption parameter, the first distance measurement encryption parameter includes a first distance measurement sequence value, the first distance measurement encryption parameter is the same as the second distance measurement encryption parameter, and the first distance measurement encryption parameter and the second distance measurement encryption parameter are encryption parameters that the first device and the second device need to use to perform distance measurement, respectively. The first broadband system transmits a first distance measurement frame to the second broadband system of the second device, wherein the first distance measurement frame is generated based on the first distance measurement encryption parameters. The first broadband system receives a second distance measurement frame from the second broadband system based on a third distance measurement encryption parameter, wherein the third distance measurement encryption parameter is a corresponding parameter obtained by updating the first distance measurement sequence value in the first distance measurement encryption parameter to a second distance measurement sequence value, and the second distance measurement frame is generated based on the third distance measurement encryption parameter. A method that includes this.
2. The method according to claim 1, wherein the first distance measurement encryption parameter further includes a first distance measurement sequence key.
3. The aforementioned method, The first broadband system generates a first distance measurement sequence based on the first distance measurement encryption parameters, The first broadband system generates the first distance measurement frame based on the first distance measurement sequence, The method according to claim 1 or 2, further comprising:
4. The method according to claim 3, wherein the first distance measurement sequence is a channel impulse response training sequence.
5. The method according to any one of claims 1 to 4, wherein the second distance measurement sequence value is obtained by adding the first value and the value of the first distance measurement sequence value at the corresponding first position.
6. The first distance measurement encryption parameter is generated by the first broadband system based on the distance measurement setting information and the first key derivation algorithm. The method according to any one of claims 1 to 5, wherein the second distance measurement encryption parameter is generated by the second broadband system based on the distance measurement setting information and the first key derivation algorithm.
7. The aforementioned method, The first narrowband system transmits the distance measurement setting information to the second narrowband system of the second device. The method according to claim 6, further comprising:
8. The method according to claim 6 or 7, wherein the distance measurement setting information includes session keys and distance measurement parameters belonging to the first device and the second device.
9. The aforementioned method, The first broadband system transmits a third distance measurement frame to the second broadband system, wherein the third distance measurement frame is generated based on a fourth distance measurement encryption parameter, and the fourth distance measurement encryption parameter is a corresponding parameter obtained by updating the second distance measurement sequence value in the third distance measurement encryption parameter to the third distance measurement sequence value. The method according to any one of claims 1 to 8, further comprising:
10. The aforementioned method, The first broadband system transmits the first distance measurement frame to the third broadband system of the third device, The first broadband system receives a fourth distance measurement frame from the third broadband system based on the third distance measurement encryption parameters, wherein the fourth distance measurement frame is generated based on the third distance measurement encryption parameters. The method according to any one of claims 1 to 9, further comprising:
11. The aforementioned method, When the number of distance measurement rounds between the first device and the second device is equal to a first threshold, the first broadband system generates a fifth distance measurement encryption parameter, The fifth ranging encryption parameter is the same as the sixth ranging encryption parameter, and the fifth ranging encryption parameter differs from the first ranging encryption parameter, the sixth ranging encryption parameter is a ranging encryption parameter generated by the second broadband system when the number of ranging rounds equals the first threshold, and the fifth ranging encryption parameter and the sixth ranging encryption parameter are encryption parameters that the first and second devices must use to perform ranging after the number of ranging rounds corresponding to the first threshold. The method according to any one of claims 1 to 10, further comprising:
12. A ranging method applied to a second device, wherein the second device includes a second broadband system and a second narrowband system, the channel bandwidth corresponding to the second broadband system being greater than the channel bandwidth corresponding to the second narrowband system, and the method is The second broadband system generates a second distance measurement encryption parameter, the second distance measurement encryption parameter includes a first distance measurement sequence value, the second distance measurement encryption parameter is the same as the first distance measurement encryption parameter, and the first distance measurement encryption parameter and the second distance measurement encryption parameter are encryption parameters that the first device and the second device need to use to perform distance measurement, respectively. The second broadband system receives a first distance measurement frame from the first broadband system of the first device based on the second distance measurement encryption parameters, wherein the first distance measurement frame is generated based on the first distance measurement encryption parameters. The second broadband system transmits a second distance measurement frame to the first broadband system, wherein the second distance measurement frame is generated based on a third distance measurement encryption parameter, and the third distance measurement encryption parameter is a corresponding parameter obtained by updating the first distance measurement sequence value in the first distance measurement encryption parameter to a second distance measurement sequence value. A method that includes this.
13. The method according to claim 12, wherein the first distance measurement encryption parameter further includes a first distance measurement sequence key.
14. The aforementioned method, The second broadband system generates a second distance measurement sequence based on the third distance measurement encryption parameters, The second broadband system generates the second distance measurement frame based on the second distance measurement sequence, The method according to claim 12 or 13, further comprising:
15. The method according to claim 14, wherein the second distance measurement sequence is a channel impulse response training sequence.
16. The method according to any one of claims 12 to 15, wherein the second distance measurement sequence value is obtained by adding the first value and the value of the first distance measurement sequence value at the corresponding first position.
17. The first distance measurement encryption parameter is generated by the first broadband system based on the distance measurement setting information and the first key derivation algorithm. The method according to any one of claims 12 to 16, wherein the second distance measurement encryption parameter is generated by the second broadband system based on the distance measurement setting information and the first key derivation algorithm.
18. The aforementioned method, The second narrowband system receives the distance measurement setting information from the first narrowband system of the first device. The method according to claim 17, further comprising:
19. The method according to claim 17 or 18, wherein the distance measurement setting information includes session keys and distance measurement parameters belonging to the first device and the second device.
20. The aforementioned method, The second broadband system receives a third distance measurement frame from the first broadband system based on a fourth distance measurement encryption parameter, wherein the fourth distance measurement encryption parameter is a corresponding parameter obtained by updating the second distance measurement sequence value in the third distance measurement encryption parameter to the third distance measurement sequence value, and the third distance measurement frame is generated based on the fourth distance measurement encryption parameter. The method according to any one of claims 12 to 19, further comprising:
21. The aforementioned method, When the number of distance measurement rounds between the first device and the second device is equal to a first threshold, the second broadband system generates a sixth distance measurement encryption parameter, The sixth ranging encryption parameter is the same as the fifth ranging encryption parameter, and the sixth ranging encryption parameter differs from the second ranging encryption parameter, the fifth ranging encryption parameter is a ranging encryption parameter generated by the first broadband system when the number of ranging rounds equals the first threshold, and the fifth ranging encryption parameter and the sixth ranging encryption parameter are encryption parameters that the first and second devices must use to perform ranging after the number of ranging rounds corresponding to the first threshold. The method according to any one of claims 12 to 20, further comprising:
22. A communication device comprising a module or unit configured to perform the method described in any one of claims 1 to 21.
23. A communication device comprising a processor, wherein the processor is configured to execute computer instructions stored in memory, thereby enabling the device to perform the method according to any one of claims 1 to 11 or any one of claims 12 to 21.
24. A communication device comprising a logic circuit and an input / output interface, wherein the logic circuit is coupled to the input / output interface and configured to communicate data via the input / output interface to perform the method according to any one of claims 1 to 11 or any one of claims 12 to 21.
25. A computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed on a computer, the method according to any one of claims 1 to 11 is executed, or the method according to any one of claims 12 to 21 is executed.
26. A computer program product comprising instructions, wherein when the instructions are executed on a computer, the computer is enabled to perform the method according to any one of claims 1 to 11 or the method according to any one of claims 12 to 21.