WO2023168720A1 - Distance measurement method and apparatus - Google Patents

Distance measurement method and apparatus Download PDF

Info

Publication number
WO2023168720A1
WO2023168720A1 PCT/CN2022/080480 CN2022080480W WO2023168720A1 WO 2023168720 A1 WO2023168720 A1 WO 2023168720A1 CN 2022080480 W CN2022080480 W CN 2022080480W WO 2023168720 A1 WO2023168720 A1 WO 2023168720A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
discovery
ranging
message
verification
Prior art date
Application number
PCT/CN2022/080480
Other languages
French (fr)
Chinese (zh)
Inventor
陆伟
Original Assignee
北京小米移动软件有限公司
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 北京小米移动软件有限公司 filed Critical 北京小米移动软件有限公司
Priority to PCT/CN2022/080480 priority Critical patent/WO2023168720A1/en
Priority to CN202280000702.2A priority patent/CN117223300A/en
Publication of WO2023168720A1 publication Critical patent/WO2023168720A1/en

Links

Images

Classifications

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

Definitions

  • the present disclosure relates to the field of mobile communication technology, and in particular to a ranging method and device, and a ranging verification method and device.
  • ranging In a wireless communication system, in order to achieve communication between two terminals, it is necessary to measure the distance between the two terminals, that is, ranging.
  • ranging a series of processes such as authentication and discovery need to be performed. When there are a large number of ranging requirements, this will consume a lot of network resources and cause great power consumption of the terminal.
  • the present disclosure proposes a ranging method and device, which can perform ranging during the discovery process, thereby reducing network resource consumption and saving terminal power consumption.
  • the present disclosure proposes a ranging verification method and device.
  • the network device can verify the terminal to determine whether the terminal is allowed to perform ranging during the discovery process, and can also verify the terminal to determine whether the terminal is allowed to perform ranging during the discovery process. Perform ranging on another terminal.
  • a first aspect embodiment of the present disclosure provides a ranging method.
  • the method is executed by a first terminal, where the first terminal is a terminal that initiates a discovery measurement combination process.
  • the discovery measurement combination process is used for discovering Ranging is performed during the process, and the method includes: sending a query message to a second terminal, where the second terminal is a terminal that will be discovered to perform a discovery measurement combination process, and the query message is used to indicate that the second terminal
  • the terminal performs discovery matching with the first terminal, and the inquiry message includes a measurement signal; receives an inquiry response message fed back by the second terminal in response to the inquiry message, wherein the inquiry response message is the response message of the second terminal sent when it is determined to match the first terminal, and the query response message includes a feedback measurement signal; and based on the measurement signal and the feedback measurement signal, calculate the distance to the second terminal .
  • the method before sending the query message to the second terminal, the method further includes: performing integrity protection on the query message.
  • the integrity protection of the query message includes: based on the security parameters received from the first proximity service discovery management function DDNMF network element of the first local public land mobile network HPLMN of the first terminal, calculate a message verification code; and appending the message verification code to the end of the query message to protect the integrity of the query message.
  • the query response message is an integrity protected message
  • the method further includes: verifying the integrity of the query response message; wherein based on the measurement signal and the feedback measurement signal, calculating and The distance between the second terminal includes: calculating the distance to the second terminal based on the measurement signal and the feedback measurement signal when the integrity of the query response message is successfully verified.
  • the verifying the integrity of the inquiry response message includes: verifying the integrity of the inquiry response message based on security parameters received from the first DDNMF network element.
  • the method further includes: sending a first discovery request message to the first DDNMF network element, where the first discovery request message is used to request execution of a discovery measurement combination process; receiving the first DDNMF network element to determine The first terminal is allowed to feedback a discovery response message when performing ranging on the second terminal during the discovery process, and the discovery response message includes parameter information for the discovery measurement combination process; wherein, The sending a query message to the second terminal includes: sending a query message to the second terminal if the first terminal is allowed to perform ranging on the second terminal during the discovery process.
  • the first discovery request message includes a discovery measurement combination process indication, and the discovery measurement combination process indication is used to request verification whether the first terminal is allowed to perform ranging on the second terminal during the discovery process. .
  • An embodiment of the second aspect of the present disclosure provides a ranging method.
  • the method is executed by a second terminal, where the second terminal is a terminal that will be discovered to perform a discovery measurement combination process.
  • the discovery measurement combination process is To perform ranging during the discovery process, the method includes: receiving a query message sent by a first terminal, where the first terminal is a terminal that initiates a discovery measurement combination process, and the query message is used to indicate that the second terminal The terminal performs discovery matching with the first terminal, and the query message includes a measurement signal; and when the second terminal determines that it matches the first terminal, feeds back a query response message to the first terminal , wherein the query response message includes a feedback measurement signal, wherein the measurement signal and the feedback measurement signal are used to determine the distance between the first terminal and the second terminal.
  • the inquiry message is an integrity-protected message
  • the method further includes: verifying the integrity of the inquiry message; wherein the feedback of an inquiry response message to the first terminal includes: after successful verification of the If the integrity of the query message is satisfied, the query response message is fed back to the first terminal.
  • the verifying the integrity of the query message includes: verifying the security parameters received from a second proximity service discovery management function DDNMF network element of the second local public land mobile network HPLMN of the second terminal. The completeness of the inquiry message.
  • the method before sending the inquiry response message to the first terminal, the method further includes: performing integrity protection on the inquiry response message.
  • the method further includes: performing integrity protection on the query response message includes: calculating a message verification code based on the security parameters received from the second DDNMF network element; and converting the message verification code Appended to the end of the query response message to protect the integrity of the query response message.
  • the method further includes: sending a second discovery request message to the second DDNMF network element, where the second discovery request message is used to request execution of a discovery measurement combination process; and receiving the second discovery request message from the second DDNMF network element.
  • the second discovery request message includes a discovery measurement combination verification indication, and the discovery measurement combination process indication is used to request verification of whether the second terminal is allowed to perform ranging during the discovery process.
  • a third aspect embodiment of the present disclosure provides a ranging verification method, the method is executed by the first proximity service discovery management function DDNMF network element of the first local public land mobile network HPLMN of the first terminal, the method includes : Receive a first discovery request message sent by the first terminal, wherein the first discovery request message is used to request execution of a discovery measurement combination process and indicates that the first terminal sending the first discovery request message is to initiate discovery measurement combination.
  • the terminal of the process, the discovery and measurement combination process is used to perform ranging during the discovery process; in response to the first discovery request message, a first discovery and measurement combination process verification request is sent to the ranging application server, and the ranging application
  • the server is configured to verify whether the first terminal is allowed to perform ranging during the discovery process based on the first discovery measurement combination verification request; receive a verification result from the ranging application server, and indicate to the first terminal when the verification result If allowed to perform ranging during the discovery process, forward the first discovery request message to the second DDNMF network element of the second HPLMN of the second terminal, which is to be discovered for discovery measurement.
  • the terminal of the combined process receives the discovery response message fed back by the second DDNMF network element when it is determined that the first terminal is allowed to perform ranging on the second terminal during the discovery process, wherein the discovery response message including parameter information for the discovery measurement combination process; and sending the discovery response message to the first terminal.
  • the parameter information includes security parameters used for integrity protection and/or verification of specified information.
  • the first discovery request message includes a discovery measurement combination process indication
  • the discovery measurement combination process indication is used to request verification of whether the first terminal is allowed to perform ranging during the discovery process and to verify that the first terminal is allowed to perform ranging during the discovery process. Whether the terminal is allowed to perform ranging on the second terminal during the discovery process.
  • a fourth aspect embodiment of the present disclosure provides a ranging verification method, the method is executed by the second proximity service discovery management function DDNMF network element of the second local public land mobile network HPLMN of the second terminal, the method includes : Receive a second discovery request message sent by the second terminal, wherein the second discovery request message is used to request execution of the discovery measurement combination process and indicates that the second terminal sending the second discovery request message is to be discovered for discovery.
  • the terminal of the measurement combination process the discovery measurement combination process is used to perform ranging during the discovery process; in response to the second discovery request message, a second discovery measurement combination process verification request is sent to the ranging application server, the measurement combination process is The distance application server verifies whether the second terminal is allowed to perform ranging during the discovery process to obtain a second verification result based on the second discovery measurement combination process verification request; receiving the second verification result from the ranging application server ; In the case where the second verification result indicates that the second terminal is allowed to perform ranging during the discovery process, generate second parameter information for the discovery measurement combination process of the second terminal; and include the A second discovery response message of the second parameter information is sent to the second terminal.
  • the method further includes: receiving a first discovery request message forwarded by the first DDNMF network element of the first HPLMN of the first terminal, where the first discovery request message is used to request execution of the discovery measurement combination process and instruct sending
  • the first terminal of the first discovery request message is the terminal that initiates the discovery and measurement combination process; in response to the first discovery request message, a third discovery and measurement combination process verification request is sent to the ranging application server.
  • the distance application server verifies whether the first terminal is allowed to perform ranging on the second terminal during the discovery process to obtain the first verification result based on the third discovery measurement combination process verification request; receiving from the ranging application server The first verification result; generating a discovery measurement for the first terminal if the first verification result indicates that the first terminal is allowed to perform ranging on the second terminal during discovery. Combining the first parameter information of the process; and sending a first discovery response message including the first parameter information to the first DDNMF network element.
  • the first parameter information and the second parameter information each include security parameters for integrity protection and/or verification of the specified information.
  • the second discovery request message includes a second discovery measurement combination process indication, and the second discovery measurement combination process indication is used to request verification whether the second terminal is allowed to perform ranging during the discovery process.
  • the first discovery request message includes a first discovery measurement combination process indication, and the first discovery measurement combination process indication is used to request verification whether the first terminal is allowed to perform the discovery process on the second The terminal performs ranging.
  • a fifth aspect embodiment of the present disclosure provides a ranging verification method, which method includes: receiving a first discovery measurement combination process verification sent by the first DDNMF network element of the first local public land mobile network HPLMN of the first terminal. request, wherein the first terminal is the terminal that initiates the discovery and measurement combination process, the discovery and measurement combination process is used to perform ranging during the discovery process, and the first discovery and measurement combination process verification request is used to request verification whether the all
  • the first terminal performs ranging during the discovery process; verifies whether the first terminal is allowed to perform ranging during the discovery process to obtain an intermediate verification result; feeds back the intermediate verification result to the first DDNMF network element; receives The third discovery measurement combination process verification request sent by the second DDNMF network element of the second HPLMN of the second terminal, where the second terminal is a terminal that will be discovered to perform the discovery measurement combination process, and the third discovery measurement
  • the combined process verification request is used to request verification whether the first terminal is allowed to perform ranging on the second terminal during the discovery process; verify whether the first terminal is
  • first parameter information for a discovery measurement combination process of the first terminal is generated.
  • the method further includes: receiving a second discovery and measurement combination process verification request sent by the second DDNMF network element, where the second discovery and measurement combination process verification request is used to request verification of whether the second terminal is allowed. Perform ranging during the discovery process; verify whether the second terminal is allowed to perform ranging during the discovery process to obtain a second verification result; and feed back the second verification result to the second DDNMF network element,
  • the second DDNMF network element generates second parameter information for the discovery measurement combination process of the second terminal when the second verification result indicates that the second terminal is allowed to perform ranging during the discovery process.
  • a sixth embodiment of the present disclosure provides a ranging device, applied to a first terminal, wherein the first terminal is a terminal that initiates a discovery measurement combination process, and the discovery measurement combination process is used to execute during the discovery process.
  • the device includes: a transceiver module, configured to: send a query message to a second terminal, where the second terminal is a terminal that will be discovered to perform a discovery measurement combination process, and the query message is used to indicate that the The second terminal performs discovery matching with the first terminal, and the inquiry message includes a measurement signal; and receives an inquiry response message fed back by the second terminal in response to the inquiry message, wherein the inquiry response message is the The second terminal sends it when it determines that it matches the first terminal, and the query response message includes a feedback measurement signal; and a processing module for calculating, based on the measurement signal and the feedback measurement signal, the distance between the second terminals.
  • a seventh embodiment of the present disclosure provides a ranging device applied to a second terminal, wherein the second terminal is a terminal to be discovered for performing a discovery measurement combination process, and the discovery measurement combination process is used to Ranging is performed during the discovery process, and the device includes: a transceiver module, configured to: receive a query message sent by a first terminal, where the first terminal is a terminal that initiates the discovery measurement combination process, and the query message is used to indicate The second terminal performs discovery matching with the first terminal, and the query message includes a measurement signal; when the second terminal determines that it matches the first terminal, feedback is provided to the first terminal A query response message, wherein the query response message includes a feedback measurement signal, wherein the measurement signal and the feedback measurement signal are used to determine the distance between the first terminal and the second terminal.
  • a transceiver module configured to: receive a query message sent by a first terminal, where the first terminal is a terminal that initiates the discovery measurement combination process, and the query message is used to indicate The second terminal performs discovery matching with
  • An eighth embodiment of the present disclosure provides a ranging verification device, which is applied to the first proximity service discovery management function DDNMF network element of the first local public land mobile network HPLMN of the first terminal.
  • the device includes: a transceiver module For: receiving a first discovery request message sent by the first terminal, wherein the first discovery request message is used to request execution of a discovery measurement combination process and indicates that the first terminal sending the first discovery request message is to initiate discovery.
  • the terminal of the measurement combination process the discovery measurement combination process is used to perform ranging during the discovery process; in response to the first discovery request message, a first discovery measurement combination process verification request is sent to the ranging application server, the measurement combination process is The distance application server is configured to verify whether the first terminal is allowed to perform ranging during the discovery process based on the first discovery measurement combination verification request; receive a verification result from the ranging application server, and when the verification result indicates the first
  • a terminal is allowed to perform ranging during the discovery process, it forwards the first discovery request message to the second DDNMF network element of the second HPLMN of the second terminal, and the second terminal is to be discovered for performing A terminal that discovers a measurement combination process; receives a discovery response message fed back by the second DDNMF network element when it is determined that the first terminal is allowed to perform ranging on the second terminal during the discovery process, wherein the discovery The response message includes parameter information for the discovery measurement combination process; and the discovery response message is sent to the first terminal.
  • a ninth embodiment of the present disclosure provides a ranging verification device, which is applied to the second proximity service discovery management function DDNMF network element of the second local public land mobile network HPLMN of the second terminal.
  • the device includes: transceiver module and processing module; the transceiver module is used to: receive a second discovery request message sent by the second terminal, wherein the second discovery request message is used to request execution of the discovery measurement combination process and instructs to send the second discovery request
  • the second terminal of the message is a terminal that will be discovered to perform a discovery measurement combination process.
  • the discovery measurement combination process is used to perform ranging during the discovery process; in response to the second discovery request message, send to the ranging application server a second discovery measurement combination process verification request, the ranging application server verifies whether the second terminal is allowed to perform ranging during the discovery process to obtain a second verification result based on the second discovery measurement combination process verification request; and from The ranging application server receives the second verification result.
  • the processing module is configured to generate a second parameter for the discovery measurement combination process of the second terminal when the second verification result indicates that the second terminal is allowed to perform ranging during the discovery process. information.
  • the transceiving module is also configured to send a second discovery response message including the second parameter information to the second terminal.
  • a tenth aspect embodiment of the present disclosure provides a ranging verification device.
  • the device includes a transceiver module and a processing module; the transceiver module is used to receive the first DDNMF of the first local public land mobile network HPLMN of the first terminal.
  • the first discovery measurement combination process verification request sent by the network element wherein the first terminal is the terminal that initiates the discovery measurement combination process, the discovery measurement combination process is used to perform ranging during the discovery process, the first discovery measurement
  • the combined process verification request is used to request verification whether the first terminal is allowed to perform ranging during the discovery process;
  • the processing module is used to verify whether the first terminal is allowed to perform ranging during the discovery process to obtain an intermediate verification result;
  • the transceiver module is also configured to feed back the intermediate verification result to the first DDNMF network element; receive a third discovery measurement combination process verification request sent by the second DDNMF network element of the second HPLMN of the second terminal, wherein,
  • the second terminal is a terminal that will be discovered to perform a discovery measurement combination process.
  • the third discovery measurement combination process verification request is used to request verification whether the first terminal is allowed to perform the discovery measurement combination process on the second terminal. Ranging; the processing module is also used to verify whether the first terminal is allowed to perform ranging on the second terminal during the discovery process to obtain a first verification result; and the transceiver module is also used to send the third A verification result is fed back to the second DDNMF network element.
  • the first verification result indicates that the first terminal is allowed to perform ranging on the second terminal during the discovery process
  • the second DDNMF network element First parameter information for the discovery measurement combination process of the first terminal is generated.
  • An eleventh aspect embodiment of the present disclosure provides a communication device, including: a transceiver; a memory; and a processor, respectively connected to the transceiver and the memory, configured to execute a computer executable program on the memory. Instructions to control the wireless signal transmission and reception of the transceiver, and to implement the ranging method of the above-mentioned first aspect or second aspect embodiment or the ranging method of the third aspect embodiment, the fourth aspect embodiment or the fifth aspect embodiment. Authentication method.
  • a twelfth aspect embodiment of the present disclosure provides a computer storage medium, wherein the computer storage medium stores computer-executable instructions; after the computer-executable instructions are executed by a processor, the first aspect or the second aspect can be realized.
  • Embodiments of the present disclosure provide a ranging method and device.
  • the observing terminal that is, the terminal that initiates the discovery and measurement combination process
  • sends a message to the target terminal that is, the candidate terminal that participates in the discovery and measurement combination process, usually near the observation terminal.
  • the query message includes the measurement signal.
  • the target terminal feeds back the query response message including the feedback measurement signal to the observation terminal when it matches the observation terminal.
  • the observation terminal can measure the signal and feed back the measurement signal to calculate the distance to the target terminal.
  • Embodiments of the present disclosure also provide a ranging verification method and device.
  • the network device can verify the observing terminal to determine whether the observing terminal is allowed to perform ranging during the discovery process and whether it is allowed to perform ranging on the specific target terminal during the discovery process. Perform ranging. Additionally, the network device can authenticate the target terminal to determine whether the target terminal is allowed to perform ranging during the discovery process. Thus, it can be verified whether the terminal can perform the discovery measurement combination process.
  • Figure 1 is a schematic diagram showing the direction of one terminal relative to another terminal
  • Figure 2 is a schematic flowchart of a ranging method according to an embodiment of the present disclosure
  • Figure 3 is a schematic flowchart of a ranging method according to an embodiment of the present disclosure
  • Figure 4 is a schematic flowchart of a ranging method according to an embodiment of the present disclosure
  • Figure 5 is a schematic flowchart of a ranging method according to an embodiment of the present disclosure.
  • Figure 6 is a schematic flowchart of a method for obtaining discovery measurement combination information according to an embodiment of the present disclosure
  • Figure 7 is a schematic flowchart of a ranging method according to an embodiment of the present disclosure.
  • Figure 8 is a schematic flow chart of a ranging method according to an embodiment of the present disclosure.
  • Figure 9 is a schematic flowchart of a ranging method according to an embodiment of the present disclosure.
  • Figure 10 is a schematic flowchart of a ranging method according to an embodiment of the present disclosure.
  • Figure 11 is a schematic flowchart of a method for obtaining discovery measurement combination information according to an embodiment of the present disclosure
  • Figure 12 is a schematic flow chart of a ranging method according to an embodiment of the present disclosure.
  • Figure 13 is a schematic flow chart of a ranging verification method according to an embodiment of the present disclosure.
  • Figure 14 is a schematic flow chart of a ranging verification method according to an embodiment of the present disclosure.
  • Figure 15 is a schematic flow chart of a ranging verification method according to an embodiment of the present disclosure.
  • Figure 16 is a schematic flow chart of a ranging verification method according to an embodiment of the present disclosure.
  • Figure 17 is a schematic flow chart of a ranging verification method according to an embodiment of the present disclosure.
  • Figure 18 is a schematic flowchart of a discovery measurement combination process according to an embodiment of the present disclosure.
  • Figure 19 is a block diagram of a ranging device according to an embodiment of the present disclosure.
  • Figure 20 is a block diagram of a ranging device according to an embodiment of the present disclosure.
  • Figure 21 is a block diagram of a ranging verification device according to an embodiment of the present disclosure.
  • Figure 22 is a block diagram of a ranging verification device according to an embodiment of the present disclosure.
  • Figure 23 is a block diagram of a ranging verification device according to an embodiment of the present disclosure.
  • Figure 24 is a schematic structural diagram of a communication device provided by an embodiment of the present disclosure.
  • Figure 25 is a schematic structural diagram of a chip provided by an embodiment of the present disclosure.
  • ranging-based services refer to services provided using the distance between two terminals and/or the direction of one terminal relative to the other terminal.
  • the direction of one terminal relative to the other terminal includes the horizontal direction and the vertical direction, as shown in Figure 1.
  • the first terminal has a reference plane and a reference direction.
  • the horizontal direction (azimuth angle) of the second terminal relative to the first terminal is indicated by the angle between the reference direction and the projection of the line connecting the first terminal to the second terminal on the reference plane.
  • the vertical direction of the second terminal relative to the first terminal is indicated by the angle in the horizontal plane.
  • Time of Flight can be used to measure the path length between two terminals. Assume that radio frequency is used to obtain ToF.
  • the first terminal sends a measurement signal to the second terminal. After receiving the measurement signal, the second terminal feeds back the measurement signal to the first terminal again. The first terminal determines a distance from the second terminal based on the flight time of the measurement signal.
  • the time interval between the first terminal sending a measurement signal and receiving the measurement signal fed back by the second terminal is ⁇ t 2
  • the time interval between the second terminal receiving the measurement signal and feedbacking the measurement signal is ⁇ t 1
  • the signal transmission The speed is C
  • the distance between the first terminal and the second terminal is ( ⁇ t 2 - ⁇ t 1 ) ⁇ C/2.
  • the present disclosure proposes a ranging method and device.
  • the terminal can perform ranging during the discovery process, thereby reducing network resource consumption and saving the terminal's power consumption.
  • the present disclosure also proposes a ranging verification method and device.
  • the network device can verify the terminal to determine whether the terminal is allowed to perform ranging during the discovery process, and can also verify the terminal to determine whether the terminal is allowed to perform ranging. Perform ranging on another terminal during discovery.
  • the terminal that initiates the discovery and measurement combination process may be called an observing terminal, and the other terminal may be called a target terminal (i.e. candidate of terminals that will be discovered to participate in the discovery measurement combination process).
  • Figure 2 is a schematic flowchart of a ranging method according to an embodiment of the present disclosure. As shown in Figure 2, the method can be executed by an observation terminal and includes the following steps.
  • the query message is used to instruct the observation terminal and the target terminal to perform discovery matching and the query message includes a measurement signal to indicate that the observation terminal wishes to perform ranging during the discovery process.
  • S202 Receive the consultation response message fed back by the target terminal in response to the consultation message.
  • the query response message is sent when the target terminal determines that it matches the observing terminal, and the query response message includes the feedback measurement signal.
  • the query response message includes the feedback measurement signal and the time difference between receiving the query message and the feedback query response message.
  • the query response message may also include a discovery message type, which will be described in detail below.
  • the target terminal After receiving the query message sent by the observation terminal, the target terminal can perform a discovery process to determine whether the target terminal matches the observation terminal. If the target terminal matches the observation terminal, it can send a query response message including the feedback measurement signal to the observation terminal.
  • the target terminal may not send a query response message to the observing terminal, which means that communication between the target terminal and the observing terminal is impossible.
  • S203 Calculate the distance to the target terminal based on the measurement signal and the feedback measurement signal.
  • the observation terminal After receiving the inquiry response message including the feedback measurement signal, the observation terminal can calculate the distance between the observation terminal and the target terminal based on the measurement signal and the feedback measurement signal.
  • the observing terminal may determine that the target terminal does not match the observing terminal, and will not communicate with the target terminal.
  • the observation terminal sends a query message including a measurement signal to the target terminal, and the target terminal feeds back a query response message including a feedback measurement signal to the observation terminal if it matches the observation terminal.
  • the observation terminal can according to The measurement signal and the feedback measurement signal calculate the distance to the target terminal.
  • Figure 3 shows a schematic flowchart of a ranging method according to an embodiment of the present disclosure. As shown in Figure 3, the method can be executed by an observation terminal and includes the following steps.
  • the query message is used to instruct the observation terminal and the target terminal to perform discovery matching and the query message includes a measurement signal to indicate that the observation terminal wishes to perform ranging during the discovery process.
  • the above step S301 may include the following steps.
  • S3011 calculate the message verification code based on the security parameters received from the proximity service discovery management function (DDNMF, Direct Discovery Name Management Function) network element of the local public land mobile network (HPLMN, Home Public Land Mobile Network) of the observing terminal.
  • DDNMF Direct Discovery Name Management Function
  • HPLMN Home Public Land Mobile Network
  • the observing terminal may calculate the message verification code based on the security parameters received from the DDNMF network element of the observing terminal's HPLMN.
  • the security parameter may be a Discovery User Integrity Key (DUIK), and the observing terminal calculates a Message Integrity Code (MIC) based on the DUIK.
  • DAIK Discovery User Integrity Key
  • MIC Message Integrity Code
  • S3012 Attach the message verification code to the end of the consultation message to protect the integrity of the consultation message.
  • the observing terminal After the observing terminal calculates the MIC, it can append the MIC to the end of the query message to protect the integrity of the query message.
  • the observing terminal After performing integrity protection on the query message, the observing terminal sends the integrity-protected query message to the target terminal.
  • S303 Receive a query response message fed back by the target terminal in response to the integrity-protected query message.
  • the target terminal After the target terminal receives the integrity-protected query message, the target terminal needs to perform integrity verification on the query message. Specifically, the target terminal can verify the query message based on DUIK. If the verification is passed, the target terminal will feedback the query to the observation terminal. response message, otherwise the consultation response message will not be fed back.
  • the query response message is sent when the target terminal determines that it matches the observing terminal, and the query response message includes the feedback measurement signal.
  • the target terminal After the target terminal successfully verifies the integrity-protected query message, it can perform a discovery process to determine whether it matches the observing terminal. If the target terminal matches the observing terminal, it can send a query response message including the feedback measurement signal to the observing terminal.
  • the target terminal may not send a query response message to the observing terminal, which means that communication between the target terminal and the observing terminal is impossible.
  • S304 Calculate the distance to the target terminal based on the measurement signal and the feedback measurement signal.
  • step S304 please refer to the relevant description and details of the above step S203.
  • the observing terminal sends an integrity-protected query message to the target terminal after performing integrity protection on the query message.
  • the target terminal feeds back to the observing terminal including feedback measurement if it matches the observing terminal.
  • Signal query response message the observing terminal can calculate the distance to the target terminal based on the measurement signal and feedback measurement signal in the query message.
  • ranging between two terminals can be performed during the discovery process, thereby reducing network resource consumption and saving terminal power consumption.
  • the query message is an integrity-protected message, tampering of the query message can be avoided. , thereby improving the security of the consultation message.
  • Figure 4 shows a schematic flowchart of a ranging method according to an embodiment of the present disclosure. As shown in Figure 4, the method can be executed by an observation terminal and includes the following steps.
  • step S401 For the description and specific details of the above step S401, please refer to the relevant description and details of the above step S201.
  • S402 Receive the integrity-protected query response message fed back by the target terminal in response to the query message.
  • the integrity-protected query response message is sent when the target terminal determines that it matches the observing terminal, and the integrity-protected query response message includes a feedback measurement signal.
  • the target terminal After receiving the query message sent by the observation terminal, the target terminal can perform a discovery process to determine whether the target terminal matches the observation terminal. If the target terminal matches the observation terminal, it can feed back a query response message including the feedback measurement signal to the observation terminal.
  • the target terminal can send the integrity-protected query response message to the observation terminal after performing integrity protection on the query response message.
  • the target terminal can calculate the message verification code based on the security parameters received from the DDNMF network element of the HPLMN of the target terminal, and append the message verification code to the end of the inquiry response message to protect the integrity of the inquiry response message.
  • the security parameter may be DUIK
  • the target terminal calculates the MIC based on the DUIK and appends the MIC to the end of the query response message.
  • the target terminal may not send a query response message to the observing terminal, which means that communication between the target terminal and the observing terminal is impossible.
  • the observing terminal If the observing terminal receives an integrity-protected query response message, the observing terminal needs to perform integrity verification on the query response message.
  • the above step S403 may include the following steps.
  • S4031 Verify the integrity of the integrity-protected query response message based on the security parameters received from the DDNMF network element of the HPLMN of the observing terminal.
  • the observing terminal may respond to the DUIK verification inquiry message received from the DDNMF network element.
  • step S404 please refer to the relevant description and details of the above step S203.
  • the observation terminal sends a query message including a measurement signal to the target terminal, and the target terminal feeds back a query response message including a feedback measurement signal to the observation terminal if it matches the observation terminal, and the query response message
  • the observing terminal can calculate the distance to the target terminal based on the measurement signal and the feedback measurement signal.
  • Figure 5 shows a schematic flowchart of a ranging method according to an embodiment of the present disclosure. As shown in Figure 5, the method can be executed by an observation terminal and includes the following steps.
  • step S501 For the description and specific details of the above step S501, please refer to the relevant description and details of the above step S301.
  • S502 Send an integrity-protected query message to the target terminal.
  • step S502 For the description and specific details of the above step S502, please refer to the relevant description and details of the above step S302.
  • S503 Receive an integrity-protected query response message fed back by the target terminal in response to the integrity-protected query message.
  • S504 Verify the integrity of the integrity-protected query response message.
  • step S505 For the description and specific details of the above step S505, please refer to the relevant description and details of the above step S404.
  • the observing terminal sends an integrity-protected query message to the target terminal after performing integrity protection on the query message.
  • the target terminal feeds back the integrity-protected query message to the observing terminal if it matches the observing terminal.
  • the observing terminal can calculate the distance to the target terminal based on the measurement signal in the query message and the feedback measurement signal in the query response message.
  • ranging between two terminals can be performed during the discovery process, thereby reducing network resource consumption and saving terminal power consumption.
  • both the query message and the query response message are integrity-protected messages, it can This prevents the inquiry message and the inquiry response message from being tampered with, thereby improving the security of the inquiry message and the inquiry response message.
  • Figure 6 shows a schematic flowchart of a ranging method according to an embodiment of the present disclosure. As shown in Figure 6, the method can be executed by an observation terminal and includes the following steps.
  • S601 Send a first discovery request message to the DDNMF network element of the HPLMN of the observing terminal.
  • the first discovery request message is used to request execution of the discovery measurement combination process.
  • the DDNMF network element of the HPLMN of the observing terminal is configured to send a first discovery measurement combination process verification request to the ranging application server in response to the first discovery request message, and the ranging application server is configured to verify whether it is allowed based on the first discovery measurement combination process verification request.
  • the observing terminal performs ranging during the discovery process.
  • the DDNMF network element of the HPLMN of the observing terminal forwards the first discovery request message to the HPLMN of the target terminal.
  • DDNMF network element The DDNMF network element of the HPLMN of the target terminal sends a third discovery measurement combination process verification request to the ranging application server in response to the first discovery request message.
  • the ranging application server is used to verify the request based on the third discovery measurement combination process verification. Whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process. If the verification result indicates that the observing terminal is allowed to perform ranging on the target terminal during the discovery process, the DDNMF network element of the target terminal's HPLMN generates a DDNMF network element for the observing terminal. Discover parameter information for the measurement combination process.
  • the first discovery request message may include a discovery measurement combination process indication.
  • the discovery measurement combination process indication is used to request verification that the observing terminal is allowed to perform ranging during the discovery process.
  • the DDNMF network element of the HPLMN of the observing terminal can autonomously send a first discovery measurement combination process verification request to the ranging application server in response to the first discovery request message, that is, in response to any first discovery request message, the observing terminal
  • the DDNMF network element of the HPLMN sends a first discovery measurement combination process verification request to the ranging application server to verify whether the observing terminal is allowed to perform ranging during the discovery process.
  • the DDNMF network element of the HPLMN of the observing terminal sends a first discovery and measurement combination process verification request to the ranging application server according to the discovery and measurement combination process indication in the first discovery request message, that is, only responds to the first discovery and measurement combination process indication including the discovery and measurement combination process indication.
  • the DDNMF network element of the HPLMN of the observing terminal Upon receiving the discovery request message, sends a first discovery measurement combination process verification request to the ranging application server to verify whether the observing terminal is allowed to perform ranging during the discovery process.
  • the first discovery request message further includes another discovery measurement combination process indication, which is used to request verification whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
  • the DDNMF network element of the target terminal's HPLMN can autonomously send a third discovery measurement combination process verification request to the ranging application server in response to the first discovery request message, that is, in response to any first discovery request message, the target terminal's
  • the DDNMF network element of the HPLMN sends a discovery measurement combination process verification request to the ranging application server to verify whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
  • the DDNMF network element of the HPLMN of the target terminal sends a third discovery measurement combination process verification request to the ranging application server according to another discovery measurement combination process instruction in the first discovery request message, that is, it only responds to the request including another discovery measurement combination.
  • the DDNMF network element of the HPLMN of the target terminal sends a third discovery measurement combination process verification request to the ranging application server to verify whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
  • S602 Receive the discovery response message fed back by the DDNMF network element when it is determined that the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
  • the discovery response message includes parameter information.
  • the DDNMF network element generates parameter information when the observing terminal is allowed to perform ranging on the target terminal during the discovery process based on the verification results, and can feed back the discovery response message including the parameter information to the observing terminal, so that the observing terminal can obtain the user information. To discover the parameter information of the measurement combination process.
  • the observing terminal can send a query message to the target terminal.
  • step S603 For the description and specific details of the above step S603, please refer to the relevant description and details of the above step S201.
  • S604 Receive the consultation response message fed back by the target terminal in response to the consultation message.
  • step S604 For the description and specific details of the above step S604, please refer to the relevant description and details of the above step S202.
  • S605 Calculate the distance to the target terminal based on the measurement signal and the feedback measurement signal.
  • step S605 For the description and specific details of the above step S605, please refer to the relevant description and details of the above step S203.
  • steps S601-S602 of this embodiment are combined with steps S201-S203 shown in Figure 2.
  • steps S601-S602 of the example can also be combined with the steps S301-S304 shown in Figure 3, combined with the steps S401-S404 shown in Figure 4, combined with the steps S501-S505 shown in Figure 5, and will not be repeated here. Prosecution.
  • the observing terminal needs to be verified before sending a query message including a measurement signal to the target terminal.
  • the observing terminal needs to be verified.
  • the target terminal sends a query message, and if the target terminal matches the observation terminal, it feeds back a query response message including a feedback measurement signal to the observation terminal.
  • the observation terminal can calculate the distance to the target terminal based on the measurement signal and the feedback measurement signal.
  • Figure 7 is a schematic flowchart of a ranging method according to an embodiment of the present disclosure. As shown in Figure 7, the method can be executed by the target terminal and includes the following steps.
  • S701 Receive the inquiry message sent by the observation terminal.
  • the query message is used to instruct the observation terminal and the target terminal to perform discovery matching and the query message includes a measurement signal to indicate that the observation terminal wishes to perform ranging during the discovery process.
  • the query response message includes a feedback measurement signal, and the measurement signal and the feedback measurement signal are used to determine the distance between the observation terminal and the target terminal.
  • the target terminal After receiving the query message including the measurement signal sent by the observation terminal, the target terminal can perform a discovery process to determine whether the target terminal matches the observation terminal. If the target terminal matches the observation terminal, it can send a message including the feedback measurement signal to the observation terminal. Inquiry response message.
  • the target terminal may not send a query response message to the observing terminal, which means that communication between the target terminal and the observing terminal is impossible.
  • the observation terminal After receiving the inquiry response message including the feedback measurement signal, the observation terminal can calculate the distance between the observation terminal and the target terminal based on the measurement signal and the feedback measurement signal.
  • the observing terminal may determine that the target terminal does not match the observing terminal, and will not communicate with the target terminal.
  • the observation terminal sends a query message including a measurement signal to the target terminal, and the target terminal feeds back a query response message including a feedback measurement signal to the observation terminal if it matches the observation terminal.
  • the observation terminal can according to The measurement signal and the feedback measurement signal calculate the distance to the target terminal.
  • Figure 8 shows a schematic flowchart of a ranging method according to an embodiment of the present disclosure. As shown in Figure 8, the method can be executed by the target terminal and includes the following steps.
  • S801 Receive the integrity-protected query message sent by the observation terminal.
  • the observing terminal may, after performing integrity protection on the query message, send the integrity-protected query message to the target terminal.
  • the integrity-protected solicitation message is used to instruct the observing terminal and the target terminal to perform discovery matching and includes a measurement signal to indicate that the observing terminal wishes to perform ranging during the discovery process.
  • the observing terminal can calculate the message verification code based on the security parameters received from the DDNMF network element of the HPLMN of the observing terminal, and append the message verification code to the end of the query message to protect the integrity of the query message.
  • the security parameter may be DUIK
  • the observing terminal calculates the MIC based on the DUIK, and appends the MIC to the end of the query message.
  • the target terminal needs to perform integrity verification on the query message.
  • the above step S802 may include the following steps.
  • S8021 Verify the integrity of the integrity-protected query message based on the security parameters received from the DDNMF network element of the HPLMN of the target terminal.
  • the target terminal may verify the query message according to the DUIK received from the DDNMF network element.
  • the query response message includes a feedback measurement signal, and the measurement signal and the feedback measurement signal are used to determine the distance between the observation terminal and the target terminal.
  • step S803 For the description and specific details of the above step S803, please refer to the relevant description and details of the above step S702.
  • the observation terminal sends an integrity-protected query message to the target terminal after performing integrity protection on the query message.
  • the target terminal feeds back to the observation terminal a feedback measurement signal including a feedback measurement signal if it matches the observation terminal.
  • the observing terminal can calculate the distance to the target terminal based on the measurement signal and feedback measurement signal in the inquiry message.
  • ranging between two terminals can be performed during the discovery process, thereby reducing network resource consumption and saving terminal power consumption.
  • the query message is an integrity-protected message, tampering of the query message can be avoided. , thereby improving the security of the consultation message.
  • Figure 9 shows a schematic flowchart of a ranging method according to an embodiment of the present disclosure. As shown in Figure 9, the method can be executed by the target terminal and includes the following steps.
  • S901 Receive the inquiry message sent by the observation terminal.
  • step S901 For the description and specific details of the above step S901, please refer to the relevant description and details of the above step S701.
  • the integrity-protected query response message includes a feedback measurement signal, and the measurement signal and the feedback measurement signal are used to determine the distance between the observation terminal and the target terminal.
  • the target terminal After receiving the query message including the measurement signal sent by the observation terminal, the target terminal can perform a discovery process to determine whether the target terminal matches the observation terminal. If the target terminal matches the observation terminal, it can send a message including the feedback measurement signal to the observation terminal. Inquiry response message. In order to prevent the query response message from being tampered with, the target terminal can send the integrity-protected query response message to the observation terminal after performing integrity protection on the query response message.
  • the target terminal may not send a query response message to the observing terminal, which means that communication between the target terminal and the observing terminal is impossible.
  • the above step S902 may include the following steps.
  • S9021 Calculate the message verification code based on the security parameters received from the DDNMF network element of the HPLMN of the target terminal.
  • the target terminal may calculate the message verification code based on the security parameters received from the DDNMF network element of the target terminal's HPLMN.
  • the security parameter may be a Discovery User Integrity Key (DUIK), and the observing terminal calculates a Message Integrity Code (MIC) based on the DUIK.
  • DAIK Discovery User Integrity Key
  • MIC Message Integrity Code
  • S9022 Attach the message verification code to the end of the inquiry response message to protect the integrity of the inquiry response message.
  • the target terminal can append the MIC to the end of the query response message to protect the integrity of the query response message.
  • S903 Send an integrity-protected query response message to the observation terminal.
  • the target terminal After performing integrity protection on the inquiry response message, the target terminal sends the integrity-protected inquiry response message to the observation terminal.
  • the observation terminal After the observation terminal receives the integrity-protected inquiry response message, the observation terminal needs to perform integrity verification on the inquiry response message. Specifically, the observation terminal can calculate the distance between the observation terminal and the target terminal based on the measurement signal and the feedback measurement signal if the verification is passed based on the DUIK verification inquiry response message.
  • the observing terminal may determine that the target terminal does not match the observing terminal, and will not communicate with the target terminal.
  • the observation terminal sends a query message including a measurement signal to the target terminal, and the target terminal feeds back a query response message including a feedback measurement signal to the observation terminal if it matches the observation terminal, and the query response message
  • the observing terminal can calculate the distance to the target terminal based on the measurement signal and the feedback measurement signal.
  • Figure 10 shows a schematic flowchart of a ranging method according to an embodiment of the present disclosure. As shown in Figure 10, the method can be executed by an observation terminal and includes the following steps.
  • S1001 Receive the integrity-protected query message sent by the observation terminal.
  • step S1001 For the description and specific details of the above step S1001, please refer to the relevant description and details of the above step S801.
  • step S1002 For the description and specific details of the above step S1002, please refer to the relevant description and details of the above step S802.
  • step S1003 For the description and specific details of the above step S1003, please refer to the relevant description and details of the above step S902.
  • step S1004 For the description and specific details of the above step S1004, please refer to the relevant description and details of the above step S903.
  • the observing terminal sends an integrity-protected query message to the target terminal after performing integrity protection on the query message.
  • the target terminal feeds back the integrity-protected query message to the observing terminal if it matches the observing terminal.
  • the observing terminal can calculate the distance to the target terminal based on the measurement signal in the query message and the feedback measurement signal in the query response message.
  • ranging between two terminals can be performed during the discovery process, thereby reducing network resource consumption and saving terminal power consumption.
  • both the query message and the query response message are integrity-protected messages, it can This prevents the inquiry message and the inquiry response message from being tampered with, thereby improving the security of the inquiry message and the inquiry response message.
  • Figure 11 shows a schematic flowchart of a ranging method according to an embodiment of the present disclosure. As shown in Figure 11, the method can be executed by a target terminal and includes the following steps.
  • the second discovery request message is used to request execution of the discovery measurement combination process.
  • the DDNMF network element is configured to send a second discovery measurement combination process verification request to the ranging application server in response to the second discovery request message.
  • the ranging application server is configured to verify whether the target terminal is allowed in the discovery process based on the second discovery measurement combination process verification request. When the verification result indicates that the target terminal is allowed to perform ranging during the discovery process, the DDNMF network element generates parameter information for the discovery measurement combination process.
  • the second discovery request message includes a discovery measurement combination process indication
  • the discovery measurement combination process indication is used to request verification whether the target terminal is allowed to perform ranging during the discovery process.
  • the DDNMF network element can autonomously send a second discovery measurement combination process verification request to the ranging application server in response to the second discovery request message. That is, in response to any second discovery request message, the DDNMF network element sends a second discovery measurement combination process verification request to the ranging application server.
  • a second discovery measurement combination process verification request is sent to verify whether the target terminal is allowed to perform ranging during the discovery process.
  • the DDNMF network element sends a second discovery and measurement combination process verification request to the ranging application server according to the discovery and measurement combination process indication in the second discovery request message, that is, only responds to the second discovery request message including the discovery and measurement combination process indication,
  • the DDNMF network element sends a second discovery measurement combination process verification request to the ranging application server to verify whether the target terminal is allowed to perform ranging during the discovery process.
  • S1102 Receive the discovery response message fed back by the DDNMF network element when it is determined that the target terminal is allowed to perform ranging during the discovery process.
  • the discovery response message includes parameter information.
  • the DDNMF network element generates parameter information when the target terminal is allowed to perform ranging during the discovery process based on the verification results, and can feed back a discovery response message including parameter information to the target terminal, so that the target terminal can obtain the measurement information used for discovery. Parameter information of the combined process.
  • S1104 When the target terminal determines that it matches the observing terminal and the target terminal is allowed to perform ranging during the discovery process, feed back a query response message to the observing terminal.
  • the query response message includes a feedback measurement signal, and the measurement signal and the feedback measurement signal are used to determine the distance between the observation terminal and the target terminal.
  • the target terminal After receiving the query message including the measurement signal sent by the observation terminal, the target terminal can perform a discovery process to determine whether the target terminal matches the observation terminal. If the target terminal matches the observation terminal, it can send a message including the feedback measurement signal to the observation terminal. Inquiry response message.
  • the target terminal may send a solicitation response message that does not include the feedback measurement signal to the observing terminal to indicate that the target terminal cannot Participate in the discovery measurement portfolio process.
  • the target terminal may not send a query response message to the observing terminal, which means that communication between the target terminal and the observing terminal is impossible.
  • the observation terminal After receiving the inquiry response message including the feedback measurement signal, the observation terminal can calculate the distance between the observation terminal and the target terminal based on the measurement signal and the feedback measurement signal.
  • the observing terminal if the observing terminal receives a solicitation response message that does not include a feedback measurement signal, the observing terminal needs to perform ranging on the target terminal after the discovery process is completed.
  • the observing terminal may determine that the target terminal does not match the observing terminal, and will not communicate with the target terminal.
  • steps S1101-S1102 of this embodiment are combined with steps S701-S703 shown in Figure 7.
  • steps S1101-S1102 of this embodiment can also be combined with the steps S801-S803 shown in Figure 8, combined with the steps S901-S903 shown in Figure 9, combined with the steps S1001-S1004 shown in Figure 10, and will not be repeated here. Prosecution.
  • the observing terminal sends a query message including a measurement signal to the target terminal, and the target terminal feeds back to the observing terminal including Feedback the query response message of the measurement signal, and the observation terminal can calculate the distance to the target terminal based on the measurement signal and the feedback measurement signal.
  • ranging between two terminals can be performed during the discovery process, thereby reducing network resource consumption and saving terminal power consumption.
  • Figure 12 shows a schematic flowchart of a ranging method according to an embodiment of the present disclosure. As shown in Figure 12, the method can be executed by the observation terminal and the target terminal, and includes the following steps.
  • the observation terminal 1 sends a query message to the target terminal 2, the target terminal 3, the target terminal 4 and the target terminal 5 respectively.
  • the query message includes the measurement signal.
  • the solicitation message may also include discovery message types and the like.
  • the target terminal matching the observation terminal 1 feeds back a query response message to the observation terminal 1.
  • the query response message includes the feedback measurement signal and the time difference between receiving the query message and the feedback query response message.
  • the solicitation response message may also include a discovery message type and the like.
  • S1202 includes S1202a and S1202b.
  • the target terminal 2 feeds back a query response message including the feedback measurement signal and the time difference ⁇ T 21 to the observation terminal 1 .
  • the target terminal 3 feeds back a query response message including the feedback measurement signal and the time difference ⁇ T 31 to the observation terminal 1 .
  • the observation terminal 1 calculates the time difference between sending the inquiry message and receiving the inquiry response message based on the received inquiry response message, and calculates the time difference between the calculated time difference and the time difference contained in the inquiry response message and the target terminal that feeds back the inquiry response message. distance between.
  • the observation terminal 1 calculates the time difference between sending the inquiry message and receiving the inquiry response message fed back by the target terminal 2 as ⁇ T 12 , from which the distance between the observation terminal 1 and the target terminal 2 can be calculated is ( ⁇ T 12 - ⁇ T 21 ) x C/2; the time difference between the observation terminal 1 and the reception of the inquiry response message fed back by the target terminal 3 is ⁇ T 13 , from which the observation terminal 1 and the target terminal can be calculated The distance between 3 is ( ⁇ T 13 – ⁇ T 31 )x C/2.
  • FIG 13 shows a schematic flowchart of a ranging verification method according to an embodiment of the present disclosure. As shown in Figure 13, this method can be executed by a DDNMF network element observing the HPLMN of the terminal, and includes the following steps.
  • the first discovery request message is used to request execution of the discovery measurement combination process and indicates that the terminal sending the first discovery request message is an observing terminal. That is, the DDNMF network element of the HPLMN of the observing terminal can learn the HPLMN of the observing terminal based on the received first discovery request message.
  • the first discovery request message comes from the observing terminal.
  • the DDNMF network element of the HPLMN of the observing terminal can send a first discovery and measurement combination process verification request to the ranging application server, so that the ranging application server will verify based on the first discovery and measurement combination verification request. Whether the observing terminal is allowed to perform ranging during discovery.
  • the first discovery request message may include a discovery measurement combination process indication.
  • the discovery measurement combination process indication is used to request verification that the observing terminal is allowed to perform ranging during the discovery process.
  • the DDNMF network element of the HPLMN of the observing terminal can autonomously send a first discovery measurement combination process verification request to the ranging application server in response to the first discovery request message, that is, in response to any first discovery request message, the observing terminal
  • the DDNMF network element of the HPLMN sends a first discovery measurement combination process verification request to the ranging application server to verify whether the observing terminal is allowed to perform ranging during the discovery process.
  • the DDNMF network element of the HPLMN of the observing terminal sends a first discovery and measurement combination process verification request to the ranging application server according to the discovery and measurement combination process indication in the first discovery request message, that is, only responds to the first discovery and measurement combination process indication including the discovery and measurement combination process indication.
  • the DDNMF network element of the HPLMN of the observing terminal Upon receiving the discovery request message, sends a first discovery measurement combination process verification request to the ranging application server to verify whether the observing terminal is allowed to perform ranging during the discovery process.
  • S1303 receive the verification result from the ranging application server, and forward the first discovery request message to the DDNMF network element of the target terminal's HPLMN if the verification result indicates that the observing terminal is allowed to perform ranging during the discovery process.
  • the DDNMF network element of the observing terminal's HPLMN receives the verification result from the ranging application server. If the verification result indicates that the observing terminal is allowed to perform ranging during the discovery process, the DDNMF network element of the observing terminal's HPLMN forwards the first discovery request message to The DDNMF network element of the target terminal's HPLMN.
  • S1304 Receive the discovery response message fed back by the DDNMF network element of the HPLMN of the target terminal when it is determined that the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
  • the DDNMF network element of the HPLMN of the target terminal After receiving the first discovery request message forwarded by the DDNMF network element of the HPLMN of the observing terminal, the DDNMF network element of the HPLMN of the target terminal will send a third discovery measurement combination process verification request to the ranging application server, so that the ranging application server will The verification request verifies whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process based on the third discovery measurement combination process verification request.
  • the DDNMF network element of the target terminal's HPLMN generates parameter information for the discovery measurement combination process of the observing terminal.
  • the DDNMF network element of the HPLMN of the target terminal feeds back the discovery response message including the parameter information to the DDNMF network element of the HPLMN of the observing terminal.
  • the first discovery request message forwarded by the DDNMF network element of the HPLMN of the observing terminal may include another discovery measurement combination process indication.
  • Another discovery measurement combination process indication is used to request verification whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
  • the DDNMF network element of the target terminal's HPLMN can autonomously send a third discovery measurement combination process verification request to the ranging application server in response to the first discovery request message, that is, in response to any first discovery request message, the target terminal's
  • the DDNMF network element of the HPLMN sends a third discovery measurement combination process verification request to the ranging application server to verify whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
  • the DDNMF network element of the HPLMN of the target terminal sends a third discovery measurement combination process verification request to the ranging application server according to another discovery measurement combination process instruction in the first discovery request message, that is, it only responds to the request including another discovery measurement combination.
  • the DDNMF network element of the HPLMN of the target terminal sends a third discovery measurement combination process verification request to the ranging application server to verify whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
  • the parameter information may include security parameters for integrity protection and/or verification of the specified information.
  • the parameter information includes security parameters used to protect the integrity of the query message, so that the observing terminal can protect the integrity of the query message based on the security parameters and then send it to the target terminal.
  • the parameter information includes security parameters used for integrity verification of the query response message, so that after receiving the integrity-protected query response message, the observing terminal can perform integrity verification of the query response message based on the security parameters.
  • S1305 Send the discovery response message to the observation terminal.
  • the network device can verify the observing terminal to determine whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
  • FIG 14 shows a schematic flowchart of a ranging verification method according to an embodiment of the present disclosure. As shown in Figure 14, this method can be executed by the DDNMF network element of the HPLMN of the target terminal, and includes the following steps.
  • the second discovery request message is used to request execution of the discovery measurement combination process and indicates that the terminal sending the second discovery request message is the target terminal. That is, the DDNMF network element of the HPLMN of the target terminal can learn the target terminal based on the received second discovery request message.
  • the second discovery request message comes from the target terminal.
  • the DDNMF network element of the HPLMN of the target terminal can send a second discovery and measurement combination process verification request to the ranging application server, so that the ranging application server will verify based on the second discovery and measurement combination verification request. Whether to allow the target terminal to perform ranging during discovery.
  • the second discovery request message may include a discovery measurement combination process indication.
  • the discovery measurement combination process indication is used to request verification whether the target terminal is allowed to perform ranging during the discovery process.
  • the DDNMF network element of the target terminal's HPLMN can autonomously send a second discovery measurement combination process verification request to the ranging application server in response to the second discovery request message, that is, in response to any second discovery request message, the target terminal's
  • the DDNMF network element of the HPLMN sends a second discovery measurement combination process verification request to the ranging application server to verify whether the target terminal is allowed to perform ranging during the discovery process.
  • the DDNMF network element of the target terminal's HPLMN sends a second discovery and measurement combination process verification request to the ranging application server according to the discovery and measurement combination process indication in the second discovery request message, that is, only responds to the first discovery and measurement combination process indication that includes the discovery and measurement combination process indication.
  • the DDNMF network element of the HPLMN of the target terminal sends a second discovery measurement combination process verification request to the ranging application server to verify whether the target terminal is allowed to perform ranging during the discovery process.
  • the DDNMF network element of the target terminal's HPLMN When the verification result fed back by the ranging application server indicates that the target terminal is allowed to perform ranging during the discovery process, the DDNMF network element of the target terminal's HPLMN generates the second parameter information.
  • the second parameter information may include security parameters for integrity protection and/or verification of the specified information.
  • the second parameter information includes security parameters used to protect the integrity of the query response message, so that the target terminal can perform integrity protection on the query response message based on the security parameters and then send it to the observation terminal.
  • the second parameter information includes security parameters used for integrity verification of the query message, so that the target terminal can perform integrity verification of the query information based on the security parameters after receiving the integrity-protected query message.
  • S1405 Send the second discovery response message including the second parameter information to the target terminal.
  • the DDNMF network element of the HPLMN of the target terminal feeds back the second discovery response message including the second parameter information to the target terminal.
  • the network device can verify the target terminal to determine whether the target terminal is allowed to perform ranging during the discovery process.
  • Figure 15 shows a schematic flowchart of a ranging verification method according to an embodiment of the present disclosure. As shown in Figure 15, this method can be executed by the DDNMF network element of the target terminal's HPLMN, and includes the following steps.
  • S1505 Send the second discovery response message including the second parameter information to the target terminal.
  • S1506 Receive the first discovery request message forwarded by the DDNMF network element of the HPLMN of the observing terminal.
  • the first discovery request message is used to request execution of the discovery measurement combination process and indicates that the terminal sending the first discovery request message is an observing terminal, that is, the DDNMF network element of the HPLMN of the target terminal can learn the target terminal based on the received first discovery request message.
  • the first discovery request message comes from the observing 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 target terminal's HPLMN when the observing terminal is verified to be allowed to perform ranging during the discovery process.
  • the DDNMF network element of the HPLMN of the target terminal can send a third discovery measurement combination process verification request to the ranging application server, so that the ranging application server will verify the request based on the third discovery measurement combination verification Whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process to obtain the first verification result.
  • the first discovery request message may include a discovery measurement combination process indication.
  • the discovery measurement combination process indication is used to request verification whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
  • the DDNMF network element of the target terminal's HPLMN can autonomously send a third discovery measurement combination process verification request to the ranging application server in response to the first discovery request message, that is, in response to any first discovery request message, the target terminal's
  • the DDNMF network element of the HPLMN sends a third discovery measurement combination process verification request to the ranging application server to verify whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
  • the DDNMF network element of the HPLMN of the target terminal sends a third discovery and measurement combination process verification request to the ranging application server according to the discovery and measurement combination process indication in the first discovery request message, that is, only responds to the third discovery and measurement combination process indication including the discovery and measurement combination process indication.
  • the DDNMF network element of the HPLMN of the target terminal Upon receiving the discovery request message, sends a third discovery measurement combination process verification request to the ranging application server to verify whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
  • S1508 Receive a verification result from the ranging application server indicating whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
  • the DDNMF network element of the HPLMN of the target terminal generates the first parameter information when the verification result fed back by the ranging application server indicates that the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
  • the first parameter information may also include security parameters used for integrity protection and/or verification of the specified information.
  • the first parameter information includes security parameters used to protect the integrity of the query message, so that the observing terminal can protect the integrity of the query message based on the security parameters and then send it to the target terminal.
  • the first parameter information includes security parameters used to perform integrity verification on the query response message, so that after receiving the integrity-protected query response message, the observation terminal can perform integrity verification on the query response message based on the security parameters. verify.
  • S1510 Send the first discovery response message including the first parameter information to the DDNMF network element of the HPLMN of the observing terminal.
  • the DDNMF network element of the HPLMN of the target terminal feeds back the 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 can feed back the first discovery response message to Observation terminal.
  • the network device can verify the target terminal to determine whether the target terminal is allowed to perform ranging during the discovery process, and verify the observing terminal to determine whether the observing terminal is allowed to perform ranging during the discovery process. Perform ranging on the target terminal.
  • Figure 16 shows a schematic flowchart of a ranging verification method according to an embodiment of the present disclosure. As shown in Figure 16, this method is used to verify the observation terminal, and the method may include the following steps.
  • S1601 Receive the first discovery measurement combination process verification request sent by the DDNMF network element of the HPLMN of the observing terminal.
  • the first discovery measurement combination process verification request is used to request verification whether the observation terminal is allowed to perform ranging during the discovery process.
  • the first discovery measurement combination process verification request is sent by the DDNMF network element of the HPLMN of the observing terminal based on the first discovery request message received from the observing terminal.
  • the ranging application server verifies whether the observing terminal is allowed to perform ranging during the discovery process in response to the first discovery measurement combination verification request.
  • S1603 Feed back the intermediate verification results to the DDNMF network element of the HPLMN of the observing terminal.
  • S1604 Receive the third discovery measurement combination process verification request sent by the DDNMF network element of the HPLMN of the target terminal.
  • the third discovery measurement combination process verification request is used to request verification whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
  • the third discovery measurement combination process 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 observing terminal.
  • the first discovery request message is the DDNMF of the HPLMN of the observing terminal when the observing terminal is verified to be allowed to perform ranging during the discovery process (i.e., the intermediate verification result indicates that the observing terminal is permitted to perform ranging during the discovery process).
  • the network element forwards the DDNMF network element of HPLMN to the target terminal.
  • S1605 Verify whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process to obtain the first verification result.
  • the ranging application server verifies whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process in response to the third discovery measurement combination verification request. If the target terminal is not verified to be allowed to perform ranging during the discovery process, the first verification result obtained by the ranging application server is that the observing terminal is not allowed to perform ranging on the target terminal during the discovery process. If the target terminal has been verified to be allowed to perform ranging during the discovery process, the first verification result obtained by the ranging application server may be that the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
  • S1606 Feed back the first 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 the first parameter information and will include the first parameter 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 during the discovery process.
  • the information first discovery response message is sent to the DDNMF network element of the HPLMN of the observing terminal, and the DDNMF network element of the HPLMN of the observing terminal can feed back the first discovery response message to the observing terminal.
  • the first parameter information may include security parameters for integrity protection and/or verification of the specified information.
  • the first parameter information includes security parameters used to protect the integrity of the query message, so that the observing terminal can protect the integrity of the query message based on the security parameters and then send it to the target terminal.
  • the first parameter information includes security parameters used to perform integrity verification on the query response message, so that after receiving the integrity-protected query response message, the observation terminal can perform integrity verification on the query response message based on the security parameters. verify.
  • the network device can verify the observing terminal to determine whether the observing terminal is allowed to perform ranging during the discovery process and whether it is allowed to perform ranging on a specific target terminal during the discovery process.
  • Figure 17 shows a schematic flowchart of a ranging verification method according to an embodiment of the present disclosure. As shown in Figure 17, this method is used to verify the target terminal, and the method may include the following steps.
  • S1701 Receive the second discovery measurement combination process verification request sent by the DDNMF network element of the HPLMN of the target terminal.
  • the second discovery measurement combination process verification request is used to request verification whether the target terminal is allowed to perform ranging during the discovery process.
  • the second discovery measurement combination process verification request is sent by the DDNMF network element of the HPLMN of the target terminal based on the second discovery request message received from the target terminal.
  • S1702 Verify whether the target terminal is allowed to perform ranging during the discovery process to obtain the second verification result.
  • the ranging application server verifies whether the target terminal is allowed to perform ranging during the discovery process in response to the second discovery measurement combination verification request.
  • S1703 Feed 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 the second parameter information when the second verification result fed back by the ranging application server indicates that the target terminal is allowed to perform ranging during the discovery process, and will include the second parameter information. 2.
  • the discovery response message is sent to the target terminal.
  • the second parameter information may also include security parameters for integrity protection and/or verification of the specified information.
  • the second parameter information includes security parameters used to protect the integrity of the query response message, so that the target terminal can perform integrity protection on the query response message based on the security parameters and then send it to the observation terminal.
  • the second parameter information includes security parameters used for integrity verification of the query message, so that the target terminal can perform integrity verification of the query information based on the security parameters after receiving the integrity-protected query message.
  • the network device can verify the observing terminal to determine whether the observing terminal is allowed to perform ranging during the discovery process and whether it is allowed to perform ranging on a specific target terminal during the discovery process, and can The target terminal is authenticated to determine whether the target terminal is allowed to perform ranging during the discovery process.
  • Figure 18 shows a schematic flowchart of a discovery measurement combination process according to an embodiment of the present disclosure. As shown in Figure 18, this process can be executed by the observing terminal, the target terminal, the DDNMF network element of the HPLMN of the observing 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 .
  • the target terminal sends a second discovery request message to the DDNMF network element of the HPLMN of the target terminal to obtain the discovery query filter monitoring query and security protection parameters.
  • the second discovery request message may include an indicator for instructing the target terminal to request a discovery measurement combination procedure.
  • the DDNMF network element of the HPLMN of the target terminal requests the ranging application server to perform discovery measurement combination process verification based on the indicator or local configuration.
  • the ranging application server verifies whether the target terminal is allowed to perform ranging during the discovery process and feeds back the verification results.
  • the DDNMF network element of the HPLMN of the target terminal generates parameter information for the discovery and measurement combination process of the target terminal based on the verification results.
  • the DDNMF network element of the HPLMN of the target terminal and the DDNMF network element of the VPLMN exchange verification messages. If the target terminal is not roaming, this step can be omitted.
  • 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 corresponding to each discovery filter (such as sending security parameters and receiving security parameters), as well as the current time, maximum Offset and other parameters.
  • security protection parameters corresponding to each discovery filter (such as sending security parameters and receiving security parameters)
  • sending security parameters provides necessary information to the target terminal to protect the transmission of the specified message
  • receiving security parameters provides necessary information to the target terminal to eliminate the protection of the specified message by the observing terminal.
  • the observing terminal sends a first discovery request message to the DDNMF network element of the observing terminal's HPLMN to allow discovery of one or more target terminals.
  • the first discovery request message may include an indicator for instructing the observing terminal to request a discovery measurement combination procedure.
  • the DDNMF network element of the HPLMN of the observing terminal requests the ranging application server to perform discovery measurement combination process verification based on the indicator or local configuration.
  • the ranging application server verifies whether the observing terminal is allowed to perform ranging during the discovery process and feeds back the verification results.
  • the DDNMF network element of the HPLMN of the target terminal requests the ranging application server to perform discovery measurement combination process verification.
  • the ranging application server verifies whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process and feeds back the verification results.
  • the DDNMF network element of the HPLMN of the target terminal generates parameter information for the discovery and measurement combination process of the observation terminal based on the verification results.
  • 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 observing terminal, including the following parameter information: sending security parameters and receiving security parameters, such as DUIK. Among them, receiving security parameters provides necessary information to the observing terminal to eliminate the protection of the specified message by the target terminal. .
  • S1810 The DDNMF network element of the HPLMN of the observation terminal and the DDNMF network element of the VPLMN exchange verification messages. If the observing terminal is not roaming, this step can be omitted.
  • the DDNMF network element of the HPLMN of the observing terminal returns a discovery response message including sending security parameters, receiving security parameters and other parameters to the observing terminal.
  • the observing terminal sends a query message including the measurement signal to the target terminal and monitors the query response message.
  • the solicitation message is integrity protected by appending the MIC calculated using DUIK to the end of the solicitation message.
  • the target terminal listens for query messages that satisfy its discovery filter. In order to find a matching message, the target terminal performs integrity verification on the received solicitation message using the DUIK contained in the receive security parameters received by the target terminal.
  • the target terminal if the integrity is successfully verified, the target terminal returns an integrity-protected inquiry response message, which includes the feedback measurement signal and the time difference between receiving the inquiry message and the feedback inquiry response message.
  • the solicitation response message is integrity protected by appending the MIC calculated using DUIK to the end of the solicitation response message.
  • the observation terminal monitors the inquiry response message that satisfies its discovery filter.
  • the target terminal performs integrity verification on the received solicitation response message using the DUIK contained in the receive security parameters received by the observing terminal. After successful verification, the observing terminal can calculate the distance to the target terminal.
  • the observing terminal can also report a matching report to the DDNMF network element of the HPLMN of the observing terminal.
  • the matching report can include the current time, MIC and other information.
  • the DDNMF network element of the HPLMN of the observing terminal may optionally request re-verification from the ranging application server.
  • the DDNMF network element of the HPLMN of the observing terminal can return matching report confirmation information to the observing terminal, and the matching report confirmation information can include the matching report refresh time.
  • the DDNMF network element of the HPLMN of the observing terminal can also send a detection report to the DDNMF network element of the HPLMN of the target terminal.
  • network equipment and user equipment may include hardware structures and software modules to implement the above functions in the form of hardware structures, software modules, or hardware structures plus software modules.
  • One of the above functions can be executed by a hardware structure, a software module, or a hardware structure plus a software module.
  • the present disclosure also provides a distance measurement device. Since the distance measurement device provided by the embodiments of the present disclosure corresponds to the distance measurement methods provided by the above embodiments, the distance measurement method is The implementation of the distance method is also applicable to the distance measurement device provided in this embodiment, and will not be described in detail in this embodiment.
  • Figure 19 is a schematic structural diagram of a distance measuring device 1900 provided by an embodiment of the present disclosure.
  • the device 1900 is applied to a first terminal, where the first terminal is a terminal that initiates a discovery measurement combination process.
  • the discovery measurement combination process is used to perform ranging during the discovery process, and the device 1900 can It includes 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 that will be discovered to perform a discovery measurement combination process, and the query message is used to indicate that the second terminal and the first terminal
  • the terminal performs a discovery match, and the inquiry message includes a measurement signal; receives an inquiry response message fed back by the second terminal in response to the inquiry message, wherein the inquiry response message is determined by the second terminal to be consistent with the first inquiry message. Sent when the terminal matches, and the query response message includes a feedback measurement signal.
  • the processing module 1902 is configured to calculate the distance to the second terminal based on the measurement signal and the feedback measurement signal.
  • the observing terminal sends a query message to the target terminal when it is allowed to perform ranging on the target terminal during the discovery process.
  • the target terminal matches the observing terminal and the target terminal is allowed to perform ranging during the discovery process.
  • a query response message is fed back to the observation terminal, and the observation terminal calculates the distance to the target terminal based on the measurement signal in the query message and the feedback measurement signal in the query response message.
  • the processing module 1902 is used to perform integrity protection on the query message.
  • the processing module 1902 is configured to calculate a message verification code based on the security parameters received from the first proximity service discovery management function DDNMF network element of the first local public land mobile network HPLMN of the first terminal; And append the message verification code to the end of the query message to protect the integrity of the query message.
  • the processing module 1902 is configured to verify the integrity of the query response message, and if the integrity of the query response message is successfully verified, based on the measurement signal and the feedback measurement signal , calculate the distance to the second terminal.
  • the processing module 1902 is configured to verify the integrity of the query response message based on the security parameters received from the first DDNMF network element.
  • the transceiver module 1901 is configured to: send a first discovery request message to the first DDNMF network element, where the first discovery request message is used to request the execution of a discovery measurement combination process; receive the first DDNMF A discovery response message fed back by the network element when it is determined that the first terminal is allowed to perform ranging on the second terminal during the discovery process.
  • the discovery response message includes parameters for the discovery measurement combination process. Information; when the first terminal is allowed to perform ranging on the second terminal during the discovery process, send a query message to the second terminal.
  • the first discovery request message includes a discovery measurement combination process indication
  • the discovery measurement combination process indication is used to request verification whether the first terminal is allowed to perform the discovery process on the second terminal. Ranging.
  • Figure 20 is a schematic structural diagram of a distance measuring device 2000 provided by an embodiment of the present disclosure.
  • the device 2000 is applied to a second terminal, where the second terminal is a terminal that will be discovered to perform a discovery measurement combination process, and the discovery measurement combination process is used to perform ranging during the discovery process, And the device 2000 may include a transceiver 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 process, and the query message is used to instruct the second terminal to perform discovery with the first terminal. match, and the query message includes a measurement signal; and when the second terminal determines that it matches the first terminal, feedback a query response message to the first terminal, wherein the query response message includes Feedback measurement signals, wherein the measurement signals and the feedback measurement signals are used to determine the distance between the first terminal and the second terminal.
  • the observing terminal sends a query message to the target terminal when it is allowed to perform ranging on the target terminal during the discovery process.
  • the target terminal matches the observing terminal and the target terminal is allowed to perform ranging during the discovery process.
  • a query response message is fed back to the observation terminal, and the observation terminal calculates the distance to the target terminal based on the measurement signal in the query message and the feedback measurement signal in the query response message.
  • the device 2000 further includes a processing module 2002 for verifying the integrity of the inquiry message; wherein the feedback of an inquiry response message to the first terminal includes: after successfully verifying the integrity of the inquiry message If necessary, feed back the query response message to the first terminal.
  • the processing module 2002 is configured to verify the query message based on security parameters received from a second proximity service discovery management function DDNMF network element of the second local public land mobile network HPLMN of the second terminal. of integrity.
  • the processing module 2002 is configured to perform integrity protection on the query response message.
  • the processing module 2002 is configured to calculate a message verification code based on the security parameters received from the second DDNMF network element; and append the message verification code to the end of the query response message to verify The query response message is integrity protected.
  • the transceiver module 2001 is configured to: send a second discovery request message to the second DDNMF network element, where the second discovery request message is used to request execution of a discovery measurement combination process; and receive the The discovery response message fed back by the second DDNMF network element when it is determined that the second terminal is allowed to perform ranging during the discovery process, the discovery response message includes parameter information for the discovery measurement combination process; wherein , the feedback of the inquiry response message to the first terminal includes: when the second terminal determines that it matches the first terminal and the second terminal is allowed to perform ranging during the discovery process, send the inquiry response message to the first terminal. The first terminal feeds back the inquiry response message.
  • the second discovery request message includes a discovery measurement combination verification indication
  • the discovery measurement combination process indication is used to request verification of whether the second terminal is allowed to perform ranging during the discovery process.
  • the present disclosure also provides a ranging verification device, because the ranging verification device provided by the embodiments of the present disclosure is consistent with the ranging verification methods provided by the above-mentioned embodiments.
  • the implementation of the ranging method is also applicable to the ranging verification device provided in this embodiment, and will not be described in detail in this embodiment.
  • Figure 21 is a schematic structural diagram of a ranging verification device 2100 provided by an embodiment of the present disclosure.
  • the device 2100 is applied to the first proximity service discovery management function DDNMF network element of the first local public land mobile network HPLMN of the first terminal, and the device 2100 may include a transceiver module 2101.
  • the transceiver module 2101 is configured to: receive a first discovery request message sent by the first terminal, where the first discovery request message is used to request execution of a discovery measurement combination process and instructs to send the first discovery request message.
  • a terminal is a terminal that initiates a discovery measurement combination process.
  • the discovery measurement combination process is used to perform ranging during the discovery process; in response to the first discovery request message, a first discovery measurement combination process verification is sent to the ranging application server.
  • the ranging application server is configured to verify whether the first terminal is allowed to perform ranging during the discovery process based on the first discovery measurement combination verification request; receive the verification result from the ranging application server, and verify in the verification If the result indicates that the first terminal is allowed to perform ranging during the discovery process, forward the first discovery request message to the second DDNMF network element of the second HPLMN of the second terminal, and the second terminal is A terminal that will be discovered for performing a discovery measurement combination process; receiving a discovery response message fed back by the second DDNMF network element when it is determined that the first terminal is allowed to perform ranging on the second terminal during the discovery process. , wherein the discovery response message includes parameter information for the discovery measurement combination process; and sending the discovery response message to the first terminal.
  • the network device can verify the observing terminal to determine whether the observing terminal is allowed to perform ranging during the discovery process and whether it is allowed to perform ranging on a specific target terminal during the discovery process. Additionally, the network device can authenticate the target terminal to determine whether the target terminal is allowed to perform ranging during the discovery process. Thus, it can be verified whether the terminal can perform the discovery measurement combination process.
  • the parameter information includes security parameters for integrity protection and/or verification of specified information.
  • the first discovery request message includes a discovery measurement combination process indication
  • the discovery measurement combination process indication is used to request verification whether the first terminal is allowed to perform ranging during the discovery process and to verify that the Whether the first terminal is allowed to perform ranging on the second terminal during the discovery process.
  • Figure 22 is a schematic structural diagram of a ranging verification device 2200 provided by an embodiment of the present disclosure.
  • the device 2200 is applied to the first proximity service discovery management function DDNMF network element of the first local public land mobile network HPLMN of the first terminal, and the device 2200 may include a transceiver module 2201 and a processing module 2202.
  • the transceiver module 2201 is configured to receive a second discovery request message sent by a second terminal, where the second discovery request message is used to request execution of a discovery measurement combination process and to indicate the second terminal that sends the second discovery request message. It is a terminal that will be discovered to perform a discovery measurement combination process.
  • the discovery measurement combination process is used to perform ranging during the discovery process; in response to the second discovery request message, send a second discovery measurement combination to the ranging application server.
  • a process verification request the ranging application server verifies whether the second terminal is allowed to perform ranging during the discovery process based on the second discovery measurement combination process verification request; and receives a verification result from the ranging application server.
  • the processing module 2202 is configured to generate second parameter information for the discovery measurement combination process of the second terminal when the verification result indicates that the second terminal is allowed to perform ranging during the discovery process.
  • the transceiving module 2201 is also configured to send a second discovery response message including the second parameter information to the second terminal.
  • the network device can verify the observing terminal to determine whether the observing terminal is allowed to perform ranging during the discovery process and whether it is allowed to perform ranging on a specific target terminal during the discovery process. Additionally, the network device can authenticate the target terminal to determine whether the target terminal is allowed to perform ranging during the discovery process. Thus, it can be verified whether the terminal can perform the discovery measurement combination process.
  • the transceiver module 2201 is also configured to receive a first discovery request message forwarded by the first DDNMF network element of the first HPLMN of the first terminal.
  • the first discovery request message is used to request execution of the discovery measurement combination process and instructs to send the
  • the first terminal of the first discovery request message is the terminal that initiates the discovery and measurement combination process; in response to the first discovery request message, a first discovery and measurement combination process verification request is sent to the ranging application server, and the ranging application
  • the server verifies whether the first terminal is allowed to perform ranging on the second terminal during the discovery process based on the first discovery measurement combination process verification request.
  • the processing module 2202 is also configured to generate a discovery measurement combination process for the first terminal when the verification result indicates that the first terminal is allowed to perform ranging on the second terminal during the discovery process. First parameter information.
  • the transceiving module 2201 is also configured to send a first discovery response message including the first parameter information to the first DDNMF network element.
  • the first parameter information and the second parameter information each include security parameters for integrity protection and/or verification of specified information.
  • the second discovery request message includes a second discovery measurement combination process indication, and the second discovery measurement combination process indication is used to request verification whether the second terminal is allowed to perform ranging during the discovery process. .
  • the first discovery request message includes a first discovery measurement combination process indication, and the first discovery measurement combination process indication is used to request verification whether the first terminal is allowed to perform the discovery process on the The second terminal performs ranging.
  • Figure 23 is a schematic structural diagram of a ranging verification device 2300 provided by an embodiment of the present disclosure.
  • the device 2300 is applied to the first proximity service discovery management function DDNMF network element of the first local public land mobile network HPLMN of the first terminal, and the device 2300 may include a transceiver module 2301 and a processing module 2302.
  • the transceiver module 2301 is configured to receive a first discovery and measurement combination process verification request sent by the first DDNMF network element of the first local public land mobile network HPLMN of the first terminal, where the first terminal is the one that initiates the discovery and measurement combination process.
  • the discovery and measurement combination process is used to perform ranging during the discovery process
  • the first discovery and measurement combination process verification request is used to request verification whether the first terminal is allowed to perform ranging during the discovery process.
  • the processing module 2302 is used to verify whether the first terminal is allowed to perform ranging during the discovery process.
  • the transceiver module 2301 is also configured to feed back the first verification result to the first DDNMF network element; receive the second discovery measurement combination process verification request sent by the second DDNMF network element of the second HPLMN of the second terminal, wherein, The second terminal is a terminal that will be discovered to perform a discovery measurement combination process.
  • the second discovery measurement combination process verification request is used to request verification whether the first terminal is allowed to perform the discovery measurement combination process on the second terminal. Ranging.
  • the processing module 2302 is also used to verify whether the first terminal is allowed to perform ranging on the second terminal during the discovery process.
  • the transceiver module 2301 is also configured to feed back the second verification result to the second DDNMF network element.
  • the second DDNMF network element indicates that the first terminal is allowed to perform the detection during the discovery process when the second verification result indicates that the second DDNMF network element When the second terminal performs ranging, first parameter information for the discovery measurement combination process of the first terminal is generated.
  • the network device can verify the observing terminal to determine whether the observing terminal is allowed to perform ranging during the discovery process and whether it is allowed to perform ranging on a specific target terminal during the discovery process. Additionally, the network device can authenticate the target terminal to determine whether the target terminal is allowed to perform ranging during the discovery process. Thus, it can be verified whether the terminal can perform the discovery measurement combination process.
  • the transceiver module 2301 is also configured to receive a third discovery and measurement combination process verification request sent by the second DDNMF network element.
  • the third discovery and measurement combination process verification request is used to request verification of whether all The second terminal performs ranging during the discovery process.
  • the processing module 2302 is also used to verify whether the second terminal is allowed to perform ranging during the discovery process.
  • the transceiver module 2301 is also configured to feed back the verification result to the second DDNMF network element, which is generated when the verification result indicates that the second terminal is allowed to perform ranging during the discovery process. Second parameter information used for the discovery measurement combination process of the second terminal.
  • FIG 24 is a schematic structural diagram of a communication device 2400 provided by an embodiment of the present application.
  • the communication device 2400 may be a network device, a user equipment, a chip, a chip system, or a processor that supports network equipment to implement the above method, or a chip, a chip system, or a processor that supports user equipment to implement the above method. Processor etc.
  • This device can be used to implement the method described in the above method embodiment. For details, please refer to the description in the above 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.
  • it can be a baseband processor or a central processing unit.
  • the baseband processor can be used to process communication protocols and communication data.
  • the central processor can be used to control communication devices (such as base stations, baseband chips, terminal equipment, terminal equipment chips, DU or CU, etc.) and execute computer programs. , processing data for computer programs.
  • the communication device 2400 may also include one or more memories 2402, on which a computer program 2404 may be stored.
  • the processor 2401 executes the computer program 2404, so that the communication device 2400 performs the steps described in the above method embodiments. method.
  • the memory 2402 may also store data.
  • the communication device 2400 and the memory 2402 can be provided separately or integrated together.
  • the communication device 2400 may also include a transceiver 2405 and an antenna 2406.
  • the transceiver 2405 may be called a transceiver unit, a transceiver, a transceiver circuit, etc., and is used to implement transceiver functions.
  • the transceiver 2405 may include a receiver and a transmitter.
  • the receiver may be called a receiver or a receiving circuit, etc., used to implement the receiving function;
  • the transmitter may be called a transmitter, a transmitting circuit, etc., used to implement the transmitting function.
  • the communication device 2400 may also include one or more interface circuits 2407.
  • the interface circuit 2407 is used to receive code instructions and transmit them to the processor 2401.
  • the processor 2401 executes the code instructions to cause the communication device 2400 to perform the method described in the above method embodiment.
  • the processor 2401 may include a transceiver for implementing receiving and transmitting functions.
  • the transceiver may be a transceiver circuit, an interface, or an interface circuit.
  • the transceiver circuits, interfaces or interface circuits used to implement the receiving and transmitting functions can be separate or integrated together.
  • the above-mentioned transceiver circuit, interface or interface circuit can be used for reading and writing codes/data, or the above-mentioned transceiver circuit, interface or interface circuit can be used for signal transmission or transfer.
  • the processor 2401 may store a computer program 2403, and the computer program 2403 runs on the processor 2401, causing 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.
  • the communication device 2400 may include a circuit, which may implement the functions of sending or receiving or communicating in the foregoing method embodiments.
  • the processor and transceiver described in this application can be implemented in integrated circuits (ICs), analog ICs, radio frequency integrated circuits RFICs, mixed signal ICs, application specific integrated circuits (ASICs), printed circuit boards ( printed circuit board (PCB), electronic equipment, etc.
  • the processor and transceiver can also be manufactured using various IC process technologies, such as 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 (BJT), bipolar CMOS (BiCMOS), silicon germanium (SiGe), gallium arsenide (GaAs), etc.
  • CMOS complementary metal oxide semiconductor
  • NMOS n-type metal oxide-semiconductor
  • PMOS P-type Metal oxide semiconductor
  • BJT bipolar junction transistor
  • BiCMOS bipolar CMOS
  • SiGe silicon germanium
  • GaAs gallium arsenide
  • the communication device described in the above embodiments may be network equipment or user equipment, but the scope of the communication device described in this application is not limited thereto, and the structure of the communication device may not be limited by FIG. 24 .
  • the communication device may be a stand-alone device or may be part of a larger device.
  • the communication device may be:
  • the IC collection may also include storage components for storing data and computer programs;
  • the communication device may be a chip or a chip system
  • the schematic structural diagram of the chip shown in FIG. 25 refer to the schematic structural diagram of the chip shown in FIG. 25 .
  • the chip shown in Figure 25 includes a processor 2501 and an interface 2502.
  • the number of processors 2501 may be one or more, and the number of interfaces 2502 may be multiple.
  • the chip also includes a memory 2503, which is used to store necessary computer programs and data.
  • Embodiments of the present application also provide a system for implementing ranging.
  • the system includes a communication device as a user equipment in the aforementioned embodiment of FIGS. 19-20 and a communication device as a network device in the aforementioned embodiment of FIGS. 21-23.
  • the system It includes the communication device as user equipment and the communication device as network equipment in the aforementioned embodiment of FIG. 24 .
  • This application also provides a readable storage medium on which instructions are stored. When the instructions are executed by a computer, the functions of any of the above method embodiments are implemented.
  • This application also provides a computer program product, which, when executed by a computer, implements the functions of any of the above method embodiments.
  • the above embodiments it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer programs.
  • the computer program When the computer program is loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
  • the computer program may be stored in or transferred from one computer-readable storage medium to another, for example, the computer program may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means.
  • 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 one or more available media integrated.
  • the usable media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., high-density digital video discs (DVD)), or semiconductor media (e.g., solid state disks, SSD)) etc.
  • magnetic media e.g., floppy disks, hard disks, magnetic tapes
  • optical media e.g., high-density digital video discs (DVD)
  • DVD digital video discs
  • semiconductor media e.g., solid state disks, SSD
  • At least one in this application can also be described as one or more, and the plurality can be two, three, four or more, which is not limited by this application.
  • the technical feature is distinguished by “first”, “second”, “third”, “A”, “B”, “C” and “D”, etc.
  • the technical features described in “first”, “second”, “third”, “A”, “B”, “C” and “D” are in no particular order or order.
  • machine-readable medium and “computer-readable medium” refer to any computer program product, apparatus, and/or means for providing machine instructions and/or data to a programmable processor (for example, magnetic disks, optical disks, memories, programmable logic devices (PLD)), including machine-readable media that receive machine instructions as machine-readable signals.
  • machine-readable signal refers to any signal used to provide machine instructions and/or data to a programmable processor.
  • the systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., A user's computer having a graphical user interface or web browser through which the user can interact with implementations of the systems and technologies described herein), or including such backend components, middleware components, or any combination of front-end components in a computing system.
  • the components of the system may be interconnected by any form or medium of digital data communication (eg, a communications network). Examples of communication networks include: local area network (LAN), wide area network (WAN), and the Internet.
  • Computer systems may include clients and servers.
  • Clients and servers are generally remote from each other and typically interact over a communications network.
  • the relationship of client and server is created by computer programs running on corresponding computers and having a client-server relationship with each other.

