Communication method and device, electronic equipment and related product

By indicating the number of responders in the ADV-RESP frame, the initiator can effectively obtain the number of responders participating in the MMS ranging, and solve the problem of unstable distance measurement initialization and establishment stages, achieving the normal operation and efficiency of MMS ranging.

CN119999241APending Publication Date: 2025-05-13HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380069968.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-26
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

In the multi-millisecond (MMS) ranging application scenario, it is difficult for the initiator to effectively obtain the number of respondents to participate in the MMS ranging, resulting in unstable distance initialization and establishment stages.

Method used

By indicating the number N of responders to participate in MMS ranging indicative of the number N of responders to participate in the MMS ranging initiation in the Advertising Response (ADV-RESP) frame sent by the responder, the initiator can obtain the number of responders and send the range start (SOR) frame according to that number.

Benefits of technology

It ensures the normal operation of MMS ranging, avoids conflicts between ADV-RESP frames or between ADV-RESP frames and SOR frames, and improves the accuracy and efficiency of ranging.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119999241A_ABST
    Figure CN119999241A_ABST
Patent Text Reader

Abstract

The invention provides a communication method and device, electronic equipment and related products. The communication method includes the steps that an initiator receives an ADV-RESP frame from responders, the ADV-RESP frame is used for indicating the number N of the responders who are to participate in multi-millisecond (MMS) ranging, N is larger than or equal to 1, and the ADV-RESP frame is used for indicating the number N of the responders who are to participate in multi-millisecond (MMS) ranging. And the initiator sends a start of ranging (SOR) frame to the responder according to the ADV-RESP frame, where the SOR frame is used to provide a time offset at which a first distance measurement period is to start. According to the scheme, the initiator obtains the number of the responders to participate in MMS ranging through the ADV-RESP frames sent by the responders, and then sends the SOR frames according to the number of the responders to participate in MMS ranging. Therefore, once the responders send the ADV-RESP frame to the initiator, the initiator obtains the number of the responders to participate in MMS ranging, which is beneficial to normal operation of MMS ranging.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure generally relate to the field of ultra-wideband (UWB) technology, and more specifically, to a communication method and apparatus, an electronic device, and related products. Background Art

[0002] Ultra-wideband (UWB) technology is increasingly being used for indoor positioning and other location services, such as access control and asset positioning. In addition to traditional ranging application scenarios, other application scenarios such as device-free perception, downlink time difference of arrival (DL-TDOA), and long-distance ranging are also being actively studied.

[0003] To cope with long-distance ranging application scenarios, multi-millisecond (MMS) ranging was introduced in 802.15.4ab (see 15-21-0409-01-04ab-narrowband-assisted-multi-millisecond-uwb). During the initialization and establishment phase of MMS ranging, the initiator and responder can negotiate the ranging configuration. For example, the initiator sends an advertising poll (ADV-POLL) frame, and the responder can listen for incoming ADV-POLL frames. If the responder is interested in participating in MMS ranging, it will respond with an advertising response (ADV-RESP) frame.

[0004] In order to ensure the normal operation of MMS ranging, the initiator needs to obtain the number of responders that want to participate in MMS ranging. Therefore, a corresponding solution is required. Summary of the invention

[0005] Embodiments of the present disclosure provide a communication method and apparatus, an electronic device, and related products according to the independent claims.

[0006] The above and other objects are achieved by the subject matter of the independent claims. Other implementations are apparent from the dependent claims, the description and the drawings.

[0007] Particular embodiments are outlined in the accompanying independent claims, further embodiments are outlined in the dependent claims.

[0008] According to a first aspect, the present disclosure relates to a communication method, the communication method comprising:

[0009] The initiator receives an advertising-response (ADV-RESP) frame from the responder, wherein the ADV-RESP frame is used to indicate the number N of responders to participate in multi-millisecond (MMS) ranging, where N≥1;

[0010] The initiator sends a start of ranging (SOR) frame to the responder according to the ADV-RESP frame, wherein the SOR frame is used to provide a time offset for starting a first distance measurement cycle.

[0011] In the above communication method, the initiator obtains the number of responders to participate in MMS ranging through the ADV-RESP frame sent by the responder, and then sends a SOR frame according to the number of responders to participate in MMS ranging. Therefore, once the responder sends the ADV-RESP frame to the initiator, the initiator obtains the number of responders to participate in MMS ranging, which is conducive to the normal operation of MMS ranging.

[0012] According to the first aspect, in a possible implementation manner of the method, the ADV-RESP frame includes a first indication, where the first indication is used to indicate the number N.

[0013] The number N may be indicated in an explicit manner, that is, the number N is directly indicated by the first indication in the ADV-RESP frame, thereby saving signaling overhead.

[0014] According to the first aspect, in a possible implementation of the method, the ADV-RESP frame includes a second indication, and the second indication is used to indicate the number of remaining ADV-RESP frames to be sent after the ADV-RESP frame, and the number of remaining ADV-RESP frames included in the i-th ADV-RESP frame is N-i, 1≤i≤N.

[0015] The number N can be indicated in an explicit manner, that is, the number N is indirectly indicated by the second indication in the ADV-RESP frame, and the second indication is used to indicate that the number of remaining ADV-RESP frames included in the i-th ADV-RESP frame is N-i. When N-i and i are given, the number N can be indirectly obtained. In addition, since the initiator knows the number of remaining ADV-RESP frames, the accuracy of the transmission time of the SOR frame can be improved even if frame loss occurs.

[0016] According to the first aspect, in a possible implementation manner of the method, the number N is indicated by the number of the ADV-RESP frames received by the initiator.

[0017] The number N may be indicated in an implicit manner, that is, the number N is indicated by the number of ADV-RESP frames received by the initiator, thereby saving signaling overhead.

[0018] According to the first aspect, in a possible implementation manner of the method, N≥2, and the initiator receiving the ADV-RESP frame from the responder includes:

[0019] The initiator receives N ADV-RESP frames from N responders in sequence according to a predetermined order, wherein the predetermined order is coordinated by the N responders.

[0020] Receiving ADV-RESP frames one after another in a coordinated manner ensures that ADV-RESP frames do not conflict with each other. When the initiator receives an ADV-RESP frame indicating that N responders want to participate in MMS ranging, the initiator knows that the N responders want to send ADV-RESP frames, so it does not send a SOR frame. In this way, conflicts between ADV-RESP frames or between ADV-RESP frames and SOR frames are prevented.

[0021] According to the first aspect, in a possible implementation of the method, the ADV-RESP frame includes a first indication and a second indication, the first indication is used to indicate the number N, and the second indication is used to indicate the number of remaining ADV-RESP frames to be sent after the ADV-RESP frame, and the number of remaining ADV-RESP frames included in the i-th ADV-RESP frame is N-i, 1≤i≤N.

[0022] This joint indication method can be applicable to the scenario where a responder sends a unique ADV-RESP frame to the initiator. On the one hand, the first indication can be used to indicate the number of responders to participate in MMS ranging. On the other hand, the second indication can be used to indicate that the number of remaining ADV-RESP frames is 0. Therefore, after receiving the ADV-RESP frame including the first indication and the second indication, the initiator can know that it is time to send a SOR frame.

[0023] According to the first aspect, in a possible implementation manner of the method, N≥2, and the ADV-RESP frame further includes a third indication, where the third indication is used to indicate that the N responders are synchronized with each other.

[0024] In the case where one of the N responders sends an ADV-RESP frame including the third indication to the initiator, when receiving the ADV-RESP frame, the initiator will understand that this is the only ADV-RESP frame and will continue to send SOR frames.

[0025] According to the first aspect, in a possible implementation manner of the method, the initiator receiving the ADV-RESP frame from the responder includes:

[0026] The initiator receives an ADV-RESP frame from a responder, wherein the responder is predetermined or dynamically selected from the responders to participate in the MMS ranging.

[0027] During the initialization and establishment phase, only one responder sends an ADV-RESP frame to the initiator, rather than multiple responders sending their respective ADV-RESP frames to the initiator, thereby improving the processing efficiency of the initialization and establishment phase and realizing a unified initialization and establishment process.

[0028] According to the first aspect, in a possible implementation manner of the method, before the initiator receives the ADV-RESP frame from the responder, the method further includes:

[0029] The initiator sends an advertising-poll (ADV-POLL) frame to the responder, wherein the ADV-POLL frame is used to indicate a maximum number K of responders supporting the MMS ranging, where K≥1.

[0030] The maximum number of responders K supporting MMS ranging may be used to indicate whether the initiator supports one-to-many MMS ranging. When K is a value greater than 1, it indicates that the initiator supports one-to-many MMS ranging.

[0031] According to the first aspect, in a possible implementation manner of the method, the initiator sending the SOR frame to the responder includes:

[0032] When receiving the Nth ADV-RESP frame, the initiator sends the SOR frame to the responder.

[0033] When receiving the Nth ADV-RESP frame (i.e., the last ADV-RESP frame (used to indicate zero remaining ADV-RESP frames)), the initiator sends a SOR frame used to indicate when MMS ranging starts. In this way, conflicts between ADV-RESP frames or between ADV-RESP frames and SOR frames are prevented.

[0034] According to the first aspect, in a possible implementation manner of the method, the initiator sending the SOR frame to the responder includes:

[0035] Estimate the expected sending time of N ADV-RESP frames;

[0036] The initiator sends the SOR frame to the responder when the estimated sending time ends.

[0037] If the initiator has not received the last ADV-RESP frame, the initiator will send a SOR frame once the total estimated transmission time of all ADV-RESP frames has expired. In this way, collisions between ADV-RESP frames or between ADV-RESP frames and SOR frames are prevented.

[0038] According to the first aspect, in a possible implementation manner of the method, the initiator sending the SOR frame to the responder includes:

[0039] The initiator sends the SOR frame to the one responder.

[0040] When receiving an ADV-RESP frame from the responder, the initiator determines that only one responder has sent an ADV-RESP frame, and then sends a SOR frame, thus preventing collisions between ADV-RESP frames or between ADV-RESP frames and SOR frames.

[0041] According to the first aspect, in a possible implementation manner of the method, before the initiator sends the SOR frame to the responder, the method further includes:

[0042] The initiator determines the number M of responders for MMS ranging according to the number of received ADV-RESP frames, where M≤N;

[0043] The initiator sends the SOR frame including a fourth indication, wherein the fourth indication is used to indicate the number M.

[0044] Before the MMS ranging starts, the initiator may select a responder for the MMS ranging among the responders that send an ADV-RESP frame to the initiator.

[0045] According to the first aspect, in a possible implementation manner of the method, the ADV-RESP frame further includes a fifth indication, and the fifth indication is used to indicate that the POLL frame does not exist in the ranging control phase other than the first access timeslot in the MMS ranging.

[0046] The POLL frame does not exist in the ranging control phase except the first access time slot in the MMS ranging, so a measurement cycle can be completed in less time, thereby shortening the ranging duration.

[0047] According to the first aspect, in a possible implementation manner of the method, the ADV-RESP frame further includes a sixth indication, and the sixth indication is used to indicate that the RESP frame does not exist in the ranging control phase except the first access timeslot.

[0048] The RESP frame does not exist in the ranging control phase except the first access time slot in the MMS ranging, so a measurement cycle can be completed in less time, thereby shortening the ranging duration.

[0049] According to the first aspect, in a possible implementation manner of the method, the ADV-RESP frame further includes a seventh indication, where the seventh indication is used to indicate a request for the initiator to send a measurement report; and the method further includes:

[0050] The initiator sends a report frame.

[0051] According to the first aspect, in a possible implementation manner of the method, N≥2, the ADV-RESP frame further includes an eighth indication, and the eighth indication is used to request a combined measurement report; the method further includes:

[0052] The initiator generates the combined measurement report according to the measurements of the N responders;

[0053] The initiator sending the report frame includes:

[0054] The initiator sends the report frame carrying the combined measurement report.

[0055] When a combined measurement report is requested, the measurement reporting phase is not included in the access slot, and the initiator reserves a slot at the end of a round of ranging to send the combined measurement reports of all responders, that is, there is no need to send a measurement report in each access slot, thus reducing the ranging time and thus shortening the ranging duration.

[0056] According to the first aspect, in a possible implementation manner of the method, the ADV-RESP frame further includes a ninth indication, the ninth indication is used to request a double-sided two-wayranging (DS-TWR) measurement in a measurement report, and the seventh indication is included in the ADV-RESP frame and is used to indicate a request for the initiator to send a measurement report; the method further includes:

[0057] The initiator sends the measurement report including a first round trip time and a first reply time.

[0058] Both the round trip time and the reply time are measured by the initiator, and then DS-TWR is implemented.

[0059] According to the first aspect, in a possible implementation of the method, the ADV-RESP frame further includes a tenth indication, and the tenth indication is used to request the initiator to send other MMS packets; the method further includes:

[0060] The initiator sends the other MMS packets.

[0061] According to the first aspect, in a possible implementation of the method, no other MMS packets are requested in the ADV-RESP frame; the method further includes:

[0062] The initiator determines that the MMS packet used for the MMS ranging is an MMS packet including a single segment with a ranging tag;

[0063] The initiator sets the eleventh indication for requesting the initiator to send other MMS packets in the SOR frame to be valid;

[0064] The initiator sends the other MMS packets.

[0065] In the scenario where the MMS packet for MMS ranging includes a single segment with RMARKER, implementing DS-TWR may require other MMS packets from the initiator. If no other MMS packets are requested in the ADV-RESP frame, the Final MMS Packet Requested field in the SOR frame may be set to 1, so implementing DS-TWR may still require requesting other MMS packets from the initiator. That is, even if the responder does not request other MMS packets, the initiator may determine to send other MMS packets based on the type of the MMS packets.

[0066] According to the first aspect, in a possible implementation manner of the method, the method further includes:

[0067] The initiator records a first sending time of a first ranging mark of a first segment of a first MMS packet from the initiator to the Nth responder, a first receiving time of a second ranging mark of a first segment of a second MMS packet from the Nth responder to the initiator, and a second sending time of a third ranging mark of a first segment of the other MMS packets;

[0068] The initiator calculates the first round-trip time and the first reply time according to the first sending time, the first receiving time, and the second sending time.

[0069] When the MMS packet for MMS ranging is an MMS packet including a single segment with a ranging flag, DS-TWR of the Nth responder (the last responder) may be implemented according to other MMS packets.

[0070] According to the first aspect, in a possible implementation of the method, the ADV-RESP frame further includes a twelfth indication, and the twelfth indication is used to request to reverse segment interleaving in the last access time slot in the MMS ranging; the method further includes:

[0071] After receiving the first fragment of the MMS packet sent by the Nth responder, the initiator sends the MMS packet in the last access time slot.

[0072] By reversing the order of MMS packet exchanges in the last access slot, no further MMS packets from the initiator may be required, while still achieving DS-TWR.

[0073] According to the first aspect, in a possible implementation of the method, in the ADV-RESP frame, no request is made to reverse segment interleaving in the last access slot in the MMS ranging; the method further includes:

[0074] The initiator determines that the MMS packet used for the MMS ranging is an MMS packet including a single segment with a ranging tag;

[0075] The initiator sets the thirteenth indication in the SOR frame for requesting to reverse segment interleaving in the last access time slot in the MMS ranging to be valid;

[0076] After receiving the first fragment of the MMS packet sent by the Nth responder, the initiator sends the MMS packet in the last access time slot.

[0077] In the scenario where the MMS packet for MMS ranging includes a single segment with RMARKER, the implementation of DS-TWR may need to invert the segment interleaving in the last access slot in MMS ranging. If the inversion of the segment interleaving in the last access slot in MMS ranging is not requested in the ADV-RESP frame, the thirteenth indication in the SOR frame may be set to valid, so the implementation of DS-TWR may still request to invert the segment interleaving in the last access slot in MMS ranging.

[0078] According to the first aspect, in a possible implementation manner of the method, the method further includes:

[0079] The initiator records a third sending time of a first ranging mark of a first segment of a first MMS packet from the initiator to the (N-1)th responder, a second receiving time of a second ranging mark of a first segment of a second MMS packet from the Nth responder to the initiator, and a fourth sending time of a third ranging mark of a first segment of a third MMS packet from the initiator to the Nth responder;

[0080] The initiator calculates the first round-trip time and the first reply time according to the third sending time, the second receiving time, and the fourth sending time.

[0081] When the MMS packet for MMS ranging is an MMS packet including a single segment with a ranging flag, the DS-TWR of the Nth responder (the last responder) may be achieved by inverting segment interleaving in the last access slot.

[0082] According to the first aspect, in a possible implementation manner of the method, the method further includes:

[0083] The initiator records the fifth first sending time of the first ranging mark of the first segment of the first MMS packet from the initiator to the mth responder, the third receiving time of the second ranging mark of the first segment of the second MMS packet from the mth responder to the initiator, and the sixth sending time of the third ranging mark of the first segment of the third MMS packet from the initiator to the (m+1)th responder, wherein 1≤m <N;

[0084] The initiator calculates the first round-trip time and the first reply time according to the fifth sending time, the third receiving time, and the sixth sending time.

[0085] The DS-TWR of the mth responder (not the last responder) can be implemented.

[0086] According to the first aspect, in a possible implementation manner of the method, the MMS packet of the initiator is skipped in access time slots other than the first access time slot and the last access time slot in the MMS ranging, and the method further includes:

[0087] The initiator sends a final MMS packet in the last access slot in the MMS ranging.

[0088] The initiator does not send an MMS packet in every access slot within the measurement period, thereby reducing the ranging time.

[0089] According to the first aspect, in a possible implementation manner of the method, N is an even number; and the method further includes:

[0090] The initiator determines that the MMS packet used for the MMS ranging is an MMS packet including a single segment with a ranging tag;

[0091] After receiving the first fragment of the MMS packet sent by the Nth responder, the initiator sends the final MMS packet in the last access slot in the MMS ranging.

[0092] By reversing the order of MMS packet exchanges in the last access slot, no further MMS packets from the initiator may be required, while still achieving DS-TWR.

[0093] According to the first aspect, in a possible implementation manner of the method, the method further includes:

[0094] The initiator records the seventh sending time of the first ranging mark of the first fragment of the first MMS packet of the initiator in the first access time slot, the fourth receiving time of the second ranging mark of the first fragment of the second MMS packet from the Nth responder to the initiator, and the eighth sending time of the third ranging mark of the first fragment of the third MMS packet of the initiator in the last access time slot;

[0095] The initiator calculates the first round-trip time and the first reply time according to the seventh sending time, the fourth receiving time, and the eighth sending time.

[0096] When the MMS packet used for MMS ranging is an MMS packet including a single segment with a ranging flag and N is an even number, DS-TWR may be implemented by reversing the order of the final MMS packet exchange in the last access slot.

[0097] According to the first aspect, in a possible implementation manner of the method, the method further includes:

[0098] The initiator determines that the MMS packet used for the MMS ranging is an MMS packet including at least two segments with ranging tags;

[0099] The initiator records the ninth sending time of the first ranging mark of the first segment of the first MMS packet from the initiator to the nth responder, the fifth receiving time of the second ranging mark of the first segment of the second MMS packet from the nth responder to the initiator, and the tenth sending time of the third ranging mark of the second segment of the first MMS packet carrying the ranging mark, wherein 1≤n≤N;

[0100] The initiator calculates the first round-trip time and the first reply time according to the ninth sending time, the fifth receiving time and the tenth sending time.

[0101] When an MMS packet for MMS ranging is an MMS packet including at least two segments with a ranging flag, DS-TWR of all responders may be achieved.

[0102] According to a second aspect, the present disclosure relates to a communication method, the communication method comprising:

[0103] The responder sends an advertising-response (ADV-RESP) frame to the initiator, wherein the ADV-RESP frame is used to indicate the number N of responders to participate in multi-millisecond (MMS) ranging, where N≥1;

[0104] The responder receives a start of ranging (SOR) frame from the initiator, wherein the SOR frame is used to provide a time offset at which a first distance measurement cycle is to start.

