CN117223300A - Distance measuring method and device - Google Patents

Distance measuring method and device Download PDF

Info

Publication number
CN117223300A
CN117223300A CN202280000702.2A CN202280000702A CN117223300A CN 117223300 A CN117223300 A CN 117223300A CN 202280000702 A CN202280000702 A CN 202280000702A CN 117223300 A CN117223300 A CN 117223300A
Authority
CN
China
Prior art keywords
terminal
discovery
ranging
message
verification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202280000702.2A
Other languages
Chinese (zh)
Inventor
陆伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Publication of CN117223300A publication Critical patent/CN117223300A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

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

Abstract

The disclosure provides a ranging method and device and a ranging verification method and device. The technical scheme of the present disclosure is that an observation terminal transmits a solicitation message including a measurement signal to a target terminal (S201), the target terminal feeds back a solicitation response message including a feedback measurement signal to the observation terminal when the target terminal is matched with the observation terminal (S202), and the observation terminal calculates a distance from the target terminal based on the measurement signal and the feedback measurement signal (S203). Thus, ranging between two terminals can be performed in the discovery process, thereby enabling reduction of network resource consumption and saving of power consumption of the terminals.

Description

Distance measuring method and device Technical Field
The disclosure relates to the technical field of mobile communication, and in particular relates to a ranging method and device, and a ranging verification method and device.
Background
In a wireless communication system, in order to achieve communication between two terminals, it is necessary to measure a distance between the two terminals, i.e., ranging. Currently, a series of procedures such as authentication and discovery need to be performed before ranging is performed, which consumes a lot of network resources and causes a great power consumption of the terminal when there is a lot of ranging demand.
Disclosure of Invention
The present disclosure proposes a ranging method and apparatus capable of performing ranging in a discovery process, thereby reducing network resource consumption and saving power consumption of a terminal.
The present disclosure provides a ranging verification method and apparatus, in which a network device can verify a terminal to determine whether the terminal is allowed to perform ranging in a discovery process, and can verify the terminal to determine whether the terminal is allowed to perform ranging on another terminal in the discovery process.
An embodiment of a first aspect of the present disclosure provides a ranging method, which is performed by a first terminal, wherein the first terminal is a terminal that initiates a discovery measurement combining procedure for performing ranging in a discovery procedure, the method comprising: sending a query message to a second terminal, wherein the second terminal is a terminal to be discovered to perform a discovery measurement combination process, the query message is used for indicating the second terminal to perform discovery matching with the first terminal, and the query message comprises a measurement signal; receiving a query response message fed back by the second terminal aiming at the query message, wherein the query response message is sent when the second terminal determines that the query response message is matched with the first terminal, and the query response message comprises a feedback measurement signal; and calculating a distance to the second terminal based on the measurement signal and the feedback measurement signal.
Optionally, before sending the solicitation message to the second terminal, the method further comprises: and carrying out integrity protection on the solicited message.
Optionally, the integrity protecting the solicitation message includes: calculating a message authentication code based on security parameters received from a first proximity service discovery management function DDNMF network element of a first local public land mobile network HPLMN of the first terminal; and attaching the message authentication code to the end of the solicitation message to integrity protect the solicitation message.
Optionally, the solicitation-response message is an integrity-protected message, the method further comprising: verifying the integrity of the solicitation response message; wherein said calculating a distance to said second terminal based on said measurement signal and said feedback measurement signal comprises: in case of successful verification of the integrity of the solicitation response message, a distance to the second terminal is calculated based on the measurement signal and the feedback measurement signal.
Optionally, the verifying the integrity of the solicitation response message comprises: the integrity of the solicitation response message is verified based on security parameters received from the first DDNMF network element.
Optionally, the method further comprises: sending a first discovery request message to a first DDNMF network element, wherein the first discovery request message is used for requesting to execute a discovery measurement combination procedure; receiving a discovery response message fed back by the first DDNMF network element when determining that the first terminal is allowed to perform ranging on the second terminal in a discovery process, wherein the discovery response message comprises parameter information for the discovery measurement combination flow; wherein, the sending the solicitation message to the second terminal includes: and transmitting a poll message to the second terminal in case the first terminal is allowed to perform ranging to the second terminal in the discovery process.
Optionally, the first discovery request message includes a discovery measurement combination procedure indication for requesting verification whether the first terminal is allowed to perform ranging on the second terminal in a discovery procedure.
A second aspect of the present disclosure provides a ranging method performed by a second terminal, wherein the second terminal is a terminal to be discovered to perform a discovery measurement combining procedure for performing ranging in a discovery process, the method comprising: receiving a query message sent by a first terminal, wherein the first terminal is a terminal initiating a discovery measurement combination process, the query message is used for indicating the second terminal to perform discovery matching with the first terminal, and the query message comprises a measurement signal; and feeding back a poll response message to the first terminal if the second terminal determines that the first terminal is matched with the poll response message, wherein the poll response message comprises a feedback measurement signal, and the measurement signal and the feedback measurement signal are used for determining the distance between the first terminal and the second terminal.
Optionally, the solicitation message is an integrity protected message, the method further comprising: verifying the integrity of the solicited message; wherein the feeding back the poll response message to the first terminal comprises: and feeding back the solicitation response message to the first terminal under the condition that the integrity of the solicitation message is successfully verified.
Optionally, the verifying the integrity of the solicitation message comprises: the integrity of the solicitation message is verified based on security parameters received from a second proximity service discovery management function DDNMF network element of a second local public land mobile network HPLMN of the second terminal.
Optionally, before sending the solicitation response message to the first terminal, the method further includes: and carrying out integrity protection on the solicitation response message.
Optionally, the method further comprises: the integrity protection of the solicitation response message comprises: calculating a message authentication code based on security parameters received from the second DDNMF network element; and attaching the message authentication code to the end of the solicitation response message to integrity protect the solicitation response message.
Optionally, the method further comprises: sending a second discovery request message to the second DDNMF network element, wherein the second discovery request message is used for requesting to execute a discovery measurement combination procedure; and receiving a discovery response message fed back by the second DDNMF network element in the case that it is determined that the second terminal is allowed to perform ranging in a discovery process, wherein the discovery response message includes parameter information for the discovery measurement combination procedure; wherein the feeding back the poll response message to the first terminal includes: in case the second terminal determines to match the first terminal and the second terminal is allowed to perform ranging in a discovery process, a poll response message is fed back to the first terminal.
Optionally, the second discovery request message includes a discovery measurement combination verification indication, and the discovery measurement combination procedure indication is used to request verification whether the second terminal is allowed to perform ranging in a discovery procedure.
A third aspect embodiment of the present disclosure provides a ranging verification method performed by a first proximity service discovery management function DDNMF network element of a first local public land mobile network HPLMN of a first terminal, the method comprising: receiving a first discovery request message sent by the first terminal, wherein the first discovery request message is used for requesting to execute a discovery measurement combination procedure and indicating the first terminal sending the first discovery request message as a terminal initiating the discovery measurement combination procedure, and the discovery measurement combination procedure is used for executing ranging in the discovery process; in response to the first discovery request message, sending a first discovery measurement combination flow verification request to a ranging application server, the ranging application server being configured to verify whether to allow the first terminal to perform ranging in a discovery process based on the first discovery measurement combination verification request; receiving a verification result from a ranging application server, and forwarding the first discovery request message to a second DDNMF network element of a second HPLMN of a second terminal, which is a terminal to be discovered to perform a discovery measurement combining procedure, in case the verification result indicates that the first terminal is allowed to perform ranging in a discovery procedure; receiving a discovery response message fed back by the second DDNMF network element in a case that it is determined that the first terminal is allowed to perform ranging on the second terminal in a discovery process, wherein the discovery response message includes parameter information for the discovery measurement combination procedure; and transmitting the discovery response message to the first terminal.
Optionally, the parameter information includes a security parameter for integrity protection and/or verification of the specified information.
Optionally, the first discovery request message includes a discovery measurement combination procedure indication for requesting verification whether the first terminal is allowed to perform ranging in a discovery procedure and verification whether the first terminal is allowed to perform ranging on the second terminal in a discovery procedure.
A fourth aspect embodiment of the present disclosure provides a ranging verification method performed by a second proximity service discovery management function DDNMF network element of a second local public land mobile network HPLMN of a second terminal, the method comprising: receiving a second discovery request message sent by a second terminal, wherein the second discovery request message is used for requesting to execute a discovery measurement combination procedure and indicating the second terminal sending the second discovery request message as a terminal to be discovered to perform the discovery measurement combination procedure, and the discovery measurement combination procedure is used for executing ranging in the discovery process; responding to the second discovery request message, sending a second discovery measurement combination flow verification request to a ranging application server, and verifying whether the second terminal is allowed to perform ranging in the discovery process or not by the ranging application server based on the second discovery measurement combination flow verification request so as to obtain a second verification result; receiving the second authentication result from the ranging application server; generating second parameter information for a discovery measurement combining procedure of the second terminal in a case where the second authentication result indicates that the second terminal is allowed to perform ranging in a discovery process; and transmitting a second discovery response message including the second parameter information to the second terminal.
Optionally, the method further comprises: receiving a first discovery request message forwarded by a first DDNMF network element of a first HPLMN of a first terminal, where the first discovery request message is used for requesting to execute a discovery measurement combination procedure and indicating that the first terminal sending the first discovery request message is the terminal initiating the discovery measurement combination procedure; transmitting a third discovery measurement combination flow verification request to the ranging application server in response to the first discovery request message, wherein the ranging application server verifies whether the first terminal is allowed to perform ranging on the second terminal in the discovery process based on the third discovery measurement combination flow verification request to obtain a first verification result; receiving the first authentication result from the ranging application server; generating first parameter information for a discovery measurement combining procedure of the first terminal in a case where the first authentication result indicates that the first terminal is allowed to perform ranging on the second terminal in a discovery process; and transmitting a first discovery response message including the first parameter information to the first DDNMF network element.
Optionally, the first parameter information and the second parameter information each include a security parameter for integrity protection and/or verification of the specified information.
Optionally, the second discovery request message includes a second discovery measurement combination procedure indication for requesting verification whether the second terminal is allowed to perform ranging in a discovery procedure.
Optionally, the first discovery request message includes a first discovery measurement combination procedure indication for requesting verification whether the first terminal is allowed to perform ranging on the second terminal in a discovery procedure.
A fifth aspect embodiment of the present disclosure provides a ranging verification method, the method including: receiving a first discovery measurement combination flow verification request sent by a first DDNMF network element of a first local public land mobile network HPLMN of a first terminal, wherein the first terminal is a terminal initiating a discovery measurement combination flow, the discovery measurement combination flow is used for performing ranging in a discovery process, and the first discovery measurement combination flow verification request is used for requesting to verify whether the first terminal is allowed to perform ranging in the discovery process; verifying whether the first terminal is allowed to perform ranging in a discovery process to obtain an intermediate verification result; feeding back the intermediate verification result to the first DDNMF network element; receiving a third discovery measurement combination flow verification request sent by a second DDNMF network element of a second HPLMN of a second terminal, wherein the second terminal is a terminal to be discovered to perform a discovery measurement combination flow, and the third discovery measurement combination flow verification request is used for requesting to verify whether to allow the first terminal to perform ranging on the second terminal in a discovery process; verifying whether the first terminal is allowed to perform ranging on the second terminal in the discovery process so as to obtain a first verification result; and feeding back the first verification result to the second DDNMF network element, which generates first parameter information for a discovery measurement combination procedure of the first terminal if the first verification result indicates that the first terminal is allowed to perform ranging on the second terminal in a discovery process.
Optionally, the method further comprises: receiving a second discovery measurement combination flow verification request sent by the second DDNMF network element, where the second discovery measurement combination flow verification request is used to request to verify whether the second terminal is allowed to perform ranging in a discovery process; verifying whether the second terminal is allowed to perform ranging in a discovery process to obtain a second verification result; and feeding back the second verification result to the second DDNMF network element, which generates second parameter information for a discovery measurement combination procedure of the second terminal if the second verification result indicates that the second terminal is allowed to perform ranging in a discovery process.
A sixth aspect of the present disclosure provides a ranging apparatus applied to a first terminal, wherein the first terminal is a terminal that initiates a discovery measurement combining procedure for performing ranging in a discovery process, the apparatus comprising: a transceiver module for: sending a query message to a second terminal, wherein the second terminal is a terminal to be discovered to perform a discovery measurement combination process, the query message is used for indicating the second terminal to perform discovery matching with the first terminal, and the query message comprises a measurement signal; receiving a query response message fed back by the second terminal aiming at the query message, wherein the query response message is sent when the second terminal determines that the query response message is matched with the first terminal, and the query response message comprises a feedback measurement signal; and a processing module for calculating a distance to the second terminal based on the measurement signal and the feedback measurement signal.
A seventh aspect of the present disclosure provides a ranging apparatus applied to a second terminal, wherein the second terminal is a terminal to be discovered to perform a discovery measurement combining procedure for performing ranging in a discovery process, the apparatus comprising: a transceiver module for: receiving a query message sent by a first terminal, wherein the first terminal is a terminal initiating a discovery measurement combination process, the query message is used for indicating the second terminal to perform discovery matching with the first terminal, and the query message comprises a measurement signal; and feeding back a solicitation response message to the first terminal under the condition that the second terminal is determined to be matched with the first terminal, wherein the solicitation response message comprises a feedback measurement signal, and the measurement signal and the feedback measurement signal are used for determining the distance between the first terminal and the second terminal.
An eighth aspect embodiment of the present disclosure provides a ranging verification apparatus applied to a first proximity service discovery management function DDNMF network element of a first local public land mobile network HPLMN of a first terminal, the apparatus comprising: the transceiver module is used for: receiving a first discovery request message sent by the first terminal, wherein the first discovery request message is used for requesting to execute a discovery measurement combination procedure and indicating the first terminal sending the first discovery request message as a terminal initiating the discovery measurement combination procedure, and the discovery measurement combination procedure is used for executing ranging in the discovery process; in response to the first discovery request message, sending a first discovery measurement combination flow verification request to a ranging application server, the ranging application server being configured to verify whether to allow the first terminal to perform ranging in a discovery process based on the first discovery measurement combination verification request; receiving a verification result from a ranging application server, and forwarding the first discovery request message to a second DDNMF network element of a second HPLMN of a second terminal, which is a terminal to be discovered to perform a discovery measurement combining procedure, in case the verification result indicates that the first terminal is allowed to perform ranging in a discovery procedure; receiving a discovery response message fed back by the second DDNMF network element in a case that it is determined that the first terminal is allowed to perform ranging on the second terminal in a discovery process, wherein the discovery response message includes parameter information for the discovery measurement combination procedure; and transmitting the discovery response message to the first terminal.
A ninth aspect embodiment of the present disclosure provides a ranging verification apparatus for performing a second proximity service discovery management function DDNMF network element of a second local public land mobile network HPLMN applied to a second terminal, the apparatus comprising: a transceiver module and a processing module; the transceiver module is used for: receiving a second discovery request message sent by a second terminal, wherein the second discovery request message is used for requesting to execute a discovery measurement combination procedure and indicating the second terminal sending the second discovery request message as a terminal to be discovered to perform the discovery measurement combination procedure, and the discovery measurement combination procedure is used for executing ranging in the discovery process; responding to the second discovery request message, sending a second discovery measurement combination flow verification request to a ranging application server, and verifying whether the second terminal is allowed to perform ranging in the discovery process or not by the ranging application server based on the second discovery measurement combination flow verification request so as to obtain a second verification result; and receiving the second authentication result from the ranging application server. The processing module is configured to generate second parameter information for a discovery measurement combination procedure of the second terminal, where the second verification result indicates that the second terminal is allowed to perform ranging in a discovery procedure. The transceiver module is further configured to send a second discovery response message including the second parameter information to the second terminal.
An embodiment of a tenth aspect of the present disclosure provides a ranging verification apparatus, the apparatus including a transceiver module and a processing module; the transceiver module is configured to receive a first discovery measurement combination procedure verification request sent by a first DDNMF network element of a first local public land mobile network HPLMN of a first terminal, where the first terminal is a terminal that initiates a discovery measurement combination procedure, the discovery measurement combination procedure is used to perform ranging in a discovery process, and the first discovery measurement combination procedure verification request is used to request to verify whether to allow the first terminal to perform ranging in the discovery process; the processing module is used for verifying whether the first terminal is allowed to perform ranging in the discovery process so as to obtain an intermediate verification result; the receiving and transmitting module is further configured to feed back the intermediate verification result to the first DDNMF network element; receiving a third discovery measurement combination flow verification request sent by a second DDNMF network element of a second HPLMN of a second terminal, wherein the second terminal is a terminal to be discovered to perform a discovery measurement combination flow, and the third discovery measurement combination flow verification request is used for requesting to verify whether to allow the first terminal to perform ranging on the second terminal in a discovery process; the processing module is further used for verifying whether the first terminal is allowed to perform ranging on the second terminal in the discovery process so as to obtain a first verification result; and the transceiver module is further configured to feed back the first verification result to the second DDNMF network element, where the second DDNMF network element generates first parameter information for a discovery measurement combination procedure of the first terminal if the first verification result indicates that the first terminal is allowed to perform ranging on the second terminal in a discovery process.
An eleventh aspect embodiment of the present disclosure provides a communication device including: a transceiver; a memory; and a processor, connected to the transceiver and the memory, configured to control the transceiver to receive and transmit wireless signals by executing computer executable instructions on the memory, and capable of implementing the ranging method of the first aspect or the second aspect embodiment or the ranging verification method of the third aspect embodiment, the fourth aspect embodiment or the fifth aspect embodiment.
An embodiment of a twelfth aspect of the present disclosure proposes a computer storage medium, wherein the computer storage medium stores computer-executable instructions; the computer executable instructions, when executed by a processor, enable the ranging method of the embodiments of the first or second aspect or the ranging verification method of the embodiments of the third, fourth or fifth aspect described above.
The embodiment of the disclosure provides a ranging method and a ranging device, an observation terminal (i.e., a terminal initiating a discovery measurement combination procedure) sends a solicitation message including a measurement signal to a target terminal (i.e., a candidate terminal participating in the discovery measurement combination procedure, typically in the vicinity of the observation terminal), the target terminal feeds back a solicitation response message including a feedback measurement signal to the observation terminal when the target terminal matches with the observation terminal, and the observation terminal can measure the distance between the measurement signal and the feedback measurement signal and calculate the distance between the measurement signal and the target terminal. Thus, ranging between two terminals can be performed in the discovery process, thereby enabling reduction of network resource consumption and saving of power consumption of the terminals.
The embodiment of the disclosure also provides a ranging verification method and a ranging verification device, wherein the network equipment can verify the observation terminal to determine whether the observation terminal is allowed to perform ranging in the discovery process and whether the observation terminal is allowed to perform ranging on a specific target terminal in the discovery process. Further, the network device can verify the target terminal to determine whether the target terminal is allowed to perform ranging in the discovery process. Thereby, it can be verified whether the terminal can perform the discovery measurement combination flow.
Additional aspects and advantages of the disclosure will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the disclosure.
Drawings
The foregoing and/or additional aspects and advantages of the present disclosure will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
fig. 1 is a schematic diagram showing the orientation of one terminal with respect to another terminal;
fig. 2 is a flow chart of a ranging method according to an embodiment of the present disclosure;
fig. 3 is a flow chart of a ranging method according to an embodiment of the present disclosure;
fig. 4 is a flow chart of a ranging method according to an embodiment of the present disclosure;
Fig. 5 is a flow chart of a ranging method according to an embodiment of the present disclosure;
FIG. 6 is a flow diagram of a method of obtaining discovery measurement combination information in accordance with an embodiment of the disclosure;
fig. 7 is a flow chart of a ranging method according to an embodiment of the present disclosure;
fig. 8 is a flow chart of a ranging method according to an embodiment of the present disclosure;
fig. 9 is a flow chart of a ranging method according to an embodiment of the present disclosure;
fig. 10 is a flow chart of a ranging method according to an embodiment of the present disclosure;
FIG. 11 is a flow diagram of a method of obtaining discovery measurement combination information in accordance with an embodiment of the disclosure;
fig. 12 is a flow chart of a ranging method according to an embodiment of the present disclosure;
fig. 13 is a flow chart of a ranging verification method according to an embodiment of the present disclosure;
fig. 14 is a flow chart of a ranging verification method according to an embodiment of the present disclosure;
fig. 15 is a flow chart of a ranging verification method according to an embodiment of the present disclosure;
fig. 16 is a flow chart of a ranging verification method according to an embodiment of the present disclosure;
fig. 17 is a flow chart of a ranging verification method according to an embodiment of the present disclosure;
FIG. 18 is a flow diagram of a discovery measurement combining flow according to an embodiment of the disclosure;
FIG. 19 is a block diagram of a ranging device according to an embodiment of the present disclosure;
FIG. 20 is a block diagram of a ranging device according to an embodiment of the present disclosure;
fig. 21 is a block diagram of a ranging verification device according to an embodiment of the present disclosure;
fig. 22 is a block diagram of a ranging verification device according to an embodiment of the present disclosure;
fig. 23 is a block diagram of a ranging verification device according to an embodiment of the present disclosure;
fig. 24 is a schematic structural diagram of a communication device according to an embodiment of the disclosure;
fig. 25 is a schematic structural diagram of a chip according to an embodiment of the disclosure.
Detailed Description
Embodiments of the present disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and intended for the purpose of explaining the present disclosure and are not to be construed as limiting the present disclosure.
According to 3GPP protocol specifications, a ranging-based service refers to a service provided using a distance between two terminals and/or a direction of one terminal with respect to the other terminal. In the three-dimensional case, the direction of one terminal with respect to the other terminal includes a horizontal direction and a vertical direction, as shown in fig. 1. The first terminal has a reference plane and a reference direction. The horizontal direction (azimuth) of the second terminal relative to the first terminal is indicated by the angle between the reference direction and the projection of the line of the first terminal to the second terminal on the reference plane. The vertical direction of the second terminal with respect to the first terminal is indicated by an angle on the horizontal plane. Some ranging-based services only need to make distance measurements, some ranging-based services only need to make direction measurements, while others need to make both distance and direction measurements.
For ranging-based services that only require distance measurement, the path length between two terminals can be measured using Time of Flight (ToF). Assuming that the ToF is acquired by using radio frequency, the first terminal sends a measurement signal to the second terminal, and the second terminal feeds back the measurement signal to the first terminal again after receiving the measurement signal. The first terminal determines a distance to the second terminal based on the time of flight of the measurement signal. For example, assume the time between a first terminal sending a measurement signal and receiving a measurement signal fed back by a second terminalAt a distance of delta t 2 The time interval between the second terminal receiving the measurement signal and feeding back the measurement signal is deltat 1 The signal transmission speed is C, the distance between the first terminal and the second terminal is (Δt 2 -Δt 1 )×C/2。
Currently, in order to achieve communication between two terminals, a series of procedures such as authentication and discovery need to be performed before ranging is performed, which consumes a lot of network resources and causes a great power consumption of the terminals when there is a lot of ranging demand. In order to reduce network resource consumption and reduce terminal power consumption, it is desirable to be able to simplify the required procedure as much as possible.
Therefore, the present disclosure proposes a ranging method and apparatus, by which a terminal can perform ranging in a discovery process, thereby reducing network resource consumption and saving power consumption of the terminal.
In addition, the disclosure also provides a ranging verification method and a ranging verification device, which are used for verifying a terminal by network equipment to determine whether the terminal is allowed to perform ranging in a discovery process, and verifying the terminal to determine whether the terminal is allowed to perform ranging on another terminal in the discovery process.
The above-described discovery measurement combining procedure is used to perform ranging in a discovery procedure, and hereinafter, for simplicity, the above-described terminal that initiates the discovery measurement combining procedure may be referred to as an observation terminal, and another terminal may be referred to as a target terminal (i.e., a candidate terminal to be discovered to participate in the discovery measurement combining procedure).
The ranging method and device, the ranging verification method and device provided by the application are described in detail below with reference to the accompanying drawings.
Fig. 2 is a flow chart of a ranging method according to an embodiment of the present disclosure. As shown in fig. 2, the method may be performed by an observation terminal and includes the following steps.
S201, sending a solicitation message to the target terminal.
The solicitation message is used for indicating the observation terminal and the target terminal to perform discovery matching, and the solicitation message comprises a measurement signal to indicate that the observation terminal expects to perform ranging in the discovery process.
S202, receiving a solicitation response message fed back by the target terminal aiming at the solicitation message.
The solicitation response message is sent under the condition that the target terminal determines that the target terminal is matched with the observation terminal, and the solicitation response message comprises a feedback measurement signal. In some embodiments, the solicitation response message includes a feedback measurement signal and a time difference between receipt of the solicitation message and the feedback solicitation response message, and optionally the solicitation response message may also include a discovery message type, as will be described in detail below.
After receiving the solicitation message sent by the observation terminal, the target terminal may perform a discovery process to determine whether the target terminal is matched with the observation terminal, and if the target terminal is matched with the observation terminal, may send a solicitation response message including a feedback measurement signal to the observation terminal.
In some embodiments, if the target terminal does not match the observing terminal, the target terminal may not send a solicitation response message to the observing terminal, indicating that communication between the target terminal and the observing terminal is not possible.
And S203, calculating the distance between the target terminal based on the measurement signal and the feedback measurement signal.
After receiving the solicited response message including the feedback measurement signal, the observation terminal may calculate a distance between the observation terminal and the target terminal according to the measurement signal and the feedback measurement signal.
In some embodiments, if the observation terminal does not receive the solicitation response message sent by the target terminal within the preset period of time, the observation terminal may determine that the target terminal does not match the observation terminal, and may not communicate with the target terminal.
According to the ranging method disclosed by the embodiment of the disclosure, the observation terminal sends the solicitation message comprising the measurement signal to the target terminal, the target terminal feeds back the solicitation response message comprising the feedback measurement signal to the observation terminal under the condition of matching with the observation terminal, and the observation terminal can calculate the distance between the observation terminal and the target terminal according to the measurement signal and the feedback measurement signal. Thus, ranging between two terminals can be performed in the discovery process, thereby enabling reduction of network resource consumption and saving of power consumption of the terminals.
Fig. 3 shows a flow diagram of a ranging method according to an embodiment of the present disclosure. As shown in fig. 3, the method may be performed by an observation terminal and includes the following steps.
S301, carrying out integrity protection on the solicited message.
The solicitation message is used for indicating the observation terminal and the target terminal to perform discovery matching, and the solicitation message comprises a measurement signal to indicate that the observation terminal expects to perform ranging in the discovery process.
In some embodiments, the step S301 may include the following steps.
S3011, calculating a message authentication code based on security parameters received from a proximity service discovery management function (DDNMF, direct Discovery Name Management Function) network element of a home public land mobile network (HPLMN, home Public Land Mobile Network) of the viewing terminal.
In this implementation, the observation terminal may calculate the message authentication code based on security parameters received from DDNMF network elements of the HPLMN of the observation terminal. In one example, the security parameter may be the discovery of a user integrity key (DUIK, discovery User Integrity Key) from which the observing terminal computes a message authentication code (MIC, message Integrity Code).
S3012, attaching the message verification code to the end of the solicited message to integrity protect the solicited message.
After the observation terminal calculates the MIC, the MIC may be appended to the end of the solicitation message to integrity protect the solicitation message.
S302, sending the query message protected by the integrity to the target terminal.
And the observation terminal sends the query message subjected to the integrity protection to the target terminal after carrying out the integrity protection on the query message.
S303, receiving the query response message fed back by the target terminal aiming at the query message protected by the integrity.
After receiving the query message with integrity protection, the target terminal needs to perform integrity verification on the query message, specifically, the target terminal can verify the query message according to the DUIK, if verification is passed, the target terminal can feed back a query response message to the observation terminal, otherwise, the query response message is not fed back.
The solicitation response message is sent under the condition that the target terminal determines that the target terminal is matched with the observation terminal, and the solicitation response message comprises a feedback measurement signal.
After successfully verifying the integrity-protected solicitation message, the target terminal may perform a discovery procedure to determine if it matches the observation terminal, and if the target terminal matches the observation terminal, may send a solicitation response message including a feedback measurement signal to the observation terminal.
In other embodiments, if the target terminal does not match the observation terminal, the target terminal may not send a solicitation response message to the observation terminal, indicating that communication between the target terminal and the observation terminal is not possible.
S304, calculating the distance between the target terminal based on the measurement signal and the feedback measurement signal.
For the description and specific details of step S304 above, reference may be made to the relevant description and details of step S203 above.
According to the ranging method disclosed by the embodiment of the disclosure, after the integrity protection is carried out on the query message, the observation terminal sends the query message subjected to the integrity protection to the target terminal, the target terminal feeds back the query response message comprising the feedback measurement signal to the observation terminal under the condition that the target terminal is matched with the observation terminal, and the observation terminal can calculate the distance between the observation terminal and the target terminal according to the measurement signal and the feedback measurement signal in the query message. In addition, as the solicitation message is an integrity-protected message, the solicitation message can be prevented from being tampered, and the security of the solicitation message is improved.
Fig. 4 shows a flow diagram of a ranging method according to an embodiment of the present disclosure. As shown in fig. 4, the method may be performed by an observation terminal and includes the following steps.
S401, sending a solicitation message to the target terminal.
For the description and specific details of step S401 above, reference may be made to the description and details related to step S201 above.
S402, receiving an integrity-protected solicitation response message fed back by the target terminal aiming at the solicitation message.
Wherein the integrity-protected solicitation response message is sent in case that the target terminal determines that the target terminal matches the observation terminal, and the integrity-protected solicitation response message includes a feedback measurement signal.
After receiving the solicitation message sent by the observation terminal, the target terminal may perform a discovery process to determine whether the target terminal is matched with the observation terminal, and if the target terminal is matched with the observation terminal, may feed back a solicitation response message including a feedback measurement signal to the observation terminal.
In order to avoid tampering of the solicitation response message, the target terminal may send the integrity-protected solicitation response message to the observation terminal after integrity-protecting the solicitation response message. The target terminal may calculate a message authentication code according to the security parameters received from the DDNMF network element of the HPLMN of the target terminal, and append the message authentication code to the end of the solicitation response message to integrity protect the solicitation response message. In one example, the security parameter may be DUIK, the target terminal calculates a MIC from the DUIK, and appends the MIC to the end of the solicitation-response message.
In other embodiments, if the target terminal does not match the observation terminal, the target terminal may not send a solicitation response message to the observation terminal, indicating that communication between the target terminal and the observation terminal is not possible.
S403, verifying the integrity of the integrity-protected solicitation response message.
If the observation terminal receives the query response message subjected to the integrity protection, the observation terminal needs to carry out the integrity verification on the query response message.
In some embodiments, the step S403 may include the following steps.
S4031 verifies the integrity of the integrity-protected solicitation response message based on the security parameters received from the DDNMF network element of the HPLMN of the observation terminal.
In an example, the observation terminal may verify the solicitation response message from DUIK received from the DDNMF network element.
S404, if the integrity-protected solicitation response message is successfully verified, calculating the distance between the solicitation response message and the target terminal based on the measurement signal and the feedback measurement signal.
For the description and specific details of step S404, reference may be made to the description and details related to step S203.
According to the ranging method disclosed by the embodiment of the disclosure, the observation terminal sends the query message comprising the measurement signal to the target terminal, the target terminal feeds back the query response message comprising the feedback measurement signal to the observation terminal under the condition of matching with the observation terminal, the query response message is an integrity-protected message, and the observation terminal can calculate the distance between the observation terminal and the target terminal according to the measurement signal and the feedback measurement signal. In addition, as the solicitation response message is an integrity-protected message, the solicitation response message can be prevented from being tampered, and the security of the solicitation response message is improved.
Fig. 5 shows a flow diagram of a ranging method according to an embodiment of the present disclosure. As shown in fig. 5, the method may be performed by an observation terminal and includes the following steps.
S501, integrity protection is carried out on the solicited message.
For the description and specific details of step S501, reference may be made to the description and details related to step S301.
S502, sending the query message protected by the integrity to the target terminal.
For the description and specific details of step S502, reference may be made to the description and details related to step S302.
S503, receiving an integrity-protected solicitation response message fed back by the target terminal aiming at the integrity-protected solicitation message.
For the description and specific details of step S503 above, reference may be made to the description and details of steps S303, S402 above.
S504, verifying the integrity of the integrity-protected solicitation response message.
For the description and specific details of step S504, reference may be made to the description and details related to step S403.
S505, if the integrity-protected solicitation response message is successfully verified, calculating the distance between the terminal and the target terminal based on the measurement signal and the feedback measurement signal.
For the description and specific details of step S505 above, reference may be made to the relevant description and details of step S404 above.
According to the ranging method disclosed by the embodiment of the disclosure, after the integrity protection is carried out on the query message, the observation terminal sends the query message subjected to the integrity protection to the target terminal, the target terminal feeds back the query response message subjected to the integrity protection to the observation terminal under the condition of matching with the observation terminal, and the observation terminal can calculate the distance between the observation terminal and the target terminal according to the measurement signal in the query message and the feedback measurement signal in the query response message. In addition, as the solicitation message and the solicitation response message are messages with integrity protection, the solicitation message and the solicitation response message can be prevented from being tampered, thereby improving the security of the solicitation message and the solicitation response message.
Fig. 6 shows a flow diagram of a ranging method according to an embodiment of the present disclosure. As shown in fig. 6, the method may be performed by an observation terminal and includes the following steps.
S601, a first discovery request message is sent to a DDNMF network element of an HPLMN of the observation terminal.
The first discovery request message is used for requesting to execute a discovery measurement combination procedure.
The DDNMF network element of the HPLMN of the observation terminal is configured to send a first discovery measurement combination procedure verification request to the ranging application server in response to the first discovery request message, the ranging application server is configured to verify whether the observation terminal is allowed to perform ranging on the target terminal in the discovery process based on the first discovery measurement combination procedure verification request, and in a case where the verification result indicates that the observation terminal is allowed to perform ranging on the target terminal in the discovery process, the DDNMF network element of the HPLMN of the observation terminal forwards the first discovery request message to the DDNMF network element of the HPLMN of the target terminal, and the DDNMF network element of the HPLMN of the target terminal sends a third discovery measurement combination procedure verification request to the ranging application server in response to the first discovery request message, the ranging application server is configured to generate parameter information for a discovery measurement combination procedure of the observation terminal in a case where the verification result indicates that the observation terminal is allowed to perform ranging on the target terminal in the discovery process.
In some embodiments, the first discovery request message may include a discovery measurement combination flow indication. The discovery measurement combining procedure is indicated for requesting verification of whether or not the observing terminal is allowed to perform ranging in the discovery process.
That is, the DDNMF network element of the HPLMN of the observing terminal may autonomously transmit a first discovery measurement combining procedure verification request to the ranging application server in response to the first discovery request message, i.e., in response to any of the first discovery request messages, to the ranging application server to verify whether the observing terminal is allowed to perform ranging in the discovery process.
Or, the DDNMF network element of the HPLMN of the observation terminal sends a first discovery measurement combination procedure verification request to the ranging application server according to the discovery measurement combination procedure indication in the first discovery request message, that is, only in response to the first discovery request message including the discovery measurement combination procedure indication, the DDNMF network element of the HPLMN of the observation terminal sends the first discovery measurement combination procedure verification request to the ranging application server to verify whether the observation terminal is allowed to perform ranging in the discovery process.
In some embodiments, the first discovery request message further includes another discovery measurement combination procedure indication for requesting verification that the observing terminal is allowed to perform ranging on the target terminal in the discovery process.
That is, the DDNMF network element of the HPLMN of the target terminal may autonomously transmit a third discovery measurement combining procedure verification request to the ranging application server in response to the first discovery request message, i.e., in response to any of the first discovery request messages, the DDNMF network element of the HPLMN of the target terminal third transmits the discovery measurement combining procedure verification request to the ranging application server to verify whether the observing terminal is allowed to perform ranging on the target terminal in the discovery process.
Or, the DDNMF network element of the HPLMN of the target terminal sends a third discovery measurement combination procedure verification request to the ranging application server according to the other discovery measurement combination procedure indication in the first discovery request message, that is, only in response to the first discovery request message including the other discovery measurement combination procedure indication, the DDNMF network element of the HPLMN of the target terminal sends the third discovery measurement combination procedure verification request to the ranging application server to verify whether the observation terminal is allowed to perform ranging on the target terminal in the discovery process.
S602, receiving a discovery response message fed back by the DDNMF network element in a case where it is determined that the observation terminal is allowed to perform ranging on the target terminal in the discovery process.
Wherein the discovery response message includes parameter information.
The DDNMF network element generates parameter information in a case where the observation terminal is allowed to perform ranging on the target terminal in the discovery process based on the authentication result, and may feed back a discovery response message including the parameter information to the observation terminal, so that the observation terminal can acquire the parameter information for discovery of the measurement combination procedure.
S603, in case that the observing terminal is allowed to perform ranging on the target terminal in the discovery process, transmitting a solicitation message to the target terminal.
The observation terminal may send a solicitation message to the target terminal if the observation terminal acquires parameter information for discovery of the measurement combining procedure from the DDNMF network element, which means that the observation terminal is allowed to perform ranging on the target terminal during discovery.
For the description and specific details of step S603, reference may be made to the description and details related to step S201.
S604, receiving the solicitation response message fed back by the target terminal aiming at the solicitation message.
For the description and specific details of step S604, reference may be made to the description and details of step S202.
S605 calculates a distance to the target terminal based on the measurement signal and the feedback measurement signal.
For the description and specific details of step S605 above, reference may be made to the relevant description and details of step S203 above.
It should be noted that the present embodiment is described on the basis of the embodiment shown in fig. 2, that is, steps S601-S602 of the present embodiment are combined with steps S201-S203 shown in fig. 2, but it should be noted that steps S601-S602 of the present embodiment may also be combined with steps S301-S304 shown in fig. 3, steps S401-S404 shown in fig. 4, and steps S501-S505 shown in fig. 5, so that no follow-up is required.
According to the ranging method of the embodiment of the present disclosure, the observation terminal needs to be verified before transmitting the solicitation message including the measurement signal to the target terminal, the solicitation message is transmitted to the target terminal if the observation terminal is verified to be allowed to perform ranging on the target terminal in the discovery process, the target terminal feeds back the solicitation response message including the feedback measurement signal to the observation terminal if it matches with the observation terminal, and the observation terminal can calculate the distance to the target terminal according to the measurement signal and the feedback measurement signal. Thus, ranging between two terminals can be performed in the discovery process, thereby enabling reduction of network resource consumption and saving of power consumption of the terminals.
Fig. 7 is a flow chart of a ranging method according to an embodiment of the present disclosure. As shown in fig. 7, the method may be performed by a target terminal and includes the following steps.
S701, receiving a solicitation message sent by an observation terminal.
The solicitation message is used for indicating the observation terminal and the target terminal to perform discovery matching, and the solicitation message comprises a measurement signal to indicate that the observation terminal expects to perform ranging in the discovery process.
S702, feeding back a solicitation response message to the observation terminal when the target terminal determines that the target terminal is matched with the observation terminal.
The solicitation response message includes a feedback measurement signal, where the measurement signal and the feedback measurement signal are used to determine a distance between the observation terminal and the target terminal.
After receiving the solicitation message including the measurement signal sent by the observation terminal, the target terminal may perform a discovery process to determine whether the target terminal matches the observation terminal, and if the target terminal matches the observation terminal, may send a solicitation response message including the feedback measurement signal to the observation terminal.
In some embodiments, if the target terminal does not match the observing terminal, the target terminal may not send a solicitation response message to the observing terminal, indicating that communication between the target terminal and the observing terminal is not possible.
After receiving the solicited response message including the feedback measurement signal, the observation terminal may calculate a distance between the observation terminal and the target terminal according to the measurement signal and the feedback measurement signal.
In some embodiments, if the observation terminal does not receive the solicitation response message sent by the target terminal within the preset period of time, the observation terminal may determine that the target terminal does not match the observation terminal, and may not communicate with the target terminal.
According to the ranging method disclosed by the embodiment of the disclosure, the observation terminal sends the solicitation message comprising the measurement signal to the target terminal, the target terminal feeds back the solicitation response message comprising the feedback measurement signal to the observation terminal under the condition of matching with the observation terminal, and the observation terminal can calculate the distance between the observation terminal and the target terminal according to the measurement signal and the feedback measurement signal. Thus, ranging between two terminals can be performed in the discovery process, thereby enabling reduction of network resource consumption and saving of power consumption of the terminals.
Fig. 8 shows a flow diagram of a ranging method according to an embodiment of the present disclosure. As shown in fig. 8, the method may be performed by a target terminal and includes the following steps.
S801, receiving an integrity-protected solicitation message sent by an observation terminal.
The observation terminal may send the integrity-protected query message to the target terminal after integrity protection of the query message. The integrity-protected solicitation message is used to instruct the observing terminal and the target terminal to find a match and includes a measurement signal to indicate that the observing terminal desires to perform ranging during the discovery process.
Wherein the viewing terminal may calculate a message authentication code based on security parameters received from the DDNMF network element of the HPLMN of the viewing terminal and append the message authentication code to the end of the solicited message to integrity protect the solicited message. In one example, the security parameter may be DUIK, the observing terminal calculates a MIC from the DUIK, and appends the MIC to the end of the solicitation message.
S802, verifying the integrity of the query message protected by the integrity.
If the target terminal receives the query message subjected to integrity protection, the target terminal needs to perform integrity verification on the query message.
In some embodiments, the step S802 may include the following steps.
S8021 verifies the integrity of the integrity-protected solicitation message based on the security parameters received from the DDNMF network element of the HPLMN of the target terminal.
In an example, the target terminal may verify the solicitation message from DUIK received from the DDNMF network element.
S803, if the integrity of the query message protected by the integrity is successfully verified, the query response message is fed back to the observation terminal in the case that the target terminal determines that the query message matches with the observation terminal.
The solicitation response message includes a feedback measurement signal, where the measurement signal and the feedback measurement signal are used to determine a distance between the observation terminal and the target terminal.
For the description and specific details of step S803 above, reference may be made to the relevant description and details of step S702 above.
According to the ranging method, after integrity protection is carried out on the query message, the observation terminal sends the query message subjected to the integrity protection to the target terminal, the target terminal feeds back a query response message comprising a feedback measurement signal to the observation terminal under the condition that the target terminal is matched with the observation terminal, and the observation terminal can calculate the distance between the observation terminal and the target terminal according to the measurement signal and the feedback measurement signal in the query message. In addition, as the solicitation message is an integrity-protected message, the solicitation message can be prevented from being tampered, and the security of the solicitation message is improved.
Fig. 9 shows a flow diagram of a ranging method according to an embodiment of the present disclosure. As shown in fig. 9, the method may be performed by a target terminal and includes the following steps.
S901, receiving a solicitation message sent by an observation terminal.
For the description and specific details of the above step S901, reference may be made to the related description and details of the above step S701.
S902, carrying out integrity protection on the solicitation response message under the condition that the target terminal determines that the solicitation response message is matched with the observation terminal.
The integrity-protected solicitation response message includes a feedback measurement signal, where the measurement signal and the feedback measurement signal are used to determine a distance between the observation terminal and the target terminal.
After receiving the solicitation message including the measurement signal sent by the observation terminal, the target terminal may perform a discovery process to determine whether the target terminal matches the observation terminal, and if the target terminal matches the observation terminal, may send a solicitation response message including the feedback measurement signal to the observation terminal. In order to avoid tampering of the solicitation response message, the target terminal may send the integrity-protected solicitation response message to the observation terminal after integrity-protecting the solicitation response message.
In some embodiments, if the target terminal does not match the observing terminal, the target terminal may not send a solicitation response message to the observing terminal, indicating that communication between the target terminal and the observing terminal is not possible.
In some embodiments, the step S902 may include the following steps.
S9021 calculates a message authentication code based on security parameters received from the DDNMF network element of the HPLMN of the target terminal.
In this implementation, the target terminal may calculate the message authentication code based on security parameters received from the DDNMF network element of the HPLMN of the target terminal. In one example, the security parameter may be the discovery of a user integrity key (DUIK, discovery User Integrity Key) from which the observing terminal computes a message authentication code (MIC, message Integrity Code).
S9022, appends the message authentication code to the end of the solicitation response message to integrity protect the solicitation response message.
After calculating the MIC, the target terminal may append the MIC to the end of the solicitation response message to integrity protect the solicitation response message.
S903, sending the query response message protected by the integrity to the observation terminal.
And the target terminal sends the query response message subjected to the integrity protection to the observation terminal after carrying out the integrity protection on the query response message.
After receiving the query response message with the integrity protection, the observation terminal needs to perform integrity verification on the query response message. Specifically, the observation terminal may verify the solicitation response message according to DUIK, and if verification is passed, the observation terminal may calculate a distance between the observation terminal and the target terminal according to the measurement signal and the feedback measurement signal.
In some embodiments, if the observation terminal does not receive the solicitation response message sent by the target terminal within the preset period of time, the observation terminal may determine that the target terminal does not match the observation terminal, and may not communicate with the target terminal.
According to the ranging method disclosed by the embodiment of the disclosure, the observation terminal sends the query message comprising the measurement signal to the target terminal, the target terminal feeds back the query response message comprising the feedback measurement signal to the observation terminal under the condition of matching with the observation terminal, the query response message is an integrity-protected message, and the observation terminal can calculate the distance between the observation terminal and the target terminal according to the measurement signal and the feedback measurement signal. In addition, as the solicitation response message is an integrity-protected message, the solicitation response message can be prevented from being tampered, and the security of the solicitation response message is improved.
Fig. 10 shows a flow diagram of a ranging method according to an embodiment of the present disclosure. As shown in fig. 10, the method may be performed by an observation terminal and includes the following steps.
S1001, receiving an integrity-protected solicitation message sent by the observation terminal.
For the description and specific details of the above step S1001, reference may be made to the related description and details of the above step S801.
S1002, the integrity of the integrity-protected solicitation message is verified.
For the description and specific details of step S1002, reference may be made to the description and details related to step S802.
S1003, if the integrity of the query message protected by the integrity is successfully verified, the query response message is integrity protected under the condition that the target terminal determines that the query response message matches with the observation terminal.
For the description and specific details of the above step S1003, reference may be made to the related description and details of the above step S902.
S1004, sending the query response message protected by the integrity to the observation terminal.
For the description and specific details of the above step S1004, reference may be made to the related description and details of the above step S903.
According to the ranging method disclosed by the embodiment of the disclosure, after the integrity protection is carried out on the query message, the observation terminal sends the query message subjected to the integrity protection to the target terminal, the target terminal feeds back the query response message subjected to the integrity protection to the observation terminal under the condition of matching with the observation terminal, and the observation terminal can calculate the distance between the observation terminal and the target terminal according to the measurement signal in the query message and the feedback measurement signal in the query response message. In addition, as the solicitation message and the solicitation response message are messages with integrity protection, the solicitation message and the solicitation response message can be prevented from being tampered, thereby improving the security of the solicitation message and the solicitation response message.
Fig. 11 shows a flow diagram of a ranging method, as shown in fig. 11, which may be performed by a target terminal and includes the following steps according to an embodiment of the present disclosure.
S1101, sending a second discovery request message to the DDNMF network element of the HPLMN of the target terminal.
Wherein the second discovery request message is used for requesting to execute the discovery measurement combination procedure.
The DDNMF network element is configured to send a second discovery measurement combining procedure verification request to the ranging application server in response to the second discovery request message, where the ranging application server is configured to verify whether the target terminal is allowed to perform ranging in the discovery process based on the second discovery measurement combining procedure verification request, and generate parameter information for discovery measurement combining procedure in case the verification result indicates that the target terminal is allowed to perform ranging in the discovery process.
In some embodiments, the second discovery request message includes a discovery measurement combination procedure indication for requesting verification whether the target terminal is allowed to perform ranging in the discovery process.
That is, the DDNMF network element may autonomously transmit a second discovery measurement combining procedure verification request to the ranging application server in response to the second discovery request message, i.e., in response to any of the second discovery request messages, the DDNMF network element transmits the second discovery measurement combining procedure verification request to the ranging application server to verify whether the target terminal is allowed to perform ranging in the discovery process.
Or, the DDNMF network element sends a second discovery measurement combination procedure verification request to the ranging application server according to the discovery measurement combination procedure indication in the second discovery request message, that is, only in response to the second discovery request message including the discovery measurement combination procedure indication, the DDNMF network element sends the second discovery measurement combination procedure verification request to the ranging application server to verify whether the target terminal is allowed to perform ranging in the discovery process.
S1102, a discovery response message fed back by the DDNMF network element in case it is determined that the target terminal is allowed to perform ranging in the discovery process is received.
Wherein the discovery response message includes parameter information.
The DDNMF network element generates parameter information in a case where the target terminal is allowed to perform ranging in the discovery process based on the verification result, and may feed back a discovery response message including the parameter information to the target terminal, so that the target terminal can acquire the parameter information for discovery of the measurement combining procedure.
S1103, receiving the solicitation message sent by the observation terminal.
For the description and specific details of the above step S1103, reference may be made to the related description and details of the above step S701.
S1104, in case that the target terminal determines to match the observing terminal and the target terminal is allowed to perform ranging in the discovery process, feeding back the solicitation response message to the observing terminal.
The solicitation response message includes a feedback measurement signal, where the measurement signal and the feedback measurement signal are used to determine a distance between the observation terminal and the target terminal.
After receiving the solicitation message including the measurement signal sent by the observation terminal, the target terminal may perform a discovery process to determine whether the target terminal matches the observation terminal, and if the target terminal matches the observation terminal, may send a solicitation response message including the feedback measurement signal to the observation terminal.
In some embodiments, if the target terminal matches the observation terminal but the target terminal is not allowed to perform ranging in the discovery process, the target terminal may send a solicitation response message to the observation terminal that does not include the feedback measurement signal to indicate that the target terminal cannot participate in the discovery measurement combining procedure.
In other embodiments, if the target terminal does not match the observation terminal, the target terminal may not send a solicitation response message to the observation terminal, indicating that communication between the target terminal and the observation terminal is not possible.
After receiving the solicited response message including the feedback measurement signal, the observation terminal may calculate a distance between the observation terminal and the target terminal according to the measurement signal and the feedback measurement signal.
In some embodiments, if the observing terminal receives the solicitation response message excluding the feedback measurement signal, the observing terminal needs to perform ranging on the target terminal after the discovery process is completed.
In other embodiments, if the observation terminal does not receive the solicitation response message sent by the target terminal within the preset period of time, the observation terminal may determine that the target terminal does not match the observation terminal, and may not communicate with the target terminal.
It should be noted that the present embodiment is described on the basis of the embodiment shown in fig. 7, that is, steps S1101-S1102 of the present embodiment are combined with steps S701-S703 shown in fig. 7, but it should be noted that steps S1101-S1102 of the present embodiment may also be combined with steps S801-S803 shown in fig. 8, steps S901-S903 shown in fig. 9, and steps S1001-S1004 shown in fig. 10, and no complaint will be made here.
According to the ranging method of the embodiment of the present disclosure, the observation terminal transmits a solicitation message including a measurement signal to the target terminal, the target terminal feeds back a solicitation response message including a feedback measurement signal to the observation terminal in a case where the target terminal is matched with the observation terminal and the target terminal is allowed to perform ranging in a discovery process, and the observation terminal can calculate a distance with the target terminal according to the measurement signal and the feedback measurement signal. Thus, ranging between two terminals can be performed in the discovery process, thereby enabling reduction of network resource consumption and saving of power consumption of the terminals.
Fig. 12 shows a flow diagram of a ranging method according to an embodiment of the present disclosure. As shown in fig. 12, the method may be performed by an observation terminal and a target terminal, and includes the following steps.
S1201, the observation terminal 1 transmits a solicitation message including the measurement signal to the target terminal 2, the target terminal 3, the target terminal 4, and the target terminal 5, respectively. In some examples, the solicitation message may include a discovery message type or the like in addition to the measurement signal.
S1202, the target terminal matched with the observation terminal 1 feeds back to the observation terminal 1 an inquiry response message including the feedback measurement signal and the time difference between the reception of the inquiry message and the feedback inquiry response message. In some examples, the solicitation response message may also include a discovery message type or the like.
In the example shown in fig. 12, the target terminal 2 and the target terminal 3 are matched with the observation terminal 1, and S1202 includes S1202a and S1202b.
In S1202a, the target terminal 2 feeds back to the observation terminal 1 a feedback measurement signal and a time difference Δt 21 Is provided.
In S1202a, the target terminal 3 feeds back to the observation terminal 1 a feedback measurement signal and a time difference Δt 31 Is provided.
S1203, the observation terminal 1 calculates a time difference between sending the inquiry message and receiving the inquiry response message from the received inquiry response message, and calculates a distance to the target terminal feeding back the inquiry response message based on the calculated time difference and the time difference included in the inquiry response message.
In the example shown in fig. 12, the observation terminal 1 calculates the time difference between transmission of the solicitation message and reception of the solicitation response message fed back by the target terminal 2 as Δt 12 From this, it is possible to calculate the distance between the observation terminal 1 and the target terminal 2 as (Δt 12 -ΔT 21 ) x C/2; the observation terminal 1 calculates the time difference between sending the solicitation message and receiving the solicitation response message fed back by the target terminal 3 as Δt 13 From this, it is possible to calculate the distance between the observation terminal 1 and the target terminal 3 as (Δt 13 –ΔT 31 )x C/2。
Fig. 13 shows a flow diagram of a ranging verification method according to an embodiment of the present disclosure. As shown in fig. 13, the method may be performed by a DDNMF network element of the HPLMN of the observation terminal and comprises the following steps.
S1301, a first discovery request message sent by an observation terminal is received.
The first discovery request message is used for requesting to execute a discovery measurement combination process and indicating that the terminal sending the first discovery request message is an observation terminal, that is, the DDNMF network element of the HPLMN of the observation terminal can learn that the first discovery request message comes from the observation terminal according to the received first discovery request message.
S1302, responding to the first discovery request message, and sending a first discovery measurement combination flow verification request to a ranging application server.
After receiving the first discovery request message, the DDNMF network element of the HPLMN of the observation terminal may send a first discovery measurement combination procedure verification request to the ranging application server, so that the ranging application server verifies whether the observation terminal is allowed to perform ranging in the discovery process based on the first discovery measurement combination verification request.
In some embodiments, the first discovery request message may include a discovery measurement combination flow indication. The discovery measurement combining procedure is indicated for requesting verification of whether or not the observing terminal is allowed to perform ranging in the discovery process.
That is, the DDNMF network element of the HPLMN of the observing terminal may autonomously transmit a first discovery measurement combining procedure verification request to the ranging application server in response to the first discovery request message, i.e., in response to any of the first discovery request messages, to the ranging application server to verify whether the observing terminal is allowed to perform ranging in the discovery process.
Or, the DDNMF network element of the HPLMN of the observation terminal sends a first discovery measurement combination procedure verification request to the ranging application server according to the discovery measurement combination procedure indication in the first discovery request message, that is, only in response to the first discovery request message including the discovery measurement combination procedure indication, the DDNMF network element of the HPLMN of the observation terminal sends the first discovery measurement combination procedure verification request to the ranging application server to verify whether the observation terminal is allowed to perform ranging in the discovery process.
S1303, receiving a verification result from the ranging application server, and forwarding a first discovery request message to a DDNMF network element of the HPLMN of the target terminal in case the verification result indicates that the observation terminal is allowed to perform ranging in the discovery process.
The DDNMF network element of the HPLMN of the observing terminal receives the authentication result from the ranging application server, and if the authentication result indicates that the observing terminal is allowed to perform ranging in the discovery process, forwards the first discovery request message to the DDNMF network element of the HPLMN of the target terminal.
S1304, the DDNMF network element of the HPLMN of the target terminal receives a discovery response message fed back in case it is determined that the observation terminal is allowed to perform ranging on the target terminal in the discovery process.
After receiving the first discovery request message forwarded by the DDNMF network element of the HPLMN of the observation terminal, the DDNMF network element of the HPLMN of the target terminal will send a third discovery measurement combination procedure verification request to the ranging application server, so that the ranging application server will verify whether to allow the observation terminal to perform ranging on the target terminal in the discovery process based on the third discovery measurement combination procedure verification request. In case that the authentication result fed back by the ranging application server indicates that the observing terminal is allowed to perform ranging on the target terminal in the discovery process, the DDNMF network element of the HPLMN of the target terminal generates parameter information for the discovery measurement combining procedure of the observing terminal. The DDNMF network element of the HPLMN of the target terminal feeds back a discovery response message including the parameter information to the DDNMF network element of the HPLMN of the observation terminal.
In some embodiments, the first discovery request message forwarded by the DDNMF network element of the HPLMN of the observation terminal may include another discovery measurement combination procedure indication. Another discovery measurement combining procedure is indicated for requesting verification of whether the observing terminal is allowed to perform ranging on the target terminal in the discovery process.
That is, the DDNMF network element of the HPLMN of the target terminal may autonomously transmit a third discovery measurement combining procedure verification request to the ranging application server in response to the first discovery request message, i.e., in response to any of the first discovery request messages, the DDNMF network element of the HPLMN of the target terminal transmits the third discovery measurement combining procedure verification request to the ranging application server to verify whether the observing terminal is allowed to perform ranging on the target terminal in the discovery process.
Or, the DDNMF network element of the HPLMN of the target terminal sends a third discovery measurement combination procedure verification request to the ranging application server according to the other discovery measurement combination procedure indication in the first discovery request message, that is, only in response to the first discovery request message including the other discovery measurement combination procedure indication, the DDNMF network element of the HPLMN of the target terminal sends the third discovery measurement combination procedure verification request to the ranging application server to verify whether the observation terminal is allowed to perform ranging on the target terminal in the discovery process.
In some embodiments, the parameter information may include security parameters for integrity protection and/or verification of the specified information. For example, the parameter information includes a security parameter for integrity-protecting the solicited message, so that the observation terminal may send the solicited message to the target terminal after integrity-protecting the solicited message based on the security parameter. For another example, the parameter information includes a security parameter for integrity verifying the solicitation response message, so that the observation terminal can perform integrity verification on the solicitation response message based on the security parameter after receiving the integrity-protected solicitation response message.
S1305, the discovery response message is sent to the observation terminal.
According to the ranging verification method of the present embodiment, the network device can verify the observing terminal to determine whether the observing terminal is allowed to perform ranging on the target terminal in the discovery process.
Fig. 14 shows a flow diagram of a ranging verification method according to an embodiment of the present disclosure. As shown in fig. 14, the method may be performed by a DDNMF network element of the HPLMN of the target terminal and includes the following steps.
S1401, a second discovery request message sent by the target terminal is received.
The second discovery request message is used for requesting to execute a discovery measurement combination procedure and indicating that the terminal sending the second discovery request message is a target terminal, that is, the DDNMF network element of the HPLMN of the target terminal can learn that the second discovery request message comes from the target terminal according to the received second discovery request message.
S1402, in response to the second discovery request message, sends a second discovery measurement combination procedure authentication request to the ranging application server.
After receiving the second discovery request message, the DDNMF network element of the HPLMN of the target terminal may send a second discovery measurement combination procedure authentication request to the ranging application server, so that the ranging application server will verify whether to allow the target terminal to perform ranging in the discovery process based on the second discovery measurement combination authentication request.
In some embodiments, the second discovery request message may include a discovery measurement combination flow indication. The discovery measurement combining procedure indicates a procedure for requesting verification whether the target terminal is allowed to perform ranging in the discovery process.
That is, the DDNMF network element of the HPLMN of the target terminal may autonomously transmit a second discovery measurement combining procedure verification request to the ranging application server in response to the second discovery request message, i.e., in response to any of the second discovery request messages, the DDNMF network element of the HPLMN of the target terminal transmits the second discovery measurement combining procedure verification request to the ranging application server to verify whether the target terminal is allowed to perform ranging in the discovery process.
Or, the DDNMF network element of the HPLMN of the target terminal sends a second discovery measurement combination procedure verification request to the ranging application server according to the discovery measurement combination procedure indication in the second discovery request message, that is, only in response to the second discovery request message including the discovery measurement combination procedure indication, the DDNMF network element of the HPLMN of the target terminal sends the second discovery measurement combination procedure verification request to the ranging application server to verify whether the target terminal is allowed to perform ranging in the discovery process.
S1403 receives a verification result indicating whether the target terminal is allowed to perform ranging in the discovery process from the ranging application server.
S1404, in case the verification result indicates that the target terminal is allowed to perform ranging in the discovery process, generating second parameter information for the discovery measurement combination procedure of the target terminal.
In case that the authentication result fed back by the ranging application server indicates that the target terminal is allowed to perform ranging in the discovery process, the DDNMF network element of the HPLMN of the target terminal generates the second parameter information.
In some embodiments, the second parameter information may include security parameters for integrity protection and/or verification of the specified information. For example, the second parameter information includes a security parameter for integrity protecting the solicitation response message, so that the target terminal may send the solicitation response message to the observation terminal after integrity protecting the solicitation response message based on the security parameter. For another example, the second parameter information includes a security parameter for integrity verification of the solicitation message, so that the target terminal may, upon receipt of the integrity-protected solicitation message, integrity verify the solicitation message based on the security parameter.
And S1405, transmitting a second discovery response message including the second parameter information to the target terminal.
And the DDNMF network element of the HPLMN of the target terminal feeds back a second discovery response message comprising the second parameter information to the target terminal.
According to the ranging verification method of the present embodiment, the network device can verify the target terminal to determine whether the target terminal is allowed to perform ranging in the discovery process.
Fig. 15 shows a flow diagram of a ranging verification method according to an embodiment of the present disclosure. As shown in fig. 15, the method may be performed by a DDNMF network element of the HPLMN of the target terminal and includes the following steps.
S1501, a second discovery request message sent by the target terminal is received.
S1502, in response to the second discovery request message, a second discovery measurement combination procedure verification request is sent to the ranging application server.
S1503, a verification result indicating whether the target terminal is allowed to perform ranging in the discovery process is received from the ranging application server.
S1504, in a case where the verification result indicates that the target terminal is allowed to perform ranging in the discovery process, generating second parameter information for the discovery measurement combination procedure of the target terminal.
S1505, a second discovery response message including the second parameter information is transmitted to the target terminal.
For the description and specific details of the above steps S1501 to S1505, reference may be made to the related description and details of the above steps S1401 to S1405.
S1506, a first discovery request message forwarded by a DDNMF network element of the HPLMN of the observation terminal is received.
The first discovery request message is used for requesting to execute a discovery measurement combination process and indicating that the terminal sending the first discovery request message is an observation terminal, that is, the DDNMF network element of the HPLMN of the target terminal can learn that the first discovery request message comes from the observation terminal according to the received first discovery request message.
The first discovery request message is forwarded by the DDNMF network element of the HPLMN of the observing terminal to the DDNMF network element of the HPLMN of the target terminal in case the observing terminal is verified to be allowed to perform ranging in the discovery procedure.
S1507, in response to the first discovery request message, a third discovery measurement combination procedure authentication request is sent to the ranging application server.
After receiving the first discovery request message, the DDNMF network element of the HPLMN of the target terminal may send a third discovery measurement combination procedure verification request to the ranging application server, so that the ranging application server verifies whether to allow the observation terminal to perform ranging on the target terminal in the discovery process based on the third discovery measurement combination verification request to obtain a first verification result.
In some embodiments, the first discovery request message may include a discovery measurement combination flow indication. The discovery measurement combining procedure is indicated for requesting verification of whether or not the observation terminal is allowed to perform ranging on the target terminal in the discovery process.
That is, the DDNMF network element of the HPLMN of the target terminal may autonomously transmit a third discovery measurement combining procedure verification request to the ranging application server in response to the first discovery request message, i.e., in response to any of the first discovery request messages, the DDNMF network element of the HPLMN of the target terminal transmits the third discovery measurement combining procedure verification request to the ranging application server to verify whether the observing terminal is allowed to perform ranging on the target terminal in the discovery process.
Or, the DDNMF network element of the HPLMN of the target terminal sends a third discovery measurement combination procedure verification request to the ranging application server according to the discovery measurement combination procedure indication in the first discovery request message, that is, only in response to the first discovery request message including the discovery measurement combination procedure indication, the DDNMF network element of the HPLMN of the target terminal sends the third discovery measurement combination procedure verification request to the ranging application server to verify whether the observation terminal is allowed to perform ranging on the target terminal in the discovery process.
S1508 receives a verification result indicating whether or not the observation terminal is allowed to perform ranging on the target terminal in the discovery process from the ranging application server.
S1509, in the case where the verification result indicates that the observation terminal is allowed to perform ranging on the target terminal in the discovery process, generating first parameter information for the discovery measurement combination procedure of the observation target terminal.
The DDNMF network element of the HPLMN of the target terminal generates first parameter information in case that the authentication result fed back by the ranging application server indicates that the observation terminal is allowed to perform ranging on the target terminal in the discovery process.
In some embodiments, the first parameter information may further include security parameters for integrity protection and/or verification of the specified information. For example, the first parameter information includes a security parameter for integrity protecting the solicited message, so that the observation terminal may send the solicited message to the target terminal after integrity protecting the solicited message based on the security parameter. For another example, the first parameter information includes a security parameter for integrity verifying the solicitation response message, so that the observation terminal can perform integrity verification on the solicitation response message based on the security parameter after receiving the integrity-protected solicitation response message.
S1510, transmitting a first discovery response message including the first parameter information to the DDNMF network element of the HPLMN of the viewing terminal.
The DDNMF network element of the HPLMN of the target terminal feeds back a first discovery response message including the first parameter information to the DDNMF network element of the HPLMN of the observation terminal, and the DDNMF network element of the HPLMN of the observation terminal may feed back the first discovery response message to the observation terminal.
According to the ranging verification method of the present embodiment, the network device can verify the target terminal to determine whether the target terminal is allowed to perform ranging in the discovery process, and verify the observing terminal to determine whether the observing terminal is allowed to perform ranging on the target terminal in the discovery process.
Fig. 16 shows a flow diagram of a ranging verification method according to an embodiment of the present disclosure. As shown in fig. 16, the method for authenticating an observation terminal may include the following steps.
S1601, a first discovery measurement combination flow verification request sent by a DDNMF network element of an HPLMN of the observation terminal is received.
Wherein the first discovery measurement combining procedure authentication request is used to request authentication whether the observation terminal is allowed to perform ranging in the discovery process.
The first discovery measurement combination flow verification request is sent by the DDNMF network element of the HPLMN of the observing terminal based on a first discovery request message received from the observing terminal.
S1602, it is verified whether the observation terminal is allowed to perform ranging in the discovery process to obtain an intermediate verification result.
The ranging application server verifies whether the observing terminal is allowed to perform ranging in the discovery process in response to the first discovery measurement combination verification request.
And S1603, feeding back the intermediate verification result to the DDNMF network element of the HPLMN of the observation terminal.
S1604, a third discovery measurement combination procedure verification request sent by the DDNMF network element of the HPLMN of the target terminal is received.
Wherein the third discovery measurement combination flow verification request is used to request verification whether the observation terminal is allowed to perform ranging on the target terminal in the discovery process.
The third discovery measurement combined flow verification request is sent by the DDNMF network element of the HPLMN of the target terminal based on the first discovery request message received from the DDNMF network element of the HPLMN of the observation terminal. The first discovery request message is forwarded by the DDNMF network element of the HPLMN of the observing terminal to the DDNMF network element of the HPLMN of the target terminal in case the observing terminal is verified as being allowed to perform ranging during discovery (i.e. the intermediate verification result indicates that the observing terminal is allowed to perform ranging during discovery).
S1605, verifying whether the observation terminal is allowed to perform ranging on the target terminal in the discovery process to obtain a first verification result.
The ranging application server verifies whether the observing terminal is allowed to perform ranging on the target terminal in the discovery process in response to the third discovery measurement combination verification request. If the target terminal is not verified as allowing ranging to be performed in the discovery process, the ranging application server obtains a first verification result that the observation terminal is not allowed to perform ranging on the target terminal in the discovery process. The first verification result obtained by the ranging application server may be to allow the observing terminal to perform ranging on the target terminal in the discovery process if the target terminal has been verified to allow the ranging to be performed in the discovery process.
S1606, the first verification result is fed back to the DDNMF network element of the HPLMN of the target terminal.
The DDNMF network element of the HPLMN of the target terminal generates first parameter information when the first verification result fed back by the ranging application server indicates that the observing terminal is allowed to perform ranging on the target terminal in the discovery process, and sends a first discovery response message including the first parameter information to the DDNMF network element of the HPLMN of the observing terminal, and the DDNMF network element of the HPLMN of the observing terminal may feed back the first discovery response message to the observing terminal.
In some embodiments, the first parameter information may include security parameters for integrity protection and/or verification of the specified information. For example, the first parameter information includes a security parameter for integrity protecting the solicited message, so that the observation terminal may send the solicited message to the target terminal after integrity protecting the solicited message based on the security parameter. For another example, the first parameter information includes a security parameter for integrity verifying the solicitation response message, so that the observation terminal can perform integrity verification on the solicitation response message based on the security parameter after receiving the integrity-protected solicitation response message.
According to the ranging verification method of the present embodiment, the network device can verify the observing terminal to determine whether the observing terminal is allowed to perform ranging in the discovery process and whether the observing terminal is allowed to perform ranging on a specific target terminal in the discovery process.
Fig. 17 shows a flow diagram of a ranging verification method according to an embodiment of the present disclosure. As shown in fig. 17, the method for authenticating a target terminal may include the following steps.
S1701, a second discovery measurement combination flow verification request sent by a DDNMF network element of the HPLMN of the target terminal is received.
Wherein the second discovery measurement combining procedure authentication request is for requesting authentication whether the target terminal is allowed to perform ranging in the discovery process.
The second discovery measurement combined flow verification request is sent by the DDNMF network element of the HPLMN of the target terminal based on a second discovery request message received from the target terminal.
S1702, it is verified whether the target terminal is allowed to perform ranging in the discovery process to obtain a second verification result.
The ranging application server verifies whether the target terminal is allowed to perform ranging in the discovery process in response to the second discovery measurement combination verification request.
And S1703, feeding back the second verification result to the DDNMF network element of the HPLMN of the target terminal.
The DDNMF network element of the HPLMN of the target terminal generates second parameter information in case that the second authentication result fed back by the ranging application server indicates that the target terminal is allowed to perform ranging in the discovery process, and transmits a second discovery response message including the second parameter information to the target terminal.
In some embodiments, the second parameter information may further include security parameters for integrity protection and/or verification of the specified information. For example, the second parameter information includes a security parameter for integrity protecting the solicitation response message, so that the target terminal may send the solicitation response message to the observation terminal after integrity protecting the solicitation response message based on the security parameter. For another example, the second parameter information includes a security parameter for integrity verification of the solicitation message, so that the target terminal may, upon receipt of the integrity-protected solicitation message, integrity verify the solicitation message based on the security parameter.
According to the ranging verification method of the present embodiment, the network device can verify the observing terminal to determine whether the observing terminal is allowed to perform ranging in the discovery process and to perform ranging on a specific target terminal in the discovery process, and can verify the target terminal to determine whether the target terminal is allowed to perform ranging in the discovery process.
Fig. 18 shows a flow diagram of a discovery measurement combining flow according to an embodiment of the disclosure. As shown in fig. 18, the procedure may be performed by the observation terminal, the target terminal, the DDNMF network element of the HPLMN of the observation terminal, the DDNMF network element of the HPLMN of the target terminal, the DDNMF network element of the VPLMN, and the ranging application server, and includes the following steps.
S1801, the target terminal sends a second discovery request message to the DDNMF network element of the HPLMN of the target terminal, so as to obtain the monitoring query and security protection parameters of the discovery query filter. The second discovery request message may include an indicator for indicating that the target terminal requests discovery of the measurement combination procedure.
S1802, the DDNMF network element of the HPLMN of the target terminal requests to perform discovery measurement combining procedure verification from the ranging application server based on the indicator or the local configuration, and the ranging application server verifies whether the target terminal is allowed to perform ranging in the discovery process and feeds back the verification result. The DDNMF network element of the HPLMN of the target terminal generates parameter information for the discovery measurement combination procedure of the target terminal based on the verification result.
S1803, the DDNMF network element of the HPLMN of the target terminal and the DDNMF network element of the VPLMN exchange authentication messages. If the target terminal is not roaming, this step may be omitted.
S1804, the DDNMF network element of the HPLMN of the target terminal returns a discovery response message to the target terminal, including the following parameter information: including security protection parameters (such as transmit security parameters and receive security parameters) corresponding to each discovery filter, as well as current time, maximum offset, etc. The receiving security parameter provides necessary information for the target terminal to eliminate the protection of the appointed message by the observation terminal.
S1805, the observation terminal sends a first discovery request message to the DDNMF network element of the HPLMN of the observation terminal to allow discovery of one or more target terminals. The first discovery request message may include an indicator for indicating that the observing terminal requests discovery of the measurement combining procedure.
S1806, the DDNMF network element of the HPLMN of the observation terminal requests to perform discovery measurement combining procedure verification from the ranging application server based on the indicator or the local configuration, and the ranging application server verifies whether the observation terminal is allowed to perform ranging in the discovery process and feeds back the verification result.
S1807, if the first discovery request message sent by the observation terminal is verified, the DDNMF network element of the HPLMN of the observation terminal forwards the first discovery request message to the DDNMF network element of the HPLMN of the target terminal.
S1808, the DDNMF network element of the HPLMN of the target terminal requests to the ranging application server to perform discovery measurement combining procedure verification, and the ranging application server verifies whether the observation terminal is allowed to perform ranging on the target terminal in the discovery process and feeds back the verification result. The DDNMF network element of the HPLMN of the target terminal generates parameter information for observing the discovery measurement combination procedure of the terminal based on the verification result.
S1809, the DDNMF network element of the HPLMN of the target terminal returns a discovery response message to the DDNMF network element of the HPLMN of the observation terminal, including the following parameter information: transmit security parameters, receive security parameters, such as DUIK. Wherein receiving the security parameters provides the observation terminal with the necessary information to eliminate protection of the specified message by the target terminal. .
S1810, the DDNMF network element of the HPLMN and the DDNMF network element of the VPLMN of the observation terminal exchange authentication messages. If the viewing terminal is not roaming, this step may be omitted.
S1811, the DDNMF network element of the HPLMN of the observation terminal returns a discovery response message including parameters such as a send security parameter and a receive security parameter to the observation terminal.
S1812, the observation terminal transmits a solicitation message including the measurement signal to the target terminal and listens for the solicitation response message. The solicitation message is integrity protected by appending a MIC calculated using DUIK to the end of the solicitation message before sending the solicitation message.
S1813, the target terminal listens for the solicitation message satisfying its discovery filter. In order to find a matching message, the target terminal performs integrity verification of the received solicitation message using DUIK contained in the received security parameters received by the target terminal.
S1814, if the integrity is successfully verified, the target terminal returns an integrity-protected solicitation response message including the feedback measurement signal and the time difference between receipt of the solicitation message and the feedback solicitation response message. The challenge response message is integrity protected by appending a MIC calculated using DUIK to the end of the challenge response message.
S1815, the observation terminal listens for the solicitation response message satisfying its discovery filter. In order to find a matching message, the target terminal performs integrity verification of the received solicitation response message using DUIK contained in the received security parameters received by the observation terminal. After successful verification, the viewing terminal may calculate the distance to the target terminal.
S1816, after receiving the solicited response message, the observation terminal can report a matching report to a DDNMF network element of the HPLMN of the observation terminal, wherein the matching report can comprise information such as current time, MIC and the like.
S1817, the DDNMF network element of the HPLMN of the observation terminal may optionally request re-authentication from the ranging application server after receiving the matching report.
S1818, after successfully checking the MIC, the DDNMF network element of the HPLMN of the observation terminal may return the matching report acknowledgement information to the observation terminal, where the matching report acknowledgement information may include a matching report refresh time.
S1819, optionally, the DDNMF network element of the HPLMN of the observation terminal may further send a detection report to the DDNMF network element of the HPLMN of the target terminal.
The above S1816 to S1819 are optional, and are performed only when the MIC needs to be checked.
In the embodiment of the present application, the method provided by the embodiment of the present application is described from the angles of the network device and the user device, respectively. In order to implement the functions in the method provided by the embodiment of the present application, the network device and the user device may include hardware structures, software modules, and implement the functions in the form of hardware structures, software modules, or both hardware structures and software modules. Some of the above functions can be implemented in hardware structure, software module, or both
Corresponding to the ranging methods provided in the above embodiments, the present disclosure also provides a ranging apparatus, and since the ranging apparatus provided in the embodiments of the present disclosure corresponds to the ranging method provided in the above embodiments, implementation of the ranging method is also applicable to the ranging apparatus provided in the embodiments, and will not be described in detail in the embodiments.
Fig. 19 is a schematic structural diagram of a ranging apparatus 1900 according to an embodiment of the disclosure.
As shown in fig. 19, the apparatus 1900 is applied to a first terminal, where the first terminal is a terminal that initiates a discovery measurement combination procedure for performing ranging in a discovery process, and the apparatus 1900 may include a transceiver module 1901 and a processing module 1902.
The transceiver module 1901 is configured to send a query message to a second terminal, where the second terminal is a terminal to be discovered to perform a discovery measurement combination procedure, the query message is used to instruct the second terminal to perform discovery matching with the first terminal, and the query message includes a measurement signal; and receiving a query response message fed back by the second terminal aiming at the query message, wherein the query response message is sent when the second terminal determines that the query response message is matched with the first terminal, and the query response message comprises a feedback measurement signal.
The processing module 1902 is configured to calculate a distance to the second terminal based on the measurement signal and the feedback measurement signal.
According to the ranging apparatus of the embodiment of the present disclosure, an observation terminal transmits a solicitation message to a target terminal in a case where the observation terminal is allowed to perform ranging on the target terminal in a discovery process, the target terminal feeds back a solicitation response message to the observation terminal in a case where the target terminal is matched with the observation terminal and the target terminal is allowed to perform ranging in a discovery process, and the observation terminal calculates a distance to the target terminal according to a measurement signal in the solicitation message and a feedback measurement signal in the solicitation response message. Thus, ranging between two terminals can be performed in the discovery process, thereby enabling reduction of network resource consumption and saving of power consumption of the terminals.
In some embodiments, the processing module 1902 is configured to integrity protect the solicitation message.
In some embodiments, the processing module 1902 is configured to calculate a message authentication code based on security parameters received from a first proximity service discovery management function DDNMF network element of a first local public land mobile network HPLMN of the first terminal; and attaching the message authentication code to the end of the solicitation message to integrity protect the solicitation message.
In some embodiments, the processing module 1902 is configured to verify the integrity of the solicitation response message and, if the integrity of the solicitation response message is successfully verified, calculate a distance to the second terminal based on the measurement signal and the feedback measurement signal.
In some embodiments, the processing module 1902 is configured to verify the integrity of the solicitation response message based on security parameters received from the first DDNMF network element.
In some embodiments, the transceiver module 1901 is configured to: sending a first discovery request message to a first DDNMF network element, wherein the first discovery request message is used for requesting to execute a discovery measurement combination procedure; receiving a discovery response message fed back by the first DDNMF network element when determining that the first terminal is allowed to perform ranging on the second terminal in a discovery process, wherein the discovery response message comprises parameter information for the discovery measurement combination flow; and transmitting a poll message to the second terminal in case the first terminal is allowed to perform ranging to the second terminal in the discovery process.
In some embodiments, the first discovery request message includes a discovery measurement combination procedure indication for requesting verification whether the first terminal is allowed to perform ranging on the second terminal in a discovery process.
Fig. 20 is a schematic structural diagram of a ranging apparatus 2000 according to an embodiment of the disclosure.
As shown in fig. 20, the apparatus 2000 is applied to a second terminal, which is a terminal to be discovered to perform a discovery measurement combining procedure for performing ranging in a discovery process, and the apparatus 2000 may include a transceiving module 2001.
The transceiver module 2001 is configured to receive a query message sent by a first terminal, where the first terminal is a terminal that initiates a discovery measurement combination procedure, the query message is used to instruct the second terminal to perform discovery matching with the first terminal, and the query message includes a measurement signal; and feeding back a poll response message to the first terminal if the second terminal determines that the first terminal is matched with the poll response message, wherein the poll response message comprises a feedback measurement signal, and the measurement signal and the feedback measurement signal are used for determining the distance between the first terminal and the second terminal.
According to the ranging apparatus of the embodiment of the present disclosure, an observation terminal transmits a solicitation message to a target terminal in a case where the observation terminal is allowed to perform ranging on the target terminal in a discovery process, the target terminal feeds back a solicitation response message to the observation terminal in a case where the target terminal is matched with the observation terminal and the target terminal is allowed to perform ranging in a discovery process, and the observation terminal calculates a distance to the target terminal according to a measurement signal in the solicitation message and a feedback measurement signal in the solicitation response message. Thus, ranging between two terminals can be performed in the discovery process, thereby enabling reduction of network resource consumption and saving of power consumption of the terminals.
In some embodiments, the apparatus 2000 further comprises a processing module 2002 for verifying the integrity of the solicitation message; wherein the feeding back the poll response message to the first terminal comprises: and feeding back the solicitation response message to the first terminal under the condition that the integrity of the solicitation message is successfully verified.
In some embodiments, the processing module 2002 is configured to verify the integrity of the solicitation message based on security parameters received from a second proximity service discovery management function DDNMF network element of a second local public land mobile network HPLMN of the second terminal.
In some embodiments, the processing module 2002 is configured to integrity protect the solicitation response message.
In some embodiments, the processing module 2002 is configured to calculate a message authentication code based on security parameters received from the second DDNMF network element; and attaching the message authentication code to the end of the solicitation response message to integrity protect the solicitation response message.
In some embodiments, the transceiver module 2001 is configured to: sending a second discovery request message to the second DDNMF network element, wherein the second discovery request message is used for requesting to execute a discovery measurement combination procedure; and receiving a discovery response message fed back by the second DDNMF network element in the case that it is determined that the second terminal is allowed to perform ranging in a discovery process, wherein the discovery response message includes parameter information for the discovery measurement combination procedure; wherein the feeding back the poll response message to the first terminal includes: in case the second terminal determines to match the first terminal and the second terminal is allowed to perform ranging in a discovery process, a poll response message is fed back to the first terminal.
In some embodiments, the second discovery request message includes a discovery measurement combination verification indication, the discovery measurement combination procedure indication requesting verification whether the second terminal is allowed to perform ranging in a discovery procedure.
Corresponding to the ranging verification methods provided in the above embodiments, the present disclosure also provides a ranging verification device, and since the ranging verification device provided in the embodiment of the present disclosure corresponds to the ranging verification method provided in the above embodiments, implementation of the ranging method is also applicable to the ranging verification device provided in the embodiment, which is not described in detail in the embodiment.
Fig. 21 is a schematic structural diagram of a ranging verification device 2100 according to an embodiment of the present disclosure.
As shown in fig. 21, the apparatus 2100 is applied to a first proximity service discovery management function DDNMF network element of a first local public land mobile network HPLMN of a first terminal, and the apparatus 2100 may include a transceiving module 2101.
The transceiver module 2101 is configured to: receiving a first discovery request message sent by the first terminal, wherein the first discovery request message is used for requesting to execute a discovery measurement combination procedure and indicating the first terminal sending the first discovery request message as a terminal initiating the discovery measurement combination procedure, and the discovery measurement combination procedure is used for executing ranging in the discovery process; in response to the first discovery request message, sending a first discovery measurement combination flow verification request to a ranging application server, the ranging application server being configured to verify whether to allow the first terminal to perform ranging in a discovery process based on the first discovery measurement combination verification request; receiving a verification result from a ranging application server, and forwarding the first discovery request message to a second DDNMF network element of a second HPLMN of a second terminal, which is a terminal to be discovered to perform a discovery measurement combining procedure, in case the verification result indicates that the first terminal is allowed to perform ranging in a discovery procedure; receiving a discovery response message fed back by the second DDNMF network element in a case that it is determined that the first terminal is allowed to perform ranging on the second terminal in a discovery process, wherein the discovery response message includes parameter information for the discovery measurement combination procedure; and transmitting the discovery response message to the first terminal.
According to the ranging verification apparatus of the present embodiment, the network device can verify the observing terminal to determine whether the observing terminal is allowed to perform ranging in the discovery process and whether the observing terminal is allowed to perform ranging on a specific target terminal in the discovery process. Further, the network device can verify the target terminal to determine whether the target terminal is allowed to perform ranging in the discovery process. Thereby, it can be verified whether the terminal can perform the discovery measurement combination flow.
In some embodiments, the parameter information includes security parameters for integrity protection and/or verification of the specified information.
In some embodiments, the first discovery request message includes a discovery measurement combination procedure indication for requesting verification that the first terminal is allowed to perform ranging in a discovery process and verification that the first terminal is allowed to perform ranging on the second terminal in a discovery process.
Fig. 22 is a schematic structural diagram of a ranging verification device 2200 according to an embodiment of the disclosure.
As shown in fig. 22, the apparatus 2200 is applied to a first proximity service discovery management function DDNMF network element of a first local public land mobile network HPLMN of a first terminal, and the apparatus 2200 may comprise a transceiving module 2201 and a processing module 2202.
The transceiver module 2201 is configured to: receiving a second discovery request message sent by a second terminal, wherein the second discovery request message is used for requesting to execute a discovery measurement combination procedure and indicating the second terminal sending the second discovery request message as a terminal to be discovered to perform the discovery measurement combination procedure, and the discovery measurement combination procedure is used for executing ranging in the discovery process; in response to the second discovery request message, sending a second discovery measurement combination procedure verification request to a ranging application server, the ranging application server verifying whether the second terminal is allowed to perform ranging in a discovery process based on the second discovery measurement combination procedure verification request; and receiving a verification result from the ranging application server.
The processing module 2202 is configured to generate second parameter information for a discovery measurement combining procedure of the second terminal, in a case where the verification result indicates that the second terminal is allowed to perform ranging in a discovery procedure.
The transceiver module 2201 is further configured to send a second discovery response message including the second parameter information to the second terminal.
According to the ranging verification apparatus of the present embodiment, the network device can verify the observing terminal to determine whether the observing terminal is allowed to perform ranging in the discovery process and whether the observing terminal is allowed to perform ranging on a specific target terminal in the discovery process. Further, the network device can verify the target terminal to determine whether the target terminal is allowed to perform ranging in the discovery process. Thereby, it can be verified whether the terminal can perform the discovery measurement combination flow.
The transceiver module 2201 is further configured to receive a first discovery request message forwarded by a first DDNMF network element of a first HPLMN of a first terminal, where the first discovery request message is used to request to execute a discovery measurement combination procedure and indicate that the first terminal that sends the first discovery request message is a terminal that initiates the discovery measurement combination procedure; and responding to the first discovery request message, sending a first discovery measurement combination flow verification request to the ranging application server, wherein the ranging application server verifies whether the first terminal is allowed to perform ranging on the second terminal in the discovery process based on the first discovery measurement combination flow verification request.
The processing module 2202 is further configured to generate first parameter information for a discovery measurement combining procedure of the first terminal, in a case where the verification result indicates that the first terminal is allowed to perform ranging on the second terminal in a discovery process.
The transceiver module 2201 is further configured to send a first discovery response message including the first parameter information to the first DDNMF network element.
In some embodiments, the first parameter information and the second parameter information each include security parameters for integrity protection and/or verification of specified information.
In some embodiments, the second discovery request message includes a second discovery measurement combination procedure indication for requesting verification whether the second terminal is allowed to perform ranging in a discovery procedure.
In some embodiments, the first discovery request message includes a first discovery measurement combination procedure indication for requesting verification whether the first terminal is allowed to perform ranging on the second terminal in a discovery procedure.
Fig. 23 is a schematic structural diagram of a ranging verification device 2300 according to an embodiment of the disclosure.
As shown in fig. 23, the apparatus 2300 is applied to a first proximity service discovery management function DDNMF network element of a first local public land mobile network HPLMN of a first terminal, and the apparatus 2300 may include a transceiver module 2301 and a processing module 2302.
The transceiver module 2301 is configured to receive a first discovery measurement combining procedure verification request sent by a first DDNMF network element of a first local public land mobile network HPLMN of a first terminal, where the first terminal is a terminal that initiates a discovery measurement combining procedure, the discovery measurement combining procedure is used to perform ranging in a discovery process, and the first discovery measurement combining procedure verification request is used to request to verify whether to allow the first terminal to perform ranging in the discovery process.
The processing module 2302 is configured to verify whether the first terminal is allowed to perform ranging during discovery.
The transceiver module 2301 is further configured to feed back a first verification result to the first DDNMF network element; and receiving a second discovery measurement combination flow verification request sent by a second DDNMF network element of a second HPLMN of a second terminal, wherein the second terminal is a terminal to be discovered to perform a discovery measurement combination flow, and the second discovery measurement combination flow verification request is used for requesting to verify whether the first terminal is allowed to perform ranging on the second terminal in a discovery process.
The processing module 2302 is also configured to verify whether the first terminal is allowed to perform ranging on the second terminal during discovery.
The transceiver module 2301 is further configured to feed back a second verification result to the second DDNMF network element, where the second DDNMF network element generates first parameter information for a discovery measurement combining procedure of the first terminal if the second verification result indicates that the first terminal is allowed to perform ranging on the second terminal in a discovery process.
According to the ranging verification apparatus of the present embodiment, the network device can verify the observing terminal to determine whether the observing terminal is allowed to perform ranging in the discovery process and whether the observing terminal is allowed to perform ranging on a specific target terminal in the discovery process. Further, the network device can verify the target terminal to determine whether the target terminal is allowed to perform ranging in the discovery process. Thereby, it can be verified whether the terminal can perform the discovery measurement combination flow.
In some embodiments, the transceiver module 2301 is further configured to receive a third discovery measurement combining procedure verification request sent by the second DDNMF network element, where the third discovery measurement combining procedure verification request is used to request verification whether to allow the second terminal to perform ranging in a discovery procedure.
The processing module 2302 is also configured to verify whether the second terminal is allowed to perform ranging during discovery.
The transceiver module 2301 is further configured to feed back a verification result to the second DDNMF network element, where the second DDNMF network element generates second parameter information for a discovery measurement combination procedure of the second terminal if the verification result indicates that the second terminal is allowed to perform ranging in a discovery procedure.
Referring to fig. 24, fig. 24 is a schematic structural diagram of a communication device 2400 according to an embodiment of the present application. The communication device 2400 may be a network device, a user device, a chip system, a processor, or the like that supports the network device to implement the above method, or a chip, a chip system, a processor, or the like that supports the user device to implement the above method. The device can be used for realizing the method described in the method embodiment, and can be particularly referred to the description in the method embodiment.
Communication device 2400 may include one or more processors 2401. The processor 2401 may be a general-purpose processor or a special-purpose processor, or the like. For example, a baseband processor or a central processing unit. The baseband processor may be used to process communication protocols and communication data, and the central processor may be used to control communication devices (e.g., base stations, baseband chips, terminal equipment chips, DUs or CUs, etc.), execute computer programs, and process data of the computer programs.
Optionally, the communication device 2400 may further include one or more memories 2402, on which a computer program 2404 may be stored, and the processor 2401 executes the computer program 2404, so that the communication device 2400 performs the method described in the above method embodiment. Optionally, the memory 2402 may also store data therein. The communication device 2400 and the memory 2402 may be provided separately or may be integrated.
Optionally, the communication device 2400 may further include a transceiver 2405, an antenna 2406. The transceiver 2405 may be referred to as a transceiver unit, a transceiver circuit, or the like for implementing a transceiver function. The transceiver 2405 may include a receiver, which may be referred to as a receiver or a receiving circuit, etc., for implementing a receiving function; the transmitter may be referred to as a transmitter or a transmitting circuit, etc., for implementing a transmitting function.
Optionally, one or more interface circuits 2407 may also be included in the communication device 2400. The interface circuit 2407 is configured to receive code instructions and transmit the code instructions to the processor 2401. The processor 2401 executes the code instructions to cause the communication device 2400 to perform the methods described in the method embodiments described above.
In one implementation, a transceiver for implementing receive and transmit functions may be included in processor 2401. For example, the transceiver may be a transceiver circuit, or an interface circuit. The transceiver circuitry, interface or interface circuitry for implementing the receive and transmit functions may be separate or may be integrated. The transceiver circuit, interface or interface circuit may be used for reading and writing codes/data, or the transceiver circuit, interface or interface circuit may be used for transmitting or transferring signals.
In one implementation, the processor 2401 may store a computer program 2403, where the computer program 2403 runs on the processor 2401, and may cause the communication device 2400 to perform the method described in the above method embodiment. The computer program 2403 may be solidified in the processor 2401, in which case the processor 2401 may be implemented by hardware.
In one implementation, communication device 2400 may include circuitry that may implement the functions of transmitting or receiving or communicating in the foregoing method embodiments. The processors and transceivers described in the present application may be implemented on integrated circuits (integrated circuit, ICs), analog ICs, radio frequency integrated circuits RFICs, mixed signal ICs, application specific integrated circuits (application specific integrated circuit, ASIC), printed circuit boards (printed circuit board, PCB), electronic devices, and the like. The processor and transceiver may also be fabricated using a variety of IC process technologies such as complementary metal oxide semiconductor (complementary metal oxide semiconductor, CMOS), N-type metal oxide semiconductor (NMOS), P-type metal oxide semiconductor (positive channel metal oxide semiconductor, PMOS), bipolar junction transistor (bipolar junction transistor, BJT), bipolar CMOS (BiCMOS), silicon germanium (SiGe), gallium arsenide (GaAs), etc.
The communication apparatus described in the above embodiment may be a network device or a user device, but the scope of the communication apparatus described in the present application is not limited thereto, and the structure of the communication apparatus may not be limited by fig. 24. The communication means may be a stand-alone device or may be part of a larger device. For example, the communication device may be:
(1) A stand-alone integrated circuit IC, or chip, or a system-on-a-chip or subsystem;
(2) A set of one or more ICs, optionally including storage means for storing data, a computer program;
(3) An ASIC, such as a Modem (Modem);
(4) Modules that may be embedded within other devices;
(5) A receiver, a terminal device, an intelligent terminal device, a cellular phone, a wireless device, a handset, a mobile unit, a vehicle-mounted device, a network device, a cloud device, an artificial intelligent device, and the like;
(6) Others, and so on.
For the case where the communication device may be a chip or a chip system, reference may be made to the schematic structural diagram of the chip shown in fig. 25. The chip shown in fig. 25 includes a processor 2501 and an interface 2502. Wherein the number of processors 2501 may be one or more, and the number of interfaces 2502 may be a plurality.
Optionally, the chip further comprises a memory 2503, the memory 2503 being used for storing the necessary computer programs and data.
Those of skill in the art will further appreciate that the various illustrative logical blocks (illustrative logical block) and steps (step) described in connection with the embodiments of the present application may be implemented by electronic hardware, computer software, or combinations of both. Whether such functionality is implemented as hardware or software depends upon the particular application and design requirements of the overall system. Those skilled in the art may implement the described functionality in varying ways for each particular application, but such implementation is not to be understood as beyond the scope of the embodiments of the present application.
The embodiment of the application also provides a ranging system, which comprises the communication device used as the user equipment in the embodiment of the foregoing fig. 19-20 and the communication device used as the network equipment in the embodiment of the foregoing fig. 21-23, or comprises the communication device used as the user equipment in the embodiment of the foregoing fig. 24 and the communication device used as the network equipment.
The application also provides a readable storage medium having stored thereon instructions which when executed by a computer perform the functions of any of the method embodiments described above.
The application also provides a computer program product which, when executed by a computer, implements the functions of any of the method embodiments described above.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product comprises one or more computer programs. When the computer program is loaded and executed on a computer, the flow or functions according to the embodiments of the present application are fully or partially produced. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer program may be stored in or transmitted from one computer readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means from one website, computer, server, or data center. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a high-density digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
Those of ordinary skill in the art will appreciate that: the first, second, etc. numbers referred to in the present application are merely for convenience of description and are not intended to limit the scope of the embodiments of the present application, but also to indicate the sequence.
At least one of the present application may also be described as one or more, and a plurality may be two, three, four or more, and the present application is not limited thereto. In the embodiment of the application, for a technical feature, the technical features of the technical feature are distinguished by a first, a second, a third, a, B, a C, a D and the like, and the technical features described by the first, the second, the third, the a, the B, the C, the D are not in sequence or in order of magnitude.
As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel, sequentially, or in a different order, provided that the desired results of the disclosed aspects are achieved, and are not limited herein.
Furthermore, it is to be understood that the various embodiments of the application described herein may be practiced alone or in combination with other embodiments as the scheme permits.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (31)

  1. A ranging method, wherein the method is performed by a first terminal, wherein the first terminal is a terminal that initiates a discovery measurement combining procedure for performing ranging in a discovery process, the method comprising:
    sending a query message to a second terminal, wherein the second terminal is a terminal to be discovered to perform a discovery measurement combination process, the query message is used for indicating the second terminal to perform discovery matching with the first terminal, and the query message comprises a measurement signal;
    receiving a query response message fed back by the second terminal aiming at the query message, wherein the query response message is sent when the second terminal determines that the query response message is matched with the first terminal, and the query response message comprises a feedback measurement signal; and
    and calculating a distance from the second terminal based on the measurement signal and the feedback measurement signal.
  2. The method of claim 1, further comprising, prior to sending the solicitation message to the second terminal:
    and carrying out integrity protection on the solicited message.
  3. The method of claim 2, wherein the integrity protecting the solicitation message comprises:
    Calculating a message authentication code based on security parameters received from a first proximity service discovery management function DDNMF network element of a first local public land mobile network HPLMN of the first terminal; and
    and attaching the message verification code to the end of the solicitation message to integrity protect the solicitation message.
  4. The method of claim 1, wherein the solicitation response message is an integrity-protected message, the method further comprising:
    verifying the integrity of the solicitation response message;
    wherein said calculating a distance to said second terminal based on said measurement signal and said feedback measurement signal comprises:
    in case of successful verification of the integrity of the solicitation response message, a distance to the second terminal is calculated based on the measurement signal and the feedback measurement signal.
  5. The method of claim 4, wherein said verifying the integrity of the solicitation response message comprises:
    the integrity of the solicitation response message is verified based on security parameters received from the first DDNMF network element.
  6. The method of any one of claims 1-5, further comprising:
    Sending a first discovery request message to the first DDNMF network element, wherein the first discovery request message is used for requesting to execute a discovery measurement combination procedure; and
    receiving a discovery response message fed back by the first DDNMF network element when determining that the first terminal is allowed to perform ranging on the second terminal in a discovery process, wherein the discovery response message comprises parameter information for the discovery measurement combination flow;
    wherein, the sending the solicitation message to the second terminal includes:
    and transmitting a poll message to the second terminal in case the first terminal is allowed to perform ranging to the second terminal in the discovery process.
  7. The method of claim 6, wherein the first discovery request message includes a discovery measurement combination procedure indication for requesting verification whether the first terminal is allowed to perform ranging on the second terminal in a discovery procedure.
  8. A ranging method, the method being performed by a second terminal, wherein the second terminal is a terminal to be discovered for performing a discovery measurement combining procedure for performing ranging in a discovery procedure, the method comprising:
    Receiving a query message sent by a first terminal, wherein the first terminal is a terminal initiating a discovery measurement combination process, the query message is used for indicating the second terminal to perform discovery matching with the first terminal, and the query message comprises a measurement signal; and
    and feeding back a poll response message to the first terminal, wherein the poll response message comprises a feedback measurement signal,
    wherein the measurement signal and the feedback measurement signal are used to determine a distance between the first terminal and the second terminal.
  9. The method of claim 8, wherein the solicitation message is an integrity-protected message, the method further comprising:
    verifying the integrity of the solicited message;
    wherein the feeding back the poll response message to the first terminal comprises:
    and feeding back the solicitation response message to the first terminal under the condition that the integrity of the solicitation message is successfully verified.
  10. The method of claim 9, wherein the verifying the integrity of the solicitation message comprises:
    the integrity of the solicitation message is verified based on security parameters received from a second proximity service discovery management function DDNMF network element of a second local public land mobile network HPLMN of the second terminal.
  11. The method of claim 8, further comprising, prior to sending the poll response message to the first terminal:
    and carrying out integrity protection on the solicitation response message.
  12. The method of claim 11, wherein the integrity protecting the solicitation response message comprises:
    calculating a message authentication code based on security parameters received from the second DDNMF network element; and
    and attaching the message verification code to the tail of the solicitation response message to carry out integrity protection on the solicitation response message.
  13. The method of any one of claims 8-12, further comprising:
    sending a second discovery request message to the second DDNMF network element, wherein the second discovery request message is used for requesting to execute a discovery measurement combination procedure; and
    receiving a discovery response message fed back by the second DDNMF network element under the condition that the second terminal is determined to be allowed to perform ranging in a discovery process, wherein the discovery response message comprises parameter information for the discovery measurement combination flow;
    wherein the feeding back the poll response message to the first terminal includes:
    In case the second terminal determines to match the first terminal and the second terminal is allowed to perform ranging in a discovery process, a poll response message is fed back to the first terminal.
  14. The method of claim 13, wherein the second discovery request message includes a discovery measurement combination verification indication, the discovery measurement combination procedure indication requesting verification whether the second terminal is allowed to perform ranging in a discovery procedure.
  15. A ranging verification method, characterized in that the method is performed by a first proximity service discovery management function DDNMF network element of a first local public land mobile network HPLMN of a first terminal, the method comprising:
    receiving a first discovery request message sent by the first terminal, wherein the first discovery request message is used for requesting to execute a discovery measurement combination procedure and indicating the first terminal sending the first discovery request message as a terminal initiating the discovery measurement combination procedure, and the discovery measurement combination procedure is used for executing ranging in the discovery process;
    in response to the first discovery request message, sending a first discovery measurement combination flow verification request to a ranging application server, the ranging application server verifying whether the first terminal is allowed to perform ranging in a discovery process based on the first discovery measurement combination verification request;
    Receiving a verification result from a ranging application server, and forwarding the first discovery request message to a second DDNMF network element of a second HPLMN of a second terminal, which is a terminal to be discovered to perform a discovery measurement combining procedure, in case the verification result indicates that the first terminal is allowed to perform ranging in a discovery procedure;
    receiving a discovery response message fed back by the second DDNMF network element in a case that it is determined that the first terminal is allowed to perform ranging on the second terminal in a discovery process, wherein the discovery response message includes parameter information for the discovery measurement combination procedure; and
    and sending the discovery response message to the first terminal.
  16. The method of claim 15, wherein the parameter information comprises security parameters for integrity protection and/or verification of specified information.
  17. The method of claim 15 or 16, wherein the first discovery request message includes a discovery measurement combination procedure indication requesting to verify whether the first terminal is allowed to perform ranging in a discovery process and to verify whether the first terminal is allowed to perform ranging on the second terminal in a discovery process.
  18. A ranging verification method, characterized in that the method is performed by a second proximity service discovery management function DDNMF network element of a second local public land mobile network HPLMN of a second terminal, the method comprising:
    receiving a second discovery request message sent by a second terminal, wherein the second discovery request message is used for requesting to execute a discovery measurement combination procedure and indicating the second terminal sending the second discovery request message as a terminal to be discovered to perform the discovery measurement combination procedure, and the discovery measurement combination procedure is used for executing ranging in the discovery process;
    responding to the second discovery request message, sending a second discovery measurement combination flow verification request to a ranging application server, and verifying whether the second terminal is allowed to perform ranging in the discovery process or not by the ranging application server based on the second discovery measurement combination flow verification request so as to obtain a second verification result;
    receiving the second authentication result from the ranging application server;
    generating second parameter information for a discovery measurement combining procedure of the second terminal in a case where the second authentication result indicates that the second terminal is allowed to perform ranging in a discovery process; and
    And sending a second discovery response message comprising the second parameter information to the second terminal.
  19. The method as recited in claim 18, further comprising:
    receiving a first discovery request message forwarded by a first DDNMF network element of a first HPLMN of a first terminal, where the first discovery request message is used for requesting to execute a discovery measurement combination procedure and indicating that the first terminal sending the first discovery request message is the terminal initiating the discovery measurement combination procedure;
    transmitting a third discovery measurement combination flow verification request to the ranging application server in response to the first discovery request message, wherein the ranging application server verifies whether the first terminal is allowed to perform ranging on the second terminal in the discovery process based on the third discovery measurement combination flow verification request to obtain a first verification result;
    receiving the first authentication result from the ranging application server;
    generating first parameter information for a discovery measurement combining procedure of the first terminal in a case where the first authentication result indicates that the first terminal is allowed to perform ranging on the second terminal in a discovery process; and
    and sending a first discovery response message comprising the first parameter information to the first DDNMF network element.
  20. The method of claim 19, wherein the first parameter information and the second parameter information each comprise security parameters for integrity protection and/or verification of specified information.
  21. The method of claim 18, wherein the second discovery request message includes a second discovery measurement combination procedure indication for requesting verification whether the second terminal is allowed to perform ranging in a discovery procedure.
  22. The method of claim 19, wherein the first discovery request message includes a first discovery measurement combination procedure indication for requesting verification whether the first terminal is allowed to perform ranging on the second terminal in a discovery procedure.
  23. A ranging verification method, the method comprising:
    receiving a first discovery measurement combination flow verification request sent by a first DDNMF network element of a first local public land mobile network HPLMN of a first terminal, wherein the first terminal is a terminal initiating a discovery measurement combination flow, the discovery measurement combination flow is used for performing ranging in a discovery process, and the first discovery measurement combination flow verification request is used for requesting to verify whether the first terminal is allowed to perform ranging in the discovery process;
    Verifying whether the first terminal is allowed to perform ranging in a discovery process to obtain an intermediate verification result;
    feeding back the intermediate verification result to the first DDNMF network element;
    receiving a third discovery measurement combination flow verification request sent by a second DDNMF network element of a second HPLMN of a second terminal, wherein the second terminal is a terminal to be discovered to perform a discovery measurement combination flow, and the third discovery measurement combination flow verification request is used for requesting to verify whether to allow the first terminal to perform ranging on the second terminal in a discovery process;
    verifying whether the first terminal is allowed to perform ranging on the second terminal in the discovery process so as to obtain a first verification result; and
    and feeding back the first verification result to the second DDNMF network element, wherein the second DDNMF network element generates first parameter information for a discovery measurement combination procedure of the first terminal under the condition that the first verification result indicates that the first terminal is allowed to perform ranging on the second terminal in the discovery process.
  24. The method as recited in claim 23, further comprising:
    receiving a second discovery measurement combination flow verification request sent by the second DDNMF network element, where the second discovery measurement combination flow verification request is used to request to verify whether the second terminal is allowed to perform ranging in a discovery process;
    Verifying whether the second terminal is allowed to perform ranging in a discovery process to obtain a second verification result; and
    and feeding back the second verification result to the second DDNMF network element, wherein the second DDNMF network element generates second parameter information for a discovery measurement combination procedure of the second terminal when the second verification result indicates that the second terminal is allowed to perform ranging in a discovery process.
  25. A ranging apparatus applied to a first terminal, wherein the first terminal is a terminal that initiates a discovery measurement combining procedure for performing ranging in a discovery process, the apparatus comprising:
    a transceiver module for:
    sending a query message to a second terminal, wherein the second terminal is a terminal to be discovered to perform a discovery measurement combination process, the query message is used for indicating the second terminal to perform discovery matching with the first terminal, and the query message comprises a measurement signal;
    receiving a query response message fed back by the second terminal aiming at the query message, wherein the query response message is sent when the second terminal determines that the query response message is matched with the first terminal, and the query response message comprises a feedback measurement signal; and
    And the processing module is used for calculating the distance between the second terminal and the processing module based on the measurement signal and the feedback measurement signal.
  26. A ranging apparatus applied to a second terminal, wherein the second terminal is a terminal to be discovered to perform a discovery measurement combining procedure for performing ranging in a discovery process, the apparatus comprising:
    a transceiver module for:
    receiving a query message sent by a first terminal, wherein the first terminal is a terminal initiating a discovery measurement combination process, the query message is used for indicating the second terminal to perform discovery matching with the first terminal, and the query message comprises a measurement signal;
    and feeding back a poll response message to the first terminal, wherein the poll response message comprises a feedback measurement signal,
    wherein the measurement signal and the feedback measurement signal are used to determine a distance between the first terminal and the second terminal.
  27. A ranging verification device, characterized by a first proximity service discovery management function DDNMF network element applied to a first local public land mobile network HPLMN of a first terminal, the device comprising: a transceiver module;
    The transceiver module is used for:
    receiving a first discovery request message sent by the first terminal, wherein the first discovery request message is used for requesting to execute a discovery measurement combination procedure and indicating the first terminal sending the first discovery request message as a terminal initiating the discovery measurement combination procedure, and the discovery measurement combination procedure is used for executing ranging in the discovery process;
    in response to the first discovery request message, sending a first discovery measurement combination flow verification request to a ranging application server, the ranging application server being configured to verify whether to allow the first terminal to perform ranging in a discovery process based on the first discovery measurement combination verification request;
    receiving a verification result from a ranging application server, and forwarding the first discovery request message to a second DDNMF network element of a second HPLMN of a second terminal, which is a terminal to be discovered to perform a discovery measurement combining procedure, in case the verification result indicates that the first terminal is allowed to perform ranging in a discovery procedure;
    receiving a discovery response message fed back by the second DDNMF network element in a case that it is determined that the first terminal is allowed to perform ranging on the second terminal in a discovery process, wherein the discovery response message includes parameter information for the discovery measurement combination procedure; and
    And sending the discovery response message to the first terminal.
  28. A ranging verification apparatus, characterized in that a second proximity service discovery management function DDNMF network element applied to a second local public land mobile network HPLMN of a second terminal performs, the apparatus comprising: a transceiver module and a processing module;
    the transceiver module is used for:
    receiving a second discovery request message sent by a second terminal, wherein the second discovery request message is used for requesting to execute a discovery measurement combination procedure and indicating the second terminal sending the second discovery request message as a terminal to be discovered to perform the discovery measurement combination procedure, and the discovery measurement combination procedure is used for executing ranging in the discovery process;
    responding to the second discovery request message, sending a second discovery measurement combination flow verification request to a ranging application server, and verifying whether the second terminal is allowed to perform ranging in the discovery process or not by the ranging application server based on the second discovery measurement combination flow verification request so as to obtain a second verification result;
    receiving the second authentication result from the ranging application server;
    the processing module generates second parameter information for a discovery measurement combination procedure of the second terminal in a case where the second authentication result indicates that the second terminal is allowed to perform ranging in a discovery process; and
    The transceiver module is further configured to send a second discovery response message including the second parameter information to the second terminal.
  29. A ranging verification device, which is characterized by comprising a transceiver module and a processing module;
    the transceiver module is configured to receive a first discovery measurement combination procedure verification request sent by a first DDNMF network element of a first local public land mobile network HPLMN of a first terminal, where the first terminal is a terminal that initiates a discovery measurement combination procedure, the discovery measurement combination procedure is used to perform ranging in a discovery process, and the first discovery measurement combination procedure verification request is used to request to verify whether to allow the first terminal to perform ranging in the discovery process;
    the processing module is used for verifying whether the first terminal is allowed to perform ranging in the discovery process so as to obtain an intermediate verification result;
    the receiving and transmitting module is further configured to feed back the intermediate verification result to the first DDNMF network element; receiving a third discovery measurement combination flow verification request sent by a second DDNMF network element of a second HPLMN of a second terminal, wherein the second terminal is a terminal to be discovered to perform a discovery measurement combination flow, and the third discovery measurement combination flow verification request is used for requesting to verify whether to allow the first terminal to perform ranging on the second terminal in a discovery process;
    The processing module is further used for verifying whether the first terminal is allowed to perform ranging on the second terminal in the discovery process so as to obtain a first verification result; and
    the transceiver module is further configured to feed back the first verification result to the second DDNMF network element, where the second DDNMF network element generates first parameter information for a discovery measurement combination procedure of the first terminal if the first verification result indicates that the first terminal is allowed to perform ranging on the second terminal in a discovery process.
  30. A communication device, comprising: a transceiver; a memory; a processor, coupled to the transceiver and the memory, respectively, configured to control wireless signal transceiving of the transceiver and to enable the method of any one of claims 1-24 by executing computer-executable instructions on the memory.
  31. A computer storage medium, wherein the computer storage medium stores computer-executable instructions; the computer executable instructions, when executed by a processor, are capable of implementing the method of any one of claims 1-24.