Abstract

Provided in the present disclosure are a distance measurement method and apparatus, and a distance measurement verification method and apparatus. The technical solution of the present disclosure comprises: an observer terminal sending to a target terminal a consulting message that comprises a measurement signal (S201); when the target terminal matches the observer terminal, feeding back to the observer terminal a consulting response message that comprises a feedback measurement signal (S202); and the observer terminal calculating the distance between the observer terminal and the target terminal on the basis of the measurement signal and the feedback measurement signal (S203). Therefore, the measurement of the distance between two terminals can be executed during a discovery process, such that the consumption of network resources can be reduced, and the power consumption of the terminals can be saved.

Description

测距方法及装置Ranging methods and devices 技术领域Technical field
本公开涉及移动通信技术领域,特别涉及一种测距方法及装置、以及一种测距验证方法及装置。The present disclosure relates to the field of mobile communication technology, and in particular to a ranging method and device, and a ranging verification method and device.
背景技术Background technique
在无线通信系统中,为了实现两个终端之间的通信,需要测量两个终端之间的距离,即测距。目前,在进行测距之前,需要执行诸如认证和发现的一系列过程,在存在大量测距需求时,这会消耗大量网络资源并造成终端的极大功耗。In a wireless communication system, in order to achieve communication between two terminals, it is necessary to measure the distance between the two terminals, that is, ranging. Currently, before ranging, a series of processes such as authentication and discovery need to be performed. When there are a large number of ranging requirements, this will consume a lot of network resources and cause great power consumption of the terminal.
发明内容Contents of the invention
本公开提出了一种测距方法及装置,能够在发现过程中执行测距,由此能够减少网络资源消耗并节省终端的功耗。The present disclosure proposes a ranging method and device, which can perform ranging during the discovery process, thereby reducing network resource consumption and saving terminal power consumption.
本公开提出了一种测距验证方法及装置,网络设备能够对终端进行验证以确定终端是否被允许在发现过程中执行测距,还能对终端进行验证以确定终端是否被允许在发现过程中对另一终端执行测距。The present disclosure proposes a ranging verification method and device. The network device can verify the terminal to determine whether the terminal is allowed to perform ranging during the discovery process, and can also verify the terminal to determine whether the terminal is allowed to perform ranging during the discovery process. Perform ranging on another terminal.
本公开的第一方面实施例提供了一种测距方法,所述方法由第一终端执行,其中所述第一终端为发起发现测量组合流程的终端,所述发现测量组合流程用于在发现过程中执行测距,所述方法包括:向第二终端发送征询消息,其中,所述第二终端为将被发现以进行发现测量组合流程的终端,所述征询消息用于指示所述第二终端与所述第一终端进行发现匹配,且所述征询消息中包括测量信号;接收所述第二终端针对所述征询消息反馈的征询响应消息,其中所述征询响应消息是所述第二终端确定与所述第一终端匹配的情况下发送的,且所述征询响应消息中包括反馈测量信号;以及基于所述测量信号和所述反馈测量信号,计算与所述第二终端之间的距离。A first aspect embodiment of the present disclosure provides a ranging method. The method is executed by a first terminal, where the first terminal is a terminal that initiates a discovery measurement combination process. The discovery measurement combination process is used for discovering Ranging is performed during the process, and the method includes: sending a query message to a second terminal, where the second terminal is a terminal that will be discovered to perform a discovery measurement combination process, and the query message is used to indicate that the second terminal The terminal performs discovery matching with the first terminal, and the inquiry message includes a measurement signal; receives an inquiry response message fed back by the second terminal in response to the inquiry message, wherein the inquiry response message is the response message of the second terminal sent when it is determined to match the first terminal, and the query response message includes a feedback measurement signal; and based on the measurement signal and the feedback measurement signal, calculate the distance to the second terminal .
可选地,在向所述第二终端发送所述征询消息之前,所述方法还包括:对所述征询消息进行完整性保护。Optionally, before sending the query message to the second terminal, the method further includes: performing integrity protection on the query message.
可选地,所述对所述征询消息进行完整性保护包括:基于从所述第一终端的第一本地公用陆地移动网络HPLMN的第一邻近服务发现管理功能DDNMF网元接收的安全参数,计算消息验证码;以及将所述消息验证码附加至所述征询消息的末尾以对所述征询消息进行完整性保护。Optionally, the integrity protection of the query message includes: based on the security parameters received from the first proximity service discovery management function DDNMF network element of the first local public land mobile network HPLMN of the first terminal, calculate a message verification code; and appending the message verification code to the end of the query message to protect the integrity of the query message.
可选地,所述征询响应消息为经完整性保护的消息,所述方法还包括:验证所述征询响应消息的完整性;其中所述基于所述测量信号和所述反馈测量信号,计算与所述第二终端之间的距离包括:在成功验证所述征询响应消息的完整性的情况下,基于所述测量信号和所述反馈测量信号,计算与所述第二终端之间的距离。Optionally, the query response message is an integrity protected message, and the method further includes: verifying the integrity of the query response message; wherein based on the measurement signal and the feedback measurement signal, calculating and The distance between the second terminal includes: calculating the distance to the second terminal based on the measurement signal and the feedback measurement signal when the integrity of the query response message is successfully verified.
可选地,所述验证所述征询响应消息的完整性包括:基于从第一DDNMF网元接收的安全参数,验证所述征询响应消息的完整性。Optionally, the verifying the integrity of the inquiry response message includes: verifying the integrity of the inquiry response message based on security parameters received from the first DDNMF network element.
可选地,所述方法还包括:向第一DDNMF网元发送第一发现请求消息,其中所述第一发现请求消息用于请求执行发现测量组合流程;接收所述第一DDNMF网元在确定所述第一终端被允许在发现过程中对所述第二终端执行测距的情况下反馈的发现响应消息,所述发现响应消息中包括用于所述发现测量组合流程的参数信息;其中,所述向第二终端发送征询消息包括:在所述第一终端被允许在发现过程中对第二终端执行测距的情况下,向所述第二终端发送征询消息。Optionally, the method further includes: sending a first discovery request message to the first DDNMF network element, where the first discovery request message is used to request execution of a discovery measurement combination process; receiving the first DDNMF network element to determine The first terminal is allowed to feedback a discovery response message when performing ranging on the second terminal during the discovery process, and the discovery response message includes parameter information for the discovery measurement combination process; wherein, The sending a query message to the second terminal includes: sending a query message to the second terminal if the first terminal is allowed to perform ranging on the second terminal during the discovery process.
可选地,所述第一发现请求消息包括发现测量组合流程指示,所述发现测量组合流程指示用于请求验证所述第一终端是否被允许在发现过程中对所述第二终端执行测距。Optionally, the first discovery request message includes a discovery measurement combination process indication, and the discovery measurement combination process indication is used to request verification whether the first terminal is allowed to perform ranging on the second terminal during the discovery process. .
本公开第二方面实施例提供了一种测距方法,所述方法由第二终端执行,其中所述第二终端为将被发现以进行发现测量组合流程的终端,所述发现测量组合流程用于在发现过程中执行测距,所述方法包括:接收第一终端发送的征询消息,其中,所述第一终端为发起发现测量组合流程的终端,所述征询消息用于指示所述第二终端与所述第一终端进行发现匹配,且所述征询消息中包括测量信号;以及在所述第二终端确定与所述第一终端匹配的情况下,向所述第一终端反馈征询响应消息,其中所述征询响应消息中包括反馈测量信号,其中,所述测量信号和所述反馈测量信号用于确定所述第一终端和所述第二终端之间的距离。An embodiment of the second aspect of the present disclosure provides a ranging method. The method is executed by a second terminal, where the second terminal is a terminal that will be discovered to perform a discovery measurement combination process. The discovery measurement combination process is To perform ranging during the discovery process, the method includes: receiving a query message sent by a first terminal, where the first terminal is a terminal that initiates a discovery measurement combination process, and the query message is used to indicate that the second terminal The terminal performs discovery matching with the first terminal, and the query message includes a measurement signal; and when the second terminal determines that it matches the first terminal, feeds back a query response message to the first terminal , wherein the query response message includes a feedback measurement signal, wherein the measurement signal and the feedback measurement signal are used to determine the distance between the first terminal and the second terminal.
可选地,所述征询消息为经完整性保护的消息,所述方法还包括:验证所述征询消息的完整性;其中所述向所述第一终端反馈征询响应消息包括:在成功验证所述征询消息的完整性的情况下,向所述第一终端反馈所述征询响应消息。Optionally, the inquiry message is an integrity-protected message, and the method further includes: verifying the integrity of the inquiry message; wherein the feedback of an inquiry response message to the first terminal includes: after successful verification of the If the integrity of the query message is satisfied, the query response message is fed back to the first terminal.
可选地,所述验证所述征询消息的完整性包括:基于从所述第二终端的第二本地公用陆地移动网络 HPLMN的第二邻近服务发现管理功能DDNMF网元接收的安全参数,验证所述征询消息的完整性。Optionally, the verifying the integrity of the query message includes: verifying the security parameters received from a second proximity service discovery management function DDNMF network element of the second local public land mobile network HPLMN of the second terminal. The completeness of the inquiry message.
可选地,在向所述第一终端发送所述征询响应消息之前,还包括:对所述征询响应消息进行完整性保护。Optionally, before sending the inquiry response message to the first terminal, the method further includes: performing integrity protection on the inquiry response message.
可选地,所述方法还包括:所述对所述征询响应消息进行完整性保护包括:基于从所述第二DDNMF网元接收的安全参数,计算消息验证码;以及将所述消息验证码附加至所述征询响应消息的末尾以对所述征询响应消息进行完整性保护。Optionally, the method further includes: performing integrity protection on the query response message includes: calculating a message verification code based on the security parameters received from the second DDNMF network element; and converting the message verification code Appended to the end of the query response message to protect the integrity of the query response message.
可选地,所述方法还包括:向所述第二DDNMF网元发送第二发现请求消息,其中所述第二发现请求消息用于请求执行发现测量组合流程;以及接收所述第二DDNMF网元在确定所述第二终端被允许在发现过程中执行测距的情况下反馈的发现响应消息,所述发现响应消息中包括用于所述发现测量组合流程的参数信息;其中,所述向所述第一终端反馈征询响应消息包括:在所述第二终端确定与所述第一终端匹配且所述第二终端被允许在发现过程中执行测距的情况下,向所述第一终端反馈征询响应消息。Optionally, the method further includes: sending a second discovery request message to the second DDNMF network element, where the second discovery request message is used to request execution of a discovery measurement combination process; and receiving the second discovery request message from the second DDNMF network element. A discovery response message fed back by the element when it is determined that the second terminal is allowed to perform ranging during the discovery process, and the discovery response message includes parameter information for the discovery measurement combination process; wherein, the The first terminal feedback inquiry response message includes: when the second terminal determines that it matches the first terminal and the second terminal is allowed to perform ranging during the discovery process, send a message to the first terminal. Feedback solicitation response message.
可选地,所述第二发现请求消息包括发现测量组合验证指示,所述发现测量组合流程指示用于请求验证所述第二终端是否被允许在发现过程中执行测距。Optionally, the second discovery request message includes a discovery measurement combination verification indication, and the discovery measurement combination process indication is used to request verification of whether the second terminal is allowed to perform ranging during the discovery process.
本公开的第三方面实施例提供了一种测距验证方法,所述方法由第一终端的第一本地公用陆地移动网络HPLMN的第一邻近服务发现管理功能DDNMF网元执行,所述方法包括:接收所述第一终端发送的第一发现请求消息,其中所述第一发现请求消息用于请求执行发现测量组合流程并指示发送所述第一发现请求消息的第一终端为发起发现测量组合流程的终端,所述发现测量组合流程用于在发现过程中执行测距;响应于所述第一发现请求消息,向测距应用服务器发送第一发现测量组合流程验证请求,所述测距应用服务器用于基于所述第一发现测量组合验证请求验证是否允许所述第一终端在发现过程中执行测距;从测距应用服务器接收验证结果,并在所述验证结果指示所述第一终端被允许在发现过程中执行测距的情况下,将所述第一发现请求消息转发至第二终端的第二HPLMN的第二DDNMF网元,所述第二终端为将被发现以进行发现测量组合流程的终端;接收所述第二DDNMF网元在确定所述第一终端被允许在发现过程中对所述第二终端执行测距的情况下反馈的发现响应消息,其中所述发现响应消息包括用于所述发现测量组合流程的参数信息;以及将所述发现响应消息发送给所述第一终端。A third aspect embodiment of the present disclosure provides a ranging verification method, the method is executed by the first proximity service discovery management function DDNMF network element of the first local public land mobile network HPLMN of the first terminal, the method includes : Receive a first discovery request message sent by the first terminal, wherein the first discovery request message is used to request execution of a discovery measurement combination process and indicates that the first terminal sending the first discovery request message is to initiate discovery measurement combination. The terminal of the process, the discovery and measurement combination process is used to perform ranging during the discovery process; in response to the first discovery request message, a first discovery and measurement combination process verification request is sent to the ranging application server, and the ranging application The server is configured to verify whether the first terminal is allowed to perform ranging during the discovery process based on the first discovery measurement combination verification request; receive a verification result from the ranging application server, and indicate to the first terminal when the verification result If allowed to perform ranging during the discovery process, forward the first discovery request message to the second DDNMF network element of the second HPLMN of the second terminal, which is to be discovered for discovery measurement. The terminal of the combined process; receives the discovery response message fed back by the second DDNMF network element when it is determined that the first terminal is allowed to perform ranging on the second terminal during the discovery process, wherein the discovery response message including parameter information for the discovery measurement combination process; and sending the discovery response message to the first terminal.
可选地,所述参数信息包括用于对指定信息进行完整性保护和/或验证的安全参数。Optionally, the parameter information includes security parameters used for integrity protection and/or verification of specified information.
可选地,所述第一发现请求消息包括发现测量组合流程指示,所述发现测量组合流程指示用于请求验证所述第一终端是否被允许在发现过程中执行测距以及验证所述第一终端是否被允许在发现过程中对所述第二终端执行测距。Optionally, the first discovery request message includes a discovery measurement combination process indication, and the discovery measurement combination process indication is used to request verification of whether the first terminal is allowed to perform ranging during the discovery process and to verify that the first terminal is allowed to perform ranging during the discovery process. Whether the terminal is allowed to perform ranging on the second terminal during the discovery process.
本公开的第四方面实施例提供了一种测距验证方法,所述方法由第二终端的第二本地公用陆地移动网络HPLMN的第二邻近服务发现管理功能DDNMF网元执行,所述方法包括:接收第二终端发送的第二发现请求消息,其中所述第二发现请求消息用于请求执行发现测量组合流程并指示发送所述第二发现请求消息的第二终端为将被发现以进行发现测量组合流程的终端,所述发现测量组合流程用于在发现过程中执行测距;响应于所述第二发现请求消息,向测距应用服务器发送第二发现测量组合流程验证请求,所述测距应用服务器基于所述第二发现测量组合流程验证请求验证是否允许所述第二终端在发现过程中执行测距以得到第二验证结果;从所述测距应用服务器接收所述第二验证结果;在所述第二验证结果指示所述第二终端被允许在发现过程中执行测距的情况下,生成用于所述第二终端的发现测量组合流程的第二参数信息;以及将包括所述第二参数信息的第二发现响应消息发送给所述第二终端。A fourth aspect embodiment of the present disclosure provides a ranging verification method, the method is executed by the second proximity service discovery management function DDNMF network element of the second local public land mobile network HPLMN of the second terminal, the method includes : Receive a second discovery request message sent by the second terminal, wherein the second discovery request message is used to request execution of the discovery measurement combination process and indicates that the second terminal sending the second discovery request message is to be discovered for discovery. The terminal of the measurement combination process, the discovery measurement combination process is used to perform ranging during the discovery process; in response to the second discovery request message, a second discovery measurement combination process verification request is sent to the ranging application server, the measurement combination process is The distance application server verifies whether the second terminal is allowed to perform ranging during the discovery process to obtain a second verification result based on the second discovery measurement combination process verification request; receiving the second verification result from the ranging application server ; In the case where the second verification result indicates that the second terminal is allowed to perform ranging during the discovery process, generate second parameter information for the discovery measurement combination process of the second terminal; and include the A second discovery response message of the second parameter information is sent to the second terminal.
可选地,所述方法还包括:接收第一终端的第一HPLMN的第一DDNMF网元转发的第一发现请求消息,所述第一发现请求消息用于请求执行发现测量组合流程并指示发送所述第一发现请求消息的第一终端为发起发现测量组合流程的终端;响应于所述第一发现请求消息,向所述测距应用服务器发送第三发现测量组合流程验证请求,所述测距应用服务器基于所述第三发现测量组合流程验证请求验证是否允许所述第一终端在发现过程中对所述第二终端执行测距以得到第一验证结果;从所述测距应用服务器接收所述第一验证结果;在所述第一验证结果指示所述第一终端被允许在发现过程中对所述第二终端执行测距的情况下,生成用于所述第一终端的发现测量组合流程的第一参数信息;以及将包括所述第一参数信息的第一发现响应消息发送给所述第一DDNMF网元。Optionally, the method further includes: receiving a first discovery request message forwarded by the first DDNMF network element of the first HPLMN of the first terminal, where the first discovery request message is used to request execution of the discovery measurement combination process and instruct sending The first terminal of the first discovery request message is the terminal that initiates the discovery and measurement combination process; in response to the first discovery request message, a third discovery and measurement combination process verification request is sent to the ranging application server. The distance application server verifies whether the first terminal is allowed to perform ranging on the second terminal during the discovery process to obtain the first verification result based on the third discovery measurement combination process verification request; receiving from the ranging application server The first verification result; generating a discovery measurement for the first terminal if the first verification result indicates that the first terminal is allowed to perform ranging on the second terminal during discovery. Combining the first parameter information of the process; and sending 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 security parameters for integrity protection and/or verification of the specified information.
可选地,所述第二发现请求消息包括第二发现测量组合流程指示,所述第二发现测量组合流程指示 用于请求验证所述第二终端是否被允许在发现过程中执行测距。Optionally, the second discovery request message includes a second discovery measurement combination process indication, and the second discovery measurement combination process indication is used to request verification whether the second terminal is allowed to perform ranging during the discovery process.
可选地,所述第一发现请求消息包括第一发现测量组合流程指示,所述第一发现测量组合流程指示用于请求验证所述第一终端是否被允许在发现过程中对所述第二终端执行测距。Optionally, the first discovery request message includes a first discovery measurement combination process indication, and the first discovery measurement combination process indication is used to request verification whether the first terminal is allowed to perform the discovery process on the second The terminal performs ranging.
本公开的第五方面实施例提供了一种测距验证方法,所述方法包括:接收第一终端的第一本地公用陆地移动网络HPLMN的第一DDNMF网元发送的第一发现测量组合流程验证请求,其中所述第一终端为发起发现测量组合流程的终端,所述发现测量组合流程用于在发现过程中执行测距,所述第一发现测量组合流程验证请求用于请求验证是否允许所述第一终端在发现过程中执行测距;验证是否允许所述第一终端在发现过程中执行测距以得到中间验证结果;将所述中间验证结果反馈给所述第一DDNMF网元;接收第二终端的第二HPLMN的第二DDNMF网元发送的第三发现测量组合流程验证请求,其中,所述第二终端为将被发现以进行发现测量组合流程的终端,所述第三发现测量组合流程验证请求用于请求验证是否允许所述第一终端在发现过程中对所述第二终端执行测距;验证是否允许所述第一终端在发现过程中对所述第二终端执行测距以得到第一验证结果;以及将所述第一验证结果反馈给所述第二DDNMF网元,所述第二DDNMF网元在所述第一验证结果指示所述第一终端被允许在发现过程中对所述第二终端执行测距的情况下生成用于所述第一终端的发现测量组合流程的第一参数信息。A fifth aspect embodiment of the present disclosure provides a ranging verification method, which method includes: receiving a first discovery measurement combination process verification sent by the first DDNMF network element of the first local public land mobile network HPLMN of the first terminal. request, wherein the first terminal is the terminal that initiates the discovery and measurement combination process, the discovery and measurement combination process is used to perform ranging during the discovery process, and the first discovery and measurement combination process verification request is used to request verification whether the all The first terminal performs ranging during the discovery process; verifies whether the first terminal is allowed to perform ranging during the discovery process to obtain an intermediate verification result; feeds back the intermediate verification result to the first DDNMF network element; receives The third discovery measurement combination process verification request sent by the second DDNMF network element of the second HPLMN of the second terminal, where the second terminal is a terminal that will be discovered to perform the discovery measurement combination process, and the third discovery measurement The combined process verification request is used to request verification whether the first terminal is allowed to perform ranging on the second terminal during the discovery process; verify whether the first terminal is allowed to perform ranging on the second terminal during the discovery process. to obtain the first verification result; and feedback the first verification result to the second DDNMF network element, and the second DDNMF network element indicates that the first terminal is allowed to be in the discovery process when the first verification result indicates When performing ranging on the second terminal, first parameter information for a discovery measurement combination process of the first terminal is generated.
可选地,所述方法还包括:接收所述第二DDNMF网元发送的第二发现测量组合流程验证请求,所述第二发现测量组合流程验证请求用于请求验证是否允许所述第二终端在发现过程中执行测距;验证是否允许所述第二终端在发现过程中执行测距以得到第二验证结果;以及将所述第二验证结果反馈给所述第二DDNMF网元,所述第二DDNMF网元在所述第二验证结果指示所述第二终端被允许在发现过程中执行测距的情况下生成用于所述第二终端的发现测量组合流程的第二参数信息。Optionally, the method further includes: receiving a second discovery and measurement combination process verification request sent by the second DDNMF network element, where the second discovery and measurement combination process verification request is used to request verification of whether the second terminal is allowed. Perform ranging during the discovery process; verify whether the second terminal is allowed to perform ranging during the discovery process to obtain a second verification result; and feed back the second verification result to the second DDNMF network element, The second DDNMF network element generates second parameter information for the discovery measurement combination process of the second terminal when the second verification result indicates that the second terminal is allowed to perform ranging during the discovery process.
本公开的第六方面实施例提供了一种测距装置,应用于第一终端,其中所述第一终端为发起发现测量组合流程的终端,所述发现测量组合流程用于在发现过程中执行测距,所述装置包括:收发模块,用于:向第二终端发送征询消息,其中,所述第二终端为将被发现以进行发现测量组合流程的终端,所述征询消息用于指示所述第二终端与所述第一终端进行发现匹配,且所述征询消息中包括测量信号;接收所述第二终端针对所述征询消息反馈的征询响应消息,其中所述征询响应消息是所述第二终端确定与所述第一终端匹配的情况下发送的,且所述征询响应消息中包括反馈测量信号;以及处理模块,用于基于所述测量信号和所述反馈测量信号,计算与所述第二终端之间的距离。A sixth embodiment of the present disclosure provides a ranging device, applied to a first terminal, wherein the first terminal is a terminal that initiates a discovery measurement combination process, and the discovery measurement combination process is used to execute during the discovery process. Ranging, the device includes: a transceiver module, configured to: send a query message to a second terminal, where the second terminal is a terminal that will be discovered to perform a discovery measurement combination process, and the query message is used to indicate that the The second terminal performs discovery matching with the first terminal, and the inquiry message includes a measurement signal; and receives an inquiry response message fed back by the second terminal in response to the inquiry message, wherein the inquiry response message is the The second terminal sends it when it determines that it matches the first terminal, and the query response message includes a feedback measurement signal; and a processing module for calculating, based on the measurement signal and the feedback measurement signal, the distance between the second terminals.
本公开的第七方面实施例提供了一种测距装置,应用于第二终端,其中所述第二终端为将被发现以进行发现测量组合流程的终端,所述发现测量组合流程用于在发现过程中执行测距,所述装置包括:收发模块,用于:接收第一终端发送的征询消息,其中,所述第一终端为发起发现测量组合流程的终端,所述征询消息用于指示所述第二终端与所述第一终端进行发现匹配,且所述征询消息中包括测量信号;在所述第二终端确定与所述第一终端匹配的情况下,向所述第一终端反馈征询响应消息,其中所述征询响应消息中包括反馈测量信号,其中,所述测量信号和所述反馈测量信号用于确定所述第一终端和所述第二终端之间的距离。A seventh embodiment of the present disclosure provides a ranging device applied to a second terminal, wherein the second terminal is a terminal to be discovered for performing a discovery measurement combination process, and the discovery measurement combination process is used to Ranging is performed during the discovery process, and the device includes: a transceiver module, configured to: receive a query message sent by a first terminal, where the first terminal is a terminal that initiates the discovery measurement combination process, and the query message is used to indicate The second terminal performs discovery matching with the first terminal, and the query message includes a measurement signal; when the second terminal determines that it matches the first terminal, feedback is provided to the first terminal A query response message, wherein the query response message includes a feedback measurement signal, wherein the measurement signal and the feedback measurement signal are used to determine the distance between the first terminal and the second terminal.
本公开的第八方面实施例提供了一种测距验证装置,应用于第一终端的第一本地公用陆地移动网络HPLMN的第一邻近服务发现管理功能DDNMF网元,所述装置包括:收发模块用于:接收所述第一终端发送的第一发现请求消息,其中所述第一发现请求消息用于请求执行发现测量组合流程并指示发送所述第一发现请求消息的第一终端为发起发现测量组合流程的终端,所述发现测量组合流程用于在发现过程中执行测距;响应于所述第一发现请求消息,向测距应用服务器发送第一发现测量组合流程验证请求,所述测距应用服务器用于基于所述第一发现测量组合验证请求验证是否允许所述第一终端在发现过程中执行测距;从测距应用服务器接收验证结果,并在所述验证结果指示所述第一终端被允许在发现过程中执行测距的情况下,将所述第一发现请求消息转发至第二终端的第二HPLMN的第二DDNMF网元,所述第二终端为将被发现以进行发现测量组合流程的终端;接收所述第二DDNMF网元在确定所述第一终端被允许在发现过程中对所述第二终端执行测距的情况下反馈的发现响应消息,其中所述发现响应消息包括用于所述发现测量组合流程的参数信息;以及将所述发现响应消息发送给所述第一终端。An eighth embodiment of the present disclosure provides a ranging verification device, which is applied to the first proximity service discovery management function DDNMF network element of the first local public land mobile network HPLMN of the first terminal. The device includes: a transceiver module For: receiving a first discovery request message sent by the first terminal, wherein the first discovery request message is used to request execution of a discovery measurement combination process and indicates that the first terminal sending the first discovery request message is to initiate discovery. The terminal of the measurement combination process, the discovery measurement combination process is used to perform ranging during the discovery process; in response to the first discovery request message, a first discovery measurement combination process verification request is sent to the ranging application server, the measurement combination process is The distance application server is configured to verify whether the first terminal is allowed to perform ranging during the discovery process based on the first discovery measurement combination verification request; receive a verification result from the ranging application server, and when the verification result indicates the first When a terminal is allowed to perform ranging during the discovery process, it forwards the first discovery request message to the second DDNMF network element of the second HPLMN of the second terminal, and the second terminal is to be discovered for performing A terminal that discovers a measurement combination process; receives a discovery response message fed back by the second DDNMF network element when it is determined that the first terminal is allowed to perform ranging on the second terminal during the discovery process, wherein the discovery The response message includes parameter information for the discovery measurement combination process; and the discovery response message is sent to the first terminal.
本公开的第九方面实施例提供了一种测距验证装置,应用于第二终端的第二本地公用陆地移动网络HPLMN的第二邻近服务发现管理功能DDNMF网元执行,所述装置包括:收发模块和处理模块;所述收发模块,用于:接收第二终端发送的第二发现请求消息,其中所述第二发现请求消息用于请求执行发现测量组合流程并指示发送所述第二发现请求消息的第二终端为将被发现以进行发现测量组合流程的终端,所述发现测量组合流程用于在发现过程中执行测距;响应于所述第二发现请求消息,向测距应用服务器发送第二发现测量组合流程验证请求,所述测距应用服务器基于所述第二发现测量组合流程 验证请求验证是否允许所述第二终端在发现过程中执行测距以得到第二验证结果;以及从所述测距应用服务器接收所述第二验证结果。所述处理模块,用于在所述第二验证结果指示所述第二终端被允许在发现过程中执行测距的情况下,生成用于所述第二终端的发现测量组合流程的第二参数信息。所述收发模块还用于用于将包括所述第二参数信息的第二发现响应消息发送给所述第二终端。A ninth embodiment of the present disclosure provides a ranging verification device, which is applied to the second proximity service discovery management function DDNMF network element of the second local public land mobile network HPLMN of the second terminal. The device includes: transceiver module and processing module; the transceiver module is used to: receive a second discovery request message sent by the second terminal, wherein the second discovery request message is used to request execution of the discovery measurement combination process and instructs to send the second discovery request The second terminal of the message is a terminal that will be discovered to perform a discovery measurement combination process. The discovery measurement combination process is used to perform ranging during the discovery process; in response to the second discovery request message, send to the ranging application server a second discovery measurement combination process verification request, the ranging application server verifies whether the second terminal is allowed to perform ranging during the discovery process to obtain a second verification result based on the second discovery measurement combination process verification request; and from The ranging application server receives the second verification result. The processing module is configured to generate a second parameter for the discovery measurement combination process of the second terminal when the second verification result indicates that the second terminal is allowed to perform ranging during the discovery process. information. The transceiving module is also configured to send a second discovery response message including the second parameter information to the second terminal.
本公开的第十方面实施例提供了一种测距验证装置,所述装置包括收发模块和处理模块;所述收发模块用于接收第一终端的第一本地公用陆地移动网络HPLMN的第一DDNMF网元发送的第一发现测量组合流程验证请求,其中所述第一终端为发起发现测量组合流程的终端,所述发现测量组合流程用于在发现过程中执行测距,所述第一发现测量组合流程验证请求用于请求验证是否允许所述第一终端在发现过程中执行测距;所述处理模块用于验证是否允许所述第一终端在发现过程中执行测距以得到中间验证结果;所述收发模块还用于将所述中间验证结果反馈给所述第一DDNMF网元;接收第二终端的第二HPLMN的第二DDNMF网元发送的第三发现测量组合流程验证请求,其中,所述第二终端为将被发现以进行发现测量组合流程的终端,所述第三发现测量组合流程验证请求用于请求验证是否允许所述第一终端在发现过程中对所述第二终端执行测距;所述处理模块还用于验证是否允许所述第一终端在发现过程中对所述第二终端执行测距以得到第一验证结果;以及所述收发模块还用于将所述第一验证结果反馈给所述第二DDNMF网元,所述第二DDNMF网元在所述第一验证结果指示所述第一终端被允许在发现过程中对所述第二终端执行测距的情况下生成用于所述第一终端的发现测量组合流程的第一参数信息。A tenth aspect embodiment of the present disclosure provides a ranging verification device. The device includes a transceiver module and a processing module; the transceiver module is used to receive the first DDNMF of the first local public land mobile network HPLMN of the first terminal. The first discovery measurement combination process verification request sent by the network element, wherein the first terminal is the terminal that initiates the discovery measurement combination process, the discovery measurement combination process is used to perform ranging during the discovery process, the first discovery measurement The combined process verification request is used to request verification whether the first terminal is allowed to perform ranging during the discovery process; the processing module is used to verify whether the first terminal is allowed to perform ranging during the discovery process to obtain an intermediate verification result; The transceiver module is also configured to feed back the intermediate verification result to the first DDNMF network element; receive a third discovery measurement combination process verification request sent by the second DDNMF network element of the second HPLMN of the second terminal, wherein, The second terminal is a terminal that will be discovered to perform a discovery measurement combination process. The third discovery measurement combination process verification request is used to request verification whether the first terminal is allowed to perform the discovery measurement combination process on the second terminal. Ranging; the processing module is also used to verify whether the first terminal is allowed to perform ranging on the second terminal during the discovery process to obtain a first verification result; and the transceiver module is also used to send the third A verification result is fed back to the second DDNMF network element. When the first verification result indicates that the first terminal is allowed to perform ranging on the second terminal during the discovery process, the second DDNMF network element First parameter information for the discovery measurement combination process of the first terminal is generated.
本公开的第十一方面实施例提供了一种通信设备,包括:收发器;存储器;处理器,分别与所述收发器及所述存储器连接,配置为通过执行所述存储器上的计算机可执行指令,控制所述收发器的无线信号收发,并能够实现上述第一方面或第二方面实施例的测距方法或第三方面实施例、第四方面实施例或第五方面实施例的测距验证方法。An eleventh aspect embodiment of the present disclosure provides a communication device, including: a transceiver; a memory; and a processor, respectively connected to the transceiver and the memory, configured to execute a computer executable program on the memory. Instructions to control the wireless signal transmission and reception of the transceiver, and to implement the ranging method of the above-mentioned first aspect or second aspect embodiment or the ranging method of the third aspect embodiment, the fourth aspect embodiment or the fifth aspect embodiment. Authentication method.
本公开第十二方面实施例提出了一种计算机存储介质,其中,所述计算机存储介质存储有计算机可执行指令;所述计算机可执行指令被处理器执行后能够实现上述第一方面或第二方面实施例的测距方法或第三方面实施例、第四方面实施例或第五方面实施例的测距验证方法。A twelfth aspect embodiment of the present disclosure provides a computer storage medium, wherein the computer storage medium stores computer-executable instructions; after the computer-executable instructions are executed by a processor, the first aspect or the second aspect can be realized. The ranging method of the aspect embodiment or the ranging verification method of the third aspect embodiment, the fourth aspect embodiment or the fifth aspect embodiment.
本公开实施例提供了一种测距方法及装置,观察终端(即发起发现测量组合流程的终端)向目标终端(即,候选的参与发现测量组合流程的终端,通常在观察终端的附近)发送包括测量信号的征询消息,目标终端在与观察终端匹配的情况下向观察终端反馈包括反馈测量信号的征询响应消息,观察终端可以测量信号与反馈测量信号计算与目标终端之间的距离。由此,两个终端之间的测距可以在发现过程中执行,从而能够减少网络资源消耗并节省终端的功耗。Embodiments of the present disclosure provide a ranging method and device. The observing terminal (that is, the terminal that initiates the discovery and measurement combination process) sends a message to the target terminal (that is, the candidate terminal that participates in the discovery and measurement combination process, usually near the observation terminal). The query message includes the measurement signal. The target terminal feeds back the query response message including the feedback measurement signal to the observation terminal when it matches the observation terminal. The observation terminal can measure the signal and feed back the measurement signal to calculate the distance to the target terminal. Thus, ranging between two terminals can be performed during the discovery process, thereby reducing network resource consumption and saving terminal power consumption.
本公开实施例还提供了一种测距验证方法及装置,网络设备能够对观察终端进行验证以确定观察终端是否被允许在发现过程中执行测距以及是否被允许在发现过程中对特定目标终端执行测距。此外,网络设备能够对目标终端进行验证以确定目标终端是否被允许在发现过程中执行测距。由此,能够验证终端是否能够进行发现测量组合流程。Embodiments of the present disclosure also provide a ranging verification method and device. The network device can verify the observing terminal to determine whether the observing terminal is allowed to perform ranging during the discovery process and whether it is allowed to perform ranging on the specific target terminal during the discovery process. Perform ranging. Additionally, the network device can authenticate the target terminal to determine whether the target terminal is allowed to perform ranging during the discovery process. Thus, it can be verified whether the terminal can perform the discovery measurement combination process.
本公开附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本公开的实践了解到。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.
附图说明Description of the drawings
本公开上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present disclosure will become apparent and readily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
图1为示出一个终端相对于另一终端的方向的示意图;Figure 1 is a schematic diagram showing the direction of one terminal relative to another terminal;
图2为根据本公开实施例的一种测距方法的流程示意图;Figure 2 is a schematic flowchart of a ranging method according to an embodiment of the present disclosure;
图3为根据本公开实施例的一种测距方法的流程示意图;Figure 3 is a schematic flowchart of a ranging method according to an embodiment of the present disclosure;
图4为根据本公开实施例的一种测距方法的流程示意图;Figure 4 is a schematic flowchart of a ranging method according to an embodiment of the present disclosure;
图5为根据本公开实施例的一种测距方法的流程示意图;Figure 5 is a schematic flowchart of a ranging method according to an embodiment of the present disclosure;
图6为根据本公开实施例的一种获取发现测量组合信息的方法的流程示意图;Figure 6 is a schematic flowchart of a method for obtaining discovery measurement combination information according to an embodiment of the present disclosure;
图7为根据本公开实施例的一种测距方法的流程示意图;Figure 7 is a schematic flowchart of a ranging method according to an embodiment of the present disclosure;
图8为根据本公开实施例的一种测距方法的流程示意图;Figure 8 is a schematic flow chart of a ranging method according to an embodiment of the present disclosure;
图9为根据本公开实施例的一种测距方法的流程示意图;Figure 9 is a schematic flowchart of a ranging method according to an embodiment of the present disclosure;
图10为根据本公开实施例的一种测距方法的流程示意图;Figure 10 is a schematic flowchart of a ranging method according to an embodiment of the present disclosure;
图11为根据本公开实施例的一种获取发现测量组合信息的方法的流程示意图;Figure 11 is a schematic flowchart of a method for obtaining discovery measurement combination information according to an embodiment of the present disclosure;
图12为根据本公开实施例的一种测距方法的流程示意图;Figure 12 is a schematic flow chart of a ranging method according to an embodiment of the present disclosure;
图13为根据本公开实施例的一种测距验证方法的流程示意图;Figure 13 is a schematic flow chart of a ranging verification method according to an embodiment of the present disclosure;
图14为根据本公开实施例的一种测距验证方法的流程示意图;Figure 14 is a schematic flow chart of a ranging verification method according to an embodiment of the present disclosure;
图15为根据本公开实施例的一种测距验证方法的流程示意图;Figure 15 is a schematic flow chart of a ranging verification method according to an embodiment of the present disclosure;
图16为根据本公开实施例的一种测距验证方法的流程示意图;Figure 16 is a schematic flow chart of a ranging verification method according to an embodiment of the present disclosure;
图17为根据本公开实施例的一种测距验证方法的流程示意图;Figure 17 is a schematic flow chart of a ranging verification method according to an embodiment of the present disclosure;
图18为根据本公开实施例的一种发现测量组合流程的流程示意图;Figure 18 is a schematic flowchart of a discovery measurement combination process according to an embodiment of the present disclosure;
图19为根据本公开实施例的一种测距装置的框图;Figure 19 is a block diagram of a ranging device according to an embodiment of the present disclosure;
图20为根据本公开实施例的一种测距装置的框图;Figure 20 is a block diagram of a ranging device according to an embodiment of the present disclosure;
图21为根据本公开实施例的一种测距验证装置的框图;Figure 21 is a block diagram of a ranging verification device according to an embodiment of the present disclosure;
图22为根据本公开实施例的一种测距验证装置的框图;Figure 22 is a block diagram of a ranging verification device according to an embodiment of the present disclosure;
图23为根据本公开实施例的一种测距验证装置的框图;Figure 23 is a block diagram of a ranging verification device according to an embodiment of the present disclosure;
图24为本公开实施例提供的一种通信装置的结构示意图;Figure 24 is a schematic structural diagram of a communication device provided by an embodiment of the present disclosure;
图25为本公开实施例提供的一种芯片的结构示意图。Figure 25 is a schematic structural diagram of a chip provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
下面详细描述本公开的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本公开,而不能理解为对本公开的限制。Embodiments of the present disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain the present disclosure and are not to be construed as limitations of the present disclosure.
根据3GPP协议规定,基于测距的服务是指利用两个终端之间的距离和/或一个终端相对于另一终端的方向提供的服务。在三维情况下,一个终端相对于另一终端的方向包括水平方向和竖直方向,如图1所示。第一终端具有参考面和参考方向。第二终端相对于第一终端的水平方向(方位角)由参考方向与第一终端至第二终端的连线在参考面上的投影之间的角度指示。第二终端相对于第一终端的竖直方向由水平面上的角度指示。一些基于测距的服务仅需要进行距离测量,一些基于测距的服务仅需要进行方向测量,而另一些基于测距的服务既需要进行距离测量又需要进行方向测量。According to the 3GPP protocol, ranging-based services refer to services provided using the distance between two terminals and/or the direction of one terminal relative to the other terminal. In the three-dimensional case, the direction of one terminal relative to the other terminal includes the horizontal direction and the vertical direction, as shown in Figure 1. The first terminal has a reference plane and a reference direction. The horizontal direction (azimuth angle) of the second terminal relative to the first terminal is indicated by the angle between the reference direction and the projection of the line connecting the first terminal to the second terminal on the reference plane. The vertical direction of the second terminal relative to the first terminal is indicated by the angle in the horizontal plane. Some ranging-based services require only distance measurements, some ranging-based services require only direction measurements, and some ranging-based services require both distance and direction measurements.
对于仅需要进行距离测量的基于测距的服务,可以使用飞行时(ToF,Time of Flight)来测量两个终端之间的路径长度。假设使用射频获取ToF,第一终端向第二终端发送测量信号,第二终端收到该测量信号后会向第一终端再次反馈该测量信号。第一终端基于测量信号的飞行时确定与第二终端之间的距离。例如,假设第一终端发送测量信号与接收到第二终端反馈的测量信号之间的时间间隔为Δt 2,第二终端接收到测量信号与反馈测量信号之间的时间间隔为Δt 1,信号传输速度为C,则第一终端与第二终端之间的距离为(Δt 2-Δt 1)×C/2。 For ranging-based services that only require distance measurement, Time of Flight (ToF) can be used to measure the path length between two terminals. Assume that radio frequency is used to obtain ToF. The first terminal sends a measurement signal to the second terminal. After receiving the measurement signal, the second terminal feeds back the measurement signal to the first terminal again. The first terminal determines a distance from the second terminal based on the flight time of the measurement signal. For example, assume that the time interval between the first terminal sending a measurement signal and receiving the measurement signal fed back by the second terminal is Δt 2 , and the time interval between the second terminal receiving the measurement signal and feedbacking the measurement signal is Δt 1 , the signal transmission The speed is C, then 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 processes such as authentication and discovery need to be performed before ranging. When there are a large number of ranging requirements, this will consume a large amount of network resources and cause a huge loss of terminal functionality. Consumption. In order to reduce network resource consumption and reduce terminal power consumption, it is expected to simplify the required process as much as possible.
为此,本公开提出了一种测距方法及装置,终端能够在发现过程中执行测距,由此能够减少网络资源消耗并节省终端的功耗。To this end, the present disclosure proposes a ranging method and device. The terminal can perform ranging during the discovery process, thereby reducing network resource consumption and saving the terminal's power consumption.
此外,本公开还提出了一种测距验证方法及装置,网络设备能够对终端进行验证以确定终端是否被允许在发现过程中执行测距,还能对终端进行验证以确定终端是否被允许在发现过程中对另一终端执行测距。In addition, the present disclosure also proposes a ranging verification method and device. The network device can verify the terminal to determine whether the terminal is allowed to perform ranging during the discovery process, and can also verify the terminal to determine whether the terminal is allowed to perform ranging. Perform ranging on another terminal during discovery.
上述发现测量组合流程用于在发现过程中执行测距,在后文中,为简单起见,上述发起发现测量组合流程的终端可被称为观察终端,另一终端可被称为目标终端(即候选的将被发现以参与发现测量组合流程的终端)。The above discovery and measurement combination process is used to perform ranging during the discovery process. In the following, for the sake of simplicity, the terminal that initiates the discovery and measurement combination process may be called an observing terminal, and the other terminal may be called a target terminal (i.e. candidate of terminals that will be discovered to participate in the discovery measurement combination process).
下面结合附图对本申请所提供的测距方法及装置、测距验证方法及装置进行详细地介绍。The distance measurement method and device, and the distance measurement verification method and device provided by this application will be introduced in detail below with reference to the accompanying drawings.
图2为根据本公开实施例的一种测距方法的流程示意图。如图2所示,该方法可以由观察终端执行,且包括以下步骤。Figure 2 is a schematic flowchart of a ranging method according to an embodiment of the present disclosure. As shown in Figure 2, the method can be executed by an observation terminal and includes the following steps.
S201,向目标终端发送征询消息。S201. Send a query message to the target terminal.
其中,征询消息用于指示观察终端和目标终端进行发现匹配且该征询消息中包括测量信号,以表示观察终端期望在发现过程中执行测距。The query message is used to instruct the observation terminal and the target terminal to perform discovery matching and the query message includes a measurement signal to indicate that the observation terminal wishes to perform ranging during the discovery process.
S202,接收目标终端针对征询消息反馈的征询响应消息。S202: Receive the consultation response message fed back by the target terminal in response to the consultation message.
其中,征询响应消息是目标终端确定与观察终端匹配的情况下发送的,且征询响应消息中包括反馈测量信号。在一些实施例中,该征询响应消息包括反馈测量信号以及接收到征询消息和反馈征询响应消息之间的时间差,可选地,征询响应消息还可以包括发现消息类型,将在下文进行详细描述。The query response message is sent when the target terminal determines that it matches the observing terminal, and the query response message includes the feedback measurement signal. In some embodiments, the query response message includes the feedback measurement signal and the time difference between receiving the query message and the feedback query response message. Optionally, the query response message may also include a discovery message type, which will be described in detail below.
目标终端在接收到观察终端发送的征询消息后,可以进行发现过程以确定目标终端是否与观察终 端匹配,若目标终端与观察终端匹配,则可以向观察终端发送包括反馈测量信号的征询响应消息。After receiving the query message sent by the observation terminal, the target terminal can perform a discovery process to determine whether the target terminal matches the observation terminal. If the target terminal matches the observation terminal, it can send a query 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 query response message to the observing terminal, which means that communication between the target terminal and the observing terminal is impossible.
S203,基于测量信号和反馈测量信号,计算与目标终端之间的距离。S203: Calculate the distance to the target terminal based on the measurement signal and the feedback measurement signal.
观察终端在接收到包括反馈测量信号的征询响应消息后,可以根据测量信号以及反馈测量信号,计算观察终端与目标终端之间的距离。After receiving the inquiry response message including the feedback measurement signal, the observation terminal can calculate the distance between the observation terminal and the target terminal based on the measurement signal and the feedback measurement signal.
在一些实施例中,若观察终端在预设时间段内未接收到目标终端发送的征询响应消息,则观察终端可以确定目标终端与该观察终端不匹配,则不会与目标终端进行通信。In some embodiments, if the observing terminal does not receive the inquiry response message sent by the target terminal within a preset time period, the observing terminal may determine that the target terminal does not match the observing terminal, and will not communicate with the target terminal.
根据本公开实施例的测距方法,观察终端向目标终端发送包括测量信号的征询消息,目标终端在与观察终端匹配的情况下向观察终端反馈包括反馈测量信号的征询响应消息,观察终端可以根据测量信号与反馈测量信号计算与目标终端之间的距离。由此,两个终端之间的测距可以在发现过程中执行,从而能够减少网络资源消耗并节省终端的功耗。According to the ranging method of the embodiment of the present disclosure, the observation terminal sends a query message including a measurement signal to the target terminal, and the target terminal feeds back a query response message including a feedback measurement signal to the observation terminal if it matches the observation terminal. The observation terminal can according to The measurement signal and the feedback measurement signal calculate the distance to the target terminal. Thus, ranging between two terminals can be performed during the discovery process, thereby reducing network resource consumption and saving terminal power consumption.
图3示出了根据本公开实施例的一种测距方法的流程示意图。如图3所示,该方法可以由观察终端执行,且包括以下步骤。Figure 3 shows a schematic flowchart of a ranging method according to an embodiment of the present disclosure. As shown in Figure 3, the method can be executed by an observation terminal and includes the following steps.
S301,对征询消息进行完整性保护。S301, perform integrity protection on the consultation message.
其中,征询消息用于指示观察终端和目标终端进行发现匹配且该征询消息中包括测量信号,以表示观察终端期望在发现过程中执行测距。The query message is used to instruct the observation terminal and the target terminal to perform discovery matching and the query message includes a measurement signal to indicate that the observation terminal wishes to perform ranging during the discovery process.
在一些实施例中,上述步骤S301可以包括以下步骤。In some embodiments, the above step S301 may include the following steps.
S3011,基于从观察终端的本地公用陆地移动网络(HPLMN,Home Public Land Mobile Network)的邻近服务发现管理功能(DDNMF,Direct Discovery Name Management Function)网元接收的安全参数,计算消息验证码。S3011, calculate the message verification code based on the security parameters received from the proximity service discovery management function (DDNMF, Direct Discovery Name Management Function) network element of the local public land mobile network (HPLMN, Home Public Land Mobile Network) of the observing terminal.
在本实施中,观察终端可以根据从观察终端的HPLMN的DDNMF网元接收的安全参数计算消息验证码。在一示例中,该安全参数可以为发现用户完整性密钥(DUIK,Discovery User Integrity Key),观察终端根据DUIK计算消息验证码(MIC,Message Integrity Code)。In this implementation, the observing terminal may calculate the message verification code based on the security parameters received from the DDNMF network element of the observing terminal's HPLMN. In an example, the security parameter may be a Discovery User Integrity Key (DUIK), and the observing terminal calculates a Message Integrity Code (MIC) based on the DUIK.
S3012,将消息验证码附加至征询消息的末尾以对征询消息进行完整性保护。S3012: Attach the message verification code to the end of the consultation message to protect the integrity of the consultation message.
观察终端在计算得出MIC后,可以将MIC附加至征询消息的末尾以对征询消息进行完整性保护。After the observing terminal calculates the MIC, it can append the MIC to the end of the query message to protect the integrity of the query message.
S302,向目标终端发送经完整性保护的征询消息。S302. Send an integrity-protected query message to the target terminal.
观察终端在对征询消息进行完整性保护后,将经完整性保护的征询消息发送给目标终端。After performing integrity protection on the query message, the observing terminal sends the integrity-protected query message to the target terminal.
S303,接收目标终端针对经完整性保护的征询消息反馈的征询响应消息。S303: Receive a query response message fed back by the target terminal in response to the integrity-protected query message.
目标终端接收到经完整性保护的征询消息后,目标终端需要对该征询消息进行完整性验证,具体地,目标终端可以根据DUIK验证征询消息,如果验证通过,目标终端才会向观察终端反馈征询响应消息,否则不会反馈征询响应消息。After the target terminal receives the integrity-protected query message, the target terminal needs to perform integrity verification on the query message. Specifically, the target terminal can verify the query message based on DUIK. If the verification is passed, the target terminal will feedback the query to the observation terminal. response message, otherwise the consultation response message will not be fed back.
其中,征询响应消息是目标终端确定与观察终端匹配的情况下发送的,且征询响应消息中包括反馈测量信号。The query response message is sent when the target terminal determines that it matches the observing terminal, and the query response message includes the feedback measurement signal.
目标终端在成功验证经完整性保护的征询消息后,可以进行发现过程以确定其是否与观察终端匹配,若目标终端与观察终端匹配,则可以向观察终端发送包括反馈测量信号的征询响应消息。After the target terminal successfully verifies the integrity-protected query message, it can perform a discovery process to determine whether it matches the observing terminal. If the target terminal matches the observing terminal, it can send a query response message including the feedback measurement signal to the observing terminal.
在另一些实施例中,若目标终端与观察终端不匹配,则目标终端可以不向观察终端发送征询响应消息,这表示目标终端与观察终端之间不能进行通信。In other embodiments, if the target terminal does not match the observing terminal, the target terminal may not send a query response message to the observing terminal, which means that communication between the target terminal and the observing terminal is impossible.
S304,基于测量信号和反馈测量信号,计算与目标终端之间的距离。S304: Calculate the distance to the target terminal based on the measurement signal and the feedback measurement signal.
关于上述步骤S304的描述和具体细节,可以参考上述步骤S203的相关描述与细节。For the description and specific details of the above step S304, please refer to the relevant description and details of the above step S203.
根据本公开实施例的测距方法,观察终端在对征询消息进行完整性保护后向目标终端发送经完整性保护的征询消息,目标终端在与观察终端匹配的情况下向观察终端反馈包括反馈测量信号的征询响应消息,观察终端可以根据征询消息中的测量信号与反馈测量信号计算与目标终端之间的距离。由此,两个终端之间的测距可以在发现过程中执行,从而能够减少网络资源消耗并节省终端的功耗,此外,由于征询消息为经完整性保护的消息,能够避免征询消息被篡改,从而提高了征询消息的安全性。According to the ranging method of the embodiment of the present disclosure, the observing terminal sends an integrity-protected query message to the target terminal after performing integrity protection on the query message. The target terminal feeds back to the observing terminal including feedback measurement if it matches the observing terminal. Signal query response message, the observing terminal can calculate the distance to the target terminal based on the measurement signal and feedback measurement signal in the query message. As a result, ranging between two terminals can be performed during the discovery process, thereby reducing network resource consumption and saving terminal power consumption. In addition, since the query message is an integrity-protected message, tampering of the query message can be avoided. , thereby improving the security of the consultation message.
图4示出了根据本公开实施例的一种测距方法的流程示意图。如图4所示,该方法可以由观察终端执行,且包括以下步骤。Figure 4 shows a schematic flowchart of a ranging method according to an embodiment of the present disclosure. As shown in Figure 4, the method can be executed by an observation terminal and includes the following steps.
S401,向该目标终端发送征询消息。S401. Send a query message to the target terminal.
关于上述步骤S401的描述和具体细节,可以参考上述步骤S201的相关描述与细节。For the description and specific details of the above step S401, please refer to the relevant description and details of the above step S201.
S402,接收目标终端针对征询消息反馈的经完整性保护的征询响应消息。S402: Receive the integrity-protected query response message fed back by the target terminal in response to the query message.
其中,经完整性保护的征询响应消息是目标终端确定与观察终端匹配的情况下发送的,且该经完整性保护的征询响应消息中包括反馈测量信号。The integrity-protected query response message is sent when the target terminal determines that it matches the observing terminal, and the integrity-protected query response message includes a feedback measurement signal.
目标终端在接收到观察终端发送的征询消息后,可以进行发现过程以确定目标终端是否与观察终端匹配,若目标终端与观察终端匹配,则可以向观察终端反馈包括反馈测量信号的征询响应消息。After receiving the query message sent by the observation terminal, the target terminal can perform a discovery process to determine whether the target terminal matches the observation terminal. If the target terminal matches the observation terminal, it can feed back a query response message including the feedback measurement signal to the observation terminal.
为了避免征询响应消息被篡改,目标终端可以在对征询响应消息进行完整性保护后将经完整性保护的征询响应消息发送给观察终端。其中,目标终端可以根据从目标终端的HPLMN的DDNMF网元接收的安全参数,计算消息验证码,并将消息验证码附加至征询响应消息的末尾以对征询响应消息进行完整性保护。在一示例中,该安全参数可以为DUIK,目标终端根据DUIK计算MIC,并将MIC附加至征询响应消息的末尾。In order to prevent the query response message from being tampered with, the target terminal can send the integrity-protected query response message to the observation terminal after performing integrity protection on the query response message. Among them, the target terminal can calculate the message verification code based on the security parameters received from the DDNMF network element of the HPLMN of the target terminal, and append the message verification code to the end of the inquiry response message to protect the integrity of the inquiry response message. In an example, the security parameter may be DUIK, and the target terminal calculates the MIC based on the DUIK and appends the MIC to the end of the query response message.
在另一些实施例中,若目标终端与观察终端不匹配,则目标终端可以不向观察终端发送征询响应消息,这表示目标终端与观察终端之间不能进行通信。In other embodiments, if the target terminal does not match the observing terminal, the target terminal may not send a query response message to the observing terminal, which means that communication between the target terminal and the observing terminal is impossible.
S403,验证经完整性保护的征询响应消息的完整性。S403. Verify the integrity of the integrity-protected query response message.
若观察终端接收到经完整性保护的征询响应消息,观察终端需要对该征询响应消息进行完整性验证。If the observing terminal receives an integrity-protected query response message, the observing terminal needs to perform integrity verification on the query response message.
在一些实施例中,上述步骤S403可以包括如下步骤。In some embodiments, the above step S403 may include the following steps.
S4031,基于从观察终端的HPLMN的DDNMF网元接收的安全参数,验证经完整性保护的征询响应消息的完整性。S4031: Verify the integrity of the integrity-protected query response message based on the security parameters received from the DDNMF network element of the HPLMN of the observing terminal.
在一示例中,观察终端可以根据从DDNMF网元接收到的DUIK验证征询响应消息。In an example, the observing terminal may respond to the DUIK verification inquiry message received from the DDNMF network element.
S404,如果成功验证经完整性保护的征询响应消息,基于测量信号和反馈测量信号,计算与目标终端之间的距离。S404: If the integrity-protected query response message is successfully verified, calculate the distance to the target terminal based on the measurement signal and the feedback measurement signal.
关于上述步骤S404的描述和具体细节,可以参考上述步骤S203的相关描述与细节。For the description and specific details of the above step S404, please refer to the relevant description and details of the above step S203.
根据本公开实施例的测距方法,观察终端向目标终端发送包括测量信号的征询消息,目标终端在与观察终端匹配的情况下向观察终端反馈包括反馈测量信号的征询响应消息且该征询响应消息为经过完整性保护的消息,观察终端可以根据测量信号与反馈测量信号计算与目标终端之间的距离。由此,两个终端之间的测距可以在发现过程中执行,从而能够减少网络资源消耗并节省终端的功耗,此外,由于征询响应消息为经完整性保护的消息,能够避免征询响应消息被篡改,从而提高了征询响应消息的安全性。According to the ranging method of the embodiment of the present disclosure, the observation terminal sends a query message including a measurement signal to the target terminal, and the target terminal feeds back a query response message including a feedback measurement signal to the observation terminal if it matches the observation terminal, and the query response message For integrity protected messages, the observing terminal can calculate the distance to the target terminal based on the measurement signal and the feedback measurement signal. Thus, ranging between two terminals can be performed during the discovery process, thereby reducing network resource consumption and saving terminal power consumption. In addition, since the query response message is an integrity-protected message, the query response message can be avoided. be tampered with, thereby improving the security of the query response message.
图5示出了根据本公开实施例的一种测距方法的流程示意图。如图5所示,该方法可以由观察终端执行,且包括以下步骤。Figure 5 shows a schematic flowchart of a ranging method according to an embodiment of the present disclosure. As shown in Figure 5, the method can be executed by an observation terminal and includes the following steps.
S501,对征询消息进行完整性保护。S501, perform integrity protection on the consultation message.
关于上述步骤S501的描述和具体细节,可以参考上述步骤S301的相关描述与细节。For the description and specific details of the above step S501, please refer to the relevant description and details of the above step S301.
S502,向目标终端发送经完整性保护的征询消息。S502: Send an integrity-protected query message to the target terminal.
关于上述步骤S502的描述和具体细节,可以参考上述步骤S302的相关描述与细节。For the description and specific details of the above step S502, please refer to the relevant description and details of the above step S302.
S503,接收目标终端针对经完整性保护的征询消息反馈的经完整性保护的征询响应消息。S503: Receive an integrity-protected query response message fed back by the target terminal in response to the integrity-protected query message.
关于上述步骤S503的描述和具体细节,可以参考上述步骤S303、S402的相关描述与细节。For the description and specific details of the above step S503, please refer to the relevant description and details of the above steps S303 and S402.
S504,验证经完整性保护的征询响应消息的完整性。S504: Verify the integrity of the integrity-protected query response message.
关于上述步骤S504的描述和具体细节,可以参考上述步骤S403的相关描述与细节。For the description and specific details of the above step S504, please refer to the relevant description and details of the above step S403.
S505,如果成功验证经完整性保护的征询响应消息,基于测量信号和反馈测量信号,计算与目标终端之间的距离。S505: If the integrity-protected query response message is successfully verified, calculate the distance to the target terminal based on the measurement signal and the feedback measurement signal.
关于上述步骤S505的描述和具体细节,可以参考上述步骤S404的相关描述与细节。For the description and specific details of the above step S505, please refer to the relevant description and details of the above step S404.
根据本公开实施例的测距方法,观察终端在对征询消息进行完整性保护后向目标终端发送经完整性保护的征询消息,目标终端在与观察终端匹配的情况下向观察终端反馈经完整性保护的征询响应消息,观察终端可以根据征询消息中的测量信号与征询响应消息中的反馈测量信号计算与目标终端之间的距离。由此,两个终端之间的测距可以在发现过程中执行,从而能够减少网络资源消耗并节省终端的功耗,此外,由于征询消息和征询响应消息均为经完整性保护的消息,能够避免征询消息和征询响应消息被篡改,从而提高了征询消息和征询响应消息的安全性。According to the ranging method of the embodiment of the present disclosure, the observing terminal sends an integrity-protected query message to the target terminal after performing integrity protection on the query message. The target terminal feeds back the integrity-protected query message to the observing terminal if it matches the observing terminal. In the protected query response message, the observing terminal can calculate the distance to the target terminal based on the measurement signal in the query message and the feedback measurement signal in the query response message. As a result, ranging between two terminals can be performed during the discovery process, thereby reducing network resource consumption and saving terminal power consumption. In addition, since both the query message and the query response message are integrity-protected messages, it can This prevents the inquiry message and the inquiry response message from being tampered with, thereby improving the security of the inquiry message and the inquiry response message.
图6示出了根据本公开实施例的一种测距方法的流程示意图。如图6所示,该方法可以由观察终端执行,且包括以下步骤。Figure 6 shows a schematic flowchart of a ranging method according to an embodiment of the present disclosure. As shown in Figure 6, the method can be executed by an observation terminal and includes the following steps.
S601,向观察终端的HPLMN的DDNMF网元发送第一发现请求消息。S601: Send a first discovery request message to the DDNMF network element of the HPLMN of the observing terminal.
其中,第一发现请求消息用于请求执行发现测量组合流程。The first discovery request message is used to request execution of the discovery measurement combination process.
观察终端的HPLMN的DDNMF网元用于响应于第一发现请求消息向测距应用服务器发送第一发 现测量组合流程验证请求,测距应用服务器用于基于第一发现测量组合流程验证请求验证是否允许观察终端在发现过程中执行测距,在验证结果指示观察终端被允许在发现过程中执行测距的情况下,观察终端的HPLMN的DDNMF网元将第一发现请求消息转发至目标终端的HPLMN的DDNMF网元,目标终端的HPLMN的DDNMF网元响应于第一发现请求消息向测距应用服务器发送第三发现测量组合流程验证请求,测距应用服务器用于基于第三发现测量组合流程验证请求验证是否允许观察终端在发现过程中对目标终端执行测距,在验证结果指示允许观察终端在发现过程中对目标终端执行测距的情况下,目标终端的HPLMN的DDNMF网元生成用于观察终端的发现测量组合流程的参数信息。The DDNMF network element of the HPLMN of the observing terminal is configured to send a first discovery measurement combination process verification request to the ranging application server in response to the first discovery request message, and the ranging application server is configured to verify whether it is allowed based on the first discovery measurement combination process verification request. The observing terminal performs ranging during the discovery process. When the verification result indicates that the observing terminal is allowed to perform ranging during the discovery process, the DDNMF network element of the HPLMN of the observing terminal forwards the first discovery request message to the HPLMN of the target terminal. DDNMF network element. The DDNMF network element of the HPLMN of the target terminal sends a third discovery measurement combination process verification request to the ranging application server in response to the first discovery request message. The ranging application server is used to verify the request based on the third discovery measurement combination process verification. Whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process. If the verification result indicates that the observing terminal is allowed to perform ranging on the target terminal during the discovery process, the DDNMF network element of the target terminal's HPLMN generates a DDNMF network element for the observing terminal. Discover parameter information for the measurement combination process.
在一些实施例中,该第一发现请求消息可以包括发现测量组合流程指示。发现测量组合流程指示用于请求验证观察终端是否被允许在发现过程中执行测距。In some embodiments, the first discovery request message may include a discovery measurement combination process indication. The discovery measurement combination process indication is used to request verification that the observing terminal is allowed to perform ranging during the discovery process.
也就是说,观察终端的HPLMN的DDNMF网元可以自主地响应于第一发现请求消息向测距应用服务器发送第一发现测量组合流程验证请求,即响应于任意第一发现请求消息,观察终端的HPLMN的DDNMF网元向测距应用服务器发送第一发现测量组合流程验证请求以验证观察终端是否被允许在发现过程中执行测距。That is to say, the DDNMF network element of the HPLMN of the observing terminal can autonomously send a first discovery measurement combination process verification request to the ranging application server in response to the first discovery request message, that is, in response to any first discovery request message, the observing terminal The DDNMF network element of the HPLMN sends a first discovery measurement combination process verification request to the ranging application server to verify whether the observing terminal is allowed to perform ranging during the discovery process.
或者,观察终端的HPLMN的DDNMF网元根据第一发现请求消息中的发现测量组合流程指示向测距应用服务器发送第一发现测量组合流程验证请求,即仅响应于包括发现测量组合流程指示的第一发现请求消息,观察终端的HPLMN的DDNMF网元向测距应用服务器发送第一发现测量组合流程验证请求以验证观察终端是否被允许在发现过程中执行测距。Alternatively, the DDNMF network element of the HPLMN of the observing terminal sends a first discovery and measurement combination process verification request to the ranging application server according to the discovery and measurement combination process indication in the first discovery request message, that is, only responds to the first discovery and measurement combination process indication including the discovery and measurement combination process indication. Upon receiving the discovery request message, the DDNMF network element of the HPLMN of the observing terminal sends a first discovery measurement combination process verification request to the ranging application server to verify whether the observing terminal is allowed to perform ranging during the discovery process.
在一些实施例中,第一发现请求消息还包括另一发现测量组合流程指示,该另一发现测量组合流程指示用于请求验证观察终端是否被允许在发现过程中对目标终端执行测距。In some embodiments, the first discovery request message further includes another discovery measurement combination process indication, which is used to request verification whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
也就是说,目标终端的HPLMN的DDNMF网元可以自主地响应于第一发现请求消息向测距应用服务器发送第三发现测量组合流程验证请求,即响应于任意第一发现请求消息,目标终端的HPLMN的DDNMF网元向测距应用服务器第三发送发现测量组合流程验证请求以验证观察终端是否被允许在发现过程中对目标终端执行测距。That is to say, the DDNMF network element of the target terminal's HPLMN can autonomously send a third discovery measurement combination process verification request to the ranging application server in response to the first discovery request message, that is, in response to any first discovery request message, the target terminal's The DDNMF network element of the HPLMN sends a discovery measurement combination process verification request to the ranging application server to verify whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
或者,目标终端的HPLMN的DDNMF网元根据第一发现请求消息中的另一发现测量组合流程指示向测距应用服务器发送第三发现测量组合流程验证请求,即仅响应于包括另一发现测量组合流程指示的第一发现请求消息,目标终端的HPLMN的DDNMF网元向测距应用服务器发送第三发现测量组合流程验证请求以验证观察终端是否被允许在发现过程中对目标终端执行测距。Alternatively, the DDNMF network element of the HPLMN of the target terminal sends a third discovery measurement combination process verification request to the ranging application server according to another discovery measurement combination process instruction in the first discovery request message, that is, it only responds to the request including another discovery measurement combination. In the first discovery request message indicated by the process, the DDNMF network element of the HPLMN of the target terminal sends a third discovery measurement combination process verification request to the ranging application server to verify whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
S602,接收DDNMF网元在确定观察终端被允许在发现过程中对目标终端执行测距的情况下反馈的发现响应消息。S602: Receive the discovery response message fed back by the DDNMF network element when it is determined that the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
其中,发现响应消息中包括参数信息。The discovery response message includes parameter information.
DDNMF网元在基于验证结果观察终端被允许在发现过程中对目标终端执行测距的情况下生成参数信息,并可以将包括参数信息的发现响应消息反馈给观察终端,从而观察终端能够获取到用于发现测量组合流程的参数信息。The DDNMF network element generates parameter information when the observing terminal is allowed to perform ranging on the target terminal during the discovery process based on the verification results, and can feed back the discovery response message including the parameter information to the observing terminal, so that the observing terminal can obtain the user information. To discover the parameter information of the measurement combination process.
S603,在观察终端被允许在发现过程中对目标终端执行测距的情况下,向该目标终端发送征询消息。S603: If the observing terminal is allowed to perform ranging on the target terminal during the discovery process, send a query message to the target terminal.
如果观察终端从DDNMF网元获取到用于发现测量组合流程的参数信息,这表示观察终端被允许在发现过程中对目标终端执行测距,则观察终端可以向目标终端发送征询消息。If the observing terminal obtains the parameter information used to discover the measurement combination process from the DDNMF network element, which means that the observing terminal is allowed to perform ranging on the target terminal during the discovery process, the observing terminal can send a query message to the target terminal.
关于上述步骤S603的描述和具体细节,可以参考上述步骤S201的相关描述与细节。For the description and specific details of the above step S603, please refer to the relevant description and details of the above step S201.
S604,接收目标终端针对征询消息反馈的征询响应消息。S604: Receive the consultation response message fed back by the target terminal in response to the consultation message.
关于上述步骤S604的描述和具体细节,可以参考上述步骤S202的相关描述与细节。For the description and specific details of the above step S604, please refer to the relevant description and details of the above step S202.
S605,基于测量信号和反馈测量信号,计算与目标终端之间的距离。S605: Calculate the distance to the target terminal based on the measurement signal and the feedback measurement signal.
关于上述步骤S605的描述和具体细节,可以参考上述步骤S203的相关描述与细节。For the description and specific details of the above step S605, please refer to the relevant description and details of the above step S203.
值得注意的是,本实施例是在图2所示实施例基础上描述的,即本实施例的步骤S601-S602与图2所示步骤S201-S203相结合,但应注意的是,本实施例的步骤S601-S602也可以与图3所示的S301-S304相结合、与图4所示的步骤S401-S404相结合、与图5所示的步骤S501-S505相结合,在此不再追诉。It is worth noting that this embodiment is described based on the embodiment shown in Figure 2, that is, steps S601-S602 of this embodiment are combined with steps S201-S203 shown in Figure 2. However, it should be noted that this implementation The steps S601-S602 of the example can also be combined with the steps S301-S304 shown in Figure 3, combined with the steps S401-S404 shown in Figure 4, combined with the steps S501-S505 shown in Figure 5, and will not be repeated here. Prosecution.
根据本公开实施例的测距方法,观察终端在向目标终端发送包括测量信号的征询消息之前需要得到验证,在观察终端被验证为被允许在发现过程中对目标终端执行测距的情况下向目标终端发送征询消息,目标终端在与观察终端匹配的情况下向观察终端反馈包括反馈测量信号的征询响应消息,观察终端可以根据测量信号与反馈测量信号计算与目标终端之间的距离。由此,两个终端之间的测距可以在发现过程中执行,从而能够减少网络资源消耗并节省终端的功耗。According to the ranging method of the embodiment of the present disclosure, the observing terminal needs to be verified before sending a query message including a measurement signal to the target terminal. In the case where the observing terminal is verified to be allowed to perform ranging on the target terminal during the discovery process, the observing terminal needs to be verified. The target terminal sends a query message, and if the target terminal matches the observation terminal, it feeds back a query response message including a feedback measurement signal to the observation terminal. The observation terminal can calculate the distance to the target terminal based on the measurement signal and the feedback measurement signal. Thus, ranging between two terminals can be performed during the discovery process, thereby reducing network resource consumption and saving terminal power consumption.
图7为根据本公开实施例的一种测距方法的流程示意图。如图7所示,该方法可以由目标终端执 行,且包括以下步骤。Figure 7 is a schematic flowchart of a ranging method according to an embodiment of the present disclosure. As shown in Figure 7, the method can be executed by the target terminal and includes the following steps.
S701,接收观察终端发送的征询消息。S701: Receive the inquiry message sent by the observation terminal.
其中,征询消息用于指示观察终端和目标终端进行发现匹配且该征询消息中包括测量信号,以表示观察终端期望在发现过程中执行测距。The query message is used to instruct the observation terminal and the target terminal to perform discovery matching and the query message includes a measurement signal to indicate that the observation terminal wishes to perform ranging during the discovery process.
S702,在目标终端确定与观察终端匹配的情况下,向观察终端反馈征询响应消息。S702: When the target terminal determines that it matches the observation terminal, feed back a query response message to the observation terminal.
其中,征询响应消息中包括反馈测量信号,测量信号和反馈测量信号用于确定观察终端和目标终端之间的距离。The query response message includes a feedback measurement signal, and the measurement signal and the feedback measurement signal are used to determine the distance between the observation terminal and the target terminal.
目标终端在接收到观察终端发送的包括测量信号的征询消息后,可以进行发现过程以确定目标终端是否与观察终端匹配,若目标终端与观察终端匹配,则可以向观察终端发送包括反馈测量信号的征询响应消息。After receiving the query message including the measurement signal sent by the observation terminal, the target terminal can perform a discovery process to determine whether the target terminal matches the observation terminal. If the target terminal matches the observation terminal, it can send a message including the feedback measurement signal to the observation terminal. Inquiry response message.
在一些实施例中,若目标终端与观察终端不匹配,则目标终端可以不向观察终端发送征询响应消息,这表示目标终端与观察终端之间不能进行通信。In some embodiments, if the target terminal does not match the observing terminal, the target terminal may not send a query response message to the observing terminal, which means that communication between the target terminal and the observing terminal is impossible.
观察终端在接收到包括反馈测量信号的征询响应消息后,可以根据测量信号以及反馈测量信号,计算观察终端与目标终端之间的距离。After receiving the inquiry response message including the feedback measurement signal, the observation terminal can calculate the distance between the observation terminal and the target terminal based on the measurement signal and the feedback measurement signal.
在一些实施例中,若观察终端在预设时间段内未接收到目标终端发送的征询响应消息,则观察终端可以确定目标终端与该观察终端不匹配,则不会与目标终端进行通信。In some embodiments, if the observing terminal does not receive the inquiry response message sent by the target terminal within a preset time period, the observing terminal may determine that the target terminal does not match the observing terminal, and will not communicate with the target terminal.
根据本公开实施例的测距方法,观察终端向目标终端发送包括测量信号的征询消息,目标终端在与观察终端匹配的情况下向观察终端反馈包括反馈测量信号的征询响应消息,观察终端可以根据测量信号与反馈测量信号计算与目标终端之间的距离。由此,两个终端之间的测距可以在发现过程中执行,从而能够减少网络资源消耗并节省终端的功耗。According to the ranging method of the embodiment of the present disclosure, the observation terminal sends a query message including a measurement signal to the target terminal, and the target terminal feeds back a query response message including a feedback measurement signal to the observation terminal if it matches the observation terminal. The observation terminal can according to The measurement signal and the feedback measurement signal calculate the distance to the target terminal. Thus, ranging between two terminals can be performed during the discovery process, thereby reducing network resource consumption and saving terminal power consumption.
图8示出了根据本公开实施例的一种测距方法的流程示意图。如图8所示,该方法可以由目标终端执行,且包括以下步骤。Figure 8 shows a schematic flowchart of a ranging method according to an embodiment of the present disclosure. As shown in Figure 8, the method can be executed by the target terminal and includes the following steps.
S801,接收观察终端发送的经完整性保护的征询消息。S801: Receive the integrity-protected query message sent by the observation terminal.
其中,观察终端可以在对征询消息进行完整性保护后,将经完整性保护的征询消息发送给目标终端。经完整性保护的征询消息用于指示观察终端和目标终端进行发现匹配且包括测量信号,以表示观察终端期望在发现过程中执行测距。The observing terminal may, after performing integrity protection on the query message, send the integrity-protected query message to the target terminal. The integrity-protected solicitation message is used to instruct the observing terminal and the target terminal to perform discovery matching and includes a measurement signal to indicate that the observing terminal wishes to perform ranging during the discovery process.
其中,观察终端可以根据从观察终端的HPLMN的DDNMF网元接收的安全参数,计算消息验证码,并将消息验证码附加至征询消息的末尾以对征询消息进行完整性保护。在一示例中,该安全参数可以为DUIK,观察终端根据DUIK计算MIC,并将MIC附加至征询消息末尾。Among them, the observing terminal can calculate the message verification code based on the security parameters received from the DDNMF network element of the HPLMN of the observing terminal, and append the message verification code to the end of the query message to protect the integrity of the query message. In an example, the security parameter may be DUIK, and the observing terminal calculates the MIC based on the DUIK, and appends the MIC to the end of the query message.
S802,验证经完整性保护的征询消息的完整性。S802: Verify the integrity of the integrity-protected query message.
若目标终端接收到经完整性保护的征询消息,目标终端需要对该征询消息进行完整性验证。If the target terminal receives an integrity-protected query message, the target terminal needs to perform integrity verification on the query message.
在一些实施例中,上述步骤S802可以包括如下步骤。In some embodiments, the above step S802 may include the following steps.
S8021,基于从目标终端的HPLMN的DDNMF网元接收的安全参数,验证经完整性保护的征询消息的完整性。S8021: Verify the integrity of the integrity-protected query message based on the security parameters received from the DDNMF network element of the HPLMN of the target terminal.
在一示例中,目标终端可以根据从DDNMF网元接收到的DUIK验证征询消息。In an example, the target terminal may verify the query message according to the DUIK received from the DDNMF network element.
S803,如果成功验证经完整性保护的征询消息的完整性,在目标终端确定与观察终端匹配的情况下,向观察终端反馈征询响应消息。S803: If the integrity of the integrity-protected query message is successfully verified, and the target terminal determines that it matches the observing terminal, a query response message is fed back to the observing terminal.
其中,征询响应消息中包括反馈测量信号,测量信号和反馈测量信号用于确定观察终端和目标终端之间的距离。The query response message includes a feedback measurement signal, and the measurement signal and the feedback measurement signal are used to determine the distance between the observation terminal and the target terminal.
关于上述步骤S803的描述和具体细节,可以参考上述步骤S702的相关描述与细节。For the description and specific details of the above step S803, please refer to the relevant description and details of the above step S702.
根据本公开实施例的测距方法观察终端在对征询消息进行完整性保护后向目标终端发送经完整性保护的征询消息,目标终端在与观察终端匹配的情况下向观察终端反馈包括反馈测量信号的征询响应消息,观察终端可以根据征询消息中的测量信号与反馈测量信号计算与目标终端之间的距离。由此,两个终端之间的测距可以在发现过程中执行,从而能够减少网络资源消耗并节省终端的功耗,此外,由于征询消息为经完整性保护的消息,能够避免征询消息被篡改,从而提高了征询消息的安全性。According to the ranging method of the embodiment of the present disclosure, the observation terminal sends an integrity-protected query message to the target terminal after performing integrity protection on the query message. The target terminal feeds back to the observation terminal a feedback measurement signal including a feedback measurement signal if it matches the observation terminal. Inquiry response message, the observing terminal can calculate the distance to the target terminal based on the measurement signal and feedback measurement signal in the inquiry message. As a result, ranging between two terminals can be performed during the discovery process, thereby reducing network resource consumption and saving terminal power consumption. In addition, since the query message is an integrity-protected message, tampering of the query message can be avoided. , thereby improving the security of the consultation message.
图9示出了根据本公开实施例的一种测距方法的流程示意图。如图9所示,该方法可以由目标终端执行,且包括以下步骤。Figure 9 shows a schematic flowchart of a ranging method according to an embodiment of the present disclosure. As shown in Figure 9, the method can be executed by the target terminal and includes the following steps.
S901,接收观察终端发送的征询消息。S901: Receive the inquiry message sent by the observation terminal.
关于上述步骤S901的描述和具体细节,可以参考上述步骤S701的相关描述与细节。For the description and specific details of the above step S901, please refer to the relevant description and details of the above step S701.
S902,在目标终端确定与观察终端匹配的情况下,对征询响应消息进行完整性保护。S902: When the target terminal determines that it matches the observing terminal, perform integrity protection on the query response message.
其中,经完整性保护的征询响应消息中包括反馈测量信号,测量信号和反馈测量信号用于确定观察终端和目标终端之间的距离。The integrity-protected query response message includes a feedback measurement signal, and the measurement signal and the feedback measurement signal are used to determine the distance between the observation terminal and the target terminal.
目标终端在接收到观察终端发送的包括测量信号的征询消息后,可以进行发现过程以确定目标终端是否与观察终端匹配,若目标终端与观察终端匹配,则可以向观察终端发送包括反馈测量信号的征询响应消息。为了避免征询响应消息被篡改,目标终端可以在对征询响应消息进行完整性保护后将经完整性保护的征询响应消息发送给观察终端。After receiving the query message including the measurement signal sent by the observation terminal, the target terminal can perform a discovery process to determine whether the target terminal matches the observation terminal. If the target terminal matches the observation terminal, it can send a message including the feedback measurement signal to the observation terminal. Inquiry response message. In order to prevent the query response message from being tampered with, the target terminal can send the integrity-protected query response message to the observation terminal after performing integrity protection on the query response message.
在一些实施例中,若目标终端与观察终端不匹配,则目标终端可以不向观察终端发送征询响应消息,这表示目标终端与观察终端之间不能进行通信。In some embodiments, if the target terminal does not match the observing terminal, the target terminal may not send a query response message to the observing terminal, which means that communication between the target terminal and the observing terminal is impossible.
在一些实施例中,上述步骤S902可以包括以下步骤。In some embodiments, the above step S902 may include the following steps.
S9021,基于从目标终端的HPLMN的DDNMF网元接收的安全参数,计算消息验证码。S9021: Calculate the message verification code based on the security parameters received from the DDNMF network element of the HPLMN of the target terminal.
在本实施中,目标终端可以根据从目标终端的HPLMN的DDNMF网元接收的安全参数计算消息验证码。在一示例中,该安全参数可以为发现用户完整性密钥(DUIK,Discovery User Integrity Key),观察终端根据DUIK计算消息验证码(MIC,Message Integrity Code)。In this implementation, the target terminal may calculate the message verification code based on the security parameters received from the DDNMF network element of the target terminal's HPLMN. In an example, the security parameter may be a Discovery User Integrity Key (DUIK), and the observing terminal calculates a Message Integrity Code (MIC) based on the DUIK.
S9022,将消息验证码附加至征询响应消息的末尾以对征询响应消息进行完整性保护。S9022: Attach the message verification code to the end of the inquiry response message to protect the integrity of the inquiry response message.
目标终端在计算得出MIC后,可以将MIC附加至征询响应消息的末尾以对征询响应消息进行完整性保护。After calculating the MIC, the target terminal can append the MIC to the end of the query response message to protect the integrity of the query response message.
S903,向观察终端发送经完整性保护的征询响应消息。S903: Send an integrity-protected query response message to the observation terminal.
目标终端在对征询响应消息进行完整性保护后,将经完整性保护的征询响应消息发送给观察终端。After performing integrity protection on the inquiry response message, the target terminal sends the integrity-protected inquiry response message to the observation terminal.
观察终端接收到经完整性保护的征询响应消息后,观察终端需要对该征询响应消息进行完整性验证。具体地,观察终端可以根据DUIK验证征询响应消息,如果验证通过,观察终端可以根据测量信号以及反馈测量信号,计算观察终端与目标终端之间的距离。After the observation terminal receives the integrity-protected inquiry response message, the observation terminal needs to perform integrity verification on the inquiry response message. Specifically, the observation terminal can calculate the distance between the observation terminal and the target terminal based on the measurement signal and the feedback measurement signal if the verification is passed based on the DUIK verification inquiry response message.
在一些实施例中,若观察终端在预设时间段内未接收到目标终端发送的征询响应消息,则观察终端可以确定目标终端与该观察终端不匹配,则不会与目标终端进行通信。In some embodiments, if the observing terminal does not receive the inquiry response message sent by the target terminal within a preset time period, the observing terminal may determine that the target terminal does not match the observing terminal, and will not communicate with the target terminal.
根据本公开实施例的测距方法,观察终端向目标终端发送包括测量信号的征询消息,目标终端在与观察终端匹配的情况下向观察终端反馈包括反馈测量信号的征询响应消息且该征询响应消息为经过完整性保护的消息,观察终端可以根据测量信号与反馈测量信号计算与目标终端之间的距离。由此,两个终端之间的测距可以在发现过程中执行,从而能够减少网络资源消耗并节省终端的功耗,此外,由于征询响应消息为经完整性保护的消息,能够避免征询响应消息被篡改,从而提高了征询响应消息的安全性。According to the ranging method of the embodiment of the present disclosure, the observation terminal sends a query message including a measurement signal to the target terminal, and the target terminal feeds back a query response message including a feedback measurement signal to the observation terminal if it matches the observation terminal, and the query response message For integrity protected messages, the observing terminal can calculate the distance to the target terminal based on the measurement signal and the feedback measurement signal. Thus, ranging between two terminals can be performed during the discovery process, thereby reducing network resource consumption and saving terminal power consumption. In addition, since the query response message is an integrity-protected message, the query response message can be avoided. be tampered with, thereby improving the security of the query response message.
图10示出了根据本公开实施例的一种测距方法的流程示意图。如图10所示,该方法可以由观察终端执行,且包括以下步骤。Figure 10 shows a schematic flowchart of a ranging method according to an embodiment of the present disclosure. As shown in Figure 10, the method can be executed by an observation terminal and includes the following steps.
S1001,接收观察终端发送的经完整性保护的征询消息。S1001: Receive the integrity-protected query message sent by the observation terminal.
关于上述步骤S1001的描述和具体细节,可以参考上述步骤S801的相关描述与细节。For the description and specific details of the above step S1001, please refer to the relevant description and details of the above step S801.
S1002,验证经完整性保护的征询消息的完整性。S1002. Verify the integrity of the integrity-protected query message.
关于上述步骤S1002的描述和具体细节,可以参考上述步骤S802的相关描述与细节。For the description and specific details of the above step S1002, please refer to the relevant description and details of the above step S802.
S1003,如果成功验证经完整性保护的征询消息的完整性,在目标终端确定与观察终端匹配的情况下,对征询响应消息进行完整性保护。S1003: If the integrity of the integrity-protected query message is successfully verified, and if the target terminal determines that it matches the observing terminal, integrity protection is performed on the query response message.
关于上述步骤S1003的描述和具体细节,可以参考上述步骤S902的相关描述与细节。For the description and specific details of the above step S1003, please refer to the relevant description and details of the above step S902.
S1004,向观察终端发送经完整性保护的征询响应消息。S1004. Send an integrity-protected query response message to the observation terminal.
关于上述步骤S1004的描述和具体细节,可以参考上述步骤S903的相关描述与细节。For the description and specific details of the above step S1004, please refer to the relevant description and details of the above step S903.
根据本公开实施例的测距方法,观察终端在对征询消息进行完整性保护后向目标终端发送经完整性保护的征询消息,目标终端在与观察终端匹配的情况下向观察终端反馈经完整性保护的征询响应消息,观察终端可以根据征询消息中的测量信号与征询响应消息中的反馈测量信号计算与目标终端之间的距离。由此,两个终端之间的测距可以在发现过程中执行,从而能够减少网络资源消耗并节省终端的功耗,此外,由于征询消息和征询响应消息均为经完整性保护的消息,能够避免征询消息和征询响应消息被篡改,从而提高了征询消息和征询响应消息的安全性。According to the ranging method of the embodiment of the present disclosure, the observing terminal sends an integrity-protected query message to the target terminal after performing integrity protection on the query message. The target terminal feeds back the integrity-protected query message to the observing terminal if it matches the observing terminal. In the protected query response message, the observing terminal can calculate the distance to the target terminal based on the measurement signal in the query message and the feedback measurement signal in the query response message. As a result, ranging between two terminals can be performed during the discovery process, thereby reducing network resource consumption and saving terminal power consumption. In addition, since both the query message and the query response message are integrity-protected messages, it can This prevents the inquiry message and the inquiry response message from being tampered with, thereby improving the security of the inquiry message and the inquiry response message.
图11示出了根据本公开实施例的一种测距方法的流程示意图,如图11所示,该方法可以由目标终端执行,且包括以下步骤。Figure 11 shows a schematic flowchart of a ranging method according to an embodiment of the present disclosure. As shown in Figure 11, the method can be executed by a target terminal and includes the following steps.
S1101,向目标终端的HPLMN的DDNMF网元发送第二发现请求消息。S1101. Send a second discovery request message to the DDNMF network element of the target terminal's HPLMN.
其中,第二发现请求消息用于请求执行发现测量组合流程。The second discovery request message is used to request execution of the discovery measurement combination process.
DDNMF网元用于响应于第二发现请求消息向测距应用服务器发送第二发现测量组合流程验证请 求,测距应用服务器用于基于第二发现测量组合流程验证请求验证是否允许目标终端在发现过程中执行测距,在验证结果指示允许目标终端在发现过程中执行测距的情况下,DDNMF网元生成用于发现测量组合流程的参数信息。The DDNMF network element is configured to send a second discovery measurement combination process verification request to the ranging application server in response to the second discovery request message. The ranging application server is configured to verify whether the target terminal is allowed in the discovery process based on the second discovery measurement combination process verification request. When the verification result indicates that the target terminal is allowed to perform ranging during the discovery process, the DDNMF network element generates parameter information for the discovery measurement combination process.
在一些实施例中,第二发现请求消息包括发现测量组合流程指示,发现测量组合流程指示用于请求验证目标终端是否被允许在发现过程中执行测距。In some embodiments, the second discovery request message includes a discovery measurement combination process indication, and the discovery measurement combination process indication is used to request verification whether the target terminal is allowed to perform ranging during the discovery process.
也就是说,DDNMF网元可以自主地响应于第二发现请求消息向测距应用服务器发送第二发现测量组合流程验证请求,即响应于任意第二发现请求消息,DDNMF网元向测距应用服务器发送第二发现测量组合流程验证请求以验证目标终端是否被允许在发现过程中执行测距。That is to say, the DDNMF network element can autonomously send a second discovery measurement combination process verification request to the ranging application server in response to the second discovery request message. That is, in response to any second discovery request message, the DDNMF network element sends a second discovery measurement combination process verification request to the ranging application server. A second discovery measurement combination process verification request is sent to verify whether the target terminal is allowed to perform ranging during the discovery process.
或者,DDNMF网元根据第二发现请求消息中的发现测量组合流程指示向测距应用服务器发送第二发现测量组合流程验证请求,即仅响应于包括发现测量组合流程指示的第二发现请求消息,DDNMF网元向测距应用服务器发送第二发现测量组合流程验证请求以验证目标终端是否被允许在发现过程中执行测距。Alternatively, the DDNMF network element sends a second discovery and measurement combination process verification request to the ranging application server according to the discovery and measurement combination process indication in the second discovery request message, that is, only responds to the second discovery request message including the discovery and measurement combination process indication, The DDNMF network element sends a second discovery measurement combination process verification request to the ranging application server to verify whether the target terminal is allowed to perform ranging during the discovery process.
S1102,接收DDNMF网元在确定目标终端被允许在发现过程中执行测距的情况下反馈的发现响应消息。S1102: Receive the discovery response message fed back by the DDNMF network element when it is determined that the target terminal is allowed to perform ranging during the discovery process.
其中,发现响应消息中包括参数信息。The discovery response message includes parameter information.
DDNMF网元在基于验证结果目标终端被允许在发现过程中执行测距的情况下生成参数信息,并可以将包括参数信息的发现响应消息反馈给目标终端,从而目标终端能够获取到用于发现测量组合流程的参数信息。The DDNMF network element generates parameter information when the target terminal is allowed to perform ranging during the discovery process based on the verification results, and can feed back a discovery response message including parameter information to the target terminal, so that the target terminal can obtain the measurement information used for discovery. Parameter information of the combined process.
S1103,接收观察终端发送的征询消息。S1103. Receive the inquiry message sent by the observation terminal.
关于上述步骤S1103的描述和具体细节,可以参考上述步骤S701的相关描述与细节。For the description and specific details of the above step S1103, please refer to the relevant description and details of the above step S701.
S1104,在目标终端确定与观察终端匹配且目标终端被允许在发现过程中执行测距的情况下,向观察终端反馈征询响应消息。S1104: When the target terminal determines that it matches the observing terminal and the target terminal is allowed to perform ranging during the discovery process, feed back a query response message to the observing terminal.
其中,征询响应消息中包括反馈测量信号,测量信号和反馈测量信号用于确定观察终端和目标终端之间的距离。The query response message includes a feedback measurement signal, and the measurement signal and the feedback measurement signal are used to determine the distance between the observation terminal and the target terminal.
目标终端在接收到观察终端发送的包括测量信号的征询消息后,可以进行发现过程以确定目标终端是否与观察终端匹配,若目标终端与观察终端匹配,则可以向观察终端发送包括反馈测量信号的征询响应消息。After receiving the query message including the measurement signal sent by the observation terminal, the target terminal can perform a discovery process to determine whether the target terminal matches the observation terminal. If the target terminal matches the observation terminal, it can send a message including the feedback measurement signal to the observation terminal. Inquiry response message.
在一些实施例中,若目标终端与观察终端匹配但目标终端不被允许在发现过程中执行测距,则目标终端可以向观察终端发送不包括反馈测量信号的征询响应消息,以表示目标终端无法参与发现测量组合流程。In some embodiments, if the target terminal matches the observing terminal but the target terminal is not allowed to perform ranging during the discovery process, the target terminal may send a solicitation response message that does not include the feedback measurement signal to the observing terminal to indicate that the target terminal cannot Participate in the discovery measurement portfolio process.
在另一些实施例中,若目标终端与观察终端不匹配,则目标终端可以不向观察终端发送征询响应消息,这表示目标终端与观察终端之间不能进行通信。In other embodiments, if the target terminal does not match the observing terminal, the target terminal may not send a query response message to the observing terminal, which means that communication between the target terminal and the observing terminal is impossible.
观察终端在接收到包括反馈测量信号的征询响应消息后,可以根据测量信号以及反馈测量信号,计算观察终端与目标终端之间的距离。After receiving the inquiry response message including the feedback measurement signal, the observation terminal can calculate the distance between the observation terminal and the target terminal based on the measurement signal and the feedback measurement signal.
在一些实施例中,若观察终端接收到不包括反馈测量信号的征询响应消息,则观察终端需要在发现过程完成之后对目标终端执行测距。In some embodiments, if the observing terminal receives a solicitation response message that does not include a 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 observing terminal does not receive the query response message sent by the target terminal within a preset time period, the observing terminal may determine that the target terminal does not match the observing terminal, and will not communicate with the target terminal.
值得注意的是,本实施例是在图7所示实施例基础上描述的,即本实施例的步骤S1101-S1102与图7所示步骤S701-S703相结合,但应注意的是,本实施例的步骤S1101-S1102也可以与图8所示的S801-S803相结合、与图9所示的步骤S901-S903相结合、与图10所示的步骤S1001-S1004相结合,在此不再追诉。It is worth noting that this embodiment is described based on the embodiment shown in Figure 7, that is, steps S1101-S1102 of this embodiment are combined with steps S701-S703 shown in Figure 7. However, it should be noted that this implementation The steps S1101-S1102 of the example can also be combined with the steps S801-S803 shown in Figure 8, combined with the steps S901-S903 shown in Figure 9, combined with the steps S1001-S1004 shown in Figure 10, and will not be repeated here. Prosecution.
根据本公开实施例的测距方法,观察终端向目标终端发送包括测量信号的征询消息,目标终端在与观察终端匹配且目标终端被允许在发现过程中执行测距的情况下向观察终端反馈包括反馈测量信号的征询响应消息,观察终端可以根据测量信号与反馈测量信号计算与目标终端之间的距离。由此,两个终端之间的测距可以在发现过程中执行,从而能够减少网络资源消耗并节省终端的功耗。According to the ranging method of the embodiment of the present disclosure, the observing terminal sends a query message including a measurement signal to the target terminal, and the target terminal feeds back to the observing terminal including Feedback the query response message of the measurement signal, and the observation terminal can calculate the distance to the target terminal based on the measurement signal and the feedback measurement signal. Thus, ranging between two terminals can be performed during the discovery process, thereby reducing network resource consumption and saving terminal power consumption.
图12示出了根据本公开实施例的一种测距方法的流程示意图。如图12所示,该方法可以由观察终端和目标终端执行,且包括以下步骤。Figure 12 shows a schematic flowchart of a ranging method according to an embodiment of the present disclosure. As shown in Figure 12, the method can be executed by the observation terminal and the target terminal, and includes the following steps.
S1201,观察终端1分别向目标终端2、目标终端3、目标终端4和目标终端5发送征询消息,该征询消息中包括测量信号。在一些示例中,除了测量信号,征询消息还可以包括发现消息类型等。S1201. The observation terminal 1 sends a query message to the target terminal 2, the target terminal 3, the target terminal 4 and the target terminal 5 respectively. The query message includes the measurement signal. In some examples, in addition to measuring signals, the solicitation message may also include discovery message types and the like.
S1202,与观察终端1匹配的目标终端向观察终端1反馈征询响应消息,该征询响应消息包括反馈 测量信号以及接收到征询消息和反馈征询响应消息之间的时间差。在一些示例中,征询响应消息还可以包括发现消息类型等。S1202. The target terminal matching the observation terminal 1 feeds back a query response message to the observation terminal 1. The query response message includes the feedback measurement signal and the time difference between receiving the query message and the feedback query response message. In some examples, the solicitation response message may also include a discovery message type and the like.
在图12所示示例中,目标终端2和目标终端3与观察终端1匹配,则S1202包括S1202a和S1202b。In the example shown in Figure 12, target terminal 2 and target terminal 3 match the observation terminal 1, then S1202 includes S1202a and S1202b.
在S1202a中,目标终端2向观察终端1反馈包括反馈测量信号以及时间差ΔT 21的征询响应消息。 In S1202a, the target terminal 2 feeds back a query response message including the feedback measurement signal and the time difference ΔT 21 to the observation terminal 1 .
在S1202a中,目标终端3向观察终端1反馈包括反馈测量信号以及时间差ΔT 31的征询响应消息。 In S1202a, the target terminal 3 feeds back a query response message including the feedback measurement signal and the time difference ΔT 31 to the observation terminal 1 .
S1203,观察终端1根据接收到的征询响应消息计算发送征询消息和接收到征询响应消息之间的时间差,并基于计算所得时间差与征询响应消息中包含的时间差计算与反馈征询响应消息的目标终端之间的距离。S1203. The observation terminal 1 calculates the time difference between sending the inquiry message and receiving the inquiry response message based on the received inquiry response message, and calculates the time difference between the calculated time difference and the time difference contained in the inquiry response message and the target terminal that feeds back the inquiry response message. distance between.
在图12所示示例中,观察终端1计算发送征询消息和接收到目标终端2反馈的征询响应消息之间的时间差为ΔT 12,由此可以计算出观察终端1与目标终端2之间的距离为(ΔT 12-ΔT 21)x C/2;观察终端1计算发送征询消息和接收到目标终端3反馈的征询响应消息之间的时间差为ΔT 13,由此可以计算出观察终端1与目标终端3之间的距离为(ΔT 13–ΔT 31)x C/2。 In the example shown in Figure 12, the observation terminal 1 calculates the time difference between sending the inquiry message and receiving the inquiry response message fed back by the target terminal 2 as ΔT 12 , from which the distance between the observation terminal 1 and the target terminal 2 can be calculated is (ΔT 12 -ΔT 21 ) x C/2; the time difference between the observation terminal 1 and the reception of the inquiry response message fed back by the target terminal 3 is ΔT 13 , from which the observation terminal 1 and the target terminal can be calculated The distance between 3 is (ΔT 13 –ΔT 31 )x C/2.
图13示出了根据本公开实施例的一种测距验证方法的流程示意图。如图13所示,该方法可以由观察终端的HPLMN的DDNMF网元执行,且包括以下步骤。Figure 13 shows a schematic flowchart of a ranging verification method according to an embodiment of the present disclosure. As shown in Figure 13, this method can be executed by a DDNMF network element observing the HPLMN of the terminal, and includes the following steps.
S1301,接收观察终端发送的第一发现请求消息。S1301. Receive the first discovery request message sent by the observation terminal.
其中,第一发现请求消息用于请求执行发现测量组合流程并指示发送第一发现请求消息的终端为观察终端,即观察终端的HPLMN的DDNMF网元根据接收到的第一发现请求消息可以获知该第一发现请求消息来自观察终端。The first discovery request message is used to request execution of the discovery measurement combination process and indicates that the terminal sending the first discovery request message is an observing terminal. That is, the DDNMF network element of the HPLMN of the observing terminal can learn the HPLMN of the observing terminal based on the received first discovery request message. The first discovery request message comes from the observing terminal.
S1302,响应于第一发现请求消息,向测距应用服务器发送第一发现测量组合流程验证请求。S1302. In response to the first discovery request message, send a first discovery measurement combination process verification request to the ranging application server.
观察终端的HPLMN的DDNMF网元在接收到第一发现请求消息后,可以向测距应用服务器发送第一发现测量组合流程验证请求,从而测距应用服务器将基于该第一发现测量组合验证请求验证是否允许观察终端在发现过程中执行测距。After receiving the first discovery request message, the DDNMF network element of the HPLMN of the observing terminal can send a first discovery and measurement combination process verification request to the ranging application server, so that the ranging application server will verify based on the first discovery and measurement combination verification request. Whether the observing terminal is allowed to perform ranging during discovery.
在一些实施例中,该第一发现请求消息可以包括发现测量组合流程指示。发现测量组合流程指示用于请求验证观察终端是否被允许在发现过程中执行测距。In some embodiments, the first discovery request message may include a discovery measurement combination process indication. The discovery measurement combination process indication is used to request verification that the observing terminal is allowed to perform ranging during the discovery process.
也就是说,观察终端的HPLMN的DDNMF网元可以自主地响应于第一发现请求消息向测距应用服务器发送第一发现测量组合流程验证请求,即响应于任意第一发现请求消息,观察终端的HPLMN的DDNMF网元向测距应用服务器发送第一发现测量组合流程验证请求以验证观察终端是否被允许在发现过程中执行测距。That is to say, the DDNMF network element of the HPLMN of the observing terminal can autonomously send a first discovery measurement combination process verification request to the ranging application server in response to the first discovery request message, that is, in response to any first discovery request message, the observing terminal The DDNMF network element of the HPLMN sends a first discovery measurement combination process verification request to the ranging application server to verify whether the observing terminal is allowed to perform ranging during the discovery process.
或者,观察终端的HPLMN的DDNMF网元根据第一发现请求消息中的发现测量组合流程指示向测距应用服务器发送第一发现测量组合流程验证请求,即仅响应于包括发现测量组合流程指示的第一发现请求消息,观察终端的HPLMN的DDNMF网元向测距应用服务器发送第一发现测量组合流程验证请求以验证观察终端是否被允许在发现过程中执行测距。Alternatively, the DDNMF network element of the HPLMN of the observing terminal sends a first discovery and measurement combination process verification request to the ranging application server according to the discovery and measurement combination process indication in the first discovery request message, that is, only responds to the first discovery and measurement combination process indication including the discovery and measurement combination process indication. Upon receiving the discovery request message, the DDNMF network element of the HPLMN of the observing terminal sends a first discovery measurement combination process verification request to the ranging application server to verify whether the observing terminal is allowed to perform ranging during the discovery process.
S1303,从测距应用服务器接收验证结果,并在验证结果指示观察终端被允许在发现过程中执行测距的情况下,将第一发现请求消息转发至目标终端的HPLMN的DDNMF网元。S1303, receive the verification result from the ranging application server, and forward the first discovery request message to the DDNMF network element of the target terminal's HPLMN if the verification result indicates that the observing terminal is allowed to perform ranging during the discovery process.
观察终端的HPLMN的DDNMF网元从测距应用服务器接收验证结果,如果验证结果指示观察终端被允许在发现过程中执行测距,则观察终端的HPLMN的DDNMF网元将第一发现请求消息转发至目标终端的HPLMN的DDNMF网元。The DDNMF network element of the observing terminal's HPLMN receives the verification result from the ranging application server. If the verification result indicates that the observing terminal is allowed to perform ranging during the discovery process, the DDNMF network element of the observing terminal's HPLMN forwards the first discovery request message to The DDNMF network element of the target terminal's HPLMN.
S1304,接收目标终端的HPLMN的DDNMF网元在确定观察终端被允许在发现过程中对目标终端执行测距的情况下反馈的发现响应消息。S1304: Receive the discovery response message fed back by the DDNMF network element of the HPLMN of the target terminal when it is determined that the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
目标终端的HPLMN的DDNMF网元在接收到观察终端的HPLMN的DDNMF网元转发的第一发现请求消息后,将向测距应用服务器发送第三发现测量组合流程验证请求,从而测距应用服务器将基于第三发现测量组合流程验证请求验证是否允许观察终端在发现过程中对目标终端执行测距。在测距应用服务器反馈的验证结果指示观察终端被允许在发现过程中对目标终端执行测距的情况下,目标终端的HPLMN的DDNMF网元生成用于观察终端的发现测量组合流程的参数信息。目标终端的HPLMN的DDNMF网元将包括参数信息的发现响应消息反馈给观察终端的HPLMN的DDNMF网元。After receiving the first discovery request message forwarded by the DDNMF network element of the HPLMN of the observing terminal, the DDNMF network element of the HPLMN of the target terminal will send a third discovery measurement combination process verification request to the ranging application server, so that the ranging application server will The verification request verifies whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process based on the third discovery measurement combination process verification request. When the verification result fed back by the ranging application server indicates that the observing terminal is allowed to perform ranging on the target terminal during the discovery process, the DDNMF network element of the target terminal's HPLMN generates parameter information for the discovery measurement combination process of the observing terminal. The DDNMF network element of the HPLMN of the target terminal feeds back the discovery response message including the parameter information to the DDNMF network element of the HPLMN of the observing terminal.
在一些实施例中,观察终端的HPLMN的DDNMF网元转发的该第一发现请求消息可以包括另一发现测量组合流程指示。另一发现测量组合流程指示用于请求验证观察终端是否被允许在发现过程中对目标终端执行测距。In some embodiments, the first discovery request message forwarded by the DDNMF network element of the HPLMN of the observing terminal may include another discovery measurement combination process indication. Another discovery measurement combination process indication is used to request verification whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
也就是说,目标终端的HPLMN的DDNMF网元可以自主地响应于第一发现请求消息向测距应用服务器发送第三发现测量组合流程验证请求,即响应于任意第一发现请求消息,目标终端的HPLMN的DDNMF网元向测距应用服务器发送第三发现测量组合流程验证请求以验证观察终端是否被允许在发 现过程中对目标终端执行测距。That is to say, the DDNMF network element of the target terminal's HPLMN can autonomously send a third discovery measurement combination process verification request to the ranging application server in response to the first discovery request message, that is, in response to any first discovery request message, the target terminal's The DDNMF network element of the HPLMN sends a third discovery measurement combination process verification request to the ranging application server to verify whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
或者,目标终端的HPLMN的DDNMF网元根据第一发现请求消息中的另一发现测量组合流程指示向测距应用服务器发送第三发现测量组合流程验证请求,即仅响应于包括另一发现测量组合流程指示的第一发现请求消息,目标终端的HPLMN的DDNMF网元向测距应用服务器发送第三发现测量组合流程验证请求以验证观察终端是否被允许在发现过程中对目标终端执行测距。Alternatively, the DDNMF network element of the HPLMN of the target terminal sends a third discovery measurement combination process verification request to the ranging application server according to another discovery measurement combination process instruction in the first discovery request message, that is, it only responds to the request including another discovery measurement combination. In the first discovery request message indicated by the process, the DDNMF network element of the HPLMN of the target terminal sends a third discovery measurement combination process verification request to the ranging application server to verify whether the observing terminal is allowed to perform ranging on the target terminal during 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 security parameters used to protect the integrity of the query message, so that the observing terminal can protect the integrity of the query message based on the security parameters and then send it to the target terminal. For another example, the parameter information includes security parameters used for integrity verification of the query response message, so that after receiving the integrity-protected query response message, the observing terminal can perform integrity verification of the query response message based on the security parameters.
S1305,将发现响应消息发送给观察终端。S1305: Send the discovery response message to the observation terminal.
根据本实施例的测距验证方法,网络设备能够对观察终端进行验证以确定观察终端是否被允许在发现过程中对目标终端执行测距。According to the ranging verification method of this embodiment, the network device can verify the observing terminal to determine whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
图14示出了根据本公开实施例的一种测距验证方法的流程示意图。如图14所示,该方法可以由目标终端的HPLMN的DDNMF网元执行,且包括以下步骤。Figure 14 shows a schematic flowchart of a ranging verification method according to an embodiment of the present disclosure. As shown in Figure 14, this method can be executed by the DDNMF network element of the HPLMN of the target terminal, and includes the following steps.
S1401,接收目标终端发送的第二发现请求消息。S1401. Receive the second discovery request message sent by the target terminal.
其中,第二发现请求消息用于请求执行发现测量组合流程并指示发送第二发现请求消息的终端为目标终端,即目标终端的HPLMN的DDNMF网元根据接收到的第二发现请求消息可以获知该第二发现请求消息来自目标终端。The second discovery request message is used to request execution of the discovery measurement combination process and indicates that the terminal sending the second discovery request message is the target terminal. That is, the DDNMF network element of the HPLMN of the target terminal can learn the target terminal based on the received second discovery request message. The second discovery request message comes from the target terminal.
S1402,响应于第二发现请求消息,向测距应用服务器发送第二发现测量组合流程验证请求。S1402. In response to the second discovery request message, send a second discovery measurement combination process verification request to the ranging application server.
目标终端的HPLMN的DDNMF网元在接收到第二发现请求消息后,可以向测距应用服务器发送第二发现测量组合流程验证请求,从而测距应用服务器将基于该第二发现测量组合验证请求验证是否允许目标终端在发现过程中执行测距。After receiving the second discovery request message, the DDNMF network element of the HPLMN of the target terminal can send a second discovery and measurement combination process verification request to the ranging application server, so that the ranging application server will verify based on the second discovery and measurement combination verification request. Whether to allow the target terminal to perform ranging during discovery.
在一些实施例中,该第二发现请求消息可以包括发现测量组合流程指示。发现测量组合流程指示用于请求验证目标终端是否被允许在发现过程中执行测距。In some embodiments, the second discovery request message may include a discovery measurement combination process indication. The discovery measurement combination process indication is used to request verification whether the target terminal is allowed to perform ranging during the discovery process.
也就是说,目标终端的HPLMN的DDNMF网元可以自主地响应于第二发现请求消息向测距应用服务器发送第二发现测量组合流程验证请求,即响应于任意第二发现请求消息,目标终端的HPLMN的DDNMF网元向测距应用服务器发送第二发现测量组合流程验证请求以验证目标终端是否被允许在发现过程中执行测距。That is to say, the DDNMF network element of the target terminal's HPLMN can autonomously send a second discovery measurement combination process verification request to the ranging application server in response to the second discovery request message, that is, in response to any second discovery request message, the target terminal's The DDNMF network element of the HPLMN sends a second discovery measurement combination process verification request to the ranging application server to verify whether the target terminal is allowed to perform ranging during the discovery process.
或者,目标终端的HPLMN的DDNMF网元根据第二发现请求消息中的发现测量组合流程指示向测距应用服务器发送第二发现测量组合流程验证请求,即仅响应于包括发现测量组合流程指示的第二发现请求消息,目标终端的HPLMN的DDNMF网元向测距应用服务器发送第二发现测量组合流程验证请求以验证目标终端是否被允许在发现过程中执行测距。Alternatively, the DDNMF network element of the target terminal's HPLMN sends a second discovery and measurement combination process verification request to the ranging application server according to the discovery and measurement combination process indication in the second discovery request message, that is, only responds to the first discovery and measurement combination process indication that includes the discovery and measurement combination process indication. In the second discovery request message, the DDNMF network element of the HPLMN of the target terminal sends a second discovery measurement combination process verification request to the ranging application server to verify whether the target terminal is allowed to perform ranging during the discovery process.
S1403,从测距应用服务器接收指示目标终端是否被允许在发现过程中执行测距的验证结果。S1403. Receive a verification result indicating whether the target terminal is allowed to perform ranging during the discovery process from the ranging application server.
S1404,在验证结果指示目标终端被允许在发现过程中执行测距的情况下,生成用于目标终端的发现测量组合流程的第二参数信息。S1404: If the verification result indicates that the target terminal is allowed to perform ranging during the discovery process, generate second parameter information for the discovery measurement combination process of the target terminal.
在测距应用服务器反馈的验证结果指示目标终端被允许在发现过程中执行测距的情况下,目标终端的HPLMN的DDNMF网元生成第二参数信息。When the verification result fed back by the ranging application server indicates that the target terminal is allowed to perform ranging during the discovery process, the DDNMF network element of the target terminal's HPLMN 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 security parameters used to protect the integrity of the query response message, so that the target terminal can perform integrity protection on the query response message based on the security parameters and then send it to the observation terminal. For another example, the second parameter information includes security parameters used for integrity verification of the query message, so that the target terminal can perform integrity verification of the query information based on the security parameters after receiving the integrity-protected query message.
S1405,将包括第二参数信息的第二发现响应消息发送给目标终端。S1405: Send the second discovery response message including the second parameter information to the target terminal.
目标终端的HPLMN的DDNMF网元将包括第二参数信息的第二发现响应消息反馈给目标终端。The DDNMF network element of the HPLMN of the target terminal feeds back the second discovery response message including the second parameter information to the target terminal.
根据本实施例的测距验证方法,网络设备能够对目标终端进行验证以确定目标终端是否被允许在发现过程中执行测距。According to the ranging verification method of this embodiment, the network device can verify the target terminal to determine whether the target terminal is allowed to perform ranging during the discovery process.
图15示出了根据本公开实施例的一种测距验证方法的流程示意图。如图15所示,该方法可以由目标终端的HPLMN的DDNMF网元执行,且包括以下步骤。Figure 15 shows a schematic flowchart of a ranging verification method according to an embodiment of the present disclosure. As shown in Figure 15, this method can be executed by the DDNMF network element of the target terminal's HPLMN, and includes the following steps.
S1501,接收目标终端发送的第二发现请求消息。S1501. Receive the second discovery request message sent by the target terminal.
S1502,响应于第二发现请求消息,向测距应用服务器发送第二发现测量组合流程验证请求。S1502. In response to the second discovery request message, send a second discovery measurement combination process verification request to the ranging application server.
S1503,从测距应用服务器接收指示目标终端是否被允许在发现过程中执行测距的验证结果。S1503. Receive a verification result indicating whether the target terminal is allowed to perform ranging during the discovery process from the ranging application server.
S1504,在验证结果指示目标终端被允许在发现过程中执行测距的情况下,生成用于目标终端的发现测量组合流程的第二参数信息。S1504: If the verification result indicates that the target terminal is allowed to perform ranging during the discovery process, generate second parameter information for the discovery measurement combination process of the target terminal.
S1505,将包括第二参数信息的第二发现响应消息发送给目标终端。S1505: Send the second discovery response message including the second parameter information to the target terminal.
关于上述步骤S1501-S1505的描述和具体细节,可以参考上述步骤S1401-S1405的相关描述与细节。For the description and specific details of the above steps S1501-S1505, please refer to the relevant description and details of the above steps S1401-S1405.
S1506,接收观察终端的HPLMN的DDNMF网元转发的第一发现请求消息。S1506: Receive the first discovery request message forwarded by the DDNMF network element of the HPLMN of the observing terminal.
其中,第一发现请求消息用于请求执行发现测量组合流程并指示发送第一发现请求消息的终端为观察终端,即目标终端的HPLMN的DDNMF网元根据接收到的第一发现请求消息可以获知该第一发现请求消息来自观察终端。The first discovery request message is used to request execution of the discovery measurement combination process and indicates that the terminal sending the first discovery request message is an observing terminal, that is, the DDNMF network element of the HPLMN of the target terminal can learn the target terminal based on the received first discovery request message. The first discovery request message comes from the observing terminal.
该第一发现请求消息是观察终端经验证为被允许在发现过程中执行测距的情况下,由观察终端的HPLMN的DDNMF网元转发给目标终端的HPLMN的DDNMF网元。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 target terminal's HPLMN when the observing terminal is verified to be allowed to perform ranging during the discovery process.
S1507,响应于第一发现请求消息,向测距应用服务器发送第三发现测量组合流程验证请求。S1507. In response to the first discovery request message, send a third discovery measurement combination process verification request to the ranging application server.
目标终端的HPLMN的DDNMF网元在接收到第一发现请求消息后,可以向测距应用服务器发送第三发现测量组合流程验证请求,从而测距应用服务器将基于该第三发现测量组合验证请求验证是否允许观察终端在发现过程中对目标终端执行测距以得到第一验证结果。After receiving the first discovery request message, the DDNMF network element of the HPLMN of the target terminal can send a third discovery measurement combination process verification request to the ranging application server, so that the ranging application server will verify the request based on the third discovery measurement combination verification Whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process to obtain the first verification result.
在一些实施例中,该第一发现请求消息可以包括发现测量组合流程指示。发现测量组合流程指示用于请求验证观察终端是否被允许在发现过程中对目标终端执行测距。In some embodiments, the first discovery request message may include a discovery measurement combination process indication. The discovery measurement combination process indication is used to request verification whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
也就是说,目标终端的HPLMN的DDNMF网元可以自主地响应于第一发现请求消息向测距应用服务器发送第三发现测量组合流程验证请求,即响应于任意第一发现请求消息,目标终端的HPLMN的DDNMF网元向测距应用服务器发送第三发现测量组合流程验证请求以验证观察终端是否被允许在发现过程中对目标终端执行测距。That is to say, the DDNMF network element of the target terminal's HPLMN can autonomously send a third discovery measurement combination process verification request to the ranging application server in response to the first discovery request message, that is, in response to any first discovery request message, the target terminal's The DDNMF network element of the HPLMN sends a third discovery measurement combination process verification request to the ranging application server to verify whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
或者,目标终端的HPLMN的DDNMF网元根据第一发现请求消息中的发现测量组合流程指示向测距应用服务器发送第三发现测量组合流程验证请求,即仅响应于包括发现测量组合流程指示的第一发现请求消息,目标终端的HPLMN的DDNMF网元向测距应用服务器发送第三发现测量组合流程验证请求以验证观察终端是否被允许在发现过程中对目标终端执行测距。Alternatively, the DDNMF network element of the HPLMN of the target terminal sends a third discovery and measurement combination process verification request to the ranging application server according to the discovery and measurement combination process indication in the first discovery request message, that is, only responds to the third discovery and measurement combination process indication including the discovery and measurement combination process indication. Upon receiving the discovery request message, the DDNMF network element of the HPLMN of the target terminal sends a third discovery measurement combination process verification request to the ranging application server to verify whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
S1508,从测距应用服务器接收指示观察终端是否被允许在发现过程中对目标终端执行测距的验证结果。S1508: Receive a verification result from the ranging application server indicating whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
S1509,在验证结果指示观察终端被允许在发现过程中对目标终端执行测距的情况下,生成用于观察标终端的发现测量组合流程的第一参数信息。S1509: If the verification result indicates that the observing terminal is allowed to perform ranging on the target terminal during the discovery process, generate first parameter information for the discovery measurement combination process of the observing target terminal.
目标终端的HPLMN的DDNMF网元在测距应用服务器反馈的验证结果指示观察终端被允许在发现过程中对目标终端执行测距的情况下,生成第一参数信息。The DDNMF network element of the HPLMN of the target terminal generates the first parameter information when the verification result fed back by the ranging application server indicates that the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
在一些实施例中,该第一参数信息还可以包括用于对指定信息进行完整性保护和/或验证的安全参数。例如,该第一参数信息包括用于对征询消息进行完整性保护的安全参数,以便观察终端可以基于该安全参数对征询信息进行完整性保护后发送给目标终端。又例如,该第一参数信息包括用于对征询响应消息进行完整性验证的安全参数,以便观察终端在接收到经完整性保护的征询响应消息后可以基于该安全参数对征询响应信息进行完整性验证。In some embodiments, the first parameter information may also include security parameters used for integrity protection and/or verification of the specified information. For example, the first parameter information includes security parameters used to protect the integrity of the query message, so that the observing terminal can protect the integrity of the query message based on the security parameters and then send it to the target terminal. For another example, the first parameter information includes security parameters used to perform integrity verification on the query response message, so that after receiving the integrity-protected query response message, the observation terminal can perform integrity verification on the query response message based on the security parameters. verify.
S1510,将包括第一参数信息的第一发现响应消息发送给观察终端的HPLMN的DDNMF网元。S1510: Send the first discovery response message including the first parameter information to the DDNMF network element of the HPLMN of the observing terminal.
目标终端的HPLMN的DDNMF网元将包括第一参数信息的第一发现响应消息反馈给观察终端的HPLMN的DDNMF网元,而观察终端的HPLMN的DDNMF网元可以将该第一发现响应消息反馈给观察终端。The DDNMF network element of the HPLMN of the target terminal feeds back the 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 can feed back the first discovery response message to Observation terminal.
根据本实施例的测距验证方法,网络设备能够对目标终端进行验证以确定目标终端是否被允许在发现过程中执行测距,以及对观察终端进行验证以确定观察终端是否被允许在发现过程中对该目标终端执行测距。According to the ranging verification method of this embodiment, the network device can verify the target terminal to determine whether the target terminal is allowed to perform ranging during the discovery process, and verify the observing terminal to determine whether the observing terminal is allowed to perform ranging during the discovery process. Perform ranging on the target terminal.
图16示出了根据本公开实施例的一种测距验证方法的流程示意图。如图16所示,该方法用于对观察终端进行验证,该方法可以包括以下步骤。Figure 16 shows a schematic flowchart of a ranging verification method according to an embodiment of the present disclosure. As shown in Figure 16, this method is used to verify the observation terminal, and the method may include the following steps.
S1601,接收观察终端的HPLMN的DDNMF网元发送的第一发现测量组合流程验证请求。S1601: Receive the first discovery measurement combination process verification request sent by the DDNMF network element of the HPLMN of the observing terminal.
其中,第一发现测量组合流程验证请求用于请求验证是否允许观察终端在发现过程中执行测距。The first discovery measurement combination process verification request is used to request verification whether the observation terminal is allowed to perform ranging during the discovery process.
该第一发现测量组合流程验证请求是观察终端的HPLMN的DDNMF网元基于从观察终端接收到的第一发现请求消息而发送的。The first discovery measurement combination process verification request is sent by the DDNMF network element of the HPLMN of the observing terminal based on the first discovery request message received from the observing terminal.
S1602,验证是否允许观察终端在发现过程中执行测距以得到中间验证结果。S1602. Verify whether the observation terminal is allowed to perform ranging during the discovery process to obtain intermediate verification results.
测距应用服务器响应于该第一发现测量组合验证请求验证是否允许观察终端在发现过程中执行测距。The ranging application server verifies whether the observing terminal is allowed to perform ranging during the discovery process in response to the first discovery measurement combination verification request.
S1603,将中间验证结果反馈给观察终端的HPLMN的DDNMF网元。S1603: Feed back the intermediate verification results to the DDNMF network element of the HPLMN of the observing terminal.
S1604,接收目标终端的HPLMN的DDNMF网元发送的第三发现测量组合流程验证请求。S1604: Receive the third discovery measurement combination process verification request sent by the DDNMF network element of the HPLMN of the target terminal.
其中,第三发现测量组合流程验证请求用于请求验证是否允许观察终端在发现过程中对目标终端执行测距。Among them, the third discovery measurement combination process verification request is used to request verification whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
该第三发现测量组合流程验证请求是目标终端的HPLMN的DDNMF网元基于从观察终端的HPLMN的DDNMF网元接收到的第一发现请求消息而发送的。该第一发现请求消息是观察终端经验证为被允许在发现过程中执行测距(即中间验证结果指示观察终端被允许在发现过程中执行测距)的情况下,由观察终端的HPLMN的DDNMF网元转发给目标终端的HPLMN的DDNMF网元。The third discovery measurement combination process 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 observing terminal. The first discovery request message is the DDNMF of the HPLMN of the observing terminal when the observing terminal is verified to be allowed to perform ranging during the discovery process (i.e., the intermediate verification result indicates that the observing terminal is permitted to perform ranging during the discovery process). The network element forwards the DDNMF network element of HPLMN to the target terminal.
S1605,验证是否允许观察终端在发现过程中对目标终端执行测距以得到第一验证结果。S1605: Verify whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process to obtain the first verification result.
测距应用服务器响应于该第三发现测量组合验证请求验证是否允许观察终端在发现过程中对目标终端执行测距。如果目标终端未被验证为允许在发现过程中执行测距,则测距应用服务器所得出的第一验证结果是不允许观察终端在发现过程中对目标终端执行测距。如果目标终端已被验证为允许在发现过程中执行测距,则测距应用服务器所得出的第一验证结果可以是允许观察终端在发现过程中对目标终端执行测距。The ranging application server verifies whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process in response to the third discovery measurement combination verification request. If the target terminal is not verified to be allowed to perform ranging during the discovery process, the first verification result obtained by the ranging application server is that the observing terminal is not allowed to perform ranging on the target terminal during the discovery process. If the target terminal has been verified to be allowed to perform ranging during the discovery process, the first verification result obtained by the ranging application server may be that the observing terminal is allowed to perform ranging on the target terminal during the discovery process.
S1606,将第一验证结果反馈给目标终端的HPLMN的DDNMF网元。S1606: Feed back the first verification result to the DDNMF network element of the HPLMN of the target terminal.
目标终端的HPLMN的DDNMF网元在测距应用服务器反馈的第一验证结果指示观察终端被允许在发现过程中对目标终端执行测距的情况下生成第一参数信息,并将将包括第一参数信息第一发现响应消息发送给观察终端的HPLMN的DDNMF网元,而观察终端的HPLMN的DDNMF网元可以将该第一发现响应消息反馈给观察终端。The DDNMF network element of the HPLMN of the target terminal generates the first parameter information and will include the first parameter 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 during the discovery process. The information first discovery response message is sent to the DDNMF network element of the HPLMN of the observing terminal, and the DDNMF network element of the HPLMN of the observing terminal can 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 security parameters used to protect the integrity of the query message, so that the observing terminal can protect the integrity of the query message based on the security parameters and then send it to the target terminal. For another example, the first parameter information includes security parameters used to perform integrity verification on the query response message, so that after receiving the integrity-protected query response message, the observation terminal can perform integrity verification on the query response message based on the security parameters. verify.
根据本实施例的测距验证方法,网络设备能够对观察终端进行验证以确定观察终端是否被允许在发现过程中执行测距以及是否被允许在发现过程中对特定目标终端执行测距。According to the ranging verification method of this embodiment, the network device can verify the observing terminal to determine whether the observing terminal is allowed to perform ranging during the discovery process and whether it is allowed to perform ranging on a specific target terminal during the discovery process.
图17示出了根据本公开实施例的一种测距验证方法的流程示意图。如图17所示,该方法用于对目标终端进行验证,该方法可以包括以下步骤。Figure 17 shows a schematic flowchart of a ranging verification method according to an embodiment of the present disclosure. As shown in Figure 17, this method is used to verify the target terminal, and the method may include the following steps.
S1701,接收目标终端的HPLMN的DDNMF网元发送的第二发现测量组合流程验证请求。S1701: Receive the second discovery measurement combination process verification request sent by the DDNMF network element of the HPLMN of the target terminal.
其中,第二发现测量组合流程验证请求用于请求验证是否允许目标终端在发现过程中执行测距。The second discovery measurement combination process verification request is used to request verification whether the target terminal is allowed to perform ranging during the discovery process.
该第二发现测量组合流程验证请求是目标终端的HPLMN的DDNMF网元基于从目标终端接收到的第二发现请求消息而发送的。The second discovery measurement combination process verification request is sent by the DDNMF network element of the HPLMN of the target terminal based on the second discovery request message received from the target terminal.
S1702,验证是否允许目标终端在发现过程中执行测距以得到第二验证结果。S1702: Verify whether the target terminal is allowed to perform ranging during the discovery process to obtain the second verification result.
测距应用服务器响应于该第二发现测量组合验证请求验证是否允许目标终端在发现过程中执行测距。The ranging application server verifies whether the target terminal is allowed to perform ranging during the discovery process in response to the second discovery measurement combination verification request.
S1703,将第二验证结果反馈给目标终端的HPLMN的DDNMF网元。S1703: Feed back the second verification result to the DDNMF network element of the HPLMN of the target terminal.
目标终端的HPLMN的DDNMF网元在测距应用服务器反馈的第二验证结果指示目标终端被允许在发现过程中执行测距的情况下生成第二参数信息,并将将包括第二参数信息的第二发现响应消息发送给目标终端。The DDNMF network element of the HPLMN of the target terminal generates the second parameter information when the second verification result fed back by the ranging application server indicates that the target terminal is allowed to perform ranging during the discovery process, and will include the second parameter information. 2. The discovery response message is sent to the target terminal.
在一些实施例中,该第二参数信息还可以包括用于对指定信息进行完整性保护和/或验证的安全参数。例如,该第二参数信息包括用于对征询响应消息进行完整性保护的安全参数,以便目标终端可以基于该安全参数对征询响应信息进行完整性保护后发送给观察终端。又例如,该第二参数信息包括用于对征询消息进行完整性验证的安全参数,以便目标终端在接收到经完整性保护的征询消息后可以基于该安全参数对征询信息进行完整性验证。In some embodiments, the second parameter information may also include security parameters for integrity protection and/or verification of the specified information. For example, the second parameter information includes security parameters used to protect the integrity of the query response message, so that the target terminal can perform integrity protection on the query response message based on the security parameters and then send it to the observation terminal. For another example, the second parameter information includes security parameters used for integrity verification of the query message, so that the target terminal can perform integrity verification of the query information based on the security parameters after receiving the integrity-protected query message.
根据本实施例的测距验证方法,网络设备能够对观察终端进行验证以确定观察终端是否被允许在发现过程中执行测距以及是否被允许在发现过程中对特定目标终端执行测距,并能够对目标终端进行验证以确定目标终端是否被允许在发现过程中执行测距。According to the ranging verification method of this embodiment, the network device can verify the observing terminal to determine whether the observing terminal is allowed to perform ranging during the discovery process and whether it is allowed to perform ranging on a specific target terminal during the discovery process, and can The target terminal is authenticated to determine whether the target terminal is allowed to perform ranging during the discovery process.
图18示出了根据本公开实施例的一种发现测量组合流程的流程示意图。如图18所示,该流程可以由观察终端、目标终端、观察终端的HPLMN的DDNMF网元、目标终端的HPLMN的DDNMF网元、VPLMN的DDNMF网元以及测距应用服务器执行,且包括以下步骤。Figure 18 shows a schematic flowchart of a discovery measurement combination process according to an embodiment of the present disclosure. As shown in Figure 18, this process can be executed by the observing terminal, the target terminal, the DDNMF network element of the HPLMN of the observing 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,目标终端向目标终端的HPLMN的DDNMF网元发送第二发现请求消息,以获得发现查询滤波器监控查询及安全保护参数。该第二发现请求消息可用包括用于指示目标终端请求发现测量组合流程的指示符。S1801: The target terminal sends a second discovery request message to the DDNMF network element of the HPLMN of the target terminal to obtain the discovery query filter monitoring query and security protection parameters. The second discovery request message may include an indicator for instructing the target terminal to request a discovery measurement combination procedure.
S1802,目标终端的HPLMN的DDNMF网元基于指示符或本地配置向测距应用服务器请求执行发现测量组合流程验证,测距应用服务器验证是否允许目标终端在发现过程中执行测距并反馈验证结果。目标终端的HPLMN的DDNMF网元基于验证结果生成用于目标终端的发现测量组合流程的参数信息。S1802. The DDNMF network element of the HPLMN of the target terminal requests the ranging application server to perform discovery measurement combination process verification based on the indicator or local configuration. The ranging application server verifies whether the target terminal is allowed to perform ranging during the discovery process and feeds back the verification results. The DDNMF network element of the HPLMN of the target terminal generates parameter information for the discovery and measurement combination process of the target terminal based on the verification results.
S1803,目标终端的HPLMN的DDNMF网元和VPLMN的DDNMF网元交换验证消息。若目标终端未在漫游,则此步骤可省略。S1803. The DDNMF network element of the HPLMN of the target terminal and the DDNMF network element of the VPLMN exchange verification messages. If the target terminal is not roaming, this step can be omitted.
S1804,目标终端的HPLMN的DDNMF网元向目标终端返回发现响应消息,包括如下参数信息:包括与每个发现滤波器对应的安全保护参数(诸如发送安全参数和接收安全参数)以及当前时间、最大偏移量等参数。其中,发送安全参数向目标终端提供必要信息以保护指定消息的传输,接收安全参数向目标终端提供必要信息以消除观察终端对指定消息进行的保护。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 corresponding to each discovery filter (such as sending security parameters and receiving security parameters), as well as the current time, maximum Offset and other parameters. Among them, sending security parameters provides necessary information to the target terminal to protect the transmission of the specified message, and receiving security parameters provides necessary information to the target terminal to eliminate the protection of the specified message by the observing terminal.
S1805,观察终端向观察终端的HPLMN的DDNMF网元发送第一发现请求消息,以允许发现一个或多个目标终端。该第一发现请求消息可用包括用于指示观察终端请求发现测量组合流程的指示符。S1805: The observing terminal sends a first discovery request message to the DDNMF network element of the observing terminal's HPLMN to allow discovery of one or more target terminals. The first discovery request message may include an indicator for instructing the observing terminal to request a discovery measurement combination procedure.
S1806,观察终端的HPLMN的DDNMF网元基于指示符或本地配置向测距应用服务器请求执行发现测量组合流程验证,测距应用服务器验证是否允许观察终端在发现过程中执行测距并反馈验证结果。S1806. The DDNMF network element of the HPLMN of the observing terminal requests the ranging application server to perform discovery measurement combination process verification based on the indicator or local configuration. The ranging application server verifies whether the observing terminal is allowed to perform ranging during the discovery process and feeds back the verification results.
S1807,若观察终端发送的第一发现请求消息得到验证,观察终端的HPLMN的DDNMF网元向目标终端的HPLMN的DDNMF网元转发第一发现请求消息。S1807: If the first discovery request message sent by the observing terminal is verified, the DDNMF network element of the HPLMN of the observing terminal forwards the first discovery request message to the DDNMF network element of the HPLMN of the target terminal.
S1808,目标终端的HPLMN的DDNMF网元向测距应用服务器请求执行发现测量组合流程验证,测距应用服务器验证是否允许观察终端在发现过程中对目标终端执行测距并反馈验证结果。目标终端的HPLMN的DDNMF网元基于验证结果生成用于观察终端的发现测量组合流程的参数信息。S1808. The DDNMF network element of the HPLMN of the target terminal requests the ranging application server to perform discovery measurement combination process verification. The ranging application server verifies whether the observing terminal is allowed to perform ranging on the target terminal during the discovery process and feeds back the verification results. The DDNMF network element of the HPLMN of the target terminal generates parameter information for the discovery and measurement combination process of the observation terminal based on the verification results.
S1809,目标终端的HPLMN的DDNMF网元向观察终端的HPLMN的DDNMF网元返回发现响应消息,包括如下参数信息:发送安全参数、接收安全参数,诸如DUIK。其中,接收安全参数向观察终端提供必要信息以消除目标终端对指定消息进行的保护。。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 observing terminal, including the following parameter information: sending security parameters and receiving security parameters, such as DUIK. Among them, receiving security parameters provides necessary information to the observing terminal to eliminate the protection of the specified message by the target terminal. .
S1810,观察终端的HPLMN的DDNMF网元和VPLMN的DDNMF网元交换验证消息。若观察终端未在漫游,则此步骤可省略。S1810: The DDNMF network element of the HPLMN of the observation terminal and the DDNMF network element of the VPLMN exchange verification messages. If the observing terminal is not roaming, this step can be omitted.
S1811,观察终端的HPLMN的DDNMF网元向观察终端返回包括发送安全参数、接收安全参数等参数的发现响应消息。S1811. The DDNMF network element of the HPLMN of the observing terminal returns a discovery response message including sending security parameters, receiving security parameters and other parameters to the observing terminal.
S1812,观察终端向目标终端发送包括测量信号的征询消息并监听征询响应消息。在发送征询消息之前,通过将使用DUIK计算的MIC附加至征询消息的末尾,对征询消息进行完整性保护。S1812: The observing terminal sends a query message including the measurement signal to the target terminal and monitors the query response message. Before sending the solicitation message, the solicitation message is integrity protected by appending the MIC calculated using DUIK to the end of the solicitation message.
S1813,目标终端监听满足其发现滤波器的征询消息。为了找到匹配的消息,目标终端使用包含在目标终端所接收到的接收安全参数中的DUIK对接收到的征询消息进行完整性验证。S1813. The target terminal listens for query messages that satisfy its discovery filter. In order to find a matching message, the target terminal performs integrity verification on the received solicitation message using the DUIK contained in the receive security parameters received by the target terminal.
S1814,若成功验证完整性,目标终端返回经完整性保护的征询响应消息,其包括反馈测量信号以及接收到征询消息和反馈征询响应消息之间的时间差。通过将使用DUIK计算的MIC附加至征询响应消息的末尾,对征询响应消息进行完整性保护。S1814, if the integrity is successfully verified, the target terminal returns an integrity-protected inquiry response message, which includes the feedback measurement signal and the time difference between receiving the inquiry message and the feedback inquiry response message. The solicitation response message is integrity protected by appending the MIC calculated using DUIK to the end of the solicitation response message.
S1815,观察终端监听满足其发现滤波器的征询响应消息。为了找到匹配的消息,目标终端使用包含在观察终端所接收到的接收安全参数中的DUIK对接收到的征询响应消息进行完整性验证。在成功验证后,观察终端可以计算与目标终端之间的距离。S1815: The observation terminal monitors the inquiry response message that satisfies its discovery filter. In order to find a matching message, the target terminal performs integrity verification on the received solicitation response message using the DUIK contained in the receive security parameters received by the observing terminal. After successful verification, the observing terminal can calculate the distance to the target terminal.
S1816,观察终端在接收到征询响应消息后,还可以向观察终端的HPLMN的DDNMF网元上报匹配报告,该匹配包括中可以包括当前时间、MIC等信息。S1816: After receiving the inquiry response message, the observing terminal can also report a matching report to the DDNMF network element of the HPLMN of the observing terminal. The matching report can include the current time, MIC and other information.
S1817,观察终端的HPLMN的DDNMF网元在接收到匹配报告后,可选地,可以向测距应用服务器请求再次验证。S1817: After receiving the matching report, the DDNMF network element of the HPLMN of the observing terminal may optionally request re-verification from the ranging application server.
S1818,在成功检查MIC后,观察终端的HPLMN的DDNMF网元可以向观察终端返回匹配报告确认信息,该匹配报告确认信息中可以包括匹配报告刷新时间。S1818: After successfully checking the MIC, the DDNMF network element of the HPLMN of the observing terminal can return matching report confirmation information to the observing terminal, and the matching report confirmation information can include the matching report refresh time.
S1819,可选地,观察终端的HPLMN的DDNMF网元还可以向目标终端的HPLMN的DDNMF网元发送检测报告。S1819. Optionally, the DDNMF network element of the HPLMN of the observing terminal can also send a detection report to the DDNMF network element of the HPLMN of the target terminal.
上述S1816-S1819是可选的,仅在需要对MIC进行检查的时候执行。The above S1816-S1819 are optional and are only executed when the MIC needs to be checked.
上述本申请提供的实施例中,分别从网络设备、用户设备的角度对本申请实施例提供的方法进行了 介绍。为了实现上述本申请实施例提供的方法中的各功能,网络设备和用户设备可以包括硬件结构、软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能可以以硬件结构、软件模块、或者硬件结构加软件模块的方式来执行In the above-mentioned embodiments provided by the present application, the methods provided by the embodiments of the present application are introduced from the perspectives of network equipment and user equipment. In order to implement each function in the method provided by the above embodiments of the present application, network equipment and user equipment may include hardware structures and software modules to implement the above functions in the form of hardware structures, software modules, or hardware structures plus software modules. One of the above functions can be executed by a hardware structure, a software module, or a hardware structure plus a software module.
与上述几种实施例提供的测距方法相对应,本公开还提供一种测距装置,由于本公开实施例提供的测距装置与上述几种实施例提供的测距方法相对应,因此测距方法的实施方式也适用于本实施例提供的测距装置,在本实施例中不再详细描述。Corresponding to the distance measurement methods provided by the above embodiments, the present disclosure also provides a distance measurement device. Since the distance measurement device provided by the embodiments of the present disclosure corresponds to the distance measurement methods provided by the above embodiments, the distance measurement method is The implementation of the distance method is also applicable to the distance measurement device provided in this embodiment, and will not be described in detail in this embodiment.
图19为本公开实施例提供的一种测距装置1900的结构示意图。Figure 19 is a schematic structural diagram of a distance measuring device 1900 provided by an embodiment of the present disclosure.
如图19所示,该装置1900应用于第一终端,其中所述第一终端为发起发现测量组合流程的终端,所述发现测量组合流程用于在发现过程中执行测距,且装置1900可以包括收发模块1901和处理模块1902。As shown in Figure 19, the device 1900 is applied to a first terminal, where the first terminal is a terminal that initiates a discovery measurement combination process. The discovery measurement combination process is used to perform ranging during the discovery process, and the device 1900 can It includes a transceiver module 1901 and a processing module 1902.
收发模块1901用于向第二终端发送征询消息,其中,所述第二终端为将被发现以进行发现测量组合流程的终端,所述征询消息用于指示所述第二终端与所述第一终端进行发现匹配,且所述征询消息中包括测量信号;接收所述第二终端针对所述征询消息反馈的征询响应消息,其中所述征询响应消息是所述第二终端确定与所述第一终端匹配的情况下发送的,且所述征询响应消息中包括反馈测量信号。The transceiver module 1901 is configured to send a query message to a second terminal, where the second terminal is a terminal that will be discovered to perform a discovery measurement combination process, and the query message is used to indicate that the second terminal and the first terminal The terminal performs a discovery match, and the inquiry message includes a measurement signal; receives an inquiry response message fed back by the second terminal in response to the inquiry message, wherein the inquiry response message is determined by the second terminal to be consistent with the first inquiry message. Sent when the terminal matches, and the query response message includes a feedback measurement signal.
处理模块1902用于基于基于所述测量信号和所述反馈测量信号,计算与所述第二终端之间的距离。The processing module 1902 is configured to calculate the distance to the second terminal based on the measurement signal and the feedback measurement signal.
根据本公开实施例的测距装置,观察终端在被允许在发现过程中对目标终端执行测距的情况下,向目标终端发送征询消息,目标终端在与观察终端匹配且目标终端被允许在发现过程中执行测距的情况下向观察终端反馈征询响应消息,观察终端根据征询消息中的测量信号与征询响应消息中的反馈测量信号计算与目标终端之间的距离。由此,两个终端之间的测距可以在发现过程中执行,从而能够减少网络资源消耗并节省终端的功耗。According to the ranging device of the embodiment of the present disclosure, the observing terminal sends a query message to the target terminal when it is allowed to perform ranging on the target terminal during the discovery process. The target terminal matches the observing terminal and the target terminal is allowed to perform ranging during the discovery process. When ranging is performed during the process, a query response message is fed back to the observation terminal, and the observation terminal calculates the distance to the target terminal based on the measurement signal in the query message and the feedback measurement signal in the query response message. Thus, ranging between two terminals can be performed during the discovery process, thereby reducing network resource consumption and saving terminal power consumption.
在一些实施例中,所述处理模块1902用于对所述征询消息进行完整性保护。In some embodiments, the processing module 1902 is used to perform integrity protection on the query message.
在一些实施例中,所述处理模块1902用于基于从所述第一终端的第一本地公用陆地移动网络HPLMN的第一邻近服务发现管理功能DDNMF网元接收的安全参数,计算消息验证码;以及将所述消息验证码附加至所述征询消息的末尾以对所述征询消息进行完整性保护。In some embodiments, the processing module 1902 is configured to calculate a message verification code based on the security parameters received from the first proximity service discovery management function DDNMF network element of the first local public land mobile network HPLMN of the first terminal; And append the message verification code to the end of the query message to protect the integrity of the query message.
在一些实施例中,所述处理模块1902用于验证所述征询响应消息的完整性,并在成功验证所述征询响应消息的完整性的情况下,基于所述测量信号和所述反馈测量信号,计算与所述第二终端之间的距离。In some embodiments, the processing module 1902 is configured to verify the integrity of the query response message, and if the integrity of the query response message is successfully verified, based on the measurement signal and the feedback measurement signal , calculate the distance to the second terminal.
在一些实施例中,所述处理模块1902用于基于从第一DDNMF网元接收的安全参数,验证所述征询响应消息的完整性。In some embodiments, the processing module 1902 is configured to verify the integrity of the query response message based on the security parameters received from the first DDNMF network element.
在一些实施例中,所述收发模块1901用于:向第一DDNMF网元发送第一发现请求消息,其中所述第一发现请求消息用于请求执行发现测量组合流程;接收所述第一DDNMF网元在确定所述第一终端被允许在发现过程中对所述第二终端执行测距的情况下反馈的发现响应消息,所述发现响应消息中包括用于所述发现测量组合流程的参数信息;在所述第一终端被允许在发现过程中对第二终端执行测距的情况下,向所述第二终端发送征询消息。In some embodiments, the transceiver module 1901 is configured to: send a first discovery request message to the first DDNMF network element, where the first discovery request message is used to request the execution of a discovery measurement combination process; receive the first DDNMF A discovery response message fed back by the network element when it is determined that the first terminal is allowed to perform ranging on the second terminal during the discovery process. The discovery response message includes parameters for the discovery measurement combination process. Information; when the first terminal is allowed to perform ranging on the second terminal during the discovery process, send a query message to the second terminal.
在一些实施例中,所述第一发现请求消息包括发现测量组合流程指示,所述发现测量组合流程指示用于请求验证所述第一终端是否被允许在发现过程中对所述第二终端执行测距。In some embodiments, the first discovery request message includes a discovery measurement combination process indication, and the discovery measurement combination process indication is used to request verification whether the first terminal is allowed to perform the discovery process on the second terminal. Ranging.
图20为本公开实施例提供的一种测距装置2000的结构示意图。Figure 20 is a schematic structural diagram of a distance measuring device 2000 provided by an embodiment of the present disclosure.
如图20所示,该装置2000应用于第二终端,其中所述第二终端为将被发现以进行发现测量组合流程的终端,所述发现测量组合流程用于在发现过程中执行测距,且装置2000可以包括收发模块2001。As shown in Figure 20, the device 2000 is applied to a second terminal, where the second terminal is a terminal that will be discovered to perform a discovery measurement combination process, and the discovery measurement combination process is used to perform ranging during the discovery process, And the device 2000 may include a transceiver module 2001.
收发模块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 process, and the query message is used to instruct the second terminal to perform discovery with the first terminal. match, and the query message includes a measurement signal; and when the second terminal determines that it matches the first terminal, feedback a query response message to the first terminal, wherein the query response message includes Feedback measurement signals, wherein the measurement signals and the feedback measurement signals are used to determine the distance between the first terminal and the second terminal.
根据本公开实施例的测距装置,观察终端在被允许在发现过程中对目标终端执行测距的情况下,向目标终端发送征询消息,目标终端在与观察终端匹配且目标终端被允许在发现过程中执行测距的情况下向观察终端反馈征询响应消息,观察终端根据征询消息中的测量信号与征询响应消息中的反馈测量信号计算与目标终端之间的距离。由此,两个终端之间的测距可以在发现过程中执行,从而能够减少网络资源消耗并节省终端的功耗。According to the ranging device of the embodiment of the present disclosure, the observing terminal sends a query message to the target terminal when it is allowed to perform ranging on the target terminal during the discovery process. The target terminal matches the observing terminal and the target terminal is allowed to perform ranging during the discovery process. When ranging is performed during the process, a query response message is fed back to the observation terminal, and the observation terminal calculates the distance to the target terminal based on the measurement signal in the query message and the feedback measurement signal in the query response message. Thus, ranging between two terminals can be performed during the discovery process, thereby reducing network resource consumption and saving terminal power consumption.
在一些实施例中,所述装置2000还包括处理模块2002用于验证所述征询消息的完整性;其中所述向所述第一终端反馈征询响应消息包括:在成功验证所述征询消息的完整性的情况下,向所述第一终端 反馈所述征询响应消息。In some embodiments, the device 2000 further includes a processing module 2002 for verifying the integrity of the inquiry message; wherein the feedback of an inquiry response message to the first terminal includes: after successfully verifying the integrity of the inquiry message If necessary, feed back the query response message to the first terminal.
在一些实施例中,所述处理模块2002用于基于从所述第二终端的第二本地公用陆地移动网络HPLMN的第二邻近服务发现管理功能DDNMF网元接收的安全参数,验证所述征询消息的完整性。In some embodiments, the processing module 2002 is configured to verify the query message based on security parameters received from a second proximity service discovery management function DDNMF network element of the second local public land mobile network HPLMN of the second terminal. of integrity.
在一些实施例中,所述处理模块2002用于对所述征询响应消息进行完整性保护。In some embodiments, the processing module 2002 is configured to perform integrity protection on the query response message.
在一些实施例中,所述处理模块2002用于基于从所述第二DDNMF网元接收的安全参数,计算消息验证码;以及将所述消息验证码附加至所述征询响应消息的末尾以对所述征询响应消息进行完整性保护。In some embodiments, the processing module 2002 is configured to calculate a message verification code based on the security parameters received from the second DDNMF network element; and append the message verification code to the end of the query response message to verify The query response message is integrity protected.
在一些实施例中,所述收发模块2001用于:向所述第二DDNMF网元发送第二发现请求消息,其中所述第二发现请求消息用于请求执行发现测量组合流程;以及接收所述第二DDNMF网元在确定所述第二终端被允许在发现过程中执行测距的情况下反馈的发现响应消息,所述发现响应消息中包括用于所述发现测量组合流程的参数信息;其中,所述向所述第一终端反馈征询响应消息包括:在所述第二终端确定与所述第一终端匹配且所述第二终端被允许在发现过程中执行测距的情况下,向所述第一终端反馈征询响应消息。In some embodiments, the transceiver module 2001 is configured to: send a second discovery request message to the second DDNMF network element, where the second discovery request message is used to request execution of a discovery measurement combination process; and receive the The discovery response message fed back by the second DDNMF network element when it is determined that the second terminal is allowed to perform ranging during the discovery process, the discovery response message includes parameter information for the discovery measurement combination process; wherein , the feedback of the inquiry response message to the first terminal includes: when the second terminal determines that it matches the first terminal and the second terminal is allowed to perform ranging during the discovery process, send the inquiry response message to the first terminal. The first terminal feeds back the inquiry response message.
在一些实施例中,所述第二发现请求消息包括发现测量组合验证指示,所述发现测量组合流程指示用于请求验证所述第二终端是否被允许在发现过程中执行测距。In some embodiments, the second discovery request message includes a discovery measurement combination verification indication, and the discovery measurement combination process indication is used to request verification of whether the second terminal is allowed to perform ranging during the discovery process.
与上述几种实施例提供的测距验证方法相对应,本公开还提供一种测距验证装置,由于本公开实施例提供的测距验证装置与上述几种实施例提供的测距验证方法相对应,因此测距方法的实施方式也适用于本实施例提供的测距验证装置,在本实施例中不再详细描述。Corresponding to the ranging verification methods provided by the above-mentioned embodiments, the present disclosure also provides a ranging verification device, because the ranging verification device provided by the embodiments of the present disclosure is consistent with the ranging verification methods provided by the above-mentioned embodiments. Correspondingly, therefore, the implementation of the ranging method is also applicable to the ranging verification device provided in this embodiment, and will not be described in detail in this embodiment.
图21为本公开实施例提供的一种测距验证装置2100的结构示意图。Figure 21 is a schematic structural diagram of a ranging verification device 2100 provided by an embodiment of the present disclosure.
如图21所示,该装置2100应用于第一终端的第一本地公用陆地移动网络HPLMN的第一邻近服务发现管理功能DDNMF网元,且装置2100可以包括收发模块2101。As shown in Figure 21, the device 2100 is applied to the first proximity service discovery management function DDNMF network element of the first local public land mobile network HPLMN of the first terminal, and the device 2100 may include a transceiver module 2101.
所述收发模块2101用于:接收所述第一终端发送的第一发现请求消息,其中所述第一发现请求消息用于请求执行发现测量组合流程并指示发送所述第一发现请求消息的第一终端为发起发现测量组合流程的终端,所述发现测量组合流程用于在发现过程中执行测距;响应于所述第一发现请求消息,向测距应用服务器发送第一发现测量组合流程验证请求,所述测距应用服务器用于基于所述第一发现测量组合验证请求验证是否允许所述第一终端在发现过程中执行测距;从测距应用服务器接收验证结果,并在所述验证结果指示所述第一终端被允许在发现过程中执行测距的情况下,将所述第一发现请求消息转发至第二终端的第二HPLMN的第二DDNMF网元,所述第二终端为将被发现以进行发现测量组合流程的终端;接收所述第二DDNMF网元在确定所述第一终端被允许在发现过程中对所述第二终端执行测距的情况下反馈的发现响应消息,其中所述发现响应消息包括用于所述发现测量组合流程的参数信息;以及将所述发现响应消息发送给所述第一终端。The transceiver module 2101 is configured to: receive a first discovery request message sent by the first terminal, where the first discovery request message is used to request execution of a discovery measurement combination process and instructs to send the first discovery request message. A terminal is a terminal that initiates a discovery measurement combination process. The discovery measurement combination process is used to perform ranging during the discovery process; in response to the first discovery request message, a first discovery measurement combination process verification is sent to the ranging application server. request, the ranging application server is configured to verify whether the first terminal is allowed to perform ranging during the discovery process based on the first discovery measurement combination verification request; receive the verification result from the ranging application server, and verify in the verification If the result indicates that the first terminal is allowed to perform ranging during the discovery process, forward the first discovery request message to the second DDNMF network element of the second HPLMN of the second terminal, and the second terminal is A terminal that will be discovered for performing a discovery measurement combination process; receiving a discovery response message fed back by the second DDNMF network element when it is determined that the first terminal is allowed to perform ranging on the second terminal during the discovery process. , wherein the discovery response message includes parameter information for the discovery measurement combination process; and sending the discovery response message to the first terminal.
根据本实施例的测距验证装置,网络设备能够对观察终端进行验证以确定观察终端是否被允许在发现过程中执行测距以及是否被允许在发现过程中对特定目标终端执行测距。此外,网络设备能够对目标终端进行验证以确定目标终端是否被允许在发现过程中执行测距。由此,能够验证终端是否能够进行发现测量组合流程。According to the ranging verification device of this embodiment, the network device can verify the observing terminal to determine whether the observing terminal is allowed to perform ranging during the discovery process and whether it is allowed to perform ranging on a specific target terminal during the discovery process. Additionally, the network device can authenticate the target terminal to determine whether the target terminal is allowed to perform ranging during the discovery process. Thus, it can be verified whether the terminal can perform the discovery measurement combination process.
在一些实施例中,所述参数信息包括用于对指定信息进行完整性保护和/或验证的安全参数。In some embodiments, the parameter information includes security parameters for integrity protection and/or verification of specified information.
在一些实施例中,所述第一发现请求消息包括发现测量组合流程指示,所述发现测量组合流程指示用于请求验证所述第一终端是否被允许在发现过程中执行测距以及验证所述第一终端是否被允许在发现过程中对所述第二终端执行测距。In some embodiments, the first discovery request message includes a discovery measurement combination process indication, and the discovery measurement combination process indication is used to request verification whether the first terminal is allowed to perform ranging during the discovery process and to verify that the Whether the first terminal is allowed to perform ranging on the second terminal during the discovery process.
图22为本公开实施例提供的一种测距验证装置2200的结构示意图。Figure 22 is a schematic structural diagram of a ranging verification device 2200 provided by an embodiment of the present disclosure.
如图22所示,该装置2200应用于第一终端的第一本地公用陆地移动网络HPLMN的第一邻近服务发现管理功能DDNMF网元,且装置2200可以包括收发模块2201和处理模块2202。As shown in Figure 22, the device 2200 is applied to the first proximity service discovery management function DDNMF network element of the first local public land mobile network HPLMN of the first terminal, and the device 2200 may include a transceiver module 2201 and a processing module 2202.
所述收发模块2201用于:接收第二终端发送的第二发现请求消息,其中所述第二发现请求消息用于请求执行发现测量组合流程并指示发送所述第二发现请求消息的第二终端为将被发现以进行发现测量组合流程的终端,所述发现测量组合流程用于在发现过程中执行测距;响应于所述第二发现请求消息,向测距应用服务器发送第二发现测量组合流程验证请求,所述测距应用服务器基于所述第二发现测量组合流程验证请求验证是否允许所述第二终端在发现过程中执行测距;从所述测距应用服务器接收验证结果。The transceiver module 2201 is configured to receive a second discovery request message sent by a second terminal, where the second discovery request message is used to request execution of a discovery measurement combination process and to indicate the second terminal that sends the second discovery request message. It is a terminal that will be discovered to perform a discovery measurement combination process. The discovery measurement combination process is used to perform ranging during the discovery process; in response to the second discovery request message, send a second discovery measurement combination to the ranging application server. A process verification request, the ranging application server verifies whether the second terminal is allowed to perform ranging during the discovery process based on the second discovery measurement combination process verification request; and receives a verification result from the ranging application server.
所述处理模块2202用于在所述验证结果指示所述第二终端被允许在发现过程中执行测距的情况下,生成用于所述第二终端的发现测量组合流程的第二参数信息。The processing module 2202 is configured to generate second parameter information for the discovery measurement combination process of the second terminal when the verification result indicates that the second terminal is allowed to perform ranging during the discovery process.
所述收发模块2201还用于将包括所述第二参数信息的第二发现响应消息发送给所述第二终端。The transceiving module 2201 is also configured to send a second discovery response message including the second parameter information to the second terminal.
根据本实施例的测距验证装置,网络设备能够对观察终端进行验证以确定观察终端是否被允许在发现过程中执行测距以及是否被允许在发现过程中对特定目标终端执行测距。此外,网络设备能够对目标终端进行验证以确定目标终端是否被允许在发现过程中执行测距。由此,能够验证终端是否能够进行发现测量组合流程。According to the ranging verification device of this embodiment, the network device can verify the observing terminal to determine whether the observing terminal is allowed to perform ranging during the discovery process and whether it is allowed to perform ranging on a specific target terminal during the discovery process. Additionally, the network device can authenticate the target terminal to determine whether the target terminal is allowed to perform ranging during the discovery process. Thus, it can be verified whether the terminal can perform the discovery measurement combination process.
所述收发模块2201还用于接收第一终端的第一HPLMN的第一DDNMF网元转发的第一发现请求消息,所述第一发现请求消息用于请求执行发现测量组合流程并指示发送所述第一发现请求消息的第一终端为发起发现测量组合流程的终端;响应于所述第一发现请求消息,向所述测距应用服务器发送第一发现测量组合流程验证请求,所述测距应用服务器基于所述第一发现测量组合流程验证请求验证是否允许所述第一终端在发现过程中对所述第二终端执行测距。The transceiver module 2201 is also configured to receive a first discovery request message forwarded by the first DDNMF network element of the first HPLMN of the first terminal. The first discovery request message is used to request execution of the discovery measurement combination process and instructs to send the The first terminal of the first discovery request message is the terminal that initiates the discovery and measurement combination process; in response to the first discovery request message, a first discovery and measurement combination process verification request is sent to the ranging application server, and the ranging application The server verifies whether the first terminal is allowed to perform ranging on the second terminal during the discovery process based on the first discovery measurement combination process verification request.
所述处理模块2202还用于在验证结果指示所述第一终端被允许在发现过程中对所述第二终端执行测距的情况下,生成用于所述第一终端的发现测量组合流程的第一参数信息。The processing module 2202 is also configured to generate a discovery measurement combination process for the first terminal when the verification result indicates that the first terminal is allowed to perform ranging on the second terminal during the discovery process. First parameter information.
所述收发模块2201还用于将包括所述第一参数信息的第一发现响应消息发送给所述第一DDNMF网元。The transceiving module 2201 is also 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 process indication, and the second discovery measurement combination process indication is used to request verification whether the second terminal is allowed to perform ranging during the discovery process. .
在一些实施例中,所述第一发现请求消息包括第一发现测量组合流程指示,所述第一发现测量组合流程指示用于请求验证所述第一终端是否被允许在发现过程中对所述第二终端执行测距。In some embodiments, the first discovery request message includes a first discovery measurement combination process indication, and the first discovery measurement combination process indication is used to request verification whether the first terminal is allowed to perform the discovery process on the The second terminal performs ranging.
图23为本公开实施例提供的一种测距验证装置2300的结构示意图。Figure 23 is a schematic structural diagram of a ranging verification device 2300 provided by an embodiment of the present disclosure.
如图23所示,该装置2300应用于第一终端的第一本地公用陆地移动网络HPLMN的第一邻近服务发现管理功能DDNMF网元,且装置2300可以包括收发模块2301和处理模块2302。As shown in Figure 23, the device 2300 is applied to the first proximity service discovery management function DDNMF network element of the first local public land mobile network HPLMN of the first terminal, and the device 2300 may include a transceiver module 2301 and a processing module 2302.
所述收发模块2301用于接收第一终端的第一本地公用陆地移动网络HPLMN的第一DDNMF网元发送的第一发现测量组合流程验证请求,其中所述第一终端为发起发现测量组合流程的终端,所述发现测量组合流程用于在发现过程中执行测距,所述第一发现测量组合流程验证请求用于请求验证是否允许所述第一终端在发现过程中执行测距。The transceiver module 2301 is configured to receive a first discovery and measurement combination process verification request sent by the first DDNMF network element of the first local public land mobile network HPLMN of the first terminal, where the first terminal is the one that initiates the discovery and measurement combination process. For a terminal, the discovery and measurement combination process is used to perform ranging during the discovery process, and the first discovery and measurement combination process verification request is used to request verification whether the first terminal is allowed to perform ranging during the discovery process.
所述处理模块2302用于验证是否允许所述第一终端在发现过程中执行测距。The processing module 2302 is used to verify whether the first terminal is allowed to perform ranging during the discovery process.
所述收发模块2301还用于将第一验证结果反馈给所述第一DDNMF网元;接收第二终端的第二HPLMN的第二DDNMF网元发送的第二发现测量组合流程验证请求,其中,所述第二终端为将被发现以进行发现测量组合流程的终端,所述第二发现测量组合流程验证请求用于请求验证是否允许所述第一终端在发现过程中对所述第二终端执行测距。The transceiver module 2301 is also configured to feed back the first verification result to the first DDNMF network element; receive the second discovery measurement combination process verification request sent by the second DDNMF network element of the second HPLMN of the second terminal, wherein, The second terminal is a terminal that will be discovered to perform a discovery measurement combination process. The second discovery measurement combination process verification request is used to request verification whether the first terminal is allowed to perform the discovery measurement combination process on the second terminal. Ranging.
所述处理模块2302还用于验证是否允许所述第一终端在发现过程中对所述第二终端执行测距。The processing module 2302 is also used to verify whether the first terminal is allowed to perform ranging on the second terminal during the discovery process.
所述收发模块2301还用于将第二验证结果反馈给所述第二DDNMF网元,所述第二DDNMF网元在所述第二验证结果指示所述第一终端被允许在发现过程中对所述第二终端执行测距的情况下生成用于所述第一终端的发现测量组合流程的第一参数信息。The transceiver module 2301 is also configured to feed back the second verification result to the second DDNMF network element. The second DDNMF network element indicates that the first terminal is allowed to perform the detection during the discovery process when the second verification result indicates that the second DDNMF network element When the second terminal performs ranging, first parameter information for the discovery measurement combination process of the first terminal is generated.
根据本实施例的测距验证装置,网络设备能够对观察终端进行验证以确定观察终端是否被允许在发现过程中执行测距以及是否被允许在发现过程中对特定目标终端执行测距。此外,网络设备能够对目标终端进行验证以确定目标终端是否被允许在发现过程中执行测距。由此,能够验证终端是否能够进行发现测量组合流程。According to the ranging verification device of this embodiment, the network device can verify the observing terminal to determine whether the observing terminal is allowed to perform ranging during the discovery process and whether it is allowed to perform ranging on a specific target terminal during the discovery process. Additionally, the network device can authenticate the target terminal to determine whether the target terminal is allowed to perform ranging during the discovery process. Thus, it can be verified whether the terminal can perform the discovery measurement combination process.
在一些实施例中,所述收发模块2301还用于接收所述第二DDNMF网元发送的第三发现测量组合流程验证请求,所述第三发现测量组合流程验证请求用于请求验证是否允许所述第二终端在发现过程中执行测距。In some embodiments, the transceiver module 2301 is also configured to receive a third discovery and measurement combination process verification request sent by the second DDNMF network element. The third discovery and measurement combination process verification request is used to request verification of whether all The second terminal performs ranging during the discovery process.
所述处理模块2302还用于验证是否允许所述第二终端在发现过程中执行测距。The processing module 2302 is also used to verify whether the second terminal is allowed to perform ranging during the discovery process.
所述收发模块2301还用于将验证结果反馈给所述第二DDNMF网元,所述第二DDNMF网元在验证结果指示所述第二终端被允许在发现过程中执行测距的情况下生成用于所述第二终端的发现测量组合流程的第二参数信息。The transceiver module 2301 is also configured to feed back the verification result to the second DDNMF network element, which is generated when the verification result indicates that the second terminal is allowed to perform ranging during the discovery process. Second parameter information used for the discovery measurement combination process of the second terminal.
请参见图24,图24是本申请实施例提供的一种通信装置2400的结构示意图。通信装置2400可以是网络设备,也可以是用户设备,也可以是支持网络设备实现上述方法的芯片、芯片系统、或处理器等,还可以是支持用户设备实现上述方法的芯片、芯片系统、或处理器等。该装置可用于实现上述方法实施 例中描述的方法,具体可以参见上述方法实施例中的说明。Please refer to Figure 24, which is a schematic structural diagram of a communication device 2400 provided by an embodiment of the present application. The communication device 2400 may be a network device, a user equipment, a chip, a chip system, or a processor that supports network equipment to implement the above method, or a chip, a chip system, or a processor that supports user equipment to implement the above method. Processor etc. This device can be used to implement the method described in the above method embodiment. For details, please refer to the description in the above method embodiment.
通信装置2400可以包括一个或多个处理器2401。处理器2401可以是通用处理器或者专用处理器等。例如可以是基带处理器或中央处理器。基带处理器可以用于对通信协议以及通信数据进行处理,中央处理器可以用于对通信装置(如,基站、基带芯片,终端设备、终端设备芯片,DU或CU等)进行控制,执行计算机程序,处理计算机程序的数据。 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, it can be a baseband processor or a central processing unit. The baseband processor can be used to process communication protocols and communication data. The central processor can be used to control communication devices (such as base stations, baseband chips, terminal equipment, terminal equipment chips, DU or CU, etc.) and execute computer programs. , processing data for computer programs.
可选的,通信装置2400中还可以包括一个或多个存储器2402,其上可以存有计算机程序2404,处理器2401执行所述计算机程序2404,以使得通信装置2400执行上述方法实施例中描述的方法。可选的,所述存储器2402中还可以存储有数据。通信装置2400和存储器2402可以单独设置,也可以集成在一起。Optionally, the communication device 2400 may also include one or more memories 2402, on which a computer program 2404 may be stored. The processor 2401 executes the computer program 2404, so that the communication device 2400 performs the steps described in the above method embodiments. method. Optionally, the memory 2402 may also store data. The communication device 2400 and the memory 2402 can be provided separately or integrated together.
可选的,通信装置2400还可以包括收发器2405、天线2406。收发器2405可以称为收发单元、收发机、或收发电路等,用于实现收发功能。收发器2405可以包括接收器和发送器,接收器可以称为接收机或接收电路等,用于实现接收功能;发送器可以称为发送机或发送电路等,用于实现发送功能。Optionally, the communication device 2400 may also include a transceiver 2405 and an antenna 2406. The transceiver 2405 may be called a transceiver unit, a transceiver, a transceiver circuit, etc., and is used to implement transceiver functions. The transceiver 2405 may include a receiver and a transmitter. The receiver may be called a receiver or a receiving circuit, etc., used to implement the receiving function; the transmitter may be called a transmitter, a transmitting circuit, etc., used to implement the transmitting function.
可选的,通信装置2400中还可以包括一个或多个接口电路2407。接口电路2407用于接收代码指令并传输至处理器2401。处理器2401运行所述代码指令以使通信装置2400执行上述方法实施例中描述的方法。Optionally, the communication device 2400 may also include one or more interface circuits 2407. The interface circuit 2407 is used to receive code instructions and transmit them to the processor 2401. The processor 2401 executes the code instructions to cause the communication device 2400 to perform the method described in the above method embodiment.
在一种实现方式中,处理器2401中可以包括用于实现接收和发送功能的收发器。例如该收发器可以是收发电路,或者是接口,或者是接口电路。用于实现接收和发送功能的收发电路、接口或接口电路可以是分开的,也可以集成在一起。上述收发电路、接口或接口电路可以用于代码/数据的读写,或者,上述收发电路、接口或接口电路可以用于信号的传输或传递。In one implementation, the processor 2401 may include a transceiver for implementing receiving and transmitting functions. For example, the transceiver may be a transceiver circuit, an interface, or an interface circuit. The transceiver circuits, interfaces or interface circuits used to implement the receiving and transmitting functions can be separate or integrated together. The above-mentioned transceiver circuit, interface or interface circuit can be used for reading and writing codes/data, or the above-mentioned transceiver circuit, interface or interface circuit can be used for signal transmission or transfer.
在一种实现方式中,处理器2401可以存有计算机程序2403,计算机程序2403在处理器2401上运行,可使得通信装置2400执行上述方法实施例中描述的方法。计算机程序2403可能固化在处理器2401中,该种情况下,处理器2401可能由硬件实现。In one implementation, the processor 2401 may store a computer program 2403, and the computer program 2403 runs on the processor 2401, causing 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.
在一种实现方式中,通信装置2400可以包括电路,所述电路可以实现前述方法实施例中发送或接收或者通信的功能。本申请中描述的处理器和收发器可实现在集成电路(integrated circuit,IC)、模拟IC、射频集成电路RFIC、混合信号IC、专用集成电路(application specific integrated circuit,ASIC)、印刷电路板(printed circuit board,PCB)、电子设备等上。该处理器和收发器也可以用各种IC工艺技术来制造,例如互补金属氧化物半导体(complementary metal oxide semiconductor,CMOS)、N型金属氧化物半导体(nMetal-oxide-semiconductor,NMOS)、P型金属氧化物半导体(positive channel metal oxide semiconductor,PMOS)、双极结型晶体管(bipolar junction transistor,BJT)、双极CMOS(BiCMOS)、硅锗(SiGe)、砷化镓(GaAs)等。In one implementation, the communication device 2400 may include a circuit, which may implement the functions of sending or receiving or communicating in the foregoing method embodiments. The processor and transceiver described in this application can be implemented in integrated circuits (ICs), analog ICs, radio frequency integrated circuits RFICs, mixed signal ICs, application specific integrated circuits (ASICs), printed circuit boards ( printed circuit board (PCB), electronic equipment, etc. The processor and transceiver can also be manufactured using various IC process technologies, such as 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 (BJT), bipolar CMOS (BiCMOS), silicon germanium (SiGe), gallium arsenide (GaAs), etc.
以上实施例描述中的通信装置可以是网络设备或者用户设备,但本申请中描述的通信装置的范围并不限于此,而且通信装置的结构可以不受图24的限制。通信装置可以是独立的设备或者可以是较大设备的一部分。例如所述通信装置可以是:The communication device described in the above embodiments may be network equipment or user equipment, but the scope of the communication device described in this application is not limited thereto, and the structure of the communication device may not be limited by FIG. 24 . The communication device may be a stand-alone device or may be part of a larger device. For example, the communication device may be:
(1)独立的集成电路IC,或芯片,或,芯片系统或子系统;(1) Independent integrated circuit IC, or chip, or chip system or subsystem;
(2)具有一个或多个IC的集合,可选的,该IC集合也可以包括用于存储数据,计算机程序的存储部件;(2) A collection of one or more ICs. Optionally, the IC collection may also include storage components for storing data and computer programs;
(3)ASIC,例如调制解调器(Modem);(3)ASIC, such as modem;
(4)可嵌入在其他设备内的模块;(4) Modules that can be embedded in other devices;
(5)接收机、终端设备、智能终端设备、蜂窝电话、无线设备、手持机、移动单元、车载设备、网络设备、云设备、人工智能设备等等;(5) Receivers, terminal equipment, intelligent terminal equipment, cellular phones, wireless equipment, handheld devices, mobile units, vehicle-mounted equipment, network equipment, cloud equipment, artificial intelligence equipment, etc.;
(6)其他等等。(6) Others, etc.
对于通信装置可以是芯片或芯片系统的情况,可参见图25所示的芯片的结构示意图。图25所示的芯片包括处理器2501和接口2502。其中,处理器2501的数量可以是一个或多个,接口2502的数量可以是多个。For the case where the communication device may be a chip or a chip system, refer to the schematic structural diagram of the chip shown in FIG. 25 . The chip shown in Figure 25 includes a processor 2501 and an interface 2502. The number of processors 2501 may be one or more, and the number of interfaces 2502 may be multiple.
可选的,芯片还包括存储器2503,存储器2503用于存储必要的计算机程序和数据。Optionally, the chip also includes a memory 2503, which is used to store necessary computer programs and data.
本领域技术人员还可以了解到本申请实施例列出的各种说明性逻辑块(illustrative logical block)和步骤(step)可以通过电子硬件、电脑软件,或两者的结合进行实现。这样的功能是通过硬件还是软件来实现取决于特定的应用和整个系统的设计要求。本领域技术人员可以对于每种特定的应用,可以使用各种方法实现所述的功能,但这种实现不应被理解为超出本申请实施例保护的范围。Those skilled in the art can also understand that the various illustrative logical blocks and steps listed in the embodiments of this application can be implemented by electronic hardware, computer software, or a combination of both. Whether such functionality is implemented in hardware or software depends on the specific application and overall system design requirements. Those skilled in the art can use various methods to implement the described functions for each specific application, but such implementation should not be understood as exceeding the protection scope of the embodiments of the present application.
本申请实施例还提供一种实现测距系统,该系统包括前述图19-20实施例中作为用户设备的通信装置和前述图21-23实施例中作为网络设备的通信装置,或者,该系统包括前述图24实施例中作为用户 设备的通信装置和作为网络设备的通信装置。Embodiments of the present application also provide a system for implementing ranging. The system includes a communication device as a user equipment in the aforementioned embodiment of FIGS. 19-20 and a communication device as a network device in the aforementioned embodiment of FIGS. 21-23. Alternatively, the system It includes the communication device as user equipment and the communication device as network equipment in the aforementioned embodiment of FIG. 24 .
本申请还提供一种可读存储介质,其上存储有指令,该指令被计算机执行时实现上述任一方法实施例的功能。This application also provides a readable storage medium on which instructions are stored. When the instructions are executed by a computer, the functions of any of the above method embodiments are implemented.
本申请还提供一种计算机程序产品,该计算机程序产品被计算机执行时实现上述任一方法实施例的功能。This application also provides a computer program product, which, when executed by a computer, implements the functions of any of the above method embodiments.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机程序。在计算机上加载和执行所述计算机程序时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机程序可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机程序可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,高密度数字视频光盘(digital video disc,DVD))、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs. When the computer program is loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer program may be stored in or transferred from one computer-readable storage medium to another, for example, the computer program may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means. 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 one or more available media integrated. The usable media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., high-density digital video discs (DVD)), or semiconductor media (e.g., solid state disks, SSD)) etc.
本领域普通技术人员可以理解:本申请中涉及的第一、第二等各种数字编号仅为描述方便进行的区分,并不用来限制本申请实施例的范围,也表示先后顺序。Persons of ordinary skill in the art can understand that the first, second, and other numerical numbers involved in this application are only for convenience of description and are not used to limit the scope of the embodiments of this application and also indicate the order.
本申请中的至少一个还可以描述为一个或多个,多个可以是两个、三个、四个或者更多个,本申请不做限制。在本申请实施例中,对于一种技术特征,通过“第一”、“第二”、“第三”、“A”、“B”、“C”和“D”等区分该种技术特征中的技术特征,该“第一”、“第二”、“第三”、“A”、“B”、“C”和“D”描述的技术特征间无先后顺序或者大小顺序。At least one in this application can also be described as one or more, and the plurality can be two, three, four or more, which is not limited by this application. In the embodiment of this application, for a technical feature, the technical feature is distinguished by "first", "second", "third", "A", "B", "C" and "D", etc. The technical features described in "first", "second", "third", "A", "B", "C" and "D" are in no particular order or order.
如本文使用的,术语“机器可读介质”和“计算机可读介质”指的是用于将机器指令和/或数据提供给可编程处理器的任何计算机程序产品、设备、和/或装置(例如,磁盘、光盘、存储器、可编程逻辑装置(PLD)),包括,接收作为机器可读信号的机器指令的机器可读介质。术语“机器可读信号”指的是用于将机器指令和/或数据提供给可编程处理器的任何信号。As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or means for providing machine instructions and/or data to a programmable processor ( For example, magnetic disks, optical disks, memories, programmable logic devices (PLD)), including machine-readable media that receive machine instructions as machine-readable signals. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., A user's computer having a graphical user interface or web browser through which the user can interact with implementations of the systems and technologies described herein), or including such backend components, middleware components, or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communications network). Examples of communication networks include: local area network (LAN), wide area network (WAN), and the Internet.
计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。Computer systems may include clients and servers. Clients and servers are generally remote from each other and typically interact over a communications network. The relationship of client and server is created by computer programs running on corresponding computers and having a client-server relationship with each other.
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本公开中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本公开公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that various forms of the process shown above may be used, with steps reordered, added or deleted. For example, each step described in the present disclosure can be executed in parallel, sequentially, or in a different order. As long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, there is no limitation here.
此外,应该理解,本申请所述的各种实施例可以单独实施,也可以在方案允许的情况下与其他实施例组合实施。In addition, it should be understood that the various embodiments described in this application can be implemented alone or in combination with other embodiments if the scheme allows.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application. should be covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (31)

  1. 一种测距方法,其特征在于,所述方法由第一终端执行,其中所述第一终端为发起发现测量组合流程的终端,所述发现测量组合流程用于在发现过程中执行测距,所述方法包括:A ranging method, characterized in that the method is executed by a first terminal, wherein the first terminal is a terminal that initiates a discovery measurement combination process, and the discovery measurement combination process is used to perform ranging during the discovery process, The methods include:
    向第二终端发送征询消息,其中,所述第二终端为将被发现以进行发现测量组合流程的终端,所述征询消息用于指示所述第二终端与所述第一终端进行发现匹配,且所述征询消息中包括测量信号;Send a query message to a second terminal, where the second terminal is a terminal that will be discovered for the discovery measurement combination process, and the query message is used to instruct the second terminal to perform discovery matching with the first terminal, And the consultation message includes a measurement signal;
    接收所述第二终端针对所述征询消息反馈的征询响应消息,其中所述征询响应消息是所述第二终端确定与所述第一终端匹配的情况下发送的,且所述征询响应消息中包括反馈测量信号;以及Receive an inquiry response message fed back by the second terminal in response to the inquiry message, wherein the inquiry response message is sent when the second terminal determines that it matches the first terminal, and the inquiry response message contains including feedback measurement signals; and
    基于所述测量信号和所述反馈测量信号,计算与所述第二终端之间的距离。Based on the measurement signal and the feedback measurement signal, a distance to the second terminal is calculated.
  2. 如权利要求1所述的方法,其特征在于,在向所述第二终端发送所述征询消息之前,还包括:The method according to claim 1, characterized in that, before sending the inquiry message to the second terminal, it further includes:
    对所述征询消息进行完整性保护。Integrity protection is performed on the query message.
  3. 如权利要求2所述的方法,其特征在于,所述对所述征询消息进行完整性保护包括:The method of claim 2, wherein the integrity protection of the query message includes:
    基于从所述第一终端的第一本地公用陆地移动网络HPLMN的第一邻近服务发现管理功能DDNMF网元接收的安全参数,计算消息验证码;以及calculating a message verification code based on the security parameters received from the first Proximity Service Discovery Management Function DDNMF network element of the first local public land mobile network HPLMN of the first terminal; and
    将所述消息验证码附加至所述征询消息的末尾以对所述征询消息进行完整性保护。The message verification code is appended to the end of the query message to protect the integrity of the query message.
  4. 如权利要求1所述的方法,其特征在于,所述征询响应消息为经完整性保护的消息,所述方法还包括:The method of claim 1, wherein the query response message is an integrity protected message, and the method further includes:
    验证所述征询响应消息的完整性;Verify the integrity of the inquiry response message;
    其中所述基于所述测量信号和所述反馈测量信号,计算与所述第二终端之间的距离包括:Wherein, calculating the distance to the second terminal based on the measurement signal and the feedback measurement signal includes:
    在成功验证所述征询响应消息的完整性的情况下,基于所述测量信号和所述反馈测量信号,计算与所述第二终端之间的距离。If the integrity of the query response message is successfully verified, the distance to the second terminal is calculated based on the measurement signal and the feedback measurement signal.
  5. 如权利要求4所述的方法,其特征在于,所述验证所述征询响应消息的完整性包括:The method of claim 4, wherein verifying the integrity of the inquiry response message includes:
    基于从所述第一DDNMF网元接收的安全参数,验证所述征询响应消息的完整性。Verify the integrity of the query response message based on the security parameters received from the first DDNMF network element.
  6. 如权利要求1-5中任一项所述的方法,其特征在于,还包括:The method according to any one of claims 1-5, further comprising:
    向所述第一DDNMF网元发送第一发现请求消息,其中所述第一发现请求消息用于请求执行发现测量组合流程;以及Send a first discovery request message to the first DDNMF network element, where the first discovery request message is used to request execution of a discovery measurement combination process; and
    接收所述第一DDNMF网元在确定所述第一终端被允许在发现过程中对所述第二终端执行测距的情况下反馈的发现响应消息,所述发现响应消息中包括用于所述发现测量组合流程的参数信息;Receive a discovery response message fed back by the first DDNMF network element when it is determined that the first terminal is allowed to perform ranging on the second terminal during the discovery process, and the discovery response message includes the information for the Discover parameter information of the measurement combination process;
    其中,所述向第二终端发送征询消息包括:Wherein, sending the inquiry message to the second terminal includes:
    在所述第一终端被允许在发现过程中对第二终端执行测距的情况下,向所述第二终端发送征询消息。When the first terminal is allowed to perform ranging on the second terminal during the discovery process, a query message is sent to the second terminal.
  7. 如权利要求6所述的方法,其特征在于,所述第一发现请求消息包括发现测量组合流程指示,所述发现测量组合流程指示用于请求验证所述第一终端是否被允许在发现过程中对所述第二终端执行测距。The method of claim 6, wherein the first discovery request message includes a discovery measurement combination process indication, and the discovery measurement combination process indication is used to request verification of whether the first terminal is allowed in the discovery process. Perform ranging on the second terminal.
  8. 一种测距方法,其特征在于,所述方法由第二终端执行,其中所述第二终端为将被发现以进行发现测量组合流程的终端,所述发现测量组合流程用于在发现过程中执行测距,所述方法包括:A ranging method, characterized in that the method is executed by a second terminal, wherein the second terminal is a terminal that will be discovered to perform a discovery measurement combination process, and the discovery measurement combination process is used in the discovery process Perform ranging, the method includes:
    接收第一终端发送的征询消息,其中,所述第一终端为发起发现测量组合流程的终端,所述征询消息用于指示所述第二终端与所述第一终端进行发现匹配,且所述征询消息中包括测量信号;以及Receive a query message sent by a first terminal, where the first terminal is a terminal that initiates a discovery measurement combination process, the query message is used to instruct the second terminal to perform discovery matching with the first terminal, and the The solicitation message includes the measurement signal; and
    在所述第二终端确定与所述第一终端匹配的情况下,向所述第一终端反馈征询响应消息,其中所述征询响应消息中包括反馈测量信号,When the second terminal determines that it matches the first terminal, feedback a query response message to the first terminal, wherein the query response message includes a feedback measurement signal,
    其中,所述测量信号和所述反馈测量信号用于确定所述第一终端和所述第二终端之间的距离。Wherein, the measurement signal and the feedback measurement signal are used to determine the distance between the first terminal and the second terminal.
  9. 如权利要求8所述的方法,其特征在于,所述征询消息为经完整性保护的消息,所述方法还包括:The method of claim 8, wherein the query message is an integrity protected message, and the method further includes:
    验证所述征询消息的完整性;Verify the integrity of the consultation message;
    其中所述向所述第一终端反馈征询响应消息包括:The feedback of the inquiry response message to the first terminal includes:
    在成功验证所述征询消息的完整性的情况下,向所述第一终端反馈所述征询响应消息。If the integrity of the query message is successfully verified, the query response message is fed back to the first terminal.
  10. 如权利要求9所述的方法,其特征在于,所述验证所述征询消息的完整性包括:The method of claim 9, wherein verifying the integrity of the query message includes:
    基于从所述第二终端的第二本地公用陆地移动网络HPLMN的第二邻近服务发现管理功能DDNMF网元接收的安全参数,验证所述征询消息的完整性。The integrity of the query message is verified based on security parameters received from a second Proximity Service Discovery Management Function DDNMF network element of the second local public land mobile network HPLMN of the second terminal.
  11. 如权利要求8所述的方法,其特征在于,在向所述第一终端发送所述征询响应消息之前,还包括:The method according to claim 8, characterized in that, before sending the inquiry response message to the first terminal, it further includes:
    对所述征询响应消息进行完整性保护。Integrity protection is performed on the query response message.
  12. 如权利要求11所述的方法,其特征在于,所述对所述征询响应消息进行完整性保护包括:The method of claim 11, wherein the integrity protection of the query response message includes:
    基于从所述第二DDNMF网元接收的安全参数,计算消息验证码;以及Calculate a message verification code based on the security parameters received from the second DDNMF network element; and
    将所述消息验证码附加至所述征询响应消息的末尾以对所述征询响应消息进行完整性保护。The message verification code is appended to the end of the query response message to protect the integrity of the query response message.
  13. 如权利要求8-12中任一项所述的方法,其特征在于,还包括:The method according to any one of claims 8-12, further comprising:
    向所述第二DDNMF网元发送第二发现请求消息,其中所述第二发现请求消息用于请求执行发现测量组合流程;以及Send a second discovery request message to the second DDNMF network element, where the second discovery request message is used to request execution of a discovery measurement combination process; and
    接收所述第二DDNMF网元在确定所述第二终端被允许在发现过程中执行测距的情况下反馈的发现响应消息,所述发现响应消息中包括用于所述发现测量组合流程的参数信息;Receive a discovery response message fed back by the second DDNMF network element when it is determined that the second terminal is allowed to perform ranging during the discovery process, and the discovery response message includes parameters for the discovery measurement combination process. information;
    其中,所述向所述第一终端反馈征询响应消息包括:Wherein, the feedback inquiry response message to the first terminal includes:
    在所述第二终端确定与所述第一终端匹配且所述第二终端被允许在发现过程中执行测距的情况下,向所述第一终端反馈征询响应消息。When the second terminal determines that it matches the first terminal and the second terminal is allowed to perform ranging during the discovery process, a query response message is fed back to the first terminal.
  14. 如权利要求13所述的方法,其特征在于,所述第二发现请求消息包括发现测量组合验证指示,所述发现测量组合流程指示用于请求验证所述第二终端是否被允许在发现过程中执行测距。The method of claim 13, wherein the second discovery request message includes a discovery measurement combination verification indication, and the discovery measurement combination process indication is used to request verification of whether the second terminal is allowed in the discovery process. Perform ranging.
  15. 一种测距验证方法,其特征在于,所述方法由第一终端的第一本地公用陆地移动网络HPLMN的第一邻近服务发现管理功能DDNMF网元执行,所述方法包括:A ranging verification method, characterized in that the method is executed by the first proximity service discovery management function DDNMF network element of the first local public land mobile network HPLMN of the first terminal, and the method includes:
    接收所述第一终端发送的第一发现请求消息,其中所述第一发现请求消息用于请求执行发现测量组合流程并指示发送所述第一发现请求消息的第一终端为发起发现测量组合流程的终端,所述发现测量组合流程用于在发现过程中执行测距;Receive a first discovery request message sent by the first terminal, where the first discovery request message is used to request execution of a discovery measurement combination process and instructs the first terminal sending the first discovery request message to initiate a discovery measurement combination process. For a terminal, the discovery measurement combination process is used to perform ranging during the discovery process;
    响应于所述第一发现请求消息,向测距应用服务器发送第一发现测量组合流程验证请求,所述测距应用服务器基于所述第一发现测量组合验证请求验证是否允许所述第一终端在发现过程中执行测距;In response to the first discovery request message, a first discovery measurement combination process verification request is sent to the ranging application server, and the ranging application server verifies whether the first terminal is allowed to operate based on the first discovery measurement combination verification request. Perform ranging during discovery;
    从测距应用服务器接收验证结果,并在所述验证结果指示所述第一终端被允许在发现过程中执行测距的情况下,将所述第一发现请求消息转发至第二终端的第二HPLMN的第二DDNMF网元,所述第二终端为将被发现以进行发现测量组合流程的终端;Receive a verification result from the ranging application server, and forward the first discovery request message to the second terminal of the second terminal if the verification result indicates that the first terminal is allowed to perform ranging during the discovery process. The second DDNMF network element of HPLMN, the second terminal is the terminal that will be discovered for the discovery measurement combination process;
    接收所述第二DDNMF网元在确定所述第一终端被允许在发现过程中对所述第二终端执行测距的情况下反馈的发现响应消息,其中所述发现响应消息包括用于所述发现测量组合流程的参数信息;以及Receive a discovery response message fed back by the second DDNMF network element when it is determined that the first terminal is allowed to perform ranging on the second terminal during the discovery process, wherein the discovery response message includes information for the Discover parameter information for the measurement combination process; and
    将所述发现响应消息发送给所述第一终端。Send the discovery response message to the first terminal.
  16. 如权利要求15所述的方法,其特征在于,所述参数信息包括用于对指定信息进行完整性保护和/或验证的安全参数。The method of claim 15, wherein the parameter information includes security parameters used for integrity protection and/or verification of designated information.
  17. 如权利要求15或16所述的方法,其特征在于,所述第一发现请求消息包括发现测量组合流程指示,所述发现测量组合流程指示用于请求验证所述第一终端是否被允许在发现过程中执行测距以及验证所述第一终端是否被允许在发现过程中对所述第二终端执行测距。The method of claim 15 or 16, wherein the first discovery request message includes a discovery measurement combination process indication, and the discovery measurement combination process indication is used to request verification of whether the first terminal is allowed to perform the discovery process. Perform ranging during the process and verify whether the first terminal is allowed to perform ranging on the second terminal during the discovery process.
  18. 一种测距验证方法,其特征在于,所述方法由第二终端的第二本地公用陆地移动网络HPLMN的第二邻近服务发现管理功能DDNMF网元执行,所述方法包括:A ranging verification method, characterized in that the method is executed by the second proximity service discovery management function DDNMF network element of the second local public land mobile network HPLMN of the second terminal, and the method includes:
    接收第二终端发送的第二发现请求消息,其中所述第二发现请求消息用于请求执行发现测量组合流程并指示发送所述第二发现请求消息的第二终端为将被发现以进行发现测量组合流程的终端,所述发现测量组合流程用于在发现过程中执行测距;Receive a second discovery request message sent by a second terminal, where the second discovery request message is used to request the execution of a discovery measurement combination process and indicates that the second terminal sending the second discovery request message is to be discovered for discovery measurement. The terminal of the combination process, the discovery measurement combination process is used to perform ranging during the discovery process;
    响应于所述第二发现请求消息,向测距应用服务器发送第二发现测量组合流程验证请求,所述测距应用服务器基于所述第二发现测量组合流程验证请求验证是否允许所述第二终端在发现过程中执行测距以得到第二验证结果;In response to the second discovery request message, a second discovery measurement combination process verification request is sent to the ranging application server, and the ranging application server verifies whether the second terminal is allowed based on the second discovery measurement combination process verification request. Perform ranging during the discovery process to obtain a second verification result;
    从所述测距应用服务器接收所述第二验证结果;Receive the second verification result from the ranging application server;
    在所述第二验证结果指示所述第二终端被允许在发现过程中执行测距的情况下,生成用于所述第二终端的发现测量组合流程的第二参数信息;以及If the second verification result indicates that the second terminal is allowed to perform ranging during the discovery process, generate second parameter information for the discovery measurement combination process of the second terminal; and
    将包括所述第二参数信息的第二发现响应消息发送给所述第二终端。Send a second discovery response message including the second parameter information to the second terminal.
  19. 如权利要求18所述的方法,其特征在于,还包括:The method of claim 18, further comprising:
    接收第一终端的第一HPLMN的第一DDNMF网元转发的第一发现请求消息,所述第一发现请求消息用于请求执行发现测量组合流程并指示发送所述第一发现请求消息的第一终端为发起发现测量组合流程的终端;Receive a first discovery request message forwarded by the first DDNMF network element of the first HPLMN of the first terminal, where the first discovery request message is used to request execution of a discovery measurement combination process and instructs the first person to send the first discovery request message. The terminal is the terminal that initiates the discovery and measurement combination process;
    响应于所述第一发现请求消息,向所述测距应用服务器发送第三发现测量组合流程验证请求,所述测距应用服务器基于所述第三发现测量组合流程验证请求验证是否允许所述第一终端在发现过程中对所述第二终端执行测距以得到第一验证结果;In response to the first discovery request message, a third discovery measurement combination process verification request is sent to the ranging application server, and the ranging application server verifies whether the third discovery measurement combination process verification request is allowed based on the third discovery measurement combination process verification request. A terminal performs ranging on the second terminal during the discovery process to obtain the first verification result;
    从所述测距应用服务器接收所述第一验证结果;Receive the first verification result from the ranging application server;
    在所述第一验证结果指示所述第一终端被允许在发现过程中对所述第二终端执行测距的情况下,生成用于所述第一终端的发现测量组合流程的第一参数信息;以及When the first verification result indicates that the first terminal is allowed to perform ranging on the second terminal during the discovery process, generating first parameter information for the discovery measurement combination process of the first terminal ;as well as
    将包括所述第一参数信息的第一发现响应消息发送给所述第一DDNMF网元。Send a first discovery response message including the first parameter information to the first DDNMF network element.
  20. 如权利要求19所述的方法,其特征在于,所述第一参数信息和所述第二参数信息各自包括用于对指定信息进行完整性保护和/或验证的安全参数。The method of claim 19, wherein the first parameter information and the second parameter information each include security parameters for integrity protection and/or verification of designated information.
  21. 如权利要求18所述的方法,其特征在于,所述第二发现请求消息包括第二发现测量组合流程指示,所述第二发现测量组合流程指示用于请求验证所述第二终端是否被允许在发现过程中执行测距。The method of claim 18, wherein the second discovery request message includes a second discovery measurement combination process indication, and the second discovery measurement combination process indication is used to request verification of whether the second terminal is allowed. Perform ranging during discovery.
  22. 如权利要求19所述的方法,其特征在于,所述第一发现请求消息包括第一发现测量组合流程指示,所述第一发现测量组合流程指示用于请求验证所述第一终端是否被允许在发现过程中对所述第二终端执行测距。The method of claim 19, wherein the first discovery request message includes a first discovery measurement combination process indication, and the first discovery measurement combination process indication is used to request verification of whether the first terminal is allowed. Ranging is performed on the second terminal during discovery.
  23. 一种测距验证方法,其特征在于,所述方法包括:A distance measurement verification method, characterized in that the method includes:
    接收第一终端的第一本地公用陆地移动网络HPLMN的第一DDNMF网元发送的第一发现测量组合流程验证请求,其中所述第一终端为发起发现测量组合流程的终端,所述发现测量组合流程用于在发现过程中执行测距,所述第一发现测量组合流程验证请求用于请求验证是否允许所述第一终端在发现过程中执行测距;Receive the first discovery and measurement combination process verification request sent by the first DDNMF network element of the first local public land mobile network HPLMN of the first terminal, where the first terminal is the terminal that initiates the discovery and measurement combination process, and the discovery and measurement combination process The process is used to perform ranging during the discovery process, and the first discovery measurement combination process verification request is used to request verification whether the first terminal is allowed to perform ranging during the discovery process;
    验证是否允许所述第一终端在发现过程中执行测距以得到中间验证结果;Verify whether the first terminal is allowed to perform ranging during the discovery process to obtain an intermediate verification result;
    将所述中间验证结果反馈给所述第一DDNMF网元;Feed back the intermediate verification result to the first DDNMF network element;
    接收第二终端的第二HPLMN的第二DDNMF网元发送的第三发现测量组合流程验证请求,其中,所述第二终端为将被发现以进行发现测量组合流程的终端,所述第三发现测量组合流程验证请求用于请求验证是否允许所述第一终端在发现过程中对所述第二终端执行测距;Receive the third discovery measurement combination process verification request sent by the second DDNMF network element of the second HPLMN of the second terminal, wherein the second terminal is a terminal that will be discovered to perform the discovery measurement combination process, and the third discovery The measurement combination process verification request is used to request verification whether the first terminal is allowed to perform ranging on the second terminal during the discovery process;
    验证是否允许所述第一终端在发现过程中对所述第二终端执行测距以得到第一验证结果;以及Verify whether the first terminal is allowed to perform ranging on the second terminal during the discovery process to obtain a first verification result; and
    将所述第一验证结果反馈给所述第二DDNMF网元,所述第二DDNMF网元在所述第一验证结果指示所述第一终端被允许在发现过程中对所述第二终端执行测距的情况下生成用于所述第一终端的发现测量组合流程的第一参数信息。The first verification result is fed back to the second DDNMF network element, and the second DDNMF network element performs operations on the second terminal when the first verification result indicates that the first terminal is allowed to perform the discovery process on the second terminal. In the case of ranging, first parameter information for a discovery measurement combination process of the first terminal is generated.
  24. 如权利要求23所述的方法,其特征在于,还包括:The method of claim 23, further comprising:
    接收所述第二DDNMF网元发送的第二发现测量组合流程验证请求,所述第二发现测量组合流程验证请求用于请求验证是否允许所述第二终端在发现过程中执行测距;Receive a second discovery measurement combination process verification request sent by the second DDNMF network element, where the second discovery measurement combination process verification request is used to request verification whether the second terminal is allowed to perform ranging during the discovery process;
    验证是否允许所述第二终端在发现过程中执行测距以得到第二验证结果;以及Verify whether the second terminal is allowed to perform ranging during the discovery process to obtain a second verification result; and
    将所述第二验证结果反馈给所述第二DDNMF网元,所述第二DDNMF网元在所述第二验证结果指示所述第二终端被允许在发现过程中执行测距的情况下生成用于所述第二终端的发现测量组合流程的第二参数信息。The second verification result is fed back to the second DDNMF network element, which is generated when the second verification result indicates that the second terminal is allowed to perform ranging during the discovery process. Second parameter information used for the discovery measurement combination process of the second terminal.
  25. 一种测距装置,其特征在于,应用于第一终端,其中所述第一终端为发起发现测量组合流程的终端,所述发现测量组合流程用于在发现过程中执行测距,所述装置包括:A ranging device, characterized in that it is applied to a first terminal, wherein the first terminal is a terminal that initiates a discovery and measurement combination process, and the discovery and measurement combination process is used to perform ranging during the discovery process, and the device include:
    收发模块,用于:Transceiver module, used for:
    向第二终端发送征询消息,其中,所述第二终端为将被发现以进行发现测量组合流程的终端,所述征询消息用于指示所述第二终端与所述第一终端进行发现匹配,且所述征询消息中包括测量信号;Send a query message to a second terminal, where the second terminal is a terminal that will be discovered for the discovery measurement combination process, and the query message is used to instruct the second terminal to perform discovery matching with the first terminal, And the consultation message includes a measurement signal;
    接收所述第二终端针对所述征询消息反馈的征询响应消息,其中所述征询响应消息是所述第二终端确定与所述第一终端匹配的情况下发送的,且所述征询响应消息中包括反馈测量信号;以及Receive an inquiry response message fed back by the second terminal in response to the inquiry message, wherein the inquiry response message is sent when the second terminal determines that it matches the first terminal, and the inquiry response message contains including feedback measurement signals; and
    处理模块,用于基于所述测量信号和所述反馈测量信号,计算与所述第二终端之间的距离。A processing module configured to calculate the distance to the second terminal based on the measurement signal and the feedback measurement signal.
  26. 一种测距装置,其特征在于,应用于第二终端,其中所述第二终端为将被发现以进行发现测量组合流程的终端,所述发现测量组合流程用于在发现过程中执行测距,所述装置包括:A ranging device, characterized in that it is applied to a second terminal, wherein the second terminal is a terminal that will be discovered to perform a discovery measurement combination process, and the discovery measurement combination process is used to perform ranging during the discovery process. , the device includes:
    收发模块,用于:Transceiver module, used for:
    接收第一终端发送的征询消息,其中,所述第一终端为发起发现测量组合流程的终端,所述征询消息用于指示所述第二终端与所述第一终端进行发现匹配,且所述征询消息中包括测量信号;Receive a query message sent by a first terminal, where the first terminal is a terminal that initiates a discovery measurement combination process, the query message is used to instruct the second terminal to perform discovery matching with the first terminal, and the The inquiry message includes measurement signals;
    在所述第二终端确定与所述第一终端匹配的情况下,向所述第一终端反馈征询响应消息,其中所述征询响应消息中包括反馈测量信号,When the second terminal determines that it matches the first terminal, feedback a query response message to the first terminal, wherein the query response message includes a feedback measurement signal,
    其中,所述测量信号和所述反馈测量信号用于确定所述第一终端和所述第二终端之间的距离。Wherein, the measurement signal and the feedback measurement signal are used to determine the distance between the first terminal and the second terminal.
  27. 一种测距验证装置,其特征在于,应用于第一终端的第一本地公用陆地移动网络HPLMN的第一邻近服务发现管理功能DDNMF网元,所述装置包括:收发模块;A ranging verification device, characterized in that it is applied to the first proximity service discovery management function DDNMF network element of the first local public land mobile network HPLMN of the first terminal, and the device includes: a transceiver module;
    所述收发模块,用于:The transceiver module is used for:
    接收所述第一终端发送的第一发现请求消息,其中所述第一发现请求消息用于请求执行发现测量组合流程并指示发送所述第一发现请求消息的第一终端为发起发现测量组合流程的终端,所述发现测量组合流程用于在发现过程中执行测距;Receive a first discovery request message sent by the first terminal, where the first discovery request message is used to request execution of a discovery measurement combination process and instructs the first terminal sending the first discovery request message to initiate a discovery measurement combination process. For a terminal, the discovery measurement combination process is used to perform ranging during the discovery process;
    响应于所述第一发现请求消息,向测距应用服务器发送第一发现测量组合流程验证请求,所述测距应用服务器用于基于所述第一发现测量组合验证请求验证是否允许所述第一终端在发现过程中执行测距;In response to the first discovery request message, a first discovery measurement combination process verification request is sent to the ranging application server, and the ranging application server is configured to verify whether the first discovery measurement combination verification request is allowed based on the first discovery measurement combination verification request. The terminal performs ranging during the discovery process;
    从测距应用服务器接收验证结果,并在所述验证结果指示所述第一终端被允许在发现过程中执行测距的情况下,将所述第一发现请求消息转发至第二终端的第二HPLMN的第二DDNMF网元,所述第二终端为将被发现以进行发现测量组合流程的终端;Receive a verification result from the ranging application server, and forward the first discovery request message to the second terminal of the second terminal if the verification result indicates that the first terminal is allowed to perform ranging during the discovery process. The second DDNMF network element of HPLMN, the second terminal is the terminal that will be discovered for the discovery measurement combination process;
    接收所述第二DDNMF网元在确定所述第一终端被允许在发现过程中对所述第二终端执行测距的情况下反馈的发现响应消息,其中所述发现响应消息包括用于所述发现测量组合流程的参数信息;以及Receive a discovery response message fed back by the second DDNMF network element when it is determined that the first terminal is allowed to perform ranging on the second terminal during the discovery process, wherein the discovery response message includes information for the Discover parameter information for the measurement combination process; and
    将所述发现响应消息发送给所述第一终端。Send the discovery response message to the first terminal.
  28. 一种测距验证装置,其特征在于,应用于第二终端的第二本地公用陆地移动网络HPLMN的第二邻近服务发现管理功能DDNMF网元执行,所述装置包括:收发模块和处理模块;A ranging verification device, characterized in that the second proximity service discovery management function DDNMF network element applied to the second local public land mobile network HPLMN of the second terminal is executed, and the device includes: a transceiver module and a processing module;
    所述收发模块,用于:The transceiver module is used for:
    接收第二终端发送的第二发现请求消息,其中所述第二发现请求消息用于请求执行发现测量组合流程并指示发送所述第二发现请求消息的第二终端为将被发现以进行发现测量组合流程的终端,所述发现测量组合流程用于在发现过程中执行测距;Receive a second discovery request message sent by a second terminal, where the second discovery request message is used to request the execution of a discovery measurement combination process and indicates that the second terminal sending the second discovery request message is to be discovered for discovery measurement. The terminal of the combination process, the discovery measurement combination process is used to perform ranging during the discovery process;
    响应于所述第二发现请求消息,向测距应用服务器发送第二发现测量组合流程验证请求,所述测距应用服务器基于所述第二发现测量组合流程验证请求验证是否允许所述第二终端在发现过程中执行测距以得到第二验证结果;In response to the second discovery request message, a second discovery measurement combination process verification request is sent to the ranging application server, and the ranging application server verifies whether the second terminal is allowed based on the second discovery measurement combination process verification request. Perform ranging during the discovery process to obtain a second verification result;
    从所述测距应用服务器接收所述第二验证结果;Receive the second verification result from the ranging application server;
    所述处理模块,在所述所述第二验证结果指示所述第二终端被允许在发现过程中执行测距的情况下,生成用于所述第二终端的发现测量组合流程的第二参数信息;以及The processing module generates a second parameter for the discovery measurement combination process of the second terminal when the second verification result indicates that the second terminal is allowed to perform ranging during the discovery process. information; and
    所述收发模块还用于将包括所述第二参数信息的第二发现响应消息发送给所述第二终端。The transceiving module is also configured to send a second discovery response message including the second parameter information to the second terminal.
  29. 一种测距验证装置,其特征在于,所述装置包括收发模块和处理模块;A ranging verification device, characterized in that the device includes a transceiver module and a processing module;
    所述收发模块用于接收第一终端的第一本地公用陆地移动网络HPLMN的第一DDNMF网元发送的第一发现测量组合流程验证请求,其中所述第一终端为发起发现测量组合流程的终端,所述发现测量组合流程用于在发现过程中执行测距,所述第一发现测量组合流程验证请求用于请求验证是否允许所述第一终端在发现过程中执行测距;The transceiver module is configured to receive a first discovery and measurement combination process verification request sent by the first DDNMF network element of the first local public land mobile network HPLMN of the first terminal, where the first terminal is the terminal that initiates the discovery and measurement combination process. , the discovery measurement combination process is used to perform ranging during the discovery process, and the first discovery measurement combination process verification request is used to request verification whether the first terminal is allowed to perform ranging during the discovery process;
    所述处理模块用于验证是否允许所述第一终端在发现过程中执行测距以得到中间验证结果;The processing module is used to verify whether the first terminal is allowed to perform ranging during the discovery process to obtain an intermediate verification result;
    所述收发模块还用于将所述中间验证结果反馈给所述第一DDNMF网元;接收第二终端的第二HPLMN的第二DDNMF网元发送的第三发现测量组合流程验证请求,其中,所述第二终端为将被发现以进行发现测量组合流程的终端,所述第三发现测量组合流程验证请求用于请求验证是否允许所述第一终端在发现过程中对所述第二终端执行测距;The transceiver module is also configured to feed back the intermediate verification result to the first DDNMF network element; receive a third discovery measurement combination process verification request sent by the second DDNMF network element of the second HPLMN of the second terminal, wherein, The second terminal is a terminal that will be discovered to perform a discovery measurement combination process. The third discovery measurement combination process verification request is used to request verification whether the first terminal is allowed to perform the discovery measurement combination process on the second terminal. ranging;
    所述处理模块还用于验证是否允许所述第一终端在发现过程中对所述第二终端执行测距以得到第一验证结果;以及The processing module is also used to verify whether the first terminal is allowed to perform ranging on the second terminal during the discovery process to obtain a first verification result; and
    所述收发模块还用于将所述第一验证结果反馈给所述第二DDNMF网元,所述第二DDNMF网元在所述第一验证结果指示所述第一终端被允许在发现过程中对所述第二终端执行测距的情况下生成用于所述第一终端的发现测量组合流程的第一参数信息。The transceiver module is also configured to feed back the first verification result to the second DDNMF network element. When the first verification result indicates that the first terminal is allowed to be used in the discovery process, the second DDNMF network element When performing ranging on the second terminal, first parameter information for a discovery measurement combination process of the first terminal is generated.
  30. 一种通信设备,其中,包括:收发器;存储器;处理器,分别与所述收发器及所述存储器连接,配置为通过执行所述存储器上的计算机可执行指令,控制所述收发器的无线信号收发,并能够实现权利要求1-24任一项所述的方法。A communication device, which includes: a transceiver; a memory; and a processor, respectively connected to the transceiver and the memory, and configured to control the wireless operation of the transceiver by executing computer-executable instructions on the memory. Transmit and receive signals, and can implement the method described in any one of claims 1-24.
  31. 一种计算机存储介质,其中,所述计算机存储介质存储有计算机可执行指令;所述计算机可执行指令被处理器执行后,能够实现权利要求1-24任一项所述的方法。A computer storage medium, wherein the computer storage medium stores computer-executable instructions; after the computer-executable instructions are executed by a processor, the method described in any one of claims 1-24 can be implemented.