[0105] According to the second aspect, in a possible implementation manner of the method, the ADV-RESP frame includes a first indication, where the first indication is used to indicate the number N.

[0106] According to the second aspect, in a possible implementation of the method, the ADV-RESP frame includes a second indication, and the second indication is used to indicate the number of remaining ADV-RESP frames to be sent after the ADV-RESP frame, and the number of remaining ADV-RESP frames included in the i-th ADV-RESP frame is N-i, 1≤i≤N.

[0107] According to the second aspect, in a possible implementation manner of the method, the number N is indicated by the number of the ADV-RESP frames sent by the responder.

[0108] According to the second aspect, in a possible implementation of the method, N≥2, and the method further includes:

[0109] N responders coordinate a predetermined order for sending N ADV-RESP frames;

[0110] The responding party sending the ADV-RESP frame to the initiating party includes:

[0111] The N responders send N ADV-RESP frames to the initiator in sequence according to the predetermined order.

[0112] According to the second aspect, in a possible implementation of the method, the ADV-RESP frame includes a first indication and a second indication, the first indication is used to indicate the number N, and the second indication is used to indicate the number of remaining ADV-RESP frames to be sent after the ADV-RESP frame, and the number of remaining ADV-RESP frames included in the i-th ADV-RESP frame is N-i, 1≤i≤N.

[0113] According to the second aspect, in a possible implementation manner of the method, N≥2, and the ADV-RESP frame further includes a third indication, where the third indication is used to indicate that the N responders are synchronized with each other.

[0114] According to the second aspect, in a possible implementation of the method, the responding party sending the ADV-RESP frame to the initiating party includes:

[0115] A responder sends an ADV-RESP frame to the initiator, wherein the responder is predetermined or dynamically selected from the responders to participate in the MMS ranging.

[0116] According to the second aspect, in a possible implementation manner of the method, before the responder sends the ADV-RESP frame to the initiator, the method further includes:

[0117] The responder receives an advertising-poll (ADV-POLL) frame from the initiator, wherein the ADV-POLL frame is used to indicate a maximum number K of responders supporting the MMS ranging, where K≥1.

[0118] According to the second aspect, in a possible implementation of the method, the responder receiving the SOR frame from the initiator includes:

[0119] The responder receives the SOR frame including a fourth indication, wherein the fourth indication is used to indicate the number M of responders used for MMS ranging, M≤N.

[0120] According to the second aspect, in a possible implementation of the method, the ADV-RESP frame further includes a fifth indication, and the fifth indication is used to indicate that the POLL frame does not exist in the ranging control phase other than the first access timeslot in the MMS ranging.

[0121] According to the second aspect, in a possible implementation manner of the method, the ADV-RESP frame further includes a sixth indication, and the sixth indication is used to indicate that the RESP frame does not exist in the ranging control phase except the first access timeslot.

[0122] According to the second aspect, in a possible implementation manner of the method, the ADV-RESP frame further includes a fourteenth indication, where the fourteenth indication is used to indicate a request for the responder to send a measurement report; and the method further includes:

[0123] The responder sends a report frame.

[0124] According to the second aspect, in a possible implementation manner of the method, N≥2, the ADV-RESP frame further includes an eighth indication, and the eighth indication is used to request a combined measurement report; the method further includes:

[0125] The responder collects measurement reports of N responders;

[0126] The responder generates the combined measurement report according to the measurement reports of the N responders;

[0127] The responder sending the report frame includes:

[0128] The responder sends the report frame carrying the combined measurement report.

[0129] According to the second aspect, in a possible implementation manner of the method, the ADV-RESP frame further includes a ninth indication, the ninth indication is used to request a double-sided two-wayranging (DS-TWR) measurement in a measurement report, and a fourteenth indication is included in the ADV-RESP frame and is used to indicate a request for the responder to send a measurement report; the method further includes:

[0130] The responder sends the measurement report including second round trip time and second reply time fields.

[0131] According to the second aspect, in a possible implementation of the method, the ADV-RESP frame further includes a tenth indication, and the tenth indication is used to request the initiator to send other MMS packets; the method further includes:

[0132] The responder receives the other MMS packets from the initiator.

[0133] According to the second aspect, in a possible implementation of the method, no other MMS packets are requested in the ADV-RESP frame, and when the MMS packet used for the MMS ranging is an MMS packet including a single fragment with a ranging tag, the eleventh indication in the SOR frame for requesting the initiator to send other MMS packets is set to valid.

[0134] According to the second aspect, in a possible implementation manner of the method, the method further includes:

[0135] The Nth responder records the sixth reception time of the first ranging mark of the first fragment of the first MMS packet from the initiator to the Nth responder, the eleventh sending time of the second ranging mark of the first fragment of the second MMS packet from the Nth responder to the initiator, and the seventh reception time of the third ranging mark of the first fragment of the other MMS packet;

[0136] The Nth responder calculates the second round trip time and the second reply time according to the sixth receiving time, the eleventh sending time and the seventh receiving time.

[0137] According to the second aspect, in a possible implementation of the method, the ADV-RESP frame further includes a twelfth indication, the twelfth indication being used to request inversion of segment interleaving in a last access slot in the MMS ranging; and the method further includes:

[0138] The Nth responder sends the first fragment of the MMS packet to the initiator;

[0139] The Nth responder receives an MMS packet from the initiator in the last access slot in the MMS ranging.

[0140] According to the second aspect, in a possible implementation of the method, in the ADV-RESP frame, no request is made to reverse segment interleaving in the last access slot in the MMS ranging; when the MMS packet used for the MMS ranging is an MMS packet including a single segment with a ranging tag, the thirteenth indication in the SOR frame for requesting to reverse segment interleaving in the last access slot in the MMS ranging is set to valid; the method further includes:

[0141] The Nth responder sends the first fragment of the MMS packet to the initiator;

[0142] The Nth responder receives an MMS packet from the initiator in the last access slot in the MMS ranging.

[0143] According to the second aspect, in a possible implementation manner of the method, the method further includes:

[0144] The Nth responder records the eighth reception time of the first ranging mark of the first segment of the first MMS packet from the initiator to the (N-1)th responder, the twelfth transmission time of the second ranging mark of the first segment of the second MMS packet from the Nth responder to the initiator, and the ninth reception time of the third ranging mark of the first segment of the third MMS packet from the initiator to the Nth responder;

[0145] The Nth responder calculates the second round trip time and the second reply time according to the eighth receiving time, the twelfth sending time and the ninth receiving time.

[0146] According to the second aspect, in a possible implementation manner of the method, the method further includes:

[0147] The mth responder records the tenth reception time of the first ranging mark of the first segment of the first MMS packet from the initiator to the mth responder, the thirteenth transmission time of the second ranging mark of the first segment of the second MMS packet from the mth responder to the initiator, and the eleventh reception time of the third ranging mark of the first segment of the third MMS packet from the initiator to the (m+1)th responder, where 1≤m <N;

[0148] The mth responder calculates the second round trip time and the second reply time according to the tenth receiving time, the thirteenth sending time and the eleventh receiving time.

[0149] According to the second aspect, in a possible implementation manner of the method, the MMS packet of the initiator is skipped in access slots other than the first access slot and the last access slot in the MMS ranging, and the method further includes:

[0150] The responder receives a final MMS packet in the last access slot in the MMS ranging.

[0151] According to the second aspect, in a possible implementation manner of the method, N is an even number, and the MMS packet used for the MMS ranging is an MMS packet including a single segment with a ranging tag; the method further includes:

[0152] The Nth responder sends the first fragment of the MMS packet to the initiator;

[0153] The Nth responder receives the final MMS packet from the initiator in the last access slot in the MMS ranging.

[0154] According to the second aspect, in a possible implementation manner of the method, the method further includes:

[0155] The Nth responder records the twelfth reception time of the first ranging mark of the first fragment of the first MMS packet of the initiator in the first access time slot, the fourteenth transmission time of the second ranging mark of the first fragment of the second MMS packet from the Nth responder to the initiator, and the thirteenth reception time of the third ranging mark of the first fragment of the third MMS packet of the initiator in the last access time slot;

[0156] The Nth responder calculates the second round trip time and the second reply time according to the twelfth receiving time, the fourteenth sending time and the thirteenth receiving time.

[0157] According to the second aspect, in a possible implementation manner of the method, the MMS packet used for the MMS ranging is an MMS packet including at least two segments with a ranging tag; the method further includes:

[0158] The nth responder records the fourteenth reception time of the first ranging mark of the first segment of the first MMS packet from the initiator to the nth responder, the fifteenth sending time of the second ranging mark of the first segment of the second MMS packet from the nth responder to the initiator, and the fifteenth reception time of the third ranging mark of the second segment of the first MMS packet carrying the ranging mark, wherein 1≤n≤N;

[0159] The nth responder calculates the second round trip time and the second reply time according to the fourteenth receiving time, the fifteenth sending time and the fifteenth receiving time.

[0160] According to a third aspect, the present disclosure relates to a communication device, comprising units for executing the method according to the first aspect or any possible implementation manner of the first aspect.

[0161] According to a fourth aspect, the present disclosure relates to a communication device, comprising units for executing the method according to the second aspect or any possible implementation manner of the second aspect.

[0162] According to a fifth aspect, the present disclosure relates to an electronic device, comprising a processing circuit for executing the method according to the first aspect or any possible implementation manner of the first aspect.

[0163] According to a sixth aspect, the present disclosure relates to an electronic device, comprising a processing circuit for executing the method according to the second aspect or any possible implementation manner of the second aspect.

[0164] According to a seventh aspect, the present disclosure relates to a chip, comprising an input / output (I / O) interface and a processor, wherein the processor is used to call and run a computer program stored in a memory so that a device equipped with the chip can execute the method described in the first aspect or any possible implementation method of the first aspect.

[0165] According to an eighth aspect, the present disclosure relates to a chip, comprising an input / output (I / O) interface and a processor, wherein the processor is used to call and run a computer program stored in a memory so that a device equipped with the chip can execute the method described in the second aspect or any possible implementation of the second aspect.

[0166] According to the ninth aspect, the present disclosure relates to an electronic device, which includes one or more processors and a non-temporary computer-readable storage medium, wherein the non-temporary computer-readable storage medium is coupled to the one or more processors and stores a program for execution by the processors, and when the program is executed by the processor, the decoder is used to execute the method described in the first aspect or any possible implementation method of the first aspect.

[0167] According to the tenth aspect, the present disclosure relates to an electronic device, which includes one or more processors and a non-temporary computer-readable storage medium, wherein the non-temporary computer-readable storage medium is coupled to the one or more processors and stores a program for execution by the processors, and when the program is executed by the processor, the encoder is used to execute the method described in the second aspect or any possible implementation method of the second aspect.

[0168] According to an eleventh aspect, the present disclosure relates to a communication system, which includes the electronic device according to the ninth aspect and the electronic device according to the tenth aspect.

[0169] According to a twelfth aspect, the present disclosure relates to a non-transitory computer-readable medium carrying a program code, and when the program code is executed by a computer device, the program code causes the computer device to execute the method according to the first aspect or any possible implementation of the first aspect.

[0170] According to a thirteenth aspect, the present disclosure relates to a non-transitory computer-readable medium carrying a program code, and when the program code is executed by a computer device, the program code causes the computer device to perform the method according to the second aspect or any possible implementation of the second aspect.

[0171] According to a fourteenth aspect, the present disclosure relates to a computer program product comprising a program code, wherein the program code is used to execute the method according to the first aspect or any possible implementation manner of the first aspect.

[0172] According to a fifteenth aspect, the present disclosure relates to a computer program product comprising a program code, wherein the program code is used to execute the method according to the second aspect or any possible implementation manner of the second aspect.

[0173] The present disclosure provides a communication method and apparatus, an electronic device, and related products. The initiator obtains the number of responders to participate in MMS ranging through the ADV-RESP frame sent by the responder, and then sends a SOR frame according to the number of responders to participate in MMS ranging. Therefore, once the responder sends the ADV-RESP frame to the initiator, the initiator obtains the number of responders to participate in MMS ranging, which is conducive to the normal operation of MMS ranging. BRIEF DESCRIPTION OF THE DRAWINGS

[0174] The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.

[0175] Figure 1 is a schematic diagram of the block-based ranging mode.

[0176] Figure 2 It is a schematic diagram of UWB MMS ranging.

[0177] Figure 3 It is a schematic diagram of DS-TWR operation.

[0178] Figure 4 It is a schematic diagram of a one-to-many SS-TWR ranging process using Narrow Band Assisted (NBA) UWB MMS ranging.

[0179] Figure 5 is a schematic diagram of conflicts occurring during the initialization and establishment phase of one-to-many MMS ranging.

[0180] Figure 6 It is a schematic flow chart of a communication method provided by an embodiment of the present disclosure.

[0181] Figure 7 It is a schematic diagram of a vehicle digital key application scenario provided by an embodiment of the present disclosure.

[0182] Figure 8 It is a schematic diagram of one-to-many ranging provided by an embodiment of the present disclosure.

[0183] Fig. 9 It is a schematic diagram of a message flow in one-to-many ranging provided by an embodiment of the present disclosure.

[0184] Fig.10 It is a schematic diagram of an ADV-POLL frame provided by an embodiment of the present disclosure.

[0185] Fig.11 is a schematic diagram of an ADV-RESP frame provided by an embodiment of the present disclosure.

[0186] Fig.12 It is a schematic diagram of a SOR frame provided by an embodiment of the present disclosure.

[0187] Fig.13 It is a schematic diagram of a RIM frame provided by an embodiment of the present disclosure.

[0188] Fig.14 It is a schematic diagram of an RPRT frame provided by an embodiment of the present disclosure.

[0189] Fig.15 It is a schematic diagram of one-to-one MMS ranging applicable to DS-TWR provided by an embodiment of the present disclosure.

[0190] Fig.16 It is a schematic diagram of a POLL frame provided by an embodiment of the present disclosure.

[0191] Fig.17 It is a schematic diagram of one-to-many MMS ranging applicable to DS-TWR provided by an embodiment of the present disclosure.

[0192] Fig.18 The diagram is a schematic diagram of UWB MMS packet exchange between an initiator and a final responder provided by an embodiment of the present disclosure.

[0193] Fig.19 It is a schematic diagram of UWB MMS packet exchange between an initiator and a responder provided by an embodiment of the present disclosure.

[0194] Fig. 20 This is a schematic diagram of a scenario of a digital key for a garage door provided by an embodiment of the present disclosure.

[0195] Fig.21 It is a schematic diagram of one-to-many ranging provided by another embodiment of the present disclosure.

[0196] Fig. 22 FIG. 4 is a schematic diagram of one-to-many MMS ranging adapted to DS-TWR provided by another embodiment of the present disclosure.

[0197] Fig.23 is a schematic diagram of an ADV-RESP frame provided by another embodiment of the present disclosure.

[0198] Fig.24The diagram is a schematic diagram of UWB MMS packet exchange between an initiator and a last responder applicable to an odd number of responders provided by an embodiment of the present disclosure.

[0199] Fig.25 The diagram is a schematic diagram of UWB MMS packet exchange between an initiator and a last responder applicable to an even number of responders provided by an embodiment of the present disclosure.

[0200] Fig.26 It is a schematic diagram of another vehicle digital key application scenario provided by an embodiment of the present disclosure.

[0201] Fig. 27 FIG. 4 is a schematic diagram of one-to-many MMS ranging applicable to DS-TWR provided by yet another embodiment of the present disclosure.

[0202] Fig.28 4 is a schematic diagram of an ADV-RESP frame provided by yet another embodiment of the present disclosure.

[0203] Fig.29 It is a schematic diagram of UWB MMS packet exchange between an initiator and a responder provided by another embodiment of the present disclosure.

[0204] Fig.30 It is a block diagram of a communication device provided by an embodiment of the present disclosure.

[0205] Fig.31 is a block diagram of a communication device provided by another embodiment of the present disclosure.

[0206] Fig.32 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0207] In the following description, reference is made to the accompanying drawings that form a part of the present disclosure, which illustrate specific aspects of embodiments of the present invention or specific aspects of embodiments of the present disclosure by way of illustration. It should be understood that the embodiments of the present disclosure may be used in other aspects and include structural or logical changes that are not depicted in the accompanying drawings. Therefore, the following specific description should not be understood in a restrictive sense, and the scope of the present disclosure is defined by the appended claims.

[0208] For example, it is understood that the disclosure related to describing a method may also be applicable to a corresponding device or system for performing the method, and vice versa. For example, if one or more specific method steps are described, the corresponding device may include one or more units (e.g., functional units) to perform the described one or more method steps (e.g., one unit performs one or more steps, or multiple units perform one or more of the multiple steps respectively), even if such one or more units are not explicitly described or illustrated in the drawings. On the other hand, for example, if a specific device is described based on one or more units (e.g., functional units), the corresponding method may include a step to perform the function of one or more units (e.g., one step performs the function of one or more units, or multiple steps perform the function of one or more of the multiple units respectively), even if such one or more steps are not explicitly described or illustrated in the drawings. In addition, it is understood that, unless otherwise explicitly stated, the features of the various exemplary embodiments and / or aspects described herein may be combined with each other.

[0209] Ultra-wideband (UWB) technology is increasingly being used for indoor positioning and other location services, such as access control and asset location. In addition to dedicated devices and tags, UWB radios are becoming more common in high-end smartphones. The UWB physical layer (PHY) and media access control (MAC) are standardized by the IEEE, and the latest IEEE publications are IEEE 802.15.4-2020 and IEEE 802.15.4z. Recently, a new task group 802.15.4ab is actively improving UWB technology.

[0210] In addition to traditional ranging application scenarios, other application scenarios such as device-free sensing, downlink time difference of arrival (DL-TDOA), and long-distance ranging are also being actively studied. To address long-distance ranging application scenarios, multi-millisecond (MMS) ranging was introduced in 802.15.4ab (see 15-21-0409-01-04ab-narrowband-assisted-multi-millisecond-uwb). The key concept behind MMS ranging is to divide the UWB ranging frame into multiple segments and transmit them in multiple milliseconds (ms), thereby breaking through the transmission energy limit of 37nJ / ms. High-performance narrowband (NB) radio equipment can further enhance MMS ranging to provide time synchronization for UWB radio equipment and also for control signaling. This is called NBA-UWB MMS ranging. In MMS ranging, the number of segments required for ranging depends on the distance to be measured as well as the channel conditions, so this number can be adjusted dynamically even in the same ranging session.

[0211] Block-based ranging mode and other ranging technologies can be used in various scenarios, such as tags, smartphones, laptops, remote control keys, vehicles, door locks, garages, hotel rooms, elevators, etc. Figure 1 As shown, 802.15.4z defines a block-based time structure for the block-based ranging mode. Each ranging block consists of an integer number of ranging rounds, and a ranging round refers to a period of time sufficient to complete a complete distance measurement cycle involving a group of enhanced ranging capable devices (ERDEV) participating in the ranging exchange. Each ranging round is further subdivided into an integer number of ranging slots, and a ranging slot refers to a period of time sufficient to transmit at least one ranging frame (RFRAME). The block-based mode uses a structured timeline, and by default, the ranging block structure is periodic.

[0212] Figure 2Ultra-wideband (UWB) multi-millisecond (MMS) ranging discussed in IEEE 802.15.4ab is shown. An MMS ranging session may include an initialization and setup phase, followed by one or more measurement cycles. During the initialization and setup phases, frames are transmitted in an initialization channel, while during the measurement cycles, frames are transmitted in a ranging channel. Although the same channel may be used as the initialization channel and the ranging channel, it is more likely that one or more well-known channels are used as the initialization channel.