CN202280000702.2A 2022-03-11 2022-03-11 Distance measuring method and device Pending CN117223300A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/080480 WO2023168720A1 (en) 2022-03-11 2022-03-11 Distance measurement method and apparatus

Publications (1)

Publication Number Publication Date
CN117223300A true CN117223300A (en) 2023-12-12

Family

ID=87937002

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202280000702.2A Pending CN117223300A (en) 2022-03-11 2022-03-11 Distance measuring method and device

Country Status (2)

Country Link
CN (1) CN117223300A (en)
WO (1) WO2023168720A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160157193A1 (en) * 2014-12-01 2016-06-02 Emily Qi Exchanging ranging and location information among peer-to-peer devices
CN106717068B (en) * 2015-03-20 2019-11-29 华为技术有限公司 The distance between a kind of NAN equipment measurement method and NAN equipment
US10334422B2 (en) * 2015-06-15 2019-06-25 Qualcomm Incorporated Methods and apparatus for wireless discovery location and ranging within a neighborhood aware network
CN107005913B (en) * 2015-07-13 2019-11-29 华为技术有限公司 Verification method, user equipment and the adjacent service functional entity of adjacent service communication
EP4187954A4 (en) * 2020-08-06 2023-08-02 Huawei Technologies Co., Ltd. Safe communication method and apparatus