PCT/CN2022/080480 2022-03-11 2022-03-11 Distance measurement method and apparatus WO2023168720A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2022/080480 WO2023168720A1 (en) 2022-03-11 2022-03-11 Distance measurement method and apparatus
CN202280000702.2A CN117223300A (en) 2022-03-11 2022-03-11 Distance measuring method and device

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
WO2023168720A1 true WO2023168720A1 (en) 2023-09-14

Family

ID=87937002

Family Applications (1)

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

Country Status (2)

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

Citations (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
WO2016149890A1 (en) * 2015-03-20 2016-09-29 华为技术有限公司 Method of measuring distance between nan device, and nan device
WO2017008223A1 (en) * 2015-07-13 2017-01-19 华为技术有限公司 Proximity service communication authentication method, user equipment, and proximity service function entity
CN107710791A (en) * 2015-06-15 2018-02-16 高通股份有限公司 Method and apparatus for wireless discovery positioning and ranging in adjacent domain sensing network
WO2022027522A1 (en) * 2020-08-06 2022-02-10 华为技术有限公司 Safe communication method and apparatus

Patent Citations (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
WO2016149890A1 (en) * 2015-03-20 2016-09-29 华为技术有限公司 Method of measuring distance between nan device, and nan device
CN107710791A (en) * 2015-06-15 2018-02-16 高通股份有限公司 Method and apparatus for wireless discovery positioning and ranging in adjacent domain sensing network
WO2017008223A1 (en) * 2015-07-13 2017-01-19 华为技术有限公司 Proximity service communication authentication method, user equipment, and proximity service function entity
WO2022027522A1 (en) * 2020-08-06 2022-02-10 华为技术有限公司 Safe communication method and apparatus

Also Published As

Publication number Publication date
CN117223300A (en) 2023-12-12

Similar Documents

Publication Publication Date Title
WO2022012310A1 (en) Communication method and apparatus
US9641996B2 (en) Method and apparatus for generating P2P group for Wi-Fi direct service
WO2022120538A1 (en) Method and device for determining location of terminal device
CN110912640B (en) Interface compatible method and device for signaling transmission
US20140105395A1 (en) Location services for a wireless device
WO2018202070A1 (en) Positioning assistance data configuration method, apparatus, device, system, and storage medium
CN102201846A (en) Wireless data transmission system and method based on soft AP (access point) technology
WO2023197224A1 (en) Mobility management method and apparatus, and device and storage medium
WO2023168720A1 (en) Distance measurement method and apparatus
WO2024000199A1 (en) Channel measurement method and apparatus
CN116847449A (en) Time service method, communication device and communication system
WO2021018077A1 (en) Electronic apparatus, wireless communication method, and computer readable storage medium
KR20100113586A (en) Method and apparatus for locating and assistant locating in a phs network
WO2023221000A1 (en) Authentication and authorization method and apparatus for ai function in core network
WO2023184192A1 (en) Method and device for determining ranging sidelink positioning policy
WO2024060025A1 (en) Communication management method and apparatus
WO2024060144A1 (en) Method and apparatus for verifying location information of terminal, and communication device and storage medium
WO2023197273A1 (en) Authentication method and device
WO2023197272A1 (en) Authentication method and device
WO2023212961A1 (en) Handover method and apparatus
WO2024065334A1 (en) Method, apparatus and device for generating authorization token of user equipment (ue), and storage medium
WO2023115354A1 (en) Communication method and apparatus
WO2024026892A1 (en) Device sensing capability registration method and apparatus, and device sensing application method and apparatus
WO2022205231A1 (en) Policy control function network element selection method and apparatus
WO2023130992A1 (en) Communication method and communication apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22930358

Country of ref document: EP

Kind code of ref document: A1