[0213] During the initialization and establishment phases, the initiator and responder can negotiate a different ranging configuration than the default configuration defined by 802.15.4ab. The initiator sends advertising poll (ADV-POLL) frames at intervals and from time to time at its discretion, and one or more responders can listen for incoming ADV-POLL frames. If the responder intends to participate in a ranging session with the initiator, it will respond with an advertising response (ADV-RESP) frame. Once the initiator receives the ADV-RESP packet, it sends a start of ranging (SOR) packet, which provides the time offset at which the first distance measurement cycle is to begin.

[0214] The distance measurement cycle includes a ranging control phase, a ranging phase, and an optional measurement reporting phase. The ranging control phase starts at the beginning of the distance measurement cycle. The initiator starts the ranging control phase by sending a POLL frame to the responder at the beginning of the first ranging time slot of a round of ranging. The responder that successfully receives the POLL frame sends a RESP frame back to the initiator. The POLL frame and the RESP frame enable the initiator and the responder to achieve time and frequency synchronization. The initiator can also provide other control information to the responder in the POLL frame. During the ranging phase, the initiator and the responder can exchange zero or more MMS UWB packets. The MMS UWB packet consists of multiple fragments, which can include zero or more ranging sequence fragments (ranging sequence fragment, RSF) and optionally one or more ranging integrity fragments (ranging integrity fragment, RIF). RSF is used to perform ranging measurements, and RIF is used to check the integrity of ranging measurements. The MMS UWB packet can be an RSF-only MMS UWB packet, an RIF-only MMS UWB packet, or a hybrid MMS UWB packet. In the hybrid MMS UWB packet format for ranging integrity, the RIF can be located after the RSF. The RIF-only MMS UWB packet only includes the RIF. After the initiator or responder completes receiving all UWB fragments in the ranging phase, the reporting phase begins. During this phase, the initiator and / or responder generates a ranging measurement report and sends an RPRT frame carrying the ranging measurement report to the peer device. The reported timestamp is measured with reference to the ranging marker (RMARKER). For all traditional physical layers (PHY), the RMARKER is defined as the start time of the first symbol after the start-of-frame delimiter (SFD) of the RFRAME on the local antenna. For MMS UWB packets, the RMARKERs of RSF and RIF are called RSF-RMARKER and RIF-RMARKER, respectively. For RSF-only MMS packets or hybrid MMS packets, the RSF-RMARKER is defined as the peak value of the first pulse in the first RSF. For RIF-only MMS packets or hybrid MMS packets, each RIF consists of two RIF-MARKERs, defined as the peak value of the first pulse and the peak value of the last pulse in each RIF, respectively. When RIF is used for SS-TWR or DS-TWR time measurement, the first RIF-RMARKER of the RIF is used as the RMARKER for time measurement.

[0215] There are two flavors of MMS ranging: (1) UWB-only MMS ranging, in which UWB is used to transmit control frames and ranging segments; and (2) Narrowband assisted UWB multi-millisecond (NBA-UWB MMS) ranging, in which UWB is used to transmit ranging segments and narrowband (for example, using O-QPSK PHY specified in IEEE802.15.4-2020) is used to transmit control frames.

[0216] Several ranging and positioning methods are described in IEEE 802.15.4z. Single-sided two-way ranging (SS-TWR) involves measuring the round-trip delay of a single message from one device to another, and sending a response back to the original device. Double-sided two-way ranging (DS-TWR) is an extension of SS-TWR that uses and combines two round-trip time measurements to provide a time of flight (TOF) result with reduced errors in the presence of uncorrected clock frequency offsets, even when the response delay is quite long. Figure 3 FIG. 4 shows a DS-TWR operation, wherein device A initiates the first round trip time measurement, device B responds to it, and then device B initiates the second round trip time measurement, device A responds to it, completing a complete DS-TWR exchange, T prop is the propagation time of the RMARKER between devices.

[0217] Each device precisely measures the time it takes to send and receive a message, and the resulting TOF can be estimated using the following equation:

[0218]

[0219] Among them, T round is the round trip time, T reply It’s reply time.

[0220] Above Figure 2The UWBMMS ranging discussed in IEEE 802.15.4ab (see IEEE 802.15-22 / 0381r2) is shown. The one-to-many SS-TWR ranging process using MMS ranging is also discussed in IEEE 802.15.4ab (see IEEE 802.15-22 / 00151r2). It is divided into two types according to whether the narrowband auxiliary method (NBA-UWB) is used. When NBA-UWB is not used, all frames are transmitted on the UWB band. When NBA-UWB is used, the control frame is transmitted on the NB channel, and the MMS ranging frame is transmitted on the UWB band. Figure 4 A one-to-many SS-TWR ranging process using NBA-UWB MMS ranging is shown. Frames exchanged using a NB radio and a UWB radio are represented by two different lines; frames sent by the initiator are located above the line, while frames sent by one or more responders are located below the line. The initiator starts the ranging exchange by sending a broadcast ranging initiation message (RIM). The RIM may include configuration parameters for one-to-many rounds of ranging, which divide the ranging slots in a round of ranging into multiple access slots, with one responder assigned to one access slot. In each access slot, the ranging control, ranging, and measurement reporting phases are the same as the one-to-one MMS described above. Specifically, in access slot 0, the ranging initiation message also provides time synchronization functionality like the polling message. Figure 4 In the example shown, each responder sends a measurement report back to the initiator in its allocated access time slot, and the initiator calculates the distance based on the measurement report.

[0221] Above and Figure 2 The initialization and establishment phase of UWB MMS ranging shown only considers one-to-one MMS ranging, which may not be suitable for one-to-many MMS ranging. In the initialization and establishment phase of one-to-many MMS ranging, multiple responders can receive ADV-POLL frames sent by the initiator, and multiple responders can send ADV-RESP frames as responses at the same time, resulting in ADV-RESP frames conflicting on the initiator side, so that the initiator cannot receive any ADV-RESP frames. Even if the responder uses a mechanism such as listen before talk (LBT) and manages to successfully send an ADV-RESP frame, the SOR frame sent by the initiator in response to the ADV-RESP frame may still conflict with some ADV-RESP frames delayed by the responders. Figure 5 This is shown.

[0222] for Figure 4 The one-to-many SS-TWR ranging process using NBA-UWB MMS ranging is shown in Figure 1.round (round trip time) and T reply The (reply time) is measured independently by the initiator and responder using their respective local clocks, and there is some clock frequency offset error between the local clock and the nominal frequency, which leads to a considerable error in the TOF estimate, which increases with the increase of the reply time. In fact, this problem also exists in one-to-one MMS ranging.

[0223] The present disclosure aims to solve the above problems and proposes a technical solution for enhancing the initialization and establishment phases of UWB MMS ranging and enhancing the ranging phase and reporting phase of (one-to-one or one-to-many) UWB MMS ranging to realize DS-TWR.

[0224] The present disclosure is applicable to any application scenario using UWB MMS ranging.

[0225] Before describing the technical solutions in the present disclosure, the following related terms are introduced.

[0226] Controller: A device that controls a UWB session and defines the session parameters.

[0227] Slave: A device that participates in a UWB session using session parameters received from a controller.

[0228] Initiator: A device that follows the instructions of the controller and initiates the exchange by sending the first message of the UWB exchange. Either the controller or the controlled party can be the initiator.

[0229] Responder: A device that responds to the first message received from the initiator and participates in the UWB exchange. Either the controller or the controlled party can be a responder.

[0230] NB-UWB module: A module that includes a UWB radio and a NB radio that are tightly coupled (eg, mounted in the same hardware component).

[0231] Synchronous One-to-Many Ranging: One-to-Many Ranging, where all responders are connected to each other and can coordinate their respective actions.

[0232] The embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. The present disclosure provides a communication method involving interaction between an initiator and a responder. Figure 6 , the communication method may include the following steps.

[0233] Step 601: The initiator sends an ADV-POLL frame to the responder.

[0234] The ADV-POLL frame can be used to indicate the maximum number of responders K that support MMS ranging, K ≥ 1. The structure of the ADV-POLL frame will be introduced later. The maximum number can be specified by the Maximum Responders field in the ADV-POLL frame. The maximum number of responders K that supports MMS ranging can indicate whether the initiator supports one-to-many MMS ranging. When K is a value greater than 1, it indicates that the initiator supports one-to-many MMS ranging.

[0235] Step 602: The responder sends an ADV-RESP frame to the initiator.

[0236] The ADV-RESP frame is used to indicate the number N of responders to participate in MMS ranging, where N≥1. The structure of the ADV-RESP frame will be introduced later.

[0237] The number N can be indicated in an explicit manner. For example, in one possible implementation, the ADV-RESP frame includes a first indication, which is used to indicate the number N. In another possible implementation, the ADV-RESP frame includes a second indication, which is used to indicate the number of remaining ADV-RESP frames to be sent after the ADV-RESP frame, and the number of remaining ADV-RESP frames included in the i-th ADV-RESP frame is N–i, 1≤i≤N. The number N can be directly indicated by the first indication in the ADV-RESP frame, thereby saving signaling overhead; it can also be indirectly indicated by the second indication in the ADV-RESP frame, wherein the second indication indicates that the number of remaining ADV-RESP frames included in the i-th ADV-RESP frame is N–i. When N–i and i are given, the number N can be indirectly obtained. In addition, since the initiator knows the number of remaining ADV-RESP frames, the accuracy of the transmission time of the SOR frame can be improved even if frame loss occurs. The first indication may be the Number of Responders field in the ADV-RESP frame, and the second indication may be the RemainingADV-RESP field in the ADV-RESP frame. It should be noted that the first indication and the second indication may also be the same field in the ADV-RESP frame, in which case the ADV-RESP frame should include other fields to indicate which indication to use.

[0238] The number N may also be indicated in an implicit manner. For example, in one possible implementation, the number N is indicated by the number of ADV-RESP frames received by the initiator (ie, the number of ADV-RESP frames sent by the responder), thereby saving signaling overhead.

[0239] In a possible implementation, N≥2, the N responders can coordinate the predetermined order of sending N ADV-RESP frames, and the N responders send N ADV-RESP frames to the initiator in sequence according to the predetermined order. ADV-RESP frames are sent one after another in a coordinated manner, ensuring that the ADV-RESP frames do not conflict with each other. When the initiator receives an ADV-RESP frame indicating that the N responders want to participate in MMS ranging, the initiator knows that the N responders want to send ADV-RESP frames, so it does not send a SOR frame. In this way, conflicts between ADV-RESP frames or between ADV-RESP frames and SOR frames are prevented.

[0240] In a possible implementation, the ADV-RESP frame further includes a fifth indication, which is used to indicate that the POLL frame does not exist in the ranging control phase other than the first access time slot in the MMS ranging. The fifth indication may be a POLL Absent In Control Phases field in the ADV-RESP frame. The POLL frame does not exist in the ranging control phase other than the first access time slot in the MMS ranging, so that a measurement cycle can be completed in less time, thereby shortening the ranging duration.

[0241] In a possible implementation, the ADV-RESP frame further includes a sixth indication, which is used to indicate that the RESP frame does not exist in the ranging control phase other than the first access time slot. The sixth indication may be a RESP Absent In Control Phases field in the ADV-RESP frame. The RESP frame does not exist in the ranging control phase other than the first access time slot in the MMS ranging, so a measurement cycle can be completed in less time, thereby shortening the ranging duration.

[0242] The ADV-RESP frame also includes a field for requesting to send a measurement report, and the responder or the initiator can be requested to send a measurement report according to actual needs. In addition, when requesting a combined measurement report, the measurement reporting phase is not included in the access time slot, and the initiator reserves a time slot at the end of a round of ranging to send the combined measurement report of all responders, that is, there is no need to send a measurement report in each access time slot, thereby reducing the ranging time, thereby shortening the ranging duration.

[0243] In a possible implementation, the ADV-RESP frame further includes a seventh indication, which is used to indicate a request for the initiator to send a measurement report, and the method further includes: the initiator sends a report frame. The seventh indication may be an Initiator Report Requested field in the ADV-RESP frame.

[0244] In a possible implementation, N≥2, the ADV-RESP frame further includes an eighth indication, and the eighth indication is used to request a consolidated measurement report; the above method further includes: the initiator generates a consolidated measurement report according to the measurements of the N responders, and sends a report frame carrying the consolidated measurement report. The eighth indication may be a consolidated measurement report (Consolidated Measurement Report) field in the RPRT frame.

[0245] In a possible implementation, the ADV-RESP frame further includes a fourteenth indication, which is used to indicate that the responder is requested to send a measurement report, and the method further includes: the responder sends a report frame. The fourteenth indication may be a Responder Report Requested field in the ADV-RESP frame.

[0246] In a possible implementation, N≥2, the ADV-RESP frame further includes an eighth indication, and the eighth indication is used to request a consolidated measurement report; the above method further includes: the responder collects measurement reports of N responders, generates a consolidated measurement report according to the measurement reports of the N responders, and sends a report frame carrying the consolidated measurement report. The eighth indication may be a consolidated measurement report (Consolidated Measurement Report) field in the RPRT frame.

[0247] Next, the specific implementation of DS-TWR will be introduced. The round trip time and the reply time are measured by the initiator or responder, thereby making up for the defects of the above SS-TWR. The specific implementation of DS-TWR provided by the present disclosure can be applied to one-to-one or one-to-many MMS ranging.

[0248] In one possible implementation, the ADV-RESP frame also includes a ninth indication, which is used to request a double-sided two-way ranging (DS-TWR) measurement in a measurement report, and the seventh indication is included in the ADV-RESP frame and is used to indicate that the initiator is requested to send a measurement report; the above method also includes: the initiator sends a measurement report including a first round-trip time and a first reply time. The ninth indication may be a DS-TWR field in the ADV-RESP frame, and the seventh indication may be an Initiator Report Requested field in the ADV-RESP frame. For example, if the DS-TWR field is set to 1, it indicates that DS-TWR is implemented.

[0249] In a possible implementation, the ADV-RESP frame further includes a tenth indication, which is used to request the initiator to send other MMS packets (also referred to as additional MMS packets); the above method further includes: the initiator sends other MMS packets. The tenth indication may be a Final MMS Packet Requested field in the ADV-RESP frame. For example, if the Final MMS Packet Requested field is set to 1, it indicates that the initiator is requested to send other MMS packets.

[0250] In a possible implementation, no other MMS packets are requested in the ADV-RESP frame; the above method further includes: the initiator determines that the MMS packet used for MMS ranging is an MMS packet including a single segment with a ranging tag, sets the eleventh indication for requesting the initiator to send other MMS packets in the SOR frame to be valid, and sends other MMS packets. The eleventh indication may be a Final MMS Packet Requested field in the SOR frame. The MMS packet including a single segment with a ranging tag may be an MMS packet including only RIF of a single segment, or an MMS packet including only RSF. In a scenario where the MMS packet used for MMS ranging includes a single segment with RMARKER, implementing DS-TWR may require other MMS packets from the initiator. If no other MMS packets are requested in the ADV-RESP frame, for example, the Request Final MMS Packet field is set to 0 in the ADV-RESP frame, the Request Final MMS Packet field in the SOR frame may be set to 1, so implementing DS-TWR may still require requesting other MMS packets from the initiator. That is, even if the responder does not request other MMS packets, the initiator may determine to send other MMS packets according to the type of the MMS packets.

[0251] The following describes the process of obtaining the first round trip time and the first reply time in the measurement report of the initiator and the second round trip time and the second reply time in the measurement report of the responder. The first round trip time, the first reply time, the second round trip time and the second reply time are used to estimate the TOF described in Formula 1, thereby estimating the distance of the peer device.

[0252] When the MMS packet used for MMS ranging is an MMS packet including a single segment with a ranging tag (for example, an MMS packet including only RIF of a single segment, or an MMS packet including only RSF). For the last access slot, in one possible implementation, the initiator records the first sending time of the first ranging tag of the first segment of the first MMS packet from the initiator to the Nth responder, the first receiving time of the second ranging tag of the first segment of the second MMS packet from the Nth responder m to the initiator, and the second sending time of the third ranging tag of the first segment of other MMS packets; the first round trip time and the first reply time are calculated according to the first sending time, the first receiving time, and the second sending time. In one possible implementation, the Nth responder records the sixth receiving time of the first ranging tag of the first segment of the first MMS packet from the initiator to the Nth responder, the eleventh sending time of the second ranging tag of the first segment of the second MMS packet from the Nth responder to the initiator, and the seventh receiving time of the third ranging tag of the first segment of other MMS packets; the second round trip time and the second reply time are calculated according to the sixth receiving time, the eleventh sending time, and the seventh receiving time. When the MMS packet for MMS ranging is an MMS packet including a single segment with a ranging flag, DS-TWR of the Nth responder (the last responder) may be implemented according to other MMS packets.

[0253] For a non-last access time slot, in a possible implementation, the initiator records the fifth transmission time of the first ranging tag of the first fragment of the first MMS packet from the initiator to the m-th responder, the third reception time of the second ranging tag of the first fragment of the second MMS packet from the m-th responder to the initiator, and the sixth transmission time of the third ranging tag of the first fragment of the third MMS packet from the initiator to the (m + 1)-th responder, where 1 ≤ m < N; calculates the first round-trip time and the first reply time according to the fifth transmission time, the third reception time, and the sixth transmission time. In a possible implementation, the m-th responder records the tenth reception time of the first ranging tag of the first fragment of the first MMS packet from the initiator to the m-th responder, the thirteenth transmission time of the second ranging tag of the first fragment of the second MMS packet from the m-th responder to the initiator, and the eleventh reception time of the third ranging tag of the first fragment of the third MMS packet from the initiator to the (m + 1)-th responder, where 1 ≤ m < N; calculates the second round-trip time and the second reply time according to the tenth transmission time, the thirteenth reception time, and the eleventh reception time. Therefore, DS-TWR of the m-th responder (non-last responder) can be implemented.

[0254] When the MMS packet used for MMS ranging is an MMS packet including at least two fragments with ranging tags, for example, when a hybrid MMS packet including at least two fragments or an MMS packet with only RIF is used for MMS ranging, DS-TWR only requires a single MMS packet exchange. For the process of obtaining the first round-trip time and the first reply time in this case, in a possible implementation, the initiator determines that the MMS packet used for MMS ranging is an MMS packet including at least two fragments with ranging tags; records the ninth transmission time of the first ranging tag of the first fragment of the first MMS packet from the initiator to the n-th responder, the fifth reception time of the second ranging tag of the first fragment of the second MMS packet from the n-th responder to the initiator, and the tenth transmission time of the third ranging tag of the second fragment of the first MMS packet carrying the ranging tag, where 1 ≤ n ≤ N; calculates the first round-trip time and the first reply time according to the ninth transmission time, the fifth reception time, and the tenth transmission time.

[0255] For the acquisition process of the second round trip time and the second reply time in the above situation, in a possible implementation, the nth responder records the fourteenth reception time of the first ranging tag of the first segment of the first MMS packet from the initiator to the nth responder, the fifteenth sending time of the second ranging tag of the first segment of the second MMS packet from the nth responder to the initiator, and the fifteenth reception time of the third ranging tag of the second segment of the first MMS packet carrying the ranging tag, where 1≤n≤N; the second round trip time and the second reply time are calculated according to the fifteenth receiving time, the fifteenth sending time, and the fifteenth receiving time. Therefore, when the MMS packet used for MMS ranging is an MMS packet including at least two segments with ranging tags, DS-TWR of all responders can be implemented.

[0256] Step 603: The initiator sends a start of ranging (SOR) frame to the responder according to the ADV-RESP frame.

[0257] The SOR frame is used to provide a time offset at which the first distance measurement cycle is to start. The structure of the SOR frame will be described later.

[0258] In a possible implementation, the initiator sends a SOR frame to the responder when receiving the Nth ADV-RESP frame. When receiving the Nth ADV-RESP frame (i.e., the last ADV-RESP frame (used to indicate zero remaining ADV-RESP frames)), the initiator sends a SOR frame used to indicate when the MMS ranging starts. In this way, conflicts between ADV-RESP frames or between ADV-RESP frames and SOR frames are prevented.

[0259] In another possible implementation, the initiator estimates the expected transmission time of N ADV-RESP frames and sends a SOR frame to the responder when the expected transmission time ends. If the initiator has not received the last ADV-RESP frame, the initiator will send a SOR frame once the expected total transmission time of all ADV-RESP frames has ended. In this way, conflicts between ADV-RESP frames or between ADV-RESP frames and SOR frames are prevented.

[0260] In a possible implementation, before the initiator sends the SOR frame to the responder, the initiator determines the number M of responders used for MMS ranging according to the number of received ADV-RESP frames, where M≤N; and sends the SOR frame including the fourth indication, where the fourth indication is used to indicate the number M. That is, before the MMS ranging starts, the initiator can select a responder for MMS ranging from the responder that sends the ADV-RESP frame to the initiator.

[0261] In the communication method provided in the present disclosure, the initiator obtains the number of responders to participate in MMS ranging through the ADV-RESP frame sent by the responder, and then sends the SOR frame according to the number of responders to participate in MMS ranging. Therefore, once the responder sends the ADV-RESP frame to the initiator, the initiator obtains the number of responders to participate in MMS ranging, which is conducive to the normal operation of MMS ranging. Since the N responders are connected to each other and can communicate with each other, when the ADV-POLL frame is received, the N responders can coordinate their respective responses and send ADV-RESP frames one by one in a coordinated manner, ensuring that their respective ADV-RESP frames will not conflict with each other. In addition, when the initiator receives the ADV-RESP frame indicating that the N responders are to participate in MMS ranging, the initiator knows that the N responders are to send ADV-RESP frames, so the SOR frame is not sent. In this way, conflicts between ADV-RESP frames or between ADV-RESP frames and SOR frames are prevented. In addition, DS-TWR can be realized by setting the request final MMS packet field to valid.

[0262] by Figure 7The vehicle digital key application scenario shown is Example 1, and there may be other scenarios, which are not limited here. Today, many mobile devices (e.g., smartphones) and vehicles support digital keys, which can be used to lock and unlock authorized vehicles (e.g., cars), start / stop the engine of the vehicle, and even share digital keys with friends and family to enter the vehicle. Many of these modern mobile devices and vehicles also support UWB radio devices, allowing the vehicle to accurately determine the location and even the direction of the mobile device. When used in conjunction with a digital key, this can enable a digital key application that can lock / unlock the door even if the user holding the mobile device is still several meters away from the car. As mentioned above, in order to cope with long-distance ranging application scenarios, MMS ranging is introduced in 802.15.4ab, and high-performance narrowband (NB) radio devices can further enhance MMS ranging to provide time synchronization for UWB radio devices, and also for control signaling. UWB radio devices and NB radio devices can also be installed in the same hardware component that constitutes the NB-UWB module. Several such NB-UWB modules can be installed at different locations in a vehicle (e.g., a car) to act as responders. One or more Bluetooth radio devices can also be installed. All of these radio devices can also be connected to each other through, for example, an on-board wired network and can communicate with each other. There may be a central device in the vehicle that can control and coordinate all radio devices. A compatible mobile device (e.g., a smartphone) supports one each of the UWB radio devices, NB radio devices, and Bluetooth radio devices, and acts as an initiator of MMS ranging. The Bluetooth radio device is used for initial discovery, connection establishment, and credential verification, while the NB radio device and the UWB radio device are used for MMS ranging.

[0263] During the initialization and establishment phase of MMS ranging, the initiator sends advertising poll (ADV-POLL) frames from time to time and at intervals according to its own judgment, and one or more responders can listen to the incoming ADV-POLL frames at the right time. If the responder intends to participate in the ranging session with the initiator, it will respond with an advertising response (ADV-RESP) frame. Once the initiator receives the ADV-RESP packet, it will send a start of ranging (SOR) packet, which provides the time offset for the first distance measurement cycle to start. However, if multiple responders receive the ADV-POLL frame sent by the initiator, multiple responders can send ADV-RESP frames as responses at the same time, causing the ADV-RESP frames to conflict on the initiator side, resulting in the initiator being unable to receive any ADV-RESP frames. Even if the responder uses a mechanism such as listen before talk (LBT) and manages to successfully send an ADV-RESP frame, the SOR frame sent by the initiator in response to the ADV-RESP frame may still conflict with some ADV-RESP frames sent by the responder with delay, such as Figure 5 However, in applications where multiple responders are interconnected and can communicate with each other, upon receiving an ADV-POLL frame, these responders can coordinate their respective responses and send ADV-RESP frames one after another in a coordinated manner, ensuring that their respective ADV-RESP frames do not conflict with each other, such as Figure 8 Each ADV-RESP frame also indicates the number of remaining ADV-RESP frames to be sent after the frame, which depends on the number of responders interested in participating in MMS ranging.

[0264] When the initiator receives an ADV-RESP frame indicating that one or more ADV-RESP frames remain, the initiator is informed that more responders are going to send ADV-RESP frames, thereby avoiding sending a SOR frame. The initiator can also estimate the expected total sending time of all ADV-RESP frames when receiving an ADV-RESP frame indicating the number of remaining ADV-RESP frames. When the last ADV-RESP frame (indicating zero remaining ADV-RESP frames) is received, the initiator sends a SOR frame indicating when the MMS ranging starts. If the initiator does not receive the last ADV-RESP frame, the initiator will send a SOR frame once the expected total sending time of all ADV-RESP frames has ended. In this way, conflicts between ADV-RESP frames or between ADV-RESP frames and SOR frames are prevented.

[0265] Fig. 9 An exemplary message flow involved in a one-to-many UWB MMS ranging application with multiple coordinated responders applicable to DS-TWR is shown. The MMS UWB ranging session begins with the controller and the controlled party performing session establishment, in which long-term session parameters such as UWB channel number, preamble, block structure (number of blocks, block duration), etc. are negotiated. In a vehicle digital key application, a mobile device (e.g., a smartphone) is used as a controller, and the NB-UWB module in the vehicle is used as a controlled party. When security functions are implemented, one or more security keys are also exchanged between the controller and the controlled party. For NBA-UWB MMS ranging, narrowband-related parameters (e.g., NB channel number, number of MMS fragments, etc.) can also be negotiated in the session establishment. In addition, the roles of initiator and responder are also assigned in the session establishment. During the session, it is expected that long-term parameters will not change. Fig. 9 The controller is shown to play the role of the initiator and the controlled party is designated as the responder role, however, in different applications, it is also possible that the controlled party can be designated as the initiator role and the controller plays the responder role. In contrast, parameters related to the measurement period such as round / slot duration, number of MMS fragments, reporting mode, etc. can be regarded as short-term parameters and can be modified during the session. Session establishment can be performed out-of-band using a Bluetooth radio device or a Wi-Fi radio device, etc., or in-band using a narrowband radio device or a UWB radio device, etc.

[0266] Once the session is established, the initiator will send ADV-POLL frames at intervals based on its own judgment, and one or more responders can listen to the incoming ADV-POLL frames at their own discretion. If the responder intends to participate in the ranging session with the initiator, it will respond with an ADV-RESP frame. Fig.10 The ADV-POLL frame is shown, and some key fields in the ADV-POLL frame are introduced below. It should be noted that the ID field in each frame can be used to identify the specific type of the frame.

[0267] The Initialization And Setup Modes field indicates the allowed initialization and setup modes for MMS ranging and can be set to one of the following values:

[0268] 0 = Single responder: only supports one-to-one ranging

[0269] 1 = Contention-based multiple responders: Supports contention-based one-to-many ranging

[0270] 2 = Synchronous multiple responders: supports synchronous one-to-many ranging

[0271] 3 = Reserved.

[0272] The Maximum Responders Presence bit indicates whether the Maximum Responders field is present.

[0273] The Maximum Responders field specifies the maximum number of responders that the initiator can support for MMS ranging (e.g., K≥1). To indicate that the initiator supports one-to-many MMS ranging, the Maximum Responders field in the ADV-POLL frame is set to a value greater than 1, which is not present in one-to-one ranging.

[0274] Upon receiving the ADV-POLL frame, the responders can coordinate their responses and select N (N≤K) responders to participate in the MMS ranging. The selected N responders send their respective ADV-RESP frames one after another in a coordinated manner, ensuring that their respective ADV-RESP frames do not conflict with each other. The ADV-RESP frame is used by the responder to request the parameters of the MMS ranging and Fig.11 As shown, its key fields are as follows:

[0275] Ranging Mode: indicates the mode of the MMS ranging request, where:

[0276] 0 = One-to-one

[0277] 1 = Serial One-to-Many (in this example, the Ranging Mode field is set to 1)

[0278] 2 = Time-efficient one-to-many

[0279] 3 = Reserved.

[0280] Ranging Frame Sequence Decider: Indicates whether the responder decides the order of sending ranging frames in the ranging phase of one-to-many ranging. The order can be the same as the order of sending ADV-RESP frames in the initialization and establishment phases. Moreover, this bit is reserved for one-to-one ranging.

[0281] DS-TWR: Indicates that DS-TWR related fields are requested in the measurement report.

[0282] Remaining ADV-RESPs: Indicates the number of remaining ADV-RESP frames to be sent in the initialization and establishment phases after this frame. This field is only present when one-to-many ranging is requested. This bit is reserved for one-to-one ranging.

[0283] Ranging Parameters: Carries parameters specific to the ranging mode, including:

[0284] ■POLL Absent In Control Phases: Indicates whether to skip the POLL frame in the ranging control phase except the first access slot. This bit is reserved for one-to-one ranging.

[0285] ■Consolidated Measurement Report: Only a single consolidated measurement report is sent after the last access slot. This bit is reserved for one-to-one ranging.

[0286] ■Initiator Report Requested: Requests the initiator to send a measurement report.

[0287] ■ Final MMS Packet Requested: Requests the initiator to send other MMS packets at the end of the last ranging phase.

[0288] All responders send ADV-RESP frames with the same content, but the remaining ADV-RESP fields are different for each responder. Based on the number of ADV-RESP frames received, the initiator knows how many responders to participate in the ranging phase.

[0289] Upon receipt of the last ADV-RESP frame (indicating zero remaining ADV-RESP frames), or once the estimated total transmission time for all ADV-RESP frames has expired, the initiator sends a SOR frame indicating the status of the MMS ranging request; if the status is successful, the time at which the first measurement cycle of the MMS ranging is to begin, and the number of responders with which the initiator is to perform ranging in multiple rounds of MMS ranging. In the SOR frame, the initiator also confirms the MMS ranging parameters requested by the responder, and may also suggest MMS ranging parameters that were not requested by the responder. For example, in some application scenarios, the initiator may decide to implement DS-TWR for MMS ranging, and may set the DS-TWR field in the SOR frame to 1, even if the responder did not request DS-TWR in the ADV-RESP frame. Fig.12 The SOR frame is shown, and its key fields are as follows:

[0290] Ranging Mode: Confirmed as the mode of MMS ranging request:

[0291] 0 = One-to-one

[0292] 1 = Serial one-to-many

[0293] 2 = Time-efficient one-to-many

[0294] 3 = Reserved.

[0295] Status: Indicates whether the ranging request is successful. The remaining fields in the SOR frame exist only if the status is successful, otherwise they do not exist.

[0296] Ranging Parameters: Confirms the ranging parameters requested by the responder. In addition, it also includes:

[0297] ■ Responder Report Requested: Requests the responder to send a measurement report.

[0298] ■ Number of Responders: Indicates the number of responders confirmed for ranging. For one-to-many MMS ranging, this may be based on the number of ADV-RESP frames received by the initiator (eg, N). This field is not present in one-to-one ranging.

[0299] At the time indicated by the time offset in the SOR frame, the initiator sends a Ranging Initiation Message (RIM) frame (for one-to-one ranging, the RIM frame is replaced by a POLL frame), for example, at the beginning of the first ranging slot of a round of ranging. The RIM frame indicates the start of MMS ranging, and the initiator reconfirms the parameters requested by the responder and the initiator (in the ADV-RESP frame and the SOR frame, respectively), and may also include other control information of the responder. Fig.13 The RIM frame is shown, and its key fields are as follows:

[0300] Ranging Mode: Confirm the MMS ranging mode, where:

[0301] 0 = One-to-one

[0302] 1 = Serial one-to-many

[0303] 2 = Time-efficient one-to-many

[0304] 3 = Reserved.

[0305] DS-TWR: Indicates that DS-TWR related fields are requested in the measurement report.

[0306] Ranging Frame Sequence Decider: Indicates whether the responder decides the transmission order of ranging frames in the ranging phase of one-to-many ranging. This bit is reserved for one-to-one ranging.

[0307] Ranging Parameter: Specifies the parameters specific to the ranging mode, where:

[0308] ■POLL Absent In Control Phases: Indicates whether to skip the POLL frame in the ranging control phase except the first access slot. This bit is reserved for one-to-one ranging.

[0309] ■Consolidated Measurement Report: Only a single consolidated measurement report is sent after the last access slot. This bit is reserved for one-to-one ranging.

[0310] ■Initiator Report Requested: Requests the initiator to send a measurement report.

[0311] ■ Responder Report Requested: Requests the responder to send a measurement report.

[0312] ■ Final MMS Packet Requested: Requests the initiator to send other MMS packets at the end of the last ranging phase.

[0313] ■ Number of Responders: Specifies the number of responders to participate in MMS ranging. This bit is not present in one-to-one ranging.

[0314] In the RIM frame, the initiator reconfirms the parameters requested by the responder. RIM also includes configuration parameters for one-to-many rounds of ranging, which divide the ranging slots in a round of ranging into multiple access slots, wherein one access slot is reserved for one responder. Each access slot may also include a ranging control phase, a ranging phase, and an optional measurement reporting phase as described above. Specifically, in access slot 0 (i.e., the first access slot), the RIM frame also provides a time synchronization function like the POLL frame. In the case of synchronous one-to-many ranging, the RIM frame is used to indicate the number of responders to participate in ranging, but does not provide the sending order of the responders, i.e., the responders are not assigned to access slots. The responders have to decide their own sending order and access slot allocation. This order can be the same as the sending order of the ADV-RESP frame in the initialization and establishment phase. The ranging parameter field in the RIM frame also confirms the ranging parameters requested by the responder (POLL does not exist in the control phase, merged measurement reports, request initiator reports, request final MMS packets). In addition, the Request Responder Report field is set to indicate whether one or more measurement reports of the responder are requested, and the Number of Responders field specifies the number of responders that can participate in one-to-many MMS ranging (e.g., N). When the Combined Measurement Report bit in the RIM frame is set to 1, the measurement reporting phase is not included in the access slot, and the initiator reserves a slot at the end of a ranging round to send the combined measurement reports of all responders.

[0315] When a RIM frame is received in the first ranging control phase, in synchronous one-to-many ranging, the responders can coordinate with each other and decide which responders are to participate in ranging (if the number of responders indicated in the RIM frame is less than the number of available responders) and their response order, that is, the order in which the responders perform MMS ranging with the initiator. The responder that is to perform the first MMS ranging with the initiator is called the first responder, the responder that is to perform the second MMS ranging is called the second responder, and so on, and the responder that is to perform the last MMS ranging is called the last responder. The first responder sends the first RESP frame back to the initiator. The RIM frame and the RESP frame enable the initiator and the responder to achieve time and frequency synchronization. In the ranging phase of the first access slot, the initiator and the first responder perform MMS ranging by exchanging MMS packets including zero or more UWB ranging sequence fragments (ranging sequence fragments, RSF) and zero or more UWB ranging integrity fragments (ranging integrity fragments, RIF). The type of MMS packets exchanged and the total number of fragments in each MMS packet (e.g., M) may be negotiated in advance (e.g., in session establishment, or in the initialization and establishment phase). RSF is used to perform ranging measurements, while RIF is used to check the integrity of ranging measurements. Fig. 9In the example of , the combined measurement report bit in the RIM frame is set to 1, so the measurement reporting phase is not included in the access slot. In synchronous one-to-many ranging, since all responders are connected to each other, they can maintain clock and frequency synchronization with each other, so in the second and subsequent access slots, the responder can request the initiator (by setting the POLL not present in the control phase bit in the ADV-RESP frame to 1) to skip sending the POLL frame. In this case, the ranging control phase of the second and subsequent access slots only allocates time slots for RESP frames. Therefore, in the second and subsequent access slots, only the responder sends the RESP frame in the ranging control phase (i.e., skips the POLL frame), and each responder performs MMS ranging with the initiator according to the determined response order in the ranging phase. If the request final MMS packet bit in the ADV-RESP frame and the RIM frame is set to 1, that is, if the responder requests the initiator to send other MMS packets at the end of the last ranging phase, the initiator sends other MMS packets at the end of the last ranging phase. The other MMS packets are the final packets for DS-TWR measurement.

[0316] After the initiator and all responders complete the MMS packet exchange, the measurement reporting phase begins. In this phase, the initiator and each responder generate a ranging measurement report and send an RPRT frame carrying the measurement report to the opposite device. In the case of synchronous one-to-many ranging, when a report is requested from a responder (i.e., the request responder report bit is set to 1) and a combined measurement report is indicated (i.e., the combined measurement report bit in the RIM frame is set to 1), one of the responders (for example, through the vehicle wired network) collects the relevant measurement reports of all responders, generates a combined measurement report, and sends an RPRT frame carrying the combined measurement report in the first time slot of the measurement reporting phase. Similarly, when a report is requested from the initiator (i.e., the request initiator report bit is set to 1), the initiator collects the relevant measurements of all responders, generates a combined measurement report, and sends an RPRT frame carrying the combined measurement report in the second time slot of the measurement reporting phase. Fig.14 The RPRT frame is shown, and its key fields are as follows:

[0317] Report Size: Indicates the size of the Reply Time field and the Round-trip Time field:

[0318] 0: 1 octet

[0319] 1: 2 octets

[0320] 2: 4 octets

[0321] 3: 5 octets

[0322] DS-TWR: Indicates that DS-TWR related fields exist in the measurement report.

[0323] Consolidated Measurement Report: Indicates that the RPRT frame carries more than one measurement report. This bit is reserved for one-to-one ranging.

[0324] Number of Reports: Indicates the number of measurement reports in the Measurement Report List field. The Number of Reports field is present if the Combined Measurement Report bit is 1. This field is not present in one-to-one ranging.

[0325] Measurement Report List: Carries one or more Measurement Report fields. For one-to-one ranging, there is only a single Measurement Report field. For one-to-many ranging, there are two or more Measurement Report fields, one for each responder, and the order of these fields is the same as the order in which the corresponding responder sends them in a round of ranging.

[0326] Measurement Report: Each report carries a measurement report of the responder, where:

[0327] Reply Time: The time difference between the reception time of the responded MMS packet and the sending time of the response MMS packet.

[0328] Round-trip Time: The time difference between the sending time of the MMS packet that initiates the round-trip time measurement and the receiving time of the response MMS packet of the peer device that completes the round-trip time measurement. The time unit is the ranging counter time unit specified in IEEE802.14ab (for example, 15.65ps or smaller units (used by HRP UWB PHY in 802.15.4z), for example, 1ps).

[0329] If the DS-TWR bit is 0 (e.g., one-to-many ranging using SS-TWR):

[0330] For the RPRT frame of the responder: the reply time field exists; the round-trip time field does not exist;

[0331] For the initiator's RPRT frame: the round-trip time field is present; the reply time field is not present.

[0332] If the DS-TWR bit is 1 (e.g., one-to-many ranging using DS-TWR):

[0333] Both the reply time field and the round trip time field are present.

[0334] If both the DS-TWR bit and the Combined Measurement Report bit are 0 (e.g., one-to-one ranging using SS-TWR), the Report Quantity field is not present and the RPRT frame carries a single measurement report in the Measurement Report List. Alternatively, the DS-TWR bit is not used and the presence of the Reply Time field and the Round-trip Time field is indicated by separate presence bits (e.g., Reply Time Presence and Round-trip Time Presence).

[0335] When there is only one controlled party, Fig. 9 The message flow shown is applicable to one-to-one MMS ranging, and the RIM frame is replaced by a POLL frame. Fig.15 A graphical illustration of one-to-one MMS ranging suitable for DS-TWR is provided. Fig.10 The responder uses the ADV-RESP frame (as shown in Figure 1) by setting the ranging mode field to 0 (i.e., one-to-one). Fig.11 If DS-TWR is requested, the DS-TWR bit is set to 1. The remaining ADV-RESP fields are set to 0. For one-to-one MMS ranging, the one-to-many ranging related fields in the ADV-RESP frame and the SOR frame are retained.

[0336] At the time indicated by the time offset in the SOR frame, the initiator sends a POLL frame, for example, at the beginning of the first ranging slot of a round of ranging. The POLL frame indicates the start of one-to-one MMS ranging, and the initiator reconfirms the parameters requested by the responder and the initiator (in the ADV-RESP frame and the SOR frame, respectively), and may also include other control information of the responder. Fig.16 The POLL frame is shown, and its key fields are as follows:

[0337] Ranging Mode: Confirm the MMS ranging mode, where:

[0338] 0 = One-to-one

[0339] 1 = Serial One-to-Many (in this example, the Ranging Mode field is set to 1)

[0340] 2 = Time-efficient one-to-many

[0341] 3 = Reserved.

[0342] DS-TWR: Indicates that DS-TWR related fields are requested in the measurement report.

[0343] Ranging Parameter: Specifies the parameters specific to the ranging mode, where:

[0344] ■Initiator Report Requested: Requests the initiator to send a measurement report.

[0345] ■ Responder Report Requested: Requests the responder to send a measurement report.

[0346] ■ Final MMS Packet Requested: Requests the initiator to send other MMS packets at the end of the last ranging phase.

[0347] Upon receiving the POLL frame, the responder sends a RESP frame back to the initiator. The POLL frame and the RESP frame enable the initiator and the responder to achieve time and frequency synchronization. In the ranging phase, the initiator and the responder perform MMS ranging by exchanging MMS packets. In this example, each MMS packet consists of two fragments. If the request final MMS packet bit in the ADV-RESP frame and the POLL frame is set to 1, that is, if the responder requests the initiator to send other MMS packets at the end of the last ranging phase, the initiator sends other MMS packets at the end of the ranging phase. Alternatively, when only the MMS packet of the RSF is used for MMS ranging and the DS-TWR measurement is requested (that is, the DS-TWR bit in the ADV-RESP frame is set to 1), even if the responder does not explicitly request the final MMS packet (that is, the request final MMS packet bit in the ADV-RESP frame is not set to 1), the initiator can also send other MMS packets and set the request final MMS packet bit in the SOR frame and the POLL frame to 1. When only the MMS packet of RSF is used for MMS ranging, when the DS-TWR bit in the ADV-RESP frame is set to 1, the other MMS packets are the final packets for DS-TWR measurement. After the initiator and the responder complete the MMS packet exchange, the measurement reporting phase begins. In this phase, the initiator (if the request initiator report bit is set to 1) and the responder (if the request responder report bit is set to 1) generate ranging measurement reports and send RPRT frames carrying measurement reports to the peer device. When the DS-TWR bit in the ADV-RESP frame is set to 1, the round-trip time field and the reply time field are both included in the measurement report.

[0348] Fig.17 Shown in time domain format Fig. 9 Here, the number of responders (N) is equal to 8, and the number of segments in the MMS packet (M) is 2. Within the measurement period, each bar on the horizontal line represents a time slot (e.g., duration of 0.5 ms). The key points related to the present disclosure may be as follows:

[0349] ■ During the initialization and establishment phases, the responders coordinate their respective responses and send their respective ADV-RESP frames in a coordinated manner. Each ADV-RESP frame indicates the number of remaining ADV-RESP frames. The initiator sends a SOR frame after the last ADV-RESP frame.

[0350] ■ In the ranging control phase of access slots other than the first access slot, if the POLL Not Present in Control Phase bit is set to 1 in the applicable frame, the POLL frame is skipped and only the RESP frame is sent. If the POLL Not Present in Control Phase bit is not set to 1, then Fig.16 The POLL frame shown is to be sent by the initiator in two time slots prior to the transmission time of the RESP frame.

[0351] ■ If additional MMS packets are requested (e.g., the Request Final MMS Packet bit in the ADV-RESP frame is set to 1 to achieve DS-TWR), the initiator sends one additional MMS packet after receiving an MMS packet from the last responder during the ranging phase of the last access slot. Alternatively, when RSF-only MMS packets are used for MMS ranging using RSF-only MMS packets and DS-TWR measurements are requested (i.e., the DS-TWR bit in the ADV-RESP frame is set to 1), the initiator may send additional MMS packets even if the responder does not explicitly request a final MMS packet (i.e., the Request Final MMS Packet bit in the ADV-RESP frame is not set to 1), and set the Request Final MMS Packet bit in the SOR frame and RIM frame to 1 as needed.

[0352] ■RPRT (report) frames are sent only after the last access slot. If a combined measurement report of the responder is requested, the uplink RPRT frame can carry the combined measurement reports of all responders. If a combined measurement report of the initiator is requested, the downlink RPRT frame can carry the combined measurement reports of all responders.

[0353] from Fig.17 As can be seen from the figure, a measurement cycle can be completed within 62 time slots (31ms). Without taking any special measures (for example, not skipping POLL frames or not using combined measurement reports), if Figure 4The default serial one-to-many ranging sequence shown in the figure can only complete one measurement cycle within 80 time slots (40ms), which takes 9ms more. Figure 4 The default serial one-to-many ranging sequence shown may not support DS-TWR.

[0354] Next, the present disclosure describes how to make and report ranging measurements that implement DS-TWR (for example, if the DS-TWR bit in the ADV-RESP frame or the SOR frame is set to 1). Three MMS fragments with RMARKERs are required to make DS-TWR time measurements. A hybrid MMS packet including at least two fragments or a RIF-only MMS packet has at least two RMARKERs that can be used to calculate the DS-TWR time measurement. This means that when a hybrid MMS packet including at least two fragments or a RIF-only MMS packet is used for MMS ranging, a single MMS packet exchange between the initiator and the responder is sufficient to make the DS-TWR time measurement. In this case, no other MMS packets from the initiator (such as Fig.17 ) as shown in the final MMS packet in .

[0355] Fig.18 The initiator and the last responder (i.e. responder 8) are shown in Fig.17 A close-up view of a UWB MMS packet exchange in the 8th access slot of the UEFI 1000. In this example, the MMS packets may be mixed MMS packets or RIF-only MMS packets. In either case, as described above and as Fig.18 As shown, both fragments of the MMS packet include RMArkers that can be used for time measurement. For a mixed MMS packet including a single RIF, the first RMArker is the RSF-RMARKER in the first RSF of the MMS packet from the initiator to the responder, the second RMArker is the RSF-RMARKER in the first RSF of the MMS packet from the responder, and the third RMArker is the RIF-RMARKER in the first RIF of the MMS packet from the initiator to the responder. For a mixed MMS packet including more than one RIF, it is safer to use RIF-RMARKER for time measurement, so the RIF-RMARKER of the first two RIFs of the initiator's MMS packet is used as the first and third RMArker, and the RIF-MARKER of the first RIF of the responder's MMS packet is used as the second RMARKER. For a RIF-only MMS packet, the RIF-RMARKERs of the first two fragments of the initiator's MMS packet are used as the first and third RMARKERs, and the RIF-MARKER of the first fragment of the responder's MMS packet is used as the second RMARKER.

[0356] When a mixed MMS packet including at least two fragments or a RIF-only MMS packet is used for MMS ranging, DS-TWR only requires a single MMS packet exchange because each MMS packet includes at least two RMARKERs that can be used for time measurement. The initiator records the time of the relevant RMARKER and calculates the time required for each responder (round-trip time (Tround1_Rn), reply time (Treply2_Rn)) as described below. Each responder records the time of the relevant RMARKER and calculates the required time (reply time (Treply1_Rn), round-trip time (Tround2_Rn)) as described below. The fields in each measurement report (see Fig.14 ) is set as follows:

[0357] ■Measurement report of the initiator (for responder n):

[0358] o Round trip time (Tround1_Rn) = the time difference between the sending time of the RMARKER of the first fragment of the MMS packet from the initiator to the responder n and the receiving time of the RMARKER of the first fragment of the MMS packet from the responder n.

[0359] ○ Reply time (Treply2_Rn) = the time difference between the reception time of the RMARKER of the first fragment of the MMS packet of the responder n and the sending time of the RMARKER of the next fragment of the MMS packet carrying the RMARKER of the initiator.

[0360] ■Measurement report of responder (from responder n):

[0361] ○ Reply time (Treply1_Rn) = the time difference between the reception time of the RMARKER of the first fragment of the MMS packet from the initiator to the responder n and the transmission time of the RMARKER of the first fragment of the MMS packet from the responder n.

[0362] o Round trip time (Tround2_Rn) = the time difference between the sending time of the RMARKER of the first fragment of the MMS packet of the responder n and the receiving time of the RMARKER of the next fragment of the MMS packet carrying the RMARKER of the initiator.

[0363] As mentioned above, for mixed MMS packets that include more than one RIF, it is safer to use RIF-RMARKER for timing measurements. In this case, the field in each measurement report (see Fig.14 ) is set as follows:

[0364] ■Measurement report of the initiator (for responder n):

[0365] o Round trip time (Tround1_Rn) = the time difference between the sending time of the RMARKER of the first RIF of the MMS packet from the initiator to the responder n and the receiving time of the RMARKER of the first RIF of the MMS packet from the responder n.

[0366] ○ Reply time (Treply2_Rn) = the time difference between the reception time of the RMARRER of the first RIF of the MMS packet of the responder n and the transmission time of the RMARRER of the second RIF of the MMS packet of the initiator.

[0367] ■Measurement report of responder (from responder n):

[0368] ○ Reply time (Treply1_Rn) = the time difference between the reception time of the RMARRER of the first RIF of the MMS packet from the initiator to the responder n and the transmission time of the RMARRER of the first RIF of the MMS packet from the responder n.

[0369] o Round trip time (Tround2_Rn) = the time difference between the sending time of the RMARKER of the first RIF of the MMS packet of the responder n and the receiving time of the RMARKER of the second RIF of the MMS packet of the initiator.

[0370] When DS-TWR is requested, that is, when the DS-TWR bit in the ADV-RESP frame or the SOR frame is set to 1, both the round-trip time field and the reply time field are included in one or more measurement reports. Otherwise, the measurement report of the initiator only includes the round-trip time field, and the measurement report of the responder only includes the reply time field. Once a device (initiator or responder) receives a measurement report from the peer device, the device can calculate the DS-TWR TOF using equation 1 to estimate the distance of the peer device.

[0371] Next, the present disclosure describes a scenario where an MMS packet for MMS ranging includes a single segment with RMARKER (e.g., using an MMS packet with only RSF, or using an MMS packet with only RIF including a single segment). In this case, implementing DS-TWR may require additional MMS packets from the initiator. Fig.19 The initiator and the first two responders and the last responder (i.e. responder 8) are shown in ( Fig.17 A close-up view of an MMS packet exchange in the 8th access slot of the 1000M packet. In this example, the MMS packet is an RSF-only MMS packet. In this case, as described above and as Fig.19As shown, only the first fragment (RSF) of the MMS packet includes a RMAKER that can be used for time measurement. Three RMAKERs are required to perform DS-TWR time measurement. In this case, for all responders except the last responder, the first RMAKER is the RMAKER in the first fragment of the MMS packet of the initiator for the responder (i.e., the I-1 fragment at the beginning of the corresponding access timeslot) (e.g., the RSF-RMARKER in the first RSF or the first RIF-RMARKER in the first RIF). The second RMAKER is the RMAKER in the first fragment of the MMS packet of the responder for the initiator (i.e., the Rn-1 fragment), and the third RMAKER is the RMAKER in the first fragment of the MMS packet of the initiator for the next responder (i.e., the I-1 fragment at the beginning of the next access timeslot) (e.g., the RSF-RMARKER in the first RSF or the first RIF-RMARKER in the first RIF). This is in Fig.19 However, for the last responder, since the next responder does not exist, implementing DS-TWR time measurement requires other MMS packets (such as Fig.17 The final MMS packet in Fig.19 For the last responder, the first RMARRER is the RSF-RMARKER (in the first RSF) of the initiator's MMS packet for the last responder (i.e., the I-1 segment at the beginning of access slot 8), the second RMARRER is the RMARRER in the first segment of the last responder's MMS packet for the initiator (i.e., the R8-1 segment), and the third RMARRER is the RSF-RMARKER (in the first RSF) of the initiator's other MMS packets (i.e., the I-1 segment at the end of access slot 8). This is Fig.19 is shown in the right half of .

[0372] When an MMS packet used for MMS ranging includes a single segment with a RMARKER (for example, when an RSF-only MMS packet is used or an RIF-only MMS packet including a single segment is used), the RMARKER is determined as described above, the initiator records the time of the relevant RMARKER, and calculates the time required for each responder (round trip time (Tround1_Rn), reply time (Treply2_Rn)) as described below. Each responder records the time of the relevant RMARKER, and calculates the required time (reply time (Treply1_Rn), round trip time (Tround2_Rn)) as described below. Fields in each measurement report (see Fig.14 ) is set as follows:

[0373] ■Measurement report of the initiator (for responder n except the last responder):

[0374] o Round trip time (Tround1_Rn) = the time difference between the sending time of the RMARKER of the first fragment of the MMS packet from the initiator to the responder n and the receiving time of the RMARKER of the first fragment of the MMS packet from the responder n.

[0375] ○ Reply time (Treply2_Rn) = the time difference between the reception time of the RMARKER of the first fragment of the MMS packet of the responder n and the transmission time of the RMARKER of the first fragment of the MMS packet from the initiator to the next responder (n+1).

[0376] ■Responder measurement report (from responder n except the last responder):

[0377] ○ Reply time (Treply1_Rn) = the time difference between the reception time of the RMARKER of the first fragment of the MMS packet from the initiator to the responder n and the transmission time of the RMARKER of the first fragment of the MMS packet from the responder n.

[0378] o Round trip time (Tround2_Rn) = the time difference between the sending time of the RMARKER of the first fragment of the MMS packet of responder n and the receiving time of the RMARKER of the first fragment of the MMS packet from the initiator to the next responder (n+1).

[0379] ■ For the last responder, the initiator's other MMS packets are used as MMS packets to the next responder (n+1) to calculate the DS-TWR time measurement (ie, the reply time from the initiator to the last responder and the round trip time of the last responder).

[0380] In Example 1 above, each of the multiple responders sends an ADV-RESP frame to the initiator during the initialization and establishment phase. In one possible implementation, a responder may be predetermined or dynamically selected from multiple responders to participate in MMS ranging, and one responder sends an ADV-RESP frame to the initiator, and then the initiator sends a SOR frame to the responder, thereby improving the processing efficiency of the initialization and establishment phases and achieving a unified initialization and establishment process. When receiving an ADV-RESP frame from the responder, the initiator determines that only one responder sends an ADV-RESP frame, and then sends a SOR frame. In this way, conflicts between ADV-RESP frames or between ADV-RESP frames and SOR frames are prevented.

[0381] Regarding the manner of indicating the number N indicated by the ADV-RESP frame, in a possible implementation, the ADV-RESP frame may include a first indication and a second indication, the first indication being used to indicate the number N, the second indication being used to indicate the number of remaining ADV-RESP frames to be sent after the ADV-RESP frame, and the number of remaining ADV-RESP frames included in the i-th ADV-RESP frame is N–i, 1≤i≤N. The first indication may be the number of responders field in the ADV-RESP frame, and the second indication may be the remaining ADV-RESP field in the ADV-RESP frame. Specifically, the second indication is used to indicate that the number of remaining first frames is 0. This joint indication manner may be applicable to a scenario in which a responder sends a unique ADV-RESP frame to an initiator. On the one hand, the first indication may indicate the number of responders to participate in MMS ranging. On the other hand, the second indication may indicate that the number of remaining ADV-RESP frames is 0. Therefore, after receiving the ADV-RESP frame including the first indication and the second indication, the initiator may know that it is time to send a SOR frame.

[0382] In a possible implementation, the MMS packet of the initiator is skipped in access slots other than the first access slot and the last access slot in the MMS ranging, and the above communication method further includes: the initiator sends the final MMS packet in the last access slot in the MMS ranging. That is, the initiator does not send the MMS packet in each access slot in the measurement cycle, thereby reducing the ranging time.

[0383] In a possible implementation, when N is an even number, the communication method further includes: the initiator determines that the MMS packet used for MMS ranging is an MMS packet including a single segment with a ranging tag; after receiving the first segment of the MMS packet sent by the Nth responder, sending the final MMS packet in the last access slot in the MMS ranging. The MMS packet including the single segment with the ranging tag may be an MMS packet including only the RIF of the single segment, or an MMS packet including only the RSF. By reversing the order of MMS packet exchange in the last access slot, other MMS packets of the initiator may not be required, and DS-TWR can still be achieved.

[0384] Accordingly, it is necessary to modify the process of obtaining the first round trip time and the first reply time in the measurement report of the initiator and the second round trip time and the second reply time in the measurement report of the responder.

[0385] In a possible implementation, the initiator records the seventh sending time of the first ranging mark of the first segment of the first MMS packet of the initiator in the first access time slot, the fourth receiving time of the second ranging mark of the first segment of the second MMS packet from the Nth responder to the initiator, and the eighth sending time of the third ranging mark of the first segment of the third MMS packet of the initiator in the last access time slot; the first round trip time and the first reply time are calculated according to the seventh sending time, the fourth receiving time and the eighth sending time. In a possible implementation, the Nth responder records the twelfth receiving time of the first ranging mark of the first segment of the first MMS packet of the initiator in the first access time slot, the fourteenth sending time of the second ranging mark of the first segment of the second MMS packet from the Nth responder to the initiator, and the thirteenth receiving time of the third ranging mark of the first segment of the third MMS packet of the initiator in the last access time slot; the second round trip time and the second reply time are calculated according to the twelfth receiving time, the fourteenth sending time and the thirteenth receiving time. When the MMS packet used for MMS ranging is an MMS packet including a single segment with a ranging flag and N is an even number, DS-TWR may be implemented by reversing the order of the final MMS packet exchange in the last access slot.

[0386] The above mainly describes the implementation of a specific scenario that is different from Example 1. It should be noted that some similar processes of MMS ranging in Example 1 can also be applied to specific scenarios, which will not be described in detail here.

[0387] by Fig. 20 Another vehicle digital key application scenario shown (for example, a digital key for opening a garage door or front door) is Example 2, and there may be other scenarios, which are not limited here. Several NB-UWB modules can be installed in different locations (for example, the four corners of a garage) to serve as responders. One or more Bluetooth radio devices may also be installed. All these radio devices can also be interconnected by means of an internal wired network, etc., and can communicate with each other. There may be a central device that can control and coordinate all radio devices. One of the NB-UWB modules can also be used as a proxy responder. The responder used as a proxy responder can be statically selected based on the device capabilities and / or its location in the garage. Alternatively, the proxy responder can be dynamically selected based on the signal strength of the ADV-POLL frame received during the initialization and establishment phases. The responder that receives the ADV-POLL frame with the highest signal power can be used as a proxy responder.

[0388] UWB radio devices, NB radio devices, and Bluetooth radio devices can be directly installed in vehicles (e.g., cars), such as Figure 7As shown, one of the NB-UWB modules is used as the initiator. Alternatively, a compatible mobile device (e.g., a smartphone) that supports each of the UWB radio, NB radio, and Bluetooth radio and is carried by the car driver is used as the initiator of MMS ranging. The Bluetooth radio is used for initial discovery, connection establishment, and credential verification, while the NB radio and UWB radio are used for MMS ranging. Since NBA-UWB MMS ranging is designed for long-distance ranging, it is suitable for application scenarios that require ranging from a longer distance, for example, when the car is still 50 meters or more away, the ranging process can be initiated to open the garage door / gate. When the car is close to the garage / gate (e.g., 10 meters away), it can be verified (based on the digital key information and distance, etc.) that the car is an authorized vehicle, and appropriate actions can be taken, such as opening the garage door or front door, without the need for the car to slow down or stop and wait for the door / gate to open.

[0389] During the initialization and establishment phase of MMS ranging, the initiator sends advertising poll (ADV-POLL) frames from time to time and at intervals according to its own judgment, and one or more responders can listen to the incoming ADV-POLL frames. In this scenario, only the proxy responder uses ADV-RESP frames to respond to ADV-POLL frames, such as Fig.21 The ADV-RESP frame is used to indicate the number of responders to participate in MMS ranging. The number of responders can be determined based on the number of responders that received the ADV-POLL frame, etc. The ADV-RESP frame can also indicate that the number of remaining ADV-RESP frames to be sent after this frame is zero, because this is the only ADV-RESP frame.

[0390] When the initiator receives the ADV-RESP frame, the initiator can determine whether to request one-to-one or one-to-many MMS ranging based on the number of responders field. When the number of responders field is set to a value greater than 1, the initiator knows that a one-to-many MMS ranging is requested and there are more than one responders to participate in the MMS ranging. Since the ADV-RESP frame also indicates zero remaining ADV-RESP frames, the initiator sends a SOR frame indicating when the MMS ranging starts. In this way, conflicts between ADV-RESP frames or between ADV-RESP frames and SOR frames are prevented.

[0391] Fig. 22 An exemplary time domain message flow for a one-to-many UWB MMS ranging application with multiple coordinated responders and proxy responders applicable to DS-TWR is shown.

[0392] The message flow is similar to Fig. 9The message flow is similar to the one described above and will not be described here. Only the different aspects are described here. The module in the car (NB module in the car, or mobile device (e.g., smartphone)) acts as the controller and initiator, while the NB-UWB module in the garage acts as the controlled party and responder.

[0393] Once the session is established, the initiator will send ADV-POLL frames at intervals based on its own judgment, and one or more responders can listen to incoming ADV-POLL frames at their own discretion. If the responder intends to participate in the ranging session with the initiator, it will respond with an ADV-RESP frame. The Maximum Responders field in ADV-POLL specifies the maximum number of responders that the initiator can support for MMS ranging (for example, K ≥ 1). To indicate that the initiator supports one-to-many MMS ranging, the Maximum Responders field in ADV-POLL is set to a value greater than 1.

[0394] Upon receiving the ADV-POLL frame, the proxy responder may select N (N≤K) responders to participate in the MMS ranging, and send an ADV-RESP frame to request parameters for the MMS ranging. Fig.23 shows an ADV-RESP frame, with Fig.11 The different key fields are as follows:

[0395] Remaining ADV-RESPs: Always set to 0, indicating that this is the only ADV-RESP frame to be sent during the initialization and establishment phases.

[0396] Ranging Parameters: Carries MMS ranging-specific parameters, including:

[0397] ■RESP Absent In Control Phases: Set to 1, indicating that the RESP frame is skipped in the ranging control phase except the first access slot.

[0398] ■Number of Responders: Indicates the number of responders to participate in ranging.

[0399] Here, the ADV-RESP frame also requests the POLL frame to be skipped in the ranging control phase except for the first access slot, and also requests the DS-TWR time measurement and combined measurement report.

[0400] Upon receiving the ADV-RESP frame, the initiator sends a SOR frame indicating the status of the MMS ranging request; if the status is successful, it sends the time when the first measurement cycle of the MMS ranging will start, and the number of responders with which the initiator will perform ranging in multiple rounds of MMS ranging. The SOR frame also confirms the MMS ranging parameters requested by the responder.

[0401] At the time indicated by the time offset in the SOR frame, the initiator sends a POLL frame (eg Fig.16 The POLL frame indicates the start of one-to-many MMS ranging, and the initiator reconfirms the parameters requested by the responder and the initiator (in the ADV-RESP frame and the SOR frame, respectively), and may also include other control information of the responder.

[0402] When a POLL frame is received in the first access slot, the proxy responder sends a RESP frame back to the initiator. The POLL and RESP frames enable the initiator and the proxy responder to achieve time and frequency synchronization. Since all responders are connected to each other, this also allows other responders to achieve time and frequency synchronization with the initiator. In the ranging phase of the first access slot, the initiator and the proxy responder perform MMS ranging by exchanging MMS packets. Since the initiator and all responders have achieved synchronization in the first access slot through POLL frames and RESP frames, POLL frames and RESP frames (as well as the ranging control phase) are skipped in subsequent access slots. In the ranging phase of access slots other than the first access slot and the last access slot, the initiator's MMS packets are also skipped, and only the responder sends MMS packets, and the MMS fragments of the two responders are interleaved within a 1ms time period. The order and sequence of the responder's MMS fragments can be determined by the proxy responder or by the central controller. During the ranging phase of the last access slot, the initiator sends the final MMS packet when requesting DS-TWR. If there are an even number of responders, the last responder also sends its MMS packet in the last access slot, and the MMS fragments are interleaved with the initiator's MMS fragments, but if there are an odd number of responders, the last access slot consists only of the initiator's MMS packet, such as Fig. 22As shown. This means that the access time slots other than the first access time slot consist of only the ranging phase. When the ranging phase of all access time slots is completed, the time slots are allocated for the measurement reporting phase. In this phase, if a report is requested (i.e., the request responder report bit in the SOR frame and the POLL frame is set to 1), and a combined measurement report is indicated (i.e., the combined measurement report bit in the POLL frame is set to 1), the proxy responder (for example, through a home wired network) collects relevant measurement reports from all responders, generates a combined measurement report, and sends an RPRT frame carrying the combined measurement report in the first time slot of the measurement reporting phase. Similarly, when a report is requested from the initiator (i.e., the request initiator report bit is set to 1), the initiator collects relevant measurements of all responders, generates a combined measurement report, and sends an RPRT frame carrying the combined measurement report in the second time slot of the measurement reporting phase. From Fig. 22 It can be seen from FIG. 1 that one measurement cycle can be completed in 24 time slots (ie, 12 ms), which is much shorter than the time required for one measurement cycle in Example 1.

[0403] Next, the present disclosure describes how to make and report ranging measurements that implement DS-TWR (if the DS-TWR bit in the ADV-RESP frame or the SOR frame is set to 1). Fig.24 Shows Fig. 22 A close-up view of the UWB MMS packet exchange between the initiator and responder in FIG.

[0404] As described above, when there are an odd number of responders, the last access slot consists only of the initiator's MMS packets, so the last MMS packet always comes from the initiator. Here, regardless of the MMS packet type, the RMARKER of the first fragment of the initiator's last MMS packet is used as the third RMARKER for all DS-TWR time measurements. The initiator records the time of the relevant RMARKER and calculates the time required for each responder (round-trip time (Tround1_Rn), reply time (Treply2_Rn)) as described below. Each responder records the time of the relevant RMARKER and calculates the required time (reply time (Treply1_Rn), round-trip time (Tround2_Rn)) as described below. The fields in each measurement report (see Fig.14 ) is set as follows:

[0405] ■Measurement report of the initiator (for responder n):

[0406] ○ Round trip time (Tround1_Rn) = the time difference between the sending time of the RMARKER of the first fragment of the first MMS packet of the initiator (for example, the I-1 fragment at the beginning of access time slot 0) and the receiving time of the RMARKER of the first fragment of the MMS packet of responder n (for example, R7-1 of responder 7).

[0407] ○ Reply time (Treply2_Rn) = the time difference between the reception time of the RMARKER of the first fragment of the MMS packet of responder n (for example, R7-1 of responder 7) and the sending time of the RMARKER of the first fragment of the final MMS packet of the initiator (for example, the I-1 fragment at the beginning of access time slot 4).

[0408] ■Measurement report of responder (from responder n):

[0409] ○ Reply time (Treply1_Rn) = the time difference between the reception time of the RMARKER of the first fragment of the first MMS packet of the initiator (for example, the I-1 fragment at the beginning of access time slot 0) and the sending time of the RMARKER of the first fragment of the MMS packet of the responder n (for example, R7-1 of responder 7).

[0410] ○ Round trip time (Tround2_Rn) = the time difference between the sending time of the RMARKER of the first fragment of the MMS packet of responder n (for example, R7-1 of responder 7) and the receiving time of the RMARKER of the first fragment of the final MMS packet of the initiator (for example, the I-1 fragment at the beginning of access time slot 4).

[0411] When DS-TWR is requested (i.e., the DS-TWR bit is set to 1), both the round-trip time field and the reply time field are present in the measurement report field, otherwise the initiator's measurement report only includes the round-trip time, and the responder's measurement report only includes the reply time. Once a device (initiator or responder) receives a measurement report from the peer device, the device can calculate the DS-TWR TOF using equation 1 to estimate the distance of the peer device.

[0412] Next, the present disclosure describes how to make and report ranging measurements that implement DS-TWR when there is an even number of responders (if the DS-TWR bit in the ADV-RESP frame or the SOR frame is set to 1). Fig.25 shows the case for an even number of responders. Fig. 22Close-up view of the UWB MMS packet exchange between the initiator and responder in FIG. When there is an even number of responders, the last responder also sends its MMS packet in the last access slot, and its MMS fragments are interleaved with the initiator's MMS fragments. The order of the initiator's and responder's MMS packets is not important for mixed MMS packets including at least two fragments with RMARKER and RIF-only MMS packets, because both packet formats consist of at least two RMARKERs that can be used for time measurement. However, when MMS packets including a single fragment with RMARKER are used (e.g., RSF-only MMS packets or RIF-only MMS packets including a single fragment) and there is an even number of responders, since each MMS packet includes a single fragment with RMARKER, in this case, the initiator only needs to send its final MMS packet after receiving the first fragment of the MMS packet sent by the last responder. This means that in the last access slot, the final ranging fragment is sent by the initiator, that is, the fragment interleaving is reversed (responder sends first, initiator sends later). This enables DS-TWR measurement of the last responder regardless of the type of MMS packet. If the fragment interleaving is not reversed, then as described in Example 1 above, additional MMS packets from the initiator are required to achieve DS-TWR if RSF-only MMS packets are used. The time measurement is the same as for the odd number of responders case.

[0413] Example 2 mainly introduces that only one responder sends an ADV-RESP frame in the initialization and establishment phase, and a method for implementing DS-TWR without requesting the initiator to send other MMS packets. In the above Example 2, the joint indication method is implemented by the first indication (e.g., the number of responders field) and the second indication (e.g., the remaining ADV-RESP field), and there may be other joint indication methods as follows.

[0414] In one possible implementation, the ADV-RESP frame includes a first indication, which is used to indicate the number N. When N ≥ 2, the ADV-RESP frame also includes a third indication, which is used to indicate that the N responders are synchronized with each other. The first indication can be the number of responders field in the ADV-RESP frame, and the third indication can be the synchronous responder field in the ADV-RESP frame. In this case, one of the N responders sends an ADV-RESP frame with a valid third indication (for example, the synchronous responder field is set to 1) to the initiator. When receiving the ADV-RESP frame, the initiator will understand that this is the only ADV-RESP frame and will continue to send SOR frames.

[0415] In addition, there may be other scenarios in which DS-TWR is achieved without requesting the initiator to send other MMS packets. In one possible implementation, the ADV-RESP frame also includes a twelfth indication, which is used to request to reverse the segment interleaving in the last access slot in the MMS ranging; the above-mentioned communication method also includes: after receiving the first segment of the MMS packet sent by the Nth responder, the initiator sends the MMS packet in the last access slot. The twelfth indication can be the End With Initiator Packet field in the ADV-RESP frame. For example, if the End With Initiator Packet field is set to 1, it is requested to reverse the segment interleaving in the last access slot in the MMS ranging. By reversing the order of MMS packet exchange in the last access slot, other MMS packets from the initiator may not be required, and DS-TWR can still be achieved.

[0416] In one possible implementation, when the segment interleaving is not requested to be reversed in the last access slot in the MMS ranging in the ADV-RESP frame, the communication method further includes: the initiator determines that the MMS packet used for the MMS ranging is an MMS packet including a single segment with a ranging tag; the thirteenth indication in the SOR frame for requesting the segment interleaving to be reversed in the last access slot in the MMS ranging is set to be valid; after receiving the first segment of the MMS packet sent by the Nth responder, the MMS packet is sent in the last access slot. The thirteenth indication may be the End of Initiator Packet field in the SOR frame. The MMS packet including a single segment with a ranging tag may be an MMS packet including only the RIF of the single segment, or an MMS packet including only the RSF. In a scenario where the MMS packet used for the MMS ranging includes a single segment with a RMARKER, implementing DS-TWR may require reversing the segment interleaving in the last access slot in the MMS ranging. If segment interleaving reversal in the last access slot in MMS ranging is not requested in the ADV-RESP frame, for example, the End With Initiator Packet field in the ADV-RESP frame is set to 0, the End With Initiator Packet field in the SOR frame can be set to 1, so the implementation of DS-TWR may still require a request to reverse segment interleaving in the last access slot in MMS ranging.

[0417] For the last access time slot, in a possible implementation, the initiator records the third sending time of the first ranging mark of the first segment of the first MMS packet from the initiator to the (N–1)th responder, the second receiving time of the second ranging mark of the first segment of the second MMS packet from the Nth responder to the initiator, and the fourth sending time of the third ranging mark of the first segment of the third MMS packet from the initiator to the Nth responder; the first round trip time and the first reply time are calculated according to the third sending time, the second receiving time and the fourth sending time. In a possible implementation, the Nth responder records the eighth receiving time of the first ranging mark of the first segment of the first MMS packet from the initiator to the (N–1)th responder, the twelfth sending time of the second ranging mark of the first segment of the second MMS packet from the Nth responder to the initiator, and the ninth receiving time of the third ranging mark of the first segment of the third MMS packet from the initiator to the Nth responder; the second round trip time and the second reply time are calculated according to the eighth receiving time, the twelfth sending time and the ninth receiving time. When the MMS packet for MMS ranging is an MMS packet including a single segment with a ranging flag, the DS-TWR of the Nth responder (the last responder) may be achieved by inverting segment interleaving in the last access slot.

[0418] The above mainly describes the implementation of specific scenarios that are different from Example 1 and Example 2. It should be noted that some similar processes of MMS ranging in Example 1 and Example 2 can also be applied to specific scenarios, which will not be described in detail here.

[0419] by Fig.26 Another vehicle digital key application scenario shown is Example 3. The key difference here is that the NB radio device and the UWB radio device are not installed together in a single module. Multiple UWB radio devices are located in different locations in a vehicle (e.g., a car) and act as responders. There is also a single Bluetooth radio device and a single NB radio device. All radio devices are interconnected via wired links. The UWB radio device in the car acts as a responder. The initiator device (e.g., a smartphone) includes each of the UWB radio devices, NB radio devices, and Bluetooth radio devices. If there is no NB radio device, this is simplified to a one-to-many ranging scenario of UWB only, in which both control frames and ranging packets are transmitted using the UWB radio device.

[0420] Fig. 27 An exemplary time domain message flow for a one-to-many UWB MMS ranging application with multiple coordinated responders and proxy responders applicable to DS-TWR is shown. Fig. 9 and Fig. 22The message flow is similar to that described previously and is not repeated here. Only aspects specific to this scenario are described here. The initialization and establishment phases are the same as in Example 2, and since all responders share a single NB radio device, all NB control frames are transmitted by the same radio device. The main difference is in the ranging phase, which uses a time-efficient one-to-many ranging mode (i.e., the ranging mode field is set to 2). Compared to Example 1, in each access slot, the initiator's MMS packets are interleaved with the MMS packets of multiple (e.g., two) responders.

[0421] In this case, the time measurement to achieve DS-TWR is performed in the same way as explained in Example 1, except that when using RSF-only MMS packets, the responder can request the initiator (in the last access slot) to reverse the order of sending the last MMS packet, i.e., reverse the segment interleaving (responder first, initiator later), instead of having the initiator send other MMS packets. This enables the DS-TWR measurement of the last group of responders, regardless of the type of MMS packets. Fig. 27 It can be seen from FIG. 1 that one measurement cycle can be completed in 22 time slots (ie, 11 ms), which is even shorter than the time required for one measurement cycle in Example 2.

[0422] The responder can request the initiator to reverse the order of sending the last MMS packet by setting the End with Initiator Packet field in the ADV-RESP frame to 1, such as Fig.28 As shown. The Synchronous Responder field indicates that the N responders requested for one-to-many ranging (as shown in the Ranging Mode field) are synchronized with each other. When the initiator receives an ADV-RESP frame with the Synchronous Responder field set to 1, if the Remaining ADV-RESP field is not present in the ADV-RESP frame, the initiator will understand that this is the only ADV-RESP frame sent by any of the N responders and can continue to send SOR frames when receiving ADV-RESP frames.

[0423] Alternatively, when DS-TWR is requested and only RSF MMS packets are used for MMS ranging, the initiator may reverse the sending order of the last MMS packet at its discretion.

[0424] If hybrid MMS packets or RIF-only MMS packets are used, the fragments of the interleaved MMS packets of the initiator and responder are used for the time calculation of DS-TWR (same as Example 1). When hybrid MMS packets or RIF-only MMS packets are used for MMS ranging, DS-TWR only requires a single MMS packet exchange. The initiator records the time of the relevant RMARKER and calculates the time required for each responder (round-trip time (Tround1_Rn), reply time (Treply2_Rn)), as described in Example 1. Each responder records the time of the relevant RMARKER and calculates the required time (reply time (Treply1_Rn), round-trip time (Tround2_Rn)), as described in Example 1.

[0425] However, if an MMS packet including a single fragment with RMARKER is used (e.g., an RSF-only MMS packet or an RIF-only MMS packet including a single fragment), the first RMARKER in the first fragment of the previous MMS packet of the initiator and the first RMARKER in the first fragment of the next MMS packet of the initiator are used as the first RMARKER and the third RMARKER, respectively, and the first RMARKER in the first fragment of the MMS packet of the responder is used as the second RMARKER for all time calculations of DS-TWR. This is Fig.29 In this case, only the first fragment of the MMS packet includes a RMARRER that can be used to make a time measurement, while three RMARRERS are required to make a DS-TWR time measurement. For all responders except the last one, the first RMARRER is the RMARRER in the first fragment of the initiator's MMS packet for the responder, the second RMARRER is the RMARRER in the first fragment of the responder's MMS packet for the initiator, and the third RMARRER is the RMARRER in the first fragment of the initiator's MMS packet for the next group of responders. This is shown in Fig.29 However, for the last group of responders, since the sending order of the last MMS packet is reversed, the first RMARKER is the RMARKER in the first fragment of the initiator's MMS packet for the previous group of responders (for example, the I-1 fragment at the beginning of access slot 2), the second RMARKER is the RMARKER in the first fragment of the responder's MMS packet for the initiator (for example, the R7-1 or R8-1 fragment), and the third RMARKER is the RMARKER in the first fragment of the initiator's last MMS packet (for example, I-1 in access slot 3). This is shown in the left half of the RMARKER. Fig.29 is shown in the right half of .

[0426] When DS-TWR is requested (i.e., the DS-TWR bit in the applicable frame is set to 1), both the round-trip time field and the reply time field are included in one or more measurement reports. Otherwise, the initiator's measurement report only includes the round-trip time, and the responder's measurement report only includes the reply time. Once a device (initiator or responder) receives a measurement report from the peer device, the device can calculate the DS-TWR TOF using equation 1 to estimate the distance of the peer device.

[0427] This method of implementing the DS-TWR time measurement of the last responder by reversing the transmission order of the last MMS packet (i.e., reversing the segment interleaving (responder sends first, initiator sends later)) when using an MMS packet including a single segment with RMARKER (e.g., an MMS packet of only RSF or an MMS packet of only RIF including a single segment) is also applicable to the serial one-to-many ranging sequence described in Example 1. Reference Fig.19 In access slot 8 in , if responder 8 sends the first fragment of its own MMS packet before the first fragment of the last MMS packet of the initiator, then the final MMS packet of the initiator is not required for DS-TWR measurement. Instead, for DS-TWR time measurement, for the last responder, the first RMARKER is the RSF-RMARKER (in the first RSF) of the initiator's MMS packet for the previous responder (e.g., responder 7) or the last responder (e.g., responder 8) for the initiator's MMS packet, and the second RMARKER is the RSF-RMARKER (in the first RSF) of the initiator's last MMS packet.

[0428] Next, an embodiment of a product related to the above-mentioned communication method will be described.

[0429] Fig.30 is a block diagram of a communication device 3000 provided in one embodiment of the present disclosure. The communication device 3000 includes a unit for implementing the steps or processes in the above method embodiment on the initiator side. Fig.30 As shown, the device 3000 includes:

[0430] The first receiving unit 3002 is used to receive an advertising response (ADV-RESP) frame from a responder, wherein the ADV-RESP frame is used to indicate the number N of responders to participate in multi-millisecond (MMS) ranging, where N≥1;

[0431] The first sending unit 3004 is used to send a start of ranging (SOR) frame to the responder according to the ADV-RESP frame, wherein the SOR frame is used to provide a time offset for starting a first distance measurement cycle.

[0432] In a possible implementation manner, the ADV-RESP frame includes a first indication, where the first indication is used to indicate the number N.

[0433] In one possible implementation, the ADV-RESP frame includes a second indication, where the second indication is used to indicate the number of remaining ADV-RESP frames to be sent after the ADV-RESP frame, and the number of remaining ADV-RESP frames included in the i-th ADV-RESP frame is N–i, 1≤i≤N.

[0434] In a possible implementation manner, the number N is indicated by the number of the ADV-RESP frames received by the initiator.

[0435] In a possible implementation manner, N≥2, and the first receiving unit 3002 is specifically configured to: sequentially receive N ADV-RESP frames from N responders in a predetermined order, wherein the predetermined order is coordinated by the N responders.

[0436] In one possible implementation, the ADV-RESP frame includes a first indication and a second indication, wherein the first indication is used to indicate the number N, and the second indication is used to indicate the number of remaining ADV-RESP frames to be sent after the ADV-RESP frame, and the number of remaining ADV-RESP frames included in the i-th ADV-RESP frame is N–i, 1≤i≤N.

[0437] In a possible implementation manner, N≥2, and the ADV-RESP frame further includes a third indication, where the third indication is used to indicate that the N responders are synchronized with each other.

[0438] In a possible implementation manner, the first receiving unit 3002 is specifically configured to: receive an ADV-RESP frame from a responder, wherein the responder is predetermined or dynamically selected from the responders to participate in the MMS ranging.

[0439] In a possible implementation, the apparatus 3000 further includes: a second sending unit 3001, configured to send an advertising-poll (ADV-POLL) frame to the responder, wherein the ADV-POLL frame is used to indicate a maximum number K of responders supporting the MMS ranging, K≥1.

[0440] In a possible implementation manner, the first sending unit 3004 is specifically configured to: upon receiving the Nth ADV-RESP frame, send the SOR frame to the responder.

[0441] In a possible implementation, the first sending unit 3004 is specifically configured to: estimate the expected sending time of N ADV-RESP frames; and send the SOR frame to the responder when the expected sending time ends.

[0442] In a possible implementation manner, the first sending unit 3004 is specifically configured to: send the SOR frame to the one responding party.

[0443] In one possible implementation, the apparatus 3000 further includes a unit configured to: determine the number M of responders for MMS ranging according to the number of received ADV-RESP frames, where M≤N; and send the SOR frame including a fourth indication, where the fourth indication is used to indicate the number M.

[0444] In a possible implementation manner, the ADV-RESP frame further includes a fifth indication, where the fifth indication is used to indicate that the POLL frame does not exist in a ranging control phase other than the first access timeslot in the MMS ranging.

[0445] In a possible implementation manner, the ADV-RESP frame further includes a sixth indication, where the sixth indication is used to indicate that the RESP frame does not exist in the ranging control phase except the first access timeslot.

[0446] In a possible implementation, the ADV-RESP frame further includes a seventh indication, where the seventh indication is used to indicate a request for the initiator to send a measurement report; and the apparatus 3000 further includes a third sending unit 3006 for sending a report frame.

[0447] In one possible implementation, N≥2, the ADV-RESP frame also includes an eighth indication, and the eighth indication is used to request a combined measurement report; the device also includes a generation unit, and the generation unit is used to generate the combined measurement report based on the measurements of N responders; the third sending unit 3006 is specifically used to send the report frame carrying the combined measurement report.

[0448] In one possible implementation, the ADV-RESP frame also includes a ninth indication, which is used to request a double-sided two-way ranging (DS-TWR) measurement in the measurement report, and the seventh indication is included in the ADV-RESP frame and is used to indicate a request for the initiator to send a measurement report; the device also includes a unit, which is used to send the measurement report including a first round-trip time and a first reply time.

[0449] In a possible implementation manner, the ADV-RESP frame further includes a tenth indication, and the tenth indication is used to request the initiator to send other MMS packets; and the method device further includes a unit for sending the other MMS packets.

[0450] In one possible implementation, no other MMS packets are requested in the ADV-RESP frame; the device also includes a unit, which is used to: determine that the MMS packet used for the MMS ranging is an MMS packet including a single fragment with a ranging tag; set the eleventh indication used to request the initiator to send the other MMS packets in the SOR frame to be valid; and send the other MMS packets.

[0451] In a possible implementation, the device also includes a unit, which is used to: record a first sending time of a first ranging mark of a first fragment of a first MMS packet from the initiator to the Nth responder, a first receiving time of a second ranging mark of a first fragment of a second MMS packet from the Nth responder to the initiator, and a second sending time of a third ranging mark of the first fragment of the other MMS packets; and calculate the first round-trip time and the first reply time based on the first sending time, the first receiving time, and the second sending time.

[0452] In one possible implementation, the ADV-RESP frame also includes a twelfth indication, which is used to request to reverse segment interleaving in the last access time slot in the MMS ranging; the device also includes a unit, which is used to send an MMS packet in the last access time slot after receiving the first segment of the MMS packet sent by the Nth responder.

[0453] In a possible implementation, it is not requested to reverse the segment interleaving in the last access slot of the MMS ranging in the ADV-RESP frame; the device further includes a unit configured to: determine that the MMS packet for the MMS ranging is an MMS packet including a single segment with a ranging tag; set the thirteenth indication for requesting to reverse the segment interleaving in the last access slot of the MMS ranging in the SOR frame to be valid; and send the MMS packet in the last access slot after receiving the first segment of the MMS packet sent by the Nth responder.

[0454] In a possible implementation, the device further includes a unit configured to: record the third transmission time of the first ranging tag of the first segment of the first MMS packet from the initiator to the (N–1)th responder, the second reception time of the second ranging tag of the first segment of the second MMS packet from the Nth responder to the initiator, and the fourth transmission time of the third ranging tag of the first segment of the third MMS packet from the initiator to the Nth responder; and calculate the first round-trip time and the first reply time based on the third transmission time, the second reception time, and the fourth transmission time.

[0455] In a possible implementation, the device further includes a unit configured to: record the fifth transmission time of the first ranging tag of the first segment of the first MMS packet from the initiator to the mth responder, the third reception time of the second ranging tag of the first segment of the second MMS packet from the mth responder to the initiator, and the sixth transmission time of the third ranging tag of the first segment of the third MMS packet from the initiator to the (m + 1)th responder, where 1 ≤ m < N; and calculate the first round-trip time and the first reply time based on the fifth transmission time, the third reception time, and the sixth transmission time.

[0456] In a possible implementation, the MMS packet of the initiator is skipped in the access slots other than the first access slot and the last access slot in the MMS ranging, and the device further includes a unit configured to send the final MMS packet in the last access slot of the MMS ranging.

[0457] In a possible implementation, N is an even number; the device further includes a unit configured to: determine that the MMS packet for the MMS ranging is an MMS packet including a single segment with a ranging tag; and send the final MMS packet in the last access slot of the MMS ranging after receiving the first segment of the MMS packet sent by the Nth responder.

[0458] In a possible implementation, the device also includes a unit, which is used to: record the seventh sending time of the first ranging mark of the first fragment of the first MMS packet of the initiator in the first access time slot, the fourth receiving time of the second ranging mark of the first fragment of the second MMS packet from the Nth responder to the initiator, and the eighth sending time of the third ranging mark of the first fragment of the third MMS packet of the initiator in the last access time slot; calculate the first round-trip time and the first reply time according to the seventh sending time, the fourth receiving time and the eighth sending time.

[0459] In a possible implementation, the device also includes a unit, which is used to: determine that the MMS packet used for the MMS ranging is an MMS packet including at least two fragments with ranging tags; record the ninth sending time of the first ranging tag of the first fragment of the first MMS packet from the initiator to the nth responder, the fifth receiving time of the second ranging tag of the first fragment of the second MMS packet from the nth responder to the initiator, and the tenth sending time of the third ranging tag of the second fragment of the first MMS packet carrying the ranging tag, where 1≤n≤N; calculate the first round-trip time and the first reply time based on the ninth sending time, the fifth receiving time and the tenth sending time.

[0460] Fig.31 FIG. 3 is a block diagram of a communication device 3100 provided by another embodiment of the present disclosure. The communication device 3100 includes a module for implementing the steps or processes of the above method embodiment from the initiator side. Fig.31 As shown, the device 3100 includes:

[0461] The fourth sending unit 3102 is used to send an advertising response (ADV-RESP) frame to the initiator, wherein the ADV-RESP frame is used to indicate the number N of responders to participate in multi-millisecond (MMS) ranging, N≥1;

[0462] The second receiving unit 3104 is used to receive a start of ranging (SOR) frame from the initiator, wherein the SOR frame is used to provide a time offset for the start of a first distance measurement cycle.

[0463] In a possible implementation manner, the ADV-RESP frame includes a first indication, where the first indication is used to indicate the number N.

[0464] In one possible implementation, the ADV-RESP frame includes a second indication, where the second indication is used to indicate the number of remaining ADV-RESP frames to be sent after the ADV-RESP frame, and the number of remaining ADV-RESP frames included in the i-th ADV-RESP frame is N–i, 1≤i≤N.

[0465] In a possible implementation manner, the number N is indicated by the number of the ADV-RESP frames sent by the responder.

[0466] In a possible implementation, N≥2, the device further includes a coordination unit, the coordination unit is used to coordinate the predetermined order of sending N ADV-RESP frames; the ADV-RESP sending unit is specifically used to send N ADV-RESP frames to the initiator in sequence according to the predetermined order.

[0467] In one possible implementation, the ADV-RESP frame includes a first indication and a second indication, wherein the first indication is used to indicate the number N, and the second indication is used to indicate the number of remaining ADV-RESP frames to be sent after the ADV-RESP frame, and the number of remaining ADV-RESP frames included in the i-th ADV-RESP frame is N–i, 1≤i≤N.

[0468] In a possible implementation manner, N≥2, and the ADV-RESP frame further includes a third indication, where the third indication is used to indicate that the N responders are synchronized with each other.

[0469] In a possible implementation, the ADV-RESP sending unit is specifically configured to send an ADV-RESP frame to the initiator, wherein the ADV-RESP frame is sent by the responder, and the responder is predetermined or dynamically selected from the responders to participate in the MMS ranging.

[0470] In a possible implementation, the device 3100 also includes a third receiving unit 3101, and the third receiving unit 3101 is used to receive an advertising-poll (ADV-POLL) frame from the initiator, wherein the ADV-POLL frame is used to indicate the maximum number of responders K supporting the MMS ranging, K≥1.

[0471] In a possible implementation manner, the second receiving unit 3104 is specifically configured to receive the SOR frame including a fourth indication, wherein the fourth indication is used to indicate the number M of responders used for MMS ranging, where M≤N.

[0472] In a possible implementation manner, the ADV-RESP frame further includes a fifth indication, where the fifth indication is used to indicate that the POLL frame does not exist in a ranging control phase other than the first access timeslot in the MMS ranging.

[0473] In a possible implementation manner, the ADV-RESP frame further includes a sixth indication, where the sixth indication is used to indicate that the RESP frame does not exist in the ranging control phase except the first access timeslot.

[0474] In a possible implementation, the ADV-RESP frame further includes a fourteenth indication, where the fourteenth indication is used to indicate a request for the responder to send a measurement report, and the apparatus 3100 further includes a fifth sending unit 3106 for sending a report frame.

[0475] In one possible implementation, the ADV-RESP frame also includes an eighth indication, and the eighth indication is used to request a combined measurement report; the device also includes: a collection unit, used to collect measurement reports of N responders; a generation unit, used to generate the combined measurement report based on the measurement reports of the N responders; and the fifth sending unit 3106 is specifically used to send the report frame carrying the combined measurement report.

[0476] In one possible implementation, the ADV-RESP frame also includes a ninth indication, which is used to request a double-sided two-way ranging (DS-TWR) measurement in a measurement report, and a fourteenth indication is included in the ADV-RESP frame and is used to indicate a request for the responder to send a measurement report; the device also includes a unit, which is used to send the measurement report including a second round-trip time and a second reply time field.

[0477] In a possible implementation manner, the ADV-RESP frame further includes a tenth indication, and the tenth indication is used to request the initiator to send other MMS packets; the apparatus further includes a unit, and the unit is used to receive the other MMS packets from the initiator.

[0478] In a possible implementation, other MMS packets are not requested in the ADV-RESP frame, and when the MMS packet used for the MMS ranging is an MMS packet including a single segment with a ranging tag, the eleventh indication for requesting the initiator to send other MMS packets in the SOR frame is set to valid.

[0479] In a possible implementation, the device also includes a unit, which is used to: record the sixth reception time of the first ranging mark of the first fragment of the first MMS packet from the initiator to the Nth responder, the eleventh sending time of the second ranging mark of the first fragment of the second MMS packet from the Nth responder to the initiator, and the seventh reception time of the third ranging mark of the first fragment of the other MMS packets; calculate the second round-trip time and the second reply time based on the sixth reception time, the eleventh sending time and the seventh reception time.

[0480] In one possible implementation, the ADV-RESP frame also includes a twelfth indication, which is used to request to reverse segment interleaving in the last access time slot in the MMS ranging; the device also includes a unit, which is used to: send a first segment of an MMS packet to the initiator; and receive an MMS packet from the initiator in the last access time slot in the MMS ranging.

[0481] In one possible implementation, in the ADV-RESP frame, no request is made to reverse segment interleaving in the last access slot in the MMS ranging; when the MMS packet used for the MMS ranging is an MMS packet including a single segment with a ranging tag, the thirteenth indication in the SOR frame for requesting to reverse segment interleaving in the last access slot in the MMS ranging is set to valid; the device also includes a unit, which is used to: send a first segment of the MMS packet to the initiator; and receive an MMS packet from the initiator in the last access slot in the MMS ranging.

[0482] In a possible implementation, the device also includes a unit, which is used to: record the eighth reception time of the first ranging mark of the first fragment of the first MMS packet from the initiator to the (N-1)th responder, the twelfth sending time of the second ranging mark of the first fragment of the second MMS packet from the Nth responder to the initiator, and the ninth reception time of the third ranging mark of the first fragment of the third MMS packet from the initiator to the Nth responder; and calculate the second round-trip time and the second reply time based on the eighth reception time, the twelfth sending time and the ninth reception time.

[0483] In a possible implementation, the device further includes a unit configured to: record a tenth reception time of a first ranging tag of a first segment of a first MMS packet from the initiator to the m-th responder, a thirteenth transmission time of a second ranging tag of a first segment of a second MMS packet from the m-th responder to the initiator, and an eleventh reception time of a third ranging tag of a first segment of a third MMS packet from the initiator to the (m + 1)-th responder, where 1 ≤ m < N; calculate the second round-trip time and the second reply time according to the tenth reception time, the thirteenth transmission time, and the eleventh reception time.

[0484] In a possible implementation, the MMS packet of the initiator skips in access slots other than the first access slot and the last access slot in the MMS ranging, and the device further includes a unit configured to receive a final MMS packet in the last access slot in the MMS ranging.

[0485] In a possible implementation, N is an even number, and the MMS packet for the MMS ranging is an MMS packet including a single segment with a ranging tag; the device further includes a unit configured to: send a first segment of the MMS packet to the initiator; receive the final MMS packet from the initiator in the last access slot in the MMS ranging.

[0486] In a possible implementation, the device further includes a unit configured to: record a twelfth reception time of a first ranging tag of a first segment of a first MMS packet of the initiator in the first access slot, a fourteenth transmission time of a second ranging tag of a first segment of a second MMS packet from the N-th responder to the initiator, and a thirteenth reception time of a third ranging tag of a first segment of a third MMS packet of the initiator in the last access slot; calculate the second round-trip time and the second reply time according to the twelfth reception time, the fourteenth transmission time, and the thirteenth reception time.

[0487] In a possible implementation, the MMS packet used for the MMS ranging is an MMS packet including at least two fragments with ranging tags; the device also includes a unit, which is used to: record the fourteenth reception time of the first ranging tag of the first fragment of the first MMS packet from the initiator to the nth responder, the fifteenth sending time of the second ranging tag of the first fragment of the second MMS packet from the nth responder to the initiator, and the fifteenth reception time of the third ranging tag of the second fragment of the first MMS packet carrying the ranging tag, where 1≤n≤N; calculate the second round-trip time and the second reply time based on the fourteenth reception time, the fifteenth sending time and the fifteenth reception time.

[0488] Those skilled in the art should understand that, in combination with the relevant description of the communication method in the embodiment of the present disclosure, the relevant description of the above-mentioned units in the embodiment of the present disclosure can be understood. It should be noted that the units involved in the embodiment of the present disclosure can be implemented by software or hardware. The name of the unit does not constitute a restriction on the unit itself. For example, the first sending unit 3004, the second sending unit 3001, the third sending unit 3006, the fourth sending unit 3102 and the fifth sending unit 3106 can be implemented as the same transmitter. For another example, the first receiving unit 3002, the second receiving unit 3104 and the third receiving unit 3101 can be implemented as the same receiver. In addition, the functions of the transmitter and the receiver can be implemented by a transceiver. In addition, the functions implemented by multiple units can be implemented by one unit, which can be designed according to actual needs.

[0489] The present disclosure also provides an electronic device, such as Fig.32 As shown. The electronic device 3200 may include a memory 3201 and a processor 3202, wherein the computer program is stored in the memory 3201 and is used to be executed by the processor 3202 to implement the corresponding steps described in the above method embodiment. The relevant description of each step can be understood in conjunction with the relevant description of the communication method in the embodiment of the present disclosure. In addition, the electronic device 3200 may also include a communication interface 3203 for communicating with other devices. The computer program (also referred to as a program, software, software application or code) includes machine instructions for a programmable processor and can be implemented by high-level process and parallel (subtended) programming languages ​​or assembly / machine languages.

[0490] The present disclosure also provides a communication system, which includes a device for executing a communication method on an initiator side and a device for executing a communication method on a responder side.

[0491] The present disclosure also provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the above-mentioned communication method is implemented.

[0492] The present disclosure also provides a computer program product including computer-executable instructions, wherein when the computer-executable instructions are executed by a processor, the above communication method is implemented.

[0493] As an example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, flash memory or any other medium that can be used to store the required program code in the form of instructions or data structures and can be accessed by a computer. In addition, any connection can also be appropriately defined as a computer-readable medium. For example, if the instructions are transmitted from a website, server or other remote source via a coaxial cable, optical fiber cable, twisted pair and digital subscriber line (DSL) or wireless technologies such as infrared, radio and microwave, then the coaxial cable, optical fiber cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave are also included in the definition of the above medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carriers, signals or other transient media, but rather involve non-temporary tangible storage media. Disks and optical disks used herein include compact discs (CD), laser discs, optical discs, digital versatile discs (DVD), floppy disks and Blu-ray discs, wherein disks usually reproduce data magnetically, while optical discs reproduce data optically using lasers. Combinations of the above should also be included within the scope of computer-readable media.

[0494] Instructions can be executed by one or more processors such as one or more digital signal processors (DSP), one or more general-purpose microprocessors, one or more application specific integrated circuits (ASIC), one or more field programmable logic arrays (FPGA) or other equivalent integrated or discrete logic circuits. Therefore, the term "processor" used in this article can refer to any of the above structures or any other structure suitable for implementing the technology described in this article. In addition, in some aspects, the various functions described herein can be provided in dedicated hardware and / or software modules for encoding and decoding, or incorporated into a combined codec. In addition, these technologies can be fully implemented in one or more circuits or logic elements.

[0495] The techniques in the present disclosure may be implemented in a variety of devices or apparatuses, including wireless handsets, integrated circuits (ICs), or a set of ICs (e.g., chipsets). The present disclosure describes various components, modules, or units to emphasize the functional aspects of the devices used to perform the disclosed techniques, but these components, modules, or units do not necessarily need to be implemented by different hardware units. Instead, as described above, the various units may be combined in a codec hardware unit in conjunction with appropriate software and / or firmware, or provided by a collection of interoperable hardware units including one or more processors as described above.

Claims

1. A communication method, comprising: The initiator receives an announcement response ADV-RESP frame from the responder, wherein the ADV-RESP frame is used to indicate the number N of responders to participate in multi-millisecond MMS ranging, where N≥1; The initiator sends a start ranging SOR frame to the responder according to the ADV-RESP frame, wherein the SOR frame is used to provide a time offset for starting a first distance measurement cycle.

2. The method according to claim 1, wherein: The ADV-RESP frame includes a first indication, where the first indication is used to indicate the number N.

3. The method according to claim 1, wherein: The ADV-RESP frame includes a second indication for indicating the number of remaining ADV-RESP frames to be sent after the ADV-RESP frame, the number of remaining ADV-RESP frames included in the i-th ADV-RESP frame is N-i, 1≤i≤N.

4. The method according to claim 1, wherein: The number N is indicated by the number of the ADV-RESP frames received by the initiator.

5. The method according to any one of claims 1 to 4, wherein: N≥2, the initiator receiving the ADV-RESP frame from the responder includes: The initiator receives N ADV-RESP frames from N responders in sequence according to a predetermined order, wherein the predetermined order is coordinated by the N responders.

6. The method according to claim 1, wherein: The ADV-RESP frame includes a first indication and a second indication, the first indication is used to indicate the number N, and the second indication is used to indicate the number of remaining ADV-RESP frames to be sent after the ADV-RESP frame, the number of remaining ADV-RESP frames included in the i-th ADV-RESP frame is N-i, 1≤i≤N.

7. The method according to claim 2, wherein: N≥2, the ADV-RESP frame further includes a third indication, where the third indication is used to indicate that the N responders are synchronized with each other.

8. The method according to claim 6 or 7, wherein: The initiator receiving the ADV-RESP frame from the responder includes: The initiator receives an ADV-RESP frame from a responder, wherein the responder is predetermined or dynamically selected from the responders to participate in the MMS ranging.

9. The method according to any one of claims 1 to 8, wherein: Before the initiator receives the ADV-RESP frame from the responder, the method further includes: The initiator sends an announcement polling ADV-POLL frame to the responder, wherein the ADV-POLL frame is used to indicate a maximum number K of responders supporting the MMS ranging, where K≥1.

10. The method according to any one of claims 1 to 5, wherein: The initiator sending the SOR frame to the responder includes: When receiving the Nth ADV-RESP frame, the initiator sends the SOR frame to the responder.

11. The method according to any one of claims 1 to 5, wherein: The initiator sending the SOR frame to the responder includes: Estimate the expected sending time of N ADV-RESP frames; The initiator sends the SOR frame to the responder when the estimated sending time ends.

12. The method according to any one of claims 1 to 11, wherein: Before the initiator sends the SOR frame to the responder, the method further includes: The initiator determines the number M of responders for MMS ranging according to the number of received ADV-RESP frames, where M≤N; The initiator sends the SOR frame including a fourth indication, wherein the fourth indication is used to indicate the number M.

13. The method according to any one of claims 1 to 12, wherein: The ADV-RESP frame further includes a fifth indication, and the fifth indication is used to indicate that the POLL frame does not exist in the ranging control phase other than the first access time slot in the MMS ranging.

14. The method according to claim 13, wherein: The ADV-RESP frame further includes a sixth indication, and the sixth indication is used to indicate that the RESP frame does not exist in the ranging control phase except the first access time slot.

15. The method according to any one of claims 1 to 14, wherein: The ADV-RESP frame further includes a seventh indication, where the seventh indication is used to indicate a request for the initiator to send a measurement report; and the method further includes: The initiator sends a report frame.

16. The method according to claim 15, wherein: N≥2, the ADV-RESP frame further includes an eighth indication, and the eighth indication is used to request a combined measurement report; the method further includes: The initiator generates the combined measurement report according to the measurements of the N responders; The initiator sending the report frame includes: The initiator sends the report frame carrying the combined measurement report.

17. The method according to any one of claims 1 to 16, wherein: The ADV-RESP frame further includes a ninth indication, the ninth indication is used to request a bilateral two-way ranging (DS-TWR) measurement in a measurement report, the seventh indication is included in the ADV-RESP frame and is used to indicate a request for the initiator to send a measurement report; the method further includes: The initiator sends the measurement report including a first round trip time and a first reply time.

18. The method according to claim 17, wherein: The ADV-RESP frame further includes a tenth indication, and the tenth indication is used to request the initiator to send other MMS packets; the method further includes: The initiator sends the other MMS packets.

19. The method according to claim 17, wherein: No other MMS packets are requested in the ADV-RESP frame; the method further comprising: The initiator determines that the MMS packet used for the MMS ranging is an MMS packet including a single segment with a ranging tag; The initiator sets the eleventh indication for requesting the initiator to send other MMS packets in the SOR frame to be valid; The initiator sends the other MMS packets.

20. The method according to claim 18 or 19, further comprising: The initiator records a first sending time of a first ranging mark of a first segment of a first MMS packet from the initiator to the Nth responder, a first receiving time of a second ranging mark of a first segment of a second MMS packet from the Nth responder to the initiator, and a second sending time of a third ranging mark of a first segment of the other MMS packets; The initiator calculates the first round-trip time and the first reply time according to the first sending time, the first receiving time, and the second sending time.

21. The method according to claim 17, wherein: The ADV-RESP frame further includes a twelfth indication, wherein the twelfth indication is used to request to reverse segment interleaving in the last access slot in the MMS ranging; and the method further includes: After receiving the first fragment of the MMS packet sent by the Nth responder, the initiator sends the MMS packet in the last access time slot.

22. The method according to claim 17, wherein: not requesting in the ADV-RESP frame to reverse segment interleaving in the last access slot in the MMS ranging; the method further comprising: The initiator determines that the MMS packet used for the MMS ranging is an MMS packet including a single segment with a ranging tag; The initiator sets the thirteenth indication in the SOR frame for requesting to reverse segment interleaving in the last access slot in the MMS ranging to be valid; After receiving the first fragment of the MMS packet sent by the Nth responder, the initiator sends the MMS packet in the last access time slot.

23. The method according to claim 21 or 22, further comprising: The initiator records a third sending time of a first ranging mark of a first segment of a first MMS packet from the initiator to the (N-1)th responder, a second receiving time of a second ranging mark of a first segment of a second MMS packet from the Nth responder to the initiator, and a fourth sending time of a third ranging mark of a first segment of a third MMS packet from the initiator to the Nth responder; The initiator calculates the first round-trip time and the first reply time according to the third sending time, the second receiving time, and the fourth sending time.

24. The method according to any one of claims 17 to 23, further comprising: The initiator records the fifth sending time of the first ranging mark of the first segment of the first MMS packet from the initiator to the mth responder, the third receiving time of the second ranging mark of the first segment of the second MMS packet from the mth responder to the initiator, and the sixth sending time of the third ranging mark of the first segment of the third MMS packet from the initiator to the (m+1)th responder, wherein 1≤m <N; The initiator calculates the first round-trip time and the first reply time according to the fifth sending time, the third receiving time, and the sixth sending time.

25. The method of claim 17, wherein: The MMS packet of the initiator is skipped in access time slots other than the first access time slot and the last access time slot in the MMS ranging, and the method further comprises: The initiator sends a final MMS packet in a last access slot in the MMS ranging.

26. The method according to claim 25, wherein: N is an even number, and the method further comprises: The initiator determines that the MMS packet used for the MMS ranging is an MMS packet including a single segment with a ranging tag; After receiving the first fragment of the MMS packet sent by the Nth responder, the initiator sends the final MMS packet in the last access slot in the MMS ranging.

27. The method according to claim 26, further comprising: The initiator records the seventh sending time of the first ranging mark of the first fragment of the first MMS packet of the initiator in the first access time slot, the fourth receiving time of the second ranging mark of the first fragment of the second MMS packet from the Nth responder to the initiator, and the eighth sending time of the third ranging mark of the first fragment of the third MMS packet of the initiator in the last access time slot; The initiator calculates the first round-trip time and the first reply time according to the seventh sending time, the fourth receiving time, and the eighth sending time.

28. The method of claim 17, further comprising: The initiator determines that the MMS packet used for the MMS ranging is an MMS packet including at least two segments with ranging tags; The initiator records the ninth sending time of the first ranging mark of the first segment of the first MMS packet from the initiator to the nth responder, the fifth receiving time of the second ranging mark of the first segment of the second MMS packet from the nth responder to the initiator, and the tenth sending time of the third ranging mark of the second segment of the first MMS packet carrying the ranging mark, wherein 1≤n≤N; The initiator calculates the first round-trip time and the first reply time according to the ninth sending time, the fifth receiving time and the tenth sending time.

29. A communication method, comprising: The responder sends an announcement response ADV-RESP frame to the initiator, wherein the ADV-RESP frame is used to indicate the number N of responders to participate in multi-millisecond MMS ranging, where N≥1; The responder receives a start of ranging (SOR) frame from the initiator, wherein the SOR frame is used to provide a time offset at which a first distance measurement cycle is to start.

30. The method of claim 29, wherein: The ADV-RESP frame includes a first indication, where the first indication is used to indicate the number N.

31. The method of claim 29, wherein: The ADV-RESP frame includes a second indication for indicating the number of remaining ADV-RESP frames to be sent after the ADV-RESP frame, the number of remaining ADV-RESP frames included in the i-th ADV-RESP frame is N-i, 1≤i≤N.

32. The method of claim 29, wherein: The number N is indicated by the number of the ADV-RESP frames sent by the responder.

33. The method according to any one of claims 29 to 32, wherein: N≥2, the method further comprises: N responders coordinate a predetermined order for sending N ADV-RESP frames; The responding party sending the ADV-RESP frame to the initiating party includes: The N responders send N ADV-RESP frames to the initiator in sequence according to the predetermined order.

34. The method of claim 29, wherein: The ADV-RESP frame includes a first indication and a second indication, the first indication is used to indicate the number N, and the second indication is used to indicate the number of remaining ADV-RESP frames to be sent after the ADV-RESP frame, the number of remaining ADV-RESP frames included in the i-th ADV-RESP frame is N-i, 1≤i≤N.

35. The method of claim 30, wherein: N≥2, the ADV-RESP frame further includes a third indication, where the third indication is used to indicate that the N responders are synchronized with each other.

36. The method according to claim 34 or 35, wherein: The responding party sending the ADV-RESP frame to the initiating party includes: A responder sends an ADV-RESP frame to the initiator, wherein the responder is predetermined or dynamically selected from the responders to participate in the MMS ranging.

37. A method according to any one of claims 29 to 36, wherein: Before the responder sends the ADV-RESP frame to the initiator, the method further includes: The responder receives an announcement polling ADV-POLL frame from the initiator, wherein the ADV-POLL frame is used to indicate a maximum number K of responders supporting the MMS ranging, where K≥1.

38. A method according to any one of claims 29 to 37, wherein: The responder then receives the SOR frame from the initiator, comprising: The responder receives the SOR frame including a fourth indication, wherein the fourth indication is used to indicate the number M of responders used for MMS ranging, M≤N.

39. The method according to any one of claims 29 to 38, wherein: The ADV-RESP frame further includes a fifth indication, and the fifth indication is used to indicate that the POLL frame does not exist in the ranging control phase other than the first access time slot in the MMS ranging.

40. The method of claim 39, wherein: The ADV-RESP frame further includes a sixth indication, and the sixth indication is used to indicate that the RESP frame does not exist in the ranging control phase except the first access time slot.

41. The method according to any one of claims 29 to 40, wherein: The ADV-RESP frame further includes a fourteenth indication, where the fourteenth indication is used to indicate a request for the responder to send a measurement report; and the method further includes: The responder sends a report frame.

42. The method according to claim 41, wherein: N≥2, the ADV-RESP frame further includes an eighth indication, and the eighth indication is used to request a combined measurement report; the method further includes: The responder collects measurement reports of N responders; The responder generates the combined measurement report according to the measurement reports of the N responders; The responder sending the report frame includes: The responder sends the report frame carrying the combined measurement report.

43. A method according to any one of claims 29 to 42, wherein: The ADV-RESP frame further includes a ninth indication, the ninth indication is used to request a bilateral two-way ranging (DS-TWR) measurement in a measurement report, a fourteenth indication is included in the ADV-RESP frame and is used to indicate a request for the responder to send a measurement report; the method further includes: The responder sends the measurement report including second round trip time and second reply time fields.

44. The method of claim 43, wherein: The ADV-RESP frame further includes a tenth indication, and the tenth indication is used to request the initiator to send other MMS packets; the method further includes: The responder receives the other MMS packets from the initiator.

45. The method of claim 43, wherein: No other MMS packets are requested in the ADV-RESP frame, and when the MMS packet used for the MMS ranging is an MMS packet including a single segment with a ranging tag, the eleventh indication in the SOR frame for requesting the initiator to send other MMS packets is set to be valid.

46. ​​The method according to claim 44 or 45, further comprising: The Nth responder records the sixth reception time of the first ranging mark of the first fragment of the first MMS packet from the initiator to the Nth responder, the eleventh sending time of the second ranging mark of the first fragment of the second MMS packet from the Nth responder to the initiator, and the seventh reception time of the third ranging mark of the first fragment of the other MMS packet; The Nth responder calculates the second round trip time and the second reply time according to the sixth receiving time, the eleventh sending time and the seventh receiving time.

47. The method of claim 43, wherein: The ADV-RESP frame further includes a twelfth indication, wherein the twelfth indication is used to request to reverse segment interleaving in the last access slot in the MMS ranging; and the method further includes: The Nth responder sends the first fragment of the MMS packet to the initiator; The Nth responder receives an MMS packet from the initiator in the last access slot in the MMS ranging.

48. The method of claim 43, wherein: In the ADV-RESP frame, segment interleaving reversal is not requested in the last access slot in the MMS ranging; when the MMS packet used for the MMS ranging is an MMS packet including a single segment with a ranging tag, the thirteenth indication in the SOR frame for requesting segment interleaving reversal in the last access slot in the MMS ranging is set to be valid; the method further includes: The Nth responder sends the first fragment of the MMS packet to the initiator; The Nth responder receives an MMS packet from the initiator in the last access slot in the MMS ranging.

49. The method according to claim 47 or 48, further comprising: The Nth responder records the eighth reception time of the first ranging mark of the first segment of the first MMS packet from the initiator to the (N-1)th responder, the twelfth transmission time of the second ranging mark of the first segment of the second MMS packet from the Nth responder to the initiator, and the ninth reception time of the third ranging mark of the first segment of the third MMS packet from the initiator to the Nth responder; The Nth responder calculates the second round trip time and the second reply time according to the eighth receiving time, the twelfth sending time and the ninth receiving time.

50. The method according to any one of claims 43 to 49, further comprising: The mth responder records the tenth reception time of the first ranging mark of the first segment of the first MMS packet from the initiator to the mth responder, the thirteenth transmission time of the second ranging mark of the first segment of the second MMS packet from the mth responder to the initiator, and the eleventh reception time of the third ranging mark of the first segment of the third MMS packet from the initiator to the (m+1)th responder, where 1≤m <N; The mth responder calculates the second round trip time and the second reply time according to the tenth receiving time, the thirteenth sending time and the eleventh receiving time.

51. The method of claim 43, wherein: The MMS packet of the initiator is skipped in access time slots other than the first access time slot and the last access time slot in the MMS ranging, and the method further comprises: The responder receives a final MMS packet in the last access slot in the MMS ranging.

52. The method of claim 51, wherein: N is an even number, and the MMS packet used for the MMS ranging is an MMS packet including a single segment with a ranging tag; the method further includes: The Nth responder sends the first fragment of the MMS packet to the initiator; The Nth responder receives the final MMS packet from the initiator in the last access slot in the MMS ranging.

53. The method of claim 52, further comprising: The Nth responder records the twelfth reception time of the first ranging mark of the first fragment of the first MMS packet of the initiator in the first access time slot, the fourteenth transmission time of the second ranging mark of the first fragment of the second MMS packet from the Nth responder to the initiator, and the thirteenth reception time of the third ranging mark of the first fragment of the third MMS packet of the initiator in the last access time slot; The Nth responder calculates the second round trip time and the second reply time according to the twelfth receiving time, the fourteenth sending time and the thirteenth receiving time.

54. The method of claim 43, wherein: The MMS packet used for the MMS ranging is an MMS packet including at least two segments with ranging tags; the method further includes: The nth responder records the fourteenth reception time of the first ranging mark of the first segment of the first MMS packet from the initiator to the nth responder, the fifteenth sending time of the second ranging mark of the first segment of the second MMS packet from the nth responder to the initiator, and the fifteenth reception time of the third ranging mark of the second segment of the first MMS packet carrying the ranging mark, wherein 1≤n≤N; The nth responder calculates the second round trip time and the second reply time according to the fourteenth receiving time, the fifteenth sending time and the fifteenth receiving time.

55. A communication device comprising means for performing the method according to any one of claims 1 to 28, or means for performing the method according to any one of claims 29 to 54.

56. An electronic device comprising processing circuitry for performing a method according to any one of claims 1 to 28, or processing circuitry for performing a method according to any one of claims 29 to 54.

57. A chip comprising an input / output (I / O) interface and a processor, wherein: The processor is used to call and run a computer program stored in a memory, so that a device equipped with the chip can execute a method according to any one of claims 1 to 28.

58. A chip, wherein: It comprises an input / output (I / O) interface and a processor, wherein the processor is used to call and run a computer program stored in a memory so that a device equipped with the chip can execute a method according to any one of claims 29 to 54.

59. An electronic device comprising: one or more processors; A non-transitory computer-readable storage medium coupled to the one or more processors and storing a program for execution by the processors, wherein when the program is executed by the processors, the decoder is configured to perform the method according to any one of claims 1 to 28.

60. An electronic device, wherein: include: one or more processors; A non-transitory computer-readable storage medium coupled to the processor and storing a program executed by the processor, wherein when the program is executed by the processor, the encoder is configured to perform the method according to any one of claims 29 to 54.

61. A communication system comprising the electronic device according to claim 59 and the electronic device according to claim 60.

62. A non-transitory computer readable medium carrying program code, which, when executed by a computer device, causes the computer device to perform the method according to any one of claims 1 to 28 or the method according to any one of claims 29 to 54.

63. A computer program product comprising a program code for performing a method according to any one of claims 1 to 28 or a method according to any one of claims 29 to 54 when the program code is executed on a computer or a processor.