Also Published As

Publication number Publication date
WO2023168720A1 (en) 2023-09-14

Similar Documents

Publication Publication Date Title
JP7188578B2 (en) Passive Entry/Passive Start Access System Using Continuous Wave Tones and Sync Words to Detect Range Extender Type Repeater Attacks
CN102625232B (en) Additional data usable in apparatus positioning
US8340692B2 (en) Positioning with several operators
US8681741B1 (en) Autonomous hybrid WLAN/GPS location self-awareness
US9572026B2 (en) Location services for a wireless device
WO2018202070A1 (en) Positioning assistance data configuration method, apparatus, device, system, and storage medium
US20090124267A1 (en) Method and system for locating a lost and/or stolen phone based on supl network initiated, triggered by reverse-billed sms
WO2022120538A1 (en) Method and device for determining location of terminal device
US20120249300A1 (en) Determination of location using rssi and transmit power
US20210021996A1 (en) Terminal verification method, and ap device, terminal and system
CN112804748B (en) Positioning method, positioning server, terminal, mobile base station and storage medium
US10684351B2 (en) Terminal device and positioning system
CN117223300A (en) Distance measuring method and device
CN115997392A (en) Method for transmitting and receiving side-link positioning message and device thereof
CN115997415A (en) Non-land network access method and device
CN115516891A (en) Positioning method/device/equipment and storage medium
CN114079853B (en) Position acquisition method and device
US20220038863A1 (en) Echo avoidance in large volume system-wide calls
WO2013007056A1 (en) Method and terminal for obtaining playing frequency point information of mobile multimedia broadcasting
CN116097711A (en) Mobility measurement method and device
WO2024060155A1 (en) Positioning verification method and apparatus
WO2023216034A1 (en) Location information verification method and apparatus therefor
WO2023221000A1 (en) Authentication and authorization method and apparatus for ai function in core network
WO2022027504A1 (en) Information transmission method and related device
WO2024060144A1 (en) Method and apparatus for verifying location information of terminal, and communication device